Compare commits

...

6 Commits

Author SHA1 Message Date
Dean Wenstrand
6bc02ec47c Add tags arg to createCameraClaimSession
All checks were successful
Tests / Tests (pull_request) Successful in 11s
Lets the table-camera claim carry session tags (+ the player-count tag), for
parity with the phone recording flow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 22:49:28 -07:00
c92246510b Merge pull request 'Add city/state to PoolHall type + create/update inputs' (#283) from dean/pool-hall-city-state into master
Reviewed-on: #283
2026-07-07 01:33:21 +00:00
Dean Wenstrand
3ce2a7be61 Add per-camera recording policy (terms + private allowance) to schema
All checks were successful
Tests / Tests (pull_request) Successful in 10s
allowsPrivateVideos / claimTermsText / claimTermsVersion on PoolHallCamera,
agreedTermsVersion on CameraClaimSession + the create-claim mutation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 18:21:58 -07:00
Dean Wenstrand
fc921c3ae7 Add city/state to PoolHall type + create/update inputs
All checks were successful
Tests / Tests (pull_request) Successful in 10s
Full address stays on `address`; city/state let the UI show a compact locality.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-06 16:59:15 -07:00
0b6ac787d8 Merge pull request 'Camera claim flow: lease end/extend, claim preferences, inUse' (#282) from dean/camera-claim-flow into master
Reviewed-on: #282
2026-07-05 18:55:01 +00:00
c6a754cc2d Merge pull request 'Add tableSize/pocketSize to pool hall camera schema' (#281) from dean/camera-table-dimensions into master
Reviewed-on: #281
2026-07-05 00:23:56 +00:00
3 changed files with 148 additions and 0 deletions

View File

@@ -157,6 +157,7 @@ export type BucketSetInputGql = {
export type CameraClaimSession = {
__typename?: "CameraClaimSession";
agreedTermsVersion?: Maybe<Scalars["Int"]["output"]>;
camera: PoolHallCamera;
cameraId: Scalars["ID"]["output"];
challengeCode: Scalars["String"]["output"];
@@ -284,6 +285,8 @@ export type CreateCustomerPortalSessionResultGql = {
};
export type CreatePoolHallCameraInput = {
allowsPrivateVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
claimTermsText?: InputMaybe<Scalars["String"]["input"]>;
name: Scalars["String"]["input"];
pocketSize?: InputMaybe<Scalars["Float"]["input"]>;
poolHallId: Scalars["ID"]["input"];
@@ -294,9 +297,11 @@ export type CreatePoolHallCameraInput = {
export type CreatePoolHallInput = {
address?: InputMaybe<Scalars["String"]["input"]>;
city?: InputMaybe<Scalars["String"]["input"]>;
latitude?: InputMaybe<Scalars["Float"]["input"]>;
longitude?: InputMaybe<Scalars["Float"]["input"]>;
name: Scalars["String"]["input"];
state?: InputMaybe<Scalars["String"]["input"]>;
timezone?: InputMaybe<Scalars["String"]["input"]>;
};
@@ -2561,8 +2566,10 @@ export type MutationCreateBucketSetArgs = {
};
export type MutationCreateCameraClaimSessionArgs = {
agreedTermsVersion?: InputMaybe<Scalars["Int"]["input"]>;
cameraId: Scalars["ID"]["input"];
durationMinutes?: InputMaybe<Scalars["Int"]["input"]>;
tags?: InputMaybe<Array<VideoTagInput>>;
videoName?: InputMaybe<Scalars["String"]["input"]>;
videoPrivate?: InputMaybe<Scalars["Boolean"]["input"]>;
};
@@ -2947,11 +2954,13 @@ export type PocketingIntentionInfoGql = {
export type PoolHall = {
__typename?: "PoolHall";
address?: Maybe<Scalars["String"]["output"]>;
city?: Maybe<Scalars["String"]["output"]>;
createdAt: Scalars["DateTime"]["output"];
id: Scalars["ID"]["output"];
latitude?: Maybe<Scalars["Float"]["output"]>;
longitude?: Maybe<Scalars["Float"]["output"]>;
name: Scalars["String"]["output"];
state?: Maybe<Scalars["String"]["output"]>;
status: Scalars["String"]["output"];
timezone?: Maybe<Scalars["String"]["output"]>;
updatedAt: Scalars["DateTime"]["output"];
@@ -2959,6 +2968,9 @@ export type PoolHall = {
export type PoolHallCamera = {
__typename?: "PoolHallCamera";
allowsPrivateVideos: Scalars["Boolean"]["output"];
claimTermsText?: Maybe<Scalars["String"]["output"]>;
claimTermsVersion?: Maybe<Scalars["Int"]["output"]>;
createdAt: Scalars["DateTime"]["output"];
id: Scalars["ID"]["output"];
inUse: Scalars["Boolean"]["output"];
@@ -3821,6 +3833,8 @@ export type UpdateAnnotationInputGql = {
};
export type UpdatePoolHallCameraInput = {
allowsPrivateVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
claimTermsText?: InputMaybe<Scalars["String"]["input"]>;
id: Scalars["ID"]["input"];
name?: InputMaybe<Scalars["String"]["input"]>;
pocketSize?: InputMaybe<Scalars["Float"]["input"]>;
@@ -3831,10 +3845,12 @@ export type UpdatePoolHallCameraInput = {
export type UpdatePoolHallInput = {
address?: InputMaybe<Scalars["String"]["input"]>;
city?: InputMaybe<Scalars["String"]["input"]>;
id: Scalars["ID"]["input"];
latitude?: InputMaybe<Scalars["Float"]["input"]>;
longitude?: InputMaybe<Scalars["Float"]["input"]>;
name?: InputMaybe<Scalars["String"]["input"]>;
state?: InputMaybe<Scalars["String"]["input"]>;
status?: InputMaybe<Scalars["String"]["input"]>;
timezone?: InputMaybe<Scalars["String"]["input"]>;
};
@@ -5534,6 +5550,8 @@ export type PoolHallFieldsFragment = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5552,6 +5570,9 @@ export type PoolHallCameraFieldsFragment = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5569,6 +5590,9 @@ export type PoolHallCameraWithHallFieldsFragment = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5579,6 +5603,8 @@ export type PoolHallCameraWithHallFieldsFragment = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5602,6 +5628,9 @@ export type PoolHallCameraStreamCredentialsFieldsFragment = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5612,6 +5641,8 @@ export type PoolHallCameraStreamCredentialsFieldsFragment = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5633,6 +5664,7 @@ export type CameraClaimSessionFieldsFragment = {
detectedAt?: any | null;
failedAt?: any | null;
failureReason?: string | null;
agreedTermsVersion?: number | null;
createdAt: any;
updatedAt: any;
camera: {
@@ -5645,6 +5677,9 @@ export type CameraClaimSessionFieldsFragment = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5655,6 +5690,8 @@ export type CameraClaimSessionFieldsFragment = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5689,6 +5726,9 @@ export type CameraLeaseFieldsFragment = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5699,6 +5739,8 @@ export type CameraLeaseFieldsFragment = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5718,6 +5760,8 @@ export type GetPoolHallsQuery = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5738,6 +5782,8 @@ export type GetClaimablePoolHallsQuery = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5763,6 +5809,9 @@ export type GetPoolHallCamerasQuery = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5773,6 +5822,8 @@ export type GetPoolHallCamerasQuery = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5799,6 +5850,9 @@ export type GetClaimableCamerasQuery = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5809,6 +5863,8 @@ export type GetClaimableCamerasQuery = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5836,6 +5892,7 @@ export type GetCameraClaimSessionQuery = {
detectedAt?: any | null;
failedAt?: any | null;
failureReason?: string | null;
agreedTermsVersion?: number | null;
createdAt: any;
updatedAt: any;
camera: {
@@ -5848,6 +5905,9 @@ export type GetCameraClaimSessionQuery = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5858,6 +5918,8 @@ export type GetCameraClaimSessionQuery = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5899,6 +5961,9 @@ export type GetActiveCameraLeaseQuery = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5909,6 +5974,8 @@ export type GetActiveCameraLeaseQuery = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5931,6 +5998,8 @@ export type CreatePoolHallMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5951,6 +6020,8 @@ export type UpdatePoolHallMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -5980,6 +6051,9 @@ export type CreatePoolHallCameraMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -5990,6 +6064,8 @@ export type CreatePoolHallCameraMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -6017,6 +6093,9 @@ export type UpdatePoolHallCameraMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -6027,6 +6106,8 @@ export type UpdatePoolHallCameraMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -6057,6 +6138,9 @@ export type RotatePoolHallCameraStreamKeyMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -6067,6 +6151,8 @@ export type RotatePoolHallCameraStreamKeyMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -6083,6 +6169,8 @@ export type CreateCameraClaimSessionMutationVariables = Exact<{
durationMinutes?: InputMaybe<Scalars["Int"]["input"]>;
videoName?: InputMaybe<Scalars["String"]["input"]>;
videoPrivate?: InputMaybe<Scalars["Boolean"]["input"]>;
agreedTermsVersion?: InputMaybe<Scalars["Int"]["input"]>;
tags?: InputMaybe<Array<VideoTagInput> | VideoTagInput>;
}>;
export type CreateCameraClaimSessionMutation = {
@@ -6098,6 +6186,7 @@ export type CreateCameraClaimSessionMutation = {
detectedAt?: any | null;
failedAt?: any | null;
failureReason?: string | null;
agreedTermsVersion?: number | null;
createdAt: any;
updatedAt: any;
camera: {
@@ -6110,6 +6199,9 @@ export type CreateCameraClaimSessionMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -6120,6 +6212,8 @@ export type CreateCameraClaimSessionMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -6148,6 +6242,7 @@ export type CancelCameraClaimSessionMutation = {
detectedAt?: any | null;
failedAt?: any | null;
failureReason?: string | null;
agreedTermsVersion?: number | null;
createdAt: any;
updatedAt: any;
camera: {
@@ -6160,6 +6255,9 @@ export type CancelCameraClaimSessionMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -6170,6 +6268,8 @@ export type CancelCameraClaimSessionMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -6211,6 +6311,9 @@ export type EndCameraLeaseMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -6221,6 +6324,8 @@ export type EndCameraLeaseMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -6263,6 +6368,9 @@ export type ExtendCameraLeaseMutation = {
status: string;
tableSize?: number | null;
pocketSize?: number | null;
allowsPrivateVideos: boolean;
claimTermsText?: string | null;
claimTermsVersion?: number | null;
inUse: boolean;
lastPublishedAt?: any | null;
lastUnpublishedAt?: any | null;
@@ -6273,6 +6381,8 @@ export type ExtendCameraLeaseMutation = {
id: string;
name: string;
address?: string | null;
city?: string | null;
state?: string | null;
latitude?: number | null;
longitude?: number | null;
timezone?: string | null;
@@ -8603,6 +8713,9 @@ export const PoolHallCameraFieldsFragmentDoc = gql`
status
tableSize
pocketSize
allowsPrivateVideos
claimTermsText
claimTermsVersion
inUse
lastPublishedAt
lastUnpublishedAt
@@ -8615,6 +8728,8 @@ export const PoolHallFieldsFragmentDoc = gql`
id
name
address
city
state
latitude
longitude
timezone
@@ -8654,6 +8769,7 @@ export const CameraClaimSessionFieldsFragmentDoc = gql`
detectedAt
failedAt
failureReason
agreedTermsVersion
createdAt
updatedAt
camera {
@@ -13235,12 +13351,16 @@ export const CreateCameraClaimSessionDocument = gql`
$durationMinutes: Int
$videoName: String
$videoPrivate: Boolean
$agreedTermsVersion: Int
$tags: [VideoTagInput!]
) {
createCameraClaimSession(
cameraId: $cameraId
durationMinutes: $durationMinutes
videoName: $videoName
videoPrivate: $videoPrivate
agreedTermsVersion: $agreedTermsVersion
tags: $tags
) {
...CameraClaimSessionFields
}
@@ -13269,6 +13389,8 @@ export type CreateCameraClaimSessionMutationFn = Apollo.MutationFunction<
* durationMinutes: // value for 'durationMinutes'
* videoName: // value for 'videoName'
* videoPrivate: // value for 'videoPrivate'
* agreedTermsVersion: // value for 'agreedTermsVersion'
* tags: // value for 'tags'
* },
* });
*/

View File

@@ -2,6 +2,8 @@ fragment PoolHallFields on PoolHall {
id
name
address
city
state
latitude
longitude
timezone
@@ -19,6 +21,9 @@ fragment PoolHallCameraFields on PoolHallCamera {
status
tableSize
pocketSize
allowsPrivateVideos
claimTermsText
claimTermsVersion
inUse
lastPublishedAt
lastUnpublishedAt
@@ -51,6 +56,7 @@ fragment CameraClaimSessionFields on CameraClaimSession {
detectedAt
failedAt
failureReason
agreedTermsVersion
createdAt
updatedAt
camera {
@@ -147,12 +153,16 @@ mutation CreateCameraClaimSession(
$durationMinutes: Int
$videoName: String
$videoPrivate: Boolean
$agreedTermsVersion: Int
$tags: [VideoTagInput!]
) {
createCameraClaimSession(
cameraId: $cameraId
durationMinutes: $durationMinutes
videoName: $videoName
videoPrivate: $videoPrivate
agreedTermsVersion: $agreedTermsVersion
tags: $tags
) {
...CameraClaimSessionFields
}

View File

@@ -892,6 +892,8 @@ type PoolHall {
id: ID!
name: String!
address: String
city: String
state: String
latitude: Float
longitude: Float
timezone: String
@@ -909,6 +911,9 @@ type PoolHallCamera {
status: String!
tableSize: Float
pocketSize: Float
allowsPrivateVideos: Boolean!
claimTermsText: String
claimTermsVersion: Int
lastPublishedAt: DateTime
lastUnpublishedAt: DateTime
createdAt: DateTime!
@@ -927,6 +932,7 @@ type CameraClaimSession {
detectedAt: DateTime
failedAt: DateTime
failureReason: String
agreedTermsVersion: Int
createdAt: DateTime!
updatedAt: DateTime!
camera: PoolHallCamera!
@@ -1409,6 +1415,8 @@ type Mutation {
durationMinutes: Int = null
videoName: String = null
videoPrivate: Boolean = null
agreedTermsVersion: Int = null
tags: [VideoTagInput!] = null
): CameraClaimSession!
cancelCameraClaimSession(claimSessionId: ID!): CameraClaimSession!
endCameraLease(leaseId: ID!): CameraLease!
@@ -1495,6 +1503,8 @@ enum ReportReasonEnum {
input CreatePoolHallInput {
name: String!
address: String = null
city: String = null
state: String = null
latitude: Float = null
longitude: Float = null
timezone: String = null
@@ -1504,6 +1514,8 @@ input UpdatePoolHallInput {
id: ID!
name: String = null
address: String = null
city: String = null
state: String = null
latitude: Float = null
longitude: Float = null
timezone: String = null
@@ -1523,6 +1535,8 @@ input CreatePoolHallCameraInput {
streamPath: String = null
tableSize: Float = null
pocketSize: Float = null
allowsPrivateVideos: Boolean = null
claimTermsText: String = null
}
input UpdatePoolHallCameraInput {
@@ -1532,6 +1546,8 @@ input UpdatePoolHallCameraInput {
status: String = null
tableSize: Float = null
pocketSize: Float = null
allowsPrivateVideos: Boolean = null
claimTermsText: String = null
}
input FinalizePlayerAssignmentsInput {