Skip to content

Commit a53d774

Browse files
authored
fix: app/service release endpoint naming (#1588)
1 parent 139e691 commit a53d774

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

src/features/appManagement/apiSlice.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,14 @@ export const apiSlice = createApi({
239239
}),
240240
addCreateApp: builder.mutation<void, CreateAppStep1Item>({
241241
query: (body: CreateAppStep1Item) => ({
242-
url: '/api/apps/appreleaseprocess/createapp',
242+
url: '/api/apps/appReleaseProcess/createApp',
243243
method: 'POST',
244244
body,
245245
}),
246246
}),
247247
submitapp: builder.mutation<void, string>({
248248
query: (appId) => ({
249-
url: `/api/apps/appreleaseprocess/${appId}/submit`,
249+
url: `/api/apps/appReleaseProcess/${appId}/submit`,
250250
method: 'PUT',
251251
}),
252252
}),
@@ -261,7 +261,7 @@ export const apiSlice = createApi({
261261
formData.append('document', data.body.file)
262262

263263
const response = await fetchWithBaseQuery({
264-
url: `/api/apps/AppReleaseProcess/updateappdoc/${data.appId}/documentType/${data.documentTypeId}/documents`,
264+
url: `/api/apps/appReleaseProcess/updateAppDoc/${data.appId}/documentType/${data.documentTypeId}/documents`,
265265
method: 'PUT',
266266
body: formData,
267267
})
@@ -273,56 +273,56 @@ export const apiSlice = createApi({
273273
}),
274274
fetchAppStatus: builder.query<AppStatusDataState, string>({
275275
query: (appId) =>
276-
`api/apps/appreleaseprocess/${appId}/appStatus?languageShortName=${i18next.language}`,
276+
`api/apps/appReleaseProcess/${appId}/appStatus?languageShortName=${i18next.language}`,
277277
providesTags: [Tags.APP],
278278
}),
279279
fetchAgreementData: builder.query<AgreementType[], void>({
280280
query: () =>
281-
`api/apps/appreleaseprocess/agreementData?languageShortName=${i18next.language}`,
281+
`api/apps/appReleaseProcess/agreementData?languageShortName=${i18next.language}`,
282282
}),
283283
fetchConsentData: builder.query<ConsentType, string>({
284-
query: (appId: string) => `/api/apps/AppReleaseProcess/consent/${appId}`,
284+
query: (appId: string) => `/api/apps/appReleaseProcess/consent/${appId}`,
285285
}),
286286
updateAgreementConsents: builder.mutation<void, UpdateAgreementConsentType>(
287287
{
288288
query: (data: UpdateAgreementConsentType) => ({
289-
url: `/api/apps/AppReleaseProcess/consent/${data.appId}/agreementConsents`,
289+
url: `/api/apps/appReleaseProcess/consent/${data.appId}/agreementConsents`,
290290
method: 'POST',
291291
body: data.body,
292292
}),
293293
}
294294
),
295295
fetchSalesManagerData: builder.query<salesManagerType[], void>({
296-
query: () => '/api/apps/AppReleaseProcess/ownCompany/salesManager',
296+
query: () => '/api/apps/appReleaseProcess/ownCompany/salesManager',
297297
}),
298298
saveApp: builder.mutation<void, saveAppType>({
299299
query: (data) => ({
300-
url: `/api/apps/AppReleaseProcess/${data.appId}`,
300+
url: `/api/apps/appReleaseProcess/${data.appId}`,
301301
method: 'PUT',
302302
body: data.body,
303303
}),
304304
}),
305305
deleteAppReleaseDocument: builder.mutation<void, string>({
306306
query: (documentId) => ({
307-
url: `/api/apps/appreleaseprocess/documents/${documentId}`,
307+
url: `/api/apps/appReleaseProcess/documents/${documentId}`,
308308
method: 'DELETE',
309309
}),
310310
invalidatesTags: [Tags.APP],
311311
}),
312312
fetchAppRolesData: builder.query<updateRolePayload[], string>({
313313
query: (appId: string) =>
314-
`/api/apps/AppReleaseProcess/${appId}/roles?languageShortName=${i18next.language}`,
314+
`/api/apps/appReleaseProcess/${appId}/roles?languageShortName=${i18next.language}`,
315315
}),
316316
updateRoleData: builder.mutation<postRolesResponseType[], updateRoleType>({
317317
query: (data) => ({
318-
url: `/api/apps/appreleaseprocess/${data.appId}/role`,
318+
url: `/api/apps/appReleaseProcess/${data.appId}/role`,
319319
method: 'POST',
320320
body: data.body,
321321
}),
322322
}),
323323
deleteRoles: builder.mutation<void, deleteRoleType>({
324324
query: (data) => ({
325-
url: `/api/apps/appreleaseprocess/${data.appId}/role/${data.roleId}`,
325+
url: `/api/apps/appReleaseProcess/${data.appId}/role/${data.roleId}`,
326326
method: 'DELETE',
327327
}),
328328
}),
@@ -336,7 +336,7 @@ export const apiSlice = createApi({
336336
}),
337337
}),
338338
fetchPrivacyPolicies: builder.query<PrivacyPolicyType, void>({
339-
query: () => '/api/apps/appreleaseprocess/privacyPolicies',
339+
query: () => '/api/apps/appReleaseProcess/privacyPolicies',
340340
}),
341341
fetchFrameDocumentById: builder.mutation({
342342
query: (documentId) => ({
@@ -352,14 +352,14 @@ export const apiSlice = createApi({
352352
}),
353353
fetchTechnicalUserProfiles: builder.query<TechnicalUserProfiles[], string>({
354354
query: (appId) =>
355-
`/api/apps/appreleaseprocess/${appId}/technical-user-profiles`,
355+
`/api/apps/appReleaseProcess/${appId}/technical-user-profiles`,
356356
}),
357357
saveTechnicalUserProfiles: builder.mutation<
358358
void,
359359
updateTechnicalUserProfiles
360360
>({
361361
query: (data) => ({
362-
url: `/api/apps/appreleaseprocess/${data.appId}/technical-user-profiles`,
362+
url: `/api/apps/appReleaseProcess/${data.appId}/technical-user-profiles`,
363363
method: 'PUT',
364364
body: data.body,
365365
}),
@@ -375,7 +375,7 @@ export const apiSlice = createApi({
375375
formData.append('document', data.body.file)
376376

377377
const response = await fetchWithBaseQuery({
378-
url: `/api/apps/AppChange/${data.appId}/appLeadImage`,
378+
url: `/api/apps/appChange/${data.appId}/appLeadImage`,
379379
method: 'POST',
380380
body: formData,
381381
})
@@ -386,35 +386,35 @@ export const apiSlice = createApi({
386386
invalidatesTags: [Tags.APP],
387387
}),
388388
fetchDescription: builder.query<descriptionTypes[], string>({
389-
query: (appId) => `/api/apps/AppChange/${appId}/appupdate/description`,
389+
query: (appId) => `/api/apps/appChange/${appId}/appupdate/description`,
390390
}),
391391
saveDescription: builder.mutation<void, saveDescriptionTypes>({
392392
query: (data) => ({
393-
url: `/api/apps/AppChange/${data.appId}/appupdate/description`,
393+
url: `/api/apps/appChange/${data.appId}/appupdate/description`,
394394
method: 'PUT',
395395
body: data.body,
396396
}),
397397
}),
398398
fetchAppRoles: builder.query<RolesTypes[], string>({
399399
query: (appId) =>
400-
`/api/apps/AppChange/${appId}/roles?languageShortName=${i18next.language}`,
400+
`/api/apps/appChange/${appId}/roles?languageShortName=${i18next.language}`,
401401
}),
402402
updateActiveApp: builder.mutation<
403403
postRolesResponseType[],
404404
UpdateRolesTypes
405405
>({
406406
query: (data) => ({
407-
url: `/api/apps/AppChange/${data.appId}/role/activeapp`,
407+
url: `/api/apps/appChange/${data.appId}/role/activeapp`,
408408
method: 'POST',
409409
body: data.body,
410410
}),
411411
}),
412412
fetchAppDocuments: builder.query<ChangeDocumentsTypes, string>({
413-
query: (appId) => `api/apps/appchange/${appId}/documents`,
413+
query: (appId) => `api/apps/appChange/${appId}/documents`,
414414
}),
415415
deleteAppChangeDocument: builder.mutation<void, DocumentRequestData>({
416416
query: (data) => ({
417-
url: `/api/apps/AppChange/${data.appId}/document/${data.documentId}`,
417+
url: `/api/apps/appChange/${data.appId}/document/${data.documentId}`,
418418
method: 'DELETE',
419419
}),
420420
invalidatesTags: [Tags.APP],
@@ -430,7 +430,7 @@ export const apiSlice = createApi({
430430
docFormData.append('document', data.body.file)
431431

432432
const result = await fetchWithBaseQuery({
433-
url: `api/apps/AppChange/${data.appId}/documentType/${data.documentTypeId}/documents`,
433+
url: `api/apps/appChange/${data.appId}/documentType/${data.documentTypeId}/documents`,
434434
method: 'POST',
435435
body: docFormData,
436436
})

src/features/appSubscription/appSubscriptionApiSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const apiSlice = createApi({
190190
}),
191191
updateTenantUrl: builder.mutation<void, TenantUrlRequest>({
192192
query: (data) => ({
193-
url: `/api/apps/appchange/${data.appId}/subscription/${data.subscriptionId}/tenantUrl`,
193+
url: `/api/apps/appChange/${data.appId}/subscription/${data.subscriptionId}/tenantUrl`,
194194
method: 'PUT',
195195
body: data.body,
196196
}),

src/features/serviceManagement/apiSlice.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export const apiSlice = createApi({
194194
endpoints: (builder) => ({
195195
fetchServiceStatus: builder.query<ServiceStatusDataState, string>({
196196
query: (id) =>
197-
`/api/services/servicerelease/${id}/serviceStatus?languageShortName=${i18next.language}`,
197+
`/api/services/appReleaseProcess/${id}/serviceStatus?languageShortName=${i18next.language}`,
198198
}),
199199
createService: builder.mutation<void, createServiceType>({
200200
query: (data) => ({
@@ -211,24 +211,24 @@ export const apiSlice = createApi({
211211
}),
212212
}),
213213
fetchServiceTypeIds: builder.query<ServiceTypeIdsType, void>({
214-
query: () => '/api/services/servicerelease/serviceTypes',
214+
query: () => '/api/services/serviceRelease/serviceTypes',
215215
}),
216216
updateServiceAgreementConsents: builder.mutation<
217217
void,
218218
UpdateAgreementConsentType
219219
>({
220220
query: (data: UpdateAgreementConsentType) => ({
221-
url: `/api/services/servicerelease/consent/${data.appId}/agreementConsents`,
221+
url: `/api/services/serviceRelease/consent/${data.appId}/agreementConsents`,
222222
method: 'POST',
223223
body: data.body,
224224
}),
225225
}),
226226
fetchServiceAgreementData: builder.query<AgreementType[], void>({
227227
query: () =>
228-
`api/services/servicerelease/agreementData?languageShortName=${i18next.language}`,
228+
`api/services/appReleaseProcess/agreementData?languageShortName=${i18next.language}`,
229229
}),
230230
fetchServiceConsentData: builder.query<ConsentType, string>({
231-
query: (id: string) => `/api/services/servicerelease/consent/${id}`,
231+
query: (id: string) => `/api/services/serviceRelease/consent/${id}`,
232232
}),
233233
updateServiceDocumentUpload: builder.mutation({
234234
async queryFn(
@@ -285,7 +285,7 @@ export const apiSlice = createApi({
285285
}),
286286
deleteDocument: builder.mutation<void, string>({
287287
query: (documentId) => ({
288-
url: `/api/services/servicerelease/documents/${documentId}`,
288+
url: `/api/services/serviceRelease/documents/${documentId}`,
289289
method: 'DELETE',
290290
}),
291291
}),
@@ -297,14 +297,14 @@ export const apiSlice = createApi({
297297
string
298298
>({
299299
query: (serviceId) =>
300-
`/api/services/servicerelease/${serviceId}/technical-user-profiles`,
300+
`/api/services/serviceRelease/${serviceId}/technical-user-profiles`,
301301
}),
302302
saveServiceTechnicalUserProfiles: builder.mutation<
303303
void,
304304
updateTechnicalUserProfile
305305
>({
306306
query: (data) => ({
307-
url: `/api/services/servicerelease/${data.serviceId}/technical-user-profiles`,
307+
url: `/api/services/serviceRelease/${data.serviceId}/technical-user-profiles`,
308308
method: 'PUT',
309309
body: data.body,
310310
}),

0 commit comments

Comments
 (0)