Compare commits
29 Commits
volodymyr/
...
mk/extend-
Author | SHA1 | Date | |
---|---|---|---|
fd87ade629 | |||
1fab007654 | |||
cd2cdb475a | |||
c3c74379fb | |||
da21627f15 | |||
8fabfd67cf | |||
e6960038f2 | |||
b6ec7ed39d | |||
545ba638c2 | |||
94e4e55558 | |||
2536f5db6b | |||
ffd0814a98 | |||
55bfe42484 | |||
dabb0d1d9c | |||
a538c1d81c | |||
872bce3adb | |||
457d375bed | |||
12798e368c | |||
a3d6e6e19e | |||
f7a6e393e7 | |||
ee11e506ed | |||
90ec47848b | |||
21acb5219d | |||
087d511efc | |||
7cc0dca821 | |||
f826121aa3 | |||
2aadb8b49b | |||
5468b7ccda | |||
08dfafe1a3 |
453
src/index.tsx
453
src/index.tsx
@@ -117,6 +117,11 @@ export type BucketSetInputGql = {
|
|||||||
feature: Scalars["String"]["input"];
|
feature: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export enum ClientUploadStatusEnum {
|
||||||
|
UploadDisabled = "UPLOAD_DISABLED",
|
||||||
|
UploadEnabled = "UPLOAD_ENABLED",
|
||||||
|
}
|
||||||
|
|
||||||
export type CreateBucketSetInput = {
|
export type CreateBucketSetInput = {
|
||||||
buckets: Array<BucketInputGql>;
|
buckets: Array<BucketInputGql>;
|
||||||
feature: Scalars["String"]["input"];
|
feature: Scalars["String"]["input"];
|
||||||
@@ -150,6 +155,11 @@ export type DateRangeFilter = {
|
|||||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type DatetimeOrdering = {
|
||||||
|
descending?: Scalars["Boolean"]["input"];
|
||||||
|
startingAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type DatetimeRangeAggregationInput = {
|
export type DatetimeRangeAggregationInput = {
|
||||||
endDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
endDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
feature?: Scalars["String"]["input"];
|
feature?: Scalars["String"]["input"];
|
||||||
@@ -157,11 +167,6 @@ export type DatetimeRangeAggregationInput = {
|
|||||||
startDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
startDatetime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type DatetimeShotOrdering = {
|
|
||||||
descending?: Scalars["Boolean"]["input"];
|
|
||||||
startingAt?: InputMaybe<Scalars["DateTime"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type DeployedConfigGql = {
|
export type DeployedConfigGql = {
|
||||||
__typename?: "DeployedConfigGQL";
|
__typename?: "DeployedConfigGQL";
|
||||||
allowNewUsers: Scalars["Boolean"]["output"];
|
allowNewUsers: Scalars["Boolean"]["output"];
|
||||||
@@ -1873,6 +1878,11 @@ export type FilterInput =
|
|||||||
videoId: Array<Scalars["Int"]["input"]>;
|
videoId: Array<Scalars["Int"]["input"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type FloatOrdering = {
|
||||||
|
descending?: Scalars["Boolean"]["input"];
|
||||||
|
startingAt?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type FloatRangeFilter = {
|
export type FloatRangeFilter = {
|
||||||
greaterThan?: InputMaybe<Scalars["Float"]["input"]>;
|
greaterThan?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
|
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
@@ -1882,11 +1892,6 @@ export type FloatRangeFilter = {
|
|||||||
lessThanInclusive?: Scalars["Boolean"]["input"];
|
lessThanInclusive?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type FloatShotOrdering = {
|
|
||||||
descending?: Scalars["Boolean"]["input"];
|
|
||||||
startingAt?: InputMaybe<Scalars["Float"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type GetProfileUploadLinkErrors = {
|
export type GetProfileUploadLinkErrors = {
|
||||||
__typename?: "GetProfileUploadLinkErrors";
|
__typename?: "GetProfileUploadLinkErrors";
|
||||||
error: TooManyProfileImageUploadsErr;
|
error: TooManyProfileImageUploadsErr;
|
||||||
@@ -1897,6 +1902,17 @@ export type GetProfileUploadLinkReturn = {
|
|||||||
value: UploadLinkGetProfileUploadLinkErrors;
|
value: UploadLinkGetProfileUploadLinkErrors;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetRunsOrdering = {
|
||||||
|
orderings: Array<RunsOrderingComponent>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type GetRunsResult = {
|
||||||
|
__typename?: "GetRunsResult";
|
||||||
|
count?: Maybe<Scalars["Int"]["output"]>;
|
||||||
|
runIds: Array<Scalars["Int"]["output"]>;
|
||||||
|
runs: Array<RunGql>;
|
||||||
|
};
|
||||||
|
|
||||||
export type GetShotsOrdering = {
|
export type GetShotsOrdering = {
|
||||||
orderings: Array<ShotsOrderingComponent>;
|
orderings: Array<ShotsOrderingComponent>;
|
||||||
};
|
};
|
||||||
@@ -1959,17 +1975,17 @@ export type InitUploadAlreadyCompletedErr = {
|
|||||||
segmentType: StreamSegmentTypeEnum;
|
segmentType: StreamSegmentTypeEnum;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type IntOrdering = {
|
||||||
|
descending?: Scalars["Boolean"]["input"];
|
||||||
|
startingAt?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
};
|
||||||
|
|
||||||
export type IntPoint2D = {
|
export type IntPoint2D = {
|
||||||
__typename?: "IntPoint2D";
|
__typename?: "IntPoint2D";
|
||||||
x: Scalars["Int"]["output"];
|
x: Scalars["Int"]["output"];
|
||||||
y: Scalars["Int"]["output"];
|
y: Scalars["Int"]["output"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type IntShotOrdering = {
|
|
||||||
descending?: Scalars["Boolean"]["input"];
|
|
||||||
startingAt?: InputMaybe<Scalars["Int"]["input"]>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type MakePercentageIntervalGql = {
|
export type MakePercentageIntervalGql = {
|
||||||
__typename?: "MakePercentageIntervalGQL";
|
__typename?: "MakePercentageIntervalGQL";
|
||||||
elapsedTime: Scalars["Float"]["output"];
|
elapsedTime: Scalars["Float"]["output"];
|
||||||
@@ -1979,6 +1995,7 @@ export type MakePercentageIntervalGql = {
|
|||||||
export type MedalGql = {
|
export type MedalGql = {
|
||||||
__typename?: "MedalGQL";
|
__typename?: "MedalGQL";
|
||||||
count: Scalars["Int"]["output"];
|
count: Scalars["Int"]["output"];
|
||||||
|
nickname?: Maybe<Scalars["String"]["output"]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MedalScope =
|
export type MedalScope =
|
||||||
@@ -2180,6 +2197,7 @@ export type Query = {
|
|||||||
getMedals: RequestedMedalsGql;
|
getMedals: RequestedMedalsGql;
|
||||||
getOrderedShots: GetShotsResult;
|
getOrderedShots: GetShotsResult;
|
||||||
getPlayTime: UserPlayTimeGql;
|
getPlayTime: UserPlayTimeGql;
|
||||||
|
getRuns: GetRunsResult;
|
||||||
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
getShotAnnotationTypes: Array<ShotAnnotationTypeGql>;
|
||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
getShotsByIds: Array<ShotGql>;
|
getShotsByIds: Array<ShotGql>;
|
||||||
@@ -2210,6 +2228,7 @@ export type QueryGetBucketSetArgs = {
|
|||||||
export type QueryGetFeedVideosArgs = {
|
export type QueryGetFeedVideosArgs = {
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
|
includeCallersVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -2231,6 +2250,14 @@ export type QueryGetPlayTimeArgs = {
|
|||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type QueryGetRunsArgs = {
|
||||||
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
||||||
|
filterInput: RunFilterInput;
|
||||||
|
limit?: Scalars["Int"]["input"];
|
||||||
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
||||||
|
};
|
||||||
|
|
||||||
export type QueryGetShotAnnotationTypesArgs = {
|
export type QueryGetShotAnnotationTypesArgs = {
|
||||||
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
errorTypes?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
};
|
};
|
||||||
@@ -2298,17 +2325,11 @@ export type QueryWaitForArgs = {
|
|||||||
|
|
||||||
export type RequestedMedalsGql = {
|
export type RequestedMedalsGql = {
|
||||||
__typename?: "RequestedMedalsGQL";
|
__typename?: "RequestedMedalsGQL";
|
||||||
dayStreak2?: Maybe<MedalGql>;
|
dailyMakes50?: Maybe<MedalGql>;
|
||||||
dayStreak3?: Maybe<MedalGql>;
|
dailyMakes100?: Maybe<MedalGql>;
|
||||||
dayStreak4?: Maybe<MedalGql>;
|
dailyMakes150?: Maybe<MedalGql>;
|
||||||
dayStreak5?: Maybe<MedalGql>;
|
dailyMakes200?: Maybe<MedalGql>;
|
||||||
dayStreak6?: Maybe<MedalGql>;
|
dailyMakes250?: Maybe<MedalGql>;
|
||||||
dayStreak7?: Maybe<MedalGql>;
|
|
||||||
dayStreak14?: Maybe<MedalGql>;
|
|
||||||
dayStreak21?: Maybe<MedalGql>;
|
|
||||||
dayStreak30?: Maybe<MedalGql>;
|
|
||||||
dayStreak60?: Maybe<MedalGql>;
|
|
||||||
dayStreak90?: Maybe<MedalGql>;
|
|
||||||
distanceOver66?: Maybe<MedalGql>;
|
distanceOver66?: Maybe<MedalGql>;
|
||||||
distanceOver78?: Maybe<MedalGql>;
|
distanceOver78?: Maybe<MedalGql>;
|
||||||
distanceOver90?: Maybe<MedalGql>;
|
distanceOver90?: Maybe<MedalGql>;
|
||||||
@@ -2322,18 +2343,53 @@ export type RequestedMedalsGql = {
|
|||||||
runLength30?: Maybe<MedalGql>;
|
runLength30?: Maybe<MedalGql>;
|
||||||
runLength40?: Maybe<MedalGql>;
|
runLength40?: Maybe<MedalGql>;
|
||||||
runLength50?: Maybe<MedalGql>;
|
runLength50?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes25?: Maybe<MedalGql>;
|
totalMakes25?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes50?: Maybe<MedalGql>;
|
totalMakes50?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes75?: Maybe<MedalGql>;
|
totalMakes75?: Maybe<MedalGql>;
|
||||||
totalMakes100?: Maybe<MedalGql>;
|
totalMakes100?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes200?: Maybe<MedalGql>;
|
totalMakes200?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes300?: Maybe<MedalGql>;
|
totalMakes300?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes400?: Maybe<MedalGql>;
|
totalMakes400?: Maybe<MedalGql>;
|
||||||
totalMakes500?: Maybe<MedalGql>;
|
totalMakes500?: Maybe<MedalGql>;
|
||||||
|
/** @deprecated no longer supported */
|
||||||
totalMakes750?: Maybe<MedalGql>;
|
totalMakes750?: Maybe<MedalGql>;
|
||||||
totalMakes1000?: Maybe<MedalGql>;
|
totalMakes1000?: Maybe<MedalGql>;
|
||||||
|
totalMakes5000?: Maybe<MedalGql>;
|
||||||
|
totalMakes10000?: Maybe<MedalGql>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type RunFilterInput = {
|
||||||
|
andFilters?: InputMaybe<Array<RunFilterInput>>;
|
||||||
|
createdAt?: InputMaybe<DateRangeFilter>;
|
||||||
|
notFilter?: InputMaybe<RunFilterInput>;
|
||||||
|
orFilters?: InputMaybe<Array<RunFilterInput>>;
|
||||||
|
runLength?: InputMaybe<FloatRangeFilter>;
|
||||||
|
tableSize?: InputMaybe<FloatRangeFilter>;
|
||||||
|
userId?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
|
username?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
||||||
|
videoId?: InputMaybe<Array<Scalars["Int"]["input"]>>;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type RunGql = {
|
||||||
|
__typename?: "RunGQL";
|
||||||
|
id: Scalars["Int"]["output"];
|
||||||
|
runLength: Scalars["Int"]["output"];
|
||||||
|
shots: Array<ShotGql>;
|
||||||
|
userId: Scalars["Int"]["output"];
|
||||||
|
videoId: Scalars["Int"]["output"];
|
||||||
|
};
|
||||||
|
|
||||||
|
export type RunsOrderingComponent =
|
||||||
|
| { runLength: IntOrdering; videoCreation?: never; videoId?: never }
|
||||||
|
| { runLength?: never; videoCreation: DatetimeOrdering; videoId?: never }
|
||||||
|
| { runLength?: never; videoCreation?: never; videoId: IntOrdering };
|
||||||
|
|
||||||
export type SegmentAlreadyUploadedErr = {
|
export type SegmentAlreadyUploadedErr = {
|
||||||
__typename?: "SegmentAlreadyUploadedErr";
|
__typename?: "SegmentAlreadyUploadedErr";
|
||||||
segmentId: Scalars["Int"]["output"];
|
segmentId: Scalars["Int"]["output"];
|
||||||
@@ -2413,7 +2469,7 @@ export type ShotGql = {
|
|||||||
|
|
||||||
export type ShotsOrderingComponent =
|
export type ShotsOrderingComponent =
|
||||||
| {
|
| {
|
||||||
marginOfError: FloatShotOrdering;
|
marginOfError: FloatOrdering;
|
||||||
runLength?: never;
|
runLength?: never;
|
||||||
startFrame?: never;
|
startFrame?: never;
|
||||||
videoCreation?: never;
|
videoCreation?: never;
|
||||||
@@ -2421,7 +2477,7 @@ export type ShotsOrderingComponent =
|
|||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
marginOfError?: never;
|
marginOfError?: never;
|
||||||
runLength: IntShotOrdering;
|
runLength: IntOrdering;
|
||||||
startFrame?: never;
|
startFrame?: never;
|
||||||
videoCreation?: never;
|
videoCreation?: never;
|
||||||
videoId?: never;
|
videoId?: never;
|
||||||
@@ -2429,7 +2485,7 @@ export type ShotsOrderingComponent =
|
|||||||
| {
|
| {
|
||||||
marginOfError?: never;
|
marginOfError?: never;
|
||||||
runLength?: never;
|
runLength?: never;
|
||||||
startFrame: IntShotOrdering;
|
startFrame: IntOrdering;
|
||||||
videoCreation?: never;
|
videoCreation?: never;
|
||||||
videoId?: never;
|
videoId?: never;
|
||||||
}
|
}
|
||||||
@@ -2437,7 +2493,7 @@ export type ShotsOrderingComponent =
|
|||||||
marginOfError?: never;
|
marginOfError?: never;
|
||||||
runLength?: never;
|
runLength?: never;
|
||||||
startFrame?: never;
|
startFrame?: never;
|
||||||
videoCreation: DatetimeShotOrdering;
|
videoCreation: DatetimeOrdering;
|
||||||
videoId?: never;
|
videoId?: never;
|
||||||
}
|
}
|
||||||
| {
|
| {
|
||||||
@@ -2445,7 +2501,7 @@ export type ShotsOrderingComponent =
|
|||||||
runLength?: never;
|
runLength?: never;
|
||||||
startFrame?: never;
|
startFrame?: never;
|
||||||
videoCreation?: never;
|
videoCreation?: never;
|
||||||
videoId: IntShotOrdering;
|
videoId: IntOrdering;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SpinTypeCountsGql = {
|
export type SpinTypeCountsGql = {
|
||||||
@@ -2555,6 +2611,7 @@ export type UploadSegmentGql = {
|
|||||||
|
|
||||||
export type UploadStreamGql = {
|
export type UploadStreamGql = {
|
||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
|
clientUploadStatus?: Maybe<ClientUploadStatusEnum>;
|
||||||
createdAt: Scalars["DateTime"]["output"];
|
createdAt: Scalars["DateTime"]["output"];
|
||||||
errors: Array<StreamErrorGql>;
|
errors: Array<StreamErrorGql>;
|
||||||
id: Scalars["ID"]["output"];
|
id: Scalars["ID"]["output"];
|
||||||
@@ -2609,6 +2666,7 @@ export type UserRelationshipsResult = {
|
|||||||
|
|
||||||
export type VideoFilterInput = {
|
export type VideoFilterInput = {
|
||||||
createdAt?: InputMaybe<DateRangeFilter>;
|
createdAt?: InputMaybe<DateRangeFilter>;
|
||||||
|
excludeVideosWithNoShots?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
isStreamCompleted?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
requireCursorCompletion?: Scalars["Boolean"]["input"];
|
||||||
};
|
};
|
||||||
@@ -2648,6 +2706,7 @@ export type VideoHistoryGql = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type VideoMetadataInput = {
|
export type VideoMetadataInput = {
|
||||||
|
clientUploadStatus?: InputMaybe<ClientUploadStatusEnum>;
|
||||||
endStream?: Scalars["Boolean"]["input"];
|
endStream?: Scalars["Boolean"]["input"];
|
||||||
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
||||||
@@ -2778,9 +2837,15 @@ export type GetFeedQuery = {
|
|||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
endTime?: any | null;
|
endTime?: any | null;
|
||||||
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
owner?: { __typename?: "UserGQL"; username: string } | null;
|
owner?: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
} | null;
|
||||||
stream?: {
|
stream?: {
|
||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
@@ -2791,6 +2856,19 @@ export type GetFeedQuery = {
|
|||||||
name: string;
|
name: string;
|
||||||
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
|
||||||
}>;
|
}>;
|
||||||
|
currentProcessing?: {
|
||||||
|
__typename?: "VideoProcessingGQL";
|
||||||
|
id: number;
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
errors: Array<{
|
||||||
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
|
message: string;
|
||||||
|
}>;
|
||||||
|
statuses: Array<{
|
||||||
|
__typename?: "VideoProcessingStatusGQL";
|
||||||
|
status: ProcessingStatusEnum;
|
||||||
|
}>;
|
||||||
|
} | null;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -2847,6 +2925,7 @@ export type GetVideoFeedQueryVariables = Exact<{
|
|||||||
limit?: Scalars["Int"]["input"];
|
limit?: Scalars["Int"]["input"];
|
||||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
filters?: InputMaybe<VideoFilterInput>;
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
|
includeCallersVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetVideoFeedQuery = {
|
export type GetVideoFeedQuery = {
|
||||||
@@ -2920,6 +2999,118 @@ export type GetVideoMakePercentageIntervalsQuery = {
|
|||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetMedalsQueryVariables = Exact<{
|
||||||
|
scope: MedalScope;
|
||||||
|
userId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetMedalsQuery = {
|
||||||
|
__typename?: "Query";
|
||||||
|
getMedals: {
|
||||||
|
__typename?: "RequestedMedalsGQL";
|
||||||
|
distanceOver66?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
distanceOver78?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
distanceOver90?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength3?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength5?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength8?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength10?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength15?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength20?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength25?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength30?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength40?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
runLength50?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes25?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes50?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes75?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes100?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes200?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes300?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
totalMakes400?: {
|
||||||
|
__typename?: "MedalGQL";
|
||||||
|
count: number;
|
||||||
|
nickname?: string | null;
|
||||||
|
} | null;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type GetSerializedShotPathsQueryVariables = Exact<{
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
||||||
filterInput: FilterInput;
|
filterInput: FilterInput;
|
||||||
}>;
|
}>;
|
||||||
@@ -3064,6 +3255,7 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||||
marginOfErrorInDegrees?: number | null;
|
marginOfErrorInDegrees?: number | null;
|
||||||
intendedPocketType?: PocketEnum | null;
|
intendedPocketType?: PocketEnum | null;
|
||||||
|
difficulty?: number | null;
|
||||||
} | null;
|
} | null;
|
||||||
pocketingIntentionInfo?: {
|
pocketingIntentionInfo?: {
|
||||||
__typename?: "PocketingIntentionInfoGQL";
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
@@ -3130,6 +3322,7 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||||
marginOfErrorInDegrees?: number | null;
|
marginOfErrorInDegrees?: number | null;
|
||||||
intendedPocketType?: PocketEnum | null;
|
intendedPocketType?: PocketEnum | null;
|
||||||
|
difficulty?: number | null;
|
||||||
} | null;
|
} | null;
|
||||||
pocketingIntentionInfo?: {
|
pocketingIntentionInfo?: {
|
||||||
__typename?: "PocketingIntentionInfoGQL";
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
@@ -3189,6 +3382,7 @@ export type GetShotsByIdsQuery = {
|
|||||||
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||||
marginOfErrorInDegrees?: number | null;
|
marginOfErrorInDegrees?: number | null;
|
||||||
intendedPocketType?: PocketEnum | null;
|
intendedPocketType?: PocketEnum | null;
|
||||||
|
difficulty?: number | null;
|
||||||
} | null;
|
} | null;
|
||||||
pocketingIntentionInfo?: {
|
pocketingIntentionInfo?: {
|
||||||
__typename?: "PocketingIntentionInfoGQL";
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
@@ -3237,6 +3431,7 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
||||||
marginOfErrorInDegrees?: number | null;
|
marginOfErrorInDegrees?: number | null;
|
||||||
intendedPocketType?: PocketEnum | null;
|
intendedPocketType?: PocketEnum | null;
|
||||||
|
difficulty?: number | null;
|
||||||
} | null;
|
} | null;
|
||||||
pocketingIntentionInfo?: {
|
pocketingIntentionInfo?: {
|
||||||
__typename?: "PocketingIntentionInfoGQL";
|
__typename?: "PocketingIntentionInfoGQL";
|
||||||
@@ -3322,6 +3517,7 @@ export type GetLoggedInUserQuery = {
|
|||||||
|
|
||||||
export type GetUserPlayTimeQueryVariables = Exact<{
|
export type GetUserPlayTimeQueryVariables = Exact<{
|
||||||
userId: Scalars["Int"]["input"];
|
userId: Scalars["Int"]["input"];
|
||||||
|
filters?: InputMaybe<VideoFilterInput>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetUserPlayTimeQuery = {
|
export type GetUserPlayTimeQuery = {
|
||||||
@@ -3516,6 +3712,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
|||||||
} | null;
|
} | null;
|
||||||
currentProcessing?: {
|
currentProcessing?: {
|
||||||
__typename?: "VideoProcessingGQL";
|
__typename?: "VideoProcessingGQL";
|
||||||
|
id: number;
|
||||||
errors: Array<{
|
errors: Array<{
|
||||||
__typename?: "VideoProcessingErrorGQL";
|
__typename?: "VideoProcessingErrorGQL";
|
||||||
message: string;
|
message: string;
|
||||||
@@ -4200,6 +4397,7 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
targetPocketAngleDirection
|
targetPocketAngleDirection
|
||||||
marginOfErrorInDegrees
|
marginOfErrorInDegrees
|
||||||
intendedPocketType
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
ballId
|
||||||
@@ -4497,32 +4695,7 @@ export const GetFeedDocument = gql`
|
|||||||
) {
|
) {
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
id
|
...VideoCardFields
|
||||||
owner {
|
|
||||||
username
|
|
||||||
}
|
|
||||||
name
|
|
||||||
screenshotUri
|
|
||||||
totalShotsMade
|
|
||||||
totalShots
|
|
||||||
makePercentage
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
startTime
|
|
||||||
endTime
|
|
||||||
elapsedTime
|
|
||||||
screenshotUri
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
}
|
|
||||||
tableSize
|
|
||||||
tags {
|
|
||||||
tagClasses {
|
|
||||||
name
|
|
||||||
}
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -4530,6 +4703,7 @@ export const GetFeedDocument = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
${VideoCardFieldsFragmentDoc}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4597,8 +4771,14 @@ export const GetVideoFeedDocument = gql`
|
|||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
$filters: VideoFilterInput = null
|
$filters: VideoFilterInput = null
|
||||||
|
$includeCallersVideos: Boolean = null
|
||||||
) {
|
) {
|
||||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
after: $after
|
||||||
|
filters: $filters
|
||||||
|
includeCallersVideos: $includeCallersVideos
|
||||||
|
) {
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
...VideoCardFields
|
||||||
}
|
}
|
||||||
@@ -4626,6 +4806,7 @@ export const GetVideoFeedDocument = gql`
|
|||||||
* limit: // value for 'limit'
|
* limit: // value for 'limit'
|
||||||
* after: // value for 'after'
|
* after: // value for 'after'
|
||||||
* filters: // value for 'filters'
|
* filters: // value for 'filters'
|
||||||
|
* includeCallersVideos: // value for 'includeCallersVideos'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -4759,6 +4940,154 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
|
|||||||
GetVideoMakePercentageIntervalsQuery,
|
GetVideoMakePercentageIntervalsQuery,
|
||||||
GetVideoMakePercentageIntervalsQueryVariables
|
GetVideoMakePercentageIntervalsQueryVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetMedalsDocument = gql`
|
||||||
|
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||||
|
getMedals(scope: $scope, userId: $userId) {
|
||||||
|
distanceOver66 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
distanceOver78 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
distanceOver90 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength3 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength5 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength8 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength10 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength15 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength20 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength25 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength30 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength40 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength50 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes25 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes50 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes75 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes100 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes200 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes300 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes400 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetMedalsQuery__
|
||||||
|
*
|
||||||
|
* To run a query within a React component, call `useGetMedalsQuery` and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetMedalsQuery` 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 } = useGetMedalsQuery({
|
||||||
|
* variables: {
|
||||||
|
* scope: // value for 'scope'
|
||||||
|
* userId: // value for 'userId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetMedalsQuery(
|
||||||
|
baseOptions: Apollo.QueryHookOptions<GetMedalsQuery, GetMedalsQueryVariables>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useQuery<GetMedalsQuery, GetMedalsQueryVariables>(
|
||||||
|
GetMedalsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetMedalsLazyQuery(
|
||||||
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||||
|
GetMedalsQuery,
|
||||||
|
GetMedalsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useLazyQuery<GetMedalsQuery, GetMedalsQueryVariables>(
|
||||||
|
GetMedalsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export function useGetMedalsSuspenseQuery(
|
||||||
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||||
|
GetMedalsQuery,
|
||||||
|
GetMedalsQueryVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useSuspenseQuery<GetMedalsQuery, GetMedalsQueryVariables>(
|
||||||
|
GetMedalsDocument,
|
||||||
|
options,
|
||||||
|
);
|
||||||
|
}
|
||||||
|
export type GetMedalsQueryHookResult = ReturnType<typeof useGetMedalsQuery>;
|
||||||
|
export type GetMedalsLazyQueryHookResult = ReturnType<
|
||||||
|
typeof useGetMedalsLazyQuery
|
||||||
|
>;
|
||||||
|
export type GetMedalsSuspenseQueryHookResult = ReturnType<
|
||||||
|
typeof useGetMedalsSuspenseQuery
|
||||||
|
>;
|
||||||
|
export type GetMedalsQueryResult = Apollo.QueryResult<
|
||||||
|
GetMedalsQuery,
|
||||||
|
GetMedalsQueryVariables
|
||||||
|
>;
|
||||||
export const GetSerializedShotPathsDocument = gql`
|
export const GetSerializedShotPathsDocument = gql`
|
||||||
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
||||||
getShots(filterInput: $filterInput) {
|
getShots(filterInput: $filterInput) {
|
||||||
@@ -5620,8 +5949,8 @@ export type GetLoggedInUserQueryResult = Apollo.QueryResult<
|
|||||||
GetLoggedInUserQueryVariables
|
GetLoggedInUserQueryVariables
|
||||||
>;
|
>;
|
||||||
export const GetUserPlayTimeDocument = gql`
|
export const GetUserPlayTimeDocument = gql`
|
||||||
query GetUserPlayTime($userId: Int!) {
|
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
||||||
getPlayTime(userId: $userId) {
|
getPlayTime(userId: $userId, filters: $filters) {
|
||||||
totalSeconds
|
totalSeconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -5640,6 +5969,7 @@ export const GetUserPlayTimeDocument = gql`
|
|||||||
* const { data, loading, error } = useGetUserPlayTimeQuery({
|
* const { data, loading, error } = useGetUserPlayTimeQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
* userId: // value for 'userId'
|
* userId: // value for 'userId'
|
||||||
|
* filters: // value for 'filters'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
@@ -6287,6 +6617,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
|||||||
initPlaylistUploadStatus
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
|
id
|
||||||
errors {
|
errors {
|
||||||
message
|
message
|
||||||
startSegmentIndex
|
startSegmentIndex
|
||||||
|
@@ -6,32 +6,7 @@ query GetFeed(
|
|||||||
) {
|
) {
|
||||||
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
||||||
videos {
|
videos {
|
||||||
id
|
...VideoCardFields
|
||||||
owner {
|
|
||||||
username
|
|
||||||
}
|
|
||||||
name
|
|
||||||
screenshotUri
|
|
||||||
totalShotsMade
|
|
||||||
totalShots
|
|
||||||
makePercentage
|
|
||||||
createdAt
|
|
||||||
updatedAt
|
|
||||||
startTime
|
|
||||||
endTime
|
|
||||||
elapsedTime
|
|
||||||
screenshotUri
|
|
||||||
stream {
|
|
||||||
id
|
|
||||||
isCompleted
|
|
||||||
}
|
|
||||||
tableSize
|
|
||||||
tags {
|
|
||||||
tagClasses {
|
|
||||||
name
|
|
||||||
}
|
|
||||||
name
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pageInfo {
|
pageInfo {
|
||||||
hasNextPage
|
hasNextPage
|
||||||
@@ -86,8 +61,14 @@ query GetVideoFeed(
|
|||||||
$limit: Int! = 5
|
$limit: Int! = 5
|
||||||
$after: String = null
|
$after: String = null
|
||||||
$filters: VideoFilterInput = null
|
$filters: VideoFilterInput = null
|
||||||
|
$includeCallersVideos: Boolean = null
|
||||||
) {
|
) {
|
||||||
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
|
getFeedVideos(
|
||||||
|
limit: $limit
|
||||||
|
after: $after
|
||||||
|
filters: $filters
|
||||||
|
includeCallersVideos: $includeCallersVideos
|
||||||
|
) {
|
||||||
videos {
|
videos {
|
||||||
...VideoCardFields
|
...VideoCardFields
|
||||||
}
|
}
|
||||||
|
84
src/operations/medals.gql
Normal file
84
src/operations/medals.gql
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
query getMedals($scope: MedalScope!, $userId: Int) {
|
||||||
|
getMedals(scope: $scope, userId: $userId) {
|
||||||
|
distanceOver66 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
distanceOver78 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
distanceOver90 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength3 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength5 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength8 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength10 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength15 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength20 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength25 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength30 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength40 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
runLength50 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes25 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes50 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes75 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes100 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes200 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes300 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
totalMakes400 {
|
||||||
|
count
|
||||||
|
nickname
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@@ -159,6 +159,7 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
targetPocketAngleDirection
|
targetPocketAngleDirection
|
||||||
marginOfErrorInDegrees
|
marginOfErrorInDegrees
|
||||||
intendedPocketType
|
intendedPocketType
|
||||||
|
difficulty
|
||||||
}
|
}
|
||||||
pocketingIntentionInfo {
|
pocketingIntentionInfo {
|
||||||
ballId
|
ballId
|
||||||
|
@@ -45,8 +45,8 @@ query getLoggedInUser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetUserPlayTime($userId: Int!) {
|
query GetUserPlayTime($userId: Int!, $filters: VideoFilterInput) {
|
||||||
getPlayTime(userId: $userId) {
|
getPlayTime(userId: $userId, filters: $filters) {
|
||||||
totalSeconds
|
totalSeconds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -18,6 +18,7 @@ query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) {
|
|||||||
initPlaylistUploadStatus
|
initPlaylistUploadStatus
|
||||||
}
|
}
|
||||||
currentProcessing {
|
currentProcessing {
|
||||||
|
id
|
||||||
errors {
|
errors {
|
||||||
message
|
message
|
||||||
startSegmentIndex
|
startSegmentIndex
|
||||||
|
123
src/schema.gql
123
src/schema.gql
@@ -10,6 +10,13 @@ type Query {
|
|||||||
intervalDuration: Int! = 300
|
intervalDuration: Int! = 300
|
||||||
): [MakePercentageIntervalGQL!]!
|
): [MakePercentageIntervalGQL!]!
|
||||||
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL!
|
||||||
|
getRuns(
|
||||||
|
filterInput: RunFilterInput!
|
||||||
|
runIds: [Int!] = null
|
||||||
|
runsOrdering: GetRunsOrdering = null
|
||||||
|
limit: Int! = 500
|
||||||
|
countRespectsLimit: Boolean! = false
|
||||||
|
): GetRunsResult!
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@@ -59,6 +66,7 @@ type Query {
|
|||||||
getFeedVideos(
|
getFeedVideos(
|
||||||
limit: Int! = 5
|
limit: Int! = 5
|
||||||
after: String = null
|
after: String = null
|
||||||
|
includeCallersVideos: Boolean = true
|
||||||
filters: VideoFilterInput = null
|
filters: VideoFilterInput = null
|
||||||
): VideoHistoryGQL!
|
): VideoHistoryGQL!
|
||||||
}
|
}
|
||||||
@@ -285,31 +293,28 @@ type RequestedMedalsGQL {
|
|||||||
runLength30: MedalGQL
|
runLength30: MedalGQL
|
||||||
runLength40: MedalGQL
|
runLength40: MedalGQL
|
||||||
runLength50: MedalGQL
|
runLength50: MedalGQL
|
||||||
totalMakes25: MedalGQL
|
totalMakes25: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
totalMakes50: MedalGQL
|
totalMakes50: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
totalMakes75: MedalGQL
|
totalMakes75: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes200: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes300: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes400: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
|
totalMakes750: MedalGQL @deprecated(reason: "no longer supported")
|
||||||
totalMakes100: MedalGQL
|
totalMakes100: MedalGQL
|
||||||
totalMakes200: MedalGQL
|
|
||||||
totalMakes300: MedalGQL
|
|
||||||
totalMakes400: MedalGQL
|
|
||||||
totalMakes500: MedalGQL
|
totalMakes500: MedalGQL
|
||||||
totalMakes750: MedalGQL
|
|
||||||
totalMakes1000: MedalGQL
|
totalMakes1000: MedalGQL
|
||||||
dayStreak2: MedalGQL
|
totalMakes5000: MedalGQL
|
||||||
dayStreak3: MedalGQL
|
totalMakes10000: MedalGQL
|
||||||
dayStreak4: MedalGQL
|
dailyMakes50: MedalGQL
|
||||||
dayStreak5: MedalGQL
|
dailyMakes100: MedalGQL
|
||||||
dayStreak6: MedalGQL
|
dailyMakes150: MedalGQL
|
||||||
dayStreak7: MedalGQL
|
dailyMakes200: MedalGQL
|
||||||
dayStreak14: MedalGQL
|
dailyMakes250: MedalGQL
|
||||||
dayStreak21: MedalGQL
|
|
||||||
dayStreak30: MedalGQL
|
|
||||||
dayStreak60: MedalGQL
|
|
||||||
dayStreak90: MedalGQL
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MedalGQL {
|
type MedalGQL {
|
||||||
count: Int!
|
count: Int!
|
||||||
|
nickname: String
|
||||||
}
|
}
|
||||||
|
|
||||||
input MedalScope @oneOf {
|
input MedalScope @oneOf {
|
||||||
@@ -317,10 +322,18 @@ input MedalScope @oneOf {
|
|||||||
interval: TimeInterval
|
interval: TimeInterval
|
||||||
}
|
}
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetRunsResult {
|
||||||
shots: [ShotGQL!]!
|
runs: [RunGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
ids: [Int!]!
|
runIds: [Int!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
type RunGQL {
|
||||||
|
id: Int!
|
||||||
|
runLength: Int!
|
||||||
|
videoId: Int!
|
||||||
|
userId: Int!
|
||||||
|
shots: [ShotGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type ShotGQL {
|
type ShotGQL {
|
||||||
@@ -461,6 +474,7 @@ type UploadStreamGQL {
|
|||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
segments: [UploadSegmentGQL!]!
|
segments: [UploadSegmentGQL!]!
|
||||||
|
clientUploadStatus: ClientUploadStatusEnum
|
||||||
resolution: VideoResolutionGQL!
|
resolution: VideoResolutionGQL!
|
||||||
streamSegmentType: StreamSegmentTypeEnum!
|
streamSegmentType: StreamSegmentTypeEnum!
|
||||||
}
|
}
|
||||||
@@ -485,6 +499,11 @@ type UploadSegmentGQL {
|
|||||||
linksRequested: Int!
|
linksRequested: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enum ClientUploadStatusEnum {
|
||||||
|
UPLOAD_ENABLED
|
||||||
|
UPLOAD_DISABLED
|
||||||
|
}
|
||||||
|
|
||||||
type VideoResolutionGQL {
|
type VideoResolutionGQL {
|
||||||
width: Int
|
width: Int
|
||||||
height: Int
|
height: Int
|
||||||
@@ -572,33 +591,61 @@ type VideoProcessingStatusGQL {
|
|||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input RunFilterInput {
|
||||||
|
videoId: [Int!]
|
||||||
|
userId: [Int!]
|
||||||
|
username: [String!]
|
||||||
|
andFilters: [RunFilterInput!]
|
||||||
|
orFilters: [RunFilterInput!]
|
||||||
|
notFilter: RunFilterInput
|
||||||
|
tableSize: FloatRangeFilter
|
||||||
|
createdAt: DateRangeFilter
|
||||||
|
runLength: FloatRangeFilter
|
||||||
|
}
|
||||||
|
|
||||||
|
input GetRunsOrdering {
|
||||||
|
orderings: [RunsOrderingComponent!]!
|
||||||
|
}
|
||||||
|
|
||||||
|
input RunsOrderingComponent @oneOf {
|
||||||
|
runLength: IntOrdering
|
||||||
|
videoId: IntOrdering
|
||||||
|
videoCreation: DatetimeOrdering
|
||||||
|
}
|
||||||
|
|
||||||
|
input IntOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: Int = null
|
||||||
|
}
|
||||||
|
|
||||||
|
input DatetimeOrdering {
|
||||||
|
descending: Boolean! = true
|
||||||
|
startingAt: DateTime = null
|
||||||
|
}
|
||||||
|
|
||||||
|
type GetShotsResult {
|
||||||
|
shots: [ShotGQL!]!
|
||||||
|
count: Int
|
||||||
|
ids: [Int!]!
|
||||||
|
}
|
||||||
|
|
||||||
input GetShotsOrdering {
|
input GetShotsOrdering {
|
||||||
orderings: [ShotsOrderingComponent!]!
|
orderings: [ShotsOrderingComponent!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
input ShotsOrderingComponent @oneOf {
|
input ShotsOrderingComponent @oneOf {
|
||||||
videoCreation: DatetimeShotOrdering
|
videoCreation: DatetimeOrdering
|
||||||
marginOfError: FloatShotOrdering
|
marginOfError: FloatOrdering
|
||||||
videoId: IntShotOrdering
|
videoId: IntOrdering
|
||||||
startFrame: IntShotOrdering
|
startFrame: IntOrdering
|
||||||
runLength: IntShotOrdering
|
runLength: IntOrdering
|
||||||
}
|
}
|
||||||
|
|
||||||
input DatetimeShotOrdering {
|
input FloatOrdering {
|
||||||
descending: Boolean! = true
|
|
||||||
startingAt: DateTime = null
|
|
||||||
}
|
|
||||||
|
|
||||||
input FloatShotOrdering {
|
|
||||||
descending: Boolean! = true
|
descending: Boolean! = true
|
||||||
startingAt: Float = null
|
startingAt: Float = null
|
||||||
}
|
}
|
||||||
|
|
||||||
input IntShotOrdering {
|
|
||||||
descending: Boolean! = true
|
|
||||||
startingAt: Int = null
|
|
||||||
}
|
|
||||||
|
|
||||||
input GetShotsPagination {
|
input GetShotsPagination {
|
||||||
createdAfter: CreatedAfter!
|
createdAfter: CreatedAfter!
|
||||||
startFrameAfter: Int!
|
startFrameAfter: Int!
|
||||||
@@ -628,6 +675,7 @@ input VideoFilterInput {
|
|||||||
isStreamCompleted: Boolean = null
|
isStreamCompleted: Boolean = null
|
||||||
requireCursorCompletion: Boolean! = true
|
requireCursorCompletion: Boolean! = true
|
||||||
createdAt: DateRangeFilter = null
|
createdAt: DateRangeFilter = null
|
||||||
|
excludeVideosWithNoShots: Boolean = null
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoHistoryGQL {
|
type VideoHistoryGQL {
|
||||||
@@ -779,6 +827,7 @@ input VideoMetadataInput {
|
|||||||
streamSegmentType: StreamSegmentTypeEnum = null
|
streamSegmentType: StreamSegmentTypeEnum = null
|
||||||
private: Boolean = null
|
private: Boolean = null
|
||||||
endStream: Boolean! = false
|
endStream: Boolean! = false
|
||||||
|
clientUploadStatus: ClientUploadStatusEnum = null
|
||||||
resolution: VideoResolution = null
|
resolution: VideoResolution = null
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user