Compare commits
8 Commits
3484af9dde
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| b6adae4949 | |||
| 459e89d8b8 | |||
| fa2ff19572 | |||
| 428286fa5a | |||
|
|
8771350115 | ||
|
|
f1594b8492 | ||
|
|
3ec3e3d081 | ||
|
|
d2c697e4cb |
376
src/index.tsx
376
src/index.tsx
@@ -300,6 +300,7 @@ export type DeployedConfigGql = {
|
|||||||
firebase: Scalars["Boolean"]["output"];
|
firebase: Scalars["Boolean"]["output"];
|
||||||
minimumAllowedAppVersion: Scalars["String"]["output"];
|
minimumAllowedAppVersion: Scalars["String"]["output"];
|
||||||
quotaEnforcementEnabled: Scalars["Boolean"]["output"];
|
quotaEnforcementEnabled: Scalars["Boolean"]["output"];
|
||||||
|
storageLimitEnforcementEnabled: Scalars["Boolean"]["output"];
|
||||||
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
subscriptionGatingEnabled: Scalars["Boolean"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2287,7 +2288,7 @@ export type GetShotsResult = {
|
|||||||
|
|
||||||
export type GetUploadLinkErrors = {
|
export type GetUploadLinkErrors = {
|
||||||
__typename?: "GetUploadLinkErrors";
|
__typename?: "GetUploadLinkErrors";
|
||||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr;
|
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrStorageLimitExceededErr;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetUploadLinkReturn = {
|
export type GetUploadLinkReturn = {
|
||||||
@@ -2391,13 +2392,14 @@ export type MustHaveSetForUploadLinkErr = {
|
|||||||
resolution?: Maybe<Scalars["Boolean"]["output"]>;
|
resolution?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrStorageLimitExceededErr =
|
||||||
|
|
||||||
| InitUploadAlreadyCompletedErr
|
| InitUploadAlreadyCompletedErr
|
||||||
| MustHaveSetForUploadLinkErr
|
| MustHaveSetForUploadLinkErr
|
||||||
| NoInitForChunkedUploadErr
|
| NoInitForChunkedUploadErr
|
||||||
| ProcessingFailedErr
|
| ProcessingFailedErr
|
||||||
| SegmentAlreadyUploadedErr
|
| SegmentAlreadyUploadedErr
|
||||||
|
| StorageLimitExceededErr
|
||||||
| TooManyInitUploadsErr
|
| TooManyInitUploadsErr
|
||||||
| TooManyProfileImageUploadsErr;
|
| TooManyProfileImageUploadsErr;
|
||||||
|
|
||||||
@@ -2440,6 +2442,7 @@ export type Mutation = {
|
|||||||
reactToVideo: Scalars["Boolean"]["output"];
|
reactToVideo: Scalars["Boolean"]["output"];
|
||||||
recalculateChallengeEntry: ChallengeEntry;
|
recalculateChallengeEntry: ChallengeEntry;
|
||||||
reportContent: Scalars["Boolean"]["output"];
|
reportContent: Scalars["Boolean"]["output"];
|
||||||
|
requestVideoExport: VideoExportJobGql;
|
||||||
respondToChallengeInvitation: ChallengeInvitation;
|
respondToChallengeInvitation: ChallengeInvitation;
|
||||||
retireTags: Scalars["Boolean"]["output"];
|
retireTags: Scalars["Boolean"]["output"];
|
||||||
revokeManualEntitlement: UserSubscriptionStatusGql;
|
revokeManualEntitlement: UserSubscriptionStatusGql;
|
||||||
@@ -2613,6 +2616,10 @@ export type MutationReportContentArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationRequestVideoExportArgs = {
|
||||||
|
input: RequestVideoExportInput;
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationRespondToChallengeInvitationArgs = {
|
export type MutationRespondToChallengeInvitationArgs = {
|
||||||
accept: Scalars["Boolean"]["input"];
|
accept: Scalars["Boolean"]["input"];
|
||||||
invitationId: Scalars["ID"]["input"];
|
invitationId: Scalars["ID"]["input"];
|
||||||
@@ -2706,6 +2713,7 @@ export enum NotificationTypeEnum {
|
|||||||
ChallengeInvite = "CHALLENGE_INVITE",
|
ChallengeInvite = "CHALLENGE_INVITE",
|
||||||
Comment = "COMMENT",
|
Comment = "COMMENT",
|
||||||
CommentReply = "COMMENT_REPLY",
|
CommentReply = "COMMENT_REPLY",
|
||||||
|
ExportReady = "EXPORT_READY",
|
||||||
Follow = "FOLLOW",
|
Follow = "FOLLOW",
|
||||||
Reaction = "REACTION",
|
Reaction = "REACTION",
|
||||||
}
|
}
|
||||||
@@ -2877,9 +2885,11 @@ export type Query = {
|
|||||||
myChallengeEntries: Array<ChallengeEntry>;
|
myChallengeEntries: Array<ChallengeEntry>;
|
||||||
myChallengeInvitations: Array<ChallengeInvitation>;
|
myChallengeInvitations: Array<ChallengeInvitation>;
|
||||||
myDismissedChallenges: Array<Challenge>;
|
myDismissedChallenges: Array<Challenge>;
|
||||||
|
myVideoExports: Array<VideoExportJobGql>;
|
||||||
notifications: NotificationConnection;
|
notifications: NotificationConnection;
|
||||||
ruleSets: Array<RuleSet>;
|
ruleSets: Array<RuleSet>;
|
||||||
unreadNotificationCount: Scalars["Int"]["output"];
|
unreadNotificationCount: Scalars["Int"]["output"];
|
||||||
|
videoExportJob?: Maybe<VideoExportJobGql>;
|
||||||
videoPlayerClusters: Array<PlayerClusterGql>;
|
videoPlayerClusters: Array<PlayerClusterGql>;
|
||||||
waitFor: Scalars["Float"]["output"];
|
waitFor: Scalars["Float"]["output"];
|
||||||
};
|
};
|
||||||
@@ -3056,12 +3066,21 @@ export type QueryIsChallengeDismissedArgs = {
|
|||||||
challengeId: Scalars["ID"]["input"];
|
challengeId: Scalars["ID"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryMyVideoExportsArgs = {
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
offset?: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryNotificationsArgs = {
|
export type QueryNotificationsArgs = {
|
||||||
filters?: InputMaybe<NotificationFilters>;
|
filters?: InputMaybe<NotificationFilters>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
offset?: Scalars["Int"]["input"];
|
offset?: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryVideoExportJobArgs = {
|
||||||
|
jobId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryVideoPlayerClustersArgs = {
|
export type QueryVideoPlayerClustersArgs = {
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
@@ -3121,6 +3140,13 @@ export enum ReportReasonEnum {
|
|||||||
Violence = "VIOLENCE",
|
Violence = "VIOLENCE",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type RequestVideoExportInput = {
|
||||||
|
mode: VideoExportModeEnum;
|
||||||
|
runId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
shotIds?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type RequestedMedalsGql = {
|
export type RequestedMedalsGql = {
|
||||||
__typename?: "RequestedMedalsGQL";
|
__typename?: "RequestedMedalsGQL";
|
||||||
dailyMakes50?: Maybe<MedalGql>;
|
dailyMakes50?: Maybe<MedalGql>;
|
||||||
@@ -3386,6 +3412,15 @@ export enum SpinTypeEnum {
|
|||||||
Unknown = "UNKNOWN",
|
Unknown = "UNKNOWN",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type StorageLimitExceededErr = {
|
||||||
|
__typename?: "StorageLimitExceededErr";
|
||||||
|
reason: Scalars["String"]["output"];
|
||||||
|
remainingStorageBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
||||||
|
retainedStorageLimitBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
||||||
|
retainedStorageUsedBytes: Scalars["BigInt"]["output"];
|
||||||
|
tierName: Scalars["String"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export type StorageStatusGql = {
|
export type StorageStatusGql = {
|
||||||
__typename?: "StorageStatusGQL";
|
__typename?: "StorageStatusGQL";
|
||||||
isNearLimit: Scalars["Boolean"]["output"];
|
isNearLimit: Scalars["Boolean"]["output"];
|
||||||
@@ -3648,6 +3683,35 @@ export type UserSubscriptionStatusGql = {
|
|||||||
validUntil?: Maybe<Scalars["DateTime"]["output"]>;
|
validUntil?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type VideoExportJobGql = {
|
||||||
|
__typename?: "VideoExportJobGQL";
|
||||||
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
downloadUrl?: Maybe<Scalars["String"]["output"]>;
|
||||||
|
expiresAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
|
fileSizeBytes?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
mode: VideoExportModeEnum;
|
||||||
|
runId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
shotIds?: Maybe<Array<Scalars["Int"]["output"]>>;
|
||||||
|
status: VideoExportStatusEnum;
|
||||||
|
videoId: Scalars["Int"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export enum VideoExportModeEnum {
|
||||||
|
FullSession = "FULL_SESSION",
|
||||||
|
Run = "RUN",
|
||||||
|
Shots = "SHOTS",
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum VideoExportStatusEnum {
|
||||||
|
Created = "CREATED",
|
||||||
|
Expired = "EXPIRED",
|
||||||
|
Failed = "FAILED",
|
||||||
|
Queued = "QUEUED",
|
||||||
|
Running = "RUNNING",
|
||||||
|
Succeeded = "SUCCEEDED",
|
||||||
|
}
|
||||||
|
|
||||||
export type VideoFeedInputGql =
|
export type VideoFeedInputGql =
|
||||||
| {
|
| {
|
||||||
allUsers: Scalars["Boolean"]["input"];
|
allUsers: Scalars["Boolean"]["input"];
|
||||||
@@ -7015,6 +7079,84 @@ export type HomographyInfoFragment = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type VideoExportJobFieldsFragment = {
|
||||||
|
__typename?: "VideoExportJobGQL";
|
||||||
|
id: number;
|
||||||
|
videoId: number;
|
||||||
|
mode: VideoExportModeEnum;
|
||||||
|
status: VideoExportStatusEnum;
|
||||||
|
shotIds?: Array<number> | null;
|
||||||
|
runId?: number | null;
|
||||||
|
downloadUrl?: string | null;
|
||||||
|
fileSizeBytes?: number | null;
|
||||||
|
expiresAt?: any | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type RequestVideoExportMutationVariables = Exact<{
|
||||||
|
input: RequestVideoExportInput;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type RequestVideoExportMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
requestVideoExport: {
|
||||||
|
__typename?: "VideoExportJobGQL";
|
||||||
|
id: number;
|
||||||
|
videoId: number;
|
||||||
|
mode: VideoExportModeEnum;
|
||||||
|
status: VideoExportStatusEnum;
|
||||||
|
shotIds?: Array<number> | null;
|
||||||
|
runId?: number | null;
|
||||||
|
downloadUrl?: string | null;
|
||||||
|
fileSizeBytes?: number | null;
|
||||||
|
expiresAt?: any | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
export type VideoExportJobQueryVariables = Exact<{
|
||||||
|
jobId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type VideoExportJobQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
videoExportJob?: {
|
||||||
|
__typename?: "VideoExportJobGQL";
|
||||||
|
id: number;
|
||||||
|
videoId: number;
|
||||||
|
mode: VideoExportModeEnum;
|
||||||
|
status: VideoExportStatusEnum;
|
||||||
|
shotIds?: Array<number> | null;
|
||||||
|
runId?: number | null;
|
||||||
|
downloadUrl?: string | null;
|
||||||
|
fileSizeBytes?: number | null;
|
||||||
|
expiresAt?: any | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type MyVideoExportsQueryVariables = Exact<{
|
||||||
|
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
offset?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type MyVideoExportsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
myVideoExports: Array<{
|
||||||
|
__typename?: "VideoExportJobGQL";
|
||||||
|
id: number;
|
||||||
|
videoId: number;
|
||||||
|
mode: VideoExportModeEnum;
|
||||||
|
status: VideoExportStatusEnum;
|
||||||
|
shotIds?: Array<number> | null;
|
||||||
|
runId?: number | null;
|
||||||
|
downloadUrl?: string | null;
|
||||||
|
fileSizeBytes?: number | null;
|
||||||
|
expiresAt?: any | null;
|
||||||
|
createdAt?: any | null;
|
||||||
|
}>;
|
||||||
|
};
|
||||||
|
|
||||||
export type CreateUploadStreamMutationVariables = Exact<{
|
export type CreateUploadStreamMutationVariables = Exact<{
|
||||||
videoMetadataInput: VideoMetadataInput;
|
videoMetadataInput: VideoMetadataInput;
|
||||||
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
@@ -7060,6 +7202,7 @@ export type GetUploadLinkMutation = {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
| { __typename?: "SegmentAlreadyUploadedErr"; segmentId: number }
|
| { __typename?: "SegmentAlreadyUploadedErr"; segmentId: number }
|
||||||
|
| { __typename?: "StorageLimitExceededErr" }
|
||||||
| { __typename?: "TooManyInitUploadsErr" }
|
| { __typename?: "TooManyInitUploadsErr" }
|
||||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||||
}
|
}
|
||||||
@@ -7102,6 +7245,14 @@ export type GetHlsInitUploadLinkMutation = {
|
|||||||
}
|
}
|
||||||
| { __typename?: "ProcessingFailedErr" }
|
| { __typename?: "ProcessingFailedErr" }
|
||||||
| { __typename?: "SegmentAlreadyUploadedErr" }
|
| { __typename?: "SegmentAlreadyUploadedErr" }
|
||||||
|
| {
|
||||||
|
__typename?: "StorageLimitExceededErr";
|
||||||
|
reason: string;
|
||||||
|
tierName: string;
|
||||||
|
retainedStorageUsedBytes: any;
|
||||||
|
retainedStorageLimitBytes?: any | null;
|
||||||
|
remainingStorageBytes?: any | null;
|
||||||
|
}
|
||||||
| { __typename?: "TooManyInitUploadsErr"; linksRequested: number }
|
| { __typename?: "TooManyInitUploadsErr"; linksRequested: number }
|
||||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||||
}
|
}
|
||||||
@@ -7580,6 +7731,20 @@ export const HomographyInfoFragmentDoc = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
export const VideoExportJobFieldsFragmentDoc = gql`
|
||||||
|
fragment VideoExportJobFields on VideoExportJobGQL {
|
||||||
|
id
|
||||||
|
videoId
|
||||||
|
mode
|
||||||
|
status
|
||||||
|
shotIds
|
||||||
|
runId
|
||||||
|
downloadUrl
|
||||||
|
fileSizeBytes
|
||||||
|
expiresAt
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
`;
|
||||||
export const UploadStreamWithDetailsFragmentDoc = gql`
|
export const UploadStreamWithDetailsFragmentDoc = gql`
|
||||||
fragment UploadStreamWithDetails on VideoGQL {
|
fragment UploadStreamWithDetails on VideoGQL {
|
||||||
id
|
id
|
||||||
@@ -14991,6 +15156,206 @@ export type FindPrerecordTableLayoutMutationOptions =
|
|||||||
FindPrerecordTableLayoutMutation,
|
FindPrerecordTableLayoutMutation,
|
||||||
FindPrerecordTableLayoutMutationVariables
|
FindPrerecordTableLayoutMutationVariables
|
||||||
>;
|
>;
|
||||||
|
export const RequestVideoExportDocument = gql`
|
||||||
|
mutation RequestVideoExport($input: RequestVideoExportInput!) {
|
||||||
|
requestVideoExport(input: $input) {
|
||||||
|
...VideoExportJobFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${VideoExportJobFieldsFragmentDoc}
|
||||||
|
`;
|
||||||
|
export type RequestVideoExportMutationFn = Apollo.MutationFunction<
|
||||||
|
RequestVideoExportMutation,
|
||||||
|
RequestVideoExportMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useRequestVideoExportMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useRequestVideoExportMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useRequestVideoExportMutation` 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 [requestVideoExportMutation, { data, loading, error }] = useRequestVideoExportMutation({
|
||||||
|
* variables: {
|
||||||
|
* input: // value for 'input'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useRequestVideoExportMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
RequestVideoExportMutation,
|
||||||
|
RequestVideoExportMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
RequestVideoExportMutation,
|
||||||
|
RequestVideoExportMutationVariables
|
||||||
|
>(RequestVideoExportDocument, options);
|
||||||
|
}
|
||||||
|
export type RequestVideoExportMutationHookResult = ReturnType<
|
||||||
|
typeof useRequestVideoExportMutation
|
||||||
|
>;
|
||||||
|
export type RequestVideoExportMutationResult =
|
||||||
|
Apollo.MutationResult<RequestVideoExportMutation>;
|
||||||
|
export type RequestVideoExportMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
RequestVideoExportMutation,
|
||||||
|
RequestVideoExportMutationVariables
|
||||||
|
>;
|
||||||
|
export const VideoExportJobDocument = gql`
|
||||||
|
query VideoExportJob($jobId: Int!) {
|
||||||
|
videoExportJob(jobId: $jobId) {
|
||||||
|
...VideoExportJobFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${VideoExportJobFieldsFragmentDoc}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useVideoExportJobQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useVideoExportJobQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useVideoExportJobQuery` 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 } = useVideoExportJobQuery({
|
||||||
|
* variables: {
|
||||||
|
* jobId: // value for 'jobId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useVideoExportJobQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<
|
||||||
|
VideoExportJobQuery,
|
||||||
|
VideoExportJobQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<VideoExportJobQuery, VideoExportJobQueryVariables>(
|
||||||
|
VideoExportJobDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useVideoExportJobLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
VideoExportJobQuery,
|
||||||
|
VideoExportJobQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<VideoExportJobQuery, VideoExportJobQueryVariables>(
|
||||||
|
VideoExportJobDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useVideoExportJobSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
VideoExportJobQuery,
|
||||||
|
VideoExportJobQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
VideoExportJobQuery,
|
||||||
|
VideoExportJobQueryVariables
|
||||||
|
>(VideoExportJobDocument, options);
|
||||||
|
}
|
||||||
|
export type VideoExportJobQueryHookResult = ReturnType<
|
||||||
|
typeof useVideoExportJobQuery
|
||||||
|
>;
|
||||||
|
export type VideoExportJobLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useVideoExportJobLazyQuery
|
||||||
|
>;
|
||||||
|
export type VideoExportJobSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useVideoExportJobSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type VideoExportJobQueryResult = Apollo.QueryResult<
|
||||||
|
VideoExportJobQuery,
|
||||||
|
VideoExportJobQueryVariables
|
||||||
|
>;
|
||||||
|
export const MyVideoExportsDocument = gql`
|
||||||
|
query MyVideoExports($limit: Int = 30, $offset: Int = 0) {
|
||||||
|
myVideoExports(limit: $limit, offset: $offset) {
|
||||||
|
...VideoExportJobFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${VideoExportJobFieldsFragmentDoc}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useMyVideoExportsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useMyVideoExportsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useMyVideoExportsQuery` 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 } = useMyVideoExportsQuery({
|
||||||
|
* variables: {
|
||||||
|
* limit: // value for 'limit'
|
||||||
|
* offset: // value for 'offset'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useMyVideoExportsQuery(
|
||||||
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
|
MyVideoExportsQuery,
|
||||||
|
MyVideoExportsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<MyVideoExportsQuery, MyVideoExportsQueryVariables>(
|
||||||
|
MyVideoExportsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useMyVideoExportsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
MyVideoExportsQuery,
|
||||||
|
MyVideoExportsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<MyVideoExportsQuery, MyVideoExportsQueryVariables>(
|
||||||
|
MyVideoExportsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useMyVideoExportsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
MyVideoExportsQuery,
|
||||||
|
MyVideoExportsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<
|
||||||
|
MyVideoExportsQuery,
|
||||||
|
MyVideoExportsQueryVariables
|
||||||
|
>(MyVideoExportsDocument, options);
|
||||||
|
}
|
||||||
|
export type MyVideoExportsQueryHookResult = ReturnType<
|
||||||
|
typeof useMyVideoExportsQuery
|
||||||
|
>;
|
||||||
|
export type MyVideoExportsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useMyVideoExportsLazyQuery
|
||||||
|
>;
|
||||||
|
export type MyVideoExportsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useMyVideoExportsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type MyVideoExportsQueryResult = Apollo.QueryResult<
|
||||||
|
MyVideoExportsQuery,
|
||||||
|
MyVideoExportsQueryVariables
|
||||||
|
>;
|
||||||
export const CreateUploadStreamDocument = gql`
|
export const CreateUploadStreamDocument = gql`
|
||||||
mutation CreateUploadStream(
|
mutation CreateUploadStream(
|
||||||
$videoMetadataInput: VideoMetadataInput!
|
$videoMetadataInput: VideoMetadataInput!
|
||||||
@@ -15151,6 +15516,13 @@ export const GetHlsInitUploadLinkDocument = gql`
|
|||||||
... on TooManyInitUploadsErr {
|
... on TooManyInitUploadsErr {
|
||||||
linksRequested
|
linksRequested
|
||||||
}
|
}
|
||||||
|
... on StorageLimitExceededErr {
|
||||||
|
reason
|
||||||
|
tierName
|
||||||
|
retainedStorageUsedBytes
|
||||||
|
retainedStorageLimitBytes
|
||||||
|
remainingStorageBytes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
30
src/operations/video_export.gql
Normal file
30
src/operations/video_export.gql
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
fragment VideoExportJobFields on VideoExportJobGQL {
|
||||||
|
id
|
||||||
|
videoId
|
||||||
|
mode
|
||||||
|
status
|
||||||
|
shotIds
|
||||||
|
runId
|
||||||
|
downloadUrl
|
||||||
|
fileSizeBytes
|
||||||
|
expiresAt
|
||||||
|
createdAt
|
||||||
|
}
|
||||||
|
|
||||||
|
mutation RequestVideoExport($input: RequestVideoExportInput!) {
|
||||||
|
requestVideoExport(input: $input) {
|
||||||
|
...VideoExportJobFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query VideoExportJob($jobId: Int!) {
|
||||||
|
videoExportJob(jobId: $jobId) {
|
||||||
|
...VideoExportJobFields
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
query MyVideoExports($limit: Int = 30, $offset: Int = 0) {
|
||||||
|
myVideoExports(limit: $limit, offset: $offset) {
|
||||||
|
...VideoExportJobFields
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -67,6 +67,13 @@ mutation GetHlsInitUploadLink($videoId: Int!) {
|
|||||||
... on TooManyInitUploadsErr {
|
... on TooManyInitUploadsErr {
|
||||||
linksRequested
|
linksRequested
|
||||||
}
|
}
|
||||||
|
... on StorageLimitExceededErr {
|
||||||
|
reason
|
||||||
|
tierName
|
||||||
|
retainedStorageUsedBytes
|
||||||
|
retainedStorageLimitBytes
|
||||||
|
remainingStorageBytes
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,6 +121,8 @@ type Query {
|
|||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||||
getGameTypeTagMetrics(input: GameTypeTagMetricsInput!): [GameTypeTagMetric!]!
|
getGameTypeTagMetrics(input: GameTypeTagMetricsInput!): [GameTypeTagMetric!]!
|
||||||
|
videoExportJob(jobId: Int!): VideoExportJobGQL
|
||||||
|
myVideoExports(limit: Int! = 30, offset: Int! = 0): [VideoExportJobGQL!]!
|
||||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||||
}
|
}
|
||||||
@@ -712,6 +714,7 @@ type DeployedConfigGQL {
|
|||||||
minimumAllowedAppVersion: String!
|
minimumAllowedAppVersion: String!
|
||||||
subscriptionGatingEnabled: Boolean!
|
subscriptionGatingEnabled: Boolean!
|
||||||
quotaEnforcementEnabled: Boolean!
|
quotaEnforcementEnabled: Boolean!
|
||||||
|
storageLimitEnforcementEnabled: Boolean!
|
||||||
bannerMessages: [BannerGQL!]!
|
bannerMessages: [BannerGQL!]!
|
||||||
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
|
||||||
bucketUrl: String!
|
bucketUrl: String!
|
||||||
@@ -864,6 +867,7 @@ enum NotificationTypeEnum {
|
|||||||
REACTION
|
REACTION
|
||||||
FOLLOW
|
FOLLOW
|
||||||
CHALLENGE_INVITE
|
CHALLENGE_INVITE
|
||||||
|
EXPORT_READY
|
||||||
}
|
}
|
||||||
|
|
||||||
input NotificationFilters {
|
input NotificationFilters {
|
||||||
@@ -1164,6 +1168,34 @@ input GameTypeTagMetricsInput {
|
|||||||
includePrivate: IncludePrivateEnum! = MINE
|
includePrivate: IncludePrivateEnum! = MINE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type VideoExportJobGQL {
|
||||||
|
id: Int!
|
||||||
|
videoId: Int!
|
||||||
|
mode: VideoExportModeEnum!
|
||||||
|
status: VideoExportStatusEnum!
|
||||||
|
shotIds: [Int!]
|
||||||
|
runId: Int
|
||||||
|
downloadUrl: String
|
||||||
|
fileSizeBytes: Int
|
||||||
|
expiresAt: DateTime
|
||||||
|
createdAt: DateTime
|
||||||
|
}
|
||||||
|
|
||||||
|
enum VideoExportModeEnum {
|
||||||
|
FULL_SESSION
|
||||||
|
SHOTS
|
||||||
|
RUN
|
||||||
|
}
|
||||||
|
|
||||||
|
enum VideoExportStatusEnum {
|
||||||
|
CREATED
|
||||||
|
QUEUED
|
||||||
|
RUNNING
|
||||||
|
SUCCEEDED
|
||||||
|
FAILED
|
||||||
|
EXPIRED
|
||||||
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
|
The `JSON` scalar type represents JSON values as specified by [ECMA-404](https://ecma-international.org/wp-content/uploads/ECMA-404_2nd_edition_december_2017.pdf).
|
||||||
"""
|
"""
|
||||||
@@ -1265,6 +1297,7 @@ type Mutation {
|
|||||||
feedback: String = null
|
feedback: String = null
|
||||||
metadata: CancellationFeedbackMetadataInput = null
|
metadata: CancellationFeedbackMetadataInput = null
|
||||||
): Boolean!
|
): Boolean!
|
||||||
|
requestVideoExport(input: RequestVideoExportInput!): VideoExportJobGQL!
|
||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
@@ -1447,6 +1480,13 @@ input CancellationFeedbackMetadataInput {
|
|||||||
platform: String = null
|
platform: String = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input RequestVideoExportInput {
|
||||||
|
videoId: Int!
|
||||||
|
mode: VideoExportModeEnum!
|
||||||
|
shotIds: [Int!] = null
|
||||||
|
runId: Int = null
|
||||||
|
}
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
}
|
}
|
||||||
@@ -1486,10 +1526,10 @@ type GetUploadLinkReturn {
|
|||||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||||
|
|
||||||
type GetUploadLinkErrors {
|
type GetUploadLinkErrors {
|
||||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr!
|
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrStorageLimitExceededErr!
|
||||||
}
|
}
|
||||||
|
|
||||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrStorageLimitExceededErr =
|
||||||
MustHaveSetForUploadLinkErr
|
MustHaveSetForUploadLinkErr
|
||||||
| SegmentAlreadyUploadedErr
|
| SegmentAlreadyUploadedErr
|
||||||
| ProcessingFailedErr
|
| ProcessingFailedErr
|
||||||
@@ -1497,6 +1537,7 @@ union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoI
|
|||||||
| TooManyProfileImageUploadsErr
|
| TooManyProfileImageUploadsErr
|
||||||
| InitUploadAlreadyCompletedErr
|
| InitUploadAlreadyCompletedErr
|
||||||
| TooManyInitUploadsErr
|
| TooManyInitUploadsErr
|
||||||
|
| StorageLimitExceededErr
|
||||||
|
|
||||||
type MustHaveSetForUploadLinkErr {
|
type MustHaveSetForUploadLinkErr {
|
||||||
resolution: Boolean
|
resolution: Boolean
|
||||||
@@ -1522,3 +1563,11 @@ type InitUploadAlreadyCompletedErr {
|
|||||||
type TooManyInitUploadsErr {
|
type TooManyInitUploadsErr {
|
||||||
linksRequested: Int!
|
linksRequested: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type StorageLimitExceededErr {
|
||||||
|
reason: String!
|
||||||
|
tierName: String!
|
||||||
|
retainedStorageUsedBytes: BigInt!
|
||||||
|
retainedStorageLimitBytes: BigInt
|
||||||
|
remainingStorageBytes: BigInt
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user