Compare commits
2 Commits
ce8cfd6a68
...
828140ed2b
Author | SHA1 | Date | |
---|---|---|---|
828140ed2b | |||
9a2cae0c70 |
6
bin/assert-no-changes-wrapper.sh
Executable file
6
bin/assert-no-changes-wrapper.sh
Executable file
@ -0,0 +1,6 @@
|
||||
#!/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"
|
10
bin/assert-no-changes.sh
Executable file
10
bin/assert-no-changes.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/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
|
@ -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
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
@ -31,7 +31,6 @@ mutation CreateUploadStream(
|
||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||
uploadUrl
|
||||
linksRequested
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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!
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user