Compare commits
No commits in common. "828140ed2b4d32ce9113160c08c837e9ef7ae56d" and "ce8cfd6a68d7b27f478c99dd5ae74a411d4d0c77" have entirely different histories.
828140ed2b
...
ce8cfd6a68
@ -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"
|
|
@ -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
|
|
@ -115,7 +115,9 @@ export type FilterInput = {
|
|||||||
|
|
||||||
export type GetUploadLinkReturn = {
|
export type GetUploadLinkReturn = {
|
||||||
__typename?: 'GetUploadLinkReturn';
|
__typename?: 'GetUploadLinkReturn';
|
||||||
|
linksRequested: Scalars['Int']['output'];
|
||||||
uploadUrl: Scalars['String']['output'];
|
uploadUrl: Scalars['String']['output'];
|
||||||
|
uploadsCompleted: Scalars['Int']['output'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type IntendedPocketTypeInput = {
|
export type IntendedPocketTypeInput = {
|
||||||
@ -159,12 +161,6 @@ export type OrFilter = {
|
|||||||
filters: Array<FilterInput>;
|
filters: Array<FilterInput>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PageInfoGql = {
|
|
||||||
__typename?: 'PageInfoGQL';
|
|
||||||
endCursor?: Maybe<Scalars['String']['output']>;
|
|
||||||
hasNextPage: Scalars['Boolean']['output'];
|
|
||||||
};
|
|
||||||
|
|
||||||
export enum PocketEnum {
|
export enum PocketEnum {
|
||||||
Corner = 'CORNER',
|
Corner = 'CORNER',
|
||||||
Side = 'SIDE'
|
Side = 'SIDE'
|
||||||
@ -185,7 +181,6 @@ export type Query = {
|
|||||||
getShots: Array<ShotGql>;
|
getShots: Array<ShotGql>;
|
||||||
getUser?: Maybe<UserGql>;
|
getUser?: Maybe<UserGql>;
|
||||||
getVideo: VideoGql;
|
getVideo: VideoGql;
|
||||||
getVideoFeedForUser: VideoFeedGql;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -213,12 +208,6 @@ export type QueryGetVideoArgs = {
|
|||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export type QueryGetVideoFeedForUserArgs = {
|
|
||||||
after?: InputMaybe<Scalars['String']['input']>;
|
|
||||||
first?: Scalars['Int']['input'];
|
|
||||||
};
|
|
||||||
|
|
||||||
export type RangeFilter = {
|
export type RangeFilter = {
|
||||||
greaterThanEqualTo?: InputMaybe<Scalars['Float']['input']>;
|
greaterThanEqualTo?: InputMaybe<Scalars['Float']['input']>;
|
||||||
lessThan?: InputMaybe<Scalars['Float']['input']>;
|
lessThan?: InputMaybe<Scalars['Float']['input']>;
|
||||||
@ -332,23 +321,16 @@ export type UserStatisticsGql = {
|
|||||||
totalShotsMade: Scalars['Int']['output'];
|
totalShotsMade: Scalars['Int']['output'];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type VideoFeedGql = {
|
|
||||||
__typename?: 'VideoFeedGQL';
|
|
||||||
pageInfo: PageInfoGql;
|
|
||||||
videos: Array<VideoGql>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type VideoGql = {
|
export type VideoGql = {
|
||||||
__typename?: 'VideoGQL';
|
__typename?: 'VideoGQL';
|
||||||
averageTimeBetweenShots?: Maybe<Scalars['Float']['output']>;
|
averageTimeBetweenShots?: Maybe<Scalars['Decimal']['output']>;
|
||||||
createdAt: Scalars['DateTime']['output'];
|
createdAt: Scalars['DateTime']['output'];
|
||||||
elapsedTime: Scalars['Float']['output'];
|
elapsedTime: Scalars['Decimal']['output'];
|
||||||
endTime: Scalars['DateTime']['output'];
|
endTime: Scalars['DateTime']['output'];
|
||||||
framesPerSecond: Scalars['Int']['output'];
|
framesPerSecond: Scalars['Int']['output'];
|
||||||
id: Scalars['Int']['output'];
|
id: Scalars['Int']['output'];
|
||||||
makePercentage: Scalars['Float']['output'];
|
makePercentage: Scalars['Decimal']['output'];
|
||||||
medianRun?: Maybe<Scalars['Float']['output']>;
|
medianRun: Scalars['Decimal']['output'];
|
||||||
name: Scalars['String']['output'];
|
|
||||||
shots: Array<ShotGql>;
|
shots: Array<ShotGql>;
|
||||||
startTime: Scalars['DateTime']['output'];
|
startTime: Scalars['DateTime']['output'];
|
||||||
stream?: Maybe<UploadStreamGql>;
|
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<{
|
export type TerminateUploadStreamMutationVariables = Exact<{
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
@ -583,6 +565,7 @@ export const GetUploadLinkDocument = gql`
|
|||||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||||
uploadUrl
|
uploadUrl
|
||||||
|
linksRequested
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -31,6 +31,7 @@ mutation CreateUploadStream(
|
|||||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||||
uploadUrl
|
uploadUrl
|
||||||
|
linksRequested
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,7 +5,6 @@ type Query {
|
|||||||
getVideo(videoId: Int!): VideoGQL!
|
getVideo(videoId: Int!): VideoGQL!
|
||||||
getShots(filterInput: FilterInput = null): [ShotGQL!]!
|
getShots(filterInput: FilterInput = null): [ShotGQL!]!
|
||||||
getBucketSet(keyName: String!): BucketSetGQL
|
getBucketSet(keyName: String!): BucketSetGQL
|
||||||
getVideoFeedForUser(first: Int! = 5, after: String = null): VideoFeedGQL!
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type AggregateResultGQL {
|
type AggregateResultGQL {
|
||||||
@ -66,18 +65,17 @@ scalar Decimal
|
|||||||
|
|
||||||
type VideoGQL {
|
type VideoGQL {
|
||||||
id: Int!
|
id: Int!
|
||||||
name: String!
|
|
||||||
totalShotsMade: Int!
|
totalShotsMade: Int!
|
||||||
totalShots: Int!
|
totalShots: Int!
|
||||||
makePercentage: Float!
|
makePercentage: Decimal!
|
||||||
medianRun: Float
|
medianRun: Decimal!
|
||||||
averageTimeBetweenShots: Float
|
averageTimeBetweenShots: Decimal
|
||||||
createdAt: DateTime!
|
createdAt: DateTime!
|
||||||
updatedAt: DateTime!
|
updatedAt: DateTime!
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
startTime: DateTime!
|
startTime: DateTime!
|
||||||
endTime: DateTime!
|
endTime: DateTime!
|
||||||
elapsedTime: Float!
|
elapsedTime: Decimal!
|
||||||
framesPerSecond: Int!
|
framesPerSecond: Int!
|
||||||
totalFrames: Int!
|
totalFrames: Int!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
@ -226,16 +224,6 @@ type BucketSetGQL {
|
|||||||
buckets: [BucketGQL!]!
|
buckets: [BucketGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type VideoFeedGQL {
|
|
||||||
videos: [VideoGQL!]!
|
|
||||||
pageInfo: PageInfoGQL!
|
|
||||||
}
|
|
||||||
|
|
||||||
type PageInfoGQL {
|
|
||||||
hasNextPage: Boolean!
|
|
||||||
endCursor: String
|
|
||||||
}
|
|
||||||
|
|
||||||
type Mutation {
|
type Mutation {
|
||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
||||||
@ -267,4 +255,6 @@ input UploadMetadataInput {
|
|||||||
|
|
||||||
type GetUploadLinkReturn {
|
type GetUploadLinkReturn {
|
||||||
uploadUrl: String!
|
uploadUrl: String!
|
||||||
|
linksRequested: Int!
|
||||||
|
uploadsCompleted: Int!
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user