Get user videos #132

Merged
countablecloud merged 2 commits from volodymyr/get-user-videos into master 2024-11-13 15:14:49 -07:00
2 changed files with 39 additions and 55 deletions

View File

@ -2780,9 +2780,15 @@ export type GetFeedQuery = {
updatedAt?: any | null; updatedAt?: any | null;
startTime?: any | null; startTime?: any | null;
endTime?: any | null; endTime?: any | null;
private: boolean;
elapsedTime?: number | null; elapsedTime?: number | null;
tableSize: number; tableSize: number;
owner?: { __typename?: "UserGQL"; username: string } | null; owner?: {
__typename?: "UserGQL";
id: number;
username: string;
profileImageUri?: string | null;
} | null;
stream?: { stream?: {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
id: string; id: string;
@ -2793,6 +2799,19 @@ export type GetFeedQuery = {
name: string; name: string;
tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>; tagClasses: Array<{ __typename?: "VideoTagClass"; name: string }>;
}>; }>;
currentProcessing?: {
__typename?: "VideoProcessingGQL";
id: number;
status: ProcessingStatusEnum;
errors: Array<{
__typename?: "VideoProcessingErrorGQL";
message: string;
}>;
statuses: Array<{
__typename?: "VideoProcessingStatusGQL";
status: ProcessingStatusEnum;
}>;
} | null;
}>; }>;
pageInfo: { pageInfo: {
__typename?: "PageInfoGQL"; __typename?: "PageInfoGQL";
@ -2849,6 +2868,7 @@ export type GetVideoFeedQueryVariables = Exact<{
limit?: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"];
after?: InputMaybe<Scalars["String"]["input"]>; after?: InputMaybe<Scalars["String"]["input"]>;
filters?: InputMaybe<VideoFilterInput>; filters?: InputMaybe<VideoFilterInput>;
includeCallersVideos?: InputMaybe<Scalars["Boolean"]["input"]>;
}>; }>;
export type GetVideoFeedQuery = { export type GetVideoFeedQuery = {
@ -4500,32 +4520,7 @@ export const GetFeedDocument = gql`
) { ) {
getUserVideos(limit: $limit, after: $after, filters: $filters) { getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos { videos {
id ...VideoCardFields
owner {
username
}
name
screenshotUri
totalShotsMade
totalShots
makePercentage
createdAt
updatedAt
startTime
endTime
elapsedTime
screenshotUri
stream {
id
isCompleted
}
tableSize
tags {
tagClasses {
name
}
name
}
} }
pageInfo { pageInfo {
hasNextPage hasNextPage
@ -4533,6 +4528,7 @@ export const GetFeedDocument = gql`
} }
} }
} }
${VideoCardFieldsFragmentDoc}
`; `;
/** /**
@ -4600,8 +4596,14 @@ export const GetVideoFeedDocument = gql`
$limit: Int! = 5 $limit: Int! = 5
$after: String = null $after: String = null
$filters: VideoFilterInput = null $filters: VideoFilterInput = null
$includeCallersVideos: Boolean = null
) {
getFeedVideos(
limit: $limit
after: $after
filters: $filters
includeCallersVideos: $includeCallersVideos
) { ) {
getFeedVideos(limit: $limit, after: $after, filters: $filters) {
videos { videos {
...VideoCardFields ...VideoCardFields
} }
@ -4629,6 +4631,7 @@ export const GetVideoFeedDocument = gql`
* limit: // value for 'limit' * limit: // value for 'limit'
* after: // value for 'after' * after: // value for 'after'
* filters: // value for 'filters' * filters: // value for 'filters'
* includeCallersVideos: // value for 'includeCallersVideos'
* }, * },
* }); * });
*/ */

View File

@ -6,32 +6,7 @@ query GetFeed(
) { ) {
getUserVideos(limit: $limit, after: $after, filters: $filters) { getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos { videos {
id ...VideoCardFields
owner {
username
}
name
screenshotUri
totalShotsMade
totalShots
makePercentage
createdAt
updatedAt
startTime
endTime
elapsedTime
screenshotUri
stream {
id
isCompleted
}
tableSize
tags {
tagClasses {
name
}
name
}
} }
pageInfo { pageInfo {
hasNextPage hasNextPage
@ -86,8 +61,14 @@ query GetVideoFeed(
$limit: Int! = 5 $limit: Int! = 5
$after: String = null $after: String = null
$filters: VideoFilterInput = null $filters: VideoFilterInput = null
$includeCallersVideos: Boolean = null
) { ) {
getFeedVideos(limit: $limit, after: $after, filters: $filters) { getFeedVideos(
limit: $limit
after: $after
filters: $filters
includeCallersVideos: $includeCallersVideos
) {
videos { videos {
...VideoCardFields ...VideoCardFields
} }