@@ -90,6 +90,16 @@ const injectedRtkApi = api.injectEndpoints({
9090 > ( {
9191 query : ( queryArg ) => ( { url : `/projects/${ queryArg . pid } ` } ) ,
9292 } ) ,
93+ patchProjectsByPid : build . mutation <
94+ PatchProjectsByPidApiResponse ,
95+ PatchProjectsByPidApiArg
96+ > ( {
97+ query : ( queryArg ) => ( {
98+ url : `/projects/${ queryArg . pid } ` ,
99+ method : 'PATCH' ,
100+ body : queryArg . body ,
101+ } ) ,
102+ } ) ,
93103 postCampaigns : build . mutation <
94104 PostCampaignsApiResponse ,
95105 PostCampaignsApiArg
@@ -100,6 +110,16 @@ const injectedRtkApi = api.injectEndpoints({
100110 body : queryArg . body ,
101111 } ) ,
102112 } ) ,
113+ patchCampaignsByCid : build . mutation <
114+ PatchCampaignsByCidApiResponse ,
115+ PatchCampaignsByCidApiArg
116+ > ( {
117+ query : ( queryArg ) => ( {
118+ url : `/campaigns/${ queryArg . cid } ` ,
119+ method : 'PATCH' ,
120+ body : queryArg . body ,
121+ } ) ,
122+ } ) ,
103123 postProjects : build . mutation < PostProjectsApiResponse , PostProjectsApiArg > ( {
104124 query : ( queryArg ) => ( {
105125 url : `/projects` ,
@@ -250,6 +270,14 @@ export type GetProjectsByPidApiArg = {
250270 /** Project id */
251271 pid : number ;
252272} ;
273+ export type PatchProjectsByPidApiResponse = /** status 200 OK */ Project ;
274+ export type PatchProjectsByPidApiArg = {
275+ /** Project id */
276+ pid : number ;
277+ body : {
278+ display_name : string ;
279+ } ;
280+ } ;
253281export type PostCampaignsApiResponse = /** status 200 OK */ Campaign ;
254282export type PostCampaignsApiArg = {
255283 body : {
@@ -275,6 +303,14 @@ export type PostCampaignsApiArg = {
275303 use_cases ?: UseCase [ ] ;
276304 } ;
277305} ;
306+ export type PatchCampaignsByCidApiResponse = /** status 200 OK */ Campaign ;
307+ export type PatchCampaignsByCidApiArg = {
308+ /** Campaign id */
309+ cid : number ;
310+ body : {
311+ customer_title ?: string ;
312+ } ;
313+ } ;
278314export type PostProjectsApiResponse = /** status 200 OK */ Project ;
279315export type PostProjectsApiArg = {
280316 body : {
@@ -439,7 +475,9 @@ export const {
439475 useGetWorkspacesByWidProjectsAndPidCampaignsQuery,
440476 useGetProjectsByPidCampaignsQuery,
441477 useGetProjectsByPidQuery,
478+ usePatchProjectsByPidMutation,
442479 usePostCampaignsMutation,
480+ usePatchCampaignsByCidMutation,
443481 usePostProjectsMutation,
444482 useGetWorkspacesByWidCoinsQuery,
445483 useGetTemplatesQuery,
0 commit comments