Compare commits
1 Commits
loewy/mobi
...
fe95ab824e
| Author | SHA1 | Date | |
|---|---|---|---|
| fe95ab824e |
513
src/index.tsx
513
src/index.tsx
@@ -28,8 +28,6 @@ export type Scalars = {
|
|||||||
Boolean: { input: boolean; output: boolean };
|
Boolean: { input: boolean; output: boolean };
|
||||||
Int: { input: number; output: number };
|
Int: { input: number; output: number };
|
||||||
Float: { input: number; output: number };
|
Float: { input: number; output: number };
|
||||||
/** Integer value that can exceed GraphQL Int's 32-bit range. */
|
|
||||||
BigInt: { input: any; output: any };
|
|
||||||
/** Date (isoformat) */
|
/** Date (isoformat) */
|
||||||
Date: { input: any; output: any };
|
Date: { input: any; output: any };
|
||||||
/** Date with time (isoformat) */
|
/** Date with time (isoformat) */
|
||||||
@@ -81,13 +79,6 @@ export enum AlignedIntervalEnum {
|
|||||||
Year = "YEAR",
|
Year = "YEAR",
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AppleIapSubscriptionOptionsGql = {
|
|
||||||
__typename?: "AppleIapSubscriptionOptionsGQL";
|
|
||||||
enabled: Scalars["Boolean"]["output"];
|
|
||||||
proMonthlyProductId?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
productIds: Array<Scalars["String"]["output"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type BankFeaturesGql = {
|
export type BankFeaturesGql = {
|
||||||
__typename?: "BankFeaturesGQL";
|
__typename?: "BankFeaturesGQL";
|
||||||
bankAngle: Scalars["Float"]["output"];
|
bankAngle: Scalars["Float"]["output"];
|
||||||
@@ -313,14 +304,6 @@ export type DoesNotOwnShotErrOtherErrorNeedsNote =
|
|||||||
| DoesNotOwnShotErr
|
| DoesNotOwnShotErr
|
||||||
| OtherErrorNeedsNote;
|
| OtherErrorNeedsNote;
|
||||||
|
|
||||||
export type DrillRunLeaderboardGql = {
|
|
||||||
__typename?: "DrillRunLeaderboardGQL";
|
|
||||||
entries: Array<RunGql>;
|
|
||||||
totalPlayers: Scalars["Int"]["output"];
|
|
||||||
youRank?: Maybe<Scalars["Int"]["output"]>;
|
|
||||||
youRun?: Maybe<RunGql>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type EditShotReturn = {
|
export type EditShotReturn = {
|
||||||
__typename?: "EditShotReturn";
|
__typename?: "EditShotReturn";
|
||||||
error?: Maybe<DoesNotOwnShotErr>;
|
error?: Maybe<DoesNotOwnShotErr>;
|
||||||
@@ -329,7 +312,6 @@ export type EditShotReturn = {
|
|||||||
|
|
||||||
export type EditUserInputGql = {
|
export type EditUserInputGql = {
|
||||||
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
bio?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
username?: InputMaybe<Scalars["String"]["input"]>;
|
username?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
@@ -2756,9 +2738,7 @@ export type PlayerSummaryGql = {
|
|||||||
makePercentage: Scalars["Float"]["output"];
|
makePercentage: Scalars["Float"]["output"];
|
||||||
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
profileImageUri?: Maybe<Scalars["String"]["output"]>;
|
||||||
representativeFullFrameUrl?: Maybe<Scalars["String"]["output"]>;
|
representativeFullFrameUrl?: Maybe<Scalars["String"]["output"]>;
|
||||||
runLengths: Array<Scalars["Int"]["output"]>;
|
|
||||||
score?: Maybe<Scalars["Int"]["output"]>;
|
score?: Maybe<Scalars["Int"]["output"]>;
|
||||||
spinTypeBreakdown: SpinTypeBreakdownGql;
|
|
||||||
totalShots: Scalars["Int"]["output"];
|
totalShots: Scalars["Int"]["output"];
|
||||||
totalShotsMade: Scalars["Int"]["output"];
|
totalShotsMade: Scalars["Int"]["output"];
|
||||||
userId?: Maybe<Scalars["Int"]["output"]>;
|
userId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
@@ -2844,24 +2824,20 @@ export type Query = {
|
|||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
|
||||||
getBucketSet?: Maybe<BucketSetGql>;
|
getBucketSet?: Maybe<BucketSetGql>;
|
||||||
getDeployedConfig: DeployedConfigGql;
|
getDeployedConfig: DeployedConfigGql;
|
||||||
getDrillRunLeaderboard: DrillRunLeaderboardGql;
|
|
||||||
getFeedVideos: VideoHistoryGql;
|
getFeedVideos: VideoHistoryGql;
|
||||||
getGameTypeTagMetrics: Array<GameTypeTagMetric>;
|
getGameTypeTagMetrics: Array<GameTypeTagMetric>;
|
||||||
getLoggedInUser?: Maybe<UserGql>;
|
getLoggedInUser?: Maybe<UserGql>;
|
||||||
getLongestRunsLeaderboard: RunLeaderboardGql;
|
getLongestRunsLeaderboard: RunLeaderboardGql;
|
||||||
getMakesLeaderboard: CountLeaderboardGql;
|
getMakesLeaderboard: CountLeaderboardGql;
|
||||||
getMedals: RequestedMedalsGql;
|
getMedals: RequestedMedalsGql;
|
||||||
getMyDrillRuns: Array<RunGql>;
|
|
||||||
getOrderedShots: GetShotsResult;
|
getOrderedShots: GetShotsResult;
|
||||||
getPlayTime: UserPlayTimeGql;
|
getPlayTime: UserPlayTimeGql;
|
||||||
getQuotaStatus: QuotaStatusGql;
|
getQuotaStatus: QuotaStatusGql;
|
||||||
getResolvedTier: ResolvedTierGql;
|
|
||||||
getRuns: GetRunsResult;
|
getRuns: GetRunsResult;
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
getShotsByIds: Array<ShotGql>;
|
getShotsByIds: Array<ShotGql>;
|
||||||
getShotsWithMetadata: GetShotsResult;
|
getShotsWithMetadata: GetShotsResult;
|
||||||
getStorageStatus?: Maybe<StorageStatusGql>;
|
|
||||||
getTableState: TableStateGql;
|
getTableState: TableStateGql;
|
||||||
getUser?: Maybe<UserGql>;
|
getUser?: Maybe<UserGql>;
|
||||||
getUserRelationshipsMatching: UserRelationshipsResult;
|
getUserRelationshipsMatching: UserRelationshipsResult;
|
||||||
@@ -2909,16 +2885,6 @@ export type QueryGetBucketSetArgs = {
|
|||||||
keyName: Scalars["String"]["input"];
|
keyName: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetDrillRunLeaderboardArgs = {
|
|
||||||
drillTag: Scalars["String"]["input"];
|
|
||||||
interval?: InputMaybe<TimeInterval>;
|
|
||||||
limit?: Scalars["Int"]["input"];
|
|
||||||
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type QueryGetFeedVideosArgs = {
|
export type QueryGetFeedVideosArgs = {
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
feedInput?: InputMaybe<VideoFeedInputGql>;
|
feedInput?: InputMaybe<VideoFeedInputGql>;
|
||||||
@@ -2949,11 +2915,6 @@ export type QueryGetMedalsArgs = {
|
|||||||
userId?: InputMaybe<Scalars["Int"]["input"]>;
|
userId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type QueryGetMyDrillRunsArgs = {
|
|
||||||
drillTag: Scalars["String"]["input"];
|
|
||||||
limit?: Scalars["Int"]["input"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type QueryGetOrderedShotsArgs = {
|
export type QueryGetOrderedShotsArgs = {
|
||||||
countRespectsLimit?: Scalars["Boolean"]["input"];
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
@@ -3162,18 +3123,6 @@ export type RequestedMedalsGql = {
|
|||||||
totalMakes10000?: Maybe<MedalGql>;
|
totalMakes10000?: Maybe<MedalGql>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type ResolvedTierGql = {
|
|
||||||
__typename?: "ResolvedTierGQL";
|
|
||||||
capabilities: Array<Scalars["String"]["output"]>;
|
|
||||||
entitlementEndsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
entitlementSource?: Maybe<EntitlementSourceTypeEnum>;
|
|
||||||
entitlementStartsAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
entitlementStatus?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
hasActiveSubscription: Scalars["Boolean"]["output"];
|
|
||||||
tierDisplayName: Scalars["String"]["output"];
|
|
||||||
tierName: Scalars["String"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type RuleSet = {
|
export type RuleSet = {
|
||||||
__typename?: "RuleSet";
|
__typename?: "RuleSet";
|
||||||
createdAt: Scalars["DateTime"]["output"];
|
createdAt: Scalars["DateTime"]["output"];
|
||||||
@@ -3364,13 +3313,6 @@ export type ShotsOrderingComponent =
|
|||||||
videoId: IntOrdering;
|
videoId: IntOrdering;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SpinTypeBreakdownGql = {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
center: Scalars["Int"]["output"];
|
|
||||||
draw: Scalars["Int"]["output"];
|
|
||||||
follow: Scalars["Int"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type SpinTypeCountsGql = {
|
export type SpinTypeCountsGql = {
|
||||||
__typename?: "SpinTypeCountsGQL";
|
__typename?: "SpinTypeCountsGQL";
|
||||||
center: Scalars["Int"]["output"];
|
center: Scalars["Int"]["output"];
|
||||||
@@ -3386,20 +3328,6 @@ export enum SpinTypeEnum {
|
|||||||
Unknown = "UNKNOWN",
|
Unknown = "UNKNOWN",
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StorageStatusGql = {
|
|
||||||
__typename?: "StorageStatusGQL";
|
|
||||||
isNearLimit: Scalars["Boolean"]["output"];
|
|
||||||
isOverLimit: Scalars["Boolean"]["output"];
|
|
||||||
isUnlimited: Scalars["Boolean"]["output"];
|
|
||||||
policyConfigured: Scalars["Boolean"]["output"];
|
|
||||||
remainingStorageBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
|
||||||
retainedStorageLimitBytes?: Maybe<Scalars["BigInt"]["output"]>;
|
|
||||||
retainedStorageUsedBytes: Scalars["BigInt"]["output"];
|
|
||||||
storageUsageRatio?: Maybe<Scalars["Float"]["output"]>;
|
|
||||||
tierName: Scalars["String"]["output"];
|
|
||||||
userId: Scalars["Int"]["output"];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type StreamErrorGql = {
|
export type StreamErrorGql = {
|
||||||
__typename?: "StreamErrorGQL";
|
__typename?: "StreamErrorGQL";
|
||||||
message: Scalars["String"]["output"];
|
message: Scalars["String"]["output"];
|
||||||
@@ -3432,7 +3360,6 @@ export type StripeProductGql = {
|
|||||||
|
|
||||||
export type StripeSubscriptionOptionsGql = {
|
export type StripeSubscriptionOptionsGql = {
|
||||||
__typename?: "StripeSubscriptionOptionsGQL";
|
__typename?: "StripeSubscriptionOptionsGQL";
|
||||||
appleIap: AppleIapSubscriptionOptionsGql;
|
|
||||||
products: Array<StripeProductGql>;
|
products: Array<StripeProductGql>;
|
||||||
trialPeriodDays?: Maybe<Scalars["Int"]["output"]>;
|
trialPeriodDays?: Maybe<Scalars["Int"]["output"]>;
|
||||||
};
|
};
|
||||||
@@ -3571,7 +3498,6 @@ export type UploadStreamGql = {
|
|||||||
initPlaylistUploadStatus?: Maybe<InitPlaylistUploadStatusEnum>;
|
initPlaylistUploadStatus?: Maybe<InitPlaylistUploadStatusEnum>;
|
||||||
isCompleted: Scalars["Boolean"]["output"];
|
isCompleted: Scalars["Boolean"]["output"];
|
||||||
lastIntendedSegmentBound?: Maybe<Scalars["Int"]["output"]>;
|
lastIntendedSegmentBound?: Maybe<Scalars["Int"]["output"]>;
|
||||||
lastSegmentUploadedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
||||||
linksRequested: Scalars["Int"]["output"];
|
linksRequested: Scalars["Int"]["output"];
|
||||||
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
|
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
|
||||||
resolution: VideoResolutionGql;
|
resolution: VideoResolutionGql;
|
||||||
@@ -3588,7 +3514,6 @@ export type UserGql = {
|
|||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
activeVideoId?: Maybe<Scalars["Int"]["output"]>;
|
activeVideoId?: Maybe<Scalars["Int"]["output"]>;
|
||||||
agreesToMarketing?: Maybe<Scalars["Boolean"]["output"]>;
|
agreesToMarketing?: Maybe<Scalars["Boolean"]["output"]>;
|
||||||
bio?: Maybe<Scalars["String"]["output"]>;
|
|
||||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
fargoRating?: Maybe<Scalars["Int"]["output"]>;
|
fargoRating?: Maybe<Scalars["Int"]["output"]>;
|
||||||
firebaseUid?: Maybe<Scalars["String"]["output"]>;
|
firebaseUid?: Maybe<Scalars["String"]["output"]>;
|
||||||
@@ -3713,7 +3638,6 @@ export type VideoGql = {
|
|||||||
|
|
||||||
export type VideoHistoryGql = {
|
export type VideoHistoryGql = {
|
||||||
__typename?: "VideoHistoryGQL";
|
__typename?: "VideoHistoryGQL";
|
||||||
followingCount: Scalars["Int"]["output"];
|
|
||||||
hasFollowing: Scalars["Boolean"]["output"];
|
hasFollowing: Scalars["Boolean"]["output"];
|
||||||
pageInfo: PageInfoGql;
|
pageInfo: PageInfoGql;
|
||||||
videos: Array<VideoGql>;
|
videos: Array<VideoGql>;
|
||||||
@@ -4314,8 +4238,6 @@ export type GetFeedQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
|
||||||
lastSegmentUploadedAt?: any | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -4334,15 +4256,8 @@ export type GetFeedQuery = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
score?: number | null;
|
score?: number | null;
|
||||||
longestRun: number;
|
longestRun: number;
|
||||||
runLengths: Array<number>;
|
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
spinTypeBreakdown: {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
draw: number;
|
|
||||||
center: number;
|
|
||||||
follow: number;
|
|
||||||
};
|
|
||||||
}>;
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
@@ -4427,8 +4342,6 @@ export type VideoCardFieldsFragment = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
|
||||||
lastSegmentUploadedAt?: any | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -4447,15 +4360,8 @@ export type VideoCardFieldsFragment = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
score?: number | null;
|
score?: number | null;
|
||||||
longestRun: number;
|
longestRun: number;
|
||||||
runLengths: Array<number>;
|
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
spinTypeBreakdown: {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
draw: number;
|
|
||||||
center: number;
|
|
||||||
follow: number;
|
|
||||||
};
|
|
||||||
}>;
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
@@ -4547,7 +4453,6 @@ export type GetVideoFeedQuery = {
|
|||||||
getFeedVideos: {
|
getFeedVideos: {
|
||||||
__typename?: "VideoHistoryGQL";
|
__typename?: "VideoHistoryGQL";
|
||||||
hasFollowing: boolean;
|
hasFollowing: boolean;
|
||||||
followingCount: number;
|
|
||||||
videos: Array<{
|
videos: Array<{
|
||||||
__typename?: "VideoGQL";
|
__typename?: "VideoGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -4573,8 +4478,6 @@ export type GetVideoFeedQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
|
||||||
lastSegmentUploadedAt?: any | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -4593,15 +4496,8 @@ export type GetVideoFeedQuery = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
score?: number | null;
|
score?: number | null;
|
||||||
longestRun: number;
|
longestRun: number;
|
||||||
runLengths: Array<number>;
|
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
spinTypeBreakdown: {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
draw: number;
|
|
||||||
center: number;
|
|
||||||
follow: number;
|
|
||||||
};
|
|
||||||
}>;
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
@@ -4705,65 +4601,6 @@ export type GetRunsLeaderboardQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetDrillRunLeaderboardQueryVariables = Exact<{
|
|
||||||
drillTag: Scalars["String"]["input"];
|
|
||||||
interval?: InputMaybe<TimeInterval>;
|
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
||||||
tableSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
tableSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
pocketSizeMin?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
pocketSizeMax?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetDrillRunLeaderboardQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getDrillRunLeaderboard: {
|
|
||||||
__typename?: "DrillRunLeaderboardGQL";
|
|
||||||
youRank?: number | null;
|
|
||||||
totalPlayers: number;
|
|
||||||
entries: Array<{
|
|
||||||
__typename?: "RunGQL";
|
|
||||||
id: number;
|
|
||||||
runLength: number;
|
|
||||||
videoId: number;
|
|
||||||
video: {
|
|
||||||
__typename?: "VideoGQL";
|
|
||||||
tableSize: number;
|
|
||||||
pocketSize?: number | null;
|
|
||||||
createdAt?: any | null;
|
|
||||||
};
|
|
||||||
user: {
|
|
||||||
__typename?: "UserGQL";
|
|
||||||
id: number;
|
|
||||||
username: string;
|
|
||||||
profileImageUri?: string | null;
|
|
||||||
};
|
|
||||||
}>;
|
|
||||||
youRun?: {
|
|
||||||
__typename?: "RunGQL";
|
|
||||||
id: number;
|
|
||||||
runLength: number;
|
|
||||||
videoId: number;
|
|
||||||
} | null;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetMyDrillRunsQueryVariables = Exact<{
|
|
||||||
drillTag: Scalars["String"]["input"];
|
|
||||||
limit?: InputMaybe<Scalars["Int"]["input"]>;
|
|
||||||
}>;
|
|
||||||
|
|
||||||
export type GetMyDrillRunsQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getMyDrillRuns: Array<{
|
|
||||||
__typename?: "RunGQL";
|
|
||||||
id: number;
|
|
||||||
runLength: number;
|
|
||||||
videoId: number;
|
|
||||||
video: { __typename?: "VideoGQL"; createdAt?: any | null };
|
|
||||||
}>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
|
||||||
videoId: Scalars["ID"]["input"];
|
videoId: Scalars["ID"]["input"];
|
||||||
intervalDuration: Scalars["Int"]["input"];
|
intervalDuration: Scalars["Int"]["input"];
|
||||||
@@ -5098,12 +4935,6 @@ export type GetAvailableSubscriptionOptionsQuery = {
|
|||||||
active: boolean;
|
active: boolean;
|
||||||
}>;
|
}>;
|
||||||
}>;
|
}>;
|
||||||
appleIap: {
|
|
||||||
__typename?: "AppleIapSubscriptionOptionsGQL";
|
|
||||||
enabled: boolean;
|
|
||||||
proMonthlyProductId?: string | null;
|
|
||||||
productIds: Array<string>;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5128,25 +4959,6 @@ export type GetSubscriptionStatusQuery = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetStorageStatusQueryVariables = Exact<{ [key: string]: never }>;
|
|
||||||
|
|
||||||
export type GetStorageStatusQuery = {
|
|
||||||
__typename?: "Query";
|
|
||||||
getStorageStatus?: {
|
|
||||||
__typename?: "StorageStatusGQL";
|
|
||||||
userId: number;
|
|
||||||
tierName: string;
|
|
||||||
retainedStorageUsedBytes: any;
|
|
||||||
retainedStorageLimitBytes?: any | null;
|
|
||||||
isUnlimited: boolean;
|
|
||||||
policyConfigured: boolean;
|
|
||||||
remainingStorageBytes?: any | null;
|
|
||||||
storageUsageRatio?: number | null;
|
|
||||||
isNearLimit: boolean;
|
|
||||||
isOverLimit: boolean;
|
|
||||||
} | null;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetAppleAppAccountTokenQueryVariables = Exact<{
|
export type GetAppleAppAccountTokenQueryVariables = Exact<{
|
||||||
[key: string]: never;
|
[key: string]: never;
|
||||||
}>;
|
}>;
|
||||||
@@ -5307,15 +5119,8 @@ export type PlayerSummaryFieldsFragment = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
score?: number | null;
|
score?: number | null;
|
||||||
longestRun: number;
|
longestRun: number;
|
||||||
runLengths: Array<number>;
|
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
spinTypeBreakdown: {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
draw: number;
|
|
||||||
center: number;
|
|
||||||
follow: number;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PlayerClusterShotFieldsFragment = {
|
export type PlayerClusterShotFieldsFragment = {
|
||||||
@@ -5998,7 +5803,6 @@ export type EditProfileImageUriMutation = {
|
|||||||
username: string;
|
username: string;
|
||||||
isAdmin?: boolean | null;
|
isAdmin?: boolean | null;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
bio?: string | null;
|
|
||||||
fargoRating?: number | null;
|
fargoRating?: number | null;
|
||||||
activeVideoId?: number | null;
|
activeVideoId?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
@@ -6019,7 +5823,6 @@ export type GetLoggedInUserQuery = {
|
|||||||
username: string;
|
username: string;
|
||||||
isAdmin?: boolean | null;
|
isAdmin?: boolean | null;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
bio?: string | null;
|
|
||||||
fargoRating?: number | null;
|
fargoRating?: number | null;
|
||||||
activeVideoId?: number | null;
|
activeVideoId?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
@@ -6042,7 +5845,6 @@ export type GetUserQuery = {
|
|||||||
username: string;
|
username: string;
|
||||||
isAdmin?: boolean | null;
|
isAdmin?: boolean | null;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
bio?: string | null;
|
|
||||||
fargoRating?: number | null;
|
fargoRating?: number | null;
|
||||||
activeVideoId?: number | null;
|
activeVideoId?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
@@ -6232,7 +6034,6 @@ export type EditUserMutationVariables = Exact<{
|
|||||||
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
fargoRating?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
videosPrivateByDefault?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
agreesToMarketing?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
bio?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type EditUserMutation = {
|
export type EditUserMutation = {
|
||||||
@@ -6246,7 +6047,6 @@ export type EditUserMutation = {
|
|||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
agreesToMarketing?: boolean | null;
|
agreesToMarketing?: boolean | null;
|
||||||
bio?: string | null;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -6264,7 +6064,6 @@ export type UserFragmentFragment = {
|
|||||||
username: string;
|
username: string;
|
||||||
isAdmin?: boolean | null;
|
isAdmin?: boolean | null;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
bio?: string | null;
|
|
||||||
fargoRating?: number | null;
|
fargoRating?: number | null;
|
||||||
activeVideoId?: number | null;
|
activeVideoId?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
@@ -6288,7 +6087,6 @@ export type GetUsersMatchingQuery = {
|
|||||||
username: string;
|
username: string;
|
||||||
isAdmin?: boolean | null;
|
isAdmin?: boolean | null;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
bio?: string | null;
|
|
||||||
fargoRating?: number | null;
|
fargoRating?: number | null;
|
||||||
activeVideoId?: number | null;
|
activeVideoId?: number | null;
|
||||||
createdAt?: any | null;
|
createdAt?: any | null;
|
||||||
@@ -6446,15 +6244,8 @@ export type GetVideoDetailsQuery = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
score?: number | null;
|
score?: number | null;
|
||||||
longestRun: number;
|
longestRun: number;
|
||||||
runLengths: Array<number>;
|
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
spinTypeBreakdown: {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
draw: number;
|
|
||||||
center: number;
|
|
||||||
follow: number;
|
|
||||||
};
|
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -6554,8 +6345,6 @@ export type GetVideoCardQuery = {
|
|||||||
id: string;
|
id: string;
|
||||||
lastIntendedSegmentBound?: number | null;
|
lastIntendedSegmentBound?: number | null;
|
||||||
streamSegmentType: StreamSegmentTypeEnum;
|
streamSegmentType: StreamSegmentTypeEnum;
|
||||||
isCompleted: boolean;
|
|
||||||
lastSegmentUploadedAt?: any | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
tags: Array<{
|
tags: Array<{
|
||||||
__typename?: "VideoTag";
|
__typename?: "VideoTag";
|
||||||
@@ -6574,15 +6363,8 @@ export type GetVideoCardQuery = {
|
|||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
score?: number | null;
|
score?: number | null;
|
||||||
longestRun: number;
|
longestRun: number;
|
||||||
runLengths: Array<number>;
|
|
||||||
averageDifficulty?: number | null;
|
averageDifficulty?: number | null;
|
||||||
averageTimeBetweenShots?: number | null;
|
averageTimeBetweenShots?: number | null;
|
||||||
spinTypeBreakdown: {
|
|
||||||
__typename?: "SpinTypeBreakdownGQL";
|
|
||||||
draw: number;
|
|
||||||
center: number;
|
|
||||||
follow: number;
|
|
||||||
};
|
|
||||||
}>;
|
}>;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
@@ -7230,12 +7012,6 @@ export const PlayerSummaryFieldsFragmentDoc = gql`
|
|||||||
makePercentage
|
makePercentage
|
||||||
score
|
score
|
||||||
longestRun
|
longestRun
|
||||||
runLengths
|
|
||||||
spinTypeBreakdown {
|
|
||||||
draw
|
|
||||||
center
|
|
||||||
follow
|
|
||||||
}
|
|
||||||
averageDifficulty
|
averageDifficulty
|
||||||
averageTimeBetweenShots
|
averageTimeBetweenShots
|
||||||
}
|
}
|
||||||
@@ -7269,8 +7045,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
|
||||||
lastSegmentUploadedAt
|
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
@@ -7472,7 +7246,6 @@ export const UserFragmentFragmentDoc = gql`
|
|||||||
username
|
username
|
||||||
isAdmin
|
isAdmin
|
||||||
profileImageUri
|
profileImageUri
|
||||||
bio
|
|
||||||
fargoRating
|
fargoRating
|
||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
@@ -9596,7 +9369,6 @@ export const GetVideoFeedDocument = gql`
|
|||||||
endCursor
|
endCursor
|
||||||
}
|
}
|
||||||
hasFollowing
|
hasFollowing
|
||||||
followingCount
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
${VideoCardFieldsFragmentDoc}
|
${VideoCardFieldsFragmentDoc}
|
||||||
@@ -9841,201 +9613,6 @@ export type GetRunsLeaderboardQueryResult = Apollo.QueryResult<
|
|||||||
GetRunsLeaderboardQuery,
|
GetRunsLeaderboardQuery,
|
||||||
GetRunsLeaderboardQueryVariables
|
GetRunsLeaderboardQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetDrillRunLeaderboardDocument = gql`
|
|
||||||
query GetDrillRunLeaderboard(
|
|
||||||
$drillTag: String!
|
|
||||||
$interval: TimeInterval
|
|
||||||
$limit: Int = 50
|
|
||||||
$tableSizeMin: Float
|
|
||||||
$tableSizeMax: Float
|
|
||||||
$pocketSizeMin: Float
|
|
||||||
$pocketSizeMax: Float
|
|
||||||
) {
|
|
||||||
getDrillRunLeaderboard(
|
|
||||||
drillTag: $drillTag
|
|
||||||
interval: $interval
|
|
||||||
limit: $limit
|
|
||||||
tableSizeMin: $tableSizeMin
|
|
||||||
tableSizeMax: $tableSizeMax
|
|
||||||
pocketSizeMin: $pocketSizeMin
|
|
||||||
pocketSizeMax: $pocketSizeMax
|
|
||||||
) {
|
|
||||||
entries {
|
|
||||||
id
|
|
||||||
runLength
|
|
||||||
videoId
|
|
||||||
video {
|
|
||||||
tableSize
|
|
||||||
pocketSize
|
|
||||||
createdAt
|
|
||||||
}
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
|
||||||
youRun {
|
|
||||||
id
|
|
||||||
runLength
|
|
||||||
videoId
|
|
||||||
}
|
|
||||||
youRank
|
|
||||||
totalPlayers
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetDrillRunLeaderboardQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetDrillRunLeaderboardQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetDrillRunLeaderboardQuery` 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 } = useGetDrillRunLeaderboardQuery({
|
|
||||||
* variables: {
|
|
||||||
* drillTag: // value for 'drillTag'
|
|
||||||
* interval: // value for 'interval'
|
|
||||||
* limit: // value for 'limit'
|
|
||||||
* tableSizeMin: // value for 'tableSizeMin'
|
|
||||||
* tableSizeMax: // value for 'tableSizeMax'
|
|
||||||
* pocketSizeMin: // value for 'pocketSizeMin'
|
|
||||||
* pocketSizeMax: // value for 'pocketSizeMax'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetDrillRunLeaderboardQuery(
|
|
||||||
baseOptions: Apollo.QueryHookOptions<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>(GetDrillRunLeaderboardDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetDrillRunLeaderboardLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>(GetDrillRunLeaderboardDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetDrillRunLeaderboardSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>(GetDrillRunLeaderboardDocument, options);
|
|
||||||
}
|
|
||||||
export type GetDrillRunLeaderboardQueryHookResult = ReturnType<
|
|
||||||
typeof useGetDrillRunLeaderboardQuery
|
|
||||||
>;
|
|
||||||
export type GetDrillRunLeaderboardLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetDrillRunLeaderboardLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetDrillRunLeaderboardSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetDrillRunLeaderboardSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetDrillRunLeaderboardQueryResult = Apollo.QueryResult<
|
|
||||||
GetDrillRunLeaderboardQuery,
|
|
||||||
GetDrillRunLeaderboardQueryVariables
|
|
||||||
>;
|
|
||||||
export const GetMyDrillRunsDocument = gql`
|
|
||||||
query GetMyDrillRuns($drillTag: String!, $limit: Int = 50) {
|
|
||||||
getMyDrillRuns(drillTag: $drillTag, limit: $limit) {
|
|
||||||
id
|
|
||||||
runLength
|
|
||||||
videoId
|
|
||||||
video {
|
|
||||||
createdAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetMyDrillRunsQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetMyDrillRunsQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetMyDrillRunsQuery` 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 } = useGetMyDrillRunsQuery({
|
|
||||||
* variables: {
|
|
||||||
* drillTag: // value for 'drillTag'
|
|
||||||
* limit: // value for 'limit'
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetMyDrillRunsQuery(
|
|
||||||
baseOptions: Apollo.QueryHookOptions<
|
|
||||||
GetMyDrillRunsQuery,
|
|
||||||
GetMyDrillRunsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<GetMyDrillRunsQuery, GetMyDrillRunsQueryVariables>(
|
|
||||||
GetMyDrillRunsDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetMyDrillRunsLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetMyDrillRunsQuery,
|
|
||||||
GetMyDrillRunsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<GetMyDrillRunsQuery, GetMyDrillRunsQueryVariables>(
|
|
||||||
GetMyDrillRunsDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetMyDrillRunsSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetMyDrillRunsQuery,
|
|
||||||
GetMyDrillRunsQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetMyDrillRunsQuery,
|
|
||||||
GetMyDrillRunsQueryVariables
|
|
||||||
>(GetMyDrillRunsDocument, options);
|
|
||||||
}
|
|
||||||
export type GetMyDrillRunsQueryHookResult = ReturnType<
|
|
||||||
typeof useGetMyDrillRunsQuery
|
|
||||||
>;
|
|
||||||
export type GetMyDrillRunsLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetMyDrillRunsLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetMyDrillRunsSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetMyDrillRunsSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetMyDrillRunsQueryResult = Apollo.QueryResult<
|
|
||||||
GetMyDrillRunsQuery,
|
|
||||||
GetMyDrillRunsQueryVariables
|
|
||||||
>;
|
|
||||||
export const GetVideoMakePercentageIntervalsDocument = gql`
|
export const GetVideoMakePercentageIntervalsDocument = gql`
|
||||||
query GetVideoMakePercentageIntervals(
|
query GetVideoMakePercentageIntervals(
|
||||||
$videoId: ID!
|
$videoId: ID!
|
||||||
@@ -10778,11 +10355,6 @@ export const GetAvailableSubscriptionOptionsDocument = gql`
|
|||||||
active
|
active
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
appleIap {
|
|
||||||
enabled
|
|
||||||
proMonthlyProductId
|
|
||||||
productIds
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -10932,87 +10504,6 @@ export type GetSubscriptionStatusQueryResult = Apollo.QueryResult<
|
|||||||
GetSubscriptionStatusQuery,
|
GetSubscriptionStatusQuery,
|
||||||
GetSubscriptionStatusQueryVariables
|
GetSubscriptionStatusQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetStorageStatusDocument = gql`
|
|
||||||
query GetStorageStatus {
|
|
||||||
getStorageStatus {
|
|
||||||
userId
|
|
||||||
tierName
|
|
||||||
retainedStorageUsedBytes
|
|
||||||
retainedStorageLimitBytes
|
|
||||||
isUnlimited
|
|
||||||
policyConfigured
|
|
||||||
remainingStorageBytes
|
|
||||||
storageUsageRatio
|
|
||||||
isNearLimit
|
|
||||||
isOverLimit
|
|
||||||
}
|
|
||||||
}
|
|
||||||
`;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* __useGetStorageStatusQuery__
|
|
||||||
*
|
|
||||||
* To run a query within a React component, call `useGetStorageStatusQuery` and pass it any options that fit your needs.
|
|
||||||
* When your component renders, `useGetStorageStatusQuery` 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 } = useGetStorageStatusQuery({
|
|
||||||
* variables: {
|
|
||||||
* },
|
|
||||||
* });
|
|
||||||
*/
|
|
||||||
export function useGetStorageStatusQuery(
|
|
||||||
baseOptions?: Apollo.QueryHookOptions<
|
|
||||||
GetStorageStatusQuery,
|
|
||||||
GetStorageStatusQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useQuery<GetStorageStatusQuery, GetStorageStatusQueryVariables>(
|
|
||||||
GetStorageStatusDocument,
|
|
||||||
options,
|
|
||||||
);
|
|
||||||
}
|
|
||||||
export function useGetStorageStatusLazyQuery(
|
|
||||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
||||||
GetStorageStatusQuery,
|
|
||||||
GetStorageStatusQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useLazyQuery<
|
|
||||||
GetStorageStatusQuery,
|
|
||||||
GetStorageStatusQueryVariables
|
|
||||||
>(GetStorageStatusDocument, options);
|
|
||||||
}
|
|
||||||
export function useGetStorageStatusSuspenseQuery(
|
|
||||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
||||||
GetStorageStatusQuery,
|
|
||||||
GetStorageStatusQueryVariables
|
|
||||||
>,
|
|
||||||
) {
|
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
|
||||||
return Apollo.useSuspenseQuery<
|
|
||||||
GetStorageStatusQuery,
|
|
||||||
GetStorageStatusQueryVariables
|
|
||||||
>(GetStorageStatusDocument, options);
|
|
||||||
}
|
|
||||||
export type GetStorageStatusQueryHookResult = ReturnType<
|
|
||||||
typeof useGetStorageStatusQuery
|
|
||||||
>;
|
|
||||||
export type GetStorageStatusLazyQueryHookResult = ReturnType<
|
|
||||||
typeof useGetStorageStatusLazyQuery
|
|
||||||
>;
|
|
||||||
export type GetStorageStatusSuspenseQueryHookResult = ReturnType<
|
|
||||||
typeof useGetStorageStatusSuspenseQuery
|
|
||||||
>;
|
|
||||||
export type GetStorageStatusQueryResult = Apollo.QueryResult<
|
|
||||||
GetStorageStatusQuery,
|
|
||||||
GetStorageStatusQueryVariables
|
|
||||||
>;
|
|
||||||
export const GetAppleAppAccountTokenDocument = gql`
|
export const GetAppleAppAccountTokenDocument = gql`
|
||||||
query GetAppleAppAccountToken {
|
query GetAppleAppAccountToken {
|
||||||
getAppleAppAccountToken
|
getAppleAppAccountToken
|
||||||
@@ -13557,7 +13048,6 @@ export const EditUserDocument = gql`
|
|||||||
$fargoRating: Int
|
$fargoRating: Int
|
||||||
$videosPrivateByDefault: Boolean
|
$videosPrivateByDefault: Boolean
|
||||||
$agreesToMarketing: Boolean
|
$agreesToMarketing: Boolean
|
||||||
$bio: String
|
|
||||||
) {
|
) {
|
||||||
editUser(
|
editUser(
|
||||||
input: {
|
input: {
|
||||||
@@ -13565,7 +13055,6 @@ export const EditUserDocument = gql`
|
|||||||
fargoRating: $fargoRating
|
fargoRating: $fargoRating
|
||||||
videosPrivateByDefault: $videosPrivateByDefault
|
videosPrivateByDefault: $videosPrivateByDefault
|
||||||
agreesToMarketing: $agreesToMarketing
|
agreesToMarketing: $agreesToMarketing
|
||||||
bio: $bio
|
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
id
|
id
|
||||||
@@ -13575,7 +13064,6 @@ export const EditUserDocument = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
agreesToMarketing
|
agreesToMarketing
|
||||||
bio
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
@@ -13601,7 +13089,6 @@ export type EditUserMutationFn = Apollo.MutationFunction<
|
|||||||
* fargoRating: // value for 'fargoRating'
|
* fargoRating: // value for 'fargoRating'
|
||||||
* videosPrivateByDefault: // value for 'videosPrivateByDefault'
|
* videosPrivateByDefault: // value for 'videosPrivateByDefault'
|
||||||
* agreesToMarketing: // value for 'agreesToMarketing'
|
* agreesToMarketing: // value for 'agreesToMarketing'
|
||||||
* bio: // value for 'bio'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -42,8 +42,6 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
id
|
id
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
isCompleted
|
|
||||||
lastSegmentUploadedAt
|
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
pocketSize
|
||||||
@@ -148,6 +146,5 @@ query GetVideoFeed(
|
|||||||
endCursor
|
endCursor
|
||||||
}
|
}
|
||||||
hasFollowing
|
hasFollowing
|
||||||
followingCount
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,57 +30,3 @@ query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetDrillRunLeaderboard(
|
|
||||||
$drillTag: String!
|
|
||||||
$interval: TimeInterval
|
|
||||||
$limit: Int = 50
|
|
||||||
$tableSizeMin: Float
|
|
||||||
$tableSizeMax: Float
|
|
||||||
$pocketSizeMin: Float
|
|
||||||
$pocketSizeMax: Float
|
|
||||||
) {
|
|
||||||
getDrillRunLeaderboard(
|
|
||||||
drillTag: $drillTag
|
|
||||||
interval: $interval
|
|
||||||
limit: $limit
|
|
||||||
tableSizeMin: $tableSizeMin
|
|
||||||
tableSizeMax: $tableSizeMax
|
|
||||||
pocketSizeMin: $pocketSizeMin
|
|
||||||
pocketSizeMax: $pocketSizeMax
|
|
||||||
) {
|
|
||||||
entries {
|
|
||||||
id
|
|
||||||
runLength
|
|
||||||
videoId
|
|
||||||
video {
|
|
||||||
tableSize
|
|
||||||
pocketSize
|
|
||||||
createdAt
|
|
||||||
}
|
|
||||||
user {
|
|
||||||
id
|
|
||||||
username
|
|
||||||
profileImageUri
|
|
||||||
}
|
|
||||||
}
|
|
||||||
youRun {
|
|
||||||
id
|
|
||||||
runLength
|
|
||||||
videoId
|
|
||||||
}
|
|
||||||
youRank
|
|
||||||
totalPlayers
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetMyDrillRuns($drillTag: String!, $limit: Int = 50) {
|
|
||||||
getMyDrillRuns(drillTag: $drillTag, limit: $limit) {
|
|
||||||
id
|
|
||||||
runLength
|
|
||||||
videoId
|
|
||||||
video {
|
|
||||||
createdAt
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -44,11 +44,6 @@ query GetAvailableSubscriptionOptions {
|
|||||||
active
|
active
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
appleIap {
|
|
||||||
enabled
|
|
||||||
proMonthlyProductId
|
|
||||||
productIds
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -67,21 +62,6 @@ query GetSubscriptionStatus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetStorageStatus {
|
|
||||||
getStorageStatus {
|
|
||||||
userId
|
|
||||||
tierName
|
|
||||||
retainedStorageUsedBytes
|
|
||||||
retainedStorageLimitBytes
|
|
||||||
isUnlimited
|
|
||||||
policyConfigured
|
|
||||||
remainingStorageBytes
|
|
||||||
storageUsageRatio
|
|
||||||
isNearLimit
|
|
||||||
isOverLimit
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query GetAppleAppAccountToken {
|
query GetAppleAppAccountToken {
|
||||||
getAppleAppAccountToken
|
getAppleAppAccountToken
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,12 +9,6 @@ fragment PlayerSummaryFields on PlayerSummaryGQL {
|
|||||||
makePercentage
|
makePercentage
|
||||||
score
|
score
|
||||||
longestRun
|
longestRun
|
||||||
runLengths
|
|
||||||
spinTypeBreakdown {
|
|
||||||
draw
|
|
||||||
center
|
|
||||||
follow
|
|
||||||
}
|
|
||||||
averageDifficulty
|
averageDifficulty
|
||||||
averageTimeBetweenShots
|
averageTimeBetweenShots
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -177,7 +177,6 @@ mutation editUser(
|
|||||||
$fargoRating: Int
|
$fargoRating: Int
|
||||||
$videosPrivateByDefault: Boolean
|
$videosPrivateByDefault: Boolean
|
||||||
$agreesToMarketing: Boolean
|
$agreesToMarketing: Boolean
|
||||||
$bio: String
|
|
||||||
) {
|
) {
|
||||||
editUser(
|
editUser(
|
||||||
input: {
|
input: {
|
||||||
@@ -185,7 +184,6 @@ mutation editUser(
|
|||||||
fargoRating: $fargoRating
|
fargoRating: $fargoRating
|
||||||
videosPrivateByDefault: $videosPrivateByDefault
|
videosPrivateByDefault: $videosPrivateByDefault
|
||||||
agreesToMarketing: $agreesToMarketing
|
agreesToMarketing: $agreesToMarketing
|
||||||
bio: $bio
|
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
id
|
id
|
||||||
@@ -195,7 +193,6 @@ mutation editUser(
|
|||||||
updatedAt
|
updatedAt
|
||||||
videosPrivateByDefault
|
videosPrivateByDefault
|
||||||
agreesToMarketing
|
agreesToMarketing
|
||||||
bio
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -209,7 +206,6 @@ fragment UserFragment on UserGQL {
|
|||||||
username
|
username
|
||||||
isAdmin
|
isAdmin
|
||||||
profileImageUri
|
profileImageUri
|
||||||
bio
|
|
||||||
fargoRating
|
fargoRating
|
||||||
activeVideoId
|
activeVideoId
|
||||||
createdAt
|
createdAt
|
||||||
|
|||||||
@@ -31,16 +31,6 @@ type Query {
|
|||||||
limit: Int! = 50
|
limit: Int! = 50
|
||||||
requiredTags: [String!] = null
|
requiredTags: [String!] = null
|
||||||
): RunLeaderboardGQL!
|
): RunLeaderboardGQL!
|
||||||
getDrillRunLeaderboard(
|
|
||||||
drillTag: String!
|
|
||||||
interval: TimeInterval = null
|
|
||||||
limit: Int! = 50
|
|
||||||
tableSizeMin: Float = null
|
|
||||||
tableSizeMax: Float = null
|
|
||||||
pocketSizeMin: Float = null
|
|
||||||
pocketSizeMax: Float = null
|
|
||||||
): DrillRunLeaderboardGQL!
|
|
||||||
getMyDrillRuns(drillTag: String!, limit: Int! = 50): [RunGQL!]!
|
|
||||||
getMakesLeaderboard(
|
getMakesLeaderboard(
|
||||||
interval: TimeInterval = null
|
interval: TimeInterval = null
|
||||||
when: DateTime = null
|
when: DateTime = null
|
||||||
@@ -108,10 +98,8 @@ type Query {
|
|||||||
): UserRelationshipsResult!
|
): UserRelationshipsResult!
|
||||||
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGQL!
|
||||||
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
getUserSubscriptionStatus: UserSubscriptionStatusGQL!
|
||||||
getResolvedTier: ResolvedTierGQL!
|
|
||||||
getAppleAppAccountToken: String!
|
getAppleAppAccountToken: String!
|
||||||
getQuotaStatus: QuotaStatusGQL!
|
getQuotaStatus: QuotaStatusGQL!
|
||||||
getStorageStatus: StorageStatusGQL
|
|
||||||
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
getPlayTime(userId: Int!, filters: VideoFilterInput = null): UserPlayTimeGQL!
|
||||||
getUserVideos(
|
getUserVideos(
|
||||||
userId: Int = null
|
userId: Int = null
|
||||||
@@ -358,7 +346,6 @@ type UserGQL {
|
|||||||
activeVideoId: Int
|
activeVideoId: Int
|
||||||
stripeCustomerId: String
|
stripeCustomerId: String
|
||||||
profileImageUri: String
|
profileImageUri: String
|
||||||
bio: String
|
|
||||||
createdAt: DateTime
|
createdAt: DateTime
|
||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
videosPrivateByDefault: Boolean
|
videosPrivateByDefault: Boolean
|
||||||
@@ -532,7 +519,6 @@ type UploadStreamGQL {
|
|||||||
initPlaylistUploadStatus: InitPlaylistUploadStatusEnum
|
initPlaylistUploadStatus: InitPlaylistUploadStatusEnum
|
||||||
lowestUnuploadedSegmentIndex: Int!
|
lowestUnuploadedSegmentIndex: Int!
|
||||||
uploadCompletionCursor: Int!
|
uploadCompletionCursor: Int!
|
||||||
lastSegmentUploadedAt: DateTime
|
|
||||||
errors: [StreamErrorGQL!]!
|
errors: [StreamErrorGQL!]!
|
||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
@@ -692,18 +678,10 @@ type PlayerSummaryGQL {
|
|||||||
makePercentage: Float!
|
makePercentage: Float!
|
||||||
score: Int
|
score: Int
|
||||||
longestRun: Int!
|
longestRun: Int!
|
||||||
runLengths: [Int!]!
|
|
||||||
spinTypeBreakdown: SpinTypeBreakdownGQL!
|
|
||||||
averageDifficulty: Float
|
averageDifficulty: Float
|
||||||
averageTimeBetweenShots: Float
|
averageTimeBetweenShots: Float
|
||||||
}
|
}
|
||||||
|
|
||||||
type SpinTypeBreakdownGQL {
|
|
||||||
draw: Int!
|
|
||||||
center: Int!
|
|
||||||
follow: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
type DeployedConfigGQL {
|
type DeployedConfigGQL {
|
||||||
allowNewUsers: Boolean!
|
allowNewUsers: Boolean!
|
||||||
firebase: Boolean!
|
firebase: Boolean!
|
||||||
@@ -736,7 +714,6 @@ type VideoHistoryGQL {
|
|||||||
videos: [VideoGQL!]!
|
videos: [VideoGQL!]!
|
||||||
pageInfo: PageInfoGQL!
|
pageInfo: PageInfoGQL!
|
||||||
hasFollowing: Boolean!
|
hasFollowing: Boolean!
|
||||||
followingCount: Int!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type PageInfoGQL {
|
type PageInfoGQL {
|
||||||
@@ -773,13 +750,6 @@ type RunLeaderboardGQL {
|
|||||||
entries: [RunGQL!]!
|
entries: [RunGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type DrillRunLeaderboardGQL {
|
|
||||||
entries: [RunGQL!]!
|
|
||||||
youRun: RunGQL
|
|
||||||
youRank: Int
|
|
||||||
totalPlayers: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
type CountLeaderboardGQL {
|
type CountLeaderboardGQL {
|
||||||
entries: [UserShotCountEntry!]!
|
entries: [UserShotCountEntry!]!
|
||||||
}
|
}
|
||||||
@@ -1014,7 +984,6 @@ type UserRelationship {
|
|||||||
type StripeSubscriptionOptionsGQL {
|
type StripeSubscriptionOptionsGQL {
|
||||||
products: [StripeProductGQL!]!
|
products: [StripeProductGQL!]!
|
||||||
trialPeriodDays: Int
|
trialPeriodDays: Int
|
||||||
appleIap: AppleIapSubscriptionOptionsGQL!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type StripeProductGQL {
|
type StripeProductGQL {
|
||||||
@@ -1035,12 +1004,6 @@ type StripePriceGQL {
|
|||||||
active: Boolean!
|
active: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
type AppleIapSubscriptionOptionsGQL {
|
|
||||||
enabled: Boolean!
|
|
||||||
proMonthlyProductId: String
|
|
||||||
productIds: [String!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type UserSubscriptionStatusGQL {
|
type UserSubscriptionStatusGQL {
|
||||||
hasActiveSubscription: Boolean!
|
hasActiveSubscription: Boolean!
|
||||||
entitlementSource: EntitlementSourceTypeEnum
|
entitlementSource: EntitlementSourceTypeEnum
|
||||||
@@ -1073,17 +1036,6 @@ enum StripeSubscriptionStatusEnum {
|
|||||||
PAUSED
|
PAUSED
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResolvedTierGQL {
|
|
||||||
tierName: String!
|
|
||||||
tierDisplayName: String!
|
|
||||||
hasActiveSubscription: Boolean!
|
|
||||||
entitlementSource: EntitlementSourceTypeEnum
|
|
||||||
entitlementStatus: String
|
|
||||||
entitlementStartsAt: DateTime
|
|
||||||
entitlementEndsAt: DateTime
|
|
||||||
capabilities: [String!]!
|
|
||||||
}
|
|
||||||
|
|
||||||
type QuotaStatusGQL {
|
type QuotaStatusGQL {
|
||||||
tierName: String!
|
tierName: String!
|
||||||
periodStart: DateTime!
|
periodStart: DateTime!
|
||||||
@@ -1108,24 +1060,6 @@ type QuotaBucketStatusGQL {
|
|||||||
canUpload: Boolean!
|
canUpload: Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
type StorageStatusGQL {
|
|
||||||
userId: Int!
|
|
||||||
tierName: String!
|
|
||||||
retainedStorageUsedBytes: BigInt!
|
|
||||||
retainedStorageLimitBytes: BigInt
|
|
||||||
isUnlimited: Boolean!
|
|
||||||
policyConfigured: Boolean!
|
|
||||||
remainingStorageBytes: BigInt
|
|
||||||
storageUsageRatio: Float
|
|
||||||
isNearLimit: Boolean!
|
|
||||||
isOverLimit: Boolean!
|
|
||||||
}
|
|
||||||
|
|
||||||
"""
|
|
||||||
Integer value that can exceed GraphQL Int's 32-bit range.
|
|
||||||
"""
|
|
||||||
scalar BigInt
|
|
||||||
|
|
||||||
type UserPlayTimeGQL {
|
type UserPlayTimeGQL {
|
||||||
totalSeconds: Float!
|
totalSeconds: Float!
|
||||||
}
|
}
|
||||||
@@ -1397,7 +1331,6 @@ input EditUserInputGQL {
|
|||||||
fargoRating: Int = null
|
fargoRating: Int = null
|
||||||
videosPrivateByDefault: Boolean = null
|
videosPrivateByDefault: Boolean = null
|
||||||
agreesToMarketing: Boolean = null
|
agreesToMarketing: Boolean = null
|
||||||
bio: String = null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type SyncAppleSubscriptionResultGQL {
|
type SyncAppleSubscriptionResultGQL {
|
||||||
|
|||||||
Reference in New Issue
Block a user