@@ -97,6 +97,12 @@ const injectedRtkApi = api.injectEndpoints({
9797 > ( {
9898 query : ( queryArg ) => ( { url : `/campaigns/${ queryArg . cid } /bugTypes` } ) ,
9999 } ) ,
100+ getCampaignsByCidClusters : build . query <
101+ GetCampaignsByCidClustersApiResponse ,
102+ GetCampaignsByCidClustersApiArg
103+ > ( {
104+ query : ( queryArg ) => ( { url : `/campaigns/${ queryArg . cid } /clusters` } ) ,
105+ } ) ,
100106 getCampaignsByCidCustomStatuses : build . query <
101107 GetCampaignsByCidCustomStatusesApiResponse ,
102108 GetCampaignsByCidCustomStatusesApiArg
@@ -231,7 +237,10 @@ const injectedRtkApi = api.injectEndpoints({
231237 > ( {
232238 query : ( queryArg ) => ( {
233239 url : `/campaigns/${ queryArg . cid } /ux` ,
234- params : { showAsCustomer : queryArg . showAsCustomer } ,
240+ params : {
241+ showAsCustomer : queryArg . showAsCustomer ,
242+ filterBy : queryArg . filterBy ,
243+ } ,
235244 } ) ,
236245 } ) ,
237246 getCampaignsByCidWidgets : build . query <
@@ -438,6 +447,9 @@ const injectedRtkApi = api.injectEndpoints({
438447 body : queryArg . body ,
439448 } ) ,
440449 } ) ,
450+ getMediaById : build . query < GetMediaByIdApiResponse , GetMediaByIdApiArg > ( {
451+ query : ( queryArg ) => ( { url : `/media/${ queryArg . id } ` } ) ,
452+ } ) ,
441453 } ) ,
442454 overrideExisting : false ,
443455} ) ;
@@ -611,6 +623,12 @@ export type GetCampaignsByCidBugTypesApiArg = {
611623 /** Campaign id */
612624 cid : string ;
613625} ;
626+ export type GetCampaignsByCidClustersApiResponse = /** status 200 OK */ {
627+ items ?: Cluster [ ] ;
628+ } ;
629+ export type GetCampaignsByCidClustersApiArg = {
630+ cid : string ;
631+ } ;
614632export type GetCampaignsByCidCustomStatusesApiResponse =
615633 /** status 200 OK */ BugCustomStatus [ ] ;
616634export type GetCampaignsByCidCustomStatusesApiArg = {
@@ -814,6 +832,8 @@ export type GetCampaignsByCidUxApiArg = {
814832 /** Campaign id */
815833 cid : string ;
816834 showAsCustomer ?: boolean ;
835+ /** filterBy[<fieldName>]=<fieldValue> */
836+ filterBy ?: any ;
817837} ;
818838export type GetCampaignsByCidWidgetsApiResponse =
819839 /** status 200 OK */
@@ -1092,6 +1112,10 @@ export type DeleteWorkspacesByWidUsersApiArg = {
10921112 include_shared ?: boolean ;
10931113 } ;
10941114} ;
1115+ export type GetMediaByIdApiResponse = unknown ;
1116+ export type GetMediaByIdApiArg = {
1117+ id : string ;
1118+ } ;
10951119export type Error = {
10961120 message : string ;
10971121 code : number ;
@@ -1293,6 +1317,10 @@ export type BugAdditionalField = {
12931317 name : string ;
12941318 value : string ;
12951319} & ( BugAdditionalFieldRegex | BugAdditionalFieldSelect ) ;
1320+ export type Cluster = {
1321+ id : number ;
1322+ name : string ;
1323+ } ;
12961324export type ReportExtensions =
12971325 | 'pdf'
12981326 | 'doc'
@@ -1439,6 +1467,7 @@ export const {
14391467 usePatchCampaignsByCidBugsAndBidMutation,
14401468 useGetCampaignsByCidBugsAndBidSiblingsQuery,
14411469 useGetCampaignsByCidBugTypesQuery,
1470+ useGetCampaignsByCidClustersQuery,
14421471 useGetCampaignsByCidCustomStatusesQuery,
14431472 usePatchCampaignsByCidCustomStatusesMutation,
14441473 useDeleteCampaignsByCidCustomStatusesMutation,
@@ -1477,4 +1506,5 @@ export const {
14771506 useGetWorkspacesByWidUsersQuery,
14781507 usePostWorkspacesByWidUsersMutation,
14791508 useDeleteWorkspacesByWidUsersMutation,
1509+ useGetMediaByIdQuery,
14801510} = injectedRtkApi ;
0 commit comments