Create video card fragment #115
| @@ -2786,6 +2786,38 @@ export type GetFeedQuery = { | |||||||
|   }; |   }; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | export type VideoCardFieldsFragment = { | ||||||
|  |   __typename?: "VideoGQL"; | ||||||
|  |   id: number; | ||||||
|  |   name?: string | null; | ||||||
|  |   screenshotUri?: string | null; | ||||||
|  |   totalShotsMade: number; | ||||||
|  |   totalShots: number; | ||||||
|  |   makePercentage: number; | ||||||
|  |   createdAt?: any | null; | ||||||
|  |   updatedAt?: any | null; | ||||||
|  |   startTime?: any | null; | ||||||
|  |   endTime?: any | null; | ||||||
|  |   elapsedTime?: number | null; | ||||||
|  |   tableSize: number; | ||||||
|  |   owner?: { | ||||||
|  |     __typename?: "UserGQL"; | ||||||
|  |     id: number; | ||||||
|  |     username: string; | ||||||
|  |     profileImageUri?: string | null; | ||||||
|  |   } | null; | ||||||
|  |   stream?: { | ||||||
|  |     __typename?: "UploadStreamGQL"; | ||||||
|  |     id: string; | ||||||
|  |     isCompleted: boolean; | ||||||
|  |   } | null; | ||||||
|  |   tags: Array<{ | ||||||
|  |     __typename?: "VideoTag"; | ||||||
|  |     name: string; | ||||||
|  |     tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; | ||||||
|  |   }>; | ||||||
|  | }; | ||||||
|  |  | ||||||
| export type GetVideoFeedQueryVariables = Exact<{ | export type GetVideoFeedQueryVariables = Exact<{ | ||||||
|   limit?: Scalars["Int"]["input"]; |   limit?: Scalars["Int"]["input"]; | ||||||
|   after?: InputMaybe<Scalars["String"]["input"]>; |   after?: InputMaybe<Scalars["String"]["input"]>; | ||||||
| @@ -2812,6 +2844,7 @@ export type GetVideoFeedQuery = { | |||||||
|       tableSize: number; |       tableSize: number; | ||||||
|       owner?: { |       owner?: { | ||||||
|         __typename?: "UserGQL"; |         __typename?: "UserGQL"; | ||||||
|  |         id: number; | ||||||
|         username: string; |         username: string; | ||||||
|         profileImageUri?: string | null; |         profileImageUri?: string | null; | ||||||
|       } | null; |       } | null; | ||||||
| @@ -3956,6 +3989,38 @@ export type GetUploadStreamsWithDetailsQuery = { | |||||||
|   }; |   }; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | export const VideoCardFieldsFragmentDoc = gql` | ||||||
|  |   fragment VideoCardFields on VideoGQL { | ||||||
|  |     id | ||||||
|  |     owner { | ||||||
|  |       id | ||||||
|  |       username | ||||||
|  |       profileImageUri | ||||||
|  |     } | ||||||
|  |     name | ||||||
|  |     screenshotUri | ||||||
|  |     totalShotsMade | ||||||
|  |     totalShots | ||||||
|  |     makePercentage | ||||||
|  |     createdAt | ||||||
|  |     updatedAt | ||||||
|  |     startTime | ||||||
|  |     endTime | ||||||
|  |     elapsedTime | ||||||
|  |     screenshotUri | ||||||
|  |     stream { | ||||||
|  |       id | ||||||
|  |       isCompleted | ||||||
|  |     } | ||||||
|  |     tableSize | ||||||
|  |     tags { | ||||||
|  |       tagClasses { | ||||||
|  |         name | ||||||
|  |       } | ||||||
|  |       name | ||||||
|  |     } | ||||||
|  |   } | ||||||
|  | `; | ||||||
| export const ShotWithAllFeaturesFragmentDoc = gql` | export const ShotWithAllFeaturesFragmentDoc = gql` | ||||||
|   fragment ShotWithAllFeatures on ShotGQL { |   fragment ShotWithAllFeatures on ShotGQL { | ||||||
|     id |     id | ||||||
| @@ -4341,33 +4406,7 @@ export const GetVideoFeedDocument = gql` | |||||||
|   ) { |   ) { | ||||||
|     getFeedVideos(limit: $limit, after: $after, filters: $filters) { |     getFeedVideos(limit: $limit, after: $after, filters: $filters) { | ||||||
|       videos { |       videos { | ||||||
|         id |         ...VideoCardFields | ||||||
|         owner { |  | ||||||
|           username |  | ||||||
|           profileImageUri |  | ||||||
|         } |  | ||||||
|         name |  | ||||||
|         screenshotUri |  | ||||||
|         totalShotsMade |  | ||||||
|         totalShots |  | ||||||
|         makePercentage |  | ||||||
|         createdAt |  | ||||||
|         updatedAt |  | ||||||
|         startTime |  | ||||||
|         endTime |  | ||||||
|         elapsedTime |  | ||||||
|         screenshotUri |  | ||||||
|         stream { |  | ||||||
|           id |  | ||||||
|           isCompleted |  | ||||||
|         } |  | ||||||
|         tableSize |  | ||||||
|         tags { |  | ||||||
|           tagClasses { |  | ||||||
|             name |  | ||||||
|           } |  | ||||||
|           name |  | ||||||
|         } |  | ||||||
|       } |       } | ||||||
|       pageInfo { |       pageInfo { | ||||||
|         hasNextPage |         hasNextPage | ||||||
| @@ -4375,6 +4414,7 @@ export const GetVideoFeedDocument = gql` | |||||||
|       } |       } | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |   ${VideoCardFieldsFragmentDoc} | ||||||
| `; | `; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|   | |||||||
| @@ -1,3 +1,4 @@ | |||||||
|  | # DO NOT USE: use getVideoFeed instead | ||||||
| query GetFeed( | query GetFeed( | ||||||
|   $limit: Int! = 5 |   $limit: Int! = 5 | ||||||
|   $after: String = null |   $after: String = null | ||||||
| @@ -39,6 +40,37 @@ query GetFeed( | |||||||
|   } |   } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | fragment VideoCardFields on VideoGQL { | ||||||
|  |   id | ||||||
|  |   owner { | ||||||
|  |     id | ||||||
|  |     username | ||||||
|  |     profileImageUri | ||||||
|  |   } | ||||||
|  |   name | ||||||
|  |   screenshotUri | ||||||
|  |   totalShotsMade | ||||||
|  |   totalShots | ||||||
|  |   makePercentage | ||||||
|  |   createdAt | ||||||
|  |   updatedAt | ||||||
|  |   startTime | ||||||
|  |   endTime | ||||||
|  |   elapsedTime | ||||||
|  |   screenshotUri | ||||||
|  |   stream { | ||||||
|  |     id | ||||||
|  |     isCompleted | ||||||
|  |   } | ||||||
|  |   tableSize | ||||||
|  |   tags { | ||||||
|  |     tagClasses { | ||||||
|  |       name | ||||||
|  |     } | ||||||
|  |     name | ||||||
|  |   } | ||||||
|  | } | ||||||
|  |  | ||||||
| query GetVideoFeed( | query GetVideoFeed( | ||||||
|   $limit: Int! = 5 |   $limit: Int! = 5 | ||||||
|   $after: String = null |   $after: String = null | ||||||
| @@ -46,33 +78,7 @@ query GetVideoFeed( | |||||||
| ) { | ) { | ||||||
|   getFeedVideos(limit: $limit, after: $after, filters: $filters) { |   getFeedVideos(limit: $limit, after: $after, filters: $filters) { | ||||||
|     videos { |     videos { | ||||||
|       id |       ...VideoCardFields | ||||||
|       owner { |  | ||||||
|         username |  | ||||||
|         profileImageUri |  | ||||||
|       } |  | ||||||
|       name |  | ||||||
|       screenshotUri |  | ||||||
|       totalShotsMade |  | ||||||
|       totalShots |  | ||||||
|       makePercentage |  | ||||||
|       createdAt |  | ||||||
|       updatedAt |  | ||||||
|       startTime |  | ||||||
|       endTime |  | ||||||
|       elapsedTime |  | ||||||
|       screenshotUri |  | ||||||
|       stream { |  | ||||||
|         id |  | ||||||
|         isCompleted |  | ||||||
|       } |  | ||||||
|       tableSize |  | ||||||
|       tags { |  | ||||||
|         tagClasses { |  | ||||||
|           name |  | ||||||
|         } |  | ||||||
|         name |  | ||||||
|       } |  | ||||||
|     } |     } | ||||||
|     pageInfo { |     pageInfo { | ||||||
|       hasNextPage |       hasNextPage | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user