Generalize terminateUploadStream into editUploadStream
This commit is contained in:
parent
d3c5979d3e
commit
050705c370
@ -193,9 +193,9 @@ export type Mutation = {
|
|||||||
createUploadStream: CreateUploadStreamReturn;
|
createUploadStream: CreateUploadStreamReturn;
|
||||||
deleteVideo: Scalars["Boolean"]["output"];
|
deleteVideo: Scalars["Boolean"]["output"];
|
||||||
editProfileImageUri: UserGql;
|
editProfileImageUri: UserGql;
|
||||||
|
editUploadStream: Scalars["Boolean"]["output"];
|
||||||
getProfileImageUploadLink: GetUploadLinkReturn;
|
getProfileImageUploadLink: GetUploadLinkReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
terminateUploadStream: Scalars["Boolean"]["output"];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationCreateBucketSetArgs = {
|
export type MutationCreateBucketSetArgs = {
|
||||||
@ -214,6 +214,11 @@ export type MutationEditProfileImageUriArgs = {
|
|||||||
profileImageUri: Scalars["String"]["input"];
|
profileImageUri: Scalars["String"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationEditUploadStreamArgs = {
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
videoMetadata: VideoMetadataInput;
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationGetProfileImageUploadLinkArgs = {
|
export type MutationGetProfileImageUploadLinkArgs = {
|
||||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
};
|
};
|
||||||
@ -223,11 +228,6 @@ export type MutationGetUploadLinkArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationTerminateUploadStreamArgs = {
|
|
||||||
videoId: Scalars["Int"]["input"];
|
|
||||||
videoMetadata: VideoMetadataInput;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type OrFilter = {
|
export type OrFilter = {
|
||||||
filters: Array<FilterInput>;
|
filters: Array<FilterInput>;
|
||||||
};
|
};
|
||||||
@ -436,6 +436,7 @@ export type VideoGql = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type VideoMetadataInput = {
|
export type VideoMetadataInput = {
|
||||||
|
endStream?: Scalars["Boolean"]["input"];
|
||||||
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||||
@ -755,14 +756,14 @@ export type GetUploadLinkMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type TerminateUploadStreamMutationVariables = Exact<{
|
export type EditUploadStreamMutationVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
videoMetadataInput: VideoMetadataInput;
|
videoMetadataInput: VideoMetadataInput;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type TerminateUploadStreamMutation = {
|
export type EditUploadStreamMutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
terminateUploadStream: boolean;
|
editUploadStream: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const GetAggregatedShotMetricsDocument = gql`
|
export const GetAggregatedShotMetricsDocument = gql`
|
||||||
@ -1750,55 +1751,55 @@ export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
GetUploadLinkMutation,
|
GetUploadLinkMutation,
|
||||||
GetUploadLinkMutationVariables
|
GetUploadLinkMutationVariables
|
||||||
>;
|
>;
|
||||||
export const TerminateUploadStreamDocument = gql`
|
export const EditUploadStreamDocument = gql`
|
||||||
mutation TerminateUploadStream(
|
mutation EditUploadStream(
|
||||||
$videoId: Int!
|
$videoId: Int!
|
||||||
$videoMetadataInput: VideoMetadataInput!
|
$videoMetadataInput: VideoMetadataInput!
|
||||||
) {
|
) {
|
||||||
terminateUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
|
editUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export type TerminateUploadStreamMutationFn = Apollo.MutationFunction<
|
export type EditUploadStreamMutationFn = Apollo.MutationFunction<
|
||||||
TerminateUploadStreamMutation,
|
EditUploadStreamMutation,
|
||||||
TerminateUploadStreamMutationVariables
|
EditUploadStreamMutationVariables
|
||||||
>;
|
>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* __useTerminateUploadStreamMutation__
|
* __useEditUploadStreamMutation__
|
||||||
*
|
*
|
||||||
* To run a mutation, you first call `useTerminateUploadStreamMutation` within a React component and pass it any options that fit your needs.
|
* To run a mutation, you first call `useEditUploadStreamMutation` within a React component and pass it any options that fit your needs.
|
||||||
* When your component renders, `useTerminateUploadStreamMutation` returns a tuple that includes:
|
* When your component renders, `useEditUploadStreamMutation` returns a tuple that includes:
|
||||||
* - A mutate function that you can call at any time to execute the mutation
|
* - A mutate function that you can call at any time to execute the mutation
|
||||||
* - An object with fields that represent the current status of the mutation's execution
|
* - An object with fields that represent the current status of the mutation's execution
|
||||||
*
|
*
|
||||||
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
||||||
*
|
*
|
||||||
* @example
|
* @example
|
||||||
* const [terminateUploadStreamMutation, { data, loading, error }] = useTerminateUploadStreamMutation({
|
* const [editUploadStreamMutation, { data, loading, error }] = useEditUploadStreamMutation({
|
||||||
* variables: {
|
* variables: {
|
||||||
* videoId: // value for 'videoId'
|
* videoId: // value for 'videoId'
|
||||||
* videoMetadataInput: // value for 'videoMetadataInput'
|
* videoMetadataInput: // value for 'videoMetadataInput'
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useTerminateUploadStreamMutation(
|
export function useEditUploadStreamMutation(
|
||||||
baseOptions?: Apollo.MutationHookOptions<
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
TerminateUploadStreamMutation,
|
EditUploadStreamMutation,
|
||||||
TerminateUploadStreamMutationVariables
|
EditUploadStreamMutationVariables
|
||||||
>,
|
>,
|
||||||
) {
|
) {
|
||||||
const options = { ...defaultOptions, ...baseOptions };
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
return Apollo.useMutation<
|
return Apollo.useMutation<
|
||||||
TerminateUploadStreamMutation,
|
EditUploadStreamMutation,
|
||||||
TerminateUploadStreamMutationVariables
|
EditUploadStreamMutationVariables
|
||||||
>(TerminateUploadStreamDocument, options);
|
>(EditUploadStreamDocument, options);
|
||||||
}
|
}
|
||||||
export type TerminateUploadStreamMutationHookResult = ReturnType<
|
export type EditUploadStreamMutationHookResult = ReturnType<
|
||||||
typeof useTerminateUploadStreamMutation
|
typeof useEditUploadStreamMutation
|
||||||
>;
|
>;
|
||||||
export type TerminateUploadStreamMutationResult =
|
export type EditUploadStreamMutationResult =
|
||||||
Apollo.MutationResult<TerminateUploadStreamMutation>;
|
Apollo.MutationResult<EditUploadStreamMutation>;
|
||||||
export type TerminateUploadStreamMutationOptions = Apollo.BaseMutationOptions<
|
export type EditUploadStreamMutationOptions = Apollo.BaseMutationOptions<
|
||||||
TerminateUploadStreamMutation,
|
EditUploadStreamMutation,
|
||||||
TerminateUploadStreamMutationVariables
|
EditUploadStreamMutationVariables
|
||||||
>;
|
>;
|
||||||
|
@ -14,9 +14,9 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation TerminateUploadStream(
|
mutation EditUploadStream(
|
||||||
$videoId: Int!
|
$videoId: Int!
|
||||||
$videoMetadataInput: VideoMetadataInput!
|
$videoMetadataInput: VideoMetadataInput!
|
||||||
) {
|
) {
|
||||||
terminateUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
|
editUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
|
||||||
}
|
}
|
||||||
|
@ -296,10 +296,7 @@ type Mutation {
|
|||||||
videoMetadata: VideoMetadataInput!
|
videoMetadata: VideoMetadataInput!
|
||||||
): CreateUploadStreamReturn!
|
): CreateUploadStreamReturn!
|
||||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||||
terminateUploadStream(
|
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||||
videoId: Int!
|
|
||||||
videoMetadata: VideoMetadataInput!
|
|
||||||
): Boolean!
|
|
||||||
deleteVideo(videoId: Int!): Boolean!
|
deleteVideo(videoId: Int!): Boolean!
|
||||||
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
|
||||||
editProfileImageUri(profileImageUri: String!): UserGQL!
|
editProfileImageUri(profileImageUri: String!): UserGQL!
|
||||||
@ -322,6 +319,7 @@ input VideoMetadataInput {
|
|||||||
gameType: String = null
|
gameType: String = null
|
||||||
tableSize: String = null
|
tableSize: String = null
|
||||||
uploadStreamMetadataInput: UploadStreamMetadataInput = null
|
uploadStreamMetadataInput: UploadStreamMetadataInput = null
|
||||||
|
endStream: Boolean! = false
|
||||||
}
|
}
|
||||||
|
|
||||||
input UploadStreamMetadataInput {
|
input UploadStreamMetadataInput {
|
||||||
|
Loading…
Reference in New Issue
Block a user