From fd5c28e0733bc6f929f29f1ac05102f57b35de19 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 1 Sep 2024 21:16:44 +0000 Subject: [PATCH] Add get shots with metadata --- src/index.tsx | 13 +++++++++++++ src/schema.gql | 10 ++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 6219547..481610c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1133,6 +1133,12 @@ export type GetShotsPagination = { startFrameAfter: Scalars["Int"]["input"]; }; +export type GetShotsResult = { + __typename?: "GetShotsResult"; + count?: Maybe; + shots: Array; +}; + export type GetUploadLinkErrors = { __typename?: "GetUploadLinkErrors"; error: MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErr; @@ -1328,6 +1334,7 @@ export type Query = { getPlayTime: UserPlayTimeGql; getShotAnnotationTypes: Array; getShots: Array; + getShotsWithMetadata: GetShotsResult; getUser?: Maybe; getUserTags: Array; getUserVideos: VideoHistoryGql; @@ -1360,6 +1367,12 @@ export type QueryGetShotsArgs = { shotsPagination?: InputMaybe; }; +export type QueryGetShotsWithMetadataArgs = { + filterInput: FilterInput; + limit?: Scalars["Int"]["input"]; + shotsPagination?: InputMaybe; +}; + export type QueryGetUserArgs = { userId: Scalars["Int"]["input"]; }; diff --git a/src/schema.gql b/src/schema.gql index 0a74bbe..363f244 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -9,6 +9,11 @@ type Query { videoId: ID! intervalDuration: Int! = 300 ): [MakePercentageIntervalGQL!]! + getShotsWithMetadata( + filterInput: FilterInput! + shotsPagination: GetShotsPagination = null + limit: Int! = 500 + ): GetShotsResult! getShots( filterInput: FilterInput! shotsPagination: GetShotsPagination = null @@ -171,6 +176,11 @@ type MakePercentageIntervalGQL { elapsedTime: Float! } +type GetShotsResult { + shots: [ShotGQL!]! + count: Int +} + type ShotGQL { id: Int! videoId: Int!