File tree Expand file tree Collapse file tree 2 files changed +3
-30
lines changed
Expand file tree Collapse file tree 2 files changed +3
-30
lines changed Original file line number Diff line number Diff line change 99 useCreateWorkloadMutation ,
1010 useDeleteWorkloadMutation ,
1111 useEditWorkloadMutation ,
12+ useEditWorkloadValuesMutation ,
1213 useGetWorkloadQuery ,
1314 useGetWorkloadValuesQuery ,
14- useUpdateWorkloadValuesMutation ,
1515 useWorkloadCatalogMutation ,
1616} from 'redux/otomiApi'
1717
@@ -46,7 +46,7 @@ export default function ({
4646 isError : isErrorValues ,
4747 refetch : refetchValues ,
4848 } = useGetWorkloadValuesQuery ( { teamId, workloadId } , { skip : ! workloadId } )
49- const [ updateValues ] = useUpdateWorkloadValuesMutation ( )
49+ const [ updateWorkloadValues ] = useEditWorkloadValuesMutation ( )
5050
5151 const [ getWorkloadCatalog , { isLoading : isLoadingCatalog } ] = useWorkloadCatalogMutation ( )
5252 const [ catalogItem , setCatalogItem ] = useState < any > ( { } )
@@ -102,7 +102,7 @@ export default function ({
102102 createWorkload = { createWorkload }
103103 updateWorkload = { updateWorkload }
104104 deleteWorkload = { deleteWorkload }
105- updateWorkloadValues = { updateValues }
105+ updateWorkloadValues = { updateWorkloadValues }
106106 mutating = { mutating }
107107 readme = { readme }
108108 />
Original file line number Diff line number Diff line change @@ -270,13 +270,6 @@ const injectedRtkApi = api.injectEndpoints({
270270 body : queryArg . body ,
271271 } ) ,
272272 } ) ,
273- updateWorkloadValues : build . mutation < UpdateWorkloadValuesApiResponse , UpdateWorkloadValuesApiArg > ( {
274- query : ( queryArg ) => ( {
275- url : `/teams/${ queryArg . teamId } /workloads/${ queryArg . workloadId } /values` ,
276- method : 'PATCH' ,
277- body : queryArg . body ,
278- } ) ,
279- } ) ,
280273 deploy : build . query < DeployApiResponse , DeployApiArg > ( {
281274 query : ( ) => ( { url : `/deploy` } ) ,
282275 } ) ,
@@ -3662,25 +3655,6 @@ export type EditWorkloadValuesApiArg = {
36623655 values : object
36633656 }
36643657}
3665- export type UpdateWorkloadValuesApiResponse = /** status 200 Successfully updated workload values */ {
3666- id ?: string
3667- teamId ?: string
3668- name ?: string
3669- values : object
3670- }
3671- export type UpdateWorkloadValuesApiArg = {
3672- /** ID of team to return */
3673- teamId : string
3674- /** ID of the workload */
3675- workloadId : string
3676- /** Workload values */
3677- body : {
3678- id ?: string
3679- teamId ?: string
3680- name ?: string
3681- values : object
3682- }
3683- }
36843658export type DeployApiResponse = /** status 202 Deploy has been triggered */ undefined
36853659export type DeployApiArg = void
36863660export type RevertApiResponse = unknown
@@ -4435,7 +4409,6 @@ export const {
44354409 useEditWorkloadMutation,
44364410 useGetWorkloadValuesQuery,
44374411 useEditWorkloadValuesMutation,
4438- useUpdateWorkloadValuesMutation,
44394412 useDeployQuery,
44404413 useRevertQuery,
44414414 useRestoreQuery,
You can’t perform that action at this time.
0 commit comments