Merge pull request 'TerminateUploadStream -- add fields' (#3) from loewy/terminate-upload-add-fields into master
Reviewed-on: #3
This commit is contained in:
commit
ce8cfd6a68
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
.direnv
|
@ -151,7 +151,10 @@ export type MutationGetUploadLinkArgs = {
|
|||||||
|
|
||||||
|
|
||||||
export type MutationTerminateUploadStreamArgs = {
|
export type MutationTerminateUploadStreamArgs = {
|
||||||
|
gameType?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
tableSize?: InputMaybe<Scalars['String']['input']>;
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
|
videoName?: InputMaybe<Scalars['String']['input']>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type OrFilter = {
|
export type OrFilter = {
|
||||||
@ -389,6 +392,9 @@ export type GetUploadLinkMutation = { __typename?: 'Mutation', getUploadLink: {
|
|||||||
|
|
||||||
export type TerminateUploadStreamMutationVariables = Exact<{
|
export type TerminateUploadStreamMutationVariables = Exact<{
|
||||||
videoId: Scalars['Int']['input'];
|
videoId: Scalars['Int']['input'];
|
||||||
|
videoName?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
gameType?: InputMaybe<Scalars['String']['input']>;
|
||||||
|
tableSize?: InputMaybe<Scalars['String']['input']>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
|
||||||
@ -591,8 +597,13 @@ export type GetUploadLinkMutationHookResult = ReturnType<typeof useGetUploadLink
|
|||||||
export type GetUploadLinkMutationResult = Apollo.MutationResult<GetUploadLinkMutation>;
|
export type GetUploadLinkMutationResult = Apollo.MutationResult<GetUploadLinkMutation>;
|
||||||
export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<GetUploadLinkMutation, GetUploadLinkMutationVariables>;
|
export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<GetUploadLinkMutation, GetUploadLinkMutationVariables>;
|
||||||
export const TerminateUploadStreamDocument = gql`
|
export const TerminateUploadStreamDocument = gql`
|
||||||
mutation TerminateUploadStream($videoId: Int!) {
|
mutation TerminateUploadStream($videoId: Int!, $videoName: String, $gameType: String, $tableSize: String) {
|
||||||
terminateUploadStream(videoId: $videoId)
|
terminateUploadStream(
|
||||||
|
videoId: $videoId
|
||||||
|
videoName: $videoName
|
||||||
|
gameType: $gameType
|
||||||
|
tableSize: $tableSize
|
||||||
|
)
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>;
|
export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateUploadStreamMutation, TerminateUploadStreamMutationVariables>;
|
||||||
@ -611,6 +622,9 @@ export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<TerminateU
|
|||||||
* const [terminateUploadStreamMutation, { data, loading, error }] = useTerminateUploadStreamMutation({
|
* const [terminateUploadStreamMutation, { data, loading, error }] = useTerminateUploadStreamMutation({
|
||||||
* variables: {
|
* variables: {
|
||||||
* videoId: // value for 'videoId'
|
* videoId: // value for 'videoId'
|
||||||
|
* videoName: // value for 'videoName'
|
||||||
|
* gameType: // value for 'gameType'
|
||||||
|
* tableSize: // value for 'tableSize'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
mutation CreateUploadStream(
|
mutation CreateUploadStream(
|
||||||
$videoName: String!,
|
$videoName: String!
|
||||||
$deviceType: DeviceTypeEnum,
|
$deviceType: DeviceTypeEnum
|
||||||
$osVersion: String,
|
$osVersion: String
|
||||||
$appVersion: String,
|
$appVersion: String
|
||||||
$browserName: String,
|
$browserName: String
|
||||||
$browserVersion: String,
|
$browserVersion: String
|
||||||
$locale: String,
|
$locale: String
|
||||||
$timezone: String,
|
$timezone: String
|
||||||
$networkType: String,
|
$networkType: String
|
||||||
$ipAddress: String
|
$ipAddress: String
|
||||||
) {
|
) {
|
||||||
createUploadStream(
|
createUploadStream(
|
||||||
@ -35,6 +35,16 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation TerminateUploadStream($videoId: Int!) {
|
mutation TerminateUploadStream(
|
||||||
terminateUploadStream(videoId: $videoId)
|
$videoId: Int!
|
||||||
|
$videoName: String
|
||||||
|
$gameType: String
|
||||||
|
$tableSize: String
|
||||||
|
) {
|
||||||
|
terminateUploadStream(
|
||||||
|
videoId: $videoId
|
||||||
|
videoName: $videoName
|
||||||
|
gameType: $gameType
|
||||||
|
tableSize: $tableSize
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
@ -228,7 +228,7 @@ type Mutation {
|
|||||||
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
|
||||||
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
|
||||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||||
terminateUploadStream(videoId: Int!): Boolean!
|
terminateUploadStream(videoId: Int!, videoName: String = null, gameType: String = null, tableSize: String = null): Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
input CreateBucketSetInput {
|
input CreateBucketSetInput {
|
||||||
|
Loading…
Reference in New Issue
Block a user