@tagsamurai/fats-api-services 1.0.3-alpha.12 → 1.0.3-alpha.121

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