add upload quota gql queries/mutation/types/operation
All checks were successful
Tests / Tests (pull_request) Successful in 11s
All checks were successful
Tests / Tests (pull_request) Successful in 11s
This commit is contained in:
@@ -232,9 +232,18 @@ export type CreateSubscriptionResultGql = {
|
|||||||
|
|
||||||
export type CreateUploadStreamReturn = {
|
export type CreateUploadStreamReturn = {
|
||||||
__typename?: "CreateUploadStreamReturn";
|
__typename?: "CreateUploadStreamReturn";
|
||||||
|
value: CreateUploadStreamSuccessQuotaExceededErr;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type CreateUploadStreamSuccess = {
|
||||||
|
__typename?: "CreateUploadStreamSuccess";
|
||||||
videoId: Scalars["Int"]["output"];
|
videoId: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type CreateUploadStreamSuccessQuotaExceededErr =
|
||||||
|
| CreateUploadStreamSuccess
|
||||||
|
| QuotaExceededErr;
|
||||||
|
|
||||||
export type CreatedAfter =
|
export type CreatedAfter =
|
||||||
| { createdAt: Scalars["DateTime"]["input"]; videoId?: never }
|
| { createdAt: Scalars["DateTime"]["input"]; videoId?: never }
|
||||||
| { createdAt?: never; videoId: Scalars["Int"]["input"] };
|
| { createdAt?: never; videoId: Scalars["Int"]["input"] };
|
||||||
@@ -2223,7 +2232,7 @@ export type GetShotsResult = {
|
|||||||
|
|
||||||
export type GetUploadLinkErrors = {
|
export type GetUploadLinkErrors = {
|
||||||
__typename?: "GetUploadLinkErrors";
|
__typename?: "GetUploadLinkErrors";
|
||||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr;
|
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrQuotaExceededErr;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetUploadLinkReturn = {
|
export type GetUploadLinkReturn = {
|
||||||
@@ -2327,12 +2336,13 @@ export type MustHaveSetForUploadLinkErr = {
|
|||||||
resolution?: Maybe<Scalars["Boolean"]["output"]>;
|
resolution?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrQuotaExceededErr =
|
||||||
|
|
||||||
| InitUploadAlreadyCompletedErr
|
| InitUploadAlreadyCompletedErr
|
||||||
| MustHaveSetForUploadLinkErr
|
| MustHaveSetForUploadLinkErr
|
||||||
| NoInitForChunkedUploadErr
|
| NoInitForChunkedUploadErr
|
||||||
| ProcessingFailedErr
|
| ProcessingFailedErr
|
||||||
|
| QuotaExceededErr
|
||||||
| SegmentAlreadyUploadedErr
|
| SegmentAlreadyUploadedErr
|
||||||
| TooManyInitUploadsErr
|
| TooManyInitUploadsErr
|
||||||
| TooManyProfileImageUploadsErr;
|
| TooManyProfileImageUploadsErr;
|
||||||
@@ -2432,6 +2442,7 @@ export type MutationCreateSubscriptionArgs = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type MutationCreateUploadStreamArgs = {
|
export type MutationCreateUploadStreamArgs = {
|
||||||
|
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
videoMetadata: VideoMetadataInput;
|
videoMetadata: VideoMetadataInput;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2716,6 +2727,7 @@ export type Query = {
|
|||||||
getMedals: RequestedMedalsGql;
|
getMedals: RequestedMedalsGql;
|
||||||
getOrderedShots: GetShotsResult;
|
getOrderedShots: GetShotsResult;
|
||||||
getPlayTime: UserPlayTimeGql;
|
getPlayTime: UserPlayTimeGql;
|
||||||
|
getQuotaStatus: QuotaStatusGql;
|
||||||
getRuns: GetRunsResult;
|
getRuns: GetRunsResult;
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
@@ -2905,6 +2917,31 @@ export type QueryWaitForArgs = {
|
|||||||
duration: Scalars["Float"]["input"];
|
duration: Scalars["Float"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QuotaExceededErr = {
|
||||||
|
__typename?: "QuotaExceededErr";
|
||||||
|
limit?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
message: Scalars["String"]["output"];
|
||||||
|
reason: QuotaExceededReasonEnum;
|
||||||
|
used?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export enum QuotaExceededReasonEnum {
|
||||||
|
MonthlyDuration = "MONTHLY_DURATION",
|
||||||
|
VideoDuration = "VIDEO_DURATION",
|
||||||
|
}
|
||||||
|
|
||||||
|
export type QuotaStatusGql = {
|
||||||
|
__typename?: "QuotaStatusGQL";
|
||||||
|
canUpload: Scalars["Boolean"]["output"];
|
||||||
|
durationLimitSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
durationRemainingSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||||
|
durationUsedSeconds: Scalars["Float"]["output"];
|
||||||
|
maxVideoDurationSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
periodEnd: Scalars["DateTime"]["output"];
|
||||||
|
periodStart: Scalars["DateTime"]["output"];
|
||||||
|
tierName: Scalars["String"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
export enum ReactionEnum {
|
export enum ReactionEnum {
|
||||||
Bullseye = "BULLSEYE",
|
Bullseye = "BULLSEYE",
|
||||||
Heart = "HEART",
|
Heart = "HEART",
|
||||||
@@ -6239,7 +6276,15 @@ export type CreateUploadStreamMutation = {
|
|||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
createUploadStream: {
|
createUploadStream: {
|
||||||
__typename?: "CreateUploadStreamReturn";
|
__typename?: "CreateUploadStreamReturn";
|
||||||
videoId: number;
|
value:
|
||||||
|
| { __typename?: "CreateUploadStreamSuccess"; videoId: number }
|
||||||
|
| {
|
||||||
|
__typename?: "QuotaExceededErr";
|
||||||
|
reason: QuotaExceededReasonEnum;
|
||||||
|
message: string;
|
||||||
|
limit?: number | null;
|
||||||
|
used?: number | null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -6274,6 +6319,7 @@ export type GetUploadLinkMutation = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
| { __typename?: "QuotaExceededErr" }
|
||||||
| { __typename?: "SegmentAlreadyUploadedErr"; segmentId: number }
|
| { __typename?: "SegmentAlreadyUploadedErr"; segmentId: number }
|
||||||
| { __typename?: "TooManyInitUploadsErr" }
|
| { __typename?: "TooManyInitUploadsErr" }
|
||||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||||
@@ -6316,6 +6362,7 @@ export type GetHlsInitUploadLinkMutation = {
|
|||||||
segmentType: StreamSegmentTypeEnum;
|
segmentType: StreamSegmentTypeEnum;
|
||||||
}
|
}
|
||||||
| { __typename?: "ProcessingFailedErr" }
|
| { __typename?: "ProcessingFailedErr" }
|
||||||
|
| { __typename?: "QuotaExceededErr" }
|
||||||
| { __typename?: "SegmentAlreadyUploadedErr" }
|
| { __typename?: "SegmentAlreadyUploadedErr" }
|
||||||
| { __typename?: "TooManyInitUploadsErr"; linksRequested: number }
|
| { __typename?: "TooManyInitUploadsErr"; linksRequested: number }
|
||||||
| { __typename?: "TooManyProfileImageUploadsErr" };
|
| { __typename?: "TooManyProfileImageUploadsErr" };
|
||||||
@@ -13201,8 +13248,18 @@ export type FindPrerecordTableLayoutMutationOptions =
|
|||||||
export const CreateUploadStreamDocument = gql`
|
export const CreateUploadStreamDocument = gql`
|
||||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||||
|
value {
|
||||||
|
... on CreateUploadStreamSuccess {
|
||||||
videoId
|
videoId
|
||||||
}
|
}
|
||||||
|
... on QuotaExceededErr {
|
||||||
|
reason
|
||||||
|
message
|
||||||
|
limit
|
||||||
|
used
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export type CreateUploadStreamMutationFn = Apollo.MutationFunction<
|
export type CreateUploadStreamMutationFn = Apollo.MutationFunction<
|
||||||
|
|||||||
@@ -1,7 +1,17 @@
|
|||||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||||
|
value {
|
||||||
|
... on CreateUploadStreamSuccess {
|
||||||
videoId
|
videoId
|
||||||
}
|
}
|
||||||
|
... on QuotaExceededErr {
|
||||||
|
reason
|
||||||
|
message
|
||||||
|
limit
|
||||||
|
used
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ type Query {
|
|||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||||
|
getQuotaStatus: QuotaStatusGQL!
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -977,6 +978,17 @@ enum StripeSubscriptionStatusEnum {
|
|||||||
PAUSED
|
PAUSED
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type QuotaStatusGQL {
|
||||||
|
tierName: String!
|
||||||
|
periodStart: DateTime!
|
||||||
|
periodEnd: DateTime!
|
||||||
|
durationUsedSeconds: Float!
|
||||||
|
durationLimitSeconds: Int
|
||||||
|
maxVideoDurationSeconds: Int
|
||||||
|
durationRemainingSeconds: Float
|
||||||
|
canUpload: Boolean!
|
||||||
|
}
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
@@ -1082,6 +1094,7 @@ type Mutation {
|
|||||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
|
expectedDurationSeconds: Float = null
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||||
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
||||||
@@ -1219,9 +1232,29 @@ input CancellationFeedbackMetadataInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type CreateUploadStreamReturn {
|
type CreateUploadStreamReturn {
|
||||||
|
value: CreateUploadStreamSuccessQuotaExceededErr!
|
||||||
|
}
|
||||||
|
|
||||||
|
union CreateUploadStreamSuccessQuotaExceededErr =
|
||||||
|
CreateUploadStreamSuccess
|
||||||
|
| QuotaExceededErr
|
||||||
|
|
||||||
|
type CreateUploadStreamSuccess {
|
||||||
videoId: Int!
|
videoId: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type QuotaExceededErr {
|
||||||
|
reason: QuotaExceededReasonEnum!
|
||||||
|
message: String!
|
||||||
|
limit: Float
|
||||||
|
used: Float
|
||||||
|
}
|
||||||
|
|
||||||
|
enum QuotaExceededReasonEnum {
|
||||||
|
MONTHLY_DURATION
|
||||||
|
VIDEO_DURATION
|
||||||
|
}
|
||||||
|
|
||||||
input VideoMetadataInput {
|
input VideoMetadataInput {
|
||||||
videoName: String = null
|
videoName: String = null
|
||||||
startTime: DateTime = null
|
startTime: DateTime = null
|
||||||
@@ -1257,10 +1290,10 @@ type GetUploadLinkReturn {
|
|||||||
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
union UploadLinkGetUploadLinkErrors = UploadLink | GetUploadLinkErrors
|
||||||
|
|
||||||
type GetUploadLinkErrors {
|
type GetUploadLinkErrors {
|
||||||
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr!
|
error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrQuotaExceededErr!
|
||||||
}
|
}
|
||||||
|
|
||||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErrQuotaExceededErr =
|
||||||
MustHaveSetForUploadLinkErr
|
MustHaveSetForUploadLinkErr
|
||||||
| SegmentAlreadyUploadedErr
|
| SegmentAlreadyUploadedErr
|
||||||
| ProcessingFailedErr
|
| ProcessingFailedErr
|
||||||
@@ -1268,6 +1301,7 @@ union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoI
|
|||||||
| TooManyProfileImageUploadsErr
|
| TooManyProfileImageUploadsErr
|
||||||
| InitUploadAlreadyCompletedErr
|
| InitUploadAlreadyCompletedErr
|
||||||
| TooManyInitUploadsErr
|
| TooManyInitUploadsErr
|
||||||
|
| QuotaExceededErr
|
||||||
|
|
||||||
type MustHaveSetForUploadLinkErr {
|
type MustHaveSetForUploadLinkErr {
|
||||||
resolution: Boolean
|
resolution: Boolean
|
||||||
|
|||||||
Reference in New Issue
Block a user