@tagsamurai/fats-api-services 1.0.0-alpha.184 → 1.0.0-alpha.185

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.
@@ -1,13 +1,13 @@
1
- import $t from "axios";
2
- const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_ADMIN_API: "https://dev-admin-api.tagsamurai.com", VITE_APP_API: "https://dev-api.tagsamurai.com", VITE_APP_ASSETS_URL: "https://assets.tagsamurai.com", VITE_APP_COUNTRY_STATE_API: "https://api.countrystatecity.in", VITE_APP_COUNTRY_STATE_API_KEY: "ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==", VITE_APP_GLOBAL_SETTINGS_API: "https://dev-api.global-settings.tagsamurai.com", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, k = (t = "APP_API") => yt["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: a = "", headers: S = {}, ..._ } = t, mt = `${k(r)}${a}`, at = JSON.parse(localStorage.getItem("user") ?? "{}"), vt = at.jwt ?? at.token ?? "";
4
- return $t.create({
5
- ..._,
6
- baseURL: mt,
7
- headers: e ? S : {
1
+ import mt from "axios";
2
+ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_ADMIN_API: "https://dev-admin-api.tagsamurai.com", VITE_APP_API: "https://dev-api.tagsamurai.com", VITE_APP_ASSETS_URL: "https://assets.tagsamurai.com", VITE_APP_COUNTRY_STATE_API: "https://api.countrystatecity.in", VITE_APP_COUNTRY_STATE_API_KEY: "ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==", VITE_APP_GLOBAL_SETTINGS_API: "https://dev-api.global-settings.tagsamurai.com", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, _ = (t = "APP_API") => St["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: a = "", headers: f = {}, ...E } = t, vt = `${_(r)}${a}`, it = JSON.parse(localStorage.getItem("user") ?? "{}"), yt = it.jwt ?? it.token ?? "";
4
+ return mt.create({
5
+ ...E,
6
+ baseURL: vt,
7
+ headers: e ? f : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${vt}`,
10
- ...S
9
+ Authorization: `Bearer ${yt}`,
10
+ ...f
11
11
  }
12
12
  });
13
13
  }, wt = (t) => {
@@ -21,113 +21,113 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, ht = (t, e, r) => {
24
+ }, qt = (t, e, r) => {
25
25
  if (!t) return;
26
- const a = k("APP_API"), S = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
26
+ const a = _("APP_API"), f = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
28
- const _ = new URLSearchParams();
29
- return e && (_.set("width", e.toString()), _.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${S}?${_.toString()}`;
28
+ const E = new URLSearchParams();
29
+ return e && (E.set("width", e.toString()), E.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${f}?${E.toString()}`;
30
30
  }
31
- return S;
32
- }, qt = (t) => {
31
+ return f;
32
+ }, Bt = (t) => {
33
33
  if (!t) return;
34
- const e = k("APP_TAGSAMURAI_API");
34
+ const e = _("APP_TAGSAMURAI_API");
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, Bt = async (t, e = "excel") => await fetch(
37
- `${k("APP_ASSETS_URL")}/${e}/${t}`
38
- ), f = s({
36
+ }, Gt = async (t, e = "excel") => await fetch(
37
+ `${_("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), P = s({
39
39
  prefix: "/settings-attribute/v2",
40
40
  env: "APP_TAGSAMURAI_API"
41
- }), Gt = {
41
+ }), xt = {
42
42
  getGroupCategory: (t, e) => {
43
43
  const r = t === "category" ? t : "groups";
44
- return f.get(`/${r}/tree`, { params: e });
44
+ return P.get(`/${r}/tree`, { params: e });
45
45
  },
46
46
  getGroupCategoryList: (t, e, r) => {
47
47
  const a = t === "category" ? t : "groups";
48
- return f.get(`/${a}/${e}`, { params: r });
48
+ return P.get(`/${a}/${e}`, { params: r });
49
49
  },
50
50
  getNames: (t) => {
51
51
  const e = t === "category" ? t : "groups";
52
- return f.get(`/${e}/names`);
52
+ return P.get(`/${e}/names`);
53
53
  },
54
54
  getCodes: (t) => {
55
55
  const e = t === "category" ? t : "groups";
56
- return f.get(`/${e}/codes`);
56
+ return P.get(`/${e}/codes`);
57
57
  },
58
58
  postCreateGroupCategory: (t, e) => {
59
59
  const r = t === "category" ? t : "groups";
60
- return f.post(`/${r}`, e);
60
+ return P.post(`/${r}`, e);
61
61
  },
62
62
  putEditGroupCategory: (t, e, r) => {
63
63
  const a = t === "category" ? t : "groups";
64
- return f.put(`/${a}/${r}`, e);
64
+ return P.put(`/${a}/${r}`, e);
65
65
  },
66
- putMoveGroup: (t, e) => f.put(`/groups/${e}/move-group`, t),
67
- putEditBulkGroups: async (t) => f.put("/groups/bulk", t),
66
+ putMoveGroup: (t, e) => P.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => P.put("/groups/bulk", t),
68
68
  deleteGroupCategory: (t, e, r) => {
69
69
  const a = t === "category" ? t : "groups";
70
- return f.delete(`/${a}/${r}`, { data: e });
70
+ return P.delete(`/${a}/${r}`, { data: e });
71
71
  }
72
- }, L = s({
72
+ }, C = s({
73
73
  prefix: "/settings-attribute-go/v2"
74
- }), xt = {
74
+ }), kt = {
75
75
  getGroupCategory: (t, e) => {
76
76
  const r = t === "category" ? t : "groups";
77
- return L.get(`/${r}/tree`, { params: e });
77
+ return C.get(`/${r}/tree`, { params: e });
78
78
  },
79
79
  getGroupCategoryList: (t, e) => {
80
80
  const r = t === "category" ? t : "groups";
81
- return L.get(`/${r}/${e}`);
81
+ return C.get(`/${r}/${e}`);
82
82
  },
83
83
  getNames: (t) => {
84
84
  const e = t === "category" ? t : "groups";
85
- return L.get(`/${e}/names`);
85
+ return C.get(`/${e}/names`);
86
86
  },
87
87
  getCodes: (t) => {
88
88
  const e = t === "category" ? t : "groups";
89
- return L.get(`/${e}/codes`);
89
+ return C.get(`/${e}/codes`);
90
90
  },
91
91
  postCreateGroupCategory: (t, e) => {
92
92
  const r = t === "category" ? t : "groups";
93
- return L.post(`/${r}`, e);
93
+ return C.post(`/${r}`, e);
94
94
  },
95
95
  putEditGroupCategory: (t, e, r) => {
96
96
  const a = t === "category" ? t : "groups";
97
- return L.put(`/${a}/${r}`, e);
97
+ return C.put(`/${a}/${r}`, e);
98
98
  },
99
99
  deleteGroupCategory: (t, e, r) => {
100
100
  const a = t === "category" ? t : "groups";
101
- return L.delete(`/${a}/${r}`, { data: e });
101
+ return C.delete(`/${a}/${r}`, { data: e });
102
102
  }
103
- }, St = s({
103
+ }, ft = s({
104
104
  prefix: "/v2",
105
105
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), kt = {
107
- getTotalApprovals: () => St.get("/approval/count")
108
- }, P = s({
106
+ }), _t = {
107
+ getTotalApprovals: () => ft.get("/approval/count")
108
+ }, T = s({
109
109
  prefix: "/v2",
110
110
  env: "APP_LOGS_NOTIFICATION_API"
111
- }), _t = {
112
- getActionLog: (t) => P.get("/change-log", { params: t }),
113
- getActionLogOption: (t) => P.get("/change-log/options", { params: t }),
114
- getSessionLogList: (t) => P.get("/session-log", { params: t }),
115
- getUserDetailSystemLogList: (t) => P.get("/change-log", { params: t }),
116
- getUserDetailSystemLogOption: (t) => P.get("/change-log/options", { params: t }),
111
+ }), Et = {
112
+ getActionLog: (t) => T.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => T.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => T.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => T.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => T.get("/change-log/options", { params: t }),
117
117
  /**
118
118
  * Retrieves the transaction log.
119
119
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
120
120
  */
121
- getTransactionLog: (t) => P.get("/transaction-log", { params: t }),
121
+ getTransactionLog: (t) => T.get("/transaction-log", { params: t }),
122
122
  /**
123
123
  * Retrieves the transaction log options.
124
124
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
125
125
  */
126
- getTransactionLogOption: (t) => P.get("/transaction-log/options", { params: t }),
127
- postScanLog: (t) => P.post("/transaction-log/scan-log", t)
126
+ getTransactionLogOption: (t) => T.get("/transaction-log/options", { params: t }),
127
+ postScanLog: (t) => T.post("/transaction-log/scan-log", t)
128
128
  }, m = s({
129
129
  prefix: "/utility/v2"
130
- }), Et = {
130
+ }), Ft = {
131
131
  getActionLog: (t) => m.get("/change-log", { params: t }),
132
132
  getActionLogOption: (t) => m.get("/change-log/options", { params: t }),
133
133
  getSessionLogList: (t) => m.get("/session-log", { params: t }),
@@ -145,9 +145,9 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
145
145
  getUserDetailUserLogAssignmentOption: (t, e) => m.get(`/assignment-log/${t}/options`, { params: e })
146
146
  }, g = s({
147
147
  prefix: "/assets/v2/assets"
148
- }), j = s({
148
+ }), Q = s({
149
149
  prefix: "/assets/v2/attachment"
150
- }), Ft = {
150
+ }), Nt = {
151
151
  getScanTag: (t) => g.get("/scan", { params: { tag: t } }),
152
152
  getAllAssets: (t) => g.get("/", { params: t }),
153
153
  getAllAssetsOptions: (t) => g.get("/options", { params: t }),
@@ -190,24 +190,24 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
190
190
  putLinkAsset: (t, e) => g.put(`/${e}/link-assets`, t),
191
191
  putUnlinkAsset: (t, e) => g.put(`/${e}/remove-link-assets`, t),
192
192
  // Asset Services prefixed by "attachment"
193
- getAttachment: (t) => j.get("", { params: t }),
193
+ getAttachment: (t) => Q.get("", { params: t }),
194
194
  postAttachment: (t) => {
195
195
  const e = { "Content-Type": "multipart/form-data" };
196
- return j.post("", t, { headers: e });
196
+ return Q.post("", t, { headers: e });
197
197
  },
198
198
  putAttachment: (t, e) => {
199
199
  const r = { "Content-Type": "multipart/form-data" };
200
- return j.put(`/${e}`, t, { headers: r });
200
+ return Q.put(`/${e}`, t, { headers: r });
201
201
  },
202
202
  /**
203
203
  * Deletes the attachment with the given IDs.
204
204
  * @param {object} params - The request params containing the IDs of the attachments to delete.
205
205
  * @returns {Promise<AxiosResponse>}
206
206
  */
207
- deleteAttachment: (t) => j.delete("/bulk", { params: t })
207
+ deleteAttachment: (t) => Q.delete("/bulk", { params: t })
208
208
  }, p = s({
209
209
  prefix: "/assets-go/v2/assets"
210
- }), Nt = {
210
+ }), Mt = {
211
211
  getAllAssets: (t) => p.get("/", { params: t }),
212
212
  getAllAssetsOptions: (t) => p.get("/options", { params: t }),
213
213
  getOptions: (t, e) => p.get(t ? `/${t}/options` : "/options", {
@@ -251,45 +251,45 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
251
251
  * @returns {Promise<AxiosResponse>}
252
252
  */
253
253
  deleteAttachment: (t) => p.delete("/attachment/bulk", { params: t })
254
- }, E = s({
254
+ }, F = s({
255
255
  prefix: "/tracking/v2/missing"
256
- }), Mt = {
256
+ }), Ht = {
257
257
  /**
258
258
  * To mark as found.
259
259
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
260
260
  */
261
- putMarkAsFound: (t) => E.put("/found", t),
262
- putReportMissing: (t, e) => E.put(`/report-missing/${t}`, e),
263
- getData: (t) => E.get("/", { params: t }),
264
- getDetail: (t) => E.get(`/${t}`),
265
- getOptions: (t) => E.get("/options", { params: t })
266
- }, F = s({
267
- prefix: "/missing-tracking/v2"
268
- }), Ht = {
269
- putFoundAsset: (t) => F.put("/found", t),
270
- putReportMissing: (t, e) => F.put(`/${t}/report-missing`, e),
261
+ putMarkAsFound: (t) => F.put("/found", t),
262
+ putReportMissing: (t, e) => F.put(`/report-missing/${t}`, e),
271
263
  getData: (t) => F.get("/", { params: t }),
272
- getDataOptions: (t) => F.get("/options", { params: t }),
273
- getDetail: (t) => F.get(`/${t}`)
274
- }, it = s({
275
- prefix: "/v2/notification",
276
- env: "APP_LOGS_NOTIFICATION_API"
264
+ getDetail: (t) => F.get(`/${t}`),
265
+ getOptions: (t) => F.get("/options", { params: t })
266
+ }, N = s({
267
+ prefix: "/missing-tracking/v2"
277
268
  }), Vt = {
278
- getNotifications: (t) => it.get("/", { params: t }),
279
- readNotification: (t) => it.put(`/${t}`)
269
+ putFoundAsset: (t) => N.put("/found", t),
270
+ putReportMissing: (t, e) => N.put(`/${t}/report-missing`, e),
271
+ getData: (t) => N.get("/", { params: t }),
272
+ getDataOptions: (t) => N.get("/options", { params: t }),
273
+ getDetail: (t) => N.get(`/${t}`)
280
274
  }, ut = s({
281
- prefix: "/utility/v2/notification"
275
+ prefix: "/v2/notification",
276
+ env: "APP_LOGS_NOTIFICATION_API"
282
277
  }), jt = {
283
278
  getNotifications: (t) => ut.get("/", { params: t }),
284
279
  readNotification: (t) => ut.put(`/${t}`)
285
- }, ft = s({
280
+ }, gt = s({
281
+ prefix: "/utility/v2/notification"
282
+ }), Qt = {
283
+ getNotifications: (t) => gt.get("/", { params: t }),
284
+ readNotification: (t) => gt.put(`/${t}`)
285
+ }, Pt = s({
286
286
  prefix: "/v2/session-log",
287
287
  env: "APP_LOGS_NOTIFICATION_API"
288
- }), Qt = {
289
- postLogout: () => ft.post("/logout")
288
+ }), Yt = {
289
+ postLogout: () => Pt.post("/logout")
290
290
  }, i = s({
291
291
  prefix: "/tag/v2"
292
- }), Yt = {
292
+ }), Jt = {
293
293
  getScanQR: (t) => i.get("/qr", { params: { tag: t } }),
294
294
  getScanRFID: (t) => i.get("/rfid", { params: { tag: t } }),
295
295
  getRFIDQRTAG: (t) => i.get("/rfid-qr/scan", { params: t }),
@@ -326,10 +326,10 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
326
326
  },
327
327
  putReportTAG: (t, e) => i.put(`/tag-transaction/report/${t}`, e),
328
328
  putDeclineReport: (t, e) => i.put(`/report/decline-report/${e}`, t)
329
- }, Q = s({
329
+ }, Y = s({
330
330
  prefix: "/tracking/v2/tracking"
331
- }), Jt = {
332
- getTrackingDetail: (t) => Q.get(`/${t}`),
331
+ }), Wt = {
332
+ getTrackingDetail: (t) => Y.get(`/${t}`),
333
333
  putFoundAsset: (t, e, r) => {
334
334
  const a = {
335
335
  tag: t,
@@ -337,13 +337,13 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
337
337
  serialNumber: r,
338
338
  type: "Global"
339
339
  };
340
- return Q.put("/found", { params: a });
340
+ return Y.put("/found", { params: a });
341
341
  },
342
- putReportPermanentlyMissing: (t, e) => Q.put(`/report-permanently-missing/${t}`, e),
343
- putMoveBack: (t) => Q.put("/tracking/move-back", t)
342
+ putReportPermanentlyMissing: (t, e) => Y.put(`/report-permanently-missing/${t}`, e),
343
+ putMoveBack: (t) => Y.put("/tracking/move-back", t)
344
344
  }, u = s({
345
345
  prefix: "/settings-user-role/v2"
346
- }), Wt = {
346
+ }), Kt = {
347
347
  reLogin: (t) => u.post("/auth/login", t),
348
348
  changePassword: (t) => u.put("/users/change-password", t),
349
349
  /**
@@ -394,7 +394,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
394
394
  })
395
395
  }, c = s({
396
396
  prefix: "/settings-user-role-go/v2"
397
- }), Kt = {
397
+ }), zt = {
398
398
  /**
399
399
  * Retrieves the user list as dropdown options.
400
400
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
@@ -429,27 +429,27 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
429
429
  getUserDetailUserAssetAssignedList: (t, e) => c.get(`/users/${t}/assigned-asset`, { params: e }),
430
430
  getUserDetailUserAssetBorrowedOption: (t, e) => c.get(`/users/${t}/borrowed-asset/option`, { params: e }),
431
431
  getUserDetailUserAssetAssignedOption: (t, e) => c.get(`/users/${t}/assigned-asset/option`, { params: e })
432
- }, T = s({
432
+ }, I = s({
433
433
  prefix: "/settings-user-role/v2/sub-users"
434
- }), zt = {
434
+ }), Zt = {
435
435
  // Sub User
436
- getSubUserList: (t, e) => T.get(`/${t}`, { params: e }),
437
- getSubUserOptions: (t, e) => T.get(`/${t}/option`, { params: e }),
436
+ getSubUserList: (t, e) => I.get(`/${t}`, { params: e }),
437
+ getSubUserOptions: (t, e) => I.get(`/${t}/option`, { params: e }),
438
438
  postCreateSubUser: (t, e) => {
439
439
  const r = { "Content-Type": "multipart/form-data" };
440
- return T.post(`/${t}`, e, { headers: r });
440
+ return I.post(`/${t}`, e, { headers: r });
441
441
  },
442
- putSubUserSetActiveBulk: (t) => T.put("/set-active-bulk", t),
443
- deleteSubUser: (t) => T.delete("/bulk", { data: { subUserIds: t } }),
442
+ putSubUserSetActiveBulk: (t) => I.put("/set-active-bulk", t),
443
+ deleteSubUser: (t) => I.delete("/bulk", { data: { subUserIds: t } }),
444
444
  putEditSubUser: (t, e) => {
445
445
  const r = { "Content-Type": "multipart/form-data" };
446
- return T.put(`/${t}`, e, { headers: r });
446
+ return I.put(`/${t}`, e, { headers: r });
447
447
  },
448
- getBorrowedAsset: (t, e) => T.get(`/${t}/borrowed-asset`, { params: e }),
449
- getBorrowedAssetOptions: (t, e) => T.get(`/${t}/borrowed-asset/options`, { params: e })
448
+ getBorrowedAsset: (t, e) => I.get(`/${t}/borrowed-asset`, { params: e }),
449
+ getBorrowedAssetOptions: (t, e) => I.get(`/${t}/borrowed-asset/options`, { params: e })
450
450
  }, y = s({
451
451
  prefix: "/settings-user-role-go/v2/users"
452
- }), Zt = {
452
+ }), Xt = {
453
453
  // Sub User
454
454
  getSubUserList: (t, e) => y.get(`/${t}/sub-users`, { params: e }),
455
455
  getSubUserOptions: (t, e) => y.get(`/${t}/sub-users/option`, { params: e }),
@@ -477,23 +477,23 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
477
477
  getAssignedAssetOptions: (t, e, r) => y.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
478
478
  params: r
479
479
  })
480
- }, Y = s({
480
+ }, J = s({
481
481
  env: "APP_ADMIN_API",
482
482
  prefix: "/settings-attribute/languages"
483
- }), Xt = {
483
+ }), te = {
484
484
  /**
485
485
  * Fetch all translation messages for a specific locale.
486
486
  * @param locale The locale code (e.g., 'en', 'id').
487
487
  * @returns A promise resolving to a key-value record of messages.
488
488
  */
489
- getMessages: (t) => Y.get(`/${t}/translations`),
489
+ getMessages: (t) => J.get(`/${t}/translations`),
490
490
  /**
491
491
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
492
492
  *
493
493
  * @returns Promise Array of options
494
494
  */
495
495
  getLanguageOptions: async () => {
496
- const { data: t } = await Y.get("/dropdown");
496
+ const { data: t } = await J.get("/dropdown");
497
497
  return t.data;
498
498
  },
499
499
  /**
@@ -503,7 +503,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
503
503
  * @returns Promise LanguageMeta
504
504
  */
505
505
  getLanguageOptionMeta: async (t) => {
506
- const { data: e } = await Y.get(
506
+ const { data: e } = await J.get(
507
507
  "/dropdown/" + t
508
508
  );
509
509
  return e.data;
@@ -515,61 +515,61 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
515
515
  * @param locale Target locale code.
516
516
  */
517
517
  translateText: async (t, e) => {
518
- const { data: r } = await Y.post("/translate", {
518
+ const { data: r } = await J.post("/translate", {
519
519
  q: t,
520
520
  target: e
521
521
  });
522
522
  return r.data.translations[t];
523
523
  }
524
- }, gt = s({
524
+ }, pt = s({
525
525
  prefix: "/dashboard/v2/dashboard"
526
- }), te = {
527
- getLatestTask: (t) => gt.get("/latest-task", { params: t }),
528
- getSummary: (t) => gt.get("/summary", { params: t })
529
- }, Z = s({
530
- prefix: "/alias-code/api/alias-code"
531
526
  }), ee = {
532
- getAliasCode: () => Z.get("/"),
533
- postAliasCode: (t) => Z.post("/", t),
534
- getAliasCodeList: (t) => Z.get(`/${t.object}/code-list`, { params: t })
527
+ getLatestTask: (t) => pt.get("/latest-task", { params: t }),
528
+ getSummary: (t) => pt.get("/summary", { params: t })
535
529
  }, X = s({
536
- prefix: "/settings-attribute-go/v2/alias-code"
530
+ prefix: "/alias-code/api/alias-code"
537
531
  }), re = {
538
532
  getAliasCode: () => X.get("/"),
539
533
  postAliasCode: (t) => X.post("/", t),
540
534
  getAliasCodeList: (t) => X.get(`/${t.object}/code-list`, { params: t })
541
- }, pt = s({
542
- prefix: "/settings-attribute/v2/general-settings"
535
+ }, tt = s({
536
+ prefix: "/settings-attribute-go/v2/alias-code"
543
537
  }), se = {
544
- getGeneralSettings: () => pt.get("/"),
545
- putUpdateGeneralSettings: (t) => pt.put("/", t)
538
+ getAliasCode: () => tt.get("/"),
539
+ postAliasCode: (t) => tt.post("/", t),
540
+ getAliasCodeList: (t) => tt.get(`/${t.object}/code-list`, { params: t })
546
541
  }, ct = s({
547
- prefix: "/settings-attribute-go/v2/general-settings"
542
+ prefix: "/settings-attribute/v2/general-settings"
548
543
  }), ne = {
549
544
  getGeneralSettings: () => ct.get("/"),
550
545
  putUpdateGeneralSettings: (t) => ct.put("/", t)
551
- }, C = s({
552
- prefix: "/settings-attribute/v2/custom-field"
546
+ }, lt = s({
547
+ prefix: "/settings-attribute-go/v2/general-settings"
553
548
  }), oe = {
554
- getCustomField: async (t) => C.get("/", { params: t }),
555
- getCustomFieldsByCategory: (t, e) => C.get(`/${t}`, { params: e }),
556
- getOptions: async (t) => C.get("/options", { params: t }),
557
- postCreateCustomField: async (t, e) => C.post("/", e, { params: t }),
558
- putEditCustomField: async (t, e, r) => C.put(`/${r}`, e, { params: t }),
559
- putChangeStatus: async (t, e) => C.put("/bulk", e, { params: t }),
560
- deleteCustomField: async (t) => C.delete("/bulk", { data: t })
561
- }, q = s({
562
- prefix: "/settings-attribute-go/v2/custom-field"
549
+ getGeneralSettings: () => lt.get("/"),
550
+ putUpdateGeneralSettings: (t) => lt.put("/", t)
551
+ }, O = s({
552
+ prefix: "/settings-attribute/v2/custom-field"
563
553
  }), ae = {
564
- getCustomField: async (t) => q.get("/", { params: t }),
565
- getOptions: async (t) => q.get("/options", { params: t }),
566
- postCreateCustomField: async (t, e) => q.post("/", e, { params: t }),
567
- putEditCustomField: async (t, e, r) => q.put(`/${r}`, e, { params: t }),
568
- putChangeStatus: async (t, e) => q.put("/bulk", e, { params: t }),
569
- deleteCustomField: async (t) => q.delete("/bulk", { params: t })
570
- }, tt = ({ headers: t = {}, params: e = {} } = {}) => {
571
- const r = k("APP_COUNTRY_STATE_API"), a = k("APP_COUNTRY_STATE_API_KEY");
572
- return $t.create({
554
+ getCustomField: async (t) => O.get("/", { params: t }),
555
+ getCustomFieldsByCategory: (t, e) => O.get(`/${t}`, { params: e }),
556
+ getOptions: async (t) => O.get("/options", { params: t }),
557
+ postCreateCustomField: async (t, e) => O.post("/", e, { params: t }),
558
+ putEditCustomField: async (t, e, r) => O.put(`/${r}`, e, { params: t }),
559
+ putChangeStatus: async (t, e) => O.put("/bulk", e, { params: t }),
560
+ deleteCustomField: async (t) => O.delete("/bulk", { data: t })
561
+ }, B = s({
562
+ prefix: "/settings-attribute-go/v2/custom-field"
563
+ }), ie = {
564
+ getCustomField: async (t) => B.get("/", { params: t }),
565
+ getOptions: async (t) => B.get("/options", { params: t }),
566
+ postCreateCustomField: async (t, e) => B.post("/", e, { params: t }),
567
+ putEditCustomField: async (t, e, r) => B.put(`/${r}`, e, { params: t }),
568
+ putChangeStatus: async (t, e) => B.put("/bulk", e, { params: t }),
569
+ deleteCustomField: async (t) => B.delete("/bulk", { params: t })
570
+ }, et = ({ headers: t = {}, params: e = {} } = {}) => {
571
+ const r = _("APP_COUNTRY_STATE_API"), a = _("APP_COUNTRY_STATE_API_KEY");
572
+ return mt.create({
573
573
  baseURL: `${r}/v1`,
574
574
  headers: {
575
575
  "Content-type": "application/json",
@@ -578,13 +578,13 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
578
578
  },
579
579
  params: e
580
580
  });
581
- }, ie = {
582
- getCountry: () => tt().get("/countries"),
583
- getState: (t) => tt().get(`/countries/${t}/states`),
584
- getCity: (t, e) => tt().get(`/countries/${t}/states/${e}/cities`)
581
+ }, ue = {
582
+ getCountry: () => et().get("/countries"),
583
+ getState: (t) => et().get(`/countries/${t}/states`),
584
+ getCity: (t, e) => et().get(`/countries/${t}/states/${e}/cities`)
585
585
  }, v = s({
586
586
  prefix: "/routine/v2"
587
- }), ue = {
587
+ }), ge = {
588
588
  getList: (t) => v.get("/service-center", { params: t }),
589
589
  postList: (t) => v.post("/service-center", t),
590
590
  putList: (t, e) => v.put(`/service-center/${t}`, e),
@@ -597,19 +597,19 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
597
597
  getActivityOptions: (t) => v.get("/service-activities/options", { params: t }),
598
598
  getActivityDetail: (t) => v.get(`/service-activities/${t}`),
599
599
  getActivityLog: (t) => v.get(`/service-activities/${t}/activity-log`)
600
- }, Pt = s({
600
+ }, Tt = s({
601
601
  prefix: "/settings-attribute/v2/brands"
602
- }), ge = {
603
- getDropdown: (t) => Pt.get("/dropdown", { params: t })
604
- }, B = s({
605
- prefix: "/file-manager/v2"
606
602
  }), pe = {
603
+ getDropdown: (t) => Tt.get("/dropdown", { params: t })
604
+ }, G = s({
605
+ prefix: "/file-manager/v2"
606
+ }), ce = {
607
607
  /**
608
608
  * Get storage information.
609
609
  *
610
610
  * @returns {Promise<AxiosResponse>} The Axios Response.
611
611
  */
612
- getStorageInformation: () => B.get("/files/storage"),
612
+ getStorageInformation: () => G.get("/files/storage"),
613
613
  /**
614
614
  * Get file manager data.
615
615
  *
@@ -617,7 +617,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
617
617
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
618
618
  * @returns {Promise<AxiosResponse>} The Axios Response.
619
619
  */
620
- getFileManager: (t, e) => B.get(`/${t}`, { params: e }),
620
+ getFileManager: (t, e) => G.get(`/${t}`, { params: e }),
621
621
  /**
622
622
  * Get file manager options.
623
623
  *
@@ -625,7 +625,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
625
625
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
626
626
  * @returns {Promise<AxiosResponse>} The Axios Response.
627
627
  */
628
- getFileManagerOption: (t, e) => B.get(`/${t}/options`, { params: e }),
628
+ getFileManagerOption: (t, e) => G.get(`/${t}/options`, { params: e }),
629
629
  /**
630
630
  * Recover files.
631
631
  *
@@ -633,7 +633,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
633
633
  * @param {object} body - The body of the request.
634
634
  * @returns {Promise<AxiosResponse>} The Axios Response.
635
635
  */
636
- recoverFiles: (t, e) => B.put(`/${t}/recover`, e),
636
+ recoverFiles: (t, e) => G.put(`/${t}/recover`, e),
637
637
  /**
638
638
  * Delete files.
639
639
  *
@@ -641,7 +641,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
641
641
  * @param {DeleteFileManagerDto} params - The params of the request.
642
642
  * @returns {Promise<AxiosResponse>} The Axios Response.
643
643
  */
644
- deleteFiles: (t, e) => B.delete(`/${t}`, { params: e }),
644
+ deleteFiles: (t, e) => G.delete(`/${t}`, { params: e }),
645
645
  /**
646
646
  * Delete files permanently.
647
647
  *
@@ -649,16 +649,16 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
649
649
  * @param {object} body - The body of the request.
650
650
  * @returns {Promise<AxiosResponse>} The Axios Response.
651
651
  */
652
- deletePermanently: (t, e) => B.delete(`/${t}/delete-permanent`, { params: e })
653
- }, G = s({
652
+ deletePermanently: (t, e) => G.delete(`/${t}/delete-permanent`, { params: e })
653
+ }, x = s({
654
654
  prefix: "/utility/v2"
655
- }), ce = {
655
+ }), le = {
656
656
  /**
657
657
  * Get storage information.
658
658
  *
659
659
  * @returns {Promise<AxiosResponse>} The Axios Response.
660
660
  */
661
- getStorageInformation: () => G.get("/files/storage"),
661
+ getStorageInformation: () => x.get("/files/storage"),
662
662
  /**
663
663
  * Get file manager data.
664
664
  *
@@ -666,7 +666,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
666
666
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
667
667
  * @returns {Promise<AxiosResponse>} The Axios Response.
668
668
  */
669
- getFileManager: (t, e) => G.get(`/${t}`, { params: e }),
669
+ getFileManager: (t, e) => x.get(`/${t}`, { params: e }),
670
670
  /**
671
671
  * Get file manager options.
672
672
  *
@@ -674,7 +674,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
674
674
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
675
675
  * @returns {Promise<AxiosResponse>} The Axios Response.
676
676
  */
677
- getFileManagerOption: (t, e) => G.get(`/${t}/options`, { params: e }),
677
+ getFileManagerOption: (t, e) => x.get(`/${t}/options`, { params: e }),
678
678
  /**
679
679
  * Recover files.
680
680
  *
@@ -682,7 +682,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
682
682
  * @param {object} body - The body of the request.
683
683
  * @returns {Promise<AxiosResponse>} The Axios Response.
684
684
  */
685
- recoverFiles: (t, e) => G.put(`/${t}/recover`, e),
685
+ recoverFiles: (t, e) => x.put(`/${t}/recover`, e),
686
686
  /**
687
687
  * Delete files.
688
688
  *
@@ -690,7 +690,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
690
690
  * @param {DeleteFileManagerDto} params - The params of the request.
691
691
  * @returns {Promise<AxiosResponse>} The Axios Response.
692
692
  */
693
- deleteFiles: (t, e) => G.delete(`/${t}`, { params: e }),
693
+ deleteFiles: (t, e) => x.delete(`/${t}`, { params: e }),
694
694
  /**
695
695
  * Delete files permanently.
696
696
  *
@@ -698,21 +698,21 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
698
698
  * @param {object} body - The body of the request.
699
699
  * @returns {Promise<AxiosResponse>} The Axios Response.
700
700
  */
701
- deletePermanently: (t, e) => G.delete(`/${t}/delete-permanent`, { params: e })
702
- }, I = s({
701
+ deletePermanently: (t, e) => x.delete(`/${t}/delete-permanent`, { params: e })
702
+ }, U = s({
703
703
  prefix: "/iot/v2/reader"
704
- }), le = {
705
- getData: (t) => I.get("/", { params: t }),
706
- getDataOptions: (t) => I.get("/options", { params: t }),
707
- getActivityLogData: (t) => I.get("/activity-log", { params: t }),
708
- getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
709
- getDataById: (t) => I.get(`/${t}`),
710
- getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
711
- getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
712
- putData: (t, e) => I.put(`/${t}`, e)
704
+ }), de = {
705
+ getData: (t) => U.get("/", { params: t }),
706
+ getDataOptions: (t) => U.get("/options", { params: t }),
707
+ getActivityLogData: (t) => U.get("/activity-log", { params: t }),
708
+ getActivityLogOptions: (t) => U.get("/activity-log/options", { params: t }),
709
+ getDataById: (t) => U.get(`/${t}`),
710
+ getChangeLog: (t) => U.get(`/${t.id}/change-log`, { params: t }),
711
+ getChangeLogOptions: (t) => U.get(`/${t.id}/change-log/options`, { params: t }),
712
+ putData: (t, e) => U.put(`/${t}`, e)
713
713
  }, l = s({
714
714
  prefix: "/settings-user-role/v2"
715
- }), de = {
715
+ }), Ae = {
716
716
  /**
717
717
  * Retrieves the transaction role for the given group and transaction name.
718
718
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -798,7 +798,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
798
798
  }
799
799
  }, d = s({
800
800
  prefix: "/settings-user-role-go/v2"
801
- }), Ae = {
801
+ }), $e = {
802
802
  /**
803
803
  * Retrieves the transaction role for the given group and transaction name.
804
804
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -882,39 +882,39 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
882
882
  }
883
883
  return d.put("/system-roles", t);
884
884
  }
885
- }, N = s({
885
+ }, M = s({
886
886
  prefix: "/settings-attribute/v2/open-api"
887
- }), $e = {
888
- getOpenAPIDocs: (t) => N.get(`/${t.doc}`),
889
- putGenerateToken: () => N.put("/generate"),
887
+ }), me = {
888
+ getOpenAPIDocs: (t) => M.get(`/${t.doc}`),
889
+ putGenerateToken: () => M.put("/generate"),
890
890
  // This is if the dummy was not dummy
891
- getToken: () => N.get(""),
892
- putRequestOpenAPI: () => N.put("/request"),
893
- putCancelRequestOpenAPI: () => N.put("/cancel-request")
894
- }, J = s({
891
+ getToken: () => M.get(""),
892
+ putRequestOpenAPI: () => M.put("/request"),
893
+ putCancelRequestOpenAPI: () => M.put("/cancel-request")
894
+ }, W = s({
895
895
  prefix: "/settings-attribute-go/v2/open-api"
896
- }), me = {
897
- putGenerateToken: () => J.put("/generate"),
896
+ }), ve = {
897
+ putGenerateToken: () => W.put("/generate"),
898
898
  // This is if the dummy was not dummy
899
- getToken: () => J.get(""),
900
- putRequestOpenAPI: () => J.put("/request"),
901
- putCancelRequestOpenAPI: () => J.put("/cancel-request")
902
- }, O = s({
899
+ getToken: () => W.get(""),
900
+ putRequestOpenAPI: () => W.put("/request"),
901
+ putCancelRequestOpenAPI: () => W.put("/cancel-request")
902
+ }, R = s({
903
903
  prefix: "/import/v2"
904
- }), ve = {
905
- getImport: (t, e) => O.get(`/${t}`, { params: e }),
904
+ }), ye = {
905
+ getImport: (t, e) => R.get(`/${t}`, { params: e }),
906
906
  postImportTemporary: (t, e) => {
907
907
  const r = { "Content-Type": "multipart/form-data" };
908
- return O.post(`/${t}/temporary`, e, { headers: r });
908
+ return R.post(`/${t}/temporary`, e, { headers: r });
909
909
  },
910
- deleteImportTemporary: (t, e) => O.delete(`/${t}/temporary`, { data: e }),
911
- postDuplicateImport: (t, e) => O.post(`/${t}/duplicate`, e),
912
- putEditImport: (t, e) => O.put(`/${t}`, e),
913
- postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
914
- putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
910
+ deleteImportTemporary: (t, e) => R.delete(`/${t}/temporary`, { data: e }),
911
+ postDuplicateImport: (t, e) => R.post(`/${t}/duplicate`, e),
912
+ putEditImport: (t, e) => R.put(`/${t}`, e),
913
+ postImport: (t, e, r) => R.post(t, r, { signal: e.signal }),
914
+ putImportCancelProgress: (t) => R.put(`/${t}/cancel-progress`)
915
915
  }, D = s({
916
916
  prefix: "/import-go/v2"
917
- }), ye = {
917
+ }), Se = {
918
918
  getImport: (t, e) => D.get(`/${t}`, { params: e }),
919
919
  postImportTemporary: (t, e) => {
920
920
  const r = { "Content-Type": "multipart/form-data" };
@@ -925,18 +925,18 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
925
925
  putEditImport: (t, e) => D.put(`/${t}`, e),
926
926
  postImport: (t, e, r) => D.post(t, r, { signal: e.signal }),
927
927
  putImportCancelProgress: (t) => D.put(`/${t}/cancel-progress`)
928
- }, x = s({
928
+ }, k = s({
929
929
  prefix: "/settings-attribute/v2/asset-name"
930
- }), Se = {
931
- getDropdown: (t) => x.get("/dropdown", { params: t }),
932
- getAssetNameDetail: (t) => x.get(`/${t}`),
933
- getAssetsByAssetName: (t, e) => x.get(`/${t}/list-asset`, { params: e }),
934
- getAssetNameList: (t) => x.get("/", { params: t }),
935
- getUnpairedAssetName: (t) => x.get("/unpaired", { params: t }),
936
- getOptions: (t) => x.get("/options", { params: t })
930
+ }), fe = {
931
+ getDropdown: (t) => k.get("/dropdown", { params: t }),
932
+ getAssetNameDetail: (t) => k.get(`/${t}`),
933
+ getAssetsByAssetName: (t, e) => k.get(`/${t}/list-asset`, { params: e }),
934
+ getAssetNameList: (t) => k.get("/", { params: t }),
935
+ getUnpairedAssetName: (t) => k.get("/unpaired", { params: t }),
936
+ getOptions: (t) => k.get("/options", { params: t })
937
937
  }, o = s({
938
938
  prefix: "/assignment/v2"
939
- }), fe = {
939
+ }), Pe = {
940
940
  getPreListData: (t) => o.get("/prelist", { params: t }),
941
941
  getPreListOptions: (t) => o.get("/prelist/options", { params: t }),
942
942
  getRequestData: (t) => o.get("/prelist/request", { params: t }),
@@ -994,7 +994,7 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
994
994
  putCancelReportById: async (t) => o.put(`/transaction/request/${t.id}/cancel-report`)
995
995
  }, b = s({
996
996
  prefix: "/assignment-go/v2"
997
- }), Pe = {
997
+ }), Te = {
998
998
  getTransactionData: (t) => b.get("/transaction", { params: t }),
999
999
  getTransactionOptions: (t) => b.get("/transaction/options", { params: t }),
1000
1000
  getDetailTransactionLog: (t) => b.get(`/transaction/request/${t}/transaction-log`),
@@ -1004,11 +1004,11 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1004
1004
  putCancelReport: (t) => b.put("/transaction/request/cancel-report", t)
1005
1005
  }, A = s({
1006
1006
  prefix: "/license/v2"
1007
- }), Tt = {
1007
+ }), It = {
1008
1008
  getTotalLicense: () => A.get("/total-license"),
1009
1009
  getPurchasedData: (t) => A.get("/purchase", { params: t }),
1010
1010
  getCompanyData: () => A.get("/company")
1011
- }, It = {
1011
+ }, Ut = {
1012
1012
  getFixedAssetPerGroup: (t, e) => A.get(`/${t}/fixed-asset-list`, { params: e }),
1013
1013
  getAssetNameList: (t, e, r) => A.get(`${e}/asset-list/${t}`, { params: r }),
1014
1014
  // Get list of assets those already have licenses
@@ -1020,66 +1020,66 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1020
1020
  `/manage/${t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}`,
1021
1021
  e
1022
1022
  )
1023
- }, Ut = {
1023
+ }, Lt = {
1024
1024
  getGroupQuota: (t) => A.get(`/${t}/allocation-quota`),
1025
1025
  getSubGroupQuota: (t, e) => A.get(`/${t}/subgroup-quota`, { params: e }),
1026
1026
  editSubGroupQuota: (t, e) => A.put(`/${t}/set-group-quota`, e)
1027
- }, Lt = {
1027
+ }, Ct = {
1028
1028
  getConcurrentUserData: () => A.get("/concurrent-user-data"),
1029
1029
  getConcurrentUserList: (t) => A.get("/concurrent-user", { params: t }),
1030
1030
  putLogoutUsers: (t) => A.put("/concurrent-user", t)
1031
- }, Te = {
1031
+ }, Ie = {
1032
1032
  getFilterOptions: (t, e) => A.get(`/${t}`, { params: e }),
1033
- ...Tt,
1033
+ ...It,
1034
+ ...Ct,
1034
1035
  ...Lt,
1035
- ...Ut,
1036
- ...It
1037
- }, U = s({
1036
+ ...Ut
1037
+ }, L = s({
1038
1038
  prefix: "/license-go/v2"
1039
- }), Ct = {
1040
- getTotalLicense: () => U.get("/total-license"),
1041
- getPurchasedData: (t) => U.get("/purchase", { params: t })
1042
- }, Ot = {
1043
- getConcurrentUserData: () => U.get("/concurrent-user-data"),
1044
- getConcurrentUserList: (t) => U.get("/concurrent-user", { params: t }),
1045
- putLogoutUsers: (t) => U.put("/concurrent-user", t)
1039
+ }), Ot = {
1040
+ getTotalLicense: () => L.get("/total-license"),
1041
+ getPurchasedData: (t) => L.get("/purchase", { params: t })
1042
+ }, Rt = {
1043
+ getConcurrentUserData: () => L.get("/concurrent-user-data"),
1044
+ getConcurrentUserList: (t) => L.get("/concurrent-user", { params: t }),
1045
+ putLogoutUsers: (t) => L.put("/concurrent-user", t)
1046
1046
  }, Dt = {
1047
- getFixedAssetPerGroup: (t, e) => U.get(`/${t}/assets`, { params: e }),
1048
- deleteAssetData: (t) => U.delete("/assets", { data: t })
1049
- }, Ie = {
1050
- getFilterOptions: (t, e) => U.get(`/${t}`, { params: e }),
1051
- ...Ct,
1047
+ getFixedAssetPerGroup: (t, e) => L.get(`/${t}/assets`, { params: e }),
1048
+ deleteAssetData: (t) => L.delete("/assets", { data: t })
1049
+ }, Ue = {
1050
+ getFilterOptions: (t, e) => L.get(`/${t}`, { params: e }),
1052
1051
  ...Ot,
1052
+ ...Rt,
1053
1053
  ...Dt
1054
- }, M = s({
1054
+ }, H = s({
1055
1055
  prefix: "/repair/v2/damage"
1056
- }), Ue = {
1057
- getDamageReportList: (t) => M.get("/", { params: t }),
1058
- getDamageReportListFilterOptions: (t) => M.get("/options", { params: t }),
1059
- getDamageReportDetail: (t) => M.get(`/${t}`),
1056
+ }), Le = {
1057
+ getDamageReportList: (t) => H.get("/", { params: t }),
1058
+ getDamageReportListFilterOptions: (t) => H.get("/options", { params: t }),
1059
+ getDamageReportDetail: (t) => H.get(`/${t}`),
1060
1060
  putReportDamage: (t, e) => {
1061
1061
  const r = { "Content-Type": "multipart/form-data" };
1062
- return M.put(`/report-damage/${t}`, e, { headers: r });
1062
+ return H.put(`/report-damage/${t}`, e, { headers: r });
1063
1063
  },
1064
1064
  /**
1065
1065
  * To mark as repaired.
1066
1066
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
1067
1067
  */
1068
- putMarkAsRepaired: (t) => M.put("/repair", t)
1069
- }, H = s({
1068
+ putMarkAsRepaired: (t) => H.put("/repair", t)
1069
+ }, V = s({
1070
1070
  prefix: "/damage-repair-ticketing/v2"
1071
- }), Le = {
1072
- getDamageReportList: (t) => H.get("/", { params: t }),
1073
- getDamageReportListFilterOptions: (t) => H.get("/options", { params: t }),
1074
- getDamageReportDetail: (t) => H.get(`/${t}`),
1071
+ }), Ce = {
1072
+ getDamageReportList: (t) => V.get("/", { params: t }),
1073
+ getDamageReportListFilterOptions: (t) => V.get("/options", { params: t }),
1074
+ getDamageReportDetail: (t) => V.get(`/${t}`),
1075
1075
  putReportDamage: (t, e) => {
1076
1076
  const r = { "Content-Type": "multipart/form-data" };
1077
- return H.put(`/${t}/report-damage`, e, { headers: r });
1077
+ return V.put(`/${t}/report-damage`, e, { headers: r });
1078
1078
  },
1079
- putMarkAsRepaired: (t) => H.put("/repair", t)
1079
+ putMarkAsRepaired: (t) => V.put("/repair", t)
1080
1080
  }, n = s({
1081
1081
  prefix: "/borrowing/v2"
1082
- }), Ce = {
1082
+ }), Oe = {
1083
1083
  getTaskBorrowing: async (t) => n.get("/transaction/my-asset/task", { params: t }),
1084
1084
  getTaskBorrowingOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
1085
1085
  getBorrowedAsset: async (t) => n.get("/transaction/my-asset/borrowed-asset", { params: t }),
@@ -1143,55 +1143,55 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1143
1143
  id: t
1144
1144
  }),
1145
1145
  putBorrowingEditExtension: (t) => n.put("/transaction/request/duration", t)
1146
- }, lt = s({
1146
+ }, dt = s({
1147
1147
  prefix: "/assets/v2"
1148
- }), Oe = {
1149
- getHistory: async (t) => lt.get("/my-asset", { params: t }),
1150
- getHistoryOptions: async (t) => lt.get("/my-asset/options", { params: t })
1151
- }, W = s({
1148
+ }), Re = {
1149
+ getHistory: async (t) => dt.get("/my-asset", { params: t }),
1150
+ getHistoryOptions: async (t) => dt.get("/my-asset/options", { params: t })
1151
+ }, K = s({
1152
1152
  prefix: "/repair/v2"
1153
1153
  }), De = {
1154
- getRepairList: (t) => W.get("/my-asset/repair", { params: t }),
1155
- getFilterOptions: (t) => W.get("/my-asset/repair/options", { params: t }),
1156
- getAssetRepairTicketing: (t, e) => W.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1157
- putConfirmRepair: (t) => W.put(`/repair/${t}/confirm-repair`)
1158
- }, et = s({
1154
+ getRepairList: (t) => K.get("/my-asset/repair", { params: t }),
1155
+ getFilterOptions: (t) => K.get("/my-asset/repair/options", { params: t }),
1156
+ getAssetRepairTicketing: (t, e) => K.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1157
+ putConfirmRepair: (t) => K.put(`/repair/${t}/confirm-repair`)
1158
+ }, rt = s({
1159
1159
  env: "APP_GLOBAL_SETTINGS_API",
1160
1160
  prefix: "/v1/global-settings/auth"
1161
- }), R = s({
1161
+ }), h = s({
1162
1162
  env: "APP_TAGSAMURAI_API",
1163
1163
  prefix: "/settings-user-role/v2/auth"
1164
- }), dt = (t) => {
1165
- var e, r, a, S;
1166
- return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((S = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : S.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
1164
+ }), At = (t) => {
1165
+ var e, r, a, f;
1166
+ return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((f = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : f.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
1167
1167
  }, be = {
1168
1168
  login: (t) => {
1169
1169
  const e = { ...t, isMobile: !1 };
1170
- return et.post("/login", e);
1170
+ return rt.post("/login", e);
1171
1171
  },
1172
- reLoginGlobal: (t) => (et.interceptors.response.use((e) => e, dt), et.post("/login", t)),
1173
- reLogin: (t) => (R.interceptors.response.use((e) => e, dt), R.post("/login", t)),
1172
+ reLoginGlobal: (t) => (rt.interceptors.response.use((e) => e, At), rt.post("/login", t)),
1173
+ reLogin: (t) => (h.interceptors.response.use((e) => e, At), h.post("/login", t)),
1174
1174
  requestOTP: (t) => {
1175
1175
  const e = { email: t };
1176
- return R.post("/request-otp", e);
1176
+ return h.post("/request-otp", e);
1177
1177
  },
1178
1178
  requestResetPassLink: (t) => {
1179
1179
  const e = { email: t };
1180
- return R.post("/request-reset-link", e);
1180
+ return h.post("/request-reset-link", e);
1181
1181
  },
1182
- setPassword: (t) => R.post("/set-password", t),
1183
- verifyToken: (t) => R.get(`/verify-token/${t}`),
1182
+ setPassword: (t) => h.post("/set-password", t),
1183
+ verifyToken: (t) => h.get(`/verify-token/${t}`),
1184
1184
  confirmEmailChange: (t) => {
1185
1185
  const e = { token: t };
1186
- return R.put("/confirm-email-change/confirm", e);
1186
+ return h.put("/confirm-email-change/confirm", e);
1187
1187
  }
1188
- }, ot = "/transfer/v2", K = s({
1189
- prefix: `${ot}/prelist`
1188
+ }, at = "/transfer/v2", z = s({
1189
+ prefix: `${at}/prelist`
1190
1190
  }), $ = s({
1191
- prefix: `${ot}/transaction`
1192
- }), V = s({
1193
- prefix: `${ot}/approval`
1194
- }), Re = {
1191
+ prefix: `${at}/transaction`
1192
+ }), j = s({
1193
+ prefix: `${at}/approval`
1194
+ }), he = {
1195
1195
  // ------ TRANSACTION ------
1196
1196
  getTransactions: (t) => $.get("/", { params: t }),
1197
1197
  getTransactionDetail: (t) => $.get(`/${t}`),
@@ -1228,78 +1228,78 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1228
1228
  getApproverList: (t) => $.get(`/${t}/approval-history`),
1229
1229
  putHandoverTransaction: (t, e) => $.put(`/${t}/handover`, e),
1230
1230
  // ------ PRELIST ------
1231
- getPrelist: (t) => K.get("/", { params: t }),
1232
- postAddPrelistData: (t) => K.post("/", t),
1233
- deletePrelist: (t) => K.delete("/", {
1231
+ getPrelist: (t) => z.get("/", { params: t }),
1232
+ postAddPrelistData: (t) => z.post("/", t),
1233
+ deletePrelist: (t) => z.delete("/", {
1234
1234
  params: {
1235
1235
  id: JSON.stringify(t)
1236
1236
  }
1237
1237
  }),
1238
1238
  getPrelistAssets: (t) => {
1239
1239
  const e = { id: t };
1240
- return K.get("/request", { params: e });
1240
+ return z.get("/request", { params: e });
1241
1241
  },
1242
1242
  // APPROVAL
1243
1243
  getApprovals: (t, e) => {
1244
1244
  const r = { ...e, status: JSON.stringify([t]) };
1245
- return V.get("/", { params: r });
1245
+ return j.get("/", { params: r });
1246
1246
  },
1247
1247
  getApprovalOptions: (t, e) => {
1248
1248
  const r = {
1249
1249
  status: JSON.stringify([t])
1250
1250
  };
1251
- return r[e] = !0, V.get("/options", { params: r });
1251
+ return r[e] = !0, j.get("/options", { params: r });
1252
1252
  },
1253
1253
  getApprovalDetail: (t, e) => {
1254
1254
  const r = {
1255
1255
  groupType: e
1256
1256
  };
1257
- return V.get(`/transaction/${t}`, { params: r });
1257
+ return j.get(`/transaction/${t}`, { params: r });
1258
1258
  },
1259
1259
  getApprovalDetailOptions: (t, e, r) => {
1260
1260
  const a = {};
1261
- return a[e] = !0, a.groupType = r, V.get(`/transaction/${t}/options`, { params: a });
1261
+ return a[e] = !0, a.groupType = r, j.get(`/transaction/${t}/options`, { params: a });
1262
1262
  },
1263
- putUpdateApproval: (t) => V.put("/approve", t)
1264
- }, rt = s({
1263
+ putUpdateApproval: (t) => j.put("/approve", t)
1264
+ }, st = s({
1265
1265
  prefix: "/disposal/v2/report"
1266
1266
  }), we = {
1267
- getReportedDisposal: (t) => rt.get("", { params: t }),
1268
- postReportDisposal: (t) => rt.post("", t),
1269
- deleteCancelReport: (t) => rt.delete("/cancel-report", { params: t })
1270
- }, z = s({
1267
+ getReportedDisposal: (t) => st.get("", { params: t }),
1268
+ postReportDisposal: (t) => st.post("", t),
1269
+ deleteCancelReport: (t) => st.delete("/cancel-report", { params: t })
1270
+ }, Z = s({
1271
1271
  prefix: "/transfer-go/v2"
1272
- }), he = {
1273
- getTransactionData: (t) => z.get("/transaction", { params: t }),
1274
- getTransactionOptions: (t) => z.get("/transaction/options", { params: t }),
1275
- getTransactionLog: (t) => z.get(`/transaction/request/${t}/transaction-log`),
1276
- postCreateTransaction: (t) => z.post("/transaction", t)
1277
- }, st = s({
1278
- prefix: "/audit/v2"
1279
1272
  }), qe = {
1280
- getAudit: (t, e) => st.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1281
- getAuditOption: (t, e) => st.get(`/audit/schedule/asset-detail/${t}/options`, {
1273
+ getTransactionData: (t) => Z.get("/transaction", { params: t }),
1274
+ getTransactionOptions: (t) => Z.get("/transaction/options", { params: t }),
1275
+ getTransactionLog: (t) => Z.get(`/transaction/request/${t}/transaction-log`),
1276
+ postCreateTransaction: (t) => Z.post("/transaction", t)
1277
+ }, nt = s({
1278
+ prefix: "/audit/v2"
1279
+ }), Be = {
1280
+ getAudit: (t, e) => nt.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1281
+ getAuditOption: (t, e) => nt.get(`/audit/schedule/asset-detail/${t}/options`, {
1282
1282
  params: e
1283
1283
  }),
1284
- putSetActive: (t) => st.put("/audit/asset/activation", t)
1285
- }, nt = s({
1284
+ putSetActive: (t) => nt.put("/audit/asset/activation", t)
1285
+ }, ot = s({
1286
1286
  prefix: "/routine/v2"
1287
- }), Be = {
1288
- getMaintenance: (t, e) => nt.get(`/routine-task/${t}`, { params: e }),
1289
- getMaintenanceOption: (t, e) => nt.get(`/routine-task/${t}/options`, { params: e }),
1290
- putSetActive: (t) => nt.put("/maintenable-asset/set-active", t)
1287
+ }), Ge = {
1288
+ getMaintenance: (t, e) => ot.get(`/routine-task/${t}`, { params: e }),
1289
+ getMaintenanceOption: (t, e) => ot.get(`/routine-task/${t}/options`, { params: e }),
1290
+ putSetActive: (t) => ot.put("/maintenable-asset/set-active", t)
1291
1291
  }, bt = s({
1292
1292
  prefix: "/settings-attribute/v2/models"
1293
- }), Ge = {
1293
+ }), xe = {
1294
1294
  getDropdown: (t) => bt.get("/dropdown", { params: t })
1295
- }, At = s({
1295
+ }, $t = s({
1296
1296
  prefix: "/settings-attribute/v2/transaction-settings"
1297
- }), xe = {
1298
- getData: () => At.get("/"),
1299
- putData: (t) => At.put("/", t)
1297
+ }), ke = {
1298
+ getData: () => $t.get("/"),
1299
+ putData: (t) => $t.put("/", t)
1300
1300
  }, w = s({
1301
1301
  prefix: "/borrowing-go/v2"
1302
- }), ke = {
1302
+ }), _e = {
1303
1303
  getTransactions: async (t) => w.get("/transaction", { params: t }),
1304
1304
  getTransactionOptions: async (t) => w.get("/transaction/options", { params: t }),
1305
1305
  getTransactionLog: async (t) => w.get(`/transaction/request/${t}/transaction-log`),
@@ -1313,79 +1313,93 @@ const yt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1313
1313
  const e = { id: t };
1314
1314
  return w.put("/transaction/request/cancel-report", e);
1315
1315
  }
1316
- }, h = s({
1316
+ }, q = s({
1317
1317
  prefix: "/disposal-go/v2/"
1318
- }), _e = {
1319
- getReportedDisposal: (t) => h.get("/report", { params: t }),
1320
- getReportedDisposalOptions: (t) => h.get("/report/options", { params: t }),
1321
- postReportDisposal: (t) => h.post("/report", t),
1322
- deleteCancelReport: (t) => (t.isFromDisposal = "false", h.delete("/cancel-report", { params: t })),
1323
- deleteDeclineReport: (t) => (t.isFromDisposal = "true", h.delete("/report/cancel-report", { params: t })),
1324
- getDisposalHistory: (t, e) => h.get(`/disposal/history${t}`, { params: e }),
1325
- getHistoryByAssetOptions: (t) => h.get("/disposal/history/by-asset/options", { params: t })
1318
+ }), Ee = {
1319
+ getReportedDisposal: (t) => q.get("/report", { params: t }),
1320
+ getReportedDisposalOptions: (t) => q.get("/report/options", { params: t }),
1321
+ postReportDisposal: (t) => q.post("/report", t),
1322
+ deleteCancelReport: (t) => (t.isFromDisposal = "false", q.delete("/cancel-report", { params: t })),
1323
+ deleteDeclineReport: (t) => (t.isFromDisposal = "true", q.delete("/report/cancel-report", { params: t })),
1324
+ getDisposalHistory: (t, e) => q.get(`/disposal/history${t}`, { params: e }),
1325
+ getHistoryByAssetOptions: (t) => q.get("/disposal/history/by-asset/options", { params: t })
1326
+ }, S = s({
1327
+ prefix: "/report/v2/reports"
1328
+ }), Fe = {
1329
+ getReportList: (t) => S.get("/schedules", { params: t }),
1330
+ getReportSchedule: (t) => S.get("/schedules/" + t),
1331
+ getUniqueScheduleName: (t) => S.get("/schedules/unique-name", { params: { name: t } }),
1332
+ getFilterOptions: (t) => S.get("/schedules/options", { params: t }),
1333
+ putSetActive: (t) => S.put("/schedules/activation", t),
1334
+ putEditSchedule: (t) => S.put("/schedules/" + t._id, t),
1335
+ deleteReports: (t) => S.delete("/schedules", { params: { reportIds: t } }),
1336
+ postCreateSchedule: (t) => S.post("/schedules/create", t),
1337
+ postDownloadReport: (t) => S.post("/download", t, { responseType: "arraybuffer" }),
1338
+ postGenerateReport: (t) => S.post("/generate", t)
1326
1339
  };
1327
1340
  export {
1328
- ee as AliasCodeServices,
1329
- re as AliasCodeServicesGo,
1330
- Se as AssetNameServices,
1331
- Ft as AssetServices,
1332
- Nt as AssetServicesGo,
1333
- fe as AssignmentServices,
1334
- Pe as AssignmentServicesGo,
1335
- qe as AuditServices,
1341
+ re as AliasCodeServices,
1342
+ se as AliasCodeServicesGo,
1343
+ fe as AssetNameServices,
1344
+ Nt as AssetServices,
1345
+ Mt as AssetServicesGo,
1346
+ Pe as AssignmentServices,
1347
+ Te as AssignmentServicesGo,
1348
+ Be as AuditServices,
1336
1349
  be as AuthServices,
1337
- Ce as BorrowServices,
1338
- ke as BorrowServicesGo,
1339
- ge as BrandServices,
1340
- _t as ChangelogServices,
1341
- ie as CountryStateServices,
1342
- oe as CustomFieldServices,
1343
- ae as CustomFieldServicesGo,
1344
- Ue as DamageServices,
1345
- Le as DamageServicesGo,
1346
- te as DashboardServices,
1350
+ Oe as BorrowServices,
1351
+ _e as BorrowServicesGo,
1352
+ pe as BrandServices,
1353
+ Et as ChangelogServices,
1354
+ ue as CountryStateServices,
1355
+ ae as CustomFieldServices,
1356
+ ie as CustomFieldServicesGo,
1357
+ Le as DamageServices,
1358
+ Ce as DamageServicesGo,
1359
+ ee as DashboardServices,
1347
1360
  we as DisposalServices,
1348
- _e as DisposalServicesGo,
1349
- pe as FileManagerServices,
1350
- ce as FileManagerServicesGo,
1351
- se as GeneralSettingsServices,
1352
- ne as GeneralSettingsServicesGo,
1353
- Gt as GroupCategoryServices,
1354
- xt as GroupCategoryServicesGo,
1355
- Xt as I18nService,
1356
- ve as ImportServices,
1357
- ye as ImportServicesGo,
1358
- Te as LicenseServices,
1359
- Ie as LicenseServicesGo,
1360
- Et as LogServicesGo,
1361
- Mt as MissingServices,
1362
- Ht as MissingServicesGo,
1363
- Ge as ModelTypeServices,
1364
- Oe as MyAssetServices,
1365
- kt as NotificationApprovalServices,
1366
- Vt as NotificationServices,
1367
- jt as NotificationServicesGo,
1368
- $e as OpenAPIServices,
1369
- me as OpenAPIServicesGo,
1370
- le as ReaderServices,
1361
+ Ee as DisposalServicesGo,
1362
+ ce as FileManagerServices,
1363
+ le as FileManagerServicesGo,
1364
+ ne as GeneralSettingsServices,
1365
+ oe as GeneralSettingsServicesGo,
1366
+ xt as GroupCategoryServices,
1367
+ kt as GroupCategoryServicesGo,
1368
+ te as I18nService,
1369
+ ye as ImportServices,
1370
+ Se as ImportServicesGo,
1371
+ Ie as LicenseServices,
1372
+ Ue as LicenseServicesGo,
1373
+ Ft as LogServicesGo,
1374
+ Ht as MissingServices,
1375
+ Vt as MissingServicesGo,
1376
+ xe as ModelTypeServices,
1377
+ Re as MyAssetServices,
1378
+ _t as NotificationApprovalServices,
1379
+ jt as NotificationServices,
1380
+ Qt as NotificationServicesGo,
1381
+ me as OpenAPIServices,
1382
+ ve as OpenAPIServicesGo,
1383
+ de as ReaderServices,
1371
1384
  De as RepairServices,
1372
- de as RoleServices,
1373
- Ae as RoleServicesGo,
1374
- Be as RoutineServices,
1375
- ue as ServiceCenterServices,
1376
- Qt as SessionLogServices,
1377
- zt as SubUserServices,
1378
- Zt as SubUserServicesGo,
1379
- Yt as TAGServices,
1380
- Jt as TrackingServices,
1381
- xe as TransactionSettingServices,
1382
- Re as TransferServices,
1383
- he as TransferServicesGo,
1384
- Wt as UserServices,
1385
- Kt as UserServicesGo,
1386
- Bt as getAssetsFile,
1387
- k as getBaseURL,
1388
- qt as getImageURL,
1389
- ht as getImageURLGo,
1385
+ Fe as ReportServices,
1386
+ Ae as RoleServices,
1387
+ $e as RoleServicesGo,
1388
+ Ge as RoutineServices,
1389
+ ge as ServiceCenterServices,
1390
+ Yt as SessionLogServices,
1391
+ Zt as SubUserServices,
1392
+ Xt as SubUserServicesGo,
1393
+ Jt as TAGServices,
1394
+ Wt as TrackingServices,
1395
+ ke as TransactionSettingServices,
1396
+ he as TransferServices,
1397
+ qe as TransferServicesGo,
1398
+ Kt as UserServices,
1399
+ zt as UserServicesGo,
1400
+ Gt as getAssetsFile,
1401
+ _ as getBaseURL,
1402
+ Bt as getImageURL,
1403
+ qt as getImageURLGo,
1390
1404
  wt as queryParamsStringfy
1391
1405
  };