From 5d05614e070a43b8d1a2eeb5b6538d71e7e7554c Mon Sep 17 00:00:00 2001 From: Mike Kalange Date: Tue, 26 Nov 2024 13:19:33 -0800 Subject: [PATCH] Replaces interval with datetime range --- src/index.tsx | 13 +++++++++++-- src/schema.gql | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 6a1afe7..2d8ce09 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1999,8 +1999,17 @@ export type MedalGql = { }; export type MedalScope = - | { interval: TimeInterval; videoId?: never } - | { interval?: never; videoId: Scalars["Int"]["input"] }; + | { + datetimeRange: DatetimeRangeAggregationInput; + interval?: never; + videoId?: never; + } /** @deprecated NO LONGER SUPPORTED, USE DATETIME_RANGE */ + | { datetimeRange?: never; interval: TimeInterval; videoId?: never } + | { + datetimeRange?: never; + interval?: never; + videoId: Scalars["Int"]["input"]; + }; export type MustHaveSetForUploadLinkErr = { __typename?: "MustHaveSetForUploadLinkErr"; diff --git a/src/schema.gql b/src/schema.gql index 364d8f7..0c5fa89 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -320,6 +320,8 @@ type MedalGQL { input MedalScope @oneOf { videoId: Int interval: TimeInterval + @deprecated(reason: "NO LONGER SUPPORTED, USE DATETIME_RANGE") + datetimeRange: DatetimeRangeAggregationInput } type GetRunsResult {