@tagsamurai/fats-api-services 1.0.3-alpha.1 → 1.0.3-alpha.100

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/api-services.es.js +1180 -623
  2. package/api-services.system.js +1170 -623
  3. package/main.d.ts +11 -2
  4. package/package.json +1 -1
  5. package/src/dto/ampManagement.dto.d.ts +78 -0
  6. package/src/dto/assetService.dto.d.ts +4 -16
  7. package/src/dto/continuosImprovement.dto.d.ts +77 -0
  8. package/src/dto/document.dto.d.ts +17 -0
  9. package/src/dto/iot.dto.d.ts +95 -0
  10. package/src/dto/log.dto.d.ts +13 -12
  11. package/src/dto/oldIOTService.dto.d.ts +17 -0
  12. package/src/dto/oldTrackingService.dto.d.ts +1 -3
  13. package/src/dto/oldTransferService.dto.d.ts +1 -3
  14. package/src/dto/opportunityRegister.dto.d.ts +34 -0
  15. package/src/dto/reader.dto.d.ts +28 -0
  16. package/src/dto/riskRegister.dto.d.ts +19 -0
  17. package/src/dto/samp.dto.d.ts +104 -0
  18. package/src/dto/settingsAssetName.dto.d.ts +1 -1
  19. package/src/services/ampManagement.service.d.ts +29 -0
  20. package/src/services/continuousImprovement.service.d.ts +26 -0
  21. package/src/services/damageService.type.d.ts +5 -9
  22. package/src/services/document.service.d.ts +13 -0
  23. package/src/services/iot.service.d.ts +30 -0
  24. package/src/services/log.service.d.ts +5 -5
  25. package/src/services/oldIOT.service.d.ts +5 -1
  26. package/src/services/oldReader.service.d.ts +14 -5
  27. package/src/services/opportunityRegister.service.d.ts +17 -0
  28. package/src/services/riskRegister.service.d.ts +16 -0
  29. package/src/services/samp.service.d.ts +115 -0
  30. package/src/services/settingsAssetName.service.d.ts +2 -0
  31. package/src/services/settingsBrand.service.d.ts +2 -0
  32. package/src/types/accountCode.type.d.ts +3 -2
  33. package/src/types/ampManagement.type.d.ts +80 -0
  34. package/src/types/asset.type.d.ts +2 -8
  35. package/src/types/assetDetail.type.d.ts +1 -2
  36. package/src/types/assignment.type.d.ts +6 -18
  37. package/src/types/borrow.type.d.ts +2 -6
  38. package/src/types/continuousImprovement.type.d.ts +32 -0
  39. package/src/types/depreciationData.type.d.ts +1 -1
  40. package/src/types/disposal/reported.type.d.ts +1 -3
  41. package/src/types/disposal/requestDisposal.type.d.ts +1 -3
  42. package/src/types/document.type.d.ts +15 -0
  43. package/src/types/fetchResponse.type.d.ts +8 -0
  44. package/src/types/fileManager.type.d.ts +1 -3
  45. package/src/types/iot.type.d.ts +177 -0
  46. package/src/types/licenseAsset.type.d.ts +1 -3
  47. package/src/types/licenseConcurrent.type.d.ts +1 -3
  48. package/src/types/log.type.d.ts +13 -5
  49. package/src/types/maintenanceRoutine.type.d.ts +7 -21
  50. package/src/types/myAsset.type.d.ts +3 -9
  51. package/src/types/oldAssetService.type.d.ts +4 -12
  52. package/src/types/oldAuditService.type.d.ts +1 -2
  53. package/src/types/oldBorrowingService.type.d.ts +5 -15
  54. package/src/types/oldIOTService.type.d.ts +27 -0
  55. package/src/types/opportunityRegister.type.d.ts +38 -0
  56. package/src/types/reader.type.d.ts +43 -22
  57. package/src/types/risk.type.d.ts +59 -0
  58. package/src/types/role.type.d.ts +3 -5
  59. package/src/types/samp.type.d.ts +142 -0
  60. package/src/types/settingsAssetName.type.d.ts +75 -72
  61. package/src/types/settingsBrand.type.d.ts +1 -3
  62. package/src/types/subUser.type.d.ts +1 -3
  63. package/src/types/transfer.type.d.ts +2 -6
  64. package/src/types/user.type.d.ts +3 -5
  65. package/src/utils/buildBodyParams.util.d.ts +7 -0
  66. package/src/utils/getImageURL.util.d.ts +10 -0
  67. package/src/utils/index.d.ts +2 -2
  68. package/src/services/oldLog.service.d.ts +0 -31
  69. package/src/utils/oldGetImageURL.util.d.ts +0 -1
@@ -3,6 +3,77 @@ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "produ
3
3
  const getBaseURL = (env = "APP_API") => {
4
4
  return __vite_import_meta_env__["VITE_" + env];
5
5
  };
6
+ const buildFileURL = (name, width, height) => {
7
+ const BASE_URL = new URL(getBaseURL("APP_API")).origin;
8
+ let url = name.startsWith("http") ? name : `${BASE_URL}/file-storage/api/file/${name.replace(/^\/+/, "")}`;
9
+ if (width || height) {
10
+ const params = new URLSearchParams();
11
+ if (width) {
12
+ params.set("width", width.toString());
13
+ params.set("height", (height == null ? void 0 : height.toString()) || width.toString());
14
+ }
15
+ url += `?${params.toString()}`;
16
+ }
17
+ return url;
18
+ };
19
+ const getAuthToken = () => {
20
+ const user = JSON.parse(localStorage.getItem("user") ?? "{}");
21
+ return user.jwt ?? user.token ?? "";
22
+ };
23
+ const fetchBlobFile = async (url, token) => {
24
+ const res = await fetch(url, {
25
+ headers: {
26
+ Authorization: `Bearer ${token}`
27
+ }
28
+ });
29
+ if (!res.ok) {
30
+ throw new Error(`Image fetch failed: ${res.status} ${res.statusText}`);
31
+ }
32
+ const arrayBuffer = await res.arrayBuffer();
33
+ return new Blob([arrayBuffer], {
34
+ type: res.headers.get("Content-Type") || "image/webp"
35
+ });
36
+ };
37
+ const downloadFile = async (fileUrl, fileName, immediateRevoke = true) => {
38
+ const token = getAuthToken();
39
+ const blob = await fetchBlobFile(fileUrl, token);
40
+ let objectUrl = "";
41
+ const isViewable = /^(image|application\/pdf)/i.test(blob.type);
42
+ if (isViewable) {
43
+ const file = new File([blob], fileName, {
44
+ type: blob.type
45
+ });
46
+ objectUrl = URL.createObjectURL(file);
47
+ window.open(objectUrl, "_blank");
48
+ } else {
49
+ objectUrl = URL.createObjectURL(blob);
50
+ const a = document.createElement("a");
51
+ a.href = objectUrl;
52
+ a.download = fileName;
53
+ document.body.appendChild(a);
54
+ a.click();
55
+ a.remove();
56
+ }
57
+ if (immediateRevoke) {
58
+ URL.revokeObjectURL(objectUrl);
59
+ }
60
+ return objectUrl;
61
+ };
62
+ const createBlobURL = async (rawFileUrl) => {
63
+ try {
64
+ const token = getAuthToken();
65
+ const blob = await fetchBlobFile(rawFileUrl, token);
66
+ return URL.createObjectURL(blob);
67
+ } catch (err) {
68
+ return void 0;
69
+ }
70
+ };
71
+ const getImageURL = async (name, width, height, returnURLOnly) => {
72
+ if (!name) return;
73
+ const url = buildFileURL(name, width, height);
74
+ if (returnURLOnly) return url;
75
+ return createBlobURL(url);
76
+ };
6
77
  const createAxiosInstance = (config = {}, useDifferentHeaders = false) => {
7
78
  const { env = "APP_API", prefix = "", headers = {}, ...restConfig } = config;
8
79
  const baseURL = `${getBaseURL(env)}${prefix}`;
@@ -42,98 +113,79 @@ const queryParamsStringfy = (data) => {
42
113
  });
43
114
  return assignedData;
44
115
  };
45
- const buildImageUrl = (name, width, height) => {
46
- const BASE_URL = new URL(getBaseURL("APP_API")).origin;
47
- let url = name.startsWith("http") ? name : `${BASE_URL}/file-storage/api/file/${name.replace(/^\/+/, "")}`;
48
- if (width || height) {
49
- const params = new URLSearchParams();
50
- if (width) {
51
- params.set("width", width.toString());
52
- params.set("height", (height == null ? void 0 : height.toString()) || width.toString());
53
- }
54
- url += `?${params.toString()}`;
55
- }
56
- return url;
57
- };
58
- const getAuthToken = () => {
59
- const user = JSON.parse(localStorage.getItem("user") ?? "{}");
60
- return user.jwt ?? user.token ?? "";
61
- };
62
- const fetchImageBlob = async (url, token) => {
63
- const res = await fetch(url, {
64
- headers: {
65
- Authorization: `Bearer ${token}`
66
- }
67
- });
68
- if (!res.ok) {
69
- throw new Error(`Image fetch failed: ${res.status} ${res.statusText}`);
70
- }
71
- const arrayBuffer = await res.arrayBuffer();
72
- return new Blob([arrayBuffer], {
73
- type: res.headers.get("Content-Type") || "image/webp"
74
- });
75
- };
76
- const getImageURL = async (name, width, height, returnURLOnly) => {
77
- if (!name) return;
78
- const url = buildImageUrl(name, width, height);
79
- if (returnURLOnly) return url;
80
- try {
81
- const token = getAuthToken();
82
- const blob = await fetchImageBlob(url, token);
83
- return URL.createObjectURL(blob);
84
- } catch (err) {
85
- return void 0;
86
- }
87
- };
88
116
  const getAssetsFile = async (file, type = "excel") => {
89
117
  const response = await fetch(
90
118
  `${getBaseURL("APP_ASSETS_URL")}/${type}/${file}`
91
119
  );
92
120
  return response;
93
121
  };
94
- const API$K = createAxiosInstance({
122
+ const isValidJSON = (value) => {
123
+ if (typeof value !== "string") return false;
124
+ const s = value.trim();
125
+ if (!s) return false;
126
+ try {
127
+ JSON.parse(s);
128
+ return true;
129
+ } catch {
130
+ return false;
131
+ }
132
+ };
133
+ const buildBodyParams = (params) => {
134
+ if (!params) {
135
+ return {};
136
+ }
137
+ const result = {};
138
+ Object.keys(params).forEach((key) => {
139
+ const val = params[key];
140
+ result[key] = isValidJSON(val) ? JSON.parse(val.trim()) : val;
141
+ });
142
+ return result;
143
+ };
144
+ const API$O = createAxiosInstance({
95
145
  prefix: "/utility/v2"
96
146
  });
97
- const ChangelogServices$1 = {
98
- getActionLog: (params) => {
99
- return API$K.get("/change-log", { params });
147
+ const ChangelogServices = {
148
+ getChangelogList: (params) => {
149
+ return API$O.get("/change-log", { params });
100
150
  },
101
- getActionLogOption: (params) => {
102
- return API$K.get("/change-log/options", { params });
151
+ getChangelogListOptions: (params) => {
152
+ return API$O.get("/change-log/options", { params });
103
153
  },
104
154
  getSessionLogList: (params) => {
105
- return API$K.get("/session-log", { params });
155
+ return API$O.get("/session-log", { params });
106
156
  },
107
157
  getSessionLogListOptions: (params) => {
108
- return API$K.get("/session-log/options", { params });
158
+ return API$O.get("/session-log/options", {
159
+ params
160
+ });
109
161
  },
110
162
  getTransactionLog: (params) => {
111
- return API$K.get("/transaction-log", { params });
163
+ return API$O.get("/transaction-log", { params });
112
164
  },
113
165
  /**
114
166
  * Retrieves the transaction log options.
115
167
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
116
168
  */
117
169
  getTransactionLogOption: (params) => {
118
- return API$K.get("/transaction-log/options", { params });
170
+ return API$O.get("/transaction-log/options", { params });
119
171
  },
120
172
  getUserDetailSystemLogList: (params) => {
121
- return API$K.get("/change-log", { params });
173
+ return API$O.get("/change-log", { params });
122
174
  },
123
175
  getUserDetailSystemLogOption: (params) => {
124
- return API$K.get("/change-log/options", { params });
176
+ return API$O.get("/change-log/options", { params });
125
177
  },
126
178
  getUserDetailUserLogBorrowingList: (userId, params) => {
127
- return API$K.get(`/borrowing-log/${userId}`, { params });
179
+ return API$O.get(`/borrowing-log/${userId}`, { params });
128
180
  },
129
181
  getUserDetailUserLogAssignmentList: (userId, params) => {
130
- return API$K.get(`/assignment-log/${userId}`, { params });
182
+ return API$O.get(`/assignment-log/${userId}`, { params });
131
183
  },
132
184
  getUserDetailUserLogBorrowingOption: (userId, params) => {
133
- return API$K.get(`/borrowing-log/${userId}/options`, { params });
185
+ return API$O.get(`/borrowing-log/${userId}/options`, { params });
134
186
  },
135
187
  getUserDetailUserLogAssignmentOption: (userId, params) => {
136
- return API$K.get(`/assignment-log/${userId}/options`, { params });
188
+ return API$O.get(`/assignment-log/${userId}/options`, { params });
137
189
  }
138
190
  };
139
191
  const AssetsAPIs = createAxiosInstance({
@@ -216,38 +268,38 @@ const AssetServices = {
216
268
  return AssetsAPIs.delete("/attachment/bulk", { params });
217
269
  }
218
270
  };
219
- const API$J = createAxiosInstance({
271
+ const API$N = createAxiosInstance({
220
272
  prefix: "/missing-tracking/v2"
221
273
  });
222
274
  const MissingServices = {
223
275
  putFoundAsset: (body) => {
224
- return API$J.put("/found", body);
276
+ return API$N.put("/found", body);
225
277
  },
226
278
  putReportMissing: (id, body) => {
227
- return API$J.put(`/${id}/report-missing`, body);
279
+ return API$N.put(`/${id}/report-missing`, body);
228
280
  },
229
281
  getData: (params) => {
230
- return API$J.get("/", { params });
282
+ return API$N.get("/", { params });
231
283
  },
232
284
  getDataOptions: (params) => {
233
- return API$J.get("/options", { params });
285
+ return API$N.get("/options", { params });
234
286
  },
235
287
  getDetail: (id) => {
236
- return API$J.get(`/${id}`);
288
+ return API$N.get(`/${id}`);
237
289
  }
238
290
  };
239
- const API$I = createAxiosInstance({
291
+ const API$M = createAxiosInstance({
240
292
  prefix: "/utility/v2/notification"
241
293
  });
242
294
  const NotificationServices = {
243
295
  getNotifications: (params) => {
244
- return API$I.get("/", { params });
296
+ return API$M.get("/", { params });
245
297
  },
246
298
  readNotification: (id) => {
247
- return API$I.put(`/${id}`);
299
+ return API$M.put(`/${id}`);
248
300
  }
249
301
  };
250
- const API$H = createAxiosInstance({
302
+ const API$L = createAxiosInstance({
251
303
  prefix: "/settings-user-role/v2"
252
304
  });
253
305
  const UserServices = {
@@ -256,19 +308,19 @@ const UserServices = {
256
308
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
257
309
  */
258
310
  getUserDropdown: (params) => {
259
- return API$H.get("/users/dropdown", { params });
311
+ return API$L.get("/users/dropdown", { params });
260
312
  },
261
313
  getUserOptions: (params) => {
262
- return API$H.get("/users/options", { params });
314
+ return API$L.get("/users/options", { params });
263
315
  },
264
316
  getUserList: (params) => {
265
- return API$H.get("/users", { params });
317
+ return API$L.get("/users", { params });
266
318
  },
267
319
  getUserDetail: (id) => {
268
- return API$H.get(`/users/${id}`);
320
+ return API$L.get(`/users/${id}`);
269
321
  },
270
322
  putSetActiveBulk: (data) => {
271
- return API$H.put("/users/set-active-bulk", data);
323
+ return API$L.put("/users/set-active-bulk", data);
272
324
  },
273
325
  // User Detail
274
326
  /**
@@ -278,97 +330,97 @@ const UserServices = {
278
330
  * @param params {Record<string, unknown>}
279
331
  */
280
332
  getUserDetailSystemRoles: (id, params, permissionType) => {
281
- const additionalPath = permissionType ? `/${permissionType}/groups` : "";
282
- return API$H.get(`/users/${id}/system-roles${additionalPath}`, {
333
+ const additionalPath = permissionType ? `/${permissionType}` : "";
334
+ return API$L.get(`/users/${id}/system-roles${additionalPath}`, {
283
335
  params
284
336
  });
285
337
  },
286
338
  getUserDetailTransactionRoleList: (id, params) => {
287
- return API$H.get(`/users/${id}/transaction-roles`, { params });
339
+ return API$L.get(`/user-detail/${id}/transaction-role-list`, { params });
288
340
  },
289
341
  postUserDetailAddTransactionRole: (userId, data) => {
290
- return API$H.post(`/users/${userId}/add-transaction-role`, data);
342
+ return API$L.post(`/users/${userId}/add-transaction-role`, data);
291
343
  },
292
344
  deleteUserDetailTransactionRole: (userId, body) => {
293
- return API$H.put(`/users/${userId}/delete-transaction-role`, body);
345
+ return API$L.put(`/users/${userId}/delete-transaction-role`, body);
294
346
  },
295
347
  putUserDetailEditTransactionRole: (userId, data) => {
296
- return API$H.put(`/users/${userId}/edit-transaction-role`, data);
348
+ return API$L.put(`/users/${userId}/edit-transaction-role`, data);
297
349
  },
298
350
  putAssignGroup: (data, permissionType, id) => {
299
- return API$H.put(`/users/${id}/system-roles/${permissionType}/groups`, data);
351
+ return API$L.put(`/users/${id}/system-roles/${permissionType}/groups`, data);
300
352
  },
301
353
  putRoleSetActive: (body, userId) => {
302
- return API$H.put(`/users/${userId}/system-roles/set-active-bulk`, body);
354
+ return API$L.put(`/users/${userId}/system-roles/set-active-bulk`, body);
303
355
  },
304
356
  getUserDetailTransactionAdminLogList: (userId, params) => {
305
- return API$H.get(`/users/${userId}/transaction-log`, { params });
357
+ return API$L.get(`/users-log/${userId}/transaction-log`, { params });
306
358
  },
307
359
  getUserDetailTransactionAdminLogOption: (userId, params) => {
308
- return API$H.get(`/users/${userId}/transaction-log/option`, { params });
360
+ return API$L.get(`/users-log/${userId}/transaction-log/options`, { params });
309
361
  },
310
362
  getUserDetailUserAssetBorrowedList: (userId, params) => {
311
- return API$H.get(`/users/${userId}/borrowed-asset`, { params });
363
+ return API$L.get(`/user-detail/${userId}/assets/borrowed`, { params });
312
364
  },
313
365
  getUserDetailUserAssetAssignedList: (userId, params) => {
314
- return API$H.get(`/users/${userId}/assigned-asset`, { params });
366
+ return API$L.get(`/user-detail/${userId}/assets/assigned`, { params });
315
367
  },
316
368
  getUserDetailUserAssetBorrowedOption: (userId, params) => {
317
- return API$H.get(`/users/${userId}/borrowed-asset/option`, { params });
369
+ return API$L.get(`/user-detail/${userId}/assets/borrowed/option`, { params });
318
370
  },
319
371
  getUserDetailUserAssetAssignedOption: (userId, params) => {
320
- return API$H.get(`/users/${userId}/assigned-asset/option`, { params });
372
+ return API$L.get(`/user-detail/${userId}/assets/assigned/option`, { params });
321
373
  }
322
374
  };
323
- const API$G = createAxiosInstance({
324
- prefix: "/settings-user-role/v2/users"
375
+ const API$K = createAxiosInstance({
376
+ prefix: "/settings-user-role/v2/sub-users"
325
377
  });
326
378
  const SubUserServices = {
327
379
  // Sub User
328
380
  getSubUserList: (userId, params) => {
329
- return API$G.get(`/${userId}/sub-users`, { params });
381
+ return API$K.get(`/${userId}`, { params });
330
382
  },
331
383
  getSubUserOptions: (userId, params) => {
332
- return API$G.get(`/${userId}/sub-users/option`, { params });
384
+ return API$K.get(`/${userId}/option`, { params });
333
385
  },
334
386
  postCreateSubUser: (userId, data) => {
335
387
  const headers = { "Content-Type": "multipart/form-data" };
336
- return API$G.post(`/${userId}/sub-users`, data, { headers });
388
+ return API$K.post(`/${userId}`, data, { headers });
337
389
  },
338
390
  putSubUserSetActiveBulk: (userId, data) => {
339
- return API$G.put(`/${userId}/sub-users/set-active-bulk`, data);
391
+ return API$K.put(`/${userId}/set-active-bulk`, data);
340
392
  },
341
393
  deleteSubUser: (userId, subUserIds) => {
342
- return API$G.put(`/${userId}/sub-users/bulk`, { subUserIds });
394
+ return API$K.put(`/${userId}/bulk`, { subUserIds });
343
395
  },
344
396
  putEditSubUser: (userId, subUserId, data) => {
345
397
  const headers = { "Content-Type": "multipart/form-data" };
346
- return API$G.put(`/${userId}/sub-users/${subUserId}`, data, {
398
+ return API$K.put(`/${userId}/${subUserId}`, data, {
347
399
  headers
348
400
  });
349
401
  },
350
402
  getBorrowedAsset: (userId, subUserId, params) => {
351
- return API$G.get(`/${userId}/sub-users/${subUserId}/borrowed-asset`, {
403
+ return API$K.get(`/${userId}/${subUserId}/borrowed-asset`, {
352
404
  params
353
405
  });
354
406
  },
355
407
  getBorrowedAssetOptions: (userId, subUserId, params) => {
356
- return API$G.get(`/${userId}/sub-users/${subUserId}/borrowed-asset/options`, {
408
+ return API$K.get(`/${userId}/${subUserId}/borrowed-asset/options`, {
357
409
  params
358
410
  });
359
411
  },
360
412
  getAssignedAsset: (userId, subUserId, params) => {
361
- return API$G.get(`/${userId}/sub-users/${subUserId}/assigned-asset`, {
413
+ return API$K.get(`/${userId}/${subUserId}/assigned-asset`, {
362
414
  params
363
415
  });
364
416
  },
365
417
  getAssignedAssetOptions: (userId, subUserId, params) => {
366
- return API$G.get(`/${userId}/sub-users/${subUserId}/assigned-asset/options`, {
418
+ return API$K.get(`/${userId}/${subUserId}/assigned-asset/options`, {
367
419
  params
368
420
  });
369
421
  }
370
422
  };
371
- const API$F = createAxiosInstance({
423
+ const API$J = createAxiosInstance({
372
424
  prefix: "/utility/v2"
373
425
  });
374
426
  const FileManagerServices = {
@@ -378,7 +430,7 @@ const FileManagerServices = {
378
430
  * @returns {Promise<AxiosResponse>} The Axios Response.
379
431
  */
380
432
  getStorageInformation: () => {
381
- return API$F.get("/files/storage");
433
+ return API$J.get("/files/storage");
382
434
  },
383
435
  /**
384
436
  * Get file manager data.
@@ -388,7 +440,7 @@ const FileManagerServices = {
388
440
  * @returns {Promise<AxiosResponse>} The Axios Response.
389
441
  */
390
442
  getFileManager: (type, params) => {
391
- return API$F.get(`/${type}`, { params });
443
+ return API$J.get(`/${type}`, { params });
392
444
  },
393
445
  /**
394
446
  * Get file manager options.
@@ -398,7 +450,7 @@ const FileManagerServices = {
398
450
  * @returns {Promise<AxiosResponse>} The Axios Response.
399
451
  */
400
452
  getFileManagerOption: (type, params) => {
401
- return API$F.get(`/${type}/options`, { params });
453
+ return API$J.get(`/${type}/options`, { params });
402
454
  },
403
455
  /**
404
456
  * Recover files.
@@ -408,7 +460,7 @@ const FileManagerServices = {
408
460
  * @returns {Promise<AxiosResponse>} The Axios Response.
409
461
  */
410
462
  recoverFiles: (type, body) => {
411
- return API$F.put(`/${type}/recover`, body);
463
+ return API$J.put(`/${type}/recover`, body);
412
464
  },
413
465
  /**
414
466
  * Delete files.
@@ -418,7 +470,7 @@ const FileManagerServices = {
418
470
  * @returns {Promise<AxiosResponse>} The Axios Response.
419
471
  */
420
472
  deleteFiles: (type, params) => {
421
- return API$F.delete(`/${type}`, { params });
473
+ return API$J.delete(`/${type}`, { params });
422
474
  },
423
475
  /**
424
476
  * Delete files permanently.
@@ -428,10 +480,10 @@ const FileManagerServices = {
428
480
  * @returns {Promise<AxiosResponse>} The Axios Response.
429
481
  */
430
482
  deletePermanently: (type, params) => {
431
- return API$F.delete(`/${type}/delete-permanent`, { params });
483
+ return API$J.delete(`/${type}/delete-permanent`, { params });
432
484
  }
433
485
  };
434
- const API$E = createAxiosInstance({
486
+ const API$I = createAxiosInstance({
435
487
  prefix: "/settings-user-role/v2"
436
488
  });
437
489
  const RoleServices = {
@@ -442,10 +494,10 @@ const RoleServices = {
442
494
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
443
495
  */
444
496
  getTransactionRole: (groupId, transactionName) => {
445
- return API$E.get(`/transaction-roles/${groupId}/${transactionName}`);
497
+ return API$I.get(`/transaction-roles/${groupId}/${transactionName}`);
446
498
  },
447
499
  getTransactionRoleTypes: (groupKeys, transactionName) => {
448
- return API$E.get(`/transaction-roles/${transactionName}/types`, {
500
+ return API$I.get(`/transaction-roles/${transactionName}/types`, {
449
501
  params: { groupKeys }
450
502
  });
451
503
  },
@@ -457,7 +509,7 @@ const RoleServices = {
457
509
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
458
510
  */
459
511
  putUpdateUsers: (groupId, transactionName, body) => {
460
- return API$E.put(
512
+ return API$I.put(
461
513
  `/transaction-roles/${groupId}/${transactionName}/update-user`,
462
514
  body
463
515
  );
@@ -470,7 +522,7 @@ const RoleServices = {
470
522
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
471
523
  */
472
524
  putUpdateLevel: (groupId, transactionName, body) => {
473
- return API$E.put(
525
+ return API$I.put(
474
526
  `/transaction-roles/${groupId}/${transactionName}/update-approval-level`,
475
527
  body
476
528
  );
@@ -483,371 +535,371 @@ const RoleServices = {
483
535
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
484
536
  */
485
537
  putUpdateGroupManage: (groupId, transactionName, body) => {
486
- return API$E.put(
538
+ return API$I.put(
487
539
  `/transaction-roles/${groupId}/${transactionName}/update-manage-by-parent`,
488
540
  body
489
541
  );
490
542
  },
491
543
  getUserAssignedSystemRole: (userId) => {
492
- return API$E.get(`/system-roles/user/${userId}`);
544
+ return API$I.get(`/system-roles/user/${userId}`);
493
545
  },
494
546
  getAssignedUserAmounts: () => {
495
- return API$E.get("/system-roles/amounts");
547
+ return API$I.get("/system-roles/amounts");
496
548
  },
497
549
  getPermissionUser: (permissionType, params) => {
498
550
  if (["totalControl", "readOnly"].includes(permissionType ?? "")) {
499
551
  const type = permissionType === "totalControl" ? "total-control" : "read-only";
500
- return API$E.get(`/system-roles/total-control-read-only/${type}`, {
552
+ return API$I.get(`/system-roles/total-control-read-only/${type}`, {
501
553
  params
502
554
  });
503
555
  }
504
- return API$E.get(`/system-roles/permission/${permissionType}`, { params });
556
+ return API$I.get(`/system-roles/permission/${permissionType}`, { params });
505
557
  },
506
558
  getPermissionUserOptions: (permissionType, params) => {
507
559
  if (["totalControl", "readOnly"].includes(permissionType ?? "")) {
508
560
  const type = permissionType === "totalControl" ? "total-control" : "read-only";
509
- return API$E.get(`/system-roles/total-control-read-only/${type}/options`, {
561
+ return API$I.get(`/system-roles/total-control-read-only/${type}/options`, {
510
562
  params
511
563
  });
512
564
  }
513
- return API$E.get(`/system-roles/permission/${permissionType}/options`, {
565
+ return API$I.get(`/system-roles/permission/${permissionType}/options`, {
514
566
  params
515
567
  });
516
568
  },
517
569
  getUserGroups: (params, permissionType) => {
518
- return API$E.get(`/system-roles/permission/${permissionType}/groups`, {
570
+ return API$I.get(`/system-roles/permission/${permissionType}/groups`, {
519
571
  params
520
572
  });
521
573
  },
522
574
  postAssignUser: (body, permissionType) => {
523
575
  if (["totalControl", "readOnly"].includes(permissionType ?? "")) {
524
576
  const type = permissionType === "totalControl" ? "total-control" : "read-only";
525
- return API$E.post(`/system-roles/total-control-read-only/${type}`, body);
577
+ return API$I.post(`/system-roles/total-control-read-only/${type}`, body);
526
578
  }
527
- return API$E.post(`/system-roles/permission/${permissionType}`, body);
579
+ return API$I.post(`/system-roles/permission/${permissionType}`, body);
528
580
  },
529
581
  putEditUser: (body, roleId) => {
530
- return API$E.put(`/system-roles/${roleId}`, body);
582
+ return API$I.put(`/system-roles/${roleId}`, body);
531
583
  },
532
584
  deleteRemoveUser: (body, permissionType) => {
533
585
  if (["totalControl", "readOnly"].includes(permissionType ?? "")) {
534
586
  const type = permissionType === "totalControl" ? "total-control" : "read-only";
535
- return API$E.put(`/system-roles/total-control-read-only/${type}`, body);
587
+ return API$I.put(`/system-roles/total-control-read-only/${type}`, body);
536
588
  }
537
- return API$E.put("/system-roles", body);
589
+ return API$I.put("/system-roles", body);
538
590
  }
539
591
  };
540
- const API$D = createAxiosInstance({
592
+ const API$H = createAxiosInstance({
541
593
  prefix: "/settings-attribute/v2/open-api"
542
594
  });
543
595
  const OpenAPIServices = {
544
596
  getOpenAPIDocs: (params) => {
545
- return API$D.get(`/${params.doc}`);
597
+ return API$H.get(`/${params.doc}`);
546
598
  },
547
599
  putGenerateToken: () => {
548
- return API$D.put("/generate");
600
+ return API$H.put("/generate");
549
601
  },
550
602
  // This is if the dummy was not dummy
551
603
  getToken: () => {
552
- return API$D.get("");
604
+ return API$H.get("");
553
605
  },
554
606
  putRequestOpenAPI: () => {
555
- return API$D.put("/request");
607
+ return API$H.put("/request");
556
608
  },
557
609
  putCancelRequestOpenAPI: () => {
558
- return API$D.put("/cancel-request");
610
+ return API$H.put("/cancel-request");
559
611
  }
560
612
  };
561
- const API$C = createAxiosInstance({
613
+ const API$G = createAxiosInstance({
562
614
  prefix: "/import/v2"
563
615
  });
564
616
  const ImportServices = {
565
617
  getImport: (importUrl, params) => {
566
- return API$C.get(`/${importUrl}`, { params });
618
+ return API$G.get(`/${importUrl}`, { params });
567
619
  },
568
620
  postImportTemporary: (importUrl, data) => {
569
621
  const headers = { "Content-Type": "multipart/form-data" };
570
- return API$C.post(`/${importUrl}/temporary`, data, { headers });
622
+ return API$G.post(`/${importUrl}/temporary`, data, { headers });
571
623
  },
572
624
  deleteImportTemporary: (importUrl, params) => {
573
- return API$C.delete(`/${importUrl}/temporary`, { params });
625
+ return API$G.delete(`/${importUrl}/temporary`, { params });
574
626
  },
575
627
  postDuplicateImport: (importUrl, body) => {
576
- return API$C.post(`/${importUrl}/duplicate`, body);
628
+ return API$G.post(`/${importUrl}/duplicate`, body);
577
629
  },
578
630
  putEditImport: (importUrl, body) => {
579
- return API$C.put(`/${importUrl}`, body);
631
+ return API$G.put(`/${importUrl}`, body);
580
632
  },
581
633
  postImport: (importUrl, controller, body) => {
582
- return API$C.post(importUrl, body, { signal: controller.signal });
634
+ return API$G.post(importUrl, body, { signal: controller.signal });
583
635
  },
584
636
  putImportCancelProgress: (importUrl) => {
585
- return API$C.put(`/${importUrl}/cancel-progress`);
637
+ return API$G.put(`/${importUrl}/cancel-progress`);
586
638
  }
587
639
  };
588
- const API$B = createAxiosInstance({
640
+ const API$F = createAxiosInstance({
589
641
  env: "APP_TAGSAMURAI_API",
590
642
  prefix: "/assignment/v2"
591
643
  });
592
644
  const AssignmentServices$1 = {
593
645
  getPreListData: (params) => {
594
- return API$B.get("/prelist", { params });
646
+ return API$F.get("/prelist", { params });
595
647
  },
596
648
  getPreListOptions: (params) => {
597
- return API$B.get("/prelist/options", { params });
649
+ return API$F.get("/prelist/options", { params });
598
650
  },
599
651
  getRequestData: (params) => {
600
- return API$B.get("/prelist/request", { params });
652
+ return API$F.get("/prelist/request", { params });
601
653
  },
602
654
  postAddPrelistData: (body) => {
603
- return API$B.post("/prelist", body);
655
+ return API$F.post("/prelist", body);
604
656
  },
605
657
  getDetailRequestData: (id, params) => {
606
- return API$B.get(`/transaction/${id}/request`, { params });
658
+ return API$F.get(`/transaction/${id}/request`, { params });
607
659
  },
608
660
  getDetailRequestOption: (params, id) => {
609
- return API$B.get(`/transaction/${id}/request/options`, { params });
661
+ return API$F.get(`/transaction/${id}/request/options`, { params });
610
662
  },
611
663
  getTransactionData: (params) => {
612
- return API$B.get("/transaction", { params });
664
+ return API$F.get("/transaction", { params });
613
665
  },
614
666
  getTransactionOptions: (params) => {
615
- return API$B.get("/transaction/options", { params });
667
+ return API$F.get("/transaction/options", { params });
616
668
  },
617
669
  getDetailTransactionData: (id) => {
618
- return API$B.get(`/transaction/${id}`);
670
+ return API$F.get(`/transaction/${id}`);
619
671
  },
620
672
  getTransactionApproval: (params) => {
621
- return API$B.get("/approval", { params });
673
+ return API$F.get("/approval", { params });
622
674
  },
623
675
  getApprovalData: (transactionId, params) => {
624
- return API$B.get(`/approval/transaction/${transactionId}`, { params });
676
+ return API$F.get(`/approval/transaction/${transactionId}`, { params });
625
677
  },
626
678
  getTransactionApprovalOptions: (params) => {
627
- return API$B.get("/approval/options", { params });
679
+ return API$F.get("/approval/options", { params });
628
680
  },
629
681
  getApprovalOptions: (transactionId, params) => {
630
- return API$B.get(`/approval/transaction/${transactionId}/options`, {
682
+ return API$F.get(`/approval/transaction/${transactionId}/options`, {
631
683
  params
632
684
  });
633
685
  },
634
686
  getTransactionApprovers: (id) => {
635
- return API$B.get(`/approval/transaction/${id}/transaction`);
687
+ return API$F.get(`/approval/transaction/${id}/transaction`);
636
688
  },
637
689
  putApproveApproval: (body) => {
638
- return API$B.put("/approval/approve", body);
690
+ return API$F.put("/approval/approve", body);
639
691
  },
640
692
  getDetailTransactionLog: (id) => {
641
- return API$B.get(`/transaction/request/${id}/transaction-log`);
693
+ return API$F.get(`/transaction/request/${id}/transaction-log`);
642
694
  },
643
695
  getVerifyAsset: (params, id) => {
644
- return API$B.get(`/transaction/${id}/request/scan`, { params });
696
+ return API$F.get(`/transaction/${id}/request/scan`, { params });
645
697
  },
646
698
  putEditAssignedUser: (id, body) => {
647
- return API$B.put(`/transaction/${id}/user`, body);
699
+ return API$F.put(`/transaction/${id}/user`, body);
648
700
  },
649
701
  putEditEmailConfirmation: (id, body) => {
650
- return API$B.put(`/transaction/${id}/update-email-or-assigned-user`, body);
702
+ return API$F.put(`/transaction/${id}/update-email-or-assigned-user`, body);
651
703
  },
652
704
  postSendConfirmationEmail: (id) => {
653
- return API$B.post(`/transaction/${id}/send-confirmation-email`);
705
+ return API$F.post(`/transaction/${id}/send-confirmation-email`);
654
706
  },
655
707
  postTransaction: (body) => {
656
- return API$B.post("/transaction", body);
708
+ return API$F.post("/transaction", body);
657
709
  },
658
710
  putTransactionRequest: (id, body) => {
659
- return API$B.put(`/transaction/${id}/request`, body);
711
+ return API$F.put(`/transaction/${id}/request`, body);
660
712
  },
661
713
  putCancelTransaction: (body) => {
662
- return API$B.put("/transaction/cancel", body);
714
+ return API$F.put("/transaction/cancel", body);
663
715
  },
664
716
  putCancelAssignmentRequest: (body) => {
665
- return API$B.put("/transaction/request/cancel", body);
717
+ return API$F.put("/transaction/request/cancel", body);
666
718
  },
667
719
  putVerifyRequest: (body, id) => {
668
- return API$B.put(`/transaction/${id}/verify-requests`, body);
720
+ return API$F.put(`/transaction/${id}/verify-requests`, body);
669
721
  },
670
722
  putVerifyToken: (body) => {
671
- return API$B.put("/transaction/verify-token", body);
723
+ return API$F.put("/transaction/verify-token", body);
672
724
  },
673
725
  putHandoverConfirm: (body) => {
674
- return API$B.put("/transaction/handover-confirmation", body);
726
+ return API$F.put("/transaction/handover-confirmation", body);
675
727
  },
676
728
  putAssignHandover: (transaction) => {
677
- return API$B.put(`/transaction/${transaction}/handover`);
729
+ return API$F.put(`/transaction/${transaction}/handover`);
678
730
  },
679
731
  deletePrelistData: (params) => {
680
- return API$B.delete("/prelist", { params });
732
+ return API$F.delete("/prelist", { params });
681
733
  },
682
734
  deleteRequestPrelistData: (body) => {
683
- return API$B.delete("/prelist/request", { data: body });
735
+ return API$F.delete("/prelist/request", { data: body });
684
736
  },
685
737
  getAssignedByAsset: (params) => {
686
- return API$B.get("/transaction/request/assigned/by-asset", { params });
738
+ return API$F.get("/transaction/request/assigned/by-asset", { params });
687
739
  },
688
740
  getAssignedByAssetOptions: (params) => {
689
- return API$B.get("/transaction/request/assigned/by-asset/options", {
741
+ return API$F.get("/transaction/request/assigned/by-asset/options", {
690
742
  params
691
743
  });
692
744
  },
693
745
  getAssignedByUser: (params) => {
694
- return API$B.get("/transaction/request/assigned/by-user", { params });
746
+ return API$F.get("/transaction/request/assigned/by-user", { params });
695
747
  },
696
748
  getAssignedByUserOptions: (params) => {
697
- return API$B.get("/transaction/request/assigned/by-user/options", { params });
749
+ return API$F.get("/transaction/request/assigned/by-user/options", { params });
698
750
  },
699
751
  postUnassignPrelistAsset: (body) => {
700
- return API$B.post("/prelist", body);
752
+ return API$F.post("/prelist", body);
701
753
  },
702
754
  postUnassignPrelistUser: (body) => {
703
- return API$B.post("/prelist/unassign/by-user", body);
755
+ return API$F.post("/prelist/unassign/by-user", body);
704
756
  },
705
757
  putUnassignRequest: (body) => {
706
- return API$B.put("/transaction/request/unassign", body);
758
+ return API$F.put("/transaction/request/unassign", body);
707
759
  },
708
760
  putReportDone: (id, body) => {
709
- return API$B.put(`/transaction/${id}/confirm-report-done`, body);
761
+ return API$F.put(`/transaction/${id}/confirm-report-done`, body);
710
762
  },
711
763
  getHistory: (type, params) => {
712
764
  const urlType = type.split(" ").join("-").toLowerCase();
713
- return API$B.get(`/transaction/history/${urlType}`, { params });
765
+ return API$F.get(`/transaction/history/${urlType}`, { params });
714
766
  },
715
767
  getHistoryOptions: (params) => {
716
- return API$B.get("/transaction/history/options", { params });
768
+ return API$F.get("/transaction/history/options", { params });
717
769
  },
718
770
  getHistoryByTransactionOptions: (params) => {
719
- return API$B.get("/transaction/history/by-transaction/options", { params });
771
+ return API$F.get("/transaction/history/by-transaction/options", { params });
720
772
  },
721
773
  putCancelReport: (body) => {
722
- return API$B.put("/transaction/request/cancel-report", body);
774
+ return API$F.put("/transaction/request/cancel-report", body);
723
775
  },
724
776
  getTaskAssignment: async (params) => {
725
- return API$B.get("/transaction/my-asset/task", { params });
777
+ return API$F.get("/transaction/my-asset/task", { params });
726
778
  },
727
779
  getTaskAssignmentOptions: async (params) => {
728
- return API$B.get("/transaction/my-asset/task/options", { params });
780
+ return API$F.get("/transaction/my-asset/task/options", { params });
729
781
  },
730
782
  getAssignedAsset: async (params) => {
731
- return API$B.get("/transaction/my-asset/assigned-asset", { params });
783
+ return API$F.get("/transaction/my-asset/assigned-asset", { params });
732
784
  },
733
785
  getAssignedAssetOptions: async (params) => {
734
- return API$B.get("/transaction/my-asset/assigned-asset/options", { params });
786
+ return API$F.get("/transaction/my-asset/assigned-asset/options", { params });
735
787
  },
736
788
  putCancelAssignment: async (body) => {
737
- return API$B.put("/transaction/cancel", { id: body.id });
789
+ return API$F.put("/transaction/cancel", { id: body.id });
738
790
  },
739
791
  putCancelReportById: async (body) => {
740
- return API$B.put(`/transaction/request/${body.id}/cancel-report`);
792
+ return API$F.put(`/transaction/request/${body.id}/cancel-report`);
741
793
  }
742
794
  };
743
- const API$A = createAxiosInstance({
795
+ const API$E = createAxiosInstance({
744
796
  prefix: "/assignment/v2"
745
797
  });
746
798
  const AssignmentServices = {
747
799
  ...AssignmentServices$1,
748
800
  // Temporary inclusion of methods from OldAssignmentServices. Move individual methods here once they are refactored and ready.
749
801
  getTransactionData: (params) => {
750
- return API$A.get("/transaction", { params });
802
+ return API$E.get("/transaction", { params });
751
803
  },
752
804
  getTransactionOptions: (params) => {
753
- return API$A.get("/transaction/options", { params });
805
+ return API$E.get("/transaction/options", { params });
754
806
  },
755
807
  getDetailTransactionLog: (id) => {
756
- return API$A.get(`/transaction/request/${id}/transaction-log`);
808
+ return API$E.get(`/transaction/request/${id}/transaction-log`);
757
809
  },
758
810
  postTransaction: (body) => {
759
- return API$A.post("/transaction", body);
811
+ return API$E.post("/transaction", body);
760
812
  },
761
813
  putTransaction: (body) => {
762
- return API$A.put("/transaction", body);
814
+ return API$E.put("/transaction", body);
763
815
  },
764
816
  putUnassignTransaction: (body) => {
765
- return API$A.put("/transaction/unassign", body);
817
+ return API$E.put("/transaction/unassign", body);
766
818
  },
767
819
  putCancelReport: (body) => {
768
- return API$A.put("/transaction/request/cancel-report", body);
820
+ return API$E.put("/transaction/request/cancel-report", body);
769
821
  }
770
822
  };
771
- const API$z = createAxiosInstance({
823
+ const API$D = createAxiosInstance({
772
824
  prefix: "/license/v2"
773
825
  });
774
826
  const TotalLicenseServices = {
775
827
  getTotalLicense: () => {
776
- return API$z.get("/total-license");
828
+ return API$D.get("/total-license");
777
829
  },
778
830
  getPurchasedData: (params) => {
779
- return API$z.get("/purchase", { params });
831
+ return API$D.get("/purchase", { params });
780
832
  }
781
833
  };
782
834
  const LicenseConcurrentServices = {
783
835
  getConcurrentUserData: () => {
784
- return API$z.get("/concurrent-user-data");
836
+ return API$D.get("/concurrent-user-data");
785
837
  },
786
838
  getConcurrentUserList: (params) => {
787
- return API$z.get("/concurrent-user", { params });
839
+ return API$D.get("/concurrent-user", { params });
788
840
  },
789
841
  putLogoutUsers: (body) => {
790
- return API$z.put("/concurrent-user", body);
842
+ return API$D.put("/concurrent-user", body);
791
843
  }
792
844
  };
793
845
  const LicenseAssetServices = {
794
846
  getFixedAssetPerGroup: (groupId, params) => {
795
- return API$z.get(`/${groupId}/assets`, { params });
847
+ return API$D.get(`/${groupId}/assets`, { params });
796
848
  },
797
849
  deleteAssetData: (params) => {
798
- return API$z.delete("/assets", { params });
850
+ return API$D.delete("/assets", { params });
799
851
  }
800
852
  };
801
853
  const LicenseServices = {
802
854
  getFilterOptions: (path, params) => {
803
- return API$z.get(`/${path}`, { params });
855
+ return API$D.get(`/${path}`, { params });
804
856
  },
805
857
  ...TotalLicenseServices,
806
858
  ...LicenseConcurrentServices,
807
859
  ...LicenseAssetServices
808
860
  };
809
- const API$y = createAxiosInstance({
861
+ const API$C = createAxiosInstance({
810
862
  prefix: "/damage-repair-ticketing/v2"
811
863
  });
812
864
  const DamageServices = {
813
865
  getDamageReportList: (params) => {
814
- return API$y.get("/", { params });
866
+ return API$C.get("/", { params });
815
867
  },
816
868
  getDamageReportListFilterOptions: (params) => {
817
- return API$y.get("/options", { params });
869
+ return API$C.get("/options", { params });
818
870
  },
819
871
  getDamageReportDetail: (reportId) => {
820
- return API$y.get(`/${reportId}`);
872
+ return API$C.get(`/${reportId}`);
821
873
  },
822
874
  putReportDamage: (id, body) => {
823
875
  const headers = { "Content-Type": "multipart/form-data" };
824
- return API$y.put(`/${id}/report-damage`, body, { headers });
876
+ return API$C.put(`/${id}/report-damage`, body, { headers });
825
877
  },
826
878
  putMarkAsRepaired: (body) => {
827
- return API$y.put("/repair", body);
879
+ return API$C.put("/repair", body);
828
880
  }
829
881
  };
830
- const API$x = createAxiosInstance({
882
+ const API$B = createAxiosInstance({
831
883
  prefix: "/assets/v2/my-assets"
832
884
  });
833
885
  const MyAssetServices = {
834
886
  getAssigned: async (params) => {
835
- return API$x.get("/assigned", { params });
887
+ return API$B.get("/assigned", { params });
836
888
  },
837
889
  getAssignedOptions: async (params) => {
838
- return API$x.get("/assigned/options", { params });
890
+ return API$B.get("/assigned/options", { params });
839
891
  },
840
892
  getBorrowed: async (params) => {
841
- return API$x.get("/borrowed", { params });
893
+ return API$B.get("/borrowed", { params });
842
894
  },
843
895
  getBorrowedOptions: async (params) => {
844
- return API$x.get("/borrowed/options", { params });
896
+ return API$B.get("/borrowed/options", { params });
845
897
  },
846
898
  getHistory: async (params) => {
847
- return API$x.get("/history", { params });
899
+ return API$B.get("/history", { params });
848
900
  },
849
901
  getHistoryOptions: async (params) => {
850
- return API$x.get("/history/options", { params });
902
+ return API$B.get("/history/options", { params });
851
903
  }
852
904
  };
853
905
  const PREFIX = "/transfer/v2";
@@ -975,322 +1027,322 @@ const TransferServices = {
975
1027
  return ApprovalAPI$1.put("/approve", body);
976
1028
  }
977
1029
  };
978
- const API$w = createAxiosInstance({
1030
+ const API$A = createAxiosInstance({
979
1031
  prefix: "/transfer/v2"
980
1032
  });
981
1033
  const TransferServicesGo = {
982
1034
  ...TransferServices,
983
1035
  getTransactionData: (params) => {
984
- return API$w.get("/transaction", { params });
1036
+ return API$A.get("/transaction", { params });
985
1037
  },
986
1038
  getTransactionOptions: (params) => {
987
- return API$w.get("/transaction/options", { params });
1039
+ return API$A.get("/transaction/options", { params });
988
1040
  },
989
1041
  getTransactionLog: (id) => {
990
- return API$w.get(`/transaction/request/${id}/transaction-log`);
1042
+ return API$A.get(`/transaction/request/${id}/transaction-log`);
991
1043
  },
992
1044
  postCreateTransaction: (body) => {
993
- return API$w.post("/transaction", body);
1045
+ return API$A.post("/transaction", body);
994
1046
  }
995
1047
  };
996
- const API$v = createAxiosInstance({
1048
+ const API$z = createAxiosInstance({
997
1049
  env: "APP_TAGSAMURAI_API",
998
1050
  prefix: "/borrowing/v2"
999
1051
  });
1000
1052
  const BorrowServices = {
1001
1053
  getTaskBorrowing: async (params) => {
1002
- return API$v.get("/transaction/my-asset/task", { params });
1054
+ return API$z.get("/transaction/my-asset/task", { params });
1003
1055
  },
1004
1056
  getTaskBorrowingOptions: async (params) => {
1005
- return API$v.get("/transaction/my-asset/task/options", { params });
1057
+ return API$z.get("/transaction/my-asset/task/options", { params });
1006
1058
  },
1007
1059
  getBorrowedAsset: async (params) => {
1008
- return API$v.get("/transaction/my-asset/borrowed-asset", { params });
1060
+ return API$z.get("/transaction/my-asset/borrowed-asset", { params });
1009
1061
  },
1010
1062
  getBorrowedOptions: async (params) => {
1011
- return API$v.get("/transaction/my-asset/borrowed-asset/options", { params });
1063
+ return API$z.get("/transaction/my-asset/borrowed-asset/options", { params });
1012
1064
  },
1013
1065
  getHistory: async (params) => {
1014
- return API$v.get("/transaction/my-asset/history", { params });
1066
+ return API$z.get("/transaction/my-asset/history", { params });
1015
1067
  },
1016
1068
  getHistoryOptions: async (params) => {
1017
- return API$v.get("/transaction/my-asset/history/options", { params });
1069
+ return API$z.get("/transaction/my-asset/history/options", { params });
1018
1070
  },
1019
1071
  postAddPrelistData: (body) => {
1020
- return API$v.post("/prelist", body);
1072
+ return API$z.post("/prelist", body);
1021
1073
  },
1022
1074
  putCancelBorrowing: async (body) => {
1023
- return API$v.put("/transaction/cancel", { id: body.id });
1075
+ return API$z.put("/transaction/cancel", { id: body.id });
1024
1076
  },
1025
1077
  putCancelExtensionRequest: async (body) => {
1026
- return API$v.put(`/transaction/${body.id}/cancel-extension`);
1078
+ return API$z.put(`/transaction/${body.id}/cancel-extension`);
1027
1079
  },
1028
1080
  putCancelRequestReport: async (body) => {
1029
- return API$v.put(`/transaction/request/${body.id}/cancel-report`);
1081
+ return API$z.put(`/transaction/request/${body.id}/cancel-report`);
1030
1082
  },
1031
1083
  putDeclineExtensionRequest: async (body) => {
1032
- return API$v.put("transaction/request/decline", body);
1084
+ return API$z.put("transaction/request/decline", body);
1033
1085
  },
1034
1086
  putUpdateRequestExtension: async (body) => {
1035
- return API$v.put("transaction/request/duration", body);
1087
+ return API$z.put("transaction/request/duration", body);
1036
1088
  },
1037
1089
  // ------------------------------------------------------------------------------------------------------------ //
1038
1090
  getBorrowingPrelist: (params) => {
1039
- return API$v.get("/prelist", { params });
1091
+ return API$z.get("/prelist", { params });
1040
1092
  },
1041
1093
  getBorrowingPrelistOptions: (params) => {
1042
- return API$v.get("/prelist/options", { params });
1094
+ return API$z.get("/prelist/options", { params });
1043
1095
  },
1044
1096
  deleteBorrowingPrelist: (id) => {
1045
- return API$v.delete("/prelist", { data: { id } });
1097
+ return API$z.delete("/prelist", { data: { id } });
1046
1098
  },
1047
1099
  getBorrowingRequest: (params) => {
1048
- return API$v.get("/prelist/request", { params });
1100
+ return API$z.get("/prelist/request", { params });
1049
1101
  },
1050
1102
  getBorrowingRequestOptions: (params) => {
1051
- return API$v.get("/prelist/request/options", { params });
1103
+ return API$z.get("/prelist/request/options", { params });
1052
1104
  },
1053
1105
  postBorrowingRequest: (data) => {
1054
- return API$v.post("/prelist/request", data);
1106
+ return API$z.post("/prelist/request", data);
1055
1107
  },
1056
1108
  putBorrowingRequest: (data) => {
1057
- return API$v.put("/prelist/request", data);
1109
+ return API$z.put("/prelist/request", data);
1058
1110
  },
1059
1111
  deleteBorrowingRequest: (id) => {
1060
- return API$v.delete("/prelist/request", { data: { id } });
1112
+ return API$z.delete("/prelist/request", { data: { id } });
1061
1113
  },
1062
1114
  postBorrowingTransaction: (data) => {
1063
- return API$v.post("/transaction", data, { params: { sourceWeb: true } });
1115
+ return API$z.post("/transaction", data, { params: { sourceWeb: true } });
1064
1116
  },
1065
1117
  getBorrowingTransaction: (params) => {
1066
- return API$v.get("/transaction", { params });
1118
+ return API$z.get("/transaction", { params });
1067
1119
  },
1068
1120
  getBorrowingTransactionOptions: (params) => {
1069
- return API$v.get("/transaction/options", { params });
1121
+ return API$z.get("/transaction/options", { params });
1070
1122
  },
1071
1123
  putCancelBorrowingTransaction: (id) => {
1072
- return API$v.put("/transaction/cancel", { id });
1124
+ return API$z.put("/transaction/cancel", { id });
1073
1125
  },
1074
1126
  putCancelBorrowingRequest: (id) => {
1075
- return API$v.put("/transaction/request/cancel", { id });
1127
+ return API$z.put("/transaction/request/cancel", { id });
1076
1128
  },
1077
1129
  putCancelExtendBorrowingRequest: (id) => {
1078
- return API$v.put("/transaction/request/extend/cancel", { id });
1130
+ return API$z.put("/transaction/request/extend/cancel", { id });
1079
1131
  },
1080
1132
  getBorrowingTransactionDetail: (id) => {
1081
- return API$v.get(`/transaction/${id}`);
1133
+ return API$z.get(`/transaction/${id}`);
1082
1134
  },
1083
1135
  getBorrowingTransactionRequestList: (params) => {
1084
- return API$v.get("/transaction/request", { params });
1136
+ return API$z.get("/transaction/request", { params });
1085
1137
  },
1086
1138
  getBorrowingTransactionRequest: (id, params) => {
1087
- return API$v.get(`/transaction/${id}/request`, { params });
1139
+ return API$z.get(`/transaction/${id}/request`, { params });
1088
1140
  },
1089
1141
  getBorrowingTransactionRequestOptions: (id, params) => {
1090
- return API$v.get(`/transaction/${id}/request/options`, { params });
1142
+ return API$z.get(`/transaction/${id}/request/options`, { params });
1091
1143
  },
1092
1144
  putBorrowingTransactionRequest: (id, data) => {
1093
- return API$v.put(`/transaction/${id}/request`, data);
1145
+ return API$z.put(`/transaction/${id}/request`, data);
1094
1146
  },
1095
1147
  getApprovalList: (id) => {
1096
- return API$v.get(`/approval/transaction/${id}/transaction`);
1148
+ return API$z.get(`/approval/transaction/${id}/transaction`);
1097
1149
  },
1098
1150
  putUpdateEmailorBorrower: (id, data) => {
1099
- return API$v.put(`/transaction/${id}/update-email-or-borrower`, data);
1151
+ return API$z.put(`/transaction/${id}/update-email-or-borrower`, data);
1100
1152
  },
1101
1153
  getTransactionRequestScan: (id, tag) => {
1102
- return API$v.get(`/transaction/${id}/request/scan`, { params: { tag } });
1154
+ return API$z.get(`/transaction/${id}/request/scan`, { params: { tag } });
1103
1155
  },
1104
1156
  putUpdateBorrower: (id, userId) => {
1105
- return API$v.put(`/transaction/${id}/user`, { user: userId });
1157
+ return API$z.put(`/transaction/${id}/user`, { user: userId });
1106
1158
  },
1107
1159
  postSendConfirmationEmail: (id) => {
1108
- return API$v.post(`/transaction/${id}/send-confirmation-email`);
1160
+ return API$z.post(`/transaction/${id}/send-confirmation-email`);
1109
1161
  },
1110
1162
  putVerifyRequests: (id, data) => {
1111
- return API$v.put(`/transaction/${id}/verify-requests`, data);
1163
+ return API$z.put(`/transaction/${id}/verify-requests`, data);
1112
1164
  },
1113
1165
  getBorrowingTransactionHistoryByTransaction: (params) => {
1114
- return API$v.get("/transaction/history/by-transaction", { params });
1166
+ return API$z.get("/transaction/history/by-transaction", { params });
1115
1167
  },
1116
1168
  getBorrowingTransactionHistoryByAsset: (params) => {
1117
- return API$v.get("/transaction/history/by-asset", { params });
1169
+ return API$z.get("/transaction/history/by-asset", { params });
1118
1170
  },
1119
1171
  getBorrowingTransactionHistoryOptions: (params) => {
1120
- return API$v.get("/transaction/history/options", { params });
1172
+ return API$z.get("/transaction/history/options", { params });
1121
1173
  },
1122
1174
  putBorrowingVerifyToken: (token) => {
1123
- return API$v.put("/transaction/verify-token", { token });
1175
+ return API$z.put("/transaction/verify-token", { token });
1124
1176
  },
1125
1177
  putBorrowingHandoverConfirmation: (data) => {
1126
- return API$v.put("/transaction/handover-confirmation", data);
1178
+ return API$z.put("/transaction/handover-confirmation", data);
1127
1179
  },
1128
1180
  putBorrowingHandover: (id) => {
1129
- return API$v.put(`/transaction/${id}/handover`);
1181
+ return API$z.put(`/transaction/${id}/handover`);
1130
1182
  },
1131
1183
  putBorrowingExtendRequest: (data) => {
1132
- return API$v.put("/transaction/request/extend", data);
1184
+ return API$z.put("/transaction/request/extend", data);
1133
1185
  },
1134
1186
  putBorrowingExtendApproval: (data) => {
1135
- return API$v.put("/approval/approve/request-extension", data, {
1187
+ return API$z.put("/approval/approve/request-extension", data, {
1136
1188
  params: { sourceWeb: true }
1137
1189
  });
1138
1190
  },
1139
1191
  putBorrowingDeclineExtendRequest: (id) => {
1140
- return API$v.put("/transaction/request/decline", { id });
1192
+ return API$z.put("/transaction/request/decline", { id });
1141
1193
  },
1142
1194
  getBorrowingBorrowedAsset: (params) => {
1143
- return API$v.get("/transaction/request/borrowed/by-asset", { params });
1195
+ return API$z.get("/transaction/request/borrowed/by-asset", { params });
1144
1196
  },
1145
1197
  getBorrowingBorrowedAssetOptions: (params) => {
1146
- return API$v.get("/transaction/request/borrowed/by-asset/options", {
1198
+ return API$z.get("/transaction/request/borrowed/by-asset/options", {
1147
1199
  params
1148
1200
  });
1149
1201
  },
1150
1202
  getBorrowingBorrowedBorrower: (params) => {
1151
- return API$v.get("/transaction/request/borrowed/by-user", { params });
1203
+ return API$z.get("/transaction/request/borrowed/by-user", { params });
1152
1204
  },
1153
1205
  putBorrowingReportDamaged: (id, data) => {
1154
- return API$v.put(`/transaction/request/${id}/damaged`, data);
1206
+ return API$z.put(`/transaction/request/${id}/damaged`, data);
1155
1207
  },
1156
1208
  putBorrowingReportMissing: (id, data) => {
1157
- return API$v.put(`/transaction/request/${id}/missing`, data);
1209
+ return API$z.put(`/transaction/request/${id}/missing`, data);
1158
1210
  },
1159
1211
  putBorrowingReturn: (id) => {
1160
- return API$v.put("/transaction/request/return", { id });
1212
+ return API$z.put("/transaction/request/return", { id });
1161
1213
  },
1162
1214
  getBorrowingLog: (id) => {
1163
- return API$v.get(`/transaction/request/${id}/transaction-log`);
1215
+ return API$z.get(`/transaction/request/${id}/transaction-log`);
1164
1216
  },
1165
1217
  putConfirmReportDone: (id, data) => {
1166
- return API$v.put(`/transaction/request/${id}/confirm-report-done`, data);
1218
+ return API$z.put(`/transaction/request/${id}/confirm-report-done`, data);
1167
1219
  },
1168
1220
  putCancelReportBulk: (id) => {
1169
- return API$v.put("/transaction/request/cancel-report", {
1221
+ return API$z.put("/transaction/request/cancel-report", {
1170
1222
  id
1171
1223
  });
1172
1224
  },
1173
1225
  putBorrowingEditExtension: (data) => {
1174
- return API$v.put("/transaction/request/duration", data);
1226
+ return API$z.put("/transaction/request/duration", data);
1175
1227
  },
1176
1228
  getApproval: (params) => {
1177
- return API$v.get("/approval", { params });
1229
+ return API$z.get("/approval", { params });
1178
1230
  },
1179
1231
  getApprovalOptions: (params) => {
1180
- return API$v.get("/approval/options", { params });
1232
+ return API$z.get("/approval/options", { params });
1181
1233
  },
1182
1234
  getApprovalTransactionRequest: (id, params) => {
1183
- return API$v.get(`/approval/transaction/${id}`, { params });
1235
+ return API$z.get(`/approval/transaction/${id}`, { params });
1184
1236
  },
1185
1237
  getApprovalTransactionRequestOptions: (id, params) => {
1186
- return API$v.get(`/approval/transaction/${id}/options`, { params });
1238
+ return API$z.get(`/approval/transaction/${id}/options`, { params });
1187
1239
  },
1188
1240
  putApprovalApprove: (data) => {
1189
- return API$v.put("/approval/approve", data, {
1241
+ return API$z.put("/approval/approve", data, {
1190
1242
  params: { sourceWeb: true }
1191
1243
  });
1192
1244
  }
1193
1245
  };
1194
- const API$u = createAxiosInstance({
1246
+ const API$y = createAxiosInstance({
1195
1247
  prefix: "/borrowing/v2"
1196
1248
  });
1197
1249
  const BorrowServicesGo = {
1198
1250
  ...BorrowServices,
1199
1251
  // Temporary inclusion of methods from OldBorrowServices. Move individual methods here once they are refactored and ready.
1200
1252
  getTransactions: async (params) => {
1201
- return API$u.get("/transaction", { params });
1253
+ return API$y.get("/transaction", { params });
1202
1254
  },
1203
1255
  getTransactionOptions: async (params) => {
1204
- return API$u.get("/transaction/options", { params });
1256
+ return API$y.get("/transaction/options", { params });
1205
1257
  },
1206
1258
  getTransactionLog: async (id) => {
1207
- return API$u.get(`/transaction/request/${id}/transaction-log`);
1259
+ return API$y.get(`/transaction/request/${id}/transaction-log`);
1208
1260
  },
1209
1261
  postTransaction: async (body) => {
1210
- return API$u.post("/transaction", body);
1262
+ return API$y.post("/transaction", body);
1211
1263
  },
1212
1264
  putTransaction: async (body) => {
1213
- return API$u.put("/transaction", body);
1265
+ return API$y.put("/transaction", body);
1214
1266
  },
1215
1267
  putTransactionReturn: async (requestIds) => {
1216
1268
  const body = { id: requestIds };
1217
- return API$u.put("/transaction/return", body);
1269
+ return API$y.put("/transaction/return", body);
1218
1270
  },
1219
1271
  putCancelReport: async (requestIds) => {
1220
1272
  const body = { id: requestIds };
1221
- return API$u.put("/transaction/request/cancel-report", body);
1273
+ return API$y.put("/transaction/request/cancel-report", body);
1222
1274
  }
1223
1275
  };
1224
- const API$t = createAxiosInstance({
1276
+ const API$x = createAxiosInstance({
1225
1277
  prefix: "/disposal/v2/"
1226
1278
  });
1227
1279
  const DisposalServices$1 = {
1228
1280
  getReportedDisposal: (params) => {
1229
- return API$t.get("/report", { params });
1281
+ return API$x.get("/report", { params });
1230
1282
  },
1231
1283
  getReportedDisposalOptions: (params) => {
1232
- return API$t.get("/report/options", { params });
1284
+ return API$x.get("/report/options", { params });
1233
1285
  },
1234
1286
  postReportDisposal: (body) => {
1235
- return API$t.post("/report", body);
1287
+ return API$x.post("/report", body);
1236
1288
  },
1237
1289
  deleteCancelReport: (params) => {
1238
1290
  params.isFromDisposal = "false";
1239
- return API$t.delete("/report/cancel-report", { params });
1291
+ return API$x.delete("/report/cancel-report", { params });
1240
1292
  },
1241
1293
  deleteDeclineReport: (params) => {
1242
1294
  params.isFromDisposal = "true";
1243
- return API$t.delete("/report/cancel-report", { params });
1295
+ return API$x.delete("/report/cancel-report", { params });
1244
1296
  },
1245
1297
  getDisposalHistory: (params) => {
1246
- return API$t.get("/transaction", { params });
1298
+ return API$x.get("/transaction", { params });
1247
1299
  },
1248
1300
  getHistoryByAssetOptions: (params) => {
1249
- return API$t.get("/transaction/options", { params });
1301
+ return API$x.get("/transaction/options", { params });
1250
1302
  },
1251
1303
  getDisposalTransactionLog: (requestId) => {
1252
- return API$t.get(`/transaction/request/${requestId}/transaction-log`);
1304
+ return API$x.get(`/transaction/request/${requestId}/transaction-log`);
1253
1305
  },
1254
1306
  postCreateTransaction: (body) => {
1255
- return API$t.post("/transaction", body);
1307
+ return API$x.post("/transaction", body);
1256
1308
  }
1257
1309
  };
1258
- const API$s = createAxiosInstance({
1310
+ const API$w = createAxiosInstance({
1259
1311
  prefix: "/report/v2/reports"
1260
1312
  });
1261
1313
  const ReportServices = {
1262
1314
  getReportList: (params) => {
1263
- return API$s.get("/schedules", { params });
1315
+ return API$w.get("/schedules", { params });
1264
1316
  },
1265
1317
  getReportSchedule: (scheduleId) => {
1266
- return API$s.get("/schedules/" + scheduleId);
1318
+ return API$w.get("/schedules/" + scheduleId);
1267
1319
  },
1268
1320
  getUniqueScheduleName: (name) => {
1269
- return API$s.get("/schedules/unique-name", { params: { name } });
1321
+ return API$w.get("/schedules/unique-name", { params: { name } });
1270
1322
  },
1271
1323
  getFilterOptions: (params) => {
1272
- return API$s.get("/schedules/options", { params });
1324
+ return API$w.get("/schedules/options", { params });
1273
1325
  },
1274
1326
  putSetActive: (body) => {
1275
- return API$s.put("/schedules/set-active", body);
1327
+ return API$w.put("/schedules/set-active", body);
1276
1328
  },
1277
1329
  putEditSchedule: (id, body) => {
1278
- return API$s.put(`/schedules/${id}`, body);
1330
+ return API$w.put(`/schedules/${id}`, body);
1279
1331
  },
1280
1332
  deleteReports: (id) => {
1281
- return API$s.delete("/schedules", { params: { id } });
1333
+ return API$w.delete("/schedules", { params: { id } });
1282
1334
  },
1283
1335
  postCreateSchedule: (data) => {
1284
- return API$s.post("/schedules", data);
1336
+ return API$w.post("/schedules", data);
1285
1337
  },
1286
1338
  postDownloadReport: (data) => {
1287
- return API$s.post("/download", data, { responseType: "arraybuffer" });
1339
+ return API$w.post("/download", data, { responseType: "arraybuffer" });
1288
1340
  },
1289
1341
  postGenerateReport: (data) => {
1290
- return API$s.post("/generate", data);
1342
+ return API$w.post("/generate", data);
1291
1343
  }
1292
1344
  };
1293
- const API$r = createAxiosInstance({
1345
+ const API$v = createAxiosInstance({
1294
1346
  prefix: "/settings-attribute/v2"
1295
1347
  });
1296
1348
  const getEndpoint = (type) => {
@@ -1298,111 +1350,111 @@ const getEndpoint = (type) => {
1298
1350
  };
1299
1351
  const GroupCategoryServices = {
1300
1352
  getGroupCategory: (type, params) => {
1301
- return API$r.get(`/${getEndpoint(type)}/tree`, { params });
1353
+ return API$v.get(`/${getEndpoint(type)}/tree`, { params });
1302
1354
  },
1303
1355
  getCategoryTree: () => {
1304
- return API$r.get("/category/tree");
1356
+ return API$v.get("/category/tree");
1305
1357
  },
1306
1358
  getGroupTree: (params) => {
1307
- return API$r.get("/groups/tree", { params });
1359
+ return API$v.get("/groups/tree", { params });
1308
1360
  },
1309
1361
  // Doesn't exist in company plan other than "Basic"
1310
1362
  getGroupCategoryList: (type, groupId, params) => {
1311
- return API$r.get(`/${getEndpoint(type)}/${groupId}`, { params });
1363
+ return API$v.get(`/${getEndpoint(type)}/${groupId}`, { params });
1312
1364
  },
1313
1365
  getNames: (type) => {
1314
- return API$r.get(`/${getEndpoint(type)}/names`);
1366
+ return API$v.get(`/${getEndpoint(type)}/names`);
1315
1367
  },
1316
1368
  getCodes: (type) => {
1317
- return API$r.get(`/${getEndpoint(type)}/codes`);
1369
+ return API$v.get(`/${getEndpoint(type)}/codes`);
1318
1370
  },
1319
1371
  postCreateGroupCategory: (type, body) => {
1320
- return API$r.post(`/${getEndpoint(type)}`, body);
1372
+ return API$v.post(`/${getEndpoint(type)}`, body);
1321
1373
  },
1322
1374
  putEditGroupCategory: (type, body, objectId) => {
1323
- return API$r.put(`/${getEndpoint(type)}/${objectId}`, body);
1375
+ return API$v.put(`/${getEndpoint(type)}/${objectId}`, body);
1324
1376
  },
1325
1377
  // Doesn't exist in company plan other than "Enterprise"
1326
1378
  putMoveGroup: (body, objectId) => {
1327
- return API$r.put(`/groups/${objectId}/move-group`, body);
1379
+ return API$v.put(`/groups/${objectId}/move-group`, body);
1328
1380
  },
1329
1381
  // Doesn't exist in company plan other than "Enterprise"
1330
1382
  putEditBulkGroups: async (body) => {
1331
- return API$r.put("/groups/bulk", body);
1383
+ return API$v.put("/groups/bulk", body);
1332
1384
  },
1333
1385
  deleteGroupCategory: (type, body, objectId) => {
1334
- return API$r.delete(`/${getEndpoint(type)}/${objectId}`, { data: body });
1386
+ return API$v.delete(`/${getEndpoint(type)}/${objectId}`, { data: body });
1335
1387
  }
1336
1388
  };
1337
- const API$q = createAxiosInstance({
1389
+ const API$u = createAxiosInstance({
1338
1390
  prefix: "/settings-attribute/v2/alias-code"
1339
1391
  });
1340
1392
  const AliasCodeServices = {
1341
1393
  getAliasCode: () => {
1342
- return API$q.get("/");
1394
+ return API$u.get("/");
1343
1395
  },
1344
1396
  postAliasCode: (data) => {
1345
- return API$q.post("/", data);
1397
+ return API$u.post("/", data);
1346
1398
  },
1347
1399
  getAliasCodeList: (params) => {
1348
- return API$q.get(`/${params.object}/code-list`, { params });
1400
+ return API$u.get(`/${params.object}/code-list`, { params });
1349
1401
  }
1350
1402
  };
1351
- const API$p = createAxiosInstance({
1403
+ const API$t = createAxiosInstance({
1352
1404
  prefix: "/settings-attribute/v2/general-settings"
1353
1405
  });
1354
1406
  const GeneralSettingsServices = {
1355
1407
  getGeneralSettings: () => {
1356
- return API$p.get("/");
1408
+ return API$t.get("/");
1357
1409
  },
1358
1410
  putUpdateGeneralSettings: (data) => {
1359
- return API$p.put("/", data);
1411
+ return API$t.put("/", data);
1360
1412
  }
1361
1413
  };
1362
- const API$o = createAxiosInstance({
1414
+ const API$s = createAxiosInstance({
1363
1415
  prefix: "/settings-attribute/v2/custom-field"
1364
1416
  });
1365
1417
  const CustomFieldServices = {
1366
1418
  getCustomField: async (params) => {
1367
- return API$o.get("/", { params });
1419
+ return API$s.get("/", { params });
1368
1420
  },
1369
1421
  getCustomFieldsByCategory: (category, params) => {
1370
- return API$o.get(`/${category}`, { params });
1422
+ return API$s.get(`/${category}`, { params });
1371
1423
  },
1372
1424
  getOptions: async (params) => {
1373
- return API$o.get("/options", { params });
1425
+ return API$s.get("/options", { params });
1374
1426
  },
1375
1427
  postCreateCustomField: async (params, data) => {
1376
- return API$o.post("/", data, { params });
1428
+ return API$s.post("/", data, { params });
1377
1429
  },
1378
1430
  putEditCustomField: async (params, data, id) => {
1379
- return API$o.put(`/${id}`, data, { params });
1431
+ return API$s.put(`/${id}`, data, { params });
1380
1432
  },
1381
1433
  putChangeStatus: async (params, data) => {
1382
- return API$o.put("/bulk", data, { params });
1434
+ return API$s.put("/bulk", data, { params });
1383
1435
  },
1384
1436
  deleteCustomField: async (params) => {
1385
- return API$o.delete("/bulk", { params });
1437
+ return API$s.delete("/bulk", { params });
1386
1438
  },
1387
1439
  getUsedCustomFields: async () => {
1388
- return API$o.get("/used-by-assets");
1440
+ return API$s.get("/used-by-assets");
1389
1441
  }
1390
1442
  };
1391
- const API$n = createAxiosInstance({
1443
+ const API$r = createAxiosInstance({
1392
1444
  prefix: "/settings-attribute/v2/asset-name-policy"
1393
1445
  });
1394
1446
  const AssetPolicyServices = {
1395
1447
  getList: (params) => {
1396
- return API$n.get("/", { params });
1448
+ return API$r.get("/", { params });
1397
1449
  },
1398
1450
  getListFilterOptions: (params) => {
1399
- return API$n.get("/options");
1451
+ return API$r.get("/options");
1400
1452
  },
1401
1453
  putUpdatePolicy: (body) => {
1402
- return API$n.put("/", body);
1454
+ return API$r.put("/", body);
1403
1455
  }
1404
1456
  };
1405
- const API$m = createAxiosInstance({
1457
+ const API$q = createAxiosInstance({
1406
1458
  prefix: "/settings-user-role/v2/auth"
1407
1459
  });
1408
1460
  const onRejected$1 = (error) => {
@@ -1417,10 +1469,10 @@ const onRejected$1 = (error) => {
1417
1469
  };
1418
1470
  const AuthServices$1 = {
1419
1471
  reLogin: (body) => {
1420
- API$m.interceptors.response.use((response) => {
1472
+ API$q.interceptors.response.use((response) => {
1421
1473
  return response;
1422
1474
  }, onRejected$1);
1423
- return API$m.post("/login", body);
1475
+ return API$q.post("/login", body);
1424
1476
  }
1425
1477
  };
1426
1478
  const DepreciationMethodAPI = createAxiosInstance({
@@ -1472,45 +1524,45 @@ const AccountingServices = {
1472
1524
  },
1473
1525
  // Account Code API Services
1474
1526
  getAccountCodeList: (params) => {
1475
- return AccountCodeAPI.get("/account-code", { params });
1527
+ return AccountCodeAPI.get("", { params });
1476
1528
  },
1477
1529
  deleteAccountCode: (id) => {
1478
- return AccountCodeAPI.delete("/account-code", {
1530
+ return AccountCodeAPI.delete("", {
1479
1531
  data: { id }
1480
1532
  });
1481
1533
  },
1482
1534
  createNewAccountCode: (body) => {
1483
- return AccountCodeAPI.post("/account-code", body);
1535
+ return AccountCodeAPI.post("", body);
1484
1536
  },
1485
1537
  editAccountCode: (body, id) => {
1486
- return AccountCodeAPI.put("/account-code/" + id, body);
1538
+ return AccountCodeAPI.put(`/${id}`, body);
1487
1539
  }
1488
1540
  };
1489
- const API$l = createAxiosInstance({
1541
+ const API$p = createAxiosInstance({
1490
1542
  env: "APP_TAGSAMURAI_API",
1491
1543
  prefix: "/settings-attribute/v2/asset-name"
1492
1544
  });
1493
1545
  const AssetNameServices = {
1494
1546
  getDropdown: (params) => {
1495
- return API$l.get("/dropdown", { params });
1547
+ return API$p.get("/dropdown", { params });
1496
1548
  },
1497
1549
  getAssetNameDetail: (id) => {
1498
- return API$l.get(`/${id}`);
1550
+ return API$p.get(`/${id}`);
1499
1551
  },
1500
1552
  getAssetsByAssetName: (id, params) => {
1501
- return API$l.get(`/${id}/list-asset`, { params });
1553
+ return API$p.get(`/${id}/list-asset`, { params });
1502
1554
  },
1503
1555
  getAssetNameList: (params) => {
1504
- return API$l.get("/", { params });
1556
+ return API$p.get("/", { params });
1505
1557
  },
1506
1558
  getUnpairedAssetName: (params) => {
1507
- return API$l.get("/unpaired", { params });
1559
+ return API$p.get("/unpaired", { params });
1508
1560
  },
1509
1561
  getOptions: (params) => {
1510
- return API$l.get("/options", { params });
1562
+ return API$p.get("/options", { params });
1511
1563
  }
1512
1564
  };
1513
- const API$k = createAxiosInstance({
1565
+ const API$o = createAxiosInstance({
1514
1566
  env: "APP_TAGSAMURAI_API",
1515
1567
  prefix: "/audit/v2"
1516
1568
  });
@@ -1520,100 +1572,100 @@ const API_IOT = createAxiosInstance({
1520
1572
  });
1521
1573
  const TaskServices = {
1522
1574
  getTaskList: (params) => {
1523
- return API$k.get("/audit/task", { params });
1575
+ return API$o.get("/audit/task", { params });
1524
1576
  },
1525
1577
  getTaskHistory: (params) => {
1526
- return API$k.get("/audit/task/history", { params });
1578
+ return API$o.get("/audit/task/history", { params });
1527
1579
  },
1528
1580
  extendAuditDuration: (body, id) => {
1529
- return API$k.put(`/audit/task/${id}/extend`, body);
1581
+ return API$o.put(`/audit/task/${id}/extend`, body);
1530
1582
  },
1531
1583
  stopAudit: (id, body) => {
1532
- return API$k.put(`/audit/task/${id}/stop`, body);
1584
+ return API$o.put(`/audit/task/${id}/stop`, body);
1533
1585
  },
1534
1586
  cancelAuditTask: (id) => {
1535
- return API$k.put(`/audit/task/${id}/cancel`);
1587
+ return API$o.put(`/audit/task/${id}/cancel`);
1536
1588
  },
1537
1589
  getTaskDetail: (id) => {
1538
- return API$k.get(`/audit/task/${id}`);
1590
+ return API$o.get(`/audit/task/${id}`);
1539
1591
  },
1540
1592
  getInAuditTask: (params) => {
1541
- return API$k.get("/audit/scheduled-asset/in-audit", { params });
1593
+ return API$o.get("/audit/scheduled-asset/in-audit", { params });
1542
1594
  },
1543
1595
  getTaskDetailAssets: (params, taskId) => {
1544
- return API$k.get(`/audit/task/${taskId}/view-asset-detail`, { params });
1596
+ return API$o.get(`/audit/task/${taskId}/view-asset-detail`, { params });
1545
1597
  },
1546
1598
  getAuditedTask: (params) => {
1547
- return API$k.get("/audit/scheduled-asset/audited", { params });
1599
+ return API$o.get("/audit/scheduled-asset/audited", { params });
1548
1600
  },
1549
1601
  getAuditLog: (id) => {
1550
- return API$k.get(`/audit/scheduled-asset/${id}/log`);
1602
+ return API$o.get(`/audit/scheduled-asset/${id}/log`);
1551
1603
  },
1552
1604
  getTaskEventLog: (params) => {
1553
- return API$k.get("/audit/task/task-event-log", { params });
1605
+ return API$o.get("/audit/task/task-event-log", { params });
1554
1606
  },
1555
1607
  getTaskTimelineEventLog: (idTask) => {
1556
- return API$k.get(`/audit/task/${idTask}/event-log`);
1608
+ return API$o.get(`/audit/task/${idTask}/event-log`);
1557
1609
  },
1558
1610
  scanAssetTAG: (body, idTask) => {
1559
- return API$k.put(`/audit/task/${idTask}/scan`, body);
1611
+ return API$o.put(`/audit/task/${idTask}/scan`, body);
1560
1612
  },
1561
1613
  submitAssetCondition: (body, idAsset) => {
1562
1614
  const headers = body.picture ? { "Content-Type": "multipart/form-data" } : { "Content-Type": "application/json" };
1563
- return API$k.put(`/audit/scheduled-asset/${idAsset}/update/condition`, body, {
1615
+ return API$o.put(`/audit/scheduled-asset/${idAsset}/update/condition`, body, {
1564
1616
  headers
1565
1617
  });
1566
1618
  },
1567
1619
  submitAuditedAsset: (idTask) => {
1568
- return API$k.put(`/audit/task/${idTask}/submit`);
1620
+ return API$o.put(`/audit/task/${idTask}/submit`);
1569
1621
  },
1570
1622
  reportTAGMissing: (note, idAsset) => {
1571
- return API$k.put(`/audit/scheduled-asset/${idAsset}/report-missing`, {
1623
+ return API$o.put(`/audit/scheduled-asset/${idAsset}/report-missing`, {
1572
1624
  note
1573
1625
  });
1574
1626
  },
1575
1627
  reportTAG: (id, body) => {
1576
- return API$k.put(`/audit/scheduled-asset/${id}/tag-reported`, body);
1628
+ return API$o.put(`/audit/scheduled-asset/${id}/tag-reported`, body);
1577
1629
  },
1578
1630
  getTaskInitialState: (idTask) => {
1579
- return API$k.get(`/audit/scheduled-asset/${idTask}`);
1631
+ return API$o.get(`/audit/scheduled-asset/${idTask}`);
1580
1632
  },
1581
1633
  cancelTaskReport: (scheduledAssetId) => {
1582
- return API$k.put(`/audit/scheduled-asset/${scheduledAssetId}/cancel-report`);
1634
+ return API$o.put(`/audit/scheduled-asset/${scheduledAssetId}/cancel-report`);
1583
1635
  }
1584
1636
  };
1585
1637
  const ScheduleServices = {
1586
1638
  getScheduleList: (params) => {
1587
- return API$k.get("/audit/schedule", { params });
1639
+ return API$o.get("/audit/schedule", { params });
1588
1640
  },
1589
1641
  getScheduleDetail: (id) => {
1590
- return API$k.get("/audit/schedule/" + id);
1642
+ return API$o.get("/audit/schedule/" + id);
1591
1643
  },
1592
1644
  deleteSchedule: (scheduleId) => {
1593
- return API$k.put("/audit/schedule/bulk-delete", {
1645
+ return API$o.put("/audit/schedule/bulk-delete", {
1594
1646
  id: scheduleId
1595
1647
  });
1596
1648
  },
1597
1649
  inactivateSchedule: (id) => {
1598
- return API$k.put("/audit/schedule/bulk-inactive", { id });
1650
+ return API$o.put("/audit/schedule/bulk-inactive", { id });
1599
1651
  },
1600
1652
  activateSchedule: (id) => {
1601
- return API$k.put("/audit/schedule/bulk-active", { id });
1653
+ return API$o.put("/audit/schedule/bulk-active", { id });
1602
1654
  },
1603
1655
  createNewSchedule: (body) => {
1604
- return API$k.post("/audit/schedule", body);
1656
+ return API$o.post("/audit/schedule", body);
1605
1657
  },
1606
1658
  editSchedule: (body, id) => {
1607
- return API$k.put("/audit/schedule/" + id, body);
1659
+ return API$o.put("/audit/schedule/" + id, body);
1608
1660
  },
1609
1661
  getActiveAsset: (id, params) => {
1610
- return API$k.get(`/audit/asset/schedule/${id}`, { params });
1662
+ return API$o.get(`/audit/asset/schedule/${id}`, { params });
1611
1663
  },
1612
1664
  setAssetActivation: (body) => {
1613
- return API$k.put("/audit/asset/activation", body);
1665
+ return API$o.put("/audit/asset/activation", body);
1614
1666
  },
1615
1667
  getAuditableAssetAmount: (params) => {
1616
- return API$k.get("/audit/asset/auditable/total-asset", { params });
1668
+ return API$o.get("/audit/asset/auditable/total-asset", { params });
1617
1669
  }
1618
1670
  };
1619
1671
  const IOTAuditServices = {
@@ -1627,17 +1679,17 @@ const IOTAuditServices = {
1627
1679
  return API_IOT.put(`/iot/audit/${auditId}`, body);
1628
1680
  },
1629
1681
  getReaderTotalAsset: (taskId, params) => {
1630
- return API$k.get(`/audit/task/${taskId}/reader/total-assets`, {
1682
+ return API$o.get(`/audit/task/${taskId}/reader/total-assets`, {
1631
1683
  params
1632
1684
  });
1633
1685
  },
1634
1686
  getAssetList: (params) => {
1635
- return API$k.get("/audit/scheduled-asset", { params });
1687
+ return API$o.get("/audit/scheduled-asset", { params });
1636
1688
  }
1637
1689
  };
1638
1690
  const FilterServices = {
1639
1691
  getFilterOptions: (path, params) => {
1640
- return API$k.get(`/${path}/options`, { params });
1692
+ return API$o.get(`/${path}/options`, { params });
1641
1693
  },
1642
1694
  getIOTFilterOptions: (path, params) => {
1643
1695
  return API_IOT.get(`/${path}/options`, { params });
@@ -1645,50 +1697,50 @@ const FilterServices = {
1645
1697
  };
1646
1698
  const AuditableAssetServices = {
1647
1699
  getAudiableAssetList: (params) => {
1648
- return API$k.get("/audit/asset/auditable", { params });
1700
+ return API$o.get("/audit/asset/auditable", { params });
1649
1701
  },
1650
1702
  getAuditableAssetDetail: (id) => {
1651
- return API$k.get("/audit/asset/auditable/" + id);
1703
+ return API$o.get("/audit/asset/auditable/" + id);
1652
1704
  }
1653
1705
  };
1654
1706
  const ApprovalServices = {
1655
1707
  getApprovalList: (idTask, approvalRound) => {
1656
- return API$k.get(`/audit/approval/task/${idTask}/transaction`, {
1708
+ return API$o.get(`/audit/approval/task/${idTask}/transaction`, {
1657
1709
  params: {
1658
1710
  approvalRound
1659
1711
  }
1660
1712
  });
1661
1713
  },
1662
1714
  getActiveApprovalList: (params) => {
1663
- return API$k.get("/audit/approval/active", { params });
1715
+ return API$o.get("/audit/approval/active", { params });
1664
1716
  },
1665
1717
  getHisotryApprovalList: (params) => {
1666
- return API$k.get("/audit/approval/history", { params });
1718
+ return API$o.get("/audit/approval/history", { params });
1667
1719
  },
1668
1720
  getTaskDetail: (id) => {
1669
- return API$k.get(`/audit/task/${id}`);
1721
+ return API$o.get(`/audit/task/${id}`);
1670
1722
  },
1671
1723
  getApprovalHistoryDetail: (idApproval) => {
1672
- return API$k.get(`/audit/approval/${idApproval}`);
1724
+ return API$o.get(`/audit/approval/${idApproval}`);
1673
1725
  },
1674
1726
  getApprovalAssetList: (params) => {
1675
- return API$k.get("/audit/scheduled-asset/audited", { params });
1727
+ return API$o.get("/audit/scheduled-asset/audited", { params });
1676
1728
  },
1677
1729
  submitApprovalAction: (body) => {
1678
- return API$k.put("/audit/approval/approve", body);
1730
+ return API$o.put("/audit/approval/approve", body);
1679
1731
  }
1680
1732
  };
1681
1733
  const AuditServices = {
1682
1734
  getAudit: (assetId, params) => {
1683
- return API$k.get(`/audit/schedule/asset-detail/${assetId}`, { params });
1735
+ return API$o.get(`/audit/schedule/asset-detail/${assetId}`, { params });
1684
1736
  },
1685
1737
  getAuditOption: (assetId, params) => {
1686
- return API$k.get(`/audit/schedule/asset-detail/${assetId}/options`, {
1738
+ return API$o.get(`/audit/schedule/asset-detail/${assetId}/options`, {
1687
1739
  params
1688
1740
  });
1689
1741
  },
1690
1742
  putSetActive: (body) => {
1691
- return API$k.put("/audit/asset/activation", body);
1743
+ return API$o.put("/audit/asset/activation", body);
1692
1744
  },
1693
1745
  ...TaskServices,
1694
1746
  ...ScheduleServices,
@@ -1697,54 +1749,16 @@ const AuditServices = {
1697
1749
  ...AuditableAssetServices,
1698
1750
  ...ApprovalServices
1699
1751
  };
1700
- const API$j = createAxiosInstance({
1752
+ const API$n = createAxiosInstance({
1701
1753
  env: "APP_TAGSAMURAI_API",
1702
1754
  prefix: "/settings-attribute/v2/brands"
1703
1755
  });
1704
1756
  const BrandServices = {
1705
1757
  getDropdown: (params) => {
1706
- return API$j.get("/dropdown", { params });
1758
+ return API$n.get("/dropdown", { params });
1707
1759
  }
1708
1760
  };
1709
- const API$i = createAxiosInstance({
1710
- prefix: "/v2",
1711
- env: "APP_LOGS_NOTIFICATION_API"
1712
- });
1713
- const ChangelogServices = {
1714
- getActionLog: (params) => {
1715
- return API$i.get("/change-log", { params });
1716
- },
1717
- getActionLogOption: (params) => {
1718
- return API$i.get("/change-log/options", { params });
1719
- },
1720
- getSessionLogList: (params) => {
1721
- return API$i.get("/session-log", { params });
1722
- },
1723
- getUserDetailSystemLogList: (params) => {
1724
- return API$i.get("/change-log", { params });
1725
- },
1726
- getUserDetailSystemLogOption: (params) => {
1727
- return API$i.get("/change-log/options", { params });
1728
- },
1729
- /**
1730
- * Retrieves the transaction log.
1731
- * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
1732
- */
1733
- getTransactionLog: (params) => {
1734
- return API$i.get("/transaction-log", { params });
1735
- },
1736
- /**
1737
- * Retrieves the transaction log options.
1738
- * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
1739
- */
1740
- getTransactionLogOption: (params) => {
1741
- return API$i.get("/transaction-log/options", { params });
1742
- },
1743
- postScanLog: (body) => {
1744
- return API$i.post("/transaction-log/scan-log", body);
1745
- }
1746
- };
1747
- const API$h = ({ headers = {}, params = {} } = {}) => {
1761
+ const API$m = ({ headers = {}, params = {} } = {}) => {
1748
1762
  const BASE_URL = getBaseURL("APP_COUNTRY_STATE_API");
1749
1763
  const API_KEY = getBaseURL("APP_COUNTRY_STATE_API_KEY");
1750
1764
  const instance = axios.create({
@@ -1760,28 +1774,28 @@ const API$h = ({ headers = {}, params = {} } = {}) => {
1760
1774
  };
1761
1775
  const CountryStateServices = {
1762
1776
  getCountry: () => {
1763
- return API$h().get("/countries");
1777
+ return API$m().get("/countries");
1764
1778
  },
1765
1779
  getState: (country) => {
1766
- return API$h().get(`/countries/${country}/states`);
1780
+ return API$m().get(`/countries/${country}/states`);
1767
1781
  },
1768
1782
  getCity: (country, state) => {
1769
- return API$h().get(`/countries/${country}/states/${state}/cities`);
1783
+ return API$m().get(`/countries/${country}/states/${state}/cities`);
1770
1784
  }
1771
1785
  };
1772
- const API$g = createAxiosInstance({
1786
+ const API$l = createAxiosInstance({
1773
1787
  env: "APP_TAGSAMURAI_API",
1774
1788
  prefix: "/dashboard/v2/dashboard"
1775
1789
  });
1776
1790
  const DashboardServices = {
1777
1791
  getLatestTask: (params) => {
1778
- return API$g.get("/latest-task", { params });
1792
+ return API$l.get("/latest-task", { params });
1779
1793
  },
1780
1794
  getSummary: (params) => {
1781
- return API$g.get("/summary", { params });
1795
+ return API$l.get("/summary", { params });
1782
1796
  }
1783
1797
  };
1784
- const API$f = createAxiosInstance({
1798
+ const API$k = createAxiosInstance({
1785
1799
  env: "APP_GLOBAL_SETTINGS_API",
1786
1800
  prefix: "/v1/global-settings/auth"
1787
1801
  });
@@ -1798,37 +1812,37 @@ const onRejected = (error) => {
1798
1812
  const AuthServices = {
1799
1813
  login: (form) => {
1800
1814
  const body = { ...form, isMobile: false };
1801
- return API$f.post("/login", body);
1815
+ return API$k.post("/login", body);
1802
1816
  },
1803
1817
  reLogin: (body) => {
1804
- API$f.interceptors.response.use((response) => {
1818
+ API$k.interceptors.response.use((response) => {
1805
1819
  return response;
1806
1820
  }, onRejected);
1807
- return API$f.post("/login", body);
1821
+ return API$k.post("/login", body);
1808
1822
  },
1809
1823
  requestOTP: (email) => {
1810
1824
  const body = { email };
1811
- return API$f.post("/request-otp", body);
1825
+ return API$k.post("/request-otp", body);
1812
1826
  },
1813
1827
  requestResetPassLink: (email) => {
1814
1828
  const body = { email };
1815
- return API$f.post("/request-reset-link", body);
1829
+ return API$k.post("/request-reset-link", body);
1816
1830
  },
1817
1831
  setPassword: (body) => {
1818
- return API$f.post("/set-password", body);
1832
+ return API$k.post("/set-password", body);
1819
1833
  },
1820
1834
  verifyToken: (token) => {
1821
- return API$f.get(`/verify-token/${token}`);
1835
+ return API$k.get(`/verify-token/${token}`);
1822
1836
  },
1823
1837
  confirmEmailChange: (token) => {
1824
1838
  const body = { token };
1825
- return API$f.put("/confirm-email-change/confirm", body);
1839
+ return API$k.put("/confirm-email-change/confirm", body);
1826
1840
  },
1827
1841
  postLogout: () => {
1828
- return API$f.post("/logout");
1842
+ return API$k.post("/logout");
1829
1843
  }
1830
1844
  };
1831
- const API$e = createAxiosInstance({
1845
+ const API$j = createAxiosInstance({
1832
1846
  env: "APP_ADMIN_API",
1833
1847
  prefix: "/settings-attribute/languages"
1834
1848
  });
@@ -1839,7 +1853,7 @@ const I18nService = {
1839
1853
  * @returns A promise resolving to a key-value record of messages.
1840
1854
  */
1841
1855
  getMessages: (isoCode) => {
1842
- return API$e.get(`/${isoCode}/translations`);
1856
+ return API$j.get(`/${isoCode}/translations`);
1843
1857
  },
1844
1858
  /**
1845
1859
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
@@ -1847,7 +1861,7 @@ const I18nService = {
1847
1861
  * @returns Promise Array of options
1848
1862
  */
1849
1863
  getLanguageOptions: async () => {
1850
- const { data } = await API$e.get("/dropdown");
1864
+ const { data } = await API$j.get("/dropdown");
1851
1865
  return data.data;
1852
1866
  },
1853
1867
  /**
@@ -1857,7 +1871,7 @@ const I18nService = {
1857
1871
  * @returns Promise LanguageMeta
1858
1872
  */
1859
1873
  getLanguageOptionMeta: async (isoCode) => {
1860
- const { data } = await API$e.get(
1874
+ const { data } = await API$j.get(
1861
1875
  "/dropdown/" + isoCode
1862
1876
  );
1863
1877
  return data.data;
@@ -1869,362 +1883,407 @@ const I18nService = {
1869
1883
  * @param locale Target locale code.
1870
1884
  */
1871
1885
  translateText: async (key, locale) => {
1872
- const { data } = await API$e.post("/translate", {
1886
+ const { data } = await API$j.post("/translate", {
1873
1887
  q: key,
1874
1888
  target: locale
1875
1889
  });
1876
1890
  return data.data.translations[key];
1877
1891
  }
1878
1892
  };
1879
- const API$d = createAxiosInstance({
1893
+ const API$i = createAxiosInstance({
1880
1894
  env: "APP_TAGSAMURAI_API",
1881
1895
  prefix: "/settings-attribute/v2/models"
1882
1896
  });
1883
1897
  const ModelTypeServices = {
1884
1898
  getDropdown: (params) => {
1885
- return API$d.get("/dropdown", { params });
1899
+ return API$i.get("/dropdown", { params });
1886
1900
  }
1887
1901
  };
1888
- const API$c = createAxiosInstance({
1902
+ const API$h = createAxiosInstance({
1889
1903
  prefix: "/v2",
1890
1904
  env: "APP_LOGS_NOTIFICATION_API"
1891
1905
  });
1892
1906
  const NotificationApprovalServices = {
1893
1907
  getTotalApprovals: () => {
1894
- return API$c.get("/approval/count");
1908
+ return API$h.get("/approval/count");
1895
1909
  }
1896
1910
  };
1897
- const API$b = createAxiosInstance({
1911
+ const ReaderAPI$1 = createAxiosInstance({
1898
1912
  prefix: "/iot/v2/reader"
1899
1913
  });
1914
+ const IOTAntennaAPI$1 = createAxiosInstance({
1915
+ prefix: "/iot/v2/iot/antenna"
1916
+ });
1917
+ const IOTReaderAPI$1 = createAxiosInstance({
1918
+ prefix: "/iot/v2/iot/reader"
1919
+ });
1900
1920
  const ReaderServices = {
1921
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader
1901
1922
  getIOTReaderList: (params) => {
1902
- return API$b.get("", { params: queryParamsStringfy(params) });
1923
+ return IOTReaderAPI$1.get("", { params: queryParamsStringfy(params) });
1903
1924
  },
1925
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/options
1904
1926
  getIOTReaderListOptions: (params) => {
1905
- return API$b.get("/options", { params });
1927
+ return IOTReaderAPI$1.get("/options", { params });
1906
1928
  },
1929
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/set-alias-name
1907
1930
  setIOTAliasName: (body) => {
1908
- return API$b.put("/set-alias-name", body);
1931
+ return IOTReaderAPI$1.put("/set-alias-name", body);
1909
1932
  },
1910
- getActivityLogData: (params) => {
1911
- return API$b.get("/activity-log", { params });
1933
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/ping
1934
+ pingIOTSingle: (id) => {
1935
+ return IOTReaderAPI$1.put(`/${id}/ping`);
1912
1936
  },
1913
- getActivityLogOptions: (params) => {
1914
- return API$b.get("/activity-log/options", { params });
1937
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/ping/bulk
1938
+ pingIOTBulk: (body) => {
1939
+ return IOTReaderAPI$1.put("/ping/bulk", body);
1940
+ },
1941
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
1942
+ setIOTAntennaPowerBulk: (id, body) => {
1943
+ return IOTReaderAPI$1.put(`/${id}/set-antenna-power`, body);
1944
+ },
1945
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/ports
1946
+ getIOTPortList: (id, params) => {
1947
+ return IOTReaderAPI$1.get(`/${id}/ports`, { params });
1948
+ },
1949
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id
1950
+ getIOTDetail: (id) => {
1951
+ return IOTReaderAPI$1.get(`/${id}`);
1952
+ },
1953
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/check-manager
1954
+ getIOTCheckManager: () => {
1955
+ return IOTReaderAPI$1.get("/check-manager");
1956
+ },
1957
+ //https://dev-api.tagsamurai.com/fam/iot/v2/reader/:id
1958
+ updateReader: (id, body) => {
1959
+ return ReaderAPI$1.put(`/${id}`, body);
1960
+ },
1961
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/set-status
1962
+ updateReaderStatus: (body) => {
1963
+ return IOTReaderAPI$1.put("/set-status", body);
1964
+ },
1965
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/set-status
1966
+ updateAntennaStatus: (body) => {
1967
+ return IOTAntennaAPI$1.put("/set-status", body);
1968
+ },
1969
+ setIOTPortGroup: (id, body) => {
1970
+ return IOTReaderAPI$1.put(`/${id}/set-port-group`, body);
1971
+ },
1972
+ setGroupIOT: (body) => {
1973
+ return IOTReaderAPI$1.put("/set-group", body);
1915
1974
  },
1916
1975
  getDataById: (id) => {
1917
- return API$b.get(`/${id}`);
1976
+ return IOTReaderAPI$1.get(`/${id}`);
1918
1977
  },
1919
1978
  getChangeLog: (params) => {
1920
- return API$b.get(`/${params.id}/change-log`, { params });
1979
+ return IOTReaderAPI$1.get(`/${params.id}/change-log`, { params });
1921
1980
  },
1922
1981
  getChangeLogOptions: (params) => {
1923
- return API$b.get(`/${params.id}/change-log/options`, { params });
1982
+ return IOTReaderAPI$1.get(`/${params.id}/change-log/options`, { params });
1924
1983
  },
1925
1984
  putData: (id, body) => {
1926
- return API$b.put(`/${id}`, body);
1985
+ return IOTReaderAPI$1.put(`/${id}`, body);
1927
1986
  }
1928
1987
  };
1929
- const API$a = createAxiosInstance({
1988
+ const API$g = createAxiosInstance({
1930
1989
  env: "APP_TAGSAMURAI_API",
1931
1990
  prefix: "/repair/v2"
1932
1991
  });
1933
1992
  const RepairServices = {
1934
1993
  getRepairList: (params) => {
1935
- return API$a.get("/my-asset/repair", { params });
1994
+ return API$g.get("/my-asset/repair", { params });
1936
1995
  },
1937
1996
  getFilterOptions: (params) => {
1938
- return API$a.get("/my-asset/repair/options", { params });
1997
+ return API$g.get("/my-asset/repair/options", { params });
1939
1998
  },
1940
1999
  getAssetRepairTicketing: (assetId, params) => {
1941
- return API$a.get(`/repair/${assetId}/asset-repair-detail`, { params });
2000
+ return API$g.get(`/repair/${assetId}/asset-repair-detail`, { params });
1942
2001
  },
1943
2002
  putConfirmRepair: (repairId) => {
1944
- return API$a.put(`/repair/${repairId}/confirm-repair`);
2003
+ return API$g.put(`/repair/${repairId}/confirm-repair`);
1945
2004
  }
1946
2005
  };
1947
- const API$9 = createAxiosInstance({
2006
+ const API$f = createAxiosInstance({
1948
2007
  env: "APP_TAGSAMURAI_API",
1949
2008
  prefix: "/routine/v2"
1950
2009
  });
1951
2010
  const RoutineServices = {
1952
2011
  getMaintenance: (assetId, params) => {
1953
- return API$9.get(`/routine-task/${assetId}`, { params });
2012
+ return API$f.get(`/routine-task/${assetId}`, { params });
1954
2013
  },
1955
2014
  getMaintenanceOption: (assetId, params) => {
1956
- return API$9.get(`/routine-task/${assetId}/options`, { params });
2015
+ return API$f.get(`/routine-task/${assetId}/options`, { params });
1957
2016
  },
1958
2017
  putSetActive: (body) => {
1959
- return API$9.put("/maintenable-asset/set-active", body);
2018
+ return API$f.put("/maintenable-asset/set-active", body);
1960
2019
  },
1961
2020
  getRoutineTask: (params) => {
1962
- return API$9.get("/routine-task", { params });
2021
+ return API$f.get("/routine-task", { params });
1963
2022
  },
1964
2023
  getRoutineTaskOptions: (params) => {
1965
- return API$9.get("/routine-task/options", { params });
2024
+ return API$f.get("/routine-task/options", { params });
1966
2025
  },
1967
2026
  getRoutineSchedule: (params) => {
1968
- return API$9.get("/routine-schedule", { params });
2027
+ return API$f.get("/routine-schedule", { params });
1969
2028
  },
1970
2029
  getRoutineScheduleOptions: (params) => {
1971
- return API$9.get("/routine-schedule/options", { params });
2030
+ return API$f.get("/routine-schedule/options", { params });
1972
2031
  },
1973
2032
  getRoutineTaskEventLog: (params) => {
1974
- return API$9.get("/routine-task/event-log", { params });
2033
+ return API$f.get("/routine-task/event-log", { params });
1975
2034
  },
1976
2035
  getRoutineTaskEventLogOptions: (params) => {
1977
- return API$9.get("/routine-task/event-log/options", { params });
2036
+ return API$f.get("/routine-task/event-log/options", { params });
1978
2037
  },
1979
2038
  getAssetName: (params) => {
1980
- return API$9.get("/asset-name", { params });
2039
+ return API$f.get("/asset-name", { params });
1981
2040
  },
1982
2041
  getAssetNameOptions: (params) => {
1983
- return API$9.get("/asset-name/options", { params });
2042
+ return API$f.get("/asset-name/options", { params });
1984
2043
  },
1985
2044
  postCreateRoutineSchedule: (data) => {
1986
- return API$9.post("/routine-schedule", data);
2045
+ return API$f.post("/routine-schedule", data);
1987
2046
  },
1988
2047
  postDuplicateRoutineSchedule: (id, data) => {
1989
- return API$9.post(`/routine-schedule/duplicate/${id}`, data);
2048
+ return API$f.post(`/routine-schedule/duplicate/${id}`, data);
1990
2049
  },
1991
2050
  putEditRoutineSchedule: (id, data) => {
1992
- return API$9.put(`/routine-schedule/${id}`, data);
2051
+ return API$f.put(`/routine-schedule/${id}`, data);
1993
2052
  },
1994
2053
  getUserStaff: (params) => {
1995
- return API$9.get("/user-transaction-role/maintenance-role/staff", { params });
2054
+ return API$f.get("/user-transaction-role/maintenance-role/staff", { params });
1996
2055
  },
1997
2056
  getUserStaffOptions: (params) => {
1998
- return API$9.get("/user-transaction-role/maintenance-role/staff/options", {
2057
+ return API$f.get("/user-transaction-role/maintenance-role/staff/options", {
1999
2058
  params
2000
2059
  });
2001
2060
  },
2002
2061
  getRoutineScheduleDetail: (id) => {
2003
- return API$9.get(`/routine-schedule/${id}`);
2062
+ return API$f.get(`/routine-schedule/${id}`);
2004
2063
  },
2005
2064
  deleteRoutineSchedule: (id) => {
2006
- return API$9.delete("/routine-schedule/bulk-delete", {
2065
+ return API$f.delete("/routine-schedule/bulk-delete", {
2007
2066
  params: {
2008
2067
  id: JSON.stringify(id)
2009
2068
  }
2010
2069
  });
2011
2070
  },
2012
2071
  putRoutineTaskCancel: (id) => {
2013
- return API$9.put("/routine-task/cancel", { id });
2072
+ return API$f.put("/routine-task/cancel", { id });
2014
2073
  },
2015
2074
  getMaintainableAsset: (params) => {
2016
- return API$9.get("/maintenable-asset", { params });
2075
+ return API$f.get("/maintenable-asset", { params });
2017
2076
  },
2018
2077
  getMaintainableAssetOptions: (params) => {
2019
- return API$9.get("/maintenable-asset/options", { params });
2078
+ return API$f.get("/maintenable-asset/options", { params });
2020
2079
  },
2021
2080
  getMaintenanceHistory: (params) => {
2022
- return API$9.get("/routine-task/history", { params });
2081
+ return API$f.get("/routine-task/history", { params });
2023
2082
  },
2024
2083
  getMaintenanceHistoryOptions: (params) => {
2025
- return API$9.get("/routine-task/history/options", { params });
2084
+ return API$f.get("/routine-task/history/options", { params });
2026
2085
  },
2027
2086
  getActiveAsset: (id) => {
2028
- return API$9.get(`/routine-schedule/${id}/assets`);
2087
+ return API$f.get(`/routine-schedule/${id}/assets`);
2029
2088
  },
2030
2089
  getActiveAssetOptions: (id, params) => {
2031
- return API$9.get(`/routine-schedule/${id}/assets/options`, { params });
2090
+ return API$f.get(`/routine-schedule/${id}/assets/options`, { params });
2032
2091
  },
2033
2092
  getRoutineTaskDetail: (id) => {
2034
- return API$9.get(`/routine-task/${id}/detail`);
2093
+ return API$f.get(`/routine-task/${id}/detail`);
2035
2094
  },
2036
2095
  getApproverList: (id, approvalRound) => {
2037
- return API$9.get(`/routine-task/${id}/approval-history`, {
2096
+ return API$f.get(`/routine-task/${id}/approval-history`, {
2038
2097
  params: {
2039
2098
  approvalRound
2040
2099
  }
2041
2100
  });
2042
2101
  },
2043
2102
  getReviewerList: (id) => {
2044
- return API$9.get(`/routine-task/${id}/review-history`);
2103
+ return API$f.get(`/routine-task/${id}/review-history`);
2045
2104
  },
2046
2105
  getMaintainableAssetDetail: (id) => {
2047
- return API$9.get(`/maintenable-asset/${id}`);
2106
+ return API$f.get(`/maintenable-asset/${id}`);
2048
2107
  },
2049
2108
  putSetActiveTasks: (id, isActive) => {
2050
- return API$9.put(`/maintenable-asset/${id}/set-tasks-active`, {
2109
+ return API$f.put(`/maintenable-asset/${id}/set-tasks-active`, {
2051
2110
  isActive
2052
2111
  });
2053
2112
  },
2054
2113
  putAssignStaff: (routineId, staffId) => {
2055
- return API$9.put(`/routine-task/${routineId}/assign-staff`, {
2114
+ return API$f.put(`/routine-task/${routineId}/assign-staff`, {
2056
2115
  id: staffId
2057
2116
  });
2058
2117
  },
2059
2118
  getServiceCenter: () => {
2060
- return API$9.get("/service-center/dropdown");
2119
+ return API$f.get("/service-center/dropdown");
2061
2120
  },
2062
2121
  putCompleteRoutineTask: (id, data) => {
2063
2122
  const headers = { "Content-Type": "multipart/form-data" };
2064
- return API$9.put(`/routine-task/${id}/completion`, data, { headers });
2123
+ return API$f.put(`/routine-task/${id}/completion`, data, { headers });
2065
2124
  },
2066
2125
  getApprovalDetail: (id) => {
2067
- return API$9.get(`/approval/${id}`);
2126
+ return API$f.get(`/approval/${id}`);
2068
2127
  },
2069
2128
  putApprovalApprove: (id, data) => {
2070
- return API$9.put(`/approval/${id}/approve`, data);
2129
+ return API$f.put(`/approval/${id}/approve`, data);
2071
2130
  },
2072
2131
  putReviewRoutine: (id, data) => {
2073
- return API$9.put(`/routine-task/${id}/review`, data);
2132
+ return API$f.put(`/routine-task/${id}/review`, data);
2074
2133
  },
2075
2134
  putUpdateRoutineTask: (id, data) => {
2076
- return API$9.put(`/routine-task/${id}/handle-overdue`, data);
2135
+ return API$f.put(`/routine-task/${id}/handle-overdue`, data);
2077
2136
  },
2078
2137
  getApproval: (params) => {
2079
- return API$9.get("/approval", { params });
2138
+ return API$f.get("/approval", { params });
2080
2139
  },
2081
2140
  getApprovalOptions: (params) => {
2082
- return API$9.get("/approval/options", { params });
2141
+ return API$f.get("/approval/options", { params });
2083
2142
  }
2084
2143
  };
2085
- const API$8 = createAxiosInstance({
2144
+ const API$e = createAxiosInstance({
2086
2145
  env: "APP_TAGSAMURAI_API",
2087
2146
  prefix: "/routine/v2"
2088
2147
  });
2089
2148
  const ServiceCenterServices = {
2090
2149
  getList: (params) => {
2091
- return API$8.get("/service-center", { params });
2150
+ return API$e.get("/service-center", { params });
2092
2151
  },
2093
2152
  postList: (body) => {
2094
- return API$8.post("/service-center", body);
2153
+ return API$e.post("/service-center", body);
2095
2154
  },
2096
2155
  putList: (id, body) => {
2097
- return API$8.put(`/service-center/${id}`, body);
2156
+ return API$e.put(`/service-center/${id}`, body);
2098
2157
  },
2099
2158
  putActivate: (body) => {
2100
- return API$8.put("/service-center/bulk", body);
2159
+ return API$e.put("/service-center/bulk", body);
2101
2160
  },
2102
2161
  getDetailList: (id) => {
2103
- return API$8.get(`/service-center/${id}`);
2162
+ return API$e.get(`/service-center/${id}`);
2104
2163
  },
2105
2164
  getListOptions: (params) => {
2106
- return API$8.get("/service-center/options", { params });
2165
+ return API$e.get("/service-center/options", { params });
2107
2166
  },
2108
2167
  deleteList: (params) => {
2109
- return API$8.delete("/service-center", { params });
2168
+ return API$e.delete("/service-center", { params });
2110
2169
  },
2111
2170
  // Activities
2112
2171
  getActivities: (params) => {
2113
- return API$8.get("/service-activities", { params });
2172
+ return API$e.get("/service-activities", { params });
2114
2173
  },
2115
2174
  getActivityOptions: (params) => {
2116
- return API$8.get("/service-activities/options", { params });
2175
+ return API$e.get("/service-activities/options", { params });
2117
2176
  },
2118
2177
  getActivityDetail: (id) => {
2119
- return API$8.get(`/service-activities/${id}`);
2178
+ return API$e.get(`/service-activities/${id}`);
2120
2179
  },
2121
2180
  getActivityLog: (id) => {
2122
- return API$8.get(`/service-activities/${id}/activity-log`);
2181
+ return API$e.get(`/service-activities/${id}/activity-log`);
2123
2182
  }
2124
2183
  };
2125
- const API$7 = createAxiosInstance({
2184
+ const API$d = createAxiosInstance({
2126
2185
  prefix: "/v2/session-log",
2127
2186
  env: "APP_LOGS_NOTIFICATION_API"
2128
2187
  });
2129
2188
  const SessionLogServices = {
2130
2189
  postLogout: () => {
2131
- return API$7.post("/logout");
2190
+ return API$d.post("/logout");
2132
2191
  }
2133
2192
  };
2134
- const API$6 = createAxiosInstance({
2193
+ const API$c = createAxiosInstance({
2135
2194
  env: "APP_TAGSAMURAI_API",
2136
2195
  prefix: "/tag/v2"
2137
2196
  });
2138
2197
  const TAGServices = {
2139
2198
  getScanQR: (tag) => {
2140
- return API$6.get("/qr", { params: { tag } });
2199
+ return API$c.get("/qr", { params: { tag } });
2141
2200
  },
2142
2201
  getScanRFID: (tag) => {
2143
- return API$6.get("/rfid", { params: { tag } });
2202
+ return API$c.get("/rfid", { params: { tag } });
2144
2203
  },
2145
2204
  getRFIDQRTAG: (params) => {
2146
- return API$6.get("/rfid-qr/scan", { params });
2205
+ return API$c.get("/rfid-qr/scan", { params });
2147
2206
  },
2148
2207
  getEventLog: (params) => {
2149
- return API$6.get("/tag-transaction/event-log", { params });
2208
+ return API$c.get("/tag-transaction/event-log", { params });
2150
2209
  },
2151
2210
  // Tab All
2152
2211
  getRfidQrAll: (path, params) => {
2153
- return API$6.get(`/${path}`, { params });
2212
+ return API$c.get(`/${path}`, { params });
2154
2213
  },
2155
2214
  // Tab Paired
2156
2215
  getRfidQrPaired: (tagType, viewBy, params) => {
2157
- return API$6.get(`/${tagType}/paired/${viewBy}`, { params });
2216
+ return API$c.get(`/${tagType}/paired/${viewBy}`, { params });
2158
2217
  },
2159
2218
  postAddTAGtoPrelist: (body, destination) => {
2160
- return API$6.post(`/prelist/${destination}/asset-name`, body);
2219
+ return API$c.post(`/prelist/${destination}/asset-name`, body);
2161
2220
  },
2162
2221
  postAddTAGtoReplacePrelist: (body) => {
2163
- return API$6.post("/prelist/replace-tag", body);
2222
+ return API$c.post("/prelist/replace-tag", body);
2164
2223
  },
2165
2224
  postAddTAGToPrelistUnpair: (body) => {
2166
- return API$6.post("/prelist/unpair-tag", body);
2225
+ return API$c.post("/prelist/unpair-tag", body);
2167
2226
  },
2168
2227
  postAddTAGtoPending: (body) => {
2169
- return API$6.post("/pending-changes", body);
2228
+ return API$c.post("/pending-changes", body);
2170
2229
  },
2171
2230
  // Available Tab
2172
2231
  getRFIDQrAvailable: (tagType, params) => {
2173
- return API$6.get(`/${tagType}/available`, { params });
2232
+ return API$c.get(`/${tagType}/available`, { params });
2174
2233
  },
2175
2234
  // Damaged TAB
2176
2235
  getRFIDQrDamaged: (tagType, params) => {
2177
- return API$6.get(`/${tagType}/damaged`, { params });
2236
+ return API$c.get(`/${tagType}/damaged`, { params });
2178
2237
  },
2179
2238
  // RFID and QR Module
2180
2239
  getRFIDandQRList: (params) => {
2181
- return API$6.get("/rfid-qr", { params });
2240
+ return API$c.get("/rfid-qr", { params });
2182
2241
  },
2183
2242
  deleteUnpairTAG: (body) => {
2184
- return API$6.delete("/rfid-qr", { data: { data: body } });
2243
+ return API$c.delete("/rfid-qr", { data: { data: body } });
2185
2244
  },
2186
2245
  postPairTAG: (body) => {
2187
- return API$6.post("/rfid-qr", { body: { data: body } });
2246
+ return API$c.post("/rfid-qr", { body: { data: body } });
2188
2247
  },
2189
2248
  // RFID To Be Returned
2190
2249
  getToBeReturnedTAGList: (params) => {
2191
- return API$6.get("/rfid/to-be-returned", { params });
2250
+ return API$c.get("/rfid/to-be-returned", { params });
2192
2251
  },
2193
2252
  // Handover TAG
2194
2253
  putHandoverTAG: (body) => {
2195
- return API$6.put("/rfid/handover", { body: { data: body } });
2254
+ return API$c.put("/rfid/handover", { body: { data: body } });
2196
2255
  },
2197
2256
  // Table Filter
2198
2257
  getFilterOptions: (path, params) => {
2199
- return API$6.get(`/${path}/options`, { params });
2258
+ return API$c.get(`/${path}/options`, { params });
2200
2259
  },
2201
2260
  getHolderListOptions: (params) => {
2202
- return API$6.get("/rfid/holder-list/options", { params });
2261
+ return API$c.get("/rfid/holder-list/options", { params });
2203
2262
  },
2204
2263
  getHolderList: (params) => {
2205
- return API$6.get("/rfid/holder-list", { params });
2264
+ return API$c.get("/rfid/holder-list", { params });
2206
2265
  },
2207
2266
  putAuditTAG: (body, tagType) => {
2208
- return API$6.put(`/${tagType}/audit`, body);
2267
+ return API$c.put(`/${tagType}/audit`, body);
2209
2268
  },
2210
2269
  postLogAudit: (body) => {
2211
- return API$6.post("/tag-transaction/log-audit", body);
2270
+ return API$c.post("/tag-transaction/log-audit", body);
2212
2271
  },
2213
2272
  postCreateQr: (amount) => {
2214
2273
  const body = { amount };
2215
- return API$6.post("/qr", body);
2274
+ return API$c.post("/qr", body);
2216
2275
  },
2217
2276
  putReportTAG: (id, body) => {
2218
- return API$6.put(`/tag-transaction/report/${id}`, body);
2277
+ return API$c.put(`/tag-transaction/report/${id}`, body);
2219
2278
  },
2220
2279
  putReportTAGBulk: (body) => {
2221
- return API$6.put("/tag-transaction/report/bulk", body);
2280
+ return API$c.put("/tag-transaction/report/bulk", body);
2222
2281
  },
2223
2282
  putDeclineReport: (body, tagType) => {
2224
- return API$6.put(`/report/decline-report/${tagType}`, body);
2283
+ return API$c.put(`/report/decline-report/${tagType}`, body);
2225
2284
  }
2226
2285
  };
2227
- const API$5 = createAxiosInstance({
2286
+ const API$b = createAxiosInstance({
2228
2287
  env: "APP_TAGSAMURAI_API",
2229
2288
  prefix: "/tracking/v2/tracking"
2230
2289
  });
@@ -2234,7 +2293,7 @@ const API_APPROVAL = createAxiosInstance({
2234
2293
  });
2235
2294
  const TrackingServices = {
2236
2295
  getTrackingDetail: (trackingId) => {
2237
- return API$5.get(`/${trackingId}`);
2296
+ return API$b.get(`/${trackingId}`);
2238
2297
  },
2239
2298
  putFoundAsset: (tag, groupId, serialNumber, type) => {
2240
2299
  const params = {
@@ -2243,26 +2302,26 @@ const TrackingServices = {
2243
2302
  serialNumber,
2244
2303
  type: type ?? "Global"
2245
2304
  };
2246
- return API$5.put("/scan", void 0, { params });
2305
+ return API$b.put("/scan", void 0, { params });
2247
2306
  },
2248
2307
  putReportPermanentlyMissing: (trackingId, body) => {
2249
- return API$5.put(`/report-permanently-missing/${trackingId}`, body);
2308
+ return API$b.put(`/report-permanently-missing/${trackingId}`, body);
2250
2309
  },
2251
2310
  putUpdateTrackingAsset: (id, body) => {
2252
2311
  const headers = { "Content-type": "multipart/form-data" };
2253
- return API$5.put(`/update/${id}`, body, { headers });
2312
+ return API$b.put(`/update/${id}`, body, { headers });
2254
2313
  },
2255
2314
  putMoveBack: (body) => {
2256
- return API$5.put("/tracking/move-back", body);
2315
+ return API$b.put("/tracking/move-back", body);
2257
2316
  },
2258
2317
  getTrackingList: (endpoint, params) => {
2259
- return API$5.get(endpoint, { params });
2318
+ return API$b.get(endpoint, { params });
2260
2319
  },
2261
2320
  getTrackingDetailByScan: (tag) => {
2262
- return API$5.get("/scan", { params: { tag } });
2321
+ return API$b.get("/scan", { params: { tag } });
2263
2322
  },
2264
2323
  getFilterOptions: (endPoint, params) => {
2265
- return API$5.get(endPoint + "/options", { params });
2324
+ return API$b.get(endPoint + "/options", { params });
2266
2325
  },
2267
2326
  getApproverList: (id) => {
2268
2327
  return API_APPROVAL.get(`/${id}/approval-history`);
@@ -2277,176 +2336,298 @@ const TrackingServices = {
2277
2336
  return API_APPROVAL.put("/approval", body);
2278
2337
  }
2279
2338
  };
2280
- const API$4 = createAxiosInstance({
2339
+ const API$a = createAxiosInstance({
2281
2340
  env: "APP_TAGSAMURAI_API",
2282
2341
  prefix: "/settings-attribute/v2/transaction-settings"
2283
2342
  });
2284
2343
  const TransactionSettingServices = {
2285
2344
  getData: () => {
2286
- return API$4.get("/");
2345
+ return API$a.get("/");
2287
2346
  },
2288
2347
  putData: (data) => {
2289
- return API$4.put("/", data);
2348
+ return API$a.put("/", data);
2290
2349
  }
2291
2350
  };
2292
- const API$3 = createAxiosInstance({
2351
+ const API$9 = createAxiosInstance({
2293
2352
  prefix: "/settings-attribute/v2/asset-name"
2294
2353
  });
2295
2354
  const SettingAssetNameServiceGo = {
2296
- getAssetNameList: (params) => API$3.get("", { params }),
2355
+ getAssetNameList: (params) => API$9.get("", { params }),
2356
+ postAssetNameList: (params) => {
2357
+ const body = buildBodyParams(params);
2358
+ return API$9.post("/list", body);
2359
+ },
2297
2360
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/options
2298
2361
  getAssetNameListOptions: (params) => {
2299
- return API$3.get("/options", { params });
2362
+ return API$9.get("/options", { params });
2363
+ },
2364
+ postAssetNameListOptions: (params) => {
2365
+ const body = buildBodyParams(params);
2366
+ return API$9.post("/list/options", body);
2300
2367
  },
2301
2368
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/dropdown
2302
2369
  getAssetNameDropdown: (params) => {
2303
- return API$3.get("/dropdown", { params });
2370
+ return API$9.get("/dropdown", { params });
2304
2371
  },
2305
2372
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/unpaired
2306
2373
  getAssetUnpairedNameList: (params) => {
2307
- return API$3.get("/unpaired", { params });
2374
+ return API$9.get("/unpaired", { params });
2308
2375
  },
2309
2376
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/unpaired/options
2310
2377
  getAssetUnpairedNameListOptions: (params) => {
2311
- return API$3.get("/unpaired/options", { params });
2378
+ return API$9.get("/unpaired/options", { params });
2312
2379
  },
2313
2380
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/:id
2314
2381
  getAssetNameDetail: (id) => {
2315
- return API$3.get(`/${id}`);
2382
+ return API$9.get(`/${id}`);
2316
2383
  },
2317
2384
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/:id/list-brand
2318
2385
  getAssetNameBrands: (id, params) => {
2319
- return API$3.get(`/${id}/list-brand`, { params });
2386
+ return API$9.get(`/${id}/list-brand`, { params });
2320
2387
  },
2321
2388
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/:id/list-asset
2322
2389
  getAssetNameAssets: (id, params) => {
2323
- return API$3.get(`/${id}/list-asset`, { params });
2390
+ return API$9.get(`/${id}/list-asset`, { params });
2324
2391
  },
2325
2392
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/:id/list-asset/options
2326
2393
  getAssetNameAssetsOptions: (id, params) => {
2327
- return API$3.get(`/${id}/list-asset/options`, { params });
2394
+ return API$9.get(`/${id}/list-asset/options`, { params });
2328
2395
  },
2329
2396
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/:id/list-brand/options
2330
2397
  getAssetNameBrandsOptions: (id, params) => {
2331
- return API$3.get(`/${id}/list-brand/options`, { params });
2398
+ return API$9.get(`/${id}/list-brand/options`, { params });
2332
2399
  },
2333
2400
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name
2334
2401
  createAssetName: (body) => {
2335
- return API$3.post("", body);
2402
+ return API$9.post("", body);
2336
2403
  },
2337
2404
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/depreciation-setting
2338
2405
  updateDepreciationSetting: (body) => {
2339
- return API$3.put("/depreciation-setting", body);
2406
+ return API$9.put("/depreciation-setting", body);
2340
2407
  },
2341
2408
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/set-tagtype
2342
2409
  setTagType: (body) => {
2343
- return API$3.put("/set-tagtype", body);
2410
+ return API$9.put("/set-tagtype", body);
2344
2411
  },
2345
2412
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name/:id
2346
2413
  updateAssetName: (body, id) => {
2347
- return API$3.put(`/${id}`, body);
2414
+ return API$9.put(`/${id}`, body);
2348
2415
  },
2349
2416
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/asset-name
2350
2417
  deleteAssetName: (body) => {
2351
- return API$3.delete("", {
2418
+ return API$9.delete("", {
2352
2419
  data: body
2353
2420
  });
2354
2421
  }
2355
2422
  };
2356
- const API$2 = createAxiosInstance({
2423
+ const API$8 = createAxiosInstance({
2357
2424
  prefix: "/settings-attribute/v2/brands"
2358
2425
  });
2359
2426
  const SettingBrandServiceGo = {
2360
2427
  getBrandList: (params) => {
2361
- return API$2.get("", { params });
2428
+ return API$8.get("", { params });
2429
+ },
2430
+ postBrandsList: (params) => {
2431
+ const body = buildBodyParams(params);
2432
+ return API$8.post("/list", body);
2362
2433
  },
2363
2434
  getBrandListOptionsFA: (params) => {
2364
- return API$2.get("/options", { params });
2435
+ return API$8.get("/options", { params });
2436
+ },
2437
+ postBrandListOptionsFA: (params) => {
2438
+ const body = buildBodyParams(params);
2439
+ return API$8.post("/list/options", body);
2365
2440
  },
2366
2441
  getBrandDropdown: (params) => {
2367
- return API$2.get("/dropdown", { params });
2442
+ return API$8.get("/dropdown", { params });
2368
2443
  },
2369
2444
  getBrandDetail: (id) => {
2370
- return API$2.get(`/${id}`);
2445
+ return API$8.get(`/${id}`);
2371
2446
  },
2372
2447
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands/:id/list-category
2373
2448
  getBrandListCategory: (id, params) => {
2374
- return API$2.get(`/${id}/list-category`, { params });
2449
+ return API$8.get(`/${id}/list-category`, { params });
2375
2450
  },
2376
2451
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands/:id/list-category/options
2377
2452
  getBrandListCategoryOptions: (id, params) => {
2378
- return API$2.get(`/${id}/list-category/options`, { params });
2453
+ return API$8.get(`/${id}/list-category/options`, { params });
2379
2454
  },
2380
2455
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands/:id/list-asset
2381
2456
  getBrandListAsset: (id, params) => {
2382
- return API$2.get(`/${id}/list-asset`, { params });
2457
+ return API$8.get(`/${id}/list-asset`, { params });
2383
2458
  },
2384
2459
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands/:id/list-asset/options
2385
2460
  getBrandListAssetOptions: (id, params) => {
2386
- return API$2.get(`/${id}/list-asset/options`, { params });
2461
+ return API$8.get(`/${id}/list-asset/options`, { params });
2387
2462
  },
2388
2463
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands
2389
2464
  createBrand: (body) => {
2390
- return API$2.post("", body);
2465
+ return API$8.post("", body);
2391
2466
  },
2392
2467
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands/assign-category
2393
2468
  brandAssignCategory: (body) => {
2394
- return API$2.put("/assign-category", body);
2469
+ return API$8.put("/assign-category", body);
2395
2470
  },
2396
2471
  brandUnassignCategory: (body) => {
2397
- return API$2.put("/unassign-category", body);
2472
+ return API$8.put("/unassign-category", body);
2398
2473
  },
2399
2474
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands/:id
2400
2475
  updateBrand: (body, id) => {
2401
- return API$2.put(`/${id}`, body);
2476
+ return API$8.put(`/${id}`, body);
2402
2477
  },
2403
2478
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/brands
2404
2479
  deleteBrand: (body) => {
2405
- return API$2.delete("", {
2480
+ return API$8.delete("", {
2406
2481
  data: body
2407
2482
  });
2408
2483
  }
2409
2484
  };
2410
- const API$1 = createAxiosInstance({
2485
+ const API$7 = createAxiosInstance({
2411
2486
  prefix: "/settings-attribute/v2/measurement"
2412
2487
  });
2413
2488
  const SettingMeasurementServiceGo = {
2414
2489
  getMeasurementList: (params) => {
2415
- return API$1.get("", { params });
2490
+ return API$7.get("", { params });
2416
2491
  },
2417
2492
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/measurement/dropdown
2418
2493
  getMeasurementDropdown: () => {
2419
- return API$1.get("/dropdown");
2494
+ return API$7.get("/dropdown");
2420
2495
  },
2421
2496
  createMeasurement: (body) => {
2422
- return API$1.post("", body);
2497
+ return API$7.post("", body);
2423
2498
  },
2424
2499
  updateMeasurement: (body, id) => {
2425
- return API$1.put(`/${id}`, body);
2500
+ return API$7.put(`/${id}`, body);
2426
2501
  },
2427
2502
  //https://dev-api.supply.tagsamurai.com/settings-attribute-go/v2/measurement
2428
2503
  deleteMeasurement: (body) => {
2429
- return API$1.delete("", {
2504
+ return API$7.delete("", {
2430
2505
  data: body
2431
2506
  });
2432
2507
  }
2433
2508
  };
2434
- const API = createAxiosInstance({
2509
+ const API$6 = createAxiosInstance({
2435
2510
  env: "APP_TAGSAMURAI_API",
2436
2511
  prefix: "/iot/v2/iot"
2437
2512
  });
2438
2513
  const IOTServices = {
2439
2514
  getReaderList: () => {
2440
- return API.get("/antenna/available");
2515
+ return API$6.get("/antenna/available");
2441
2516
  },
2442
2517
  getReaderOptions: (params) => {
2443
- return API.get("/reader/options", { params });
2518
+ return API$6.get("/reader/options", { params });
2444
2519
  },
2445
2520
  putSetScanParams: (body) => {
2446
- return API.put("/reader/set-scan-params", body);
2521
+ return API$6.put("/reader/set-scan-params", body);
2447
2522
  },
2448
2523
  putIOTTracking: (body) => {
2449
- return API.put("/tracking", body);
2524
+ return API$6.put("/tracking", body);
2525
+ },
2526
+ getActivityLogData: (params) => {
2527
+ return API$6.get("/activity-log", { params });
2528
+ },
2529
+ getActivityLogOptions: (params) => {
2530
+ return API$6.get("/activity-log/options", { params });
2531
+ }
2532
+ };
2533
+ const ReaderAPI = createAxiosInstance({
2534
+ prefix: "/iot/v2/reader"
2535
+ });
2536
+ const IOTAntennaAPI = createAxiosInstance({
2537
+ prefix: "/iot/v2/iot/antenna"
2538
+ });
2539
+ const IOTReaderAPI = createAxiosInstance({
2540
+ prefix: "/iot/v2/iot/reader"
2541
+ });
2542
+ const IOTActivityLogAPI = createAxiosInstance({
2543
+ prefix: "/iot/v2/iot/activity-log"
2544
+ });
2545
+ const IOTService = {
2546
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna
2547
+ getIOTAntennaList: (params) => {
2548
+ return IOTAntennaAPI.get("", { params: queryParamsStringfy(params) });
2549
+ },
2550
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/options
2551
+ getIOTAntennaListOptions: (params) => {
2552
+ return IOTAntennaAPI.get("/options", { params });
2553
+ },
2554
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/options
2555
+ getIOTReaderListOptions: (params) => {
2556
+ return IOTReaderAPI.get("/options", { params });
2557
+ },
2558
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader
2559
+ getIOTReaderList: (params) => {
2560
+ return IOTReaderAPI.get("", { params: queryParamsStringfy(params) });
2561
+ },
2562
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/activity-log
2563
+ getActivityLog: (params) => {
2564
+ return IOTActivityLogAPI.get("", { params });
2565
+ },
2566
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/activity-log/options
2567
+ getActivityLogOptions: (params) => {
2568
+ return IOTActivityLogAPI.get("/options", { params });
2569
+ },
2570
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/set-alias-name
2571
+ setIOTAliasName: (body) => {
2572
+ return IOTReaderAPI.put("/set-alias-name", body);
2573
+ },
2574
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/ping
2575
+ pingIOTSingle: (id) => {
2576
+ return IOTReaderAPI.put(`/${id}/ping`);
2577
+ },
2578
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/ping/bulk
2579
+ pingIOTBulk: (body) => {
2580
+ return IOTReaderAPI.put("/ping/bulk", body);
2581
+ },
2582
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
2583
+ setIOTAntennaPowerBulk: (id, body) => {
2584
+ return IOTReaderAPI.put(`/${id}/set-antenna-power`, body);
2585
+ },
2586
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/ports
2587
+ getIOTPortList: (id, params) => {
2588
+ return IOTReaderAPI.get(`/${id}/ports`, { params });
2589
+ },
2590
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id
2591
+ getIOTDetail: (id) => {
2592
+ return IOTReaderAPI.get(`/${id}`);
2593
+ },
2594
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/check-manager
2595
+ getIOTCheckManager: () => {
2596
+ return IOTReaderAPI.get("/check-manager");
2597
+ },
2598
+ //https://dev-api.tagsamurai.com/fam/iot/v2/reader/:id
2599
+ updateReader: (id, body) => {
2600
+ return ReaderAPI.put(`/${id}`, body);
2601
+ },
2602
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/set-status
2603
+ updateReaderStatus: (body) => {
2604
+ return IOTReaderAPI.put("/set-status", body);
2605
+ },
2606
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/set-status
2607
+ updateAntennaStatus: (body) => {
2608
+ return IOTAntennaAPI.put("/set-status", body);
2609
+ },
2610
+ setIOTPortGroup: (id, body) => {
2611
+ return IOTReaderAPI.put(`/${id}/set-port-group`, body);
2612
+ },
2613
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-port-status
2614
+ setIOTPortStatus: (id, body) => {
2615
+ return IOTReaderAPI.put(`/${id}/set-port-status`, body);
2616
+ },
2617
+ setGroupIOT: (body) => {
2618
+ return IOTReaderAPI.put("/set-group", body);
2619
+ },
2620
+ getDataById: (id) => {
2621
+ return IOTReaderAPI.get(`/${id}`);
2622
+ },
2623
+ getChangeLog: (params) => {
2624
+ return IOTReaderAPI.get(`/${params.id}/change-log`, { params });
2625
+ },
2626
+ getChangeLogOptions: (params) => {
2627
+ return IOTReaderAPI.get(`/${params.id}/change-log/options`, { params });
2628
+ },
2629
+ putData: (id, body) => {
2630
+ return IOTReaderAPI.put(`/${id}`, body);
2450
2631
  }
2451
2632
  };
2452
2633
  const ReportAPI = createAxiosInstance({
@@ -2564,9 +2745,375 @@ const DisposalServices = {
2564
2745
  return ApprovalAPI.put(`/approval-completion/${transactionId}`, body);
2565
2746
  }
2566
2747
  };
2748
+ const API$5 = createAxiosInstance({
2749
+ prefix: "/v2/planning-strategy"
2750
+ });
2751
+ const RiskRegisterServices = {
2752
+ getRisk: (params) => {
2753
+ return API$5.get("", { params });
2754
+ },
2755
+ getRiskLogs: (id) => {
2756
+ return API$5.get(`/risk-log/${id}`);
2757
+ },
2758
+ getRiskOptions: (params) => {
2759
+ return API$5.get("/options", { params });
2760
+ },
2761
+ getRiskReview: (id) => {
2762
+ return API$5.get(`/risk-review/${id}`);
2763
+ },
2764
+ postRisk: (data) => {
2765
+ return API$5.post("", data);
2766
+ },
2767
+ editRisk: (id, data) => {
2768
+ return API$5.put(`/${id}`, data);
2769
+ },
2770
+ cancelRisk: (id, data) => {
2771
+ return API$5.put(`/${id}/cancel`, data);
2772
+ },
2773
+ verifyRisk: (id, data) => {
2774
+ return API$5.put(`/${id}/verify`, data);
2775
+ },
2776
+ reopenRisk: (id, data) => {
2777
+ return API$5.put(`/${id}/reopen`, data);
2778
+ }
2779
+ };
2780
+ const API$4 = createAxiosInstance({
2781
+ prefix: "/v2/documents"
2782
+ });
2783
+ const DocumentServices = {
2784
+ getAllDocuments: (params) => {
2785
+ return API$4.get("", { params });
2786
+ },
2787
+ getDocumentOptions: (params) => {
2788
+ return API$4.get("/options", { params });
2789
+ },
2790
+ addDocument: (data) => {
2791
+ return API$4.post("", data);
2792
+ },
2793
+ editDocument: (id, data) => {
2794
+ return API$4.put(`/${id}`, data);
2795
+ },
2796
+ deleteDocument: (id) => {
2797
+ return API$4.delete("/bulk", { data: { ids: id } });
2798
+ },
2799
+ getDocumentFilterOptions: (params) => {
2800
+ return API$4.get("/filter-options", { params });
2801
+ }
2802
+ };
2803
+ const API$3 = createAxiosInstance({
2804
+ prefix: "/opportunity-register/v2"
2805
+ });
2806
+ const OpportunityRegisterServices = {
2807
+ getOpportunityRegisterActiveList: (params) => {
2808
+ return API$3.get("/active", { params: queryParamsStringfy(params) });
2809
+ },
2810
+ getOpportunityRegisterActiveListOptions: (params) => {
2811
+ return API$3.get("/active/options", { params });
2812
+ },
2813
+ getOpportunityRegisterClosedList: (params) => {
2814
+ return API$3.get("/closed", { params: queryParamsStringfy(params) });
2815
+ },
2816
+ getOpportunityRegisterClosedListOptions: (params) => {
2817
+ return API$3.get("/closed/options", { params });
2818
+ },
2819
+ getOpportunityRegisterActiveDetail: (opportunityId) => {
2820
+ return API$3.get(`/active/${opportunityId}`);
2821
+ },
2822
+ getOpportunityLogData: (opportunityId, params) => {
2823
+ return API$3.get(`/opportunity-log/${opportunityId}`, { params });
2824
+ },
2825
+ editActiveOpportunity: (opportunityId, body) => {
2826
+ return API$3.put(`/active/${opportunityId}`, body);
2827
+ },
2828
+ addActiveOpportunity: (body) => {
2829
+ return API$3.post("/active", body);
2830
+ },
2831
+ reviewOpportunityAction: (opportunityId, body) => {
2832
+ return API$3.post(`/active/${opportunityId}/review`, body);
2833
+ },
2834
+ cancelOpportunity: (opportunityId, body) => {
2835
+ return API$3.put(`/active/${opportunityId}/cancel`, body);
2836
+ }
2837
+ };
2838
+ const API$2 = createAxiosInstance({
2839
+ prefix: "/v2/continuous-improvement"
2840
+ });
2841
+ const ContinuousImprovementServices = {
2842
+ getContiniuousImprovementLogs: (params) => {
2843
+ return API$2.get("/logs", { params });
2844
+ },
2845
+ getLessonLearned: (params) => {
2846
+ return API$2.get("/lesson-learned", { params });
2847
+ },
2848
+ getAuditFindingsCorrectiveActions: (params) => {
2849
+ return API$2.get("/audit-findings", { params });
2850
+ },
2851
+ getLogOptions: (params) => {
2852
+ return API$2.get("/logs/options", { params });
2853
+ },
2854
+ getLessonLearnedOptions: (params) => {
2855
+ return API$2.get("/lesson-learned/options", { params });
2856
+ },
2857
+ getAuditFindingOptions: (params) => {
2858
+ return API$2.get("/audit-findings/options", { params });
2859
+ },
2860
+ getLogFilterOptions: (params) => {
2861
+ return API$2.get("/logs/filter-options", { params });
2862
+ },
2863
+ getLessonLearnedFilterOptions: (params) => {
2864
+ return API$2.get("/lesson-learned/filter-options", { params });
2865
+ },
2866
+ getAuditFindingFilterOptions: (params) => {
2867
+ return API$2.get("/audit-findings/filter-options", { params });
2868
+ },
2869
+ addLog: (data) => {
2870
+ return API$2.post("/logs", data);
2871
+ },
2872
+ editLog: (id, data) => {
2873
+ return API$2.put(`/logs/${id}`, data);
2874
+ },
2875
+ addLessonLearned: (data) => {
2876
+ return API$2.post("/lesson-learned", data);
2877
+ },
2878
+ editLessonLearned: (id, data) => {
2879
+ return API$2.put(`/lesson-learned/${id}`, data);
2880
+ },
2881
+ addAuditFinding: (data) => {
2882
+ return API$2.post("/audit-findings", data);
2883
+ },
2884
+ editAuditFinding: (id, data) => {
2885
+ return API$2.put(`/audit-findings/${id}`, data);
2886
+ },
2887
+ cancelImprovement: (id, payload) => {
2888
+ return API$2.put(`/cancel-improvement/${id}`, payload);
2889
+ },
2890
+ reviewImprovement: (id, payload) => {
2891
+ return API$2.put(`/review-improvement/${id}`, payload);
2892
+ },
2893
+ updateLessonLearnedStatus: (id, payload) => {
2894
+ return API$2.put(`/lesson-learned/status/${id}`, payload);
2895
+ },
2896
+ reviewAuditFinding: (id, payload) => {
2897
+ return API$2.put(`/review-audit-finding/${id}`, payload);
2898
+ }
2899
+ };
2900
+ const API$1 = createAxiosInstance({ prefix: "/planning-strategy/amp" });
2901
+ const AmpManagementServices = {
2902
+ getAmpActive(params) {
2903
+ return API$1.post(`/active/list`, { params });
2904
+ },
2905
+ getAmpActiveFilterOptions(params) {
2906
+ return API$1.post(`/active/options`, { params });
2907
+ },
2908
+ getAmpPrevious(params) {
2909
+ return API$1.post(`/previous-version/list`, { params });
2910
+ },
2911
+ getAmpPreviousFilterOptions(params) {
2912
+ return API$1.post(`/previous-version/options`, { params });
2913
+ },
2914
+ initAmp() {
2915
+ return API$1.post("");
2916
+ },
2917
+ submitAmp(ampId, payload) {
2918
+ return API$1.patch(`/${ampId}`, payload);
2919
+ },
2920
+ getAmpDetail(ampId) {
2921
+ return API$1.get(`/${ampId}`);
2922
+ },
2923
+ deleteAmp(params) {
2924
+ return API$1.delete("", { params });
2925
+ },
2926
+ getSampDropdown() {
2927
+ return API$1.get(`/samp/dropdown`);
2928
+ },
2929
+ getDemandPerformanceRequirement(ampId, params) {
2930
+ return API$1.post(`/${ampId}/demand-and-performance-requirements/list`, {
2931
+ params
2932
+ });
2933
+ },
2934
+ createDemandPerformanceRequirement(ampId, payload) {
2935
+ return API$1.post(`/${ampId}/demand-and-performance-requirements`, payload);
2936
+ },
2937
+ editDemandPerformanceRequirement(ampId, payload) {
2938
+ return API$1.patch(`/${ampId}/demand-and-performance-requirements`, payload);
2939
+ },
2940
+ deleteDemandPerformanceRequirement(ampId, params) {
2941
+ return API$1.delete(`/${ampId}/demand-and-performance-requirements`, {
2942
+ params
2943
+ });
2944
+ },
2945
+ getLifecycleManagementPlan(ampId, params) {
2946
+ return API$1.post(`/${ampId}/lifecycle-management-plan/list`, { params });
2947
+ },
2948
+ getLifecycleManagementPlanOptions(ampId, payload) {
2949
+ return API$1.post(`/${ampId}/lifecycle-management-plan/options`, payload);
2950
+ },
2951
+ createLifecycleManagementPlan(ampId, payload) {
2952
+ return API$1.post(`/${ampId}/lifecycle-management-plan`, payload);
2953
+ },
2954
+ editLifecycleManagementPlan(ampId, payload) {
2955
+ return API$1.patch(`/${ampId}/lifecycle-management-plan`, payload);
2956
+ },
2957
+ deleteLifecycleManagementPlan(ampId, params) {
2958
+ return API$1.delete(`${ampId}/lifecycle-management-plan`, { params });
2959
+ },
2960
+ getResourceBudgetPlan(ampId, params) {
2961
+ return API$1.post(`/${ampId}/resource-budget-plan/list`, { params });
2962
+ },
2963
+ createResourceBudgetPlan(ampId, payload) {
2964
+ return API$1.post(`/${ampId}/resource-budget-plan`, payload);
2965
+ },
2966
+ editResourceBudgetPlan(ampId, payload) {
2967
+ return API$1.patch(`/${ampId}/resource-budget-plan`, payload);
2968
+ },
2969
+ deleteResourceBudgetPlan(ampId, params) {
2970
+ return API$1.delete(`/${ampId}/resource-budget-plan`, { params });
2971
+ }
2972
+ };
2973
+ const API = createAxiosInstance({
2974
+ prefix: "/planning-strategy/samp"
2975
+ });
2976
+ const SAMPServices = {
2977
+ getActiveSAMP: (params) => {
2978
+ return API.post("/active/list", params);
2979
+ },
2980
+ getActiveSAMPOptions: (params) => {
2981
+ return API.post("/active/options", params);
2982
+ },
2983
+ getPreviousVersionSAMP: (params) => {
2984
+ return API.post("/previous-version/list", params);
2985
+ },
2986
+ getPreviousSAMPOptions: (params) => {
2987
+ return API.post("/previous-version/options", params);
2988
+ },
2989
+ initSAMP: () => {
2990
+ return API.post("/init");
2991
+ },
2992
+ saveSubmitSAMP: (data, sampId) => {
2993
+ return API.patch(`/${sampId}`, data);
2994
+ },
2995
+ getDetailSAMP: (sampId) => {
2996
+ return API.get(`/${sampId}`);
2997
+ },
2998
+ deleteSAMP: (params) => {
2999
+ return API.delete("", { params });
3000
+ },
3001
+ cancelSAMPCreate: (sampId) => {
3002
+ return API.delete(`/${sampId}/cancel`);
3003
+ },
3004
+ getInternalContextData: (params, sampId) => {
3005
+ return API.post(`${sampId}/internal-context/list`, params);
3006
+ },
3007
+ postInternalContext: (data, sampId) => {
3008
+ return API.post(`${sampId}/internal-context`, data);
3009
+ },
3010
+ editInternalContext: (contextId, data, sampId) => {
3011
+ return API.patch(`${sampId}/internal-context/${contextId}`, data);
3012
+ },
3013
+ deleteInternalContext: (params, sampId) => {
3014
+ return API.delete(`${sampId}/internal-context`, { params });
3015
+ },
3016
+ getExternalContextData: (params, sampId) => {
3017
+ return API.post(`${sampId}/external-context/list`, params);
3018
+ },
3019
+ postExternalContext: (data, sampId) => {
3020
+ return API.post(`${sampId}/external-context`, data);
3021
+ },
3022
+ editExternalContext: (contextId, data, sampId) => {
3023
+ return API.patch(`${sampId}/external-context/${contextId}`, data);
3024
+ },
3025
+ deleteExternalContext: (params, sampId) => {
3026
+ return API.delete(`${sampId}/external-context`, { params });
3027
+ },
3028
+ getStakeholders: (params, sampId) => {
3029
+ return API.post(`${sampId}/stakeholders/list`, params);
3030
+ },
3031
+ postStakeholders: (data, sampId) => {
3032
+ return API.post(`${sampId}/stakeholders`, data);
3033
+ },
3034
+ editStakeholders: (stakeholderId, data, sampId) => {
3035
+ return API.patch(`${sampId}/stakeholders/${stakeholderId}`, data);
3036
+ },
3037
+ deleteStakeholders: (params, sampId) => {
3038
+ return API.delete(`${sampId}/stakeholders`, { params });
3039
+ },
3040
+ getRolesResponsibility: (params, sampId) => {
3041
+ return API.post(`${sampId}/roles-and-responsibility/list`, params);
3042
+ },
3043
+ postRolesResponsibility: (data, sampId) => {
3044
+ return API.post(`${sampId}/roles-and-responsibility`, data);
3045
+ },
3046
+ editRolesResponsibility: (rolesResId, data, sampId) => {
3047
+ return API.patch(`${sampId}/roles-and-responsibility/${rolesResId}`, data);
3048
+ },
3049
+ deleteRolesResponsibility: (params, sampId) => {
3050
+ return API.delete(`${sampId}/roles-and-responsibility`, { params });
3051
+ },
3052
+ getSupportingSystemTools: (params, sampId) => {
3053
+ return API.post(`${sampId}/supporting-system-tools/list`, params);
3054
+ },
3055
+ postSupportingSystemTools: (data, sampId) => {
3056
+ return API.post(`${sampId}/supporting-system-tools`, data);
3057
+ },
3058
+ editSupportingSystemTools: (toolsId, data, sampId) => {
3059
+ return API.patch(`${sampId}/supporting-system-tools/${toolsId}`, data);
3060
+ },
3061
+ deleteSupportingSystemTools: (params, sampId) => {
3062
+ return API.delete(`${sampId}/supporting-system-tools`, { params });
3063
+ },
3064
+ getAMObjectives: (params, sampId) => {
3065
+ return API.post(`${sampId}/am-objective/list`, params);
3066
+ },
3067
+ getAMObjectivesOptions: (params, sampId) => {
3068
+ return API.post(`${sampId}/am-objective/options`, params);
3069
+ },
3070
+ postAMObjectives: (data, sampId) => {
3071
+ return API.post(`${sampId}/am-objective`, data);
3072
+ },
3073
+ editAMObjectives: (objectiveId, data, sampId) => {
3074
+ return API.put(`${sampId}/am-objective/${objectiveId}`, data);
3075
+ },
3076
+ deleteAMObjectives: (params, sampId) => {
3077
+ return API.delete(`${sampId}/am-objective`, { params });
3078
+ },
3079
+ getRisk: (params, sampId) => {
3080
+ return API.post(`${sampId}/strategic-risk-register/list`, params);
3081
+ },
3082
+ getRiskOptions: (params, sampId) => {
3083
+ return API.post(`${sampId}/strategic-risk-register/options`, params);
3084
+ },
3085
+ postRisk: (data, sampId) => {
3086
+ return API.post(`${sampId}/strategic-risk-register`, data);
3087
+ },
3088
+ editRisk: (riskId, data, sampId) => {
3089
+ return API.put(`${sampId}/strategic-risk-register/${riskId}`, data);
3090
+ },
3091
+ deleteRisk: (params, sampId) => {
3092
+ return API.delete(`${sampId}/strategic-risk-register`, { params });
3093
+ },
3094
+ getOpportunity: (params, sampId) => {
3095
+ return API.post(`${sampId}/strategic-opportunity-register/list`, params);
3096
+ },
3097
+ getOpportunityOptions: (params, sampId) => {
3098
+ return API.post(`${sampId}/strategic-opportunity-register/options`, params);
3099
+ },
3100
+ postOpportunity: (data, sampId) => {
3101
+ return API.post(`${sampId}/strategic-opportunity-register`, data);
3102
+ },
3103
+ editOpportunity: (opportunityId, data, sampId) => {
3104
+ return API.put(
3105
+ `${sampId}/strategic-opportunity-register/${opportunityId}`,
3106
+ data
3107
+ );
3108
+ },
3109
+ deleteOpportunity: (params, sampId) => {
3110
+ return API.delete(`${sampId}/strategic-opportunity-register`, { params });
3111
+ }
3112
+ };
2567
3113
  export {
2568
3114
  AccountingServices,
2569
3115
  AliasCodeServices,
3116
+ AmpManagementServices,
2570
3117
  AssetNameServices,
2571
3118
  AssetPolicyServices,
2572
3119
  AssetServices,
@@ -2576,11 +3123,13 @@ export {
2576
3123
  BorrowServicesGo as BorrowServices,
2577
3124
  BrandServices,
2578
3125
  ChangelogServices,
3126
+ ContinuousImprovementServices,
2579
3127
  CountryStateServices,
2580
3128
  CustomFieldServices,
2581
3129
  DamageServices,
2582
3130
  DashboardServices,
2583
3131
  DisposalServices$1 as DisposalServices,
3132
+ DocumentServices,
2584
3133
  FileManagerServices,
2585
3134
  GeneralSettingsServices,
2586
3135
  AuthServices as GlobalAuthServices,
@@ -2589,19 +3138,24 @@ export {
2589
3138
  IOTServices,
2590
3139
  ImportServices,
2591
3140
  LicenseServices,
2592
- ChangelogServices$1 as LogServices,
3141
+ ChangelogServices as LogServices,
2593
3142
  MissingServices,
2594
3143
  ModelTypeServices,
2595
3144
  MyAssetServices,
3145
+ ChangelogServices as NewChangelogServices,
3146
+ IOTService as NewIOTServices,
2596
3147
  NotificationApprovalServices,
2597
3148
  NotificationServices,
2598
3149
  DisposalServices as OldDisposalServices,
2599
3150
  OpenAPIServices,
3151
+ OpportunityRegisterServices,
2600
3152
  ReaderServices,
2601
3153
  RepairServices,
2602
3154
  ReportServices,
3155
+ RiskRegisterServices,
2603
3156
  RoleServices,
2604
3157
  RoutineServices,
3158
+ SAMPServices,
2605
3159
  ServiceCenterServices,
2606
3160
  SessionLogServices,
2607
3161
  SettingAssetNameServiceGo as SettingAssetNameService,
@@ -2613,6 +3167,9 @@ export {
2613
3167
  TransactionSettingServices,
2614
3168
  TransferServicesGo as TransferServices,
2615
3169
  UserServices,
3170
+ buildFileURL,
3171
+ downloadFile,
3172
+ fetchBlobFile,
2616
3173
  getAssetsFile,
2617
3174
  getBaseURL,
2618
3175
  getImageURL,