Compare commits
3 Commits
loewy/scop
...
5030ff560d
| Author | SHA1 | Date | |
|---|---|---|---|
| 5030ff560d | |||
| 1c6fef9de0 | |||
| d31d171ac3 |
164
src/index.tsx
164
src/index.tsx
@@ -316,13 +316,6 @@ 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"];
|
||||
};
|
||||
@@ -2191,26 +2184,6 @@ 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;
|
||||
@@ -2393,7 +2366,6 @@ export type Mutation = {
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
grantManualEntitlement: UserSubscriptionStatusGql;
|
||||
inviteUsersToChallenge: Array<ChallengeInvitation>;
|
||||
markAllNotificationsAsRead: Scalars["Boolean"]["output"];
|
||||
markNotificationAsRead: Scalars["Boolean"]["output"];
|
||||
@@ -2403,7 +2375,6 @@ 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;
|
||||
@@ -2462,7 +2433,6 @@ export type MutationCreateSubscriptionArgs = {
|
||||
|
||||
export type MutationCreateUploadStreamArgs = {
|
||||
expectedDurationSeconds?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
uploadKind?: InputMaybe<UploadKindEnum>;
|
||||
videoMetadata: VideoMetadataInput;
|
||||
};
|
||||
|
||||
@@ -2534,14 +2504,6 @@ 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"]>;
|
||||
@@ -2579,10 +2541,6 @@ 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"];
|
||||
@@ -2753,7 +2711,6 @@ export type Query = {
|
||||
getBucketSet?: Maybe<BucketSetGql>;
|
||||
getDeployedConfig: DeployedConfigGql;
|
||||
getFeedVideos: VideoHistoryGql;
|
||||
getGameTypeTagMetrics: Array<GameTypeTagMetric>;
|
||||
getLoggedInUser?: Maybe<UserGql>;
|
||||
getLongestRunsLeaderboard: RunLeaderboardGql;
|
||||
getMakesLeaderboard: CountLeaderboardGql;
|
||||
@@ -2821,10 +2778,6 @@ export type QueryGetFeedVideosArgs = {
|
||||
limit?: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetGameTypeTagMetricsArgs = {
|
||||
input: GameTypeTagMetricsInput;
|
||||
};
|
||||
|
||||
export type QueryGetLongestRunsLeaderboardArgs = {
|
||||
interval?: InputMaybe<TimeInterval>;
|
||||
limit?: Scalars["Int"]["input"];
|
||||
@@ -2960,11 +2913,9 @@ export type QuotaStatusGql = {
|
||||
durationLimitSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||
durationRemainingSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||
durationUsedSeconds: Scalars["Float"]["output"];
|
||||
importUploadPermission: UploadPermissionGql;
|
||||
maxVideoDurationSeconds?: Maybe<Scalars["Int"]["output"]>;
|
||||
periodEnd: Scalars["DateTime"]["output"];
|
||||
periodStart: Scalars["DateTime"]["output"];
|
||||
recordingPermission: UploadPermissionGql;
|
||||
tierName: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
@@ -3350,11 +3301,6 @@ export type UpdateShotAnnotationReturn = {
|
||||
shot?: Maybe<ShotGql>;
|
||||
};
|
||||
|
||||
export enum UploadKindEnum {
|
||||
Import = "IMPORT",
|
||||
Recording = "RECORDING",
|
||||
}
|
||||
|
||||
export type UploadLink = {
|
||||
__typename?: "UploadLink";
|
||||
headers: Array<Maybe<Header>>;
|
||||
@@ -3367,12 +3313,6 @@ export type UploadLinkGetProfileUploadLinkErrors =
|
||||
|
||||
export type UploadLinkGetUploadLinkErrors = GetUploadLinkErrors | UploadLink;
|
||||
|
||||
export type UploadPermissionGql = {
|
||||
__typename?: "UploadPermissionGQL";
|
||||
allowed: Scalars["Boolean"]["output"];
|
||||
reason?: Maybe<Scalars["String"]["output"]>;
|
||||
};
|
||||
|
||||
export type UploadSegmentGql = {
|
||||
__typename?: "UploadSegmentGQL";
|
||||
durationInSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||
@@ -3455,9 +3395,6 @@ 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"]>;
|
||||
@@ -3569,8 +3506,6 @@ 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>;
|
||||
@@ -5585,23 +5520,6 @@ export type GetUserTagsQuery = {
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetGameTypeTagMetricsQueryVariables = Exact<{
|
||||
input: GameTypeTagMetricsInput;
|
||||
}>;
|
||||
|
||||
export type GetGameTypeTagMetricsQuery = {
|
||||
__typename?: "Query";
|
||||
getGameTypeTagMetrics: Array<{
|
||||
__typename?: "GameTypeTagMetric";
|
||||
tagName: string;
|
||||
tagLabel: string;
|
||||
tableSize?: number | null;
|
||||
shotCount: number;
|
||||
madeShots: number;
|
||||
makeRate: number;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type FollowUserMutationVariables = Exact<{
|
||||
followedUserId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
@@ -5767,7 +5685,6 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
linksRequested: number;
|
||||
lowestUnuploadedSegmentIndex: number;
|
||||
uploadsCompleted: number;
|
||||
segmentProcessingCursor: number;
|
||||
isCompleted: boolean;
|
||||
@@ -11585,84 +11502,6 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
|
||||
GetUserTagsQuery,
|
||||
GetUserTagsQueryVariables
|
||||
>;
|
||||
export const GetGameTypeTagMetricsDocument = gql`
|
||||
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||
getGameTypeTagMetrics(input: $input) {
|
||||
tagName
|
||||
tagLabel
|
||||
tableSize
|
||||
shotCount
|
||||
madeShots
|
||||
makeRate
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetGameTypeTagMetricsQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetGameTypeTagMetricsQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetGameTypeTagMetricsQuery` 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 } = useGetGameTypeTagMetricsQuery({
|
||||
* variables: {
|
||||
* input: // value for 'input'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetGameTypeTagMetricsQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>(GetGameTypeTagMetricsDocument, options);
|
||||
}
|
||||
export function useGetGameTypeTagMetricsLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>(GetGameTypeTagMetricsDocument, options);
|
||||
}
|
||||
export function useGetGameTypeTagMetricsSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>(GetGameTypeTagMetricsDocument, options);
|
||||
}
|
||||
export type GetGameTypeTagMetricsQueryHookResult = ReturnType<
|
||||
typeof useGetGameTypeTagMetricsQuery
|
||||
>;
|
||||
export type GetGameTypeTagMetricsLazyQueryHookResult = ReturnType<
|
||||
typeof useGetGameTypeTagMetricsLazyQuery
|
||||
>;
|
||||
export type GetGameTypeTagMetricsSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetGameTypeTagMetricsSuspenseQuery
|
||||
>;
|
||||
export type GetGameTypeTagMetricsQueryResult = Apollo.QueryResult<
|
||||
GetGameTypeTagMetricsQuery,
|
||||
GetGameTypeTagMetricsQueryVariables
|
||||
>;
|
||||
export const FollowUserDocument = gql`
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
@@ -12128,7 +11967,6 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
@@ -13378,7 +13216,7 @@ export type FindPrerecordTableLayoutMutationOptions =
|
||||
export const CreateUploadStreamDocument = gql`
|
||||
mutation CreateUploadStream(
|
||||
$videoMetadataInput: VideoMetadataInput!
|
||||
$expectedDurationSeconds: Float = null
|
||||
$expectedDurationSeconds: Float
|
||||
) {
|
||||
createUploadStream(
|
||||
videoMetadata: $videoMetadataInput
|
||||
|
||||
@@ -92,17 +92,6 @@ query GetUserTags {
|
||||
}
|
||||
}
|
||||
|
||||
query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) {
|
||||
getGameTypeTagMetrics(input: $input) {
|
||||
tagName
|
||||
tagLabel
|
||||
tableSize
|
||||
shotCount
|
||||
madeShots
|
||||
makeRate
|
||||
}
|
||||
}
|
||||
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
id
|
||||
|
||||
@@ -10,7 +10,6 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
||||
stream {
|
||||
id
|
||||
linksRequested
|
||||
lowestUnuploadedSegmentIndex
|
||||
uploadsCompleted
|
||||
segmentProcessingCursor
|
||||
isCompleted
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
mutation CreateUploadStream(
|
||||
$videoMetadataInput: VideoMetadataInput!
|
||||
$expectedDurationSeconds: Float = null
|
||||
$expectedDurationSeconds: Float
|
||||
) {
|
||||
createUploadStream(
|
||||
videoMetadata: $videoMetadataInput
|
||||
|
||||
@@ -106,7 +106,6 @@ 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!]!
|
||||
}
|
||||
@@ -607,8 +606,6 @@ type IntPoint2D {
|
||||
|
||||
type VideoProcessingGQL {
|
||||
id: Int!
|
||||
parentProcessingId: Int
|
||||
labels: [String!]!
|
||||
errors: [VideoProcessingErrorGQL!]!
|
||||
status: ProcessingStatusEnum!
|
||||
statuses: [VideoProcessingStatusGQL!]!
|
||||
@@ -962,9 +959,6 @@ type StripePriceGQL {
|
||||
|
||||
type UserSubscriptionStatusGQL {
|
||||
hasActiveSubscription: Boolean!
|
||||
entitlementSource: EntitlementSourceTypeEnum
|
||||
entitlementStartsAt: DateTime
|
||||
entitlementEndsAt: DateTime
|
||||
subscriptionStatus: StripeSubscriptionStatusEnum
|
||||
currentPeriodStart: DateTime
|
||||
currentPeriodEnd: DateTime
|
||||
@@ -973,13 +967,6 @@ type UserSubscriptionStatusGQL {
|
||||
stripeSubscriptionId: String
|
||||
}
|
||||
|
||||
enum EntitlementSourceTypeEnum {
|
||||
ADMIN
|
||||
MANUAL
|
||||
STRIPE
|
||||
ALPHA_LEGACY
|
||||
}
|
||||
|
||||
enum StripeSubscriptionStatusEnum {
|
||||
INCOMPLETE
|
||||
INCOMPLETE_EXPIRED
|
||||
@@ -998,17 +985,10 @@ type QuotaStatusGQL {
|
||||
durationUsedSeconds: Float!
|
||||
durationLimitSeconds: Int
|
||||
maxVideoDurationSeconds: Int
|
||||
recordingPermission: UploadPermissionGQL!
|
||||
importUploadPermission: UploadPermissionGQL!
|
||||
durationRemainingSeconds: Float
|
||||
canUpload: Boolean!
|
||||
}
|
||||
|
||||
type UploadPermissionGQL {
|
||||
allowed: Boolean!
|
||||
reason: String
|
||||
}
|
||||
|
||||
type UserPlayTimeGQL {
|
||||
totalSeconds: Float!
|
||||
}
|
||||
@@ -1025,25 +1005,6 @@ 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).
|
||||
"""
|
||||
@@ -1125,14 +1086,6 @@ 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
|
||||
@@ -1141,7 +1094,6 @@ type Mutation {
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
uploadKind: UploadKindEnum = null
|
||||
expectedDurationSeconds: Float = null
|
||||
): CreateUploadStreamReturn!
|
||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||
@@ -1310,11 +1262,6 @@ input VideoResolution {
|
||||
height: Int!
|
||||
}
|
||||
|
||||
enum UploadKindEnum {
|
||||
RECORDING
|
||||
IMPORT
|
||||
}
|
||||
|
||||
type GetUploadLinkReturn {
|
||||
value: UploadLinkGetUploadLinkErrors!
|
||||
stream: UploadStreamGQL
|
||||
|
||||
Reference in New Issue
Block a user