@tagsamurai/fats-api-services 1.0.0-alpha.160 → 1.0.0-alpha.162

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,16 +1,16 @@
1
- import lt from "axios";
2
- const $t = { 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" }, q = (t = "APP_API") => $t["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: a = "", headers: v = {}, ...B } = t, dt = `${q(r)}${a}`, rt = JSON.parse(localStorage.getItem("user") ?? "{}"), At = rt.jwt ?? rt.token ?? "";
4
- return lt.create({
5
- ...B,
6
- baseURL: dt,
1
+ import dt from "axios";
2
+ const mt = { 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" }, B = (t = "APP_API") => mt["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: a = "", headers: v = {}, ...k } = t, At = `${B(r)}${a}`, st = JSON.parse(localStorage.getItem("user") ?? "{}"), $t = st.jwt ?? st.token ?? "";
4
+ return dt.create({
5
+ ...k,
6
+ baseURL: At,
7
7
  headers: e ? v : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${At}`,
9
+ Authorization: `Bearer ${$t}`,
10
10
  ...v
11
11
  }
12
12
  });
13
- }, Pt = (t) => {
13
+ }, Tt = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,24 +21,24 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, Tt = (t, e, r) => {
24
+ }, It = (t, e, r) => {
25
25
  if (!t) return;
26
- const a = q("APP_API"), v = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
26
+ const a = B("APP_API"), v = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
28
- const B = new URLSearchParams();
29
- return e && (B.set("width", e.toString()), B.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${v}?${B.toString()}`;
28
+ const k = new URLSearchParams();
29
+ return e && (k.set("width", e.toString()), k.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${v}?${k.toString()}`;
30
30
  }
31
31
  return v;
32
- }, It = (t) => {
32
+ }, Ut = (t) => {
33
33
  if (!t) return;
34
- const e = q("APP_TAGSAMURAI_API");
34
+ const e = B("APP_TAGSAMURAI_API");
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, Ut = async (t, e = "excel") => await fetch(
37
- `${q("APP_ASSETS_URL")}/${e}/${t}`
36
+ }, Ct = async (t, e = "excel") => await fetch(
37
+ `${B("APP_ASSETS_URL")}/${e}/${t}`
38
38
  ), y = s({
39
39
  prefix: "/settings-attribute/v2",
40
40
  env: "APP_TAGSAMURAI_API"
41
- }), Ct = {
41
+ }), Ot = {
42
42
  getGroupCategory: (t, e) => {
43
43
  const r = t === "category" ? t : "groups";
44
44
  return y.get(`/${r}/tree`, { params: e });
@@ -71,7 +71,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
71
71
  }
72
72
  }, I = s({
73
73
  prefix: "/settings-attribute-go/v2"
74
- }), Ot = {
74
+ }), bt = {
75
75
  getGroupCategory: (t, e) => {
76
76
  const r = t === "category" ? t : "groups";
77
77
  return I.get(`/${r}/tree`, { params: e });
@@ -100,11 +100,11 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
100
100
  const a = t === "category" ? t : "groups";
101
101
  return I.delete(`/${a}/${r}`, { data: e });
102
102
  }
103
- }, mt = s({
103
+ }, vt = s({
104
104
  prefix: "/v2",
105
105
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), bt = {
107
- getTotalApprovals: () => mt.get("/approval/count")
106
+ }), Rt = {
107
+ getTotalApprovals: () => vt.get("/approval/count")
108
108
  }, f = s({
109
109
  prefix: "/v2",
110
110
  env: "APP_LOGS_NOTIFICATION_API"
@@ -127,7 +127,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
127
127
  postScanLog: (t) => f.post("/transaction-log/scan-log", t)
128
128
  }, S = s({
129
129
  prefix: "/utility/v2"
130
- }), Rt = {
130
+ }), Dt = {
131
131
  getActionLog: (t) => S.get("/change-log", { params: t }),
132
132
  getActionLogOption: (t) => S.get("/change-log/options", { params: t }),
133
133
  getSessionLogList: (t) => S.get("/session-log", { params: t }),
@@ -139,9 +139,9 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
139
139
  getUserDetailUserLogAssignmentOption: (t, e) => S.get(`/assignment-log/${t}/options`, { params: e })
140
140
  }, g = s({
141
141
  prefix: "/assets/v2/assets"
142
- }), F = s({
142
+ }), N = s({
143
143
  prefix: "/assets/v2/attachment"
144
- }), Dt = {
144
+ }), wt = {
145
145
  getScanTag: (t) => g.get("/scan", { params: { tag: t } }),
146
146
  getAllAssets: (t) => g.get("/", { params: t }),
147
147
  getAllAssetsOptions: (t) => g.get("/options", { params: t }),
@@ -184,24 +184,24 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
184
184
  putLinkAsset: (t, e) => g.put(`/${e}/link-assets`, t),
185
185
  putUnlinkAsset: (t, e) => g.put(`/${e}/remove-link-assets`, t),
186
186
  // Asset Services prefixed by "attachment"
187
- getAttachment: (t) => F.get("", { params: t }),
187
+ getAttachment: (t) => N.get("", { params: t }),
188
188
  postAttachment: (t) => {
189
189
  const e = { "Content-Type": "multipart/form-data" };
190
- return F.post("", t, { headers: e });
190
+ return N.post("", t, { headers: e });
191
191
  },
192
192
  putAttachment: (t, e) => {
193
193
  const r = { "Content-Type": "multipart/form-data" };
194
- return F.put(`/${e}`, t, { headers: r });
194
+ return N.put(`/${e}`, t, { headers: r });
195
195
  },
196
196
  /**
197
197
  * Deletes the attachment with the given IDs.
198
198
  * @param {object} params - The request params containing the IDs of the attachments to delete.
199
199
  * @returns {Promise<AxiosResponse>}
200
200
  */
201
- deleteAttachment: (t) => F.delete("/bulk", { params: t })
201
+ deleteAttachment: (t) => N.delete("/bulk", { params: t })
202
202
  }, p = s({
203
203
  prefix: "/assets-go/v2/assets"
204
- }), wt = {
204
+ }), ht = {
205
205
  getAllAssets: (t) => p.get("/", { params: t }),
206
206
  getAllAssetsOptions: (t) => p.get("/options", { params: t }),
207
207
  getOptions: (t, e) => p.get(t ? `/${t}/options` : "/options", {
@@ -245,45 +245,45 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
245
245
  * @returns {Promise<AxiosResponse>}
246
246
  */
247
247
  deleteAttachment: (t) => p.delete("/attachment/bulk", { params: t })
248
- }, k = s({
248
+ }, G = s({
249
249
  prefix: "/tracking/v2/missing"
250
- }), ht = {
250
+ }), qt = {
251
251
  /**
252
252
  * To mark as found.
253
253
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
254
254
  */
255
- putMarkAsFound: (t) => k.put("/found", t),
256
- putReportMissing: (t, e) => k.put(`/report-missing/${t}`, e),
257
- getData: (t) => k.get("/", { params: t }),
258
- getDetail: (t) => k.get(`/${t}`),
259
- getOptions: (t) => k.get("/options", { params: t })
260
- }, G = s({
261
- prefix: "/missing-tracking/v2"
262
- }), qt = {
263
- putFoundAsset: (t) => G.put("/found", t),
264
- putReportMissing: (t, e) => G.put(`/${t}/report-missing`, e),
255
+ putMarkAsFound: (t) => G.put("/found", t),
256
+ putReportMissing: (t, e) => G.put(`/report-missing/${t}`, e),
265
257
  getData: (t) => G.get("/", { params: t }),
266
- getDataOptions: (t) => G.get("/options", { params: t }),
267
- getDetail: (t) => G.get(`/${t}`)
268
- }, st = s({
269
- prefix: "/v2/notification",
270
- env: "APP_LOGS_NOTIFICATION_API"
258
+ getDetail: (t) => G.get(`/${t}`),
259
+ getOptions: (t) => G.get("/options", { params: t })
260
+ }, x = s({
261
+ prefix: "/missing-tracking/v2"
271
262
  }), Bt = {
272
- getNotifications: (t) => st.get("/", { params: t }),
273
- readNotification: (t) => st.put(`/${t}`)
263
+ putFoundAsset: (t) => x.put("/found", t),
264
+ putReportMissing: (t, e) => x.put(`/${t}/report-missing`, e),
265
+ getData: (t) => x.get("/", { params: t }),
266
+ getDataOptions: (t) => x.get("/options", { params: t }),
267
+ getDetail: (t) => x.get(`/${t}`)
274
268
  }, nt = s({
275
- prefix: "/utility/v2/notification"
269
+ prefix: "/v2/notification",
270
+ env: "APP_LOGS_NOTIFICATION_API"
276
271
  }), kt = {
277
272
  getNotifications: (t) => nt.get("/", { params: t }),
278
273
  readNotification: (t) => nt.put(`/${t}`)
279
- }, vt = s({
274
+ }, ot = s({
275
+ prefix: "/utility/v2/notification"
276
+ }), Gt = {
277
+ getNotifications: (t) => ot.get("/", { params: t }),
278
+ readNotification: (t) => ot.put(`/${t}`)
279
+ }, yt = s({
280
280
  prefix: "/v2/session-log",
281
281
  env: "APP_LOGS_NOTIFICATION_API"
282
- }), Gt = {
283
- postLogout: () => vt.post("/logout")
282
+ }), xt = {
283
+ postLogout: () => yt.post("/logout")
284
284
  }, i = s({
285
285
  prefix: "/tag/v2"
286
- }), xt = {
286
+ }), _t = {
287
287
  getScanQR: (t) => i.get("/qr", { params: { tag: t } }),
288
288
  getScanRFID: (t) => i.get("/rfid", { params: { tag: t } }),
289
289
  getRFIDQRTAG: (t) => i.get("/rfid-qr/scan", { params: t }),
@@ -320,10 +320,10 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
320
320
  },
321
321
  putReportTAG: (t, e) => i.put(`/tag-transaction/report/${t}`, e),
322
322
  putDeclineReport: (t, e) => i.put(`/report/decline-report/${e}`, t)
323
- }, N = s({
323
+ }, M = s({
324
324
  prefix: "/tracking/v2/tracking"
325
- }), _t = {
326
- getTrackingDetail: (t) => N.get(`/${t}`),
325
+ }), Et = {
326
+ getTrackingDetail: (t) => M.get(`/${t}`),
327
327
  putFoundAsset: (t, e, r) => {
328
328
  const a = {
329
329
  tag: t,
@@ -331,13 +331,13 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
331
331
  serialNumber: r,
332
332
  type: "Global"
333
333
  };
334
- return N.put("/found", { params: a });
334
+ return M.put("/found", { params: a });
335
335
  },
336
- putReportPermanentlyMissing: (t, e) => N.put(`/report-permanently-missing/${t}`, e),
337
- putMoveBack: (t) => N.put("/tracking/move-back", t)
336
+ putReportPermanentlyMissing: (t, e) => M.put(`/report-permanently-missing/${t}`, e),
337
+ putMoveBack: (t) => M.put("/tracking/move-back", t)
338
338
  }, u = s({
339
339
  prefix: "/settings-user-role/v2"
340
- }), Et = {
340
+ }), Ft = {
341
341
  reLogin: (t) => u.post("/auth/login", t),
342
342
  changePassword: (t) => u.put("/users/change-password", t),
343
343
  /**
@@ -388,7 +388,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
388
388
  })
389
389
  }, c = s({
390
390
  prefix: "/settings-user-role-go/v2"
391
- }), Ft = {
391
+ }), Nt = {
392
392
  /**
393
393
  * Retrieves the user list as dropdown options.
394
394
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
@@ -425,7 +425,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
425
425
  getUserDetailUserAssetAssignedOption: (t, e) => c.get(`/users/${t}/assigned-asset/option`, { params: e })
426
426
  }, P = s({
427
427
  prefix: "/settings-user-role/v2/sub-users"
428
- }), Nt = {
428
+ }), Mt = {
429
429
  // Sub User
430
430
  getSubUserList: (t, e) => P.get(`/${t}`, { params: e }),
431
431
  getSubUserOptions: (t, e) => P.get(`/${t}/option`, { params: e }),
@@ -443,7 +443,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
443
443
  getBorrowedAssetOptions: (t, e) => P.get(`/${t}/borrowed-asset/options`, { params: e })
444
444
  }, m = s({
445
445
  prefix: "/settings-user-role-go/v2/users"
446
- }), Mt = {
446
+ }), Ht = {
447
447
  // Sub User
448
448
  getSubUserList: (t, e) => m.get(`/${t}/sub-users`, { params: e }),
449
449
  getSubUserOptions: (t, e) => m.get(`/${t}/sub-users/option`, { params: e }),
@@ -471,23 +471,23 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
471
471
  getAssignedAssetOptions: (t, e, r) => m.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
472
472
  params: r
473
473
  })
474
- }, M = s({
474
+ }, H = s({
475
475
  env: "APP_ADMIN_API",
476
476
  prefix: "/settings-attribute/languages"
477
- }), Ht = {
477
+ }), Vt = {
478
478
  /**
479
479
  * Fetch all translation messages for a specific locale.
480
480
  * @param locale The locale code (e.g., 'en', 'id').
481
481
  * @returns A promise resolving to a key-value record of messages.
482
482
  */
483
- getMessages: (t) => M.get(`/${t}/translations`),
483
+ getMessages: (t) => H.get(`/${t}/translations`),
484
484
  /**
485
485
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
486
486
  *
487
487
  * @returns Promise Array of options
488
488
  */
489
489
  getLanguageOptions: async () => {
490
- const { data: t } = await M.get("/dropdown");
490
+ const { data: t } = await H.get("/dropdown");
491
491
  return t.data;
492
492
  },
493
493
  /**
@@ -497,7 +497,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
497
497
  * @returns Promise LanguageMeta
498
498
  */
499
499
  getLanguageOptionMeta: async (t) => {
500
- const { data: e } = await M.get(
500
+ const { data: e } = await H.get(
501
501
  "/dropdown/" + t
502
502
  );
503
503
  return e.data;
@@ -509,42 +509,42 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
509
509
  * @param locale Target locale code.
510
510
  */
511
511
  translateText: async (t, e) => {
512
- const { data: r } = await M.post("/translate", {
512
+ const { data: r } = await H.post("/translate", {
513
513
  q: t,
514
514
  target: e
515
515
  });
516
516
  return r.data.translations[t];
517
517
  }
518
- }, ot = s({
518
+ }, at = s({
519
519
  prefix: "/dashboard/v2/dashboard"
520
- }), Vt = {
521
- getLatestTask: (t) => ot.get("/latest-task", { params: t }),
522
- getSummary: (t) => ot.get("/summary", { params: t })
523
- }, J = s({
524
- prefix: "/alias-code/api/alias-code"
525
520
  }), jt = {
526
- getAliasCode: () => J.get("/"),
527
- postAliasCode: (t) => J.post("/", t),
528
- getAliasCodeList: (t) => J.get(`/${t.object}/code-list`, { params: t })
521
+ getLatestTask: (t) => at.get("/latest-task", { params: t }),
522
+ getSummary: (t) => at.get("/summary", { params: t })
529
523
  }, W = s({
530
- prefix: "/settings-attribute-go/v2/alias-code"
524
+ prefix: "/alias-code/api/alias-code"
531
525
  }), Qt = {
532
526
  getAliasCode: () => W.get("/"),
533
527
  postAliasCode: (t) => W.post("/", t),
534
528
  getAliasCodeList: (t) => W.get(`/${t.object}/code-list`, { params: t })
535
- }, at = s({
536
- prefix: "/settings-attribute/v2/general-settings"
529
+ }, K = s({
530
+ prefix: "/settings-attribute-go/v2/alias-code"
537
531
  }), Yt = {
538
- getGeneralSettings: () => at.get("/"),
539
- putUpdateGeneralSettings: (t) => at.put("/", t)
532
+ getAliasCode: () => K.get("/"),
533
+ postAliasCode: (t) => K.post("/", t),
534
+ getAliasCodeList: (t) => K.get(`/${t.object}/code-list`, { params: t })
540
535
  }, it = s({
541
- prefix: "/settings-attribute-go/v2/general-settings"
536
+ prefix: "/settings-attribute/v2/general-settings"
542
537
  }), Jt = {
543
538
  getGeneralSettings: () => it.get("/"),
544
539
  putUpdateGeneralSettings: (t) => it.put("/", t)
540
+ }, ut = s({
541
+ prefix: "/settings-attribute-go/v2/general-settings"
542
+ }), Wt = {
543
+ getGeneralSettings: () => ut.get("/"),
544
+ putUpdateGeneralSettings: (t) => ut.put("/", t)
545
545
  }, U = s({
546
546
  prefix: "/settings-attribute/v2/custom-field"
547
- }), Wt = {
547
+ }), Kt = {
548
548
  getCustomField: async (t) => U.get("/", { params: t }),
549
549
  getCustomFieldsByCategory: (t, e) => U.get(`/${t}`, { params: e }),
550
550
  getOptions: async (t) => U.get("/options", { params: t }),
@@ -552,18 +552,18 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
552
552
  putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
553
553
  putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
554
554
  deleteCustomField: async (t) => U.delete("/bulk", { data: t })
555
- }, R = s({
555
+ }, D = s({
556
556
  prefix: "/settings-attribute-go/v2/custom-field"
557
- }), Kt = {
558
- getCustomField: async (t) => R.get("/", { params: t }),
559
- getOptions: async (t) => R.get("/options", { params: t }),
560
- postCreateCustomField: async (t, e) => R.post("/", e, { params: t }),
561
- putEditCustomField: async (t, e, r) => R.put(`/${r}`, e, { params: t }),
562
- putChangeStatus: async (t, e) => R.put("/bulk", e, { params: t }),
563
- deleteCustomField: async (t) => R.delete("/bulk", { params: t })
564
- }, K = ({ headers: t = {}, params: e = {} } = {}) => {
565
- const r = q("APP_COUNTRY_STATE_API"), a = q("APP_COUNTRY_STATE_API_KEY");
566
- return lt.create({
557
+ }), zt = {
558
+ getCustomField: async (t) => D.get("/", { params: t }),
559
+ getOptions: async (t) => D.get("/options", { params: t }),
560
+ postCreateCustomField: async (t, e) => D.post("/", e, { params: t }),
561
+ putEditCustomField: async (t, e, r) => D.put(`/${r}`, e, { params: t }),
562
+ putChangeStatus: async (t, e) => D.put("/bulk", e, { params: t }),
563
+ deleteCustomField: async (t) => D.delete("/bulk", { params: t })
564
+ }, z = ({ headers: t = {}, params: e = {} } = {}) => {
565
+ const r = B("APP_COUNTRY_STATE_API"), a = B("APP_COUNTRY_STATE_API_KEY");
566
+ return dt.create({
567
567
  baseURL: `${r}/v1`,
568
568
  headers: {
569
569
  "Content-type": "application/json",
@@ -572,13 +572,13 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
572
572
  },
573
573
  params: e
574
574
  });
575
- }, zt = {
576
- getCountry: () => K().get("/countries"),
577
- getState: (t) => K().get(`/countries/${t}/states`),
578
- getCity: (t, e) => K().get(`/countries/${t}/states/${e}/cities`)
575
+ }, Xt = {
576
+ getCountry: () => z().get("/countries"),
577
+ getState: (t) => z().get(`/countries/${t}/states`),
578
+ getCity: (t, e) => z().get(`/countries/${t}/states/${e}/cities`)
579
579
  }, $ = s({
580
580
  prefix: "/routine/v2"
581
- }), Xt = {
581
+ }), Zt = {
582
582
  getList: (t) => $.get("/service-center", { params: t }),
583
583
  postList: (t) => $.post("/service-center", t),
584
584
  putList: (t, e) => $.put(`/service-center/${t}`, e),
@@ -591,19 +591,19 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
591
591
  getActivityOptions: (t) => $.get("/service-activities/options", { params: t }),
592
592
  getActivityDetail: (t) => $.get(`/service-activities/${t}`),
593
593
  getActivityLog: (t) => $.get(`/service-activities/${t}/activity-log`)
594
- }, yt = s({
594
+ }, St = s({
595
595
  prefix: "/settings-attribute/v2/brands"
596
- }), Zt = {
597
- getDropdown: (t) => yt.get("/dropdown", { params: t })
598
- }, D = s({
599
- prefix: "/file-manager/v2"
600
596
  }), te = {
597
+ getDropdown: (t) => St.get("/dropdown", { params: t })
598
+ }, w = s({
599
+ prefix: "/file-manager/v2"
600
+ }), ee = {
601
601
  /**
602
602
  * Get storage information.
603
603
  *
604
604
  * @returns {Promise<AxiosResponse>} The Axios Response.
605
605
  */
606
- getStorageInformation: () => D.get("/files/storage"),
606
+ getStorageInformation: () => w.get("/files/storage"),
607
607
  /**
608
608
  * Get file manager data.
609
609
  *
@@ -611,7 +611,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
611
611
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
612
612
  * @returns {Promise<AxiosResponse>} The Axios Response.
613
613
  */
614
- getFileManager: (t, e) => D.get(`/${t}`, { params: e }),
614
+ getFileManager: (t, e) => w.get(`/${t}`, { params: e }),
615
615
  /**
616
616
  * Get file manager options.
617
617
  *
@@ -619,7 +619,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
619
619
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
620
620
  * @returns {Promise<AxiosResponse>} The Axios Response.
621
621
  */
622
- getFileManagerOption: (t, e) => D.get(`/${t}/options`, { params: e }),
622
+ getFileManagerOption: (t, e) => w.get(`/${t}/options`, { params: e }),
623
623
  /**
624
624
  * Recover files.
625
625
  *
@@ -627,7 +627,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
627
627
  * @param {object} body - The body of the request.
628
628
  * @returns {Promise<AxiosResponse>} The Axios Response.
629
629
  */
630
- recoverFiles: (t, e) => D.put(`/${t}/recover`, e),
630
+ recoverFiles: (t, e) => w.put(`/${t}/recover`, e),
631
631
  /**
632
632
  * Delete files.
633
633
  *
@@ -635,7 +635,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
635
635
  * @param {DeleteFileManagerDto} params - The params of the request.
636
636
  * @returns {Promise<AxiosResponse>} The Axios Response.
637
637
  */
638
- deleteFiles: (t, e) => D.delete(`/${t}`, { params: e }),
638
+ deleteFiles: (t, e) => w.delete(`/${t}`, { params: e }),
639
639
  /**
640
640
  * Delete files permanently.
641
641
  *
@@ -643,16 +643,16 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
643
643
  * @param {object} body - The body of the request.
644
644
  * @returns {Promise<AxiosResponse>} The Axios Response.
645
645
  */
646
- deletePermanently: (t, e) => D.delete(`/${t}/delete-permanent`, { params: e })
647
- }, w = s({
646
+ deletePermanently: (t, e) => w.delete(`/${t}/delete-permanent`, { params: e })
647
+ }, h = s({
648
648
  prefix: "/utility/v2"
649
- }), ee = {
649
+ }), re = {
650
650
  /**
651
651
  * Get storage information.
652
652
  *
653
653
  * @returns {Promise<AxiosResponse>} The Axios Response.
654
654
  */
655
- getStorageInformation: () => w.get("/files/storage"),
655
+ getStorageInformation: () => h.get("/files/storage"),
656
656
  /**
657
657
  * Get file manager data.
658
658
  *
@@ -660,7 +660,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
660
660
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
661
661
  * @returns {Promise<AxiosResponse>} The Axios Response.
662
662
  */
663
- getFileManager: (t, e) => w.get(`/${t}`, { params: e }),
663
+ getFileManager: (t, e) => h.get(`/${t}`, { params: e }),
664
664
  /**
665
665
  * Get file manager options.
666
666
  *
@@ -668,7 +668,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
668
668
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
669
669
  * @returns {Promise<AxiosResponse>} The Axios Response.
670
670
  */
671
- getFileManagerOption: (t, e) => w.get(`/${t}/options`, { params: e }),
671
+ getFileManagerOption: (t, e) => h.get(`/${t}/options`, { params: e }),
672
672
  /**
673
673
  * Recover files.
674
674
  *
@@ -676,7 +676,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
676
676
  * @param {object} body - The body of the request.
677
677
  * @returns {Promise<AxiosResponse>} The Axios Response.
678
678
  */
679
- recoverFiles: (t, e) => w.put(`/${t}/recover`, e),
679
+ recoverFiles: (t, e) => h.put(`/${t}/recover`, e),
680
680
  /**
681
681
  * Delete files.
682
682
  *
@@ -684,7 +684,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
684
684
  * @param {DeleteFileManagerDto} params - The params of the request.
685
685
  * @returns {Promise<AxiosResponse>} The Axios Response.
686
686
  */
687
- deleteFiles: (t, e) => w.delete(`/${t}`, { params: e }),
687
+ deleteFiles: (t, e) => h.delete(`/${t}`, { params: e }),
688
688
  /**
689
689
  * Delete files permanently.
690
690
  *
@@ -692,10 +692,10 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
692
692
  * @param {object} body - The body of the request.
693
693
  * @returns {Promise<AxiosResponse>} The Axios Response.
694
694
  */
695
- deletePermanently: (t, e) => w.delete(`/${t}/delete-permanent`, { params: e })
695
+ deletePermanently: (t, e) => h.delete(`/${t}/delete-permanent`, { params: e })
696
696
  }, T = s({
697
697
  prefix: "/iot/v2/reader"
698
- }), re = {
698
+ }), se = {
699
699
  getData: (t) => T.get("/", { params: t }),
700
700
  getDataOptions: (t) => T.get("/options", { params: t }),
701
701
  getActivityLogData: (t) => T.get("/activity-log", { params: t }),
@@ -706,7 +706,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
706
706
  putData: (t, e) => T.put(`/${t}`, e)
707
707
  }, l = s({
708
708
  prefix: "/settings-user-role/v2"
709
- }), se = {
709
+ }), ne = {
710
710
  /**
711
711
  * Retrieves the transaction role for the given group and transaction name.
712
712
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -792,7 +792,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
792
792
  }
793
793
  }, d = s({
794
794
  prefix: "/settings-user-role-go/v2"
795
- }), ne = {
795
+ }), oe = {
796
796
  /**
797
797
  * Retrieves the transaction role for the given group and transaction name.
798
798
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -876,26 +876,26 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
876
876
  }
877
877
  return d.put("/system-roles", t);
878
878
  }
879
- }, x = s({
879
+ }, _ = s({
880
880
  prefix: "/settings-attribute/v2/open-api"
881
- }), oe = {
882
- getOpenAPIDocs: (t) => x.get(`/${t.doc}`),
883
- putGenerateToken: () => x.put("/generate"),
881
+ }), ae = {
882
+ getOpenAPIDocs: (t) => _.get(`/${t.doc}`),
883
+ putGenerateToken: () => _.put("/generate"),
884
884
  // This is if the dummy was not dummy
885
- getToken: () => x.get(""),
886
- putRequestOpenAPI: () => x.put("/request"),
887
- putCancelRequestOpenAPI: () => x.put("/cancel-request")
888
- }, H = s({
885
+ getToken: () => _.get(""),
886
+ putRequestOpenAPI: () => _.put("/request"),
887
+ putCancelRequestOpenAPI: () => _.put("/cancel-request")
888
+ }, V = s({
889
889
  prefix: "/settings-attribute-go/v2/open-api"
890
- }), ae = {
891
- putGenerateToken: () => H.put("/generate"),
890
+ }), ie = {
891
+ putGenerateToken: () => V.put("/generate"),
892
892
  // This is if the dummy was not dummy
893
- getToken: () => H.get(""),
894
- putRequestOpenAPI: () => H.put("/request"),
895
- putCancelRequestOpenAPI: () => H.put("/cancel-request")
893
+ getToken: () => V.get(""),
894
+ putRequestOpenAPI: () => V.put("/request"),
895
+ putCancelRequestOpenAPI: () => V.put("/cancel-request")
896
896
  }, C = s({
897
897
  prefix: "/import/v2"
898
- }), ie = {
898
+ }), ue = {
899
899
  getImport: (t, e) => C.get(`/${t}`, { params: e }),
900
900
  postImportTemporary: (t, e) => {
901
901
  const r = { "Content-Type": "multipart/form-data" };
@@ -908,7 +908,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
908
908
  putImportCancelProgress: (t) => C.put(`/${t}/cancel-progress`)
909
909
  }, O = s({
910
910
  prefix: "/import-go/v2"
911
- }), ue = {
911
+ }), ge = {
912
912
  getImport: (t, e) => O.get(`/${t}`, { params: e }),
913
913
  postImportTemporary: (t, e) => {
914
914
  const r = { "Content-Type": "multipart/form-data" };
@@ -919,18 +919,18 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
919
919
  putEditImport: (t, e) => O.put(`/${t}`, e),
920
920
  postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
921
921
  putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
922
- }, h = s({
922
+ }, q = s({
923
923
  prefix: "/settings-attribute/v2/asset-name"
924
- }), ge = {
925
- getDropdown: (t) => h.get("/dropdown", { params: t }),
926
- getAssetNameDetail: (t) => h.get(`/${t}`),
927
- getAssetsByAssetName: (t, e) => h.get(`/${t}/list-asset`, { params: e }),
928
- getAssetNameList: (t) => h.get("/", { params: t }),
929
- getUnpairedAssetName: (t) => h.get("/unpaired", { params: t }),
930
- getOptions: (t) => h.get("/options", { params: t })
924
+ }), pe = {
925
+ getDropdown: (t) => q.get("/dropdown", { params: t }),
926
+ getAssetNameDetail: (t) => q.get(`/${t}`),
927
+ getAssetsByAssetName: (t, e) => q.get(`/${t}/list-asset`, { params: e }),
928
+ getAssetNameList: (t) => q.get("/", { params: t }),
929
+ getUnpairedAssetName: (t) => q.get("/unpaired", { params: t }),
930
+ getOptions: (t) => q.get("/options", { params: t })
931
931
  }, o = s({
932
932
  prefix: "/assignment/v2"
933
- }), pe = {
933
+ }), ce = {
934
934
  getPreListData: (t) => o.get("/prelist", { params: t }),
935
935
  getPreListOptions: (t) => o.get("/prelist/options", { params: t }),
936
936
  getRequestData: (t) => o.get("/prelist/request", { params: t }),
@@ -988,7 +988,7 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
988
988
  putCancelReportById: async (t) => o.put(`/transaction/request/${t.id}/cancel-report`)
989
989
  }, b = s({
990
990
  prefix: "/assignment-go/v2"
991
- }), ce = {
991
+ }), le = {
992
992
  getTransactionData: (t) => b.get("/transaction", { params: t }),
993
993
  getTransactionOptions: (t) => b.get("/transaction/options", { params: t }),
994
994
  getDetailTransactionLog: (t) => b.get(`/transaction/request/${t}/transaction-log`),
@@ -996,39 +996,39 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
996
996
  putTransaction: (t) => b.put("/transaction", t),
997
997
  putUnassignTransaction: (t) => b.put("/transaction/unassign", t),
998
998
  putCancelReport: (t) => b.put("/transaction/request/cancel-report", t)
999
- }, V = s({
999
+ }, j = s({
1000
1000
  prefix: "/license/v2"
1001
- }), le = {
1002
- getGroupQuota: (t) => V.get(`/${t}/allocation-quota`),
1003
- getSubGroupQuota: (t) => V.get(`/${t}/subgroup-quota`),
1004
- editSubGroupQuota: (t, e) => V.put(`/${t}/set-group-quota`, e),
1005
- getTotalLicense: () => V.get("/total-license")
1006
- }, ut = s({
1007
- prefix: "/repair/v2/damage"
1008
1001
  }), de = {
1002
+ getGroupQuota: (t) => j.get(`/${t}/allocation-quota`),
1003
+ getSubGroupQuota: (t) => j.get(`/${t}/subgroup-quota`),
1004
+ editSubGroupQuota: (t, e) => j.put(`/${t}/set-group-quota`, e),
1005
+ getTotalLicense: () => j.get("/total-license")
1006
+ }, gt = s({
1007
+ prefix: "/repair/v2/damage"
1008
+ }), Ae = {
1009
1009
  putReportDamage: (t, e) => {
1010
1010
  const r = { "Content-Type": "multipart/form-data" };
1011
- return ut.put(`/report-damage/${t}`, e, { headers: r });
1011
+ return gt.put(`/report-damage/${t}`, e, { headers: r });
1012
1012
  },
1013
1013
  /**
1014
1014
  * To mark as repaired.
1015
1015
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
1016
1016
  */
1017
- putMarkAsRepaired: (t) => ut.put("/repair", t)
1018
- }, _ = s({
1017
+ putMarkAsRepaired: (t) => gt.put("/repair", t)
1018
+ }, E = s({
1019
1019
  prefix: "/damage-repair-ticketing/v2"
1020
- }), Ae = {
1021
- getDamageReportList: (t) => _.get("/", { params: t }),
1022
- getDamageReportListFilterOptions: (t) => _.get("/options", { params: t }),
1023
- getDamageReportDetail: (t) => _.get(`/${t}`),
1020
+ }), $e = {
1021
+ getDamageReportList: (t) => E.get("/", { params: t }),
1022
+ getDamageReportListFilterOptions: (t) => E.get("/options", { params: t }),
1023
+ getDamageReportDetail: (t) => E.get(`/${t}`),
1024
1024
  putReportDamage: (t, e) => {
1025
1025
  const r = { "Content-Type": "multipart/form-data" };
1026
- return _.put(`/${t}/report-damage`, e, { headers: r });
1026
+ return E.put(`/${t}/report-damage`, e, { headers: r });
1027
1027
  },
1028
- putMarkAsRepaired: (t) => _.put("/repair", t)
1028
+ putMarkAsRepaired: (t) => E.put("/repair", t)
1029
1029
  }, n = s({
1030
1030
  prefix: "/borrowing/v2"
1031
- }), $e = {
1031
+ }), me = {
1032
1032
  getTaskBorrowing: async (t) => n.get("/transaction/my-asset/task", { params: t }),
1033
1033
  getTaskBorrowingOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
1034
1034
  getBorrowedAsset: async (t) => n.get("/transaction/my-asset/borrowed-asset", { params: t }),
@@ -1092,55 +1092,55 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1092
1092
  id: t
1093
1093
  }),
1094
1094
  putBorrowingEditExtension: (t) => n.put("/transaction/request/duration", t)
1095
- }, gt = s({
1095
+ }, pt = s({
1096
1096
  prefix: "/assets/v2"
1097
- }), me = {
1098
- getHistory: async (t) => gt.get("/my-asset", { params: t }),
1099
- getHistoryOptions: async (t) => gt.get("/my-asset/options", { params: t })
1100
- }, j = s({
1101
- prefix: "/repair/v2"
1102
1097
  }), ve = {
1103
- getRepairList: (t) => j.get("/my-asset/repair", { params: t }),
1104
- getFilterOptions: (t) => j.get("/my-asset/repair/options", { params: t }),
1105
- getAssetRepairTicketing: (t, e) => j.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1106
- putConfirmRepair: (t) => j.put(`/repair/${t}/confirm-repair`)
1107
- }, z = s({
1098
+ getHistory: async (t) => pt.get("/my-asset", { params: t }),
1099
+ getHistoryOptions: async (t) => pt.get("/my-asset/options", { params: t })
1100
+ }, Q = s({
1101
+ prefix: "/repair/v2"
1102
+ }), ye = {
1103
+ getRepairList: (t) => Q.get("/my-asset/repair", { params: t }),
1104
+ getFilterOptions: (t) => Q.get("/my-asset/repair/options", { params: t }),
1105
+ getAssetRepairTicketing: (t, e) => Q.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1106
+ putConfirmRepair: (t) => Q.put(`/repair/${t}/confirm-repair`)
1107
+ }, X = s({
1108
1108
  env: "APP_GLOBAL_SETTINGS_API",
1109
1109
  prefix: "/v1/global-settings/auth"
1110
- }), L = s({
1110
+ }), R = s({
1111
1111
  env: "APP_TAGSAMURAI_API",
1112
1112
  prefix: "/settings-user-role/v2/auth"
1113
- }), pt = (t) => {
1113
+ }), ct = (t) => {
1114
1114
  var e, r, a, v;
1115
1115
  return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((v = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : v.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
1116
- }, ye = {
1116
+ }, Se = {
1117
1117
  login: (t) => {
1118
1118
  const e = { ...t, isMobile: !1 };
1119
- return z.post("/login", e);
1119
+ return X.post("/login", e);
1120
1120
  },
1121
- reLoginGlobal: (t) => (z.interceptors.response.use((e) => e, pt), z.post("/login", t)),
1122
- reLogin: (t) => (L.interceptors.response.use((e) => e, pt), L.post("/login", t)),
1121
+ reLoginGlobal: (t) => (X.interceptors.response.use((e) => e, ct), X.post("/login", t)),
1122
+ reLogin: (t) => (R.interceptors.response.use((e) => e, ct), R.post("/login", t)),
1123
1123
  requestOTP: (t) => {
1124
1124
  const e = { email: t };
1125
- return L.post("/request-otp", e);
1125
+ return R.post("/request-otp", e);
1126
1126
  },
1127
1127
  requestResetPassLink: (t) => {
1128
1128
  const e = { email: t };
1129
- return L.post("/request-reset-link", e);
1129
+ return R.post("/request-reset-link", e);
1130
1130
  },
1131
- setPassword: (t) => L.post("/set-password", t),
1132
- verifyToken: (t) => L.get(`/verify-token/${t}`),
1131
+ setPassword: (t) => R.post("/set-password", t),
1132
+ verifyToken: (t) => R.get(`/verify-token/${t}`),
1133
1133
  confirmEmailChange: (t) => {
1134
1134
  const e = { token: t };
1135
- return L.put("/confirm-email-change/confirm", e);
1135
+ return R.put("/confirm-email-change/confirm", e);
1136
1136
  }
1137
- }, et = "/transfer/v2", Q = s({
1138
- prefix: `${et}/prelist`
1137
+ }, rt = "/transfer/v2", Y = s({
1138
+ prefix: `${rt}/prelist`
1139
1139
  }), A = s({
1140
- prefix: `${et}/transaction`
1141
- }), E = s({
1142
- prefix: `${et}/approval`
1143
- }), Se = {
1140
+ prefix: `${rt}/transaction`
1141
+ }), F = s({
1142
+ prefix: `${rt}/approval`
1143
+ }), fe = {
1144
1144
  // ------ TRANSACTION ------
1145
1145
  getTransactions: (t) => A.get("/", { params: t }),
1146
1146
  getTransactionDetail: (t) => A.get(`/${t}`),
@@ -1177,135 +1177,152 @@ const $t = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1177
1177
  getApproverList: (t) => A.get(`/${t}/approval-history`),
1178
1178
  putHandoverTransaction: (t, e) => A.put(`/${t}/handover`, e),
1179
1179
  // ------ PRELIST ------
1180
- getPrelist: (t) => Q.get("/", { params: t }),
1181
- postAddPrelistData: (t) => Q.post("/", t),
1182
- deletePrelist: (t) => Q.delete("/", {
1180
+ getPrelist: (t) => Y.get("/", { params: t }),
1181
+ postAddPrelistData: (t) => Y.post("/", t),
1182
+ deletePrelist: (t) => Y.delete("/", {
1183
1183
  params: {
1184
1184
  id: JSON.stringify(t)
1185
1185
  }
1186
1186
  }),
1187
1187
  getPrelistAssets: (t) => {
1188
1188
  const e = { id: t };
1189
- return Q.get("/request", { params: e });
1189
+ return Y.get("/request", { params: e });
1190
1190
  },
1191
1191
  // APPROVAL
1192
1192
  getApprovals: (t, e) => {
1193
1193
  const r = { ...e, status: JSON.stringify([t]) };
1194
- return E.get("/", { params: r });
1194
+ return F.get("/", { params: r });
1195
1195
  },
1196
1196
  getApprovalOptions: (t, e) => {
1197
1197
  const r = {
1198
1198
  status: JSON.stringify([t])
1199
1199
  };
1200
- return r[e] = !0, E.get("/options", { params: r });
1200
+ return r[e] = !0, F.get("/options", { params: r });
1201
1201
  },
1202
1202
  getApprovalDetail: (t, e) => {
1203
1203
  const r = {
1204
1204
  groupType: e
1205
1205
  };
1206
- return E.get(`/transaction/${t}`, { params: r });
1206
+ return F.get(`/transaction/${t}`, { params: r });
1207
1207
  },
1208
1208
  getApprovalDetailOptions: (t, e, r) => {
1209
1209
  const a = {};
1210
- return a[e] = !0, a.groupType = r, E.get(`/transaction/${t}/options`, { params: a });
1210
+ return a[e] = !0, a.groupType = r, F.get(`/transaction/${t}/options`, { params: a });
1211
1211
  },
1212
- putUpdateApproval: (t) => E.put("/approve", t)
1213
- }, X = s({
1212
+ putUpdateApproval: (t) => F.put("/approve", t)
1213
+ }, Z = s({
1214
1214
  prefix: "/disposal/v2/report"
1215
- }), fe = {
1216
- getReportedDisposal: (t) => X.get("", { params: t }),
1217
- postReportDisposal: (t) => X.post("", t),
1218
- deleteCancelReport: (t) => X.delete("/cancel-report", { params: t })
1219
- }, Y = s({
1220
- prefix: "/transfer-go/v2"
1221
1215
  }), Pe = {
1222
- getTransactionData: (t) => Y.get("/transaction", { params: t }),
1223
- getTransactionOptions: (t) => Y.get("/transaction/options", { params: t }),
1224
- getTransactionLog: (t) => Y.get(`/transaction/request/${t}/transaction-log`),
1225
- postCreateTransaction: (t) => Y.post("/transaction", t)
1226
- }, Z = s({
1227
- prefix: "/audit/v2"
1216
+ getReportedDisposal: (t) => Z.get("", { params: t }),
1217
+ postReportDisposal: (t) => Z.post("", t),
1218
+ deleteCancelReport: (t) => Z.delete("/cancel-report", { params: t })
1219
+ }, J = s({
1220
+ prefix: "/transfer-go/v2"
1228
1221
  }), Te = {
1229
- getAudit: (t, e) => Z.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1230
- getAuditOption: (t, e) => Z.get(`/audit/schedule/asset-detail/${t}/options`, {
1222
+ getTransactionData: (t) => J.get("/transaction", { params: t }),
1223
+ getTransactionOptions: (t) => J.get("/transaction/options", { params: t }),
1224
+ getTransactionLog: (t) => J.get(`/transaction/request/${t}/transaction-log`),
1225
+ postCreateTransaction: (t) => J.post("/transaction", t)
1226
+ }, tt = s({
1227
+ prefix: "/audit/v2"
1228
+ }), Ie = {
1229
+ getAudit: (t, e) => tt.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1230
+ getAuditOption: (t, e) => tt.get(`/audit/schedule/asset-detail/${t}/options`, {
1231
1231
  params: e
1232
1232
  }),
1233
- putSetActive: (t) => Z.put("/audit/asset/activation", t)
1234
- }, tt = s({
1233
+ putSetActive: (t) => tt.put("/audit/asset/activation", t)
1234
+ }, et = s({
1235
1235
  prefix: "/routine/v2"
1236
- }), Ie = {
1237
- getMaintenance: (t, e) => tt.get(`/routine-task/${t}`, { params: e }),
1238
- getMaintenanceOption: (t, e) => tt.get(`/routine-task/${t}/options`, { params: e }),
1239
- putSetActive: (t) => tt.put("/maintenable-asset/set-active", t)
1240
- }, St = s({
1241
- prefix: "/settings-attribute/v2/models"
1242
1236
  }), Ue = {
1243
- getDropdown: (t) => St.get("/dropdown", { params: t })
1244
- }, ct = s({
1245
- prefix: "/settings-attribute/v2/transaction-settings"
1237
+ getMaintenance: (t, e) => et.get(`/routine-task/${t}`, { params: e }),
1238
+ getMaintenanceOption: (t, e) => et.get(`/routine-task/${t}/options`, { params: e }),
1239
+ putSetActive: (t) => et.put("/maintenable-asset/set-active", t)
1240
+ }, ft = s({
1241
+ prefix: "/settings-attribute/v2/models"
1246
1242
  }), Ce = {
1247
- getData: () => ct.get("/"),
1248
- putData: (t) => ct.put("/", t)
1243
+ getDropdown: (t) => ft.get("/dropdown", { params: t })
1244
+ }, lt = s({
1245
+ prefix: "/settings-attribute/v2/transaction-settings"
1246
+ }), Oe = {
1247
+ getData: () => lt.get("/"),
1248
+ putData: (t) => lt.put("/", t)
1249
+ }, L = s({
1250
+ prefix: "/borrowing-go/v2"
1251
+ }), be = {
1252
+ getTransactions: async (t) => L.get("/transaction", { params: t }),
1253
+ getTransactionOptions: async (t) => L.get("/transaction/options", { params: t }),
1254
+ getTransactionLog: async (t) => L.get(`/transaction/request/${t}/transaction-log`),
1255
+ postTransaction: async (t) => L.post("/transaction", t),
1256
+ putTransaction: async (t) => L.put("/transaction", t),
1257
+ putTransactionReturn: async (t) => {
1258
+ const e = { id: t };
1259
+ return L.put("/transaction/return", e);
1260
+ },
1261
+ putCancelReport: async (t) => {
1262
+ const e = { id: t };
1263
+ return L.put("/transaction/return/cancel-report", e);
1264
+ }
1249
1265
  };
1250
1266
  export {
1251
- jt as AliasCodeServices,
1252
- Qt as AliasCodeServicesGo,
1253
- ge as AssetNameServices,
1254
- Dt as AssetServices,
1255
- wt as AssetServicesGo,
1256
- pe as AssignmentServices,
1257
- ce as AssignmentServicesGo,
1258
- Te as AuditServices,
1259
- ye as AuthServices,
1260
- $e as BorrowServices,
1261
- Zt as BrandServices,
1267
+ Qt as AliasCodeServices,
1268
+ Yt as AliasCodeServicesGo,
1269
+ pe as AssetNameServices,
1270
+ wt as AssetServices,
1271
+ ht as AssetServicesGo,
1272
+ ce as AssignmentServices,
1273
+ le as AssignmentServicesGo,
1274
+ Ie as AuditServices,
1275
+ Se as AuthServices,
1276
+ me as BorrowServices,
1277
+ be as BorrowServicesGo,
1278
+ te as BrandServices,
1262
1279
  Lt as ChangelogServices,
1263
- zt as CountryStateServices,
1264
- Wt as CustomFieldServices,
1265
- Kt as CustomFieldServicesGo,
1266
- de as DamageServices,
1267
- Ae as DamageServicesGo,
1268
- Vt as DashboardServices,
1269
- fe as DisposalServices,
1270
- te as FileManagerServices,
1271
- ee as FileManagerServicesGo,
1272
- Yt as GeneralSettingsServices,
1273
- Jt as GeneralSettingsServicesGo,
1274
- Ct as GroupCategoryServices,
1275
- Ot as GroupCategoryServicesGo,
1276
- Ht as I18nService,
1277
- ie as ImportServices,
1278
- ue as ImportServicesGo,
1279
- le as LicenseServices,
1280
- Rt as LogServicesGo,
1281
- ht as MissingServices,
1282
- qt as MissingServicesGo,
1283
- Ue as ModelTypeServices,
1284
- me as MyAssetServices,
1285
- bt as NotificationApprovalServices,
1286
- Bt as NotificationServices,
1287
- kt as NotificationServicesGo,
1288
- oe as OpenAPIServices,
1289
- ae as OpenAPIServicesGo,
1290
- re as ReaderServices,
1291
- ve as RepairServices,
1292
- se as RoleServices,
1293
- ne as RoleServicesGo,
1294
- Ie as RoutineServices,
1295
- Xt as ServiceCenterServices,
1296
- Gt as SessionLogServices,
1297
- Nt as SubUserServices,
1298
- Mt as SubUserServicesGo,
1299
- xt as TAGServices,
1300
- _t as TrackingServices,
1301
- Ce as TransactionSettingServices,
1302
- Se as TransferServices,
1303
- Pe as TransferServicesGo,
1304
- Et as UserServices,
1305
- Ft as UserServicesGo,
1306
- Ut as getAssetsFile,
1307
- q as getBaseURL,
1308
- It as getImageURL,
1309
- Tt as getImageURLGo,
1310
- Pt as queryParamsStringfy
1280
+ Xt as CountryStateServices,
1281
+ Kt as CustomFieldServices,
1282
+ zt as CustomFieldServicesGo,
1283
+ Ae as DamageServices,
1284
+ $e as DamageServicesGo,
1285
+ jt as DashboardServices,
1286
+ Pe as DisposalServices,
1287
+ ee as FileManagerServices,
1288
+ re as FileManagerServicesGo,
1289
+ Jt as GeneralSettingsServices,
1290
+ Wt as GeneralSettingsServicesGo,
1291
+ Ot as GroupCategoryServices,
1292
+ bt as GroupCategoryServicesGo,
1293
+ Vt as I18nService,
1294
+ ue as ImportServices,
1295
+ ge as ImportServicesGo,
1296
+ de as LicenseServices,
1297
+ Dt as LogServicesGo,
1298
+ qt as MissingServices,
1299
+ Bt as MissingServicesGo,
1300
+ Ce as ModelTypeServices,
1301
+ ve as MyAssetServices,
1302
+ Rt as NotificationApprovalServices,
1303
+ kt as NotificationServices,
1304
+ Gt as NotificationServicesGo,
1305
+ ae as OpenAPIServices,
1306
+ ie as OpenAPIServicesGo,
1307
+ se as ReaderServices,
1308
+ ye as RepairServices,
1309
+ ne as RoleServices,
1310
+ oe as RoleServicesGo,
1311
+ Ue as RoutineServices,
1312
+ Zt as ServiceCenterServices,
1313
+ xt as SessionLogServices,
1314
+ Mt as SubUserServices,
1315
+ Ht as SubUserServicesGo,
1316
+ _t as TAGServices,
1317
+ Et as TrackingServices,
1318
+ Oe as TransactionSettingServices,
1319
+ fe as TransferServices,
1320
+ Te as TransferServicesGo,
1321
+ Ft as UserServices,
1322
+ Nt as UserServicesGo,
1323
+ Ct as getAssetsFile,
1324
+ B as getBaseURL,
1325
+ Ut as getImageURL,
1326
+ It as getImageURLGo,
1327
+ Tt as queryParamsStringfy
1311
1328
  };