|
|
|
|
@@ -2426,6 +2426,13 @@ export type IntPoint2DInput = {
|
|
|
|
|
y: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type LiveTableStateGql = {
|
|
|
|
|
__typename?: "LiveTableStateGQL";
|
|
|
|
|
frameIndex: Scalars["Int"]["output"];
|
|
|
|
|
tableState: TableStateGql;
|
|
|
|
|
videoId: Scalars["Int"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MakePercentageIntervalGql = {
|
|
|
|
|
__typename?: "MakePercentageIntervalGQL";
|
|
|
|
|
elapsedTime: Scalars["Float"]["output"];
|
|
|
|
|
@@ -2497,7 +2504,9 @@ export type Mutation = {
|
|
|
|
|
editShot: EditShotReturn;
|
|
|
|
|
editUploadStream: Scalars["Boolean"]["output"];
|
|
|
|
|
editUser: UserGql;
|
|
|
|
|
endCameraLease: CameraLease;
|
|
|
|
|
ensureStripeCustomerExists: UserGql;
|
|
|
|
|
extendCameraLease: CameraLease;
|
|
|
|
|
finalizePlayerAssignments: Array<PlayerClusterGql>;
|
|
|
|
|
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
|
|
|
|
followUser: UserGql;
|
|
|
|
|
@@ -2560,6 +2569,9 @@ export type MutationCreateBucketSetArgs = {
|
|
|
|
|
|
|
|
|
|
export type MutationCreateCameraClaimSessionArgs = {
|
|
|
|
|
cameraId: Scalars["ID"]["input"];
|
|
|
|
|
durationMinutes?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
videoName?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
videoPrivate?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationCreateChallengeArgs = {
|
|
|
|
|
@@ -2647,6 +2659,15 @@ export type MutationEditUserArgs = {
|
|
|
|
|
input: EditUserInputGql;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationEndCameraLeaseArgs = {
|
|
|
|
|
leaseId: Scalars["ID"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationExtendCameraLeaseArgs = {
|
|
|
|
|
additionalMinutes?: Scalars["Int"]["input"];
|
|
|
|
|
leaseId: Scalars["ID"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationFinalizePlayerAssignmentsArgs = {
|
|
|
|
|
input: FinalizePlayerAssignmentsInput;
|
|
|
|
|
};
|
|
|
|
|
@@ -2947,6 +2968,7 @@ export type PoolHallCamera = {
|
|
|
|
|
__typename?: "PoolHallCamera";
|
|
|
|
|
createdAt: Scalars["DateTime"]["output"];
|
|
|
|
|
id: Scalars["ID"]["output"];
|
|
|
|
|
inUse: Scalars["Boolean"]["output"];
|
|
|
|
|
lastPublishedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
|
|
|
lastUnpublishedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
|
|
|
name: Scalars["String"]["output"];
|
|
|
|
|
@@ -3014,6 +3036,7 @@ export type Query = {
|
|
|
|
|
getDrillRunLeaderboard: DrillRunLeaderboardGql;
|
|
|
|
|
getFeedVideos: VideoHistoryGql;
|
|
|
|
|
getGameTypeTagMetrics: Array<GameTypeTagMetric>;
|
|
|
|
|
getLiveTableState: LiveTableStateGql;
|
|
|
|
|
getLoggedInUser?: Maybe<UserGql>;
|
|
|
|
|
getLongestRunsLeaderboard: RunLeaderboardGql;
|
|
|
|
|
getMakesLeaderboard: CountLeaderboardGql;
|
|
|
|
|
@@ -3118,6 +3141,10 @@ export type QueryGetGameTypeTagMetricsArgs = {
|
|
|
|
|
input: GameTypeTagMetricsInput;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetLiveTableStateArgs = {
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetLongestRunsLeaderboardArgs = {
|
|
|
|
|
interval?: InputMaybe<TimeInterval>;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
@@ -5086,6 +5113,43 @@ export type GetMyDrillRunsQuery = {
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetLiveStreamsQueryVariables = Exact<{
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetLiveStreamsQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getFeedVideos: {
|
|
|
|
|
__typename?: "VideoHistoryGQL";
|
|
|
|
|
videos: Array<{
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
screenshotUri?: string | null;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
} | null;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
lastSegmentUploadedAt?: any | null;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
pageInfo: {
|
|
|
|
|
__typename?: "PageInfoGQL";
|
|
|
|
|
hasNextPage: boolean;
|
|
|
|
|
endCursor?: string | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["ID"]["input"];
|
|
|
|
|
intervalDuration: Scalars["Int"]["input"];
|
|
|
|
|
@@ -5537,6 +5601,7 @@ export type PoolHallCameraFieldsFragment = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5553,6 +5618,7 @@ export type PoolHallCameraWithHallFieldsFragment = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5585,6 +5651,7 @@ export type PoolHallCameraStreamCredentialsFieldsFragment = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5627,6 +5694,7 @@ export type CameraClaimSessionFieldsFragment = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5670,6 +5738,7 @@ export type CameraLeaseFieldsFragment = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5743,6 +5812,7 @@ export type GetPoolHallCamerasQuery = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5778,6 +5848,7 @@ export type GetClaimableCamerasQuery = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5826,6 +5897,7 @@ export type GetCameraClaimSessionQuery = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5876,6 +5948,7 @@ export type GetActiveCameraLeaseQuery = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5956,6 +6029,7 @@ export type CreatePoolHallCameraMutation = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -5992,6 +6066,7 @@ export type UpdatePoolHallCameraMutation = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -6031,6 +6106,7 @@ export type RotatePoolHallCameraStreamKeyMutation = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -6053,6 +6129,9 @@ export type RotatePoolHallCameraStreamKeyMutation = {
|
|
|
|
|
|
|
|
|
|
export type CreateCameraClaimSessionMutationVariables = Exact<{
|
|
|
|
|
cameraId: Scalars["ID"]["input"];
|
|
|
|
|
durationMinutes?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
videoName?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
videoPrivate?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type CreateCameraClaimSessionMutation = {
|
|
|
|
|
@@ -6080,6 +6159,7 @@ export type CreateCameraClaimSessionMutation = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -6129,6 +6209,110 @@ export type CancelCameraClaimSessionMutation = {
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
updatedAt: any;
|
|
|
|
|
poolHall: {
|
|
|
|
|
__typename?: "PoolHall";
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
address?: string | null;
|
|
|
|
|
latitude?: number | null;
|
|
|
|
|
longitude?: number | null;
|
|
|
|
|
timezone?: string | null;
|
|
|
|
|
status: string;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
updatedAt: any;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type EndCameraLeaseMutationVariables = Exact<{
|
|
|
|
|
leaseId: Scalars["ID"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type EndCameraLeaseMutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
endCameraLease: {
|
|
|
|
|
__typename?: "CameraLease";
|
|
|
|
|
id: string;
|
|
|
|
|
cameraId: string;
|
|
|
|
|
claimSessionId?: string | null;
|
|
|
|
|
userId: string;
|
|
|
|
|
videoId?: string | null;
|
|
|
|
|
status: string;
|
|
|
|
|
startedAt: any;
|
|
|
|
|
endedAt?: any | null;
|
|
|
|
|
expiresAt?: any | null;
|
|
|
|
|
endReason?: string | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
updatedAt: any;
|
|
|
|
|
camera: {
|
|
|
|
|
__typename?: "PoolHallCamera";
|
|
|
|
|
id: string;
|
|
|
|
|
poolHallId: string;
|
|
|
|
|
name: string;
|
|
|
|
|
tableLabel?: string | null;
|
|
|
|
|
streamPath: string;
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
updatedAt: any;
|
|
|
|
|
poolHall: {
|
|
|
|
|
__typename?: "PoolHall";
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
address?: string | null;
|
|
|
|
|
latitude?: number | null;
|
|
|
|
|
longitude?: number | null;
|
|
|
|
|
timezone?: string | null;
|
|
|
|
|
status: string;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
updatedAt: any;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type ExtendCameraLeaseMutationVariables = Exact<{
|
|
|
|
|
leaseId: Scalars["ID"]["input"];
|
|
|
|
|
additionalMinutes?: Scalars["Int"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type ExtendCameraLeaseMutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
extendCameraLease: {
|
|
|
|
|
__typename?: "CameraLease";
|
|
|
|
|
id: string;
|
|
|
|
|
cameraId: string;
|
|
|
|
|
claimSessionId?: string | null;
|
|
|
|
|
userId: string;
|
|
|
|
|
videoId?: string | null;
|
|
|
|
|
status: string;
|
|
|
|
|
startedAt: any;
|
|
|
|
|
endedAt?: any | null;
|
|
|
|
|
expiresAt?: any | null;
|
|
|
|
|
endReason?: string | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
updatedAt: any;
|
|
|
|
|
camera: {
|
|
|
|
|
__typename?: "PoolHallCamera";
|
|
|
|
|
id: string;
|
|
|
|
|
poolHallId: string;
|
|
|
|
|
name: string;
|
|
|
|
|
tableLabel?: string | null;
|
|
|
|
|
streamPath: string;
|
|
|
|
|
status: string;
|
|
|
|
|
tableSize?: number | null;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
inUse: boolean;
|
|
|
|
|
lastPublishedAt?: any | null;
|
|
|
|
|
lastUnpublishedAt?: any | null;
|
|
|
|
|
createdAt: any;
|
|
|
|
|
@@ -6369,6 +6553,51 @@ export type GetTableStateQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetLiveTableStateQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetLiveTableStateQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getLiveTableState: {
|
|
|
|
|
__typename?: "LiveTableStateGQL";
|
|
|
|
|
videoId: number;
|
|
|
|
|
frameIndex: number;
|
|
|
|
|
tableState: {
|
|
|
|
|
__typename?: "TableStateGQL";
|
|
|
|
|
identifierToPosition: Array<Array<number>>;
|
|
|
|
|
homography?: {
|
|
|
|
|
__typename?: "HomographyInfoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
frameIndex: number;
|
|
|
|
|
crop: {
|
|
|
|
|
__typename?: "BoundingBoxGQL";
|
|
|
|
|
left: number;
|
|
|
|
|
top: number;
|
|
|
|
|
width: number;
|
|
|
|
|
height: number;
|
|
|
|
|
};
|
|
|
|
|
pockets: Array<{
|
|
|
|
|
__typename?: "BoundingBoxGQL";
|
|
|
|
|
left: number;
|
|
|
|
|
top: number;
|
|
|
|
|
width: number;
|
|
|
|
|
height: number;
|
|
|
|
|
}>;
|
|
|
|
|
sourcePoints: {
|
|
|
|
|
__typename?: "PocketPointsGQL";
|
|
|
|
|
topLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
|
|
|
|
topSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
|
|
|
|
topRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
|
|
|
|
bottomLeft: { __typename?: "IntPoint2D"; x: number; y: number };
|
|
|
|
|
bottomSide: { __typename?: "IntPoint2D"; x: number; y: number };
|
|
|
|
|
bottomRight: { __typename?: "IntPoint2D"; x: number; y: number };
|
|
|
|
|
};
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type SimulateShotQueryVariables = Exact<{
|
|
|
|
|
simulationInput: SimulateShotInputGql;
|
|
|
|
|
}>;
|
|
|
|
|
@@ -8468,6 +8697,7 @@ export const PoolHallCameraFieldsFragmentDoc = gql`
|
|
|
|
|
status
|
|
|
|
|
tableSize
|
|
|
|
|
pocketSize
|
|
|
|
|
inUse
|
|
|
|
|
lastPublishedAt
|
|
|
|
|
lastUnpublishedAt
|
|
|
|
|
createdAt
|
|
|
|
|
@@ -11250,6 +11480,105 @@ export type GetMyDrillRunsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetMyDrillRunsQuery,
|
|
|
|
|
GetMyDrillRunsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetLiveStreamsDocument = gql`
|
|
|
|
|
query GetLiveStreams($limit: Int! = 25) {
|
|
|
|
|
getFeedVideos(
|
|
|
|
|
limit: $limit
|
|
|
|
|
filters: { isStreamCompleted: false, requireCursorCompletion: false }
|
|
|
|
|
includePrivate: MINE
|
|
|
|
|
feedInput: { allUsers: true }
|
|
|
|
|
) {
|
|
|
|
|
videos {
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
startTime
|
|
|
|
|
createdAt
|
|
|
|
|
screenshotUri
|
|
|
|
|
elapsedTime
|
|
|
|
|
owner {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
}
|
|
|
|
|
stream {
|
|
|
|
|
id
|
|
|
|
|
isCompleted
|
|
|
|
|
lastSegmentUploadedAt
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
pageInfo {
|
|
|
|
|
hasNextPage
|
|
|
|
|
endCursor
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetLiveStreamsQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetLiveStreamsQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetLiveStreamsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
|
|
|
* you can use to render your UI.
|
|
|
|
|
*
|
|
|
|
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* const { data, loading, error } = useGetLiveStreamsQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetLiveStreamsQuery(
|
|
|
|
|
baseOptions?: Apollo.QueryHookOptions<
|
|
|
|
|
GetLiveStreamsQuery,
|
|
|
|
|
GetLiveStreamsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<GetLiveStreamsQuery, GetLiveStreamsQueryVariables>(
|
|
|
|
|
GetLiveStreamsDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export function useGetLiveStreamsLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetLiveStreamsQuery,
|
|
|
|
|
GetLiveStreamsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<GetLiveStreamsQuery, GetLiveStreamsQueryVariables>(
|
|
|
|
|
GetLiveStreamsDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export function useGetLiveStreamsSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetLiveStreamsQuery,
|
|
|
|
|
GetLiveStreamsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetLiveStreamsQuery,
|
|
|
|
|
GetLiveStreamsQueryVariables
|
|
|
|
|
>(GetLiveStreamsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetLiveStreamsQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetLiveStreamsQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetLiveStreamsLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetLiveStreamsLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetLiveStreamsSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetLiveStreamsSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetLiveStreamsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetLiveStreamsQuery,
|
|
|
|
|
GetLiveStreamsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetVideoMakePercentageIntervalsDocument = gql`
|
|
|
|
|
query GetVideoMakePercentageIntervals(
|
|
|
|
|
$videoId: ID!
|
|
|
|
|
@@ -13094,8 +13423,18 @@ export type RotatePoolHallCameraStreamKeyMutationOptions =
|
|
|
|
|
RotatePoolHallCameraStreamKeyMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const CreateCameraClaimSessionDocument = gql`
|
|
|
|
|
mutation CreateCameraClaimSession($cameraId: ID!) {
|
|
|
|
|
createCameraClaimSession(cameraId: $cameraId) {
|
|
|
|
|
mutation CreateCameraClaimSession(
|
|
|
|
|
$cameraId: ID!
|
|
|
|
|
$durationMinutes: Int
|
|
|
|
|
$videoName: String
|
|
|
|
|
$videoPrivate: Boolean
|
|
|
|
|
) {
|
|
|
|
|
createCameraClaimSession(
|
|
|
|
|
cameraId: $cameraId
|
|
|
|
|
durationMinutes: $durationMinutes
|
|
|
|
|
videoName: $videoName
|
|
|
|
|
videoPrivate: $videoPrivate
|
|
|
|
|
) {
|
|
|
|
|
...CameraClaimSessionFields
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@@ -13120,6 +13459,9 @@ export type CreateCameraClaimSessionMutationFn = Apollo.MutationFunction<
|
|
|
|
|
* const [createCameraClaimSessionMutation, { data, loading, error }] = useCreateCameraClaimSessionMutation({
|
|
|
|
|
* variables: {
|
|
|
|
|
* cameraId: // value for 'cameraId'
|
|
|
|
|
* durationMinutes: // value for 'durationMinutes'
|
|
|
|
|
* videoName: // value for 'videoName'
|
|
|
|
|
* videoPrivate: // value for 'videoPrivate'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
@@ -13197,6 +13539,112 @@ export type CancelCameraClaimSessionMutationOptions =
|
|
|
|
|
CancelCameraClaimSessionMutation,
|
|
|
|
|
CancelCameraClaimSessionMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const EndCameraLeaseDocument = gql`
|
|
|
|
|
mutation EndCameraLease($leaseId: ID!) {
|
|
|
|
|
endCameraLease(leaseId: $leaseId) {
|
|
|
|
|
...CameraLeaseFields
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${CameraLeaseFieldsFragmentDoc}
|
|
|
|
|
`;
|
|
|
|
|
export type EndCameraLeaseMutationFn = Apollo.MutationFunction<
|
|
|
|
|
EndCameraLeaseMutation,
|
|
|
|
|
EndCameraLeaseMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useEndCameraLeaseMutation__
|
|
|
|
|
*
|
|
|
|
|
* To run a mutation, you first call `useEndCameraLeaseMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useEndCameraLeaseMutation` returns a tuple that includes:
|
|
|
|
|
* - A mutate function that you can call at any time to execute the mutation
|
|
|
|
|
* - An object with fields that represent the current status of the mutation's execution
|
|
|
|
|
*
|
|
|
|
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* const [endCameraLeaseMutation, { data, loading, error }] = useEndCameraLeaseMutation({
|
|
|
|
|
* variables: {
|
|
|
|
|
* leaseId: // value for 'leaseId'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useEndCameraLeaseMutation(
|
|
|
|
|
baseOptions?: Apollo.MutationHookOptions<
|
|
|
|
|
EndCameraLeaseMutation,
|
|
|
|
|
EndCameraLeaseMutationVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useMutation<
|
|
|
|
|
EndCameraLeaseMutation,
|
|
|
|
|
EndCameraLeaseMutationVariables
|
|
|
|
|
>(EndCameraLeaseDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type EndCameraLeaseMutationHookResult = ReturnType<
|
|
|
|
|
typeof useEndCameraLeaseMutation
|
|
|
|
|
>;
|
|
|
|
|
export type EndCameraLeaseMutationResult =
|
|
|
|
|
Apollo.MutationResult<EndCameraLeaseMutation>;
|
|
|
|
|
export type EndCameraLeaseMutationOptions = Apollo.BaseMutationOptions<
|
|
|
|
|
EndCameraLeaseMutation,
|
|
|
|
|
EndCameraLeaseMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const ExtendCameraLeaseDocument = gql`
|
|
|
|
|
mutation ExtendCameraLease($leaseId: ID!, $additionalMinutes: Int! = 60) {
|
|
|
|
|
extendCameraLease(
|
|
|
|
|
leaseId: $leaseId
|
|
|
|
|
additionalMinutes: $additionalMinutes
|
|
|
|
|
) {
|
|
|
|
|
...CameraLeaseFields
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${CameraLeaseFieldsFragmentDoc}
|
|
|
|
|
`;
|
|
|
|
|
export type ExtendCameraLeaseMutationFn = Apollo.MutationFunction<
|
|
|
|
|
ExtendCameraLeaseMutation,
|
|
|
|
|
ExtendCameraLeaseMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useExtendCameraLeaseMutation__
|
|
|
|
|
*
|
|
|
|
|
* To run a mutation, you first call `useExtendCameraLeaseMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useExtendCameraLeaseMutation` returns a tuple that includes:
|
|
|
|
|
* - A mutate function that you can call at any time to execute the mutation
|
|
|
|
|
* - An object with fields that represent the current status of the mutation's execution
|
|
|
|
|
*
|
|
|
|
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* const [extendCameraLeaseMutation, { data, loading, error }] = useExtendCameraLeaseMutation({
|
|
|
|
|
* variables: {
|
|
|
|
|
* leaseId: // value for 'leaseId'
|
|
|
|
|
* additionalMinutes: // value for 'additionalMinutes'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useExtendCameraLeaseMutation(
|
|
|
|
|
baseOptions?: Apollo.MutationHookOptions<
|
|
|
|
|
ExtendCameraLeaseMutation,
|
|
|
|
|
ExtendCameraLeaseMutationVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useMutation<
|
|
|
|
|
ExtendCameraLeaseMutation,
|
|
|
|
|
ExtendCameraLeaseMutationVariables
|
|
|
|
|
>(ExtendCameraLeaseDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type ExtendCameraLeaseMutationHookResult = ReturnType<
|
|
|
|
|
typeof useExtendCameraLeaseMutation
|
|
|
|
|
>;
|
|
|
|
|
export type ExtendCameraLeaseMutationResult =
|
|
|
|
|
Apollo.MutationResult<ExtendCameraLeaseMutation>;
|
|
|
|
|
export type ExtendCameraLeaseMutationOptions = Apollo.BaseMutationOptions<
|
|
|
|
|
ExtendCameraLeaseMutation,
|
|
|
|
|
ExtendCameraLeaseMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const ReactToVideoDocument = gql`
|
|
|
|
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
|
|
|
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
|
|
|
|
@@ -13654,6 +14102,87 @@ export type GetTableStateQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetTableStateQuery,
|
|
|
|
|
GetTableStateQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetLiveTableStateDocument = gql`
|
|
|
|
|
query GetLiveTableState($videoId: Int!) {
|
|
|
|
|
getLiveTableState(videoId: $videoId) {
|
|
|
|
|
videoId
|
|
|
|
|
frameIndex
|
|
|
|
|
tableState {
|
|
|
|
|
identifierToPosition
|
|
|
|
|
homography {
|
|
|
|
|
...HomographyInfo
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${HomographyInfoFragmentDoc}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetLiveTableStateQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetLiveTableStateQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetLiveTableStateQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
|
|
|
* you can use to render your UI.
|
|
|
|
|
*
|
|
|
|
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* const { data, loading, error } = useGetLiveTableStateQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* videoId: // value for 'videoId'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetLiveTableStateQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>(GetLiveTableStateDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetLiveTableStateLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>(GetLiveTableStateDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetLiveTableStateSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>(GetLiveTableStateDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetLiveTableStateQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetLiveTableStateQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetLiveTableStateLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetLiveTableStateLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetLiveTableStateSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetLiveTableStateSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetLiveTableStateQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetLiveTableStateQuery,
|
|
|
|
|
GetLiveTableStateQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const SimulateShotDocument = gql`
|
|
|
|
|
query SimulateShot($simulationInput: SimulateShotInputGQL!) {
|
|
|
|
|
simulateShot(simulationInput: $simulationInput) {
|
|
|
|
|
|