diff --git a/src/index.tsx b/src/index.tsx index 378b0b5..4f0fbca 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1688,7 +1688,7 @@ export type GetHlsInitUploadLinkMutation = { export type SetSegmentDurationMutationVariables = Exact<{ videoId: Scalars["Int"]["input"]; - segmentId: Scalars["Int"]["input"]; + segmentIndex: Scalars["Int"]["input"]; duration: Scalars["Float"]["input"]; }>; @@ -3519,12 +3519,12 @@ export type GetHlsInitUploadLinkMutationOptions = Apollo.BaseMutationOptions< export const SetSegmentDurationDocument = gql` mutation SetSegmentDuration( $videoId: Int! - $segmentId: Int! + $segmentIndex: Int! $duration: Float! ) { setSegmentDuration( videoId: $videoId - segmentId: $segmentId + segmentIndex: $segmentIndex duration: $duration ) } @@ -3548,7 +3548,7 @@ export type SetSegmentDurationMutationFn = Apollo.MutationFunction< * const [setSegmentDurationMutation, { data, loading, error }] = useSetSegmentDurationMutation({ * variables: { * videoId: // value for 'videoId' - * segmentId: // value for 'segmentId' + * segmentIndex: // value for 'segmentIndex' * duration: // value for 'duration' * }, * }); diff --git a/src/operations/video_upload.gql b/src/operations/video_upload.gql index 1946ed5..d18d278 100644 --- a/src/operations/video_upload.gql +++ b/src/operations/video_upload.gql @@ -26,12 +26,12 @@ mutation GetHlsInitUploadLink($videoId: Int!) { mutation SetSegmentDuration( $videoId: Int! - $segmentId: Int! + $segmentIndex: Int! $duration: Float! ) { setSegmentDuration( videoId: $videoId - segmentId: $segmentId + segmentIndex: $segmentIndex duration: $duration ) }