|
|
|
@@ -2002,6 +2002,7 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
|
|
|
|
export type Mutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
addAnnotationToShot: AddShotAnnotationReturn;
|
|
|
|
|
checkHomographyIsValid?: Maybe<HomographyInfoGql>;
|
|
|
|
|
createBucketSet: BucketSetGql;
|
|
|
|
|
createUploadStream: CreateUploadStreamReturn;
|
|
|
|
|
deleteVideo: Scalars["Boolean"]["output"];
|
|
|
|
@@ -2024,6 +2025,11 @@ export type MutationAddAnnotationToShotArgs = {
|
|
|
|
|
shotId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationCheckHomographyIsValidArgs = {
|
|
|
|
|
b64Image: Scalars["String"]["input"];
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationCreateBucketSetArgs = {
|
|
|
|
|
params: CreateBucketSetInput;
|
|
|
|
|
};
|
|
|
|
@@ -2211,6 +2217,7 @@ export type QueryGetMedalsArgs = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetOrderedShotsArgs = {
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
@@ -2226,6 +2233,7 @@ export type QueryGetShotAnnotationTypesArgs = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetShotsArgs = {
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
shotsPagination?: InputMaybe<GetShotsPagination>;
|
|
|
|
@@ -2236,6 +2244,7 @@ export type QueryGetShotsByIdsArgs = {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type QueryGetShotsWithMetadataArgs = {
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
@@ -2725,6 +2734,51 @@ export type GetAggregatedShotMetricsQuery = {
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type CheckHomographyIsValidMutationVariables = Exact<{
|
|
|
|
|
b64Image: Scalars["String"]["input"];
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type CheckHomographyIsValidMutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
checkHomographyIsValid?: {
|
|
|
|
|
__typename?: "HomographyInfoGQL";
|
|
|
|
|
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 };
|
|
|
|
|
};
|
|
|
|
|
destPoints: {
|
|
|
|
|
__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 GetDeployedConfigQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
|
|
|
|
|
|
export type GetDeployedConfigQuery = {
|
|
|
|
@@ -2783,6 +2837,108 @@ export type GetFeedQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type VideoCardFieldsFragment = {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
screenshotUri?: string | null;
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
endTime?: any | null;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
} | null;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
|
name: string;
|
|
|
|
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
|
|
|
|
}>;
|
|
|
|
|
currentProcessing?: {
|
|
|
|
|
__typename?: "VideoProcessingGQL";
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>;
|
|
|
|
|
statuses: Array<{
|
|
|
|
|
__typename?: "VideoProcessingStatusGQL";
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
}>;
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoFeedQueryVariables = Exact<{
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
filters?: InputMaybe<VideoFilterInput>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetVideoFeedQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getFeedVideos: {
|
|
|
|
|
__typename?: "VideoHistoryGQL";
|
|
|
|
|
videos: Array<{
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name?: string | null;
|
|
|
|
|
screenshotUri?: string | null;
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
endTime?: any | null;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
} | null;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
|
name: string;
|
|
|
|
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
|
|
|
|
}>;
|
|
|
|
|
currentProcessing?: {
|
|
|
|
|
__typename?: "VideoProcessingGQL";
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
errors: Array<{
|
|
|
|
|
__typename?: "VideoProcessingErrorGQL";
|
|
|
|
|
message: string;
|
|
|
|
|
}>;
|
|
|
|
|
statuses: Array<{
|
|
|
|
|
__typename?: "VideoProcessingStatusGQL";
|
|
|
|
|
status: ProcessingStatusEnum;
|
|
|
|
|
}>;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
pageInfo: {
|
|
|
|
|
__typename?: "PageInfoGQL";
|
|
|
|
|
hasNextPage: boolean;
|
|
|
|
|
endCursor?: string | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["ID"]["input"];
|
|
|
|
|
intervalDuration: Scalars["Int"]["input"];
|
|
|
|
@@ -2883,11 +3039,26 @@ export type GetShotsWithVideoGqlQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithJustIdsQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithJustIdsQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getOrderedShots: {
|
|
|
|
|
__typename?: "GetShotsResult";
|
|
|
|
|
shots: Array<{ __typename?: "ShotGQL"; id: number; videoId: number }>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithMetadataFilterResultQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
shotsOrdering?: InputMaybe<GetShotsOrdering>;
|
|
|
|
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
|
|
|
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
|
|
|
|
countRespectsLimit?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetShotsWithMetadataFilterResultQuery = {
|
|
|
|
@@ -3294,6 +3465,15 @@ export type GetUserFollowingFollowersQuery = {
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type DoesUsernameExistQueryVariables = Exact<{
|
|
|
|
|
candidateUsername: Scalars["String"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type DoesUsernameExistQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
doesUsernameExist: boolean;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetStreamMonitoringDetailsQueryVariables = Exact<{
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
debuggingJson?: InputMaybe<Scalars["JSON"]["input"]>;
|
|
|
|
@@ -3895,6 +4075,47 @@ export type GetUploadStreamsWithDetailsQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
fragment VideoCardFields on VideoGQL {
|
|
|
|
|
id
|
|
|
|
|
owner {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
}
|
|
|
|
|
name
|
|
|
|
|
screenshotUri
|
|
|
|
|
totalShotsMade
|
|
|
|
|
totalShots
|
|
|
|
|
makePercentage
|
|
|
|
|
createdAt
|
|
|
|
|
updatedAt
|
|
|
|
|
startTime
|
|
|
|
|
endTime
|
|
|
|
|
elapsedTime
|
|
|
|
|
screenshotUri
|
|
|
|
|
stream {
|
|
|
|
|
id
|
|
|
|
|
isCompleted
|
|
|
|
|
}
|
|
|
|
|
tableSize
|
|
|
|
|
tags {
|
|
|
|
|
tagClasses {
|
|
|
|
|
name
|
|
|
|
|
}
|
|
|
|
|
name
|
|
|
|
|
}
|
|
|
|
|
currentProcessing {
|
|
|
|
|
errors {
|
|
|
|
|
message
|
|
|
|
|
}
|
|
|
|
|
status
|
|
|
|
|
statuses {
|
|
|
|
|
status
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
|
|
|
|
fragment ShotWithAllFeatures on ShotGQL {
|
|
|
|
|
id
|
|
|
|
@@ -4093,6 +4314,121 @@ export type GetAggregatedShotMetricsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetAggregatedShotMetricsQuery,
|
|
|
|
|
GetAggregatedShotMetricsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const CheckHomographyIsValidDocument = gql`
|
|
|
|
|
mutation checkHomographyIsValid($b64Image: String!, $videoId: Int!) {
|
|
|
|
|
checkHomographyIsValid(b64Image: $b64Image, videoId: $videoId) {
|
|
|
|
|
frameIndex
|
|
|
|
|
crop {
|
|
|
|
|
left
|
|
|
|
|
top
|
|
|
|
|
width
|
|
|
|
|
height
|
|
|
|
|
}
|
|
|
|
|
pockets {
|
|
|
|
|
left
|
|
|
|
|
top
|
|
|
|
|
width
|
|
|
|
|
height
|
|
|
|
|
}
|
|
|
|
|
sourcePoints {
|
|
|
|
|
topLeft {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
topSide {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
topRight {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
bottomLeft {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
bottomSide {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
bottomRight {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
destPoints {
|
|
|
|
|
topLeft {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
topSide {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
topRight {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
bottomLeft {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
bottomSide {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
bottomRight {
|
|
|
|
|
x
|
|
|
|
|
y
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export type CheckHomographyIsValidMutationFn = Apollo.MutationFunction<
|
|
|
|
|
CheckHomographyIsValidMutation,
|
|
|
|
|
CheckHomographyIsValidMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useCheckHomographyIsValidMutation__
|
|
|
|
|
*
|
|
|
|
|
* To run a mutation, you first call `useCheckHomographyIsValidMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useCheckHomographyIsValidMutation` 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 [checkHomographyIsValidMutation, { data, loading, error }] = useCheckHomographyIsValidMutation({
|
|
|
|
|
* variables: {
|
|
|
|
|
* b64Image: // value for 'b64Image'
|
|
|
|
|
* videoId: // value for 'videoId'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useCheckHomographyIsValidMutation(
|
|
|
|
|
baseOptions?: Apollo.MutationHookOptions<
|
|
|
|
|
CheckHomographyIsValidMutation,
|
|
|
|
|
CheckHomographyIsValidMutationVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useMutation<
|
|
|
|
|
CheckHomographyIsValidMutation,
|
|
|
|
|
CheckHomographyIsValidMutationVariables
|
|
|
|
|
>(CheckHomographyIsValidDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type CheckHomographyIsValidMutationHookResult = ReturnType<
|
|
|
|
|
typeof useCheckHomographyIsValidMutation
|
|
|
|
|
>;
|
|
|
|
|
export type CheckHomographyIsValidMutationResult =
|
|
|
|
|
Apollo.MutationResult<CheckHomographyIsValidMutation>;
|
|
|
|
|
export type CheckHomographyIsValidMutationOptions = Apollo.BaseMutationOptions<
|
|
|
|
|
CheckHomographyIsValidMutation,
|
|
|
|
|
CheckHomographyIsValidMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetDeployedConfigDocument = gql`
|
|
|
|
|
query getDeployedConfig {
|
|
|
|
|
getDeployedConfig {
|
|
|
|
@@ -4272,6 +4608,92 @@ export type GetFeedQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetFeedQuery,
|
|
|
|
|
GetFeedQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetVideoFeedDocument = gql`
|
|
|
|
|
query GetVideoFeed(
|
|
|
|
|
$limit: Int! = 5
|
|
|
|
|
$after: String = null
|
|
|
|
|
$filters: VideoFilterInput = null
|
|
|
|
|
) {
|
|
|
|
|
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
|
|
|
|
videos {
|
|
|
|
|
...VideoCardFields
|
|
|
|
|
}
|
|
|
|
|
pageInfo {
|
|
|
|
|
hasNextPage
|
|
|
|
|
endCursor
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${VideoCardFieldsFragmentDoc}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetVideoFeedQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetVideoFeedQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetVideoFeedQuery` 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 } = useGetVideoFeedQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* after: // value for 'after'
|
|
|
|
|
* filters: // value for 'filters'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetVideoFeedQuery(
|
|
|
|
|
baseOptions?: Apollo.QueryHookOptions<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
|
|
|
|
GetVideoFeedDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export function useGetVideoFeedLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
|
|
|
|
GetVideoFeedDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export function useGetVideoFeedSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<GetVideoFeedQuery, GetVideoFeedQueryVariables>(
|
|
|
|
|
GetVideoFeedDocument,
|
|
|
|
|
options,
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
export type GetVideoFeedQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetVideoFeedQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetVideoFeedLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetVideoFeedLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetVideoFeedSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetVideoFeedSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetVideoFeedQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetVideoFeedQuery,
|
|
|
|
|
GetVideoFeedQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetVideoMakePercentageIntervalsDocument = gql`
|
|
|
|
|
query GetVideoMakePercentageIntervals(
|
|
|
|
|
$videoId: ID!
|
|
|
|
@@ -4663,18 +5085,106 @@ export type GetShotsWithVideoGqlQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetShotsWithVideoGqlQuery,
|
|
|
|
|
GetShotsWithVideoGqlQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetShotsWithJustIdsDocument = gql`
|
|
|
|
|
query GetShotsWithJustIds(
|
|
|
|
|
$filterInput: FilterInput!
|
|
|
|
|
$shotsOrdering: GetShotsOrdering
|
|
|
|
|
$limit: Int
|
|
|
|
|
) {
|
|
|
|
|
getOrderedShots(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
shotsOrdering: $shotsOrdering
|
|
|
|
|
limit: $limit
|
|
|
|
|
) {
|
|
|
|
|
shots {
|
|
|
|
|
id
|
|
|
|
|
videoId
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetShotsWithJustIdsQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetShotsWithJustIdsQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetShotsWithJustIdsQuery` 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 } = useGetShotsWithJustIdsQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* filterInput: // value for 'filterInput'
|
|
|
|
|
* shotsOrdering: // value for 'shotsOrdering'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetShotsWithJustIdsQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>(GetShotsWithJustIdsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetShotsWithJustIdsLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>(GetShotsWithJustIdsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetShotsWithJustIdsSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>(GetShotsWithJustIdsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetShotsWithJustIdsQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetShotsWithJustIdsQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetShotsWithJustIdsLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetShotsWithJustIdsLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetShotsWithJustIdsSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetShotsWithJustIdsSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetShotsWithJustIdsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetShotsWithJustIdsQuery,
|
|
|
|
|
GetShotsWithJustIdsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetShotsWithMetadataFilterResultDocument = gql`
|
|
|
|
|
query GetShotsWithMetadataFilterResult(
|
|
|
|
|
$filterInput: FilterInput!
|
|
|
|
|
$shotsOrdering: GetShotsOrdering
|
|
|
|
|
$limit: Int
|
|
|
|
|
$ids: [Int!]
|
|
|
|
|
$countRespectsLimit: Boolean
|
|
|
|
|
) {
|
|
|
|
|
getOrderedShots(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
shotsOrdering: $shotsOrdering
|
|
|
|
|
limit: $limit
|
|
|
|
|
ids: $ids
|
|
|
|
|
countRespectsLimit: $countRespectsLimit
|
|
|
|
|
) {
|
|
|
|
|
count
|
|
|
|
|
shots {
|
|
|
|
@@ -4702,6 +5212,7 @@ export const GetShotsWithMetadataFilterResultDocument = gql`
|
|
|
|
|
* shotsOrdering: // value for 'shotsOrdering'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* ids: // value for 'ids'
|
|
|
|
|
* countRespectsLimit: // value for 'countRespectsLimit'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
@@ -5631,6 +6142,77 @@ export type GetUserFollowingFollowersQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetUserFollowingFollowersQuery,
|
|
|
|
|
GetUserFollowingFollowersQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const DoesUsernameExistDocument = gql`
|
|
|
|
|
query doesUsernameExist($candidateUsername: String!) {
|
|
|
|
|
doesUsernameExist(candidateUsername: $candidateUsername)
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useDoesUsernameExistQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useDoesUsernameExistQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useDoesUsernameExistQuery` 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 } = useDoesUsernameExistQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* candidateUsername: // value for 'candidateUsername'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useDoesUsernameExistQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>(DoesUsernameExistDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useDoesUsernameExistLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>(DoesUsernameExistDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useDoesUsernameExistSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>(DoesUsernameExistDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type DoesUsernameExistQueryHookResult = ReturnType<
|
|
|
|
|
typeof useDoesUsernameExistQuery
|
|
|
|
|
>;
|
|
|
|
|
export type DoesUsernameExistLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useDoesUsernameExistLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type DoesUsernameExistSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useDoesUsernameExistSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type DoesUsernameExistQueryResult = Apollo.QueryResult<
|
|
|
|
|
DoesUsernameExistQuery,
|
|
|
|
|
DoesUsernameExistQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetStreamMonitoringDetailsDocument = gql`
|
|
|
|
|
query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|
|
|
|
getVideo(videoId: $videoId, debuggingJson: $debuggingJson) {
|
|
|
|
|