@@ -323,12 +323,12 @@ const injectedRtkApi = api.injectEndpoints({
323323 body : queryArg . body ,
324324 } ) ,
325325 } ) ,
326- getCampaignsByCidVideo : build . query <
327- GetCampaignsByCidVideoApiResponse ,
328- GetCampaignsByCidVideoApiArg
326+ getCampaignsByCidVideos : build . query <
327+ GetCampaignsByCidVideosApiResponse ,
328+ GetCampaignsByCidVideosApiArg
329329 > ( {
330330 query : ( queryArg ) => ( {
331- url : `/campaigns/${ queryArg . cid } /video ` ,
331+ url : `/campaigns/${ queryArg . cid } /videos ` ,
332332 params : {
333333 limit : queryArg . limit ,
334334 start : queryArg . start ,
@@ -474,41 +474,44 @@ const injectedRtkApi = api.injectEndpoints({
474474 body : queryArg . body ,
475475 } ) ,
476476 } ) ,
477- getVideoByVid : build . query < GetVideoByVidApiResponse , GetVideoByVidApiArg > ( {
478- query : ( queryArg ) => ( { url : `/video/${ queryArg . vid } ` } ) ,
477+ getVideosByVid : build . query <
478+ GetVideosByVidApiResponse ,
479+ GetVideosByVidApiArg
480+ > ( {
481+ query : ( queryArg ) => ( { url : `/videos/${ queryArg . vid } ` } ) ,
479482 } ) ,
480- getVideoByVidObservations : build . query <
481- GetVideoByVidObservationsApiResponse ,
482- GetVideoByVidObservationsApiArg
483+ getVideosByVidObservations : build . query <
484+ GetVideosByVidObservationsApiResponse ,
485+ GetVideosByVidObservationsApiArg
483486 > ( {
484- query : ( queryArg ) => ( { url : `/video /${ queryArg . vid } /observations` } ) ,
487+ query : ( queryArg ) => ( { url : `/videos /${ queryArg . vid } /observations` } ) ,
485488 } ) ,
486- postVideoByVidObservations : build . mutation <
487- PostVideoByVidObservationsApiResponse ,
488- PostVideoByVidObservationsApiArg
489+ postVideosByVidObservations : build . mutation <
490+ PostVideosByVidObservationsApiResponse ,
491+ PostVideosByVidObservationsApiArg
489492 > ( {
490493 query : ( queryArg ) => ( {
491- url : `/video /${ queryArg . vid } /observations` ,
494+ url : `/videos /${ queryArg . vid } /observations` ,
492495 method : 'POST' ,
493496 body : queryArg . body ,
494497 } ) ,
495498 } ) ,
496- patchVideoByVidObservationsAndOid : build . mutation <
497- PatchVideoByVidObservationsAndOidApiResponse ,
498- PatchVideoByVidObservationsAndOidApiArg
499+ patchVideosByVidObservationsAndOid : build . mutation <
500+ PatchVideosByVidObservationsAndOidApiResponse ,
501+ PatchVideosByVidObservationsAndOidApiArg
499502 > ( {
500503 query : ( queryArg ) => ( {
501- url : `/video /${ queryArg . vid } /observations/${ queryArg . oid } ` ,
504+ url : `/videos /${ queryArg . vid } /observations/${ queryArg . oid } ` ,
502505 method : 'PATCH' ,
503506 body : queryArg . body ,
504507 } ) ,
505508 } ) ,
506- deleteVideoByVidObservationsAndOid : build . mutation <
507- DeleteVideoByVidObservationsAndOidApiResponse ,
508- DeleteVideoByVidObservationsAndOidApiArg
509+ deleteVideosByVidObservationsAndOid : build . mutation <
510+ DeleteVideosByVidObservationsAndOidApiResponse ,
511+ DeleteVideosByVidObservationsAndOidApiArg
509512 > ( {
510513 query : ( queryArg ) => ( {
511- url : `/video /${ queryArg . vid } /observations/${ queryArg . oid } ` ,
514+ url : `/videos /${ queryArg . vid } /observations/${ queryArg . oid } ` ,
512515 method : 'DELETE' ,
513516 } ) ,
514517 } ) ,
@@ -1157,7 +1160,7 @@ export type PostCampaignsByCidVideoTagsApiArg = {
11571160 } ;
11581161 } ;
11591162} ;
1160- export type GetCampaignsByCidVideoApiResponse = /** status 200 OK */ {
1163+ export type GetCampaignsByCidVideosApiResponse = /** status 200 OK */ {
11611164 items : {
11621165 usecase : {
11631166 id : number ;
@@ -1170,7 +1173,7 @@ export type GetCampaignsByCidVideoApiResponse = /** status 200 OK */ {
11701173 } ) [ ] ;
11711174 } [ ] ;
11721175} & PaginationData ;
1173- export type GetCampaignsByCidVideoApiArg = {
1176+ export type GetCampaignsByCidVideosApiArg = {
11741177 cid : string ;
11751178 /** Limit pagination parameter */
11761179 limit ?: number ;
@@ -1340,32 +1343,32 @@ export type PutUsersMePreferencesByPrefidApiArg = {
13401343 value : number ;
13411344 } ;
13421345} ;
1343- export type GetVideoByVidApiResponse = /** status 200 OK */ Video & {
1346+ export type GetVideosByVidApiResponse = /** status 200 OK */ Video & {
13441347 usecase : {
13451348 id : number ;
13461349 name : string ;
13471350 } ;
13481351} ;
1349- export type GetVideoByVidApiArg = {
1352+ export type GetVideosByVidApiArg = {
13501353 vid : string ;
13511354} ;
1352- export type GetVideoByVidObservationsApiResponse =
1355+ export type GetVideosByVidObservationsApiResponse =
13531356 /** status 200 OK */ Observation [ ] ;
1354- export type GetVideoByVidObservationsApiArg = {
1357+ export type GetVideosByVidObservationsApiArg = {
13551358 vid : string ;
13561359} ;
1357- export type PostVideoByVidObservationsApiResponse =
1360+ export type PostVideosByVidObservationsApiResponse =
13581361 /** status 200 OK */ Observation ;
1359- export type PostVideoByVidObservationsApiArg = {
1362+ export type PostVideosByVidObservationsApiArg = {
13601363 vid : string ;
13611364 body : {
13621365 start : number ;
13631366 end : number ;
13641367 } ;
13651368} ;
1366- export type PatchVideoByVidObservationsAndOidApiResponse =
1369+ export type PatchVideosByVidObservationsAndOidApiResponse =
13671370 /** status 200 OK */ Observation ;
1368- export type PatchVideoByVidObservationsAndOidApiArg = {
1371+ export type PatchVideosByVidObservationsAndOidApiArg = {
13691372 vid : string ;
13701373 oid : string ;
13711374 body : {
@@ -1376,8 +1379,8 @@ export type PatchVideoByVidObservationsAndOidApiArg = {
13761379 tags ?: number [ ] ;
13771380 } ;
13781381} ;
1379- export type DeleteVideoByVidObservationsAndOidApiResponse = unknown ;
1380- export type DeleteVideoByVidObservationsAndOidApiArg = {
1382+ export type DeleteVideosByVidObservationsAndOidApiResponse = unknown ;
1383+ export type DeleteVideosByVidObservationsAndOidApiArg = {
13811384 vid : string ;
13821385 oid : string ;
13831386} ;
@@ -2033,7 +2036,7 @@ export const {
20332036 useGetCampaignsByCidUxQuery,
20342037 useGetCampaignsByCidVideoTagsQuery,
20352038 usePostCampaignsByCidVideoTagsMutation,
2036- useGetCampaignsByCidVideoQuery ,
2039+ useGetCampaignsByCidVideosQuery ,
20372040 useGetCampaignsByCidWidgetsQuery,
20382041 useGetInsightsByIidQuery,
20392042 useDeleteInsightsByIidMutation,
@@ -2050,11 +2053,11 @@ export const {
20502053 useGetUsersMeQuery,
20512054 useGetUsersMePreferencesQuery,
20522055 usePutUsersMePreferencesByPrefidMutation,
2053- useGetVideoByVidQuery ,
2054- useGetVideoByVidObservationsQuery ,
2055- usePostVideoByVidObservationsMutation ,
2056- usePatchVideoByVidObservationsAndOidMutation ,
2057- useDeleteVideoByVidObservationsAndOidMutation ,
2056+ useGetVideosByVidQuery ,
2057+ useGetVideosByVidObservationsQuery ,
2058+ usePostVideosByVidObservationsMutation ,
2059+ usePatchVideosByVidObservationsAndOidMutation ,
2060+ useDeleteVideosByVidObservationsAndOidMutation ,
20582061 useGetWorkspacesQuery,
20592062 usePostWorkspacesMutation,
20602063 useGetWorkspacesByWidQuery,
0 commit comments