Compare commits
8 Commits
d31d171ac3
...
ivan/manua
| Author | SHA1 | Date | |
|---|---|---|---|
| dfb0e02630 | |||
| c4a2e184fb | |||
| f14cf3b255 | |||
| c46776d417 | |||
| 6ab5286a49 | |||
| cd6a33bfed | |||
| 07bb45942e | |||
| 9abb533be8 |
@@ -316,6 +316,13 @@ export type EditableShotFieldInputGql = {
|
||||
targetPocketAngleDirection?: InputMaybe<ShotDirectionEnum>;
|
||||
};
|
||||
|
||||
export enum EntitlementSourceTypeEnum {
|
||||
Admin = "ADMIN",
|
||||
AlphaLegacy = "ALPHA_LEGACY",
|
||||
Manual = "MANUAL",
|
||||
Stripe = "STRIPE",
|
||||
}
|
||||
|
||||
export type EnumAggregation = {
|
||||
feature: Scalars["String"]["input"];
|
||||
};
|
||||
@@ -2366,6 +2373,7 @@ export type Mutation = {
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
grantManualEntitlement: UserSubscriptionStatusGql;
|
||||
inviteUsersToChallenge: Array<ChallengeInvitation>;
|
||||
markAllNotificationsAsRead: Scalars["Boolean"]["output"];
|
||||
markNotificationAsRead: Scalars["Boolean"]["output"];
|
||||
@@ -2375,6 +2383,7 @@ export type Mutation = {
|
||||
reportContent: Scalars["Boolean"]["output"];
|
||||
respondToChallengeInvitation: ChallengeInvitation;
|
||||
retireTags: Scalars["Boolean"]["output"];
|
||||
revokeManualEntitlement: UserSubscriptionStatusGql;
|
||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||
startChallenge: ChallengeEntry;
|
||||
@@ -2504,6 +2513,14 @@ export type MutationGetUploadLinkArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationGrantManualEntitlementArgs = {
|
||||
endsAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||
reason?: InputMaybe<Scalars["String"]["input"]>;
|
||||
startsAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||
tierName?: Scalars["String"]["input"];
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationInviteUsersToChallengeArgs = {
|
||||
challengeId: Scalars["ID"]["input"];
|
||||
userIds: Array<Scalars["ID"]["input"]>;
|
||||
@@ -2541,6 +2558,10 @@ export type MutationRetireTagsArgs = {
|
||||
tagIds: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type MutationRevokeManualEntitlementArgs = {
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationSetLoggerLevelArgs = {
|
||||
level: Scalars["String"]["input"];
|
||||
path: Scalars["String"]["input"];
|
||||
@@ -3395,6 +3416,9 @@ export type UserSubscriptionStatusGql = {
|
||||
__typename?: "UserSubscriptionStatusGQL";
|
||||
currentPeriodEnd?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
currentPeriodStart?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
entitlementEndsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
entitlementSource?: Maybe<EntitlementSourceTypeEnum>;
|
||||
entitlementStartsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
hasActiveSubscription: Scalars["Boolean"]["output"];
|
||||
stripePriceId?: Maybe<Scalars["String"]["output"]>;
|
||||
stripeSubscriptionId?: Maybe<Scalars["String"]["output"]>;
|
||||
@@ -3506,6 +3530,8 @@ export type VideoProcessingGql = {
|
||||
errors: Array<VideoProcessingErrorGql>;
|
||||
framesProcessed?: Maybe<Scalars["Int"]["output"]>;
|
||||
id: Scalars["Int"]["output"];
|
||||
labels: Array<Scalars["String"]["output"]>;
|
||||
parentProcessingId?: Maybe<Scalars["Int"]["output"]>;
|
||||
progressPercentage?: Maybe<Scalars["Float"]["output"]>;
|
||||
status: ProcessingStatusEnum;
|
||||
statuses: Array<VideoProcessingStatusGql>;
|
||||
@@ -5685,6 +5711,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
linksRequested: number;
|
||||
lowestUnuploadedSegmentIndex: number;
|
||||
uploadsCompleted: number;
|
||||
segmentProcessingCursor: number;
|
||||
isCompleted: boolean;
|
||||
@@ -6247,6 +6274,7 @@ export type HomographyInfoFragment = {
|
||||
|
||||
export type CreateUploadStreamMutationVariables = Exact<{
|
||||
videoMetadataInput: VideoMetadataInput;
|
||||
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
}>;
|
||||
|
||||
export type CreateUploadStreamMutation = {
|
||||
@@ -11966,6 +11994,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
@@ -13213,8 +13242,14 @@ export type FindPrerecordTableLayoutMutationOptions =
|
||||
FindPrerecordTableLayoutMutationVariables
|
||||
>;
|
||||
export const CreateUploadStreamDocument = gql`
|
||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||
mutation CreateUploadStream(
|
||||
$videoMetadataInput: VideoMetadataInput!
|
||||
$expectedDurationSeconds: Float = null
|
||||
) {
|
||||
createUploadStream(
|
||||
videoMetadata: $videoMetadataInput
|
||||
expectedDurationSeconds: $expectedDurationSeconds
|
||||
) {
|
||||
videoId
|
||||
}
|
||||
}
|
||||
@@ -13238,6 +13273,7 @@ export type CreateUploadStreamMutationFn = Apollo.MutationFunction<
|
||||
* const [createUploadStreamMutation, { data, loading, error }] = useCreateUploadStreamMutation({
|
||||
* variables: {
|
||||
* videoMetadataInput: // value for 'videoMetadataInput'
|
||||
* expectedDurationSeconds: // value for 'expectedDurationSeconds'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
|
||||
@@ -10,6 +10,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||
mutation CreateUploadStream(
|
||||
$videoMetadataInput: VideoMetadataInput!
|
||||
$expectedDurationSeconds: Float = null
|
||||
) {
|
||||
createUploadStream(
|
||||
videoMetadata: $videoMetadataInput
|
||||
expectedDurationSeconds: $expectedDurationSeconds
|
||||
) {
|
||||
videoId
|
||||
}
|
||||
}
|
||||
|
||||
@@ -606,6 +606,8 @@ type IntPoint2D {
|
||||
|
||||
type VideoProcessingGQL {
|
||||
id: Int!
|
||||
parentProcessingId: Int
|
||||
labels: [String!]!
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
@@ -959,6 +961,9 @@ type StripePriceGQL {
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
entitlementStartsAt: DateTime
|
||||
entitlementEndsAt: DateTime
|
||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||
currentPeriodStart: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
@@ -967,6 +972,13 @@ type UserSubscriptionStatusGQL {
|
||||
stripeSubscriptionId: String
|
||||
}
|
||||
|
||||
enum EntitlementSourceTypeEnum {
|
||||
ADMIN
|
||||
MANUAL
|
||||
STRIPE
|
||||
ALPHA_LEGACY
|
||||
}
|
||||
|
||||
enum StripeSubscriptionStatusEnum {
|
||||
INCOMPLETE
|
||||
INCOMPLETE_EXPIRED
|
||||
@@ -1086,6 +1098,14 @@ type Mutation {
|
||||
deleteUser: Boolean!
|
||||
createSubscription(priceId: String!): CreateSubscriptionResultGQL!
|
||||
cancelSubscription: UserSubscriptionStatusGQL!
|
||||
grantManualEntitlement(
|
||||
userId: Int!
|
||||
tierName: String! = "pro"
|
||||
startsAt: DateTime = null
|
||||
endsAt: DateTime = null
|
||||
reason: String = null
|
||||
): UserSubscriptionStatusGQL!
|
||||
revokeManualEntitlement(userId: Int!): UserSubscriptionStatusGQL!
|
||||
submitCancellationFeedback(
|
||||
reasons: [CancellationReasonEnum!] = null
|
||||
feedback: String = null
|
||||
|
||||
Reference in New Issue
Block a user