Compare commits
4 Commits
update-agg
...
204e289627
Author | SHA1 | Date | |
---|---|---|---|
204e289627 | |||
fd731b2ecf | |||
e733e413ef | |||
90fc81776f |
@@ -129,7 +129,6 @@ export type Mutation = {
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
processVideoSource: ProcessVideoSourceReturn;
|
||||
terminateUploadStream: Scalars['Boolean']['output'];
|
||||
};
|
||||
|
||||
@@ -146,16 +145,11 @@ export type MutationCreateUploadStreamArgs = {
|
||||
|
||||
|
||||
export type MutationGetUploadLinkArgs = {
|
||||
chunkIndex: Scalars['Int']['input'];
|
||||
segmentIndex: Scalars['Int']['input'];
|
||||
videoId: Scalars['Int']['input'];
|
||||
};
|
||||
|
||||
|
||||
export type MutationProcessVideoSourceArgs = {
|
||||
input: ProcessVideoSourceInput;
|
||||
};
|
||||
|
||||
|
||||
export type MutationTerminateUploadStreamArgs = {
|
||||
videoId: Scalars['Int']['input'];
|
||||
};
|
||||
@@ -176,19 +170,11 @@ export type PocketingIntentionFeaturesGql = {
|
||||
targetPocketDistance?: Maybe<Scalars['Float']['output']>;
|
||||
};
|
||||
|
||||
export type ProcessVideoSourceInput = {
|
||||
val: Scalars['Int']['input'];
|
||||
};
|
||||
|
||||
export type ProcessVideoSourceReturn = {
|
||||
__typename?: 'ProcessVideoSourceReturn';
|
||||
val: Scalars['Int']['output'];
|
||||
};
|
||||
|
||||
export type Query = {
|
||||
__typename?: 'Query';
|
||||
getAggregateShots: Array<AggregateResultGql>;
|
||||
getBucketSet?: Maybe<BucketSetGql>;
|
||||
getLoggedInUser?: Maybe<UserGql>;
|
||||
getShots: Array<ShotGql>;
|
||||
getUser?: Maybe<UserGql>;
|
||||
getVideo: VideoGql;
|
||||
@@ -315,6 +301,7 @@ export type UploadStreamMetadata = {
|
||||
export type UserGql = {
|
||||
__typename?: 'UserGQL';
|
||||
createdAt?: Maybe<Scalars['DateTime']['output']>;
|
||||
firebaseUid: Scalars['String']['output'];
|
||||
id: Scalars['Int']['output'];
|
||||
statistics: UserStatisticsGql;
|
||||
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
||||
@@ -394,7 +381,7 @@ export type CreateUploadStreamMutation = { __typename?: 'Mutation', createUpload
|
||||
|
||||
export type GetUploadLinkMutationVariables = Exact<{
|
||||
videoId: Scalars['Int']['input'];
|
||||
chunkIndex: Scalars['Int']['input'];
|
||||
segmentIndex: Scalars['Int']['input'];
|
||||
}>;
|
||||
|
||||
|
||||
@@ -569,8 +556,8 @@ export type CreateUploadStreamMutationHookResult = ReturnType<typeof useCreateUp
|
||||
export type CreateUploadStreamMutationResult = Apollo.MutationResult<CreateUploadStreamMutation>;
|
||||
export type CreateUploadStreamMutationOptions = Apollo.BaseMutationOptions<CreateUploadStreamMutation, CreateUploadStreamMutationVariables>;
|
||||
export const GetUploadLinkDocument = gql`
|
||||
mutation GetUploadLink($videoId: Int!, $chunkIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, chunkIndex: $chunkIndex) {
|
||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||
uploadUrl
|
||||
linksRequested
|
||||
}
|
||||
@@ -592,7 +579,7 @@ export type GetUploadLinkMutationFn = Apollo.MutationFunction<GetUploadLinkMutat
|
||||
* const [getUploadLinkMutation, { data, loading, error }] = useGetUploadLinkMutation({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* chunkIndex: // value for 'chunkIndex'
|
||||
* segmentIndex: // value for 'segmentIndex'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
|
@@ -28,8 +28,8 @@ mutation CreateUploadStream(
|
||||
}
|
||||
}
|
||||
|
||||
mutation GetUploadLink($videoId: Int!, $chunkIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, chunkIndex: $chunkIndex) {
|
||||
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
||||
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
||||
uploadUrl
|
||||
linksRequested
|
||||
}
|
||||
|
@@ -1,6 +1,7 @@
|
||||
type Query {
|
||||
getAggregateShots(bucketSets: [BucketSetInputGQL!]!): [AggregateResultGQL!]!
|
||||
getUser(userId: Int!): UserGQL
|
||||
getLoggedInUser: UserGQL
|
||||
getVideo(videoId: Int!): VideoGQL!
|
||||
getShots(filterInput: FilterInput = null): [ShotGQL!]!
|
||||
getBucketSet(keyName: String!): BucketSetGQL
|
||||
@@ -40,6 +41,7 @@ input BucketInputGQL {
|
||||
|
||||
type UserGQL {
|
||||
id: Int!
|
||||
firebaseUid: String!
|
||||
username: String!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
@@ -224,9 +226,8 @@ type BucketSetGQL {
|
||||
|
||||
type Mutation {
|
||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||
processVideoSource(input: ProcessVideoSourceInput!): ProcessVideoSourceReturn!
|
||||
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
||||
getUploadLink(videoId: Int!, chunkIndex: Int!): GetUploadLinkReturn!
|
||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||
terminateUploadStream(videoId: Int!): Boolean!
|
||||
}
|
||||
|
||||
@@ -236,14 +237,6 @@ input CreateBucketSetInput {
|
||||
buckets: [BucketInputGQL!]!
|
||||
}
|
||||
|
||||
type ProcessVideoSourceReturn {
|
||||
val: Int!
|
||||
}
|
||||
|
||||
input ProcessVideoSourceInput {
|
||||
val: Int!
|
||||
}
|
||||
|
||||
type CreateUploadStreamReturn {
|
||||
videoId: Int!
|
||||
}
|
||||
|
Reference in New Issue
Block a user