Compare commits

..

No commits in common. "828140ed2b4d32ce9113160c08c837e9ef7ae56d" and "ce8cfd6a68d7b27f478c99dd5ae74a411d4d0c77" have entirely different histories.

5 changed files with 15 additions and 57 deletions

View File

@ -1,6 +0,0 @@
#!/usr/bin/env bash
GQL_DIR=$(dirname $(dirname "$(realpath "$BASH_SOURCE")"))
cd $GQL_DIR
nix develop --impure --command bash "$GQL_DIR/bin/assert-no-changes.sh"

View File

@ -1,10 +0,0 @@
#!/usr/bin/env bash
git ls-files | xargs md5sum > before.txt
yarn install
yarn graphql-codegen
git ls-files | xargs md5sum > after.txt
diff before.txt after.txt

View File

@ -115,7 +115,9 @@ export type FilterInput = {
export type GetUploadLinkReturn = {
__typename?: 'GetUploadLinkReturn';
linksRequested: Scalars['Int']['output'];
uploadUrl: Scalars['String']['output'];
uploadsCompleted: Scalars['Int']['output'];
};
export type IntendedPocketTypeInput = {
@ -159,12 +161,6 @@ 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'
@ -185,7 +181,6 @@ export type Query = {
getShots: Array<ShotGql>;
getUser?: Maybe<UserGql>;
getVideo: VideoGql;
getVideoFeedForUser: VideoFeedGql;
};
@ -213,12 +208,6 @@ 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']>;
@ -332,23 +321,16 @@ 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['Float']['output']>;
averageTimeBetweenShots?: Maybe<Scalars['Decimal']['output']>;
createdAt: Scalars['DateTime']['output'];
elapsedTime: Scalars['Float']['output'];
elapsedTime: Scalars['Decimal']['output'];
endTime: Scalars['DateTime']['output'];
framesPerSecond: Scalars['Int']['output'];
id: Scalars['Int']['output'];
makePercentage: Scalars['Float']['output'];
medianRun?: Maybe<Scalars['Float']['output']>;
name: Scalars['String']['output'];
makePercentage: Scalars['Decimal']['output'];
medianRun: Scalars['Decimal']['output'];
shots: Array<ShotGql>;
startTime: Scalars['DateTime']['output'];
stream?: Maybe<UploadStreamGql>;
@ -406,7 +388,7 @@ export type GetUploadLinkMutationVariables = Exact<{
}>;
export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: { __typename?: 'GetUploadLinkReturn', uploadUrl: string } };
export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: { __typename?: 'GetUploadLinkReturn', uploadUrl: string, linksRequested: number } };
export type TerminateUploadStreamMutationVariables = Exact<{
videoId: Scalars['Int']['input'];
@ -583,6 +565,7 @@ export const GetUploadLinkDocument = gql`
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
uploadUrl
linksRequested
}
}
`;

View File

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

View File

@ -5,7 +5,6 @@ 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 {
@ -66,18 +65,17 @@ scalar Decimal
type VideoGQL {
id: Int!
name: String!
totalShotsMade: Int!
totalShots: Int!
makePercentage: Float!
medianRun: Float
averageTimeBetweenShots: Float
makePercentage: Decimal!
medianRun: Decimal!
averageTimeBetweenShots: Decimal
createdAt: DateTime!
updatedAt: DateTime!
shots: [ShotGQL!]!
startTime: DateTime!
endTime: DateTime!
elapsedTime: Float!
elapsedTime: Decimal!
framesPerSecond: Int!
totalFrames: Int!
stream: UploadStreamGQL
@ -226,16 +224,6 @@ 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!
@ -267,4 +255,6 @@ input UploadMetadataInput {
type GetUploadLinkReturn {
uploadUrl: String!
linksRequested: Int!
uploadsCompleted: Int!
}