Add operation getHlsInitUploadLink #18
@ -1662,6 +1662,23 @@ export type GetUploadLinkMutation = {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetHlsInitUploadLinkMutationVariables = Exact<{
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
}>;
|
||||||
|
|
||||||
|
export type GetHlsInitUploadLinkMutation = {
|
||||||
|
__typename?: "Mutation";
|
||||||
|
getHlsInitUploadLink: {
|
||||||
|
__typename?: "GetUploadLinkReturn";
|
||||||
|
uploadUrl: string;
|
||||||
|
headers: Array<{
|
||||||
|
__typename?: "Header";
|
||||||
|
key: string;
|
||||||
|
value: string;
|
||||||
|
} | null>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
export type EditUploadStreamMutationVariables = Exact<{
|
export type EditUploadStreamMutationVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
videoMetadataInput: VideoMetadataInput;
|
videoMetadataInput: VideoMetadataInput;
|
||||||
@ -3427,6 +3444,60 @@ export type GetUploadLinkMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
GetUploadLinkMutation,
|
GetUploadLinkMutation,
|
||||||
GetUploadLinkMutationVariables
|
GetUploadLinkMutationVariables
|
||||||
>;
|
>;
|
||||||
|
export const GetHlsInitUploadLinkDocument = gql`
|
||||||
|
mutation GetHlsInitUploadLink($videoId: Int!) {
|
||||||
|
getHlsInitUploadLink(videoId: $videoId) {
|
||||||
|
uploadUrl
|
||||||
|
headers {
|
||||||
|
key
|
||||||
|
value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export type GetHlsInitUploadLinkMutationFn = Apollo.MutationFunction<
|
||||||
|
GetHlsInitUploadLinkMutation,
|
||||||
|
GetHlsInitUploadLinkMutationVariables
|
||||||
|
>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* __useGetHlsInitUploadLinkMutation__
|
||||||
|
*
|
||||||
|
* To run a mutation, you first call `useGetHlsInitUploadLinkMutation` within a React component and pass it any options that fit your needs.
|
||||||
|
* When your component renders, `useGetHlsInitUploadLinkMutation` returns a tuple that includes:
|
||||||
|
* - 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
|
||||||
|
*
|
||||||
|
* @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
|
||||||
|
* const [getHlsInitUploadLinkMutation, { data, loading, error }] = useGetHlsInitUploadLinkMutation({
|
||||||
|
* variables: {
|
||||||
|
* videoId: // value for 'videoId'
|
||||||
|
* },
|
||||||
|
* });
|
||||||
|
*/
|
||||||
|
export function useGetHlsInitUploadLinkMutation(
|
||||||
|
baseOptions?: Apollo.MutationHookOptions<
|
||||||
|
GetHlsInitUploadLinkMutation,
|
||||||
|
GetHlsInitUploadLinkMutationVariables
|
||||||
|
>,
|
||||||
|
) {
|
||||||
|
const options = { ...defaultOptions, ...baseOptions };
|
||||||
|
return Apollo.useMutation<
|
||||||
|
GetHlsInitUploadLinkMutation,
|
||||||
|
GetHlsInitUploadLinkMutationVariables
|
||||||
|
>(GetHlsInitUploadLinkDocument, options);
|
||||||
|
}
|
||||||
|
export type GetHlsInitUploadLinkMutationHookResult = ReturnType<
|
||||||
|
typeof useGetHlsInitUploadLinkMutation
|
||||||
|
>;
|
||||||
|
export type GetHlsInitUploadLinkMutationResult =
|
||||||
|
Apollo.MutationResult<GetHlsInitUploadLinkMutation>;
|
||||||
|
export type GetHlsInitUploadLinkMutationOptions = Apollo.BaseMutationOptions<
|
||||||
|
GetHlsInitUploadLinkMutation,
|
||||||
|
GetHlsInitUploadLinkMutationVariables
|
||||||
|
>;
|
||||||
export const EditUploadStreamDocument = gql`
|
export const EditUploadStreamDocument = gql`
|
||||||
mutation EditUploadStream(
|
mutation EditUploadStream(
|
||||||
$videoId: Int!
|
$videoId: Int!
|
||||||
|
@ -14,6 +14,16 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation GetHlsInitUploadLink($videoId: Int!) {
|
||||||
|
getHlsInitUploadLink(videoId: $videoId) {
|
||||||
|
uploadUrl
|
||||||
|
headers {
|
||||||
|
key
|
||||||
|
value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mutation EditUploadStream(
|
mutation EditUploadStream(
|
||||||
$videoId: Int!
|
$videoId: Int!
|
||||||
$videoMetadataInput: VideoMetadataInput!
|
$videoMetadataInput: VideoMetadataInput!
|
||||||
|
Loading…
Reference in New Issue
Block a user