Compare commits
11 Commits
processing
...
loewy/add-
| Author | SHA1 | Date | |
|---|---|---|---|
| 88afcc38cc | |||
| cd3ecdfba4 | |||
| 27a0c08cd5 | |||
| 99f0913fd8 | |||
| dfb0e02630 | |||
| c4a2e184fb | |||
| f14cf3b255 | |||
| c46776d417 | |||
| 6ab5286a49 | |||
| cd6a33bfed | |||
| 07bb45942e |
@@ -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"];
|
||||
};
|
||||
@@ -2184,6 +2191,26 @@ export type FloatRangeFilter = {
|
||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||
};
|
||||
|
||||
export type GameTypeTagMetric = {
|
||||
__typename?: "GameTypeTagMetric";
|
||||
madeShots: Scalars["Int"]["output"];
|
||||
makeRate: Scalars["Float"]["output"];
|
||||
shotCount: Scalars["Int"]["output"];
|
||||
tableSize?: Maybe<Scalars["Float"]["output"]>;
|
||||
tagLabel: Scalars["String"]["output"];
|
||||
tagName: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type GameTypeTagMetricsInput = {
|
||||
createdAt?: InputMaybe<DateRangeFilter>;
|
||||
groupByTableSize?: Scalars["Boolean"]["input"];
|
||||
includePrivate?: IncludePrivateEnum;
|
||||
includeUnknown?: Scalars["Boolean"]["input"];
|
||||
maxTags?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
tagClass?: InputMaybe<Scalars["String"]["input"]>;
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type GetProfileUploadLinkErrors = {
|
||||
__typename?: "GetProfileUploadLinkErrors";
|
||||
error: TooManyProfileImageUploadsErr;
|
||||
@@ -2366,6 +2393,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 +2403,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;
|
||||
@@ -2432,6 +2461,7 @@ export type MutationCreateSubscriptionArgs = {
|
||||
};
|
||||
|
||||
export type MutationCreateUploadStreamArgs = {
|
||||
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
videoMetadata: VideoMetadataInput;
|
||||
};
|
||||
|
||||
@@ -2503,6 +2533,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"]>;
|
||||
@@ -2540,6 +2578,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"];
|
||||
@@ -2710,12 +2752,14 @@ export type Query = {
|
||||
getBucketSet?: Maybe<BucketSetGql>;
|
||||
getDeployedConfig: DeployedConfigGql;
|
||||
getFeedVideos: VideoHistoryGql;
|
||||
getGameTypeTagMetrics: Array<GameTypeTagMetric>;
|
||||
getLoggedInUser?: Maybe<UserGql>;
|
||||
getLongestRunsLeaderboard: RunLeaderboardGql;
|
||||
getMakesLeaderboard: CountLeaderboardGql;
|
||||
getMedals: RequestedMedalsGql;
|
||||
getOrderedShots: GetShotsResult;
|
||||
getPlayTime: UserPlayTimeGql;
|
||||
getQuotaStatus: QuotaStatusGql;
|
||||
getRuns: GetRunsResult;
|
||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||
getShots: Array<ShotGql>;
|
||||
@@ -2776,6 +2820,10 @@ export type QueryGetFeedVideosArgs = {
|
||||
limit?: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetGameTypeTagMetricsArgs = {
|
||||
input: GameTypeTagMetricsInput;
|
||||
};
|
||||
|
||||
export type QueryGetLongestRunsLeaderboardArgs = {
|
||||
interval?: InputMaybe<TimeInterval>;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
@@ -2905,6 +2953,18 @@ export type QueryWaitForArgs = {
|
||||
duration: Scalars["Float"]["input"];
|
||||
};
|
||||
|
||||
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 {
|
||||
Bullseye = "BULLSEYE",
|
||||
Heart = "HEART",
|
||||
@@ -3381,6 +3441,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"]>;
|
||||
@@ -5673,6 +5736,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
linksRequested: number;
|
||||
lowestUnuploadedSegmentIndex: number;
|
||||
uploadsCompleted: number;
|
||||
segmentProcessingCursor: number;
|
||||
isCompleted: boolean;
|
||||
@@ -6235,6 +6299,7 @@ export type HomographyInfoFragment = {
|
||||
|
||||
export type CreateUploadStreamMutationVariables = Exact<{
|
||||
videoMetadataInput: VideoMetadataInput;
|
||||
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
}>;
|
||||
|
||||
export type CreateUploadStreamMutation = {
|
||||
@@ -6385,6 +6450,7 @@ export type UploadStreamWithDetailsFragment = {
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
uploadsCompleted: number;
|
||||
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
@@ -6409,6 +6475,7 @@ export type GetUploadStreamsWithDetailsQuery = {
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
uploadCompletionCursor: number;
|
||||
uploadsCompleted: number;
|
||||
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||
} | null;
|
||||
}>;
|
||||
pageInfo: {
|
||||
@@ -6751,6 +6818,7 @@ export const UploadStreamWithDetailsFragmentDoc = gql`
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -11954,6 +12022,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
@@ -13201,8 +13270,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
|
||||
}
|
||||
}
|
||||
@@ -13226,6 +13301,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
|
||||
}
|
||||
}
|
||||
@@ -111,6 +117,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
uploadsCompleted
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -97,6 +97,7 @@ type Query {
|
||||
): UserRelationshipsResult!
|
||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||
getQuotaStatus: QuotaStatusGQL!
|
||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||
getUserVideos(
|
||||
userId: Int = null
|
||||
@@ -105,6 +106,7 @@ type Query {
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||
getGameTypeTagMetrics(input: GameTypeTagMetricsInput!): [GameTypeTagMetric!]!
|
||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||
}
|
||||
@@ -960,6 +962,9 @@ type StripePriceGQL {
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
entitlementStartsAt: DateTime
|
||||
entitlementEndsAt: DateTime
|
||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||
currentPeriodStart: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
@@ -968,6 +973,13 @@ type UserSubscriptionStatusGQL {
|
||||
stripeSubscriptionId: String
|
||||
}
|
||||
|
||||
enum EntitlementSourceTypeEnum {
|
||||
ADMIN
|
||||
MANUAL
|
||||
STRIPE
|
||||
ALPHA_LEGACY
|
||||
}
|
||||
|
||||
enum StripeSubscriptionStatusEnum {
|
||||
INCOMPLETE
|
||||
INCOMPLETE_EXPIRED
|
||||
@@ -979,6 +991,17 @@ enum StripeSubscriptionStatusEnum {
|
||||
PAUSED
|
||||
}
|
||||
|
||||
type QuotaStatusGQL {
|
||||
tierName: String!
|
||||
periodStart: DateTime!
|
||||
periodEnd: DateTime!
|
||||
durationUsedSeconds: Float!
|
||||
durationLimitSeconds: Int
|
||||
maxVideoDurationSeconds: Int
|
||||
durationRemainingSeconds: Float
|
||||
canUpload: Boolean!
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
@@ -995,6 +1018,25 @@ type TagClassGQL {
|
||||
name: String!
|
||||
}
|
||||
|
||||
type GameTypeTagMetric {
|
||||
tagName: String!
|
||||
tagLabel: String!
|
||||
tableSize: Float
|
||||
shotCount: Int!
|
||||
madeShots: Int!
|
||||
makeRate: Float!
|
||||
}
|
||||
|
||||
input GameTypeTagMetricsInput {
|
||||
userId: Int!
|
||||
createdAt: DateRangeFilter = null
|
||||
maxTags: Int = null
|
||||
groupByTableSize: Boolean! = true
|
||||
includeUnknown: Boolean! = true
|
||||
tagClass: String = "game_type"
|
||||
includePrivate: IncludePrivateEnum! = MINE
|
||||
}
|
||||
|
||||
"""
|
||||
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).
|
||||
"""
|
||||
@@ -1076,6 +1118,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
|
||||
@@ -1084,6 +1134,7 @@ type Mutation {
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
expectedDurationSeconds: Float = null
|
||||
): CreateUploadStreamReturn!
|
||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
||||
|
||||
Reference in New Issue
Block a user