From bc1ff66467b1ce5b00f2ccba2aea23396563f700 Mon Sep 17 00:00:00 2001 From: Loewy Date: Tue, 28 Apr 2026 12:53:25 -0700 Subject: [PATCH] trim uncessary requested fields --- src/index.tsx | 69 ++--------------------------------------- src/operations/feed.gql | 15 --------- 2 files changed, 3 insertions(+), 81 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 242a25e..a5ad84e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4097,15 +4097,11 @@ export type GetFeedQuery = { id: number; name?: string | null; screenshotUri?: string | null; - totalShotsMade: number; totalShots: number; makePercentage: number; averageTimeBetweenShots?: number | null; averageDifficulty?: number | null; - createdAt?: any | null; - updatedAt?: any | null; startTime?: any | null; - endTime?: any | null; private: boolean; elapsedTime?: number | null; tableSize: number; @@ -4120,26 +4116,13 @@ export type GetFeedQuery = { __typename?: "UploadStreamGQL"; id: string; lastIntendedSegmentBound?: number | null; - isCompleted: boolean; streamSegmentType: StreamSegmentTypeEnum; } | null; - tags: Array<{ - __typename?: "VideoTag"; - name: string; - tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; - }>; + tags: Array<{ __typename?: "VideoTag"; name: string }>; currentProcessing?: { __typename?: "VideoProcessingGQL"; id: number; status: ProcessingStatusEnum; - errors: Array<{ - __typename?: "VideoProcessingErrorGQL"; - message: string; - }>; - statuses: Array<{ - __typename?: "VideoProcessingStatusGQL"; - status: ProcessingStatusEnum; - }>; } | null; reactions: Array<{ __typename?: "ReactionGQL"; @@ -4199,15 +4182,11 @@ export type VideoCardFieldsFragment = { id: number; name?: string | null; screenshotUri?: string | null; - totalShotsMade: number; totalShots: number; makePercentage: number; averageTimeBetweenShots?: number | null; averageDifficulty?: number | null; - createdAt?: any | null; - updatedAt?: any | null; startTime?: any | null; - endTime?: any | null; private: boolean; elapsedTime?: number | null; tableSize: number; @@ -4222,23 +4201,13 @@ export type VideoCardFieldsFragment = { __typename?: "UploadStreamGQL"; id: string; lastIntendedSegmentBound?: number | null; - isCompleted: boolean; streamSegmentType: StreamSegmentTypeEnum; } | null; - tags: Array<{ - __typename?: "VideoTag"; - name: string; - tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; - }>; + tags: Array<{ __typename?: "VideoTag"; name: string }>; currentProcessing?: { __typename?: "VideoProcessingGQL"; id: number; status: ProcessingStatusEnum; - errors: Array<{ __typename?: "VideoProcessingErrorGQL"; message: string }>; - statuses: Array<{ - __typename?: "VideoProcessingStatusGQL"; - status: ProcessingStatusEnum; - }>; } | null; reactions: Array<{ __typename?: "ReactionGQL"; @@ -4312,15 +4281,11 @@ export type GetVideoFeedQuery = { id: number; name?: string | null; screenshotUri?: string | null; - totalShotsMade: number; totalShots: number; makePercentage: number; averageTimeBetweenShots?: number | null; averageDifficulty?: number | null; - createdAt?: any | null; - updatedAt?: any | null; startTime?: any | null; - endTime?: any | null; private: boolean; elapsedTime?: number | null; tableSize: number; @@ -4335,26 +4300,13 @@ export type GetVideoFeedQuery = { __typename?: "UploadStreamGQL"; id: string; lastIntendedSegmentBound?: number | null; - isCompleted: boolean; streamSegmentType: StreamSegmentTypeEnum; } | null; - tags: Array<{ - __typename?: "VideoTag"; - name: string; - tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; - }>; + tags: Array<{ __typename?: "VideoTag"; name: string }>; currentProcessing?: { __typename?: "VideoProcessingGQL"; id: number; status: ProcessingStatusEnum; - errors: Array<{ - __typename?: "VideoProcessingErrorGQL"; - message: string; - }>; - statuses: Array<{ - __typename?: "VideoProcessingStatusGQL"; - status: ProcessingStatusEnum; - }>; } | null; reactions: Array<{ __typename?: "ReactionGQL"; @@ -6519,41 +6471,26 @@ export const VideoCardFieldsFragmentDoc = gql` } name screenshotUri - totalShotsMade totalShots makePercentage averageTimeBetweenShots averageDifficulty - createdAt - updatedAt startTime - endTime private elapsedTime - screenshotUri stream { id lastIntendedSegmentBound - isCompleted streamSegmentType } tableSize pocketSize tags { - tagClasses { - name - } name } currentProcessing { id - errors { - message - } status - statuses { - status - } } reactions { videoId diff --git a/src/operations/feed.gql b/src/operations/feed.gql index 5ce24c9..e679e80 100644 --- a/src/operations/feed.gql +++ b/src/operations/feed.gql @@ -31,41 +31,26 @@ fragment VideoCardFields on VideoGQL { } name screenshotUri - totalShotsMade totalShots makePercentage averageTimeBetweenShots averageDifficulty - createdAt - updatedAt startTime - endTime private elapsedTime - screenshotUri stream { id lastIntendedSegmentBound - isCompleted streamSegmentType } tableSize pocketSize tags { - tagClasses { - name - } name } currentProcessing { id - errors { - message - } status - statuses { - status - } } reactions { videoId