@tagsamurai/fats-api-services 1.0.0-alpha.211 → 1.0.0-alpha.213

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 St from "axios";
2
- const Tt = { 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" }, N = (t = "APP_API") => Tt["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: a = "", headers: T = {}, ...M } = t, ft = `${N(r)}${a}`, gt = JSON.parse(localStorage.getItem("user") ?? "{}"), Pt = gt.jwt ?? gt.token ?? "";
4
- return St.create({
1
+ import yt from "axios";
2
+ const Pt = { 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" }, N = (t = "APP_API") => Pt["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: a = "", headers: m = {}, ...M } = t, St = `${N(r)}${a}`, pt = JSON.parse(localStorage.getItem("user") ?? "{}"), ft = pt.jwt ?? pt.token ?? "";
4
+ return yt.create({
5
5
  ...M,
6
- baseURL: ft,
7
- headers: e ? T : {
6
+ baseURL: St,
7
+ headers: e ? m : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${Pt}`,
10
- ...T
9
+ Authorization: `Bearer ${ft}`,
10
+ ...m
11
11
  }
12
12
  });
13
- }, xt = (t) => {
13
+ }, kt = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,133 +21,132 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, kt = (t, e, r) => {
24
+ }, Et = (t, e, r) => {
25
25
  if (!t) return;
26
- const a = N("APP_API"), T = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
26
+ const a = N("APP_API"), m = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
28
28
  const M = new URLSearchParams();
29
- return e && (M.set("width", e.toString()), M.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${T}?${M.toString()}`;
29
+ return e && (M.set("width", e.toString()), M.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${m}?${M.toString()}`;
30
30
  }
31
- return T;
31
+ return m;
32
32
  }, _t = (t) => {
33
33
  if (!t) return;
34
- const e = N("APP_TAGSAMURAI_API");
34
+ const e = N();
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, Et = async (t, e = "excel") => await fetch(
36
+ }, Ft = async (t, e = "excel") => await fetch(
37
37
  `${N("APP_ASSETS_URL")}/${e}/${t}`
38
- ), I = s({
39
- prefix: "/settings-attribute/v2",
40
- env: "APP_TAGSAMURAI_API"
41
- }), Ft = {
38
+ ), C = s({
39
+ prefix: "/settings-attribute/v2"
40
+ }), Nt = {
42
41
  getGroupCategory: (t, e) => {
43
42
  const r = t === "category" ? t : "groups";
44
- return I.get(`/${r}/tree`, { params: e });
43
+ return C.get(`/${r}/tree`, { params: e });
45
44
  },
46
45
  getGroupCategoryList: (t, e, r) => {
47
46
  const a = t === "category" ? t : "groups";
48
- return I.get(`/${a}/${e}`, { params: r });
47
+ return C.get(`/${a}/${e}`, { params: r });
49
48
  },
50
49
  getNames: (t) => {
51
50
  const e = t === "category" ? t : "groups";
52
- return I.get(`/${e}/names`);
51
+ return C.get(`/${e}/names`);
53
52
  },
54
53
  getCodes: (t) => {
55
54
  const e = t === "category" ? t : "groups";
56
- return I.get(`/${e}/codes`);
55
+ return C.get(`/${e}/codes`);
57
56
  },
58
57
  postCreateGroupCategory: (t, e) => {
59
58
  const r = t === "category" ? t : "groups";
60
- return I.post(`/${r}`, e);
59
+ return C.post(`/${r}`, e);
61
60
  },
62
61
  putEditGroupCategory: (t, e, r) => {
63
62
  const a = t === "category" ? t : "groups";
64
- return I.put(`/${a}/${r}`, e);
63
+ return C.put(`/${a}/${r}`, e);
65
64
  },
66
- putMoveGroup: (t, e) => I.put(`/groups/${e}/move-group`, t),
67
- putEditBulkGroups: async (t) => I.put("/groups/bulk", t),
65
+ putMoveGroup: (t, e) => C.put(`/groups/${e}/move-group`, t),
66
+ putEditBulkGroups: async (t) => C.put("/groups/bulk", t),
68
67
  deleteGroupCategory: (t, e, r) => {
69
68
  const a = t === "category" ? t : "groups";
70
- return I.delete(`/${a}/${r}`, { data: e });
69
+ return C.delete(`/${a}/${r}`, { data: e });
71
70
  }
72
- }, b = s({
71
+ }, h = s({
73
72
  prefix: "/settings-attribute-go/v2"
74
- }), Nt = {
73
+ }), Mt = {
75
74
  getGroupCategory: (t, e) => {
76
75
  const r = t === "category" ? t : "groups";
77
- return b.get(`/${r}/tree`, { params: e });
76
+ return h.get(`/${r}/tree`, { params: e });
78
77
  },
79
78
  getGroupCategoryList: (t, e) => {
80
79
  const r = t === "category" ? t : "groups";
81
- return b.get(`/${r}/${e}`);
80
+ return h.get(`/${r}/${e}`);
82
81
  },
83
82
  getNames: (t) => {
84
83
  const e = t === "category" ? t : "groups";
85
- return b.get(`/${e}/names`);
84
+ return h.get(`/${e}/names`);
86
85
  },
87
86
  getCodes: (t) => {
88
87
  const e = t === "category" ? t : "groups";
89
- return b.get(`/${e}/codes`);
88
+ return h.get(`/${e}/codes`);
90
89
  },
91
90
  postCreateGroupCategory: (t, e) => {
92
91
  const r = t === "category" ? t : "groups";
93
- return b.post(`/${r}`, e);
92
+ return h.post(`/${r}`, e);
94
93
  },
95
94
  putEditGroupCategory: (t, e, r) => {
96
95
  const a = t === "category" ? t : "groups";
97
- return b.put(`/${a}/${r}`, e);
96
+ return h.put(`/${a}/${r}`, e);
98
97
  },
99
98
  deleteGroupCategory: (t, e, r) => {
100
99
  const a = t === "category" ? t : "groups";
101
- return b.delete(`/${a}/${r}`, { data: e });
100
+ return h.delete(`/${a}/${r}`, { data: e });
102
101
  }
103
- }, It = s({
102
+ }, Tt = s({
104
103
  prefix: "/v2",
105
104
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), Mt = {
107
- getTotalApprovals: () => It.get("/approval/count")
108
- }, U = s({
105
+ }), Ht = {
106
+ getTotalApprovals: () => Tt.get("/approval/count")
107
+ }, R = s({
109
108
  prefix: "/v2",
110
109
  env: "APP_LOGS_NOTIFICATION_API"
111
- }), Ht = {
112
- getActionLog: (t) => U.get("/change-log", { params: t }),
113
- getActionLogOption: (t) => U.get("/change-log/options", { params: t }),
114
- getSessionLogList: (t) => U.get("/session-log", { params: t }),
115
- getUserDetailSystemLogList: (t) => U.get("/change-log", { params: t }),
116
- getUserDetailSystemLogOption: (t) => U.get("/change-log/options", { params: t }),
110
+ }), Vt = {
111
+ getActionLog: (t) => R.get("/change-log", { params: t }),
112
+ getActionLogOption: (t) => R.get("/change-log/options", { params: t }),
113
+ getSessionLogList: (t) => R.get("/session-log", { params: t }),
114
+ getUserDetailSystemLogList: (t) => R.get("/change-log", { params: t }),
115
+ getUserDetailSystemLogOption: (t) => R.get("/change-log/options", { params: t }),
117
116
  /**
118
117
  * Retrieves the transaction log.
119
118
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
120
119
  */
121
- getTransactionLog: (t) => U.get("/transaction-log", { params: t }),
120
+ getTransactionLog: (t) => R.get("/transaction-log", { params: t }),
122
121
  /**
123
122
  * Retrieves the transaction log options.
124
123
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
125
124
  */
126
- getTransactionLogOption: (t) => U.get("/transaction-log/options", { params: t }),
127
- postScanLog: (t) => U.post("/transaction-log/scan-log", t)
128
- }, m = s({
125
+ getTransactionLogOption: (t) => R.get("/transaction-log/options", { params: t }),
126
+ postScanLog: (t) => R.post("/transaction-log/scan-log", t)
127
+ }, y = s({
129
128
  prefix: "/utility/v2"
130
- }), Vt = {
131
- getActionLog: (t) => m.get("/change-log", { params: t }),
132
- getActionLogOption: (t) => m.get("/change-log/options", { params: t }),
133
- getSessionLogList: (t) => m.get("/session-log", { params: t }),
134
- getTransactionLog: (t) => m.get("/transaction-log", { params: t }),
129
+ }), jt = {
130
+ getActionLog: (t) => y.get("/change-log", { params: t }),
131
+ getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
132
+ getSessionLogList: (t) => y.get("/session-log", { params: t }),
133
+ getTransactionLog: (t) => y.get("/transaction-log", { params: t }),
135
134
  /**
136
135
  * Retrieves the transaction log options.
137
136
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
138
137
  */
139
- getTransactionLogOption: (t) => m.get("/transaction-log/options", { params: t }),
140
- getUserDetailSystemLogList: (t) => m.get("/change-log", { params: t }),
141
- getUserDetailSystemLogOption: (t) => m.get("/change-log/options", { params: t }),
142
- getUserDetailUserLogBorrowingList: (t, e) => m.get(`/borrowing-log/${t}`, { params: e }),
143
- getUserDetailUserLogAssignmentList: (t, e) => m.get(`/assignment-log/${t}`, { params: e }),
144
- getUserDetailUserLogBorrowingOption: (t, e) => m.get(`/borrowing-log/${t}/options`, { params: e }),
145
- getUserDetailUserLogAssignmentOption: (t, e) => m.get(`/assignment-log/${t}/options`, { params: e })
138
+ getTransactionLogOption: (t) => y.get("/transaction-log/options", { params: t }),
139
+ getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
140
+ getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
141
+ getUserDetailUserLogBorrowingList: (t, e) => y.get(`/borrowing-log/${t}`, { params: e }),
142
+ getUserDetailUserLogAssignmentList: (t, e) => y.get(`/assignment-log/${t}`, { params: e }),
143
+ getUserDetailUserLogBorrowingOption: (t, e) => y.get(`/borrowing-log/${t}/options`, { params: e }),
144
+ getUserDetailUserLogAssignmentOption: (t, e) => y.get(`/assignment-log/${t}/options`, { params: e })
146
145
  }, p = s({
147
146
  prefix: "/assets/v2/assets"
148
147
  }), K = s({
149
148
  prefix: "/assets/v2/attachment"
150
- }), jt = {
149
+ }), Qt = {
151
150
  getScanTag: (t) => p.get("/scan", { params: { tag: t } }),
152
151
  getAllAssets: (t) => p.get("/", { params: t }),
153
152
  getAllAssetsOptions: (t) => p.get("/options", { params: t }),
@@ -207,7 +206,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
207
206
  deleteAttachment: (t) => K.delete("/bulk", { params: t })
208
207
  }, g = s({
209
208
  prefix: "/assets-go/v2/assets"
210
- }), Qt = {
209
+ }), Yt = {
211
210
  getAllAssets: (t) => g.get("/", { params: t }),
212
211
  getAllAssetsOptions: (t) => g.get("/options", { params: t }),
213
212
  getOptions: (t, e) => g.get(t ? `/${t}/options` : "/options", {
@@ -253,7 +252,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
253
252
  deleteAttachment: (t) => g.delete("/attachment/bulk", { params: t })
254
253
  }, H = s({
255
254
  prefix: "/tracking/v2/missing"
256
- }), Yt = {
255
+ }), Jt = {
257
256
  /**
258
257
  * To mark as found.
259
258
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
@@ -265,31 +264,31 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
265
264
  getOptions: (t) => H.get("/options", { params: t })
266
265
  }, V = s({
267
266
  prefix: "/missing-tracking/v2"
268
- }), Jt = {
267
+ }), Wt = {
269
268
  putFoundAsset: (t) => V.put("/found", t),
270
269
  putReportMissing: (t, e) => V.put(`/${t}/report-missing`, e),
271
270
  getData: (t) => V.get("/", { params: t }),
272
271
  getDataOptions: (t) => V.get("/options", { params: t }),
273
272
  getDetail: (t) => V.get(`/${t}`)
274
- }, ct = s({
273
+ }, gt = s({
275
274
  prefix: "/v2/notification",
276
275
  env: "APP_LOGS_NOTIFICATION_API"
277
- }), Wt = {
276
+ }), Kt = {
277
+ getNotifications: (t) => gt.get("/", { params: t }),
278
+ readNotification: (t) => gt.put(`/${t}`)
279
+ }, ct = s({
280
+ prefix: "/utility/v2/notification"
281
+ }), zt = {
278
282
  getNotifications: (t) => ct.get("/", { params: t }),
279
283
  readNotification: (t) => ct.put(`/${t}`)
280
- }, lt = s({
281
- prefix: "/utility/v2/notification"
282
- }), Kt = {
283
- getNotifications: (t) => lt.get("/", { params: t }),
284
- readNotification: (t) => lt.put(`/${t}`)
285
- }, Rt = s({
284
+ }, Ct = s({
286
285
  prefix: "/v2/session-log",
287
286
  env: "APP_LOGS_NOTIFICATION_API"
288
- }), zt = {
289
- postLogout: () => Rt.post("/logout")
287
+ }), Zt = {
288
+ postLogout: () => Ct.post("/logout")
290
289
  }, i = s({
291
290
  prefix: "/tag/v2"
292
- }), Zt = {
291
+ }), Xt = {
293
292
  getScanQR: (t) => i.get("/qr", { params: { tag: t } }),
294
293
  getScanRFID: (t) => i.get("/rfid", { params: { tag: t } }),
295
294
  getRFIDQRTAG: (t) => i.get("/rfid-qr/scan", { params: t }),
@@ -329,7 +328,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
329
328
  putDeclineReport: (t, e) => i.put(`/report/decline-report/${e}`, t)
330
329
  }, z = s({
331
330
  prefix: "/tracking/v2/tracking"
332
- }), Xt = {
331
+ }), te = {
333
332
  getTrackingDetail: (t) => z.get(`/${t}`),
334
333
  putFoundAsset: (t, e, r) => {
335
334
  const a = {
@@ -338,13 +337,13 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
338
337
  serialNumber: r,
339
338
  type: "Global"
340
339
  };
341
- return z.put("/found", { params: a });
340
+ return z.put("/scan", void 0, { params: a });
342
341
  },
343
342
  putReportPermanentlyMissing: (t, e) => z.put(`/report-permanently-missing/${t}`, e),
344
343
  putMoveBack: (t) => z.put("/tracking/move-back", t)
345
344
  }, u = s({
346
345
  prefix: "/settings-user-role/v2"
347
- }), te = {
346
+ }), ee = {
348
347
  reLogin: (t) => u.post("/auth/login", t),
349
348
  changePassword: (t) => u.put("/users/change-password", t),
350
349
  /**
@@ -395,7 +394,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
395
394
  })
396
395
  }, l = s({
397
396
  prefix: "/settings-user-role-go/v2"
398
- }), ee = {
397
+ }), re = {
399
398
  /**
400
399
  * Retrieves the user list as dropdown options.
401
400
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
@@ -430,58 +429,58 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
430
429
  getUserDetailUserAssetAssignedList: (t, e) => l.get(`/users/${t}/assigned-asset`, { params: e }),
431
430
  getUserDetailUserAssetBorrowedOption: (t, e) => l.get(`/users/${t}/borrowed-asset/option`, { params: e }),
432
431
  getUserDetailUserAssetAssignedOption: (t, e) => l.get(`/users/${t}/assigned-asset/option`, { params: e })
433
- }, C = s({
432
+ }, O = s({
434
433
  prefix: "/settings-user-role/v2/sub-users"
435
- }), re = {
434
+ }), se = {
436
435
  // Sub User
437
- getSubUserList: (t, e) => C.get(`/${t}`, { params: e }),
438
- getSubUserOptions: (t, e) => C.get(`/${t}/option`, { params: e }),
436
+ getSubUserList: (t, e) => O.get(`/${t}`, { params: e }),
437
+ getSubUserOptions: (t, e) => O.get(`/${t}/option`, { params: e }),
439
438
  postCreateSubUser: (t, e) => {
440
439
  const r = { "Content-Type": "multipart/form-data" };
441
- return C.post(`/${t}`, e, { headers: r });
440
+ return O.post(`/${t}`, e, { headers: r });
442
441
  },
443
- putSubUserSetActiveBulk: (t) => C.put("/set-active-bulk", t),
444
- deleteSubUser: (t) => C.delete("/bulk", { data: { subUserIds: t } }),
442
+ putSubUserSetActiveBulk: (t) => O.put("/set-active-bulk", t),
443
+ deleteSubUser: (t) => O.delete("/bulk", { data: { subUserIds: t } }),
445
444
  putEditSubUser: (t, e) => {
446
445
  const r = { "Content-Type": "multipart/form-data" };
447
- return C.put(`/${t}`, e, { headers: r });
446
+ return O.put(`/${t}`, e, { headers: r });
448
447
  },
449
- getBorrowedAsset: (t, e) => C.get(`/${t}/borrowed-asset`, { params: e }),
450
- getBorrowedAssetOptions: (t, e) => C.get(`/${t}/borrowed-asset/options`, { params: e })
451
- }, S = s({
448
+ getBorrowedAsset: (t, e) => O.get(`/${t}/borrowed-asset`, { params: e }),
449
+ getBorrowedAssetOptions: (t, e) => O.get(`/${t}/borrowed-asset/options`, { params: e })
450
+ }, f = s({
452
451
  prefix: "/settings-user-role-go/v2/users"
453
- }), se = {
452
+ }), ne = {
454
453
  // Sub User
455
- getSubUserList: (t, e) => S.get(`/${t}/sub-users`, { params: e }),
456
- getSubUserOptions: (t, e) => S.get(`/${t}/sub-users/option`, { params: e }),
454
+ getSubUserList: (t, e) => f.get(`/${t}/sub-users`, { params: e }),
455
+ getSubUserOptions: (t, e) => f.get(`/${t}/sub-users/option`, { params: e }),
457
456
  postCreateSubUser: (t, e) => {
458
457
  const r = { "Content-Type": "multipart/form-data" };
459
- return S.post(`/${t}/sub-users`, e, { headers: r });
458
+ return f.post(`/${t}/sub-users`, e, { headers: r });
460
459
  },
461
- putSubUserSetActiveBulk: (t, e) => S.put(`/${t}/sub-users/set-active-bulk`, e),
462
- deleteSubUser: (t, e) => S.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
460
+ putSubUserSetActiveBulk: (t, e) => f.put(`/${t}/sub-users/set-active-bulk`, e),
461
+ deleteSubUser: (t, e) => f.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
463
462
  putEditSubUser: (t, e, r) => {
464
463
  const a = { "Content-Type": "multipart/form-data" };
465
- return S.put(`/${t}/sub-users/${e}`, r, {
464
+ return f.put(`/${t}/sub-users/${e}`, r, {
466
465
  headers: a
467
466
  });
468
467
  },
469
- getBorrowedAsset: (t, e, r) => S.get(`/${t}/sub-users/${e}/borrowed-asset`, {
468
+ getBorrowedAsset: (t, e, r) => f.get(`/${t}/sub-users/${e}/borrowed-asset`, {
470
469
  params: r
471
470
  }),
472
- getBorrowedAssetOptions: (t, e, r) => S.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
471
+ getBorrowedAssetOptions: (t, e, r) => f.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
473
472
  params: r
474
473
  }),
475
- getAssignedAsset: (t, e, r) => S.get(`/${t}/sub-users/${e}/assigned-asset`, {
474
+ getAssignedAsset: (t, e, r) => f.get(`/${t}/sub-users/${e}/assigned-asset`, {
476
475
  params: r
477
476
  }),
478
- getAssignedAssetOptions: (t, e, r) => S.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
477
+ getAssignedAssetOptions: (t, e, r) => f.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
479
478
  params: r
480
479
  })
481
480
  }, Z = s({
482
481
  env: "APP_ADMIN_API",
483
482
  prefix: "/settings-attribute/languages"
484
- }), ne = {
483
+ }), oe = {
485
484
  /**
486
485
  * Fetch all translation messages for a specific locale.
487
486
  * @param locale The locale code (e.g., 'en', 'id').
@@ -522,57 +521,57 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
522
521
  });
523
522
  return r.data.translations[t];
524
523
  }
525
- }, dt = s({
524
+ }, lt = s({
526
525
  prefix: "/dashboard/v2/dashboard"
527
- }), oe = {
528
- getLatestTask: (t) => dt.get("/latest-task", { params: t }),
529
- getSummary: (t) => dt.get("/summary", { params: t })
526
+ }), ae = {
527
+ getLatestTask: (t) => lt.get("/latest-task", { params: t }),
528
+ getSummary: (t) => lt.get("/summary", { params: t })
530
529
  }, st = s({
531
530
  prefix: "/alias-code/api/alias-code"
532
- }), ae = {
531
+ }), ie = {
533
532
  getAliasCode: () => st.get("/"),
534
533
  postAliasCode: (t) => st.post("/", t),
535
534
  getAliasCodeList: (t) => st.get(`/${t.object}/code-list`, { params: t })
536
535
  }, nt = s({
537
536
  prefix: "/settings-attribute-go/v2/alias-code"
538
- }), ie = {
537
+ }), ue = {
539
538
  getAliasCode: () => nt.get("/"),
540
539
  postAliasCode: (t) => nt.post("/", t),
541
540
  getAliasCodeList: (t) => nt.get(`/${t.object}/code-list`, { params: t })
542
- }, At = s({
541
+ }, dt = s({
543
542
  prefix: "/settings-attribute/v2/general-settings"
544
- }), ue = {
545
- getGeneralSettings: () => At.get("/"),
546
- putUpdateGeneralSettings: (t) => At.put("/", t)
543
+ }), pe = {
544
+ getGeneralSettings: () => dt.get("/"),
545
+ putUpdateGeneralSettings: (t) => dt.put("/", t)
547
546
  }, $t = s({
548
547
  prefix: "/settings-attribute-go/v2/general-settings"
549
- }), pe = {
548
+ }), ge = {
550
549
  getGeneralSettings: () => $t.get("/"),
551
550
  putUpdateGeneralSettings: (t) => $t.put("/", t)
552
- }, D = s({
551
+ }, U = s({
553
552
  prefix: "/settings-attribute/v2/custom-field"
554
- }), ge = {
555
- getCustomField: async (t) => D.get("/", { params: t }),
556
- getCustomFieldsByCategory: (t, e) => D.get(`/${t}`, { params: e }),
557
- getOptions: async (t) => D.get("/options", { params: t }),
558
- postCreateCustomField: async (t, e) => D.post("/", e, { params: t }),
559
- putEditCustomField: async (t, e, r) => D.put(`/${r}`, e, { params: t }),
560
- putChangeStatus: async (t, e) => D.put("/bulk", e, { params: t }),
561
- deleteCustomField: async (t) => D.delete("/bulk", { data: t }),
562
- getUsedCustomFields: async () => D.get("/used-by-assets")
563
- }, h = s({
564
- prefix: "/settings-attribute-go/v2/custom-field"
565
553
  }), ce = {
566
- getCustomField: async (t) => h.get("/", { params: t }),
567
- getOptions: async (t) => h.get("/options", { params: t }),
568
- postCreateCustomField: async (t, e) => h.post("/", e, { params: t }),
569
- putEditCustomField: async (t, e, r) => h.put(`/${r}`, e, { params: t }),
570
- putChangeStatus: async (t, e) => h.put("/bulk", e, { params: t }),
571
- deleteCustomField: async (t) => h.delete("/bulk", { params: t }),
572
- getUsedCustomFields: async () => h.get("/used-by-assets")
554
+ getCustomField: async (t) => U.get("/", { params: t }),
555
+ getCustomFieldsByCategory: (t, e) => U.get(`/${t}`, { params: e }),
556
+ getOptions: async (t) => U.get("/options", { params: t }),
557
+ postCreateCustomField: async (t, e) => U.post("/", e, { params: t }),
558
+ putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
559
+ putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
560
+ deleteCustomField: async (t) => U.delete("/bulk", { data: t }),
561
+ getUsedCustomFields: async () => U.get("/used-by-assets")
562
+ }, w = s({
563
+ prefix: "/settings-attribute-go/v2/custom-field"
564
+ }), le = {
565
+ getCustomField: async (t) => w.get("/", { params: t }),
566
+ getOptions: async (t) => w.get("/options", { params: t }),
567
+ postCreateCustomField: async (t, e) => w.post("/", e, { params: t }),
568
+ putEditCustomField: async (t, e, r) => w.put(`/${r}`, e, { params: t }),
569
+ putChangeStatus: async (t, e) => w.put("/bulk", e, { params: t }),
570
+ deleteCustomField: async (t) => w.delete("/bulk", { params: t }),
571
+ getUsedCustomFields: async () => w.get("/used-by-assets")
573
572
  }, ot = ({ headers: t = {}, params: e = {} } = {}) => {
574
573
  const r = N("APP_COUNTRY_STATE_API"), a = N("APP_COUNTRY_STATE_API_KEY");
575
- return St.create({
574
+ return yt.create({
576
575
  baseURL: `${r}/v1`,
577
576
  headers: {
578
577
  "Content-type": "application/json",
@@ -581,32 +580,32 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
581
580
  },
582
581
  params: e
583
582
  });
584
- }, le = {
583
+ }, de = {
585
584
  getCountry: () => ot().get("/countries"),
586
585
  getState: (t) => ot().get(`/countries/${t}/states`),
587
586
  getCity: (t, e) => ot().get(`/countries/${t}/states/${e}/cities`)
588
- }, y = s({
587
+ }, S = s({
589
588
  prefix: "/routine/v2"
590
- }), de = {
591
- getList: (t) => y.get("/service-center", { params: t }),
592
- postList: (t) => y.post("/service-center", t),
593
- putList: (t, e) => y.put(`/service-center/${t}`, e),
594
- putActivate: (t) => y.put("/service-center/bulk", t),
595
- getDetailList: (t) => y.get(`/service-center/${t}`),
596
- getListOptions: (t) => y.get("/service-center/options", { params: t }),
597
- deleteList: (t) => y.delete("/service-center", { params: t }),
589
+ }), $e = {
590
+ getList: (t) => S.get("/service-center", { params: t }),
591
+ postList: (t) => S.post("/service-center", t),
592
+ putList: (t, e) => S.put(`/service-center/${t}`, e),
593
+ putActivate: (t) => S.put("/service-center/bulk", t),
594
+ getDetailList: (t) => S.get(`/service-center/${t}`),
595
+ getListOptions: (t) => S.get("/service-center/options", { params: t }),
596
+ deleteList: (t) => S.delete("/service-center", { params: t }),
598
597
  // Activities
599
- getActivities: (t) => y.get("/service-activities", { params: t }),
600
- getActivityOptions: (t) => y.get("/service-activities/options", { params: t }),
601
- getActivityDetail: (t) => y.get(`/service-activities/${t}`),
602
- getActivityLog: (t) => y.get(`/service-activities/${t}/activity-log`)
603
- }, Ut = s({
598
+ getActivities: (t) => S.get("/service-activities", { params: t }),
599
+ getActivityOptions: (t) => S.get("/service-activities/options", { params: t }),
600
+ getActivityDetail: (t) => S.get(`/service-activities/${t}`),
601
+ getActivityLog: (t) => S.get(`/service-activities/${t}/activity-log`)
602
+ }, Dt = s({
604
603
  prefix: "/settings-attribute/v2/brands"
605
604
  }), Ae = {
606
- getDropdown: (t) => Ut.get("/dropdown", { params: t })
605
+ getDropdown: (t) => Dt.get("/dropdown", { params: t })
607
606
  }, k = s({
608
607
  prefix: "/file-manager/v2"
609
- }), $e = {
608
+ }), ve = {
610
609
  /**
611
610
  * Get storage information.
612
611
  *
@@ -653,15 +652,15 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
653
652
  * @returns {Promise<AxiosResponse>} The Axios Response.
654
653
  */
655
654
  deletePermanently: (t, e) => k.delete(`/${t}/delete-permanent`, { params: e })
656
- }, _ = s({
655
+ }, E = s({
657
656
  prefix: "/utility/v2"
658
- }), ve = {
657
+ }), me = {
659
658
  /**
660
659
  * Get storage information.
661
660
  *
662
661
  * @returns {Promise<AxiosResponse>} The Axios Response.
663
662
  */
664
- getStorageInformation: () => _.get("/files/storage"),
663
+ getStorageInformation: () => E.get("/files/storage"),
665
664
  /**
666
665
  * Get file manager data.
667
666
  *
@@ -669,7 +668,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
669
668
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
670
669
  * @returns {Promise<AxiosResponse>} The Axios Response.
671
670
  */
672
- getFileManager: (t, e) => _.get(`/${t}`, { params: e }),
671
+ getFileManager: (t, e) => E.get(`/${t}`, { params: e }),
673
672
  /**
674
673
  * Get file manager options.
675
674
  *
@@ -677,7 +676,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
677
676
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
678
677
  * @returns {Promise<AxiosResponse>} The Axios Response.
679
678
  */
680
- getFileManagerOption: (t, e) => _.get(`/${t}/options`, { params: e }),
679
+ getFileManagerOption: (t, e) => E.get(`/${t}/options`, { params: e }),
681
680
  /**
682
681
  * Recover files.
683
682
  *
@@ -685,7 +684,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
685
684
  * @param {object} body - The body of the request.
686
685
  * @returns {Promise<AxiosResponse>} The Axios Response.
687
686
  */
688
- recoverFiles: (t, e) => _.put(`/${t}/recover`, e),
687
+ recoverFiles: (t, e) => E.put(`/${t}/recover`, e),
689
688
  /**
690
689
  * Delete files.
691
690
  *
@@ -693,7 +692,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
693
692
  * @param {DeleteFileManagerDto} params - The params of the request.
694
693
  * @returns {Promise<AxiosResponse>} The Axios Response.
695
694
  */
696
- deleteFiles: (t, e) => _.delete(`/${t}`, { params: e }),
695
+ deleteFiles: (t, e) => E.delete(`/${t}`, { params: e }),
697
696
  /**
698
697
  * Delete files permanently.
699
698
  *
@@ -701,21 +700,21 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
701
700
  * @param {object} body - The body of the request.
702
701
  * @returns {Promise<AxiosResponse>} The Axios Response.
703
702
  */
704
- deletePermanently: (t, e) => _.delete(`/${t}/delete-permanent`, { params: e })
705
- }, O = s({
703
+ deletePermanently: (t, e) => E.delete(`/${t}/delete-permanent`, { params: e })
704
+ }, I = s({
706
705
  prefix: "/iot/v2/reader"
707
- }), me = {
708
- getData: (t) => O.get("/", { params: t }),
709
- getDataOptions: (t) => O.get("/options", { params: t }),
710
- getActivityLogData: (t) => O.get("/activity-log", { params: t }),
711
- getActivityLogOptions: (t) => O.get("/activity-log/options", { params: t }),
712
- getDataById: (t) => O.get(`/${t}`),
713
- getChangeLog: (t) => O.get(`/${t.id}/change-log`, { params: t }),
714
- getChangeLogOptions: (t) => O.get(`/${t.id}/change-log/options`, { params: t }),
715
- putData: (t, e) => O.put(`/${t}`, e)
706
+ }), ye = {
707
+ getData: (t) => I.get("/", { params: t }),
708
+ getDataOptions: (t) => I.get("/options", { params: t }),
709
+ getActivityLogData: (t) => I.get("/activity-log", { params: t }),
710
+ getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
711
+ getDataById: (t) => I.get(`/${t}`),
712
+ getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
713
+ getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
714
+ putData: (t, e) => I.put(`/${t}`, e)
716
715
  }, d = s({
717
716
  prefix: "/settings-user-role/v2"
718
- }), ye = {
717
+ }), Se = {
719
718
  /**
720
719
  * Retrieves the transaction role for the given group and transaction name.
721
720
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -799,17 +798,17 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
799
798
  }
800
799
  return d.delete("/system-roles", { data: t });
801
800
  }
802
- }, A = s({
801
+ }, $ = s({
803
802
  prefix: "/settings-user-role-go/v2"
804
- }), Se = {
803
+ }), fe = {
805
804
  /**
806
805
  * Retrieves the transaction role for the given group and transaction name.
807
806
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
808
807
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
809
808
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
810
809
  */
811
- getTransactionRole: (t, e) => A.get(`/transaction-roles/${t}/${e}`),
812
- getTransactionRoleTypes: (t, e) => A.get(`/transaction-roles/${e}/types`, {
810
+ getTransactionRole: (t, e) => $.get(`/transaction-roles/${t}/${e}`),
811
+ getTransactionRoleTypes: (t, e) => $.get(`/transaction-roles/${e}/types`, {
813
812
  params: { groupKeys: t }
814
813
  }),
815
814
  /**
@@ -819,7 +818,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
819
818
  * @param {UpdateUser} body - The request body containing the updated user information.
820
819
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
821
820
  */
822
- putUpdateUsers: (t, e, r) => A.put(
821
+ putUpdateUsers: (t, e, r) => $.put(
823
822
  `/transaction-roles/${t}/${e}/update-user`,
824
823
  r
825
824
  ),
@@ -830,7 +829,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
830
829
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
831
830
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
832
831
  */
833
- putUpdateLevel: (t, e, r) => A.put(
832
+ putUpdateLevel: (t, e, r) => $.put(
834
833
  `/transaction-roles/${t}/${e}/update-approval-level`,
835
834
  r
836
835
  ),
@@ -841,53 +840,53 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
841
840
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
842
841
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
843
842
  */
844
- putUpdateGroupManage: (t, e, r) => A.put(
843
+ putUpdateGroupManage: (t, e, r) => $.put(
845
844
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
846
845
  r
847
846
  ),
848
- getUserAssignedSystemRole: (t) => A.get(`/system-roles/user/${t}`),
849
- getAssignedUserAmounts: () => A.get("/system-roles/amounts"),
847
+ getUserAssignedSystemRole: (t) => $.get(`/system-roles/user/${t}`),
848
+ getAssignedUserAmounts: () => $.get("/system-roles/amounts"),
850
849
  getPermissionUser: (t, e) => {
851
850
  if (["totalControl", "readOnly"].includes(t ?? "")) {
852
851
  const r = t === "totalControl" ? "total-control" : "read-only";
853
- return A.get(`/system-roles/total-control-read-only/${r}`, {
852
+ return $.get(`/system-roles/total-control-read-only/${r}`, {
854
853
  params: e
855
854
  });
856
855
  }
857
- return A.get(`/system-roles/permission/${t}`, { params: e });
856
+ return $.get(`/system-roles/permission/${t}`, { params: e });
858
857
  },
859
858
  getPermissionUserOptions: (t, e) => {
860
859
  if (["totalControl", "readOnly"].includes(t ?? "")) {
861
860
  const r = t === "totalControl" ? "total-control" : "read-only";
862
- return A.get(`/system-roles/total-control-read-only/${r}/options`, {
861
+ return $.get(`/system-roles/total-control-read-only/${r}/options`, {
863
862
  params: e
864
863
  });
865
864
  }
866
- return A.get(`/system-roles/permission/${t}/options`, {
865
+ return $.get(`/system-roles/permission/${t}/options`, {
867
866
  params: e
868
867
  });
869
868
  },
870
- getUserGroups: (t, e) => A.get(`/system-roles/permission/${e}/groups`, {
869
+ getUserGroups: (t, e) => $.get(`/system-roles/permission/${e}/groups`, {
871
870
  params: t
872
871
  }),
873
872
  postAssignUser: (t, e) => {
874
873
  if (["totalControl", "readOnly"].includes(e ?? "")) {
875
874
  const r = e === "totalControl" ? "total-control" : "read-only";
876
- return A.post(`/system-roles/total-control-read-only/${r}`, t);
875
+ return $.post(`/system-roles/total-control-read-only/${r}`, t);
877
876
  }
878
- return A.post(`/system-roles/permission/${e}`, t);
877
+ return $.post(`/system-roles/permission/${e}`, t);
879
878
  },
880
- putEditUser: (t, e) => A.put(`/system-roles/${e}`, t),
879
+ putEditUser: (t, e) => $.put(`/system-roles/${e}`, t),
881
880
  deleteRemoveUser: (t, e) => {
882
881
  if (["totalControl", "readOnly"].includes(e ?? "")) {
883
882
  const r = e === "totalControl" ? "total-control" : "read-only";
884
- return A.put(`/system-roles/total-control-read-only/${r}`, t);
883
+ return $.put(`/system-roles/total-control-read-only/${r}`, t);
885
884
  }
886
- return A.put("/system-roles", t);
885
+ return $.put("/system-roles", t);
887
886
  }
888
887
  }, j = s({
889
888
  prefix: "/settings-attribute/v2/open-api"
890
- }), fe = {
889
+ }), Pe = {
891
890
  getOpenAPIDocs: (t) => j.get(`/${t.doc}`),
892
891
  putGenerateToken: () => j.put("/generate"),
893
892
  // This is if the dummy was not dummy
@@ -896,50 +895,50 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
896
895
  putCancelRequestOpenAPI: () => j.put("/cancel-request")
897
896
  }, X = s({
898
897
  prefix: "/settings-attribute-go/v2/open-api"
899
- }), Pe = {
898
+ }), Te = {
900
899
  putGenerateToken: () => X.put("/generate"),
901
900
  // This is if the dummy was not dummy
902
901
  getToken: () => X.get(""),
903
902
  putRequestOpenAPI: () => X.put("/request"),
904
903
  putCancelRequestOpenAPI: () => X.put("/cancel-request")
905
- }, w = s({
906
- prefix: "/import/v2"
907
- }), Te = {
908
- getImport: (t, e) => w.get(`/${t}`, { params: e }),
909
- postImportTemporary: (t, e) => {
910
- const r = { "Content-Type": "multipart/form-data" };
911
- return w.post(`/${t}/temporary`, e, { headers: r });
912
- },
913
- deleteImportTemporary: (t, e) => w.delete(`/${t}/temporary`, { data: e }),
914
- postDuplicateImport: (t, e) => w.post(`/${t}/duplicate`, e),
915
- putEditImport: (t, e) => w.put(`/${t}`, e),
916
- postImport: (t, e, r) => w.post(t, r, { signal: e.signal }),
917
- putImportCancelProgress: (t) => w.put(`/${t}/cancel-progress`)
918
904
  }, q = s({
919
- prefix: "/import-go/v2"
920
- }), Ie = {
905
+ prefix: "/import/v2"
906
+ }), Ce = {
921
907
  getImport: (t, e) => q.get(`/${t}`, { params: e }),
922
908
  postImportTemporary: (t, e) => {
923
909
  const r = { "Content-Type": "multipart/form-data" };
924
910
  return q.post(`/${t}/temporary`, e, { headers: r });
925
911
  },
926
- deleteImportTemporary: (t, e) => q.delete(`/${t}/temporary`, { params: e }),
912
+ deleteImportTemporary: (t, e) => q.delete(`/${t}/temporary`, { data: e }),
927
913
  postDuplicateImport: (t, e) => q.post(`/${t}/duplicate`, e),
928
914
  putEditImport: (t, e) => q.put(`/${t}`, e),
929
915
  postImport: (t, e, r) => q.post(t, r, { signal: e.signal }),
930
916
  putImportCancelProgress: (t) => q.put(`/${t}/cancel-progress`)
931
- }, E = s({
917
+ }, B = s({
918
+ prefix: "/import-go/v2"
919
+ }), De = {
920
+ getImport: (t, e) => B.get(`/${t}`, { params: e }),
921
+ postImportTemporary: (t, e) => {
922
+ const r = { "Content-Type": "multipart/form-data" };
923
+ return B.post(`/${t}/temporary`, e, { headers: r });
924
+ },
925
+ deleteImportTemporary: (t, e) => B.delete(`/${t}/temporary`, { params: e }),
926
+ postDuplicateImport: (t, e) => B.post(`/${t}/duplicate`, e),
927
+ putEditImport: (t, e) => B.put(`/${t}`, e),
928
+ postImport: (t, e, r) => B.post(t, r, { signal: e.signal }),
929
+ putImportCancelProgress: (t) => B.put(`/${t}/cancel-progress`)
930
+ }, _ = s({
932
931
  prefix: "/settings-attribute/v2/asset-name"
933
932
  }), Re = {
934
- getDropdown: (t) => E.get("/dropdown", { params: t }),
935
- getAssetNameDetail: (t) => E.get(`/${t}`),
936
- getAssetsByAssetName: (t, e) => E.get(`/${t}/list-asset`, { params: e }),
937
- getAssetNameList: (t) => E.get("/", { params: t }),
938
- getUnpairedAssetName: (t) => E.get("/unpaired", { params: t }),
939
- getOptions: (t) => E.get("/options", { params: t })
933
+ getDropdown: (t) => _.get("/dropdown", { params: t }),
934
+ getAssetNameDetail: (t) => _.get(`/${t}`),
935
+ getAssetsByAssetName: (t, e) => _.get(`/${t}/list-asset`, { params: e }),
936
+ getAssetNameList: (t) => _.get("/", { params: t }),
937
+ getUnpairedAssetName: (t) => _.get("/unpaired", { params: t }),
938
+ getOptions: (t) => _.get("/options", { params: t })
940
939
  }, o = s({
941
940
  prefix: "/assignment/v2"
942
- }), Ue = {
941
+ }), Oe = {
943
942
  getPreListData: (t) => o.get("/prelist", { params: t }),
944
943
  getPreListOptions: (t) => o.get("/prelist/options", { params: t }),
945
944
  getRequestData: (t) => o.get("/prelist/request", { params: t }),
@@ -995,68 +994,68 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
995
994
  getAssignedAssetOptions: async (t) => o.get("/transaction/my-asset/assigned-asset/options", { params: t }),
996
995
  putCancelAssignment: async (t) => o.put("/transaction/cancel", { id: t.id }),
997
996
  putCancelReportById: async (t) => o.put(`/transaction/request/${t.id}/cancel-report`)
998
- }, B = s({
997
+ }, x = s({
999
998
  prefix: "/assignment-go/v2"
1000
- }), Ce = {
1001
- getTransactionData: (t) => B.get("/transaction", { params: t }),
1002
- getTransactionOptions: (t) => B.get("/transaction/options", { params: t }),
1003
- getDetailTransactionLog: (t) => B.get(`/transaction/request/${t}/transaction-log`),
1004
- postTransaction: (t) => B.post("/transaction", t),
1005
- putTransaction: (t) => B.put("/transaction", t),
1006
- putUnassignTransaction: (t) => B.put("/transaction/unassign", t),
1007
- putCancelReport: (t) => B.put("/transaction/request/cancel-report", t)
1008
- }, $ = s({
999
+ }), Ue = {
1000
+ getTransactionData: (t) => x.get("/transaction", { params: t }),
1001
+ getTransactionOptions: (t) => x.get("/transaction/options", { params: t }),
1002
+ getDetailTransactionLog: (t) => x.get(`/transaction/request/${t}/transaction-log`),
1003
+ postTransaction: (t) => x.post("/transaction", t),
1004
+ putTransaction: (t) => x.put("/transaction", t),
1005
+ putUnassignTransaction: (t) => x.put("/transaction/unassign", t),
1006
+ putCancelReport: (t) => x.put("/transaction/request/cancel-report", t)
1007
+ }, A = s({
1009
1008
  prefix: "/license/v2"
1010
- }), Ct = {
1011
- getTotalLicense: () => $.get("/total-license"),
1012
- getPurchasedData: (t) => $.get("/purchase", { params: t }),
1013
- getCompanyData: () => $.get("/company")
1014
- }, Dt = {
1015
- getFixedAssetPerGroup: (t, e) => $.get(`/${t}/fixed-asset-list`, { params: e }),
1016
- getAssetNameList: (t, e, r) => $.get(`${e}/asset-list/${t}`, { params: r }),
1009
+ }), Rt = {
1010
+ getTotalLicense: () => A.get("/total-license"),
1011
+ getPurchasedData: (t) => A.get("/purchase", { params: t }),
1012
+ getCompanyData: () => A.get("/company")
1013
+ }, Ot = {
1014
+ getFixedAssetPerGroup: (t, e) => A.get(`/${t}/fixed-asset-list`, { params: e }),
1015
+ getAssetNameList: (t, e, r) => A.get(`${e}/asset-list/${t}`, { params: r }),
1017
1016
  // Get list of assets those already have licenses
1018
- getLicenseAddonAssetList: (t, e, r) => $.get(`/${t}/fixed-asset-list/${e}`, { params: r }),
1019
- removeAddOnLicense: (t, e) => $.put(`/remove-license/${e}`, t),
1020
- addNewLicenses: (t, e) => $.put(`/add-license/${e}`, t),
1021
- deleteAssetData: (t) => $.delete("/assets", { data: t }),
1022
- putManageLicense: (t, e) => $.put(
1017
+ getLicenseAddonAssetList: (t, e, r) => A.get(`/${t}/fixed-asset-list/${e}`, { params: r }),
1018
+ removeAddOnLicense: (t, e) => A.put(`/remove-license/${e}`, t),
1019
+ addNewLicenses: (t, e) => A.put(`/add-license/${e}`, t),
1020
+ deleteAssetData: (t) => A.delete("/assets", { data: t }),
1021
+ putManageLicense: (t, e) => A.put(
1023
1022
  `/manage/${t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}`,
1024
1023
  e
1025
1024
  )
1026
- }, Ot = {
1027
- getGroupQuota: (t) => $.get(`/${t}/allocation-quota`),
1028
- getSubGroupQuota: (t, e) => $.get(`/${t}/subgroup-quota`, { params: e }),
1029
- editSubGroupQuota: (t, e) => $.put(`/${t}/set-group-quota`, e)
1030
- }, Lt = {
1031
- getConcurrentUserData: () => $.get("/concurrent-user-data"),
1032
- getConcurrentUserList: (t) => $.get("/concurrent-user", { params: t }),
1033
- putLogoutUsers: (t) => $.put("/concurrent-user", t)
1034
- }, De = {
1035
- getFilterOptions: (t, e) => $.get(`/${t}`, { params: e }),
1036
- ...Ct,
1037
- ...Lt,
1038
- ...Ot,
1039
- ...Dt
1040
- }, L = s({
1025
+ }, Ut = {
1026
+ getGroupQuota: (t) => A.get(`/${t}/allocation-quota`),
1027
+ getSubGroupQuota: (t, e) => A.get(`/${t}/subgroup-quota`, { params: e }),
1028
+ editSubGroupQuota: (t, e) => A.put(`/${t}/set-group-quota`, e)
1029
+ }, It = {
1030
+ getConcurrentUserData: () => A.get("/concurrent-user-data"),
1031
+ getConcurrentUserList: (t) => A.get("/concurrent-user", { params: t }),
1032
+ putLogoutUsers: (t) => A.put("/concurrent-user", t)
1033
+ }, Ie = {
1034
+ getFilterOptions: (t, e) => A.get(`/${t}`, { params: e }),
1035
+ ...Rt,
1036
+ ...It,
1037
+ ...Ut,
1038
+ ...Ot
1039
+ }, b = s({
1041
1040
  prefix: "/license-go/v2"
1042
- }), bt = {
1043
- getTotalLicense: () => L.get("/total-license"),
1044
- getPurchasedData: (t) => L.get("/purchase", { params: t })
1041
+ }), Lt = {
1042
+ getTotalLicense: () => b.get("/total-license"),
1043
+ getPurchasedData: (t) => b.get("/purchase", { params: t })
1044
+ }, bt = {
1045
+ getConcurrentUserData: () => b.get("/concurrent-user-data"),
1046
+ getConcurrentUserList: (t) => b.get("/concurrent-user", { params: t }),
1047
+ putLogoutUsers: (t) => b.put("/concurrent-user", t)
1045
1048
  }, ht = {
1046
- getConcurrentUserData: () => L.get("/concurrent-user-data"),
1047
- getConcurrentUserList: (t) => L.get("/concurrent-user", { params: t }),
1048
- putLogoutUsers: (t) => L.put("/concurrent-user", t)
1049
- }, wt = {
1050
- getFixedAssetPerGroup: (t, e) => L.get(`/${t}/assets`, { params: e }),
1051
- deleteAssetData: (t) => L.delete("/assets", { data: t })
1052
- }, Oe = {
1053
- getFilterOptions: (t, e) => L.get(`/${t}`, { params: e }),
1049
+ getFixedAssetPerGroup: (t, e) => b.get(`/${t}/assets`, { params: e }),
1050
+ deleteAssetData: (t) => b.delete("/assets", { data: t })
1051
+ }, Le = {
1052
+ getFilterOptions: (t, e) => b.get(`/${t}`, { params: e }),
1053
+ ...Lt,
1054
1054
  ...bt,
1055
- ...ht,
1056
- ...wt
1055
+ ...ht
1057
1056
  }, Q = s({
1058
1057
  prefix: "/repair/v2/damage"
1059
- }), Le = {
1058
+ }), be = {
1060
1059
  getDamageReportList: (t) => Q.get("/", { params: t }),
1061
1060
  getDamageReportListFilterOptions: (t) => Q.get("/options", { params: t }),
1062
1061
  getDamageReportDetail: (t) => Q.get(`/${t}`),
@@ -1071,7 +1070,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1071
1070
  putMarkAsRepaired: (t) => Q.put("/repair", t)
1072
1071
  }, Y = s({
1073
1072
  prefix: "/damage-repair-ticketing/v2"
1074
- }), be = {
1073
+ }), he = {
1075
1074
  getDamageReportList: (t) => Y.get("/", { params: t }),
1076
1075
  getDamageReportListFilterOptions: (t) => Y.get("/options", { params: t }),
1077
1076
  getDamageReportDetail: (t) => Y.get(`/${t}`),
@@ -1082,7 +1081,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1082
1081
  putMarkAsRepaired: (t) => Y.put("/repair", t)
1083
1082
  }, n = s({
1084
1083
  prefix: "/borrowing/v2"
1085
- }), he = {
1084
+ }), we = {
1086
1085
  getTaskBorrowing: async (t) => n.get("/transaction/my-asset/task", { params: t }),
1087
1086
  getTaskBorrowingOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
1088
1087
  getBorrowedAsset: async (t) => n.get("/transaction/my-asset/borrowed-asset", { params: t }),
@@ -1153,14 +1152,14 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1153
1152
  putApprovalApprove: (t) => n.put("/approval/approve", t, {
1154
1153
  params: { sourceWeb: !0 }
1155
1154
  })
1156
- }, vt = s({
1155
+ }, At = s({
1157
1156
  prefix: "/assets/v2"
1158
- }), we = {
1159
- getHistory: async (t) => vt.get("/my-asset", { params: t }),
1160
- getHistoryOptions: async (t) => vt.get("/my-asset/options", { params: t })
1157
+ }), qe = {
1158
+ getHistory: async (t) => At.get("/my-asset", { params: t }),
1159
+ getHistoryOptions: async (t) => At.get("/my-asset/options", { params: t })
1161
1160
  }, F = s({
1162
1161
  prefix: "/assets-go/v2/my-assets"
1163
- }), qe = {
1162
+ }), Be = {
1164
1163
  getAssigned: async (t) => F.get("/assigned", { params: t }),
1165
1164
  getAssignedOptions: async (t) => F.get("/assigned/options", { params: t }),
1166
1165
  getBorrowed: async (t) => F.get("/borrowed", { params: t }),
@@ -1169,48 +1168,51 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1169
1168
  getHistoryOptions: async (t) => F.get("/history/options", { params: t })
1170
1169
  }, tt = s({
1171
1170
  prefix: "/repair/v2"
1172
- }), Be = {
1171
+ }), xe = {
1173
1172
  getRepairList: (t) => tt.get("/my-asset/repair", { params: t }),
1174
1173
  getFilterOptions: (t) => tt.get("/my-asset/repair/options", { params: t }),
1175
1174
  getAssetRepairTicketing: (t, e) => tt.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1176
1175
  putConfirmRepair: (t) => tt.put(`/repair/${t}/confirm-repair`)
1177
- }, at = s({
1176
+ }, vt = s({
1177
+ prefix: "/settings-user-role-go/v2/auth"
1178
+ }), wt = (t) => {
1179
+ var e, r, a, m;
1180
+ return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((m = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : m.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
1181
+ }, Ge = {
1182
+ reLogin: (t) => (vt.interceptors.response.use((e) => e, wt), vt.post("/login", t))
1183
+ }, L = s({
1178
1184
  env: "APP_GLOBAL_SETTINGS_API",
1179
1185
  prefix: "/v1/global-settings/auth"
1180
- }), G = s({
1181
- env: "APP_TAGSAMURAI_API",
1182
- prefix: "/settings-user-role/v2/auth"
1183
- }), mt = (t) => {
1184
- var e, r, a, T;
1185
- return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((T = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : T.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
1186
- }, Ge = {
1186
+ }), qt = (t) => {
1187
+ var e, r, a, m;
1188
+ return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((m = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : m.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
1189
+ }, ke = {
1187
1190
  login: (t) => {
1188
1191
  const e = { ...t, isMobile: !1 };
1189
- return at.post("/login", e);
1192
+ return L.post("/login", e);
1190
1193
  },
1191
- reLoginGlobal: (t) => (at.interceptors.response.use((e) => e, mt), at.post("/login", t)),
1192
- reLogin: (t) => (G.interceptors.response.use((e) => e, mt), G.post("/login", t)),
1194
+ reLogin: (t) => (L.interceptors.response.use((e) => e, qt), L.post("/login", t)),
1193
1195
  requestOTP: (t) => {
1194
1196
  const e = { email: t };
1195
- return G.post("/request-otp", e);
1197
+ return L.post("/request-otp", e);
1196
1198
  },
1197
1199
  requestResetPassLink: (t) => {
1198
1200
  const e = { email: t };
1199
- return G.post("/request-reset-link", e);
1201
+ return L.post("/request-reset-link", e);
1200
1202
  },
1201
- setPassword: (t) => G.post("/set-password", t),
1202
- verifyToken: (t) => G.get(`/verify-token/${t}`),
1203
+ setPassword: (t) => L.post("/set-password", t),
1204
+ verifyToken: (t) => L.get(`/verify-token/${t}`),
1203
1205
  confirmEmailChange: (t) => {
1204
1206
  const e = { token: t };
1205
- return G.put("/confirm-email-change/confirm", e);
1207
+ return L.put("/confirm-email-change/confirm", e);
1206
1208
  }
1207
- }, pt = "/transfer/v2", et = s({
1208
- prefix: `${pt}/prelist`
1209
+ }, ut = "/transfer/v2", et = s({
1210
+ prefix: `${ut}/prelist`
1209
1211
  }), v = s({
1210
- prefix: `${pt}/transaction`
1212
+ prefix: `${ut}/transaction`
1211
1213
  }), J = s({
1212
- prefix: `${pt}/approval`
1213
- }), xe = {
1214
+ prefix: `${ut}/approval`
1215
+ }), Ee = {
1214
1216
  // ------ TRANSACTION ------
1215
1217
  getTransactions: (t) => v.get("/", { params: t }),
1216
1218
  getTransactionDetail: (t) => v.get(`/${t}`),
@@ -1284,9 +1286,9 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1284
1286
  prefix: "/disposal/v2/report"
1285
1287
  }), c = s({
1286
1288
  prefix: "/disposal/v2/disposal"
1287
- }), qt = s({
1289
+ }), Bt = s({
1288
1290
  prefix: "/disposal/v2/approval"
1289
- }), ke = {
1291
+ }), _e = {
1290
1292
  getReportedDisposal: (t) => W.get("", { params: t }),
1291
1293
  getReportedDisposalOptions: (t) => W.get("/options", { params: t }),
1292
1294
  postReportDisposal: (t) => W.post("", t),
@@ -1301,9 +1303,9 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1301
1303
  getTransactionData: (t) => c.get("/transaction", { params: t }),
1302
1304
  getTransactionDetail: (t) => c.get(`/transaction/${t}`),
1303
1305
  getDisposalTransactionLog: (t) => c.get(`/request/${t}/disposal-log`),
1304
- getTransactionApprovalHistory: (t) => qt.get(`/transaction/${t}/approval-history`),
1306
+ getTransactionApprovalHistory: (t) => Bt.get(`/transaction/${t}/approval-history`),
1305
1307
  getTransactionOptions: (t) => c.get("/transaction/options", { params: t }),
1306
- putCancelTransaction: (t) => c.put("/cancel", { params: t }),
1308
+ putCancelTransaction: (t) => c.put("/cancel", void 0, { params: t }),
1307
1309
  putCancelRequest: (t) => c.put("/request/cancel", t),
1308
1310
  putDisposalVerification: (t, e) => c.put(`/${e}/verification`, t),
1309
1311
  putDisposalCompletion: (t, e) => {
@@ -1318,154 +1320,155 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1318
1320
  getHistoryByAssetOptions: (t) => c.get("/history/by-asset/options", { params: t })
1319
1321
  }, rt = s({
1320
1322
  prefix: "/transfer-go/v2"
1321
- }), _e = {
1323
+ }), Fe = {
1322
1324
  getTransactionData: (t) => rt.get("/transaction", { params: t }),
1323
1325
  getTransactionOptions: (t) => rt.get("/transaction/options", { params: t }),
1324
1326
  getTransactionLog: (t) => rt.get(`/transaction/request/${t}/transaction-log`),
1325
1327
  postCreateTransaction: (t) => rt.post("/transaction", t)
1326
- }, it = s({
1328
+ }, at = s({
1327
1329
  prefix: "/audit/v2"
1328
- }), Ee = {
1329
- getAudit: (t, e) => it.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1330
- getAuditOption: (t, e) => it.get(`/audit/schedule/asset-detail/${t}/options`, {
1330
+ }), Ne = {
1331
+ getAudit: (t, e) => at.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1332
+ getAuditOption: (t, e) => at.get(`/audit/schedule/asset-detail/${t}/options`, {
1331
1333
  params: e
1332
1334
  }),
1333
- putSetActive: (t) => it.put("/audit/asset/activation", t)
1334
- }, ut = s({
1335
+ putSetActive: (t) => at.put("/audit/asset/activation", t)
1336
+ }, it = s({
1335
1337
  prefix: "/routine/v2"
1336
- }), Fe = {
1337
- getMaintenance: (t, e) => ut.get(`/routine-task/${t}`, { params: e }),
1338
- getMaintenanceOption: (t, e) => ut.get(`/routine-task/${t}/options`, { params: e }),
1339
- putSetActive: (t) => ut.put("/maintenable-asset/set-active", t)
1340
- }, Bt = s({
1338
+ }), Me = {
1339
+ getMaintenance: (t, e) => it.get(`/routine-task/${t}`, { params: e }),
1340
+ getMaintenanceOption: (t, e) => it.get(`/routine-task/${t}/options`, { params: e }),
1341
+ putSetActive: (t) => it.put("/maintenable-asset/set-active", t)
1342
+ }, xt = s({
1341
1343
  prefix: "/settings-attribute/v2/models"
1342
- }), Ne = {
1343
- getDropdown: (t) => Bt.get("/dropdown", { params: t })
1344
- }, yt = s({
1344
+ }), He = {
1345
+ getDropdown: (t) => xt.get("/dropdown", { params: t })
1346
+ }, mt = s({
1345
1347
  prefix: "/settings-attribute/v2/transaction-settings"
1346
- }), Me = {
1347
- getData: () => yt.get("/"),
1348
- putData: (t) => yt.put("/", t)
1349
- }, x = s({
1348
+ }), Ve = {
1349
+ getData: () => mt.get("/"),
1350
+ putData: (t) => mt.put("/", t)
1351
+ }, G = s({
1350
1352
  prefix: "/borrowing-go/v2"
1351
- }), He = {
1352
- getTransactions: async (t) => x.get("/transaction", { params: t }),
1353
- getTransactionOptions: async (t) => x.get("/transaction/options", { params: t }),
1354
- getTransactionLog: async (t) => x.get(`/transaction/request/${t}/transaction-log`),
1355
- postTransaction: async (t) => x.post("/transaction", t),
1356
- putTransaction: async (t) => x.put("/transaction", t),
1353
+ }), je = {
1354
+ getTransactions: async (t) => G.get("/transaction", { params: t }),
1355
+ getTransactionOptions: async (t) => G.get("/transaction/options", { params: t }),
1356
+ getTransactionLog: async (t) => G.get(`/transaction/request/${t}/transaction-log`),
1357
+ postTransaction: async (t) => G.post("/transaction", t),
1358
+ putTransaction: async (t) => G.put("/transaction", t),
1357
1359
  putTransactionReturn: async (t) => {
1358
1360
  const e = { id: t };
1359
- return x.put("/transaction/return", e);
1361
+ return G.put("/transaction/return", e);
1360
1362
  },
1361
1363
  putCancelReport: async (t) => {
1362
1364
  const e = { id: t };
1363
- return x.put("/transaction/request/cancel-report", e);
1365
+ return G.put("/transaction/request/cancel-report", e);
1364
1366
  }
1365
- }, R = s({
1367
+ }, D = s({
1366
1368
  prefix: "/disposal-go/v2/"
1367
- }), Ve = {
1368
- getReportedDisposal: (t) => R.get("/report", { params: t }),
1369
- getReportedDisposalOptions: (t) => R.get("/report/options", { params: t }),
1370
- postReportDisposal: (t) => R.post("/report", t),
1371
- deleteCancelReport: (t) => (t.isFromDisposal = "false", R.delete("/report/cancel-report", { params: t })),
1372
- deleteDeclineReport: (t) => (t.isFromDisposal = "true", R.delete("/report/cancel-report", { params: t })),
1373
- getDisposalHistory: (t) => R.get("/transaction", { params: t }),
1374
- getHistoryByAssetOptions: (t) => R.get("/transaction/options", { params: t }),
1375
- getDisposalTransactionLog: (t) => R.get(`/transaction/request/${t}/transaction-log`),
1376
- postCreateTransaction: (t) => R.post("/transaction", t)
1377
- }, f = s({
1378
- prefix: "/report/v2/reports"
1379
- }), je = {
1380
- getReportList: (t) => f.get("/schedules", { params: t }),
1381
- getReportSchedule: (t) => f.get("/schedules/" + t),
1382
- getUniqueScheduleName: (t) => f.get("/schedules/unique-name", { params: { name: t } }),
1383
- getFilterOptions: (t) => f.get("/schedules/options", { params: t }),
1384
- putSetActive: (t) => f.put("/schedules/activation", t),
1385
- putEditSchedule: (t) => f.put("/schedules/" + t._id, t),
1386
- deleteReports: (t) => f.delete("/schedules", { params: { reportIds: t } }),
1387
- postCreateSchedule: (t) => f.post("/schedules/create", t),
1388
- postDownloadReport: (t) => f.post("/download", t, { responseType: "arraybuffer" }),
1389
- postGenerateReport: (t) => f.post("/generate", t)
1390
- }, P = s({
1391
- prefix: "/report-go/v2/reports"
1392
1369
  }), Qe = {
1370
+ getReportedDisposal: (t) => D.get("/report", { params: t }),
1371
+ getReportedDisposalOptions: (t) => D.get("/report/options", { params: t }),
1372
+ postReportDisposal: (t) => D.post("/report", t),
1373
+ deleteCancelReport: (t) => (t.isFromDisposal = "false", D.delete("/report/cancel-report", { params: t })),
1374
+ deleteDeclineReport: (t) => (t.isFromDisposal = "true", D.delete("/report/cancel-report", { params: t })),
1375
+ getDisposalHistory: (t) => D.get("/transaction", { params: t }),
1376
+ getHistoryByAssetOptions: (t) => D.get("/transaction/options", { params: t }),
1377
+ getDisposalTransactionLog: (t) => D.get(`/transaction/request/${t}/transaction-log`),
1378
+ postCreateTransaction: (t) => D.post("/transaction", t)
1379
+ }, P = s({
1380
+ prefix: "/report/v2/reports"
1381
+ }), Ye = {
1393
1382
  getReportList: (t) => P.get("/schedules", { params: t }),
1394
1383
  getReportSchedule: (t) => P.get("/schedules/" + t),
1395
1384
  getUniqueScheduleName: (t) => P.get("/schedules/unique-name", { params: { name: t } }),
1396
1385
  getFilterOptions: (t) => P.get("/schedules/options", { params: t }),
1397
- putSetActive: (t) => P.put("/schedules/set-active", t),
1398
- putEditSchedule: (t, e) => P.put(`/schedules/${t}`, e),
1399
- deleteReports: (t) => P.delete("/schedules", { params: { id: t } }),
1400
- postCreateSchedule: (t) => P.post("/schedules", t),
1386
+ putSetActive: (t) => P.put("/schedules/activation", t),
1387
+ putEditSchedule: (t) => P.put("/schedules/" + t._id, t),
1388
+ deleteReports: (t) => P.delete("/schedules", { params: { reportIds: t } }),
1389
+ postCreateSchedule: (t) => P.post("/schedules/create", t),
1401
1390
  postDownloadReport: (t) => P.post("/download", t, { responseType: "arraybuffer" }),
1402
1391
  postGenerateReport: (t) => P.post("/generate", t)
1392
+ }, T = s({
1393
+ prefix: "/report-go/v2/reports"
1394
+ }), Je = {
1395
+ getReportList: (t) => T.get("/schedules", { params: t }),
1396
+ getReportSchedule: (t) => T.get("/schedules/" + t),
1397
+ getUniqueScheduleName: (t) => T.get("/schedules/unique-name", { params: { name: t } }),
1398
+ getFilterOptions: (t) => T.get("/schedules/options", { params: t }),
1399
+ putSetActive: (t) => T.put("/schedules/set-active", t),
1400
+ putEditSchedule: (t, e) => T.put(`/schedules/${t}`, e),
1401
+ deleteReports: (t) => T.delete("/schedules", { params: { id: t } }),
1402
+ postCreateSchedule: (t) => T.post("/schedules", t),
1403
+ postDownloadReport: (t) => T.post("/download", t, { responseType: "arraybuffer" }),
1404
+ postGenerateReport: (t) => T.post("/generate", t)
1403
1405
  };
1404
1406
  export {
1405
- ae as AliasCodeServices,
1406
- ie as AliasCodeServicesGo,
1407
+ ie as AliasCodeServices,
1408
+ ue as AliasCodeServicesGo,
1407
1409
  Re as AssetNameServices,
1408
- jt as AssetServices,
1409
- Qt as AssetServicesGo,
1410
- Ue as AssignmentServices,
1411
- Ce as AssignmentServicesGo,
1412
- Ee as AuditServices,
1410
+ Qt as AssetServices,
1411
+ Yt as AssetServicesGo,
1412
+ Oe as AssignmentServices,
1413
+ Ue as AssignmentServicesGo,
1414
+ Ne as AuditServices,
1413
1415
  Ge as AuthServices,
1414
- he as BorrowServices,
1415
- He as BorrowServicesGo,
1416
+ we as BorrowServices,
1417
+ je as BorrowServicesGo,
1416
1418
  Ae as BrandServices,
1417
- Ht as ChangelogServices,
1418
- le as CountryStateServices,
1419
- ge as CustomFieldServices,
1420
- ce as CustomFieldServicesGo,
1421
- Le as DamageServices,
1422
- be as DamageServicesGo,
1423
- oe as DashboardServices,
1424
- ke as DisposalServices,
1425
- Ve as DisposalServicesGo,
1426
- $e as FileManagerServices,
1427
- ve as FileManagerServicesGo,
1428
- ue as GeneralSettingsServices,
1429
- pe as GeneralSettingsServicesGo,
1430
- Ft as GroupCategoryServices,
1431
- Nt as GroupCategoryServicesGo,
1432
- ne as I18nService,
1433
- Te as ImportServices,
1434
- Ie as ImportServicesGo,
1435
- De as LicenseServices,
1436
- Oe as LicenseServicesGo,
1437
- Vt as LogServicesGo,
1438
- Yt as MissingServices,
1439
- Jt as MissingServicesGo,
1440
- Ne as ModelTypeServices,
1441
- we as MyAssetServices,
1442
- qe as MyAssetServicesGo,
1443
- Mt as NotificationApprovalServices,
1444
- Wt as NotificationServices,
1445
- Kt as NotificationServicesGo,
1446
- fe as OpenAPIServices,
1447
- Pe as OpenAPIServicesGo,
1448
- me as ReaderServices,
1449
- Be as RepairServices,
1450
- je as ReportServices,
1451
- Qe as ReportServicesGo,
1452
- ye as RoleServices,
1453
- Se as RoleServicesGo,
1454
- Fe as RoutineServices,
1455
- de as ServiceCenterServices,
1456
- zt as SessionLogServices,
1457
- re as SubUserServices,
1458
- se as SubUserServicesGo,
1459
- Zt as TAGServices,
1460
- Xt as TrackingServices,
1461
- Me as TransactionSettingServices,
1462
- xe as TransferServices,
1463
- _e as TransferServicesGo,
1464
- te as UserServices,
1465
- ee as UserServicesGo,
1466
- Et as getAssetsFile,
1419
+ Vt as ChangelogServices,
1420
+ de as CountryStateServices,
1421
+ ce as CustomFieldServices,
1422
+ le as CustomFieldServicesGo,
1423
+ be as DamageServices,
1424
+ he as DamageServicesGo,
1425
+ ae as DashboardServices,
1426
+ _e as DisposalServices,
1427
+ Qe as DisposalServicesGo,
1428
+ ve as FileManagerServices,
1429
+ me as FileManagerServicesGo,
1430
+ pe as GeneralSettingsServices,
1431
+ ge as GeneralSettingsServicesGo,
1432
+ ke as GlobalAuthServices,
1433
+ Nt as GroupCategoryServices,
1434
+ Mt as GroupCategoryServicesGo,
1435
+ oe as I18nService,
1436
+ Ce as ImportServices,
1437
+ De as ImportServicesGo,
1438
+ Ie as LicenseServices,
1439
+ Le as LicenseServicesGo,
1440
+ jt as LogServicesGo,
1441
+ Jt as MissingServices,
1442
+ Wt as MissingServicesGo,
1443
+ He as ModelTypeServices,
1444
+ qe as MyAssetServices,
1445
+ Be as MyAssetServicesGo,
1446
+ Ht as NotificationApprovalServices,
1447
+ Kt as NotificationServices,
1448
+ zt as NotificationServicesGo,
1449
+ Pe as OpenAPIServices,
1450
+ Te as OpenAPIServicesGo,
1451
+ ye as ReaderServices,
1452
+ xe as RepairServices,
1453
+ Ye as ReportServices,
1454
+ Je as ReportServicesGo,
1455
+ Se as RoleServices,
1456
+ fe as RoleServicesGo,
1457
+ Me as RoutineServices,
1458
+ $e as ServiceCenterServices,
1459
+ Zt as SessionLogServices,
1460
+ se as SubUserServices,
1461
+ ne as SubUserServicesGo,
1462
+ Xt as TAGServices,
1463
+ te as TrackingServices,
1464
+ Ve as TransactionSettingServices,
1465
+ Ee as TransferServices,
1466
+ Fe as TransferServicesGo,
1467
+ ee as UserServices,
1468
+ re as UserServicesGo,
1469
+ Ft as getAssetsFile,
1467
1470
  N as getBaseURL,
1468
1471
  _t as getImageURL,
1469
- kt as getImageURLGo,
1470
- xt as queryParamsStringfy
1472
+ Et as getImageURLGo,
1473
+ kt as queryParamsStringfy
1471
1474
  };