diff --git a/src/index.tsx b/src/index.tsx index e8ef711..d76c583 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -607,6 +607,15 @@ export type GetStreamMonitoringDetailsQuery = { }; }; +export type DeleteVideoMutationVariables = Exact<{ + videoId: Scalars["Int"]["input"]; +}>; + +export type DeleteVideoMutation = { + __typename?: "Mutation"; + deleteVideo: boolean; +}; + export type CreateUploadStreamMutationVariables = Exact<{ videoMetadataInput: VideoMetadataInput; }>; @@ -1132,6 +1141,54 @@ export type GetStreamMonitoringDetailsQueryResult = Apollo.QueryResult< GetStreamMonitoringDetailsQuery, GetStreamMonitoringDetailsQueryVariables >; +export const DeleteVideoDocument = gql` + mutation DeleteVideo($videoId: Int!) { + deleteVideo(videoId: $videoId) + } +`; +export type DeleteVideoMutationFn = Apollo.MutationFunction< + DeleteVideoMutation, + DeleteVideoMutationVariables +>; + +/** + * __useDeleteVideoMutation__ + * + * To run a mutation, you first call `useDeleteVideoMutation` within a React component and pass it any options that fit your needs. + * When your component renders, `useDeleteVideoMutation` 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 [deleteVideoMutation, { data, loading, error }] = useDeleteVideoMutation({ + * variables: { + * videoId: // value for 'videoId' + * }, + * }); + */ +export function useDeleteVideoMutation( + baseOptions?: Apollo.MutationHookOptions< + DeleteVideoMutation, + DeleteVideoMutationVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useMutation( + DeleteVideoDocument, + options, + ); +} +export type DeleteVideoMutationHookResult = ReturnType< + typeof useDeleteVideoMutation +>; +export type DeleteVideoMutationResult = + Apollo.MutationResult; +export type DeleteVideoMutationOptions = Apollo.BaseMutationOptions< + DeleteVideoMutation, + DeleteVideoMutationVariables +>; export const CreateUploadStreamDocument = gql` mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) { createUploadStream(videoMetadata: $videoMetadataInput) {