diff --git a/src/index.tsx b/src/index.tsx index 74bf86a..36b3839 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1974,6 +1974,15 @@ export type MakePercentageIntervalGql = { makePercentage: Scalars["Float"]["output"]; }; +export type MedalGql = { + __typename?: "MedalGQL"; + count: Scalars["Int"]["output"]; +}; + +export type MedalScope = + | { interval: TimeInterval; videoId?: never } + | { interval?: never; videoId: Scalars["Int"]["input"] }; + export type MustHaveSetForUploadLinkErr = { __typename?: "MustHaveSetForUploadLinkErr"; framesPerSecond?: Maybe; @@ -2160,6 +2169,7 @@ export type Query = { getDeployedConfig: DeployedConfigGql; getFeedVideos: VideoHistoryGql; getLoggedInUser?: Maybe; + getMedals: RequestedMedalsGql; getOrderedShots: GetShotsResult; getPlayTime: UserPlayTimeGql; getShotAnnotationTypes: Array; @@ -2195,6 +2205,11 @@ export type QueryGetFeedVideosArgs = { limit?: Scalars["Int"]["input"]; }; +export type QueryGetMedalsArgs = { + scope: MedalScope; + userId?: InputMaybe; +}; + export type QueryGetOrderedShotsArgs = { filterInput: FilterInput; ids?: InputMaybe>; @@ -2269,6 +2284,44 @@ export type QueryWaitForArgs = { duration: Scalars["Float"]["input"]; }; +export type RequestedMedalsGql = { + __typename?: "RequestedMedalsGQL"; + dayStreak2?: Maybe; + dayStreak3?: Maybe; + dayStreak4?: Maybe; + dayStreak5?: Maybe; + dayStreak6?: Maybe; + dayStreak7?: Maybe; + dayStreak14?: Maybe; + dayStreak21?: Maybe; + dayStreak30?: Maybe; + dayStreak60?: Maybe; + dayStreak90?: Maybe; + distanceOver66?: Maybe; + distanceOver78?: Maybe; + distanceOver90?: Maybe; + runLength3?: Maybe; + runLength5?: Maybe; + runLength8?: Maybe; + runLength10?: Maybe; + runLength15?: Maybe; + runLength20?: Maybe; + runLength25?: Maybe; + runLength30?: Maybe; + runLength40?: Maybe; + runLength50?: Maybe; + totalMakes25?: Maybe; + totalMakes50?: Maybe; + totalMakes75?: Maybe; + totalMakes100?: Maybe; + totalMakes200?: Maybe; + totalMakes300?: Maybe; + totalMakes400?: Maybe; + totalMakes500?: Maybe; + totalMakes750?: Maybe; + totalMakes1000?: Maybe; +}; + export type SegmentAlreadyUploadedErr = { __typename?: "SegmentAlreadyUploadedErr"; segmentId: Scalars["Int"]["output"]; diff --git a/src/schema.gql b/src/schema.gql index bb6285e..fd80d57 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -9,6 +9,7 @@ type Query { videoId: ID! intervalDuration: Int! = 300 ): [MakePercentageIntervalGQL!]! + getMedals(scope: MedalScope!, userId: Int = null): RequestedMedalsGQL! getOrderedShots( filterInput: FilterInput! ids: [Int!] = null @@ -267,6 +268,52 @@ type MakePercentageIntervalGQL { elapsedTime: Float! } +type RequestedMedalsGQL { + distanceOver66: MedalGQL + distanceOver78: MedalGQL + distanceOver90: MedalGQL + runLength3: MedalGQL + runLength5: MedalGQL + runLength8: MedalGQL + runLength10: MedalGQL + runLength15: MedalGQL + runLength20: MedalGQL + runLength25: MedalGQL + runLength30: MedalGQL + runLength40: MedalGQL + runLength50: MedalGQL + totalMakes25: MedalGQL + totalMakes50: MedalGQL + totalMakes75: MedalGQL + totalMakes100: MedalGQL + totalMakes200: MedalGQL + totalMakes300: MedalGQL + totalMakes400: MedalGQL + totalMakes500: MedalGQL + totalMakes750: MedalGQL + totalMakes1000: MedalGQL + dayStreak2: MedalGQL + dayStreak3: MedalGQL + dayStreak4: MedalGQL + dayStreak5: MedalGQL + dayStreak6: MedalGQL + dayStreak7: MedalGQL + dayStreak14: MedalGQL + dayStreak21: MedalGQL + dayStreak30: MedalGQL + dayStreak60: MedalGQL + dayStreak90: MedalGQL +} + +type MedalGQL { + count: Int! +} + +input MedalScope @oneOf { + videoId: Int + interval: TimeInterval +} + type GetShotsResult { shots: [ShotGQL!]! count: Int