Videos hooks

Hand-written shim. Generated CRUD via ./videos.gen. useGetVideoByFile stays hand-written.

Hooks

useDeleteVideo mutation

Delete the video projection (the underlying file is unaffected).

TypeScript
useDeleteVideo(options?: MutationOpts<SuccessResponse, string>)

Types: SuccessResponse

useGetVideoByFile query

TypeScript
useGetVideoByFile(fileId: string, options?: QueryOpts<Video>)

Types: Video

useListVideos query

List videos.

TypeScript
useListVideos(params?: ListVideosParams, options?: QueryOpts<Page<Video>>)

Types: ListVideosParams · Page · Video

useRetrieveVideo query

Get a video by ID.

TypeScript
useRetrieveVideo(id: string, options?: QueryOpts<Video>)

Types: Video