This commit is contained in:
Ivan Malison 2024-02-20 19:18:21 -07:00
parent 9a2cae0c70
commit 828140ed2b
3 changed files with 41 additions and 15 deletions

View File

@ -115,9 +115,7 @@ export type FilterInput = {
export type GetUploadLinkReturn = {
__typename?: 'GetUploadLinkReturn';
linksRequested: Scalars['Int']['output'];
uploadUrl: Scalars['String']['output'];
uploadsCompleted: Scalars['Int']['output'];
};
export type IntendedPocketTypeInput = {
@ -161,6 +159,12 @@ export type OrFilter = {
filters: Array<FilterInput>;
};
export type PageInfoGql = {
__typename?: 'PageInfoGQL';
endCursor?: Maybe<Scalars['String']['output']>;
hasNextPage: Scalars['Boolean']['output'];
};
export enum PocketEnum {
Corner = 'CORNER',
Side = 'SIDE'
@ -181,6 +185,7 @@ export type Query = {
getShots: Array<ShotGql>;
getUser?: Maybe<UserGql>;
getVideo: VideoGql;
getVideoFeedForUser: VideoFeedGql;
};
@ -208,6 +213,12 @@ export type QueryGetVideoArgs = {
videoId: Scalars['Int']['input'];
};
export type QueryGetVideoFeedForUserArgs = {
after?: InputMaybe<Scalars['String']['input']>;
first?: Scalars['Int']['input'];
};
export type RangeFilter = {
greaterThanEqualTo?: InputMaybe<Scalars['Float']['input']>;
lessThan?: InputMaybe<Scalars['Float']['input']>;
@ -321,16 +332,23 @@ export type UserStatisticsGql = {
totalShotsMade: Scalars['Int']['output'];
};
export type VideoFeedGql = {
__typename?: 'VideoFeedGQL';
pageInfo: PageInfoGql;
videos: Array<VideoGql>;
};
export type VideoGql = {
__typename?: 'VideoGQL';
averageTimeBetweenShots?: Maybe<Scalars['Decimal']['output']>;
averageTimeBetweenShots?: Maybe<Scalars['Float']['output']>;
createdAt: Scalars['DateTime']['output'];
elapsedTime: Scalars['Decimal']['output'];
elapsedTime: Scalars['Float']['output'];
endTime: Scalars['DateTime']['output'];
framesPerSecond: Scalars['Int']['output'];
id: Scalars['Int']['output'];
makePercentage: Scalars['Decimal']['output'];
medianRun: Scalars['Decimal']['output'];
makePercentage: Scalars['Float']['output'];
medianRun?: Maybe<Scalars['Float']['output']>;
name: Scalars['String']['output'];
shots: Array<ShotGql>;
startTime: Scalars['DateTime']['output'];
stream?: Maybe<UploadStreamGql>;
@ -388,7 +406,7 @@ export type GetUploadLinkMutationVariables = Exact<{
}>;
export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: { __typename?: 'GetUploadLinkReturn', uploadUrl: string, linksRequested: number } };
export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: { __typename?: 'GetUploadLinkReturn', uploadUrl: string } };
export type TerminateUploadStreamMutationVariables = Exact<{
videoId: Scalars['Int']['input'];
@ -565,7 +583,6 @@ export const GetUploadLinkDocument = gql`
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
uploadUrl
linksRequested
}
}
`;

View File

@ -31,7 +31,6 @@ mutation CreateUploadStream(
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
uploadUrl
linksRequested
}
}

View File

@ -5,6 +5,7 @@ type Query {
getVideo(videoId: Int!): VideoGQL!
getShots(filterInput: FilterInput = null): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
getVideoFeedForUser(first: Int! = 5, after: String = null): VideoFeedGQL!
}
type AggregateResultGQL {
@ -65,17 +66,18 @@ scalar Decimal
type VideoGQL {
id: Int!
name: String!
totalShotsMade: Int!
totalShots: Int!
makePercentage: Decimal!
medianRun: Decimal!
averageTimeBetweenShots: Decimal
makePercentage: Float!
medianRun: Float
averageTimeBetweenShots: Float
createdAt: DateTime!
updatedAt: DateTime!
shots: [ShotGQL!]!
startTime: DateTime!
endTime: DateTime!
elapsedTime: Decimal!
elapsedTime: Float!
framesPerSecond: Int!
totalFrames: Int!
stream: UploadStreamGQL
@ -224,6 +226,16 @@ type BucketSetGQL {
buckets: [BucketGQL!]!
}
type VideoFeedGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type PageInfoGQL {
hasNextPage: Boolean!
endCursor: String
}
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
@ -255,6 +267,4 @@ input UploadMetadataInput {
type GetUploadLinkReturn {
uploadUrl: String!
linksRequested: Int!
uploadsCompleted: Int!
}