@tagsamurai/fats-api-services 1.0.0-alpha.147 → 1.0.0-alpha.149

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 pt from "axios";
2
- const dt = { 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" }, G = (t = "APP_API") => dt["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: o = "", headers: v = {}, ..._ } = t, ct = `${G(r)}${o}`, et = JSON.parse(localStorage.getItem("user") ?? "{}"), lt = et.jwt ?? et.token ?? "";
4
- return pt.create({
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" }, G = (t = "APP_API") => $t["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: o = "", headers: v = {}, ..._ } = t, dt = `${G(r)}${o}`, rt = JSON.parse(localStorage.getItem("user") ?? "{}"), At = rt.jwt ?? rt.token ?? "";
4
+ return lt.create({
5
5
  ..._,
6
- baseURL: ct,
6
+ baseURL: dt,
7
7
  headers: e ? v : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${lt}`,
9
+ Authorization: `Bearer ${At}`,
10
10
  ...v
11
11
  }
12
12
  });
13
- }, St = (t) => {
13
+ }, ft = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,7 +21,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, Pt = (t, e, r) => {
24
+ }, It = (t, e, r) => {
25
25
  if (!t) return;
26
26
  const o = G("APP_API"), v = t.startsWith("http") ? t : `${o}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
@@ -29,119 +29,119 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
29
29
  return e && (_.set("width", e.toString()), _.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${v}?${_.toString()}`;
30
30
  }
31
31
  return v;
32
- }, ft = (t) => {
32
+ }, Tt = (t) => {
33
33
  if (!t) return;
34
34
  const e = G("APP_TAGSAMURAI_API");
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, It = async (t, e = "excel") => await fetch(
36
+ }, Ut = async (t, e = "excel") => await fetch(
37
37
  `${G("APP_ASSETS_URL")}/${e}/${t}`
38
- ), m = s({
38
+ ), y = s({
39
39
  prefix: "/settings-attribute/v2",
40
40
  env: "APP_TAGSAMURAI_API"
41
- }), Ut = {
41
+ }), Ct = {
42
42
  getGroupCategory: (t, e) => {
43
43
  const r = t === "category" ? t : "groups";
44
- return m.get(`/${r}/tree`, { params: e });
44
+ return y.get(`/${r}/tree`, { params: e });
45
45
  },
46
46
  getGroupCategoryList: (t, e, r) => {
47
47
  const o = t === "category" ? t : "groups";
48
- return m.get(`/${o}/${e}`, { params: r });
48
+ return y.get(`/${o}/${e}`, { params: r });
49
49
  },
50
50
  getNames: (t) => {
51
51
  const e = t === "category" ? t : "groups";
52
- return m.get(`/${e}/names`);
52
+ return y.get(`/${e}/names`);
53
53
  },
54
54
  getCodes: (t) => {
55
55
  const e = t === "category" ? t : "groups";
56
- return m.get(`/${e}/codes`);
56
+ return y.get(`/${e}/codes`);
57
57
  },
58
58
  postCreateGroupCategory: (t, e) => {
59
59
  const r = t === "category" ? t : "groups";
60
- return m.post(`/${r}`, e);
60
+ return y.post(`/${r}`, e);
61
61
  },
62
62
  putEditGroupCategory: (t, e, r) => {
63
63
  const o = t === "category" ? t : "groups";
64
- return m.put(`/${o}/${r}`, e);
64
+ return y.put(`/${o}/${r}`, e);
65
65
  },
66
- putMoveGroup: (t, e) => m.put(`/groups/${e}/move-group`, t),
67
- putEditBulkGroups: async (t) => m.put("/groups/bulk", t),
66
+ putMoveGroup: (t, e) => y.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => y.put("/groups/bulk", t),
68
68
  deleteGroupCategory: (t, e, r) => {
69
69
  const o = t === "category" ? t : "groups";
70
- return m.delete(`/${o}/${r}`, { data: e });
70
+ return y.delete(`/${o}/${r}`, { data: e });
71
71
  }
72
- }, I = s({
72
+ }, T = s({
73
73
  prefix: "/settings-attribute-go/v2"
74
- }), Tt = {
74
+ }), Ot = {
75
75
  getGroupCategory: (t, e) => {
76
76
  const r = t === "category" ? t : "groups";
77
- return I.get(`/${r}/tree`, { params: e });
77
+ return T.get(`/${r}/tree`, { params: e });
78
78
  },
79
79
  getGroupCategoryList: (t, e) => {
80
80
  const r = t === "category" ? t : "groups";
81
- return I.get(`/${r}/${e}`);
81
+ return T.get(`/${r}/${e}`);
82
82
  },
83
83
  getNames: (t) => {
84
84
  const e = t === "category" ? t : "groups";
85
- return I.get(`/${e}/names`);
85
+ return T.get(`/${e}/names`);
86
86
  },
87
87
  getCodes: (t) => {
88
88
  const e = t === "category" ? t : "groups";
89
- return I.get(`/${e}/codes`);
89
+ return T.get(`/${e}/codes`);
90
90
  },
91
91
  postCreateGroupCategory: (t, e) => {
92
92
  const r = t === "category" ? t : "groups";
93
- return I.post(`/${r}`, e);
93
+ return T.post(`/${r}`, e);
94
94
  },
95
95
  putEditGroupCategory: (t, e, r) => {
96
96
  const o = t === "category" ? t : "groups";
97
- return I.put(`/${o}/${r}`, e);
97
+ return T.put(`/${o}/${r}`, e);
98
98
  },
99
99
  deleteGroupCategory: (t, e, r) => {
100
100
  const o = t === "category" ? t : "groups";
101
- return I.delete(`/${o}/${r}`, { data: e });
101
+ return T.delete(`/${o}/${r}`, { data: e });
102
102
  }
103
- }, At = s({
103
+ }, mt = s({
104
104
  prefix: "/v2",
105
105
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), Ct = {
107
- getTotalApprovals: () => At.get("/approval/count")
108
- }, S = s({
106
+ }), Lt = {
107
+ getTotalApprovals: () => mt.get("/approval/count")
108
+ }, P = s({
109
109
  prefix: "/v2",
110
110
  env: "APP_LOGS_NOTIFICATION_API"
111
- }), Ot = {
112
- getActionLog: (t) => S.get("/change-log", { params: t }),
113
- getActionLogOption: (t) => S.get("/change-log/options", { params: t }),
114
- getSessionLogList: (t) => S.get("/session-log", { params: t }),
115
- getUserDetailSystemLogList: (t) => S.get("/change-log", { params: t }),
116
- getUserDetailSystemLogOption: (t) => S.get("/change-log/options", { params: t }),
111
+ }), bt = {
112
+ getActionLog: (t) => P.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => P.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => P.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => P.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => P.get("/change-log/options", { params: t }),
117
117
  /**
118
118
  * Retrieves the transaction log.
119
119
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
120
120
  */
121
- getTransactionLog: (t) => S.get("/transaction-log", { params: t }),
121
+ getTransactionLog: (t) => P.get("/transaction-log", { params: t }),
122
122
  /**
123
123
  * Retrieves the transaction log options.
124
124
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
125
125
  */
126
- getTransactionLogOption: (t) => S.get("/transaction-log/options", { params: t }),
127
- postScanLog: (t) => S.post("/transaction-log/scan-log", t)
128
- }, y = s({
126
+ getTransactionLogOption: (t) => P.get("/transaction-log/options", { params: t }),
127
+ postScanLog: (t) => P.post("/transaction-log/scan-log", t)
128
+ }, S = s({
129
129
  prefix: "/utility/v2"
130
- }), Lt = {
131
- getActionLog: (t) => y.get("/change-log", { params: t }),
132
- getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
133
- getSessionLogList: (t) => y.get("/session-log", { params: t }),
134
- getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
135
- getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
136
- getUserDetailUserLogBorrowingList: (t, e) => y.get(`/borrowing-log/${t}`, { params: e }),
137
- getUserDetailUserLogAssignmentList: (t, e) => y.get(`/assignment-log/${t}`, { params: e }),
138
- getUserDetailUserLogBorrowingOption: (t, e) => y.get(`/borrowing-log/${t}/options`, { params: e }),
139
- getUserDetailUserLogAssignmentOption: (t, e) => y.get(`/assignment-log/${t}/options`, { params: e })
130
+ }), Dt = {
131
+ getActionLog: (t) => S.get("/change-log", { params: t }),
132
+ getActionLogOption: (t) => S.get("/change-log/options", { params: t }),
133
+ getSessionLogList: (t) => S.get("/session-log", { params: t }),
134
+ getUserDetailSystemLogList: (t) => S.get("/change-log", { params: t }),
135
+ getUserDetailSystemLogOption: (t) => S.get("/change-log/options", { params: t }),
136
+ getUserDetailUserLogBorrowingList: (t, e) => S.get(`/borrowing-log/${t}`, { params: e }),
137
+ getUserDetailUserLogAssignmentList: (t, e) => S.get(`/assignment-log/${t}`, { params: e }),
138
+ getUserDetailUserLogBorrowingOption: (t, e) => S.get(`/borrowing-log/${t}/options`, { params: e }),
139
+ getUserDetailUserLogAssignmentOption: (t, e) => S.get(`/assignment-log/${t}/options`, { params: e })
140
140
  }, i = s({
141
141
  prefix: "/assets/v2/assets"
142
- }), B = s({
142
+ }), F = s({
143
143
  prefix: "/assets/v2/attachment"
144
- }), bt = {
144
+ }), Rt = {
145
145
  getScanTag: (t) => i.get("/scan", { params: { tag: t } }),
146
146
  getAllAssets: (t) => i.get("/", { params: t }),
147
147
  getAllAssetsOptions: (t) => i.get("/options", { params: t }),
@@ -184,60 +184,109 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
184
184
  putLinkAsset: (t, e) => i.put(`/${e}/link-assets`, t),
185
185
  putUnlinkAsset: (t, e) => i.put(`/${e}/remove-link-assets`, t),
186
186
  // Asset Services prefixed by "attachment"
187
- getAttachment: (t) => B.get("", { params: t }),
187
+ getAttachment: (t) => F.get("", { params: t }),
188
188
  postAttachment: (t) => {
189
189
  const e = { "Content-Type": "multipart/form-data" };
190
- return B.post("", t, { headers: e });
190
+ return F.post("", t, { headers: e });
191
191
  },
192
192
  putAttachment: (t, e) => {
193
193
  const r = { "Content-Type": "multipart/form-data" };
194
- return B.put(`/${e}`, t, { headers: r });
194
+ return F.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) => B.delete("/bulk", { params: t })
202
- }, k = s({
201
+ deleteAttachment: (t) => F.delete("/bulk", { params: t })
202
+ }, g = s({
203
+ prefix: "/assets-go/v2/assets"
204
+ }), st = s({
205
+ prefix: "/assets-go/v2/attachment"
206
+ }), ht = {
207
+ getAllAssets: (t) => g.get("/", { params: t }),
208
+ getAllAssetsOptions: (t) => g.get("/options", { params: t }),
209
+ getAssetsById: (t, e) => g.get("/by-id", { params: { _id: t, ...e } }),
210
+ getOptions: (t, e) => g.get(t ? `/${t}/options` : "/options", {
211
+ params: e
212
+ }),
213
+ getUnlinkedAssets: (t) => g.get("/unlinked", { params: t }),
214
+ getAssetDetail: (t, e) => g.get(`/${t}`, { params: e }),
215
+ getAssetNameTotal: (t) => g.get(`/name-amount/${t}`),
216
+ postRegisterAsset: (t) => {
217
+ const e = { "Content-Type": "multipart/form-data" };
218
+ return g.post("/bulk", t, { headers: e });
219
+ },
220
+ putEditAsset: (t, e) => {
221
+ const r = { "Content-Type": "multipart/form-data" };
222
+ return g.put(`/${t}`, e, { headers: r });
223
+ },
224
+ putEditDetailCustomField: (t, e) => {
225
+ const r = { "Content-Type": "multipart/form-data" };
226
+ return g.put(`/${t}`, e, { headers: r });
227
+ },
228
+ getLinkedAsset: (t, e) => g.get(`/${t}/linked`, { params: e }),
229
+ getPurchase: (t) => g.get(`/${t}/purchase`),
230
+ putPurchase: (t, e) => g.put(`/${e}/purchase`, t),
231
+ getAccounting: (t, e) => g.get(`/${t}/accounting`, { params: e }),
232
+ getLinkedAssetOption: (t, e) => g.get(`/${t}/linked/options`, { params: e }),
233
+ putLinkAsset: (t, e) => g.put(`/${e}/link-assets`, t),
234
+ putUnlinkAsset: (t, e) => g.put(`/${e}/remove-link-assets`, t),
235
+ // Asset Services prefixed by "attachment"
236
+ getAttachment: (t, e) => st.get(`/${t}`, { params: e }),
237
+ postAttachment: (t) => {
238
+ const e = { "Content-Type": "multipart/form-data" };
239
+ return st.post("", t, { headers: e });
240
+ },
241
+ putAttachment: (t, e) => {
242
+ const r = { "Content-Type": "multipart/form-data" };
243
+ return g.put(`/attachment/${e}`, t, { headers: r });
244
+ },
245
+ /**
246
+ * Deletes the attachment with the given IDs.
247
+ * @param {object} params - The request params containing the IDs of the attachments to delete.
248
+ * @returns {Promise<AxiosResponse>}
249
+ */
250
+ deleteAttachment: (t) => g.delete("/attachment/bulk", { params: t })
251
+ }, x = s({
203
252
  prefix: "/tracking/v2/missing"
204
- }), Dt = {
253
+ }), kt = {
205
254
  /**
206
255
  * To mark as found.
207
256
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
208
257
  */
209
- putMarkAsFound: (t) => k.put("/found", t),
210
- putReportMissing: (t, e) => k.put(`/report-missing/${t}`, e),
211
- getData: (t) => k.get("/", { params: t }),
212
- getDetail: (t) => k.get(`/${t}`),
213
- getOptions: (t) => k.get("/options", { params: t })
214
- }, x = s({
215
- prefix: "/missing-tracking/v2"
216
- }), Rt = {
217
- putFoundAsset: (t) => x.put("/found", t),
218
- putReportMissing: (t, e) => x.put(`/${t}/report-missing`, e),
258
+ putMarkAsFound: (t) => x.put("/found", t),
259
+ putReportMissing: (t, e) => x.put(`/report-missing/${t}`, e),
219
260
  getData: (t) => x.get("/", { params: t }),
220
- getDataOptions: (t) => x.get("/options", { params: t }),
221
- getDetail: (t) => x.get(`/${t}`)
222
- }, rt = s({
261
+ getDetail: (t) => x.get(`/${t}`),
262
+ getOptions: (t) => x.get("/options", { params: t })
263
+ }, w = s({
264
+ prefix: "/missing-tracking/v2"
265
+ }), Gt = {
266
+ putFoundAsset: (t) => w.put("/found", t),
267
+ putReportMissing: (t, e) => w.put(`/${t}/report-missing`, e),
268
+ getData: (t) => w.get("/", { params: t }),
269
+ getDataOptions: (t) => w.get("/options", { params: t }),
270
+ getDetail: (t) => w.get(`/${t}`)
271
+ }, nt = s({
223
272
  prefix: "/v2/notification",
224
273
  env: "APP_LOGS_NOTIFICATION_API"
225
- }), ht = {
226
- getNotifications: (t) => rt.get("/", { params: t }),
227
- readNotification: (t) => rt.put(`/${t}`)
228
- }, st = s({
274
+ }), _t = {
275
+ getNotifications: (t) => nt.get("/", { params: t }),
276
+ readNotification: (t) => nt.put(`/${t}`)
277
+ }, ot = s({
229
278
  prefix: "/utility/v2/notification"
230
- }), Gt = {
231
- getNotifications: (t) => st.get("/", { params: t }),
232
- readNotification: (t) => st.put(`/${t}`)
233
- }, $t = s({
279
+ }), xt = {
280
+ getNotifications: (t) => ot.get("/", { params: t }),
281
+ readNotification: (t) => ot.put(`/${t}`)
282
+ }, vt = s({
234
283
  prefix: "/v2/session-log",
235
284
  env: "APP_LOGS_NOTIFICATION_API"
236
- }), _t = {
237
- postLogout: () => $t.post("/logout")
285
+ }), wt = {
286
+ postLogout: () => vt.post("/logout")
238
287
  }, a = s({
239
288
  prefix: "/tag/v2"
240
- }), kt = {
289
+ }), qt = {
241
290
  getScanQR: (t) => a.get("/qr", { params: { tag: t } }),
242
291
  getScanRFID: (t) => a.get("/rfid", { params: { tag: t } }),
243
292
  getRFIDQRTAG: (t) => a.get("/rfid-qr/scan", { params: t }),
@@ -274,10 +323,10 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
274
323
  },
275
324
  putReportTAG: (t, e) => a.put(`/tag-transaction/report/${t}`, e),
276
325
  putDeclineReport: (t, e) => a.put(`/report/decline-report/${e}`, t)
277
- }, F = s({
326
+ }, N = s({
278
327
  prefix: "/tracking/v2/tracking"
279
- }), xt = {
280
- getTrackingDetail: (t) => F.get(`/${t}`),
328
+ }), Et = {
329
+ getTrackingDetail: (t) => N.get(`/${t}`),
281
330
  putFoundAsset: (t, e, r) => {
282
331
  const o = {
283
332
  tag: t,
@@ -285,13 +334,13 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
285
334
  serialNumber: r,
286
335
  type: "Global"
287
336
  };
288
- return F.put("/found", { params: o });
337
+ return N.put("/found", { params: o });
289
338
  },
290
- putReportPermanentlyMissing: (t, e) => F.put(`/report-permanently-missing/${t}`, e),
291
- putMoveBack: (t) => F.put("/tracking/move-back", t)
339
+ putReportPermanentlyMissing: (t, e) => N.put(`/report-permanently-missing/${t}`, e),
340
+ putMoveBack: (t) => N.put("/tracking/move-back", t)
292
341
  }, u = s({
293
342
  prefix: "/settings-user-role/v2"
294
- }), wt = {
343
+ }), Bt = {
295
344
  reLogin: (t) => u.post("/auth/login", t),
296
345
  changePassword: (t) => u.put("/users/change-password", t),
297
346
  /**
@@ -333,18 +382,18 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
333
382
  getUserDetailUserAssetAssignedList: (t, e) => u.get(`/user-detail/${t}/assets/assigned`, { params: e }),
334
383
  getUserDetailUserAssetBorrowedOption: (t, e) => u.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
335
384
  getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
336
- }, g = s({
385
+ }, p = s({
337
386
  prefix: "/settings-user-role-go/v2"
338
- }), qt = {
387
+ }), Ft = {
339
388
  /**
340
389
  * Retrieves the user list as dropdown options.
341
390
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
342
391
  */
343
- getUserDropdown: (t) => g.get("/users/dropdown", { params: t }),
344
- getUserOptions: (t) => g.get("/users/options", { params: t }),
345
- getUserList: (t) => g.get("/users", { params: t }),
346
- getUserDetail: (t) => g.get(`/users/${t}`),
347
- putSetActiveBulk: (t) => g.put("/users/set-active-bulk", t),
392
+ getUserDropdown: (t) => p.get("/users/dropdown", { params: t }),
393
+ getUserOptions: (t) => p.get("/users/options", { params: t }),
394
+ getUserList: (t) => p.get("/users", { params: t }),
395
+ getUserDetail: (t) => p.get(`/users/${t}`),
396
+ putSetActiveBulk: (t) => p.put("/users/set-active-bulk", t),
348
397
  // User Detail
349
398
  /**
350
399
  *
@@ -354,87 +403,87 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
354
403
  */
355
404
  getUserDetailSystemRoles: (t, e, r) => {
356
405
  const o = r ? `/${r}/groups` : "";
357
- return g.get(`/users/${t}/system-roles${o}`, {
406
+ return p.get(`/users/${t}/system-roles${o}`, {
358
407
  params: e
359
408
  });
360
409
  },
361
- getUserDetailTransactionRoleList: (t, e) => g.get(`/users/${t}/transaction-roles`, { params: e }),
362
- postUserDetailAddTransactionRole: (t, e) => g.post(`/users/${t}/add-transaction-role`, e),
363
- deleteUserDetailTransactionRole: (t, e) => g.put(`/users/${t}/delete-transaction-role`, e),
364
- putUserDetailEditTransactionRole: (t, e) => g.put(`/users/${t}/edit-transaction-role`, e),
365
- putAssignGroup: (t, e, r) => g.put(`/users/${r}/system-roles/${e}/groups`, t),
366
- putRoleSetActive: (t, e) => g.put(`/users/${e}/system-roles/set-active-bulk`, t),
367
- getUserDetailTransactionAdminLogList: (t, e) => g.get(`/users/${t}/transaction-log`, { params: e }),
368
- getUserDetailTransactionAdminLogOption: (t, e) => g.get(`/users/${t}/transaction-log/option`, { params: e }),
369
- getUserDetailUserAssetBorrowedList: (t, e) => g.get(`/users/${t}/borrowed-asset`, { params: e }),
370
- getUserDetailUserAssetAssignedList: (t, e) => g.get(`/users/${t}/assigned-asset`, { params: e }),
371
- getUserDetailUserAssetBorrowedOption: (t, e) => g.get(`/users/${t}/borrowed-asset/option`, { params: e }),
372
- getUserDetailUserAssetAssignedOption: (t, e) => g.get(`/users/${t}/assigned-asset/option`, { params: e })
373
- }, P = s({
410
+ getUserDetailTransactionRoleList: (t, e) => p.get(`/users/${t}/transaction-roles`, { params: e }),
411
+ postUserDetailAddTransactionRole: (t, e) => p.post(`/users/${t}/add-transaction-role`, e),
412
+ deleteUserDetailTransactionRole: (t, e) => p.put(`/users/${t}/delete-transaction-role`, e),
413
+ putUserDetailEditTransactionRole: (t, e) => p.put(`/users/${t}/edit-transaction-role`, e),
414
+ putAssignGroup: (t, e, r) => p.put(`/users/${r}/system-roles/${e}/groups`, t),
415
+ putRoleSetActive: (t, e) => p.put(`/users/${e}/system-roles/set-active-bulk`, t),
416
+ getUserDetailTransactionAdminLogList: (t, e) => p.get(`/users/${t}/transaction-log`, { params: e }),
417
+ getUserDetailTransactionAdminLogOption: (t, e) => p.get(`/users/${t}/transaction-log/option`, { params: e }),
418
+ getUserDetailUserAssetBorrowedList: (t, e) => p.get(`/users/${t}/borrowed-asset`, { params: e }),
419
+ getUserDetailUserAssetAssignedList: (t, e) => p.get(`/users/${t}/assigned-asset`, { params: e }),
420
+ getUserDetailUserAssetBorrowedOption: (t, e) => p.get(`/users/${t}/borrowed-asset/option`, { params: e }),
421
+ getUserDetailUserAssetAssignedOption: (t, e) => p.get(`/users/${t}/assigned-asset/option`, { params: e })
422
+ }, f = s({
374
423
  prefix: "/settings-user-role/v2/sub-users"
375
- }), Et = {
424
+ }), Nt = {
376
425
  // Sub User
377
- getSubUserList: (t, e) => P.get(`/${t}`, { params: e }),
378
- getSubUserOptions: (t, e) => P.get(`/${t}/option`, { params: e }),
426
+ getSubUserList: (t, e) => f.get(`/${t}`, { params: e }),
427
+ getSubUserOptions: (t, e) => f.get(`/${t}/option`, { params: e }),
379
428
  postCreateSubUser: (t, e) => {
380
429
  const r = { "Content-Type": "multipart/form-data" };
381
- return P.post(`/${t}`, e, { headers: r });
430
+ return f.post(`/${t}`, e, { headers: r });
382
431
  },
383
- putSubUserSetActiveBulk: (t) => P.put("/set-active-bulk", t),
384
- deleteSubUser: (t) => P.delete("/bulk", { data: { subUserIds: t } }),
432
+ putSubUserSetActiveBulk: (t) => f.put("/set-active-bulk", t),
433
+ deleteSubUser: (t) => f.delete("/bulk", { data: { subUserIds: t } }),
385
434
  putEditSubUser: (t, e) => {
386
435
  const r = { "Content-Type": "multipart/form-data" };
387
- return P.put(`/${t}`, e, { headers: r });
436
+ return f.put(`/${t}`, e, { headers: r });
388
437
  },
389
- getBorrowedAsset: (t, e) => P.get(`/${t}/borrowed-asset`, { params: e }),
390
- getBorrowedAssetOptions: (t, e) => P.get(`/${t}/borrowed-asset/options`, { params: e })
391
- }, $ = s({
438
+ getBorrowedAsset: (t, e) => f.get(`/${t}/borrowed-asset`, { params: e }),
439
+ getBorrowedAssetOptions: (t, e) => f.get(`/${t}/borrowed-asset/options`, { params: e })
440
+ }, m = s({
392
441
  prefix: "/settings-user-role-go/v2/users"
393
- }), Bt = {
442
+ }), Mt = {
394
443
  // Sub User
395
- getSubUserList: (t, e) => $.get(`/${t}/sub-users`, { params: e }),
396
- getSubUserOptions: (t, e) => $.get(`/${t}/sub-users/option`, { params: e }),
444
+ getSubUserList: (t, e) => m.get(`/${t}/sub-users`, { params: e }),
445
+ getSubUserOptions: (t, e) => m.get(`/${t}/sub-users/option`, { params: e }),
397
446
  postCreateSubUser: (t, e) => {
398
447
  const r = { "Content-Type": "multipart/form-data" };
399
- return $.post(`/${t}/sub-users`, e, { headers: r });
448
+ return m.post(`/${t}/sub-users`, e, { headers: r });
400
449
  },
401
- putSubUserSetActiveBulk: (t, e) => $.put(`/${t}/sub-users/set-active-bulk`, e),
402
- deleteSubUser: (t, e) => $.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
450
+ putSubUserSetActiveBulk: (t, e) => m.put(`/${t}/sub-users/set-active-bulk`, e),
451
+ deleteSubUser: (t, e) => m.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
403
452
  putEditSubUser: (t, e, r) => {
404
453
  const o = { "Content-Type": "multipart/form-data" };
405
- return $.put(`/${t}/sub-users/${e}`, r, {
454
+ return m.put(`/${t}/sub-users/${e}`, r, {
406
455
  headers: o
407
456
  });
408
457
  },
409
- getBorrowedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset`, {
458
+ getBorrowedAsset: (t, e, r) => m.get(`/${t}/sub-users/${e}/borrowed-asset`, {
410
459
  params: r
411
460
  }),
412
- getBorrowedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
461
+ getBorrowedAssetOptions: (t, e, r) => m.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
413
462
  params: r
414
463
  }),
415
- getAssignedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset`, {
464
+ getAssignedAsset: (t, e, r) => m.get(`/${t}/sub-users/${e}/assigned-asset`, {
416
465
  params: r
417
466
  }),
418
- getAssignedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
467
+ getAssignedAssetOptions: (t, e, r) => m.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
419
468
  params: r
420
469
  })
421
- }, N = s({
470
+ }, M = s({
422
471
  env: "APP_ADMIN_API",
423
472
  prefix: "/settings-attribute/languages"
424
- }), Ft = {
473
+ }), Ht = {
425
474
  /**
426
475
  * Fetch all translation messages for a specific locale.
427
476
  * @param locale The locale code (e.g., 'en', 'id').
428
477
  * @returns A promise resolving to a key-value record of messages.
429
478
  */
430
- getMessages: (t) => N.get(`/${t}/translations`),
479
+ getMessages: (t) => M.get(`/${t}/translations`),
431
480
  /**
432
481
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
433
482
  *
434
483
  * @returns Promise Array of options
435
484
  */
436
485
  getLanguageOptions: async () => {
437
- const { data: t } = await N.get("/dropdown");
486
+ const { data: t } = await M.get("/dropdown");
438
487
  return t.data;
439
488
  },
440
489
  /**
@@ -444,7 +493,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
444
493
  * @returns Promise LanguageMeta
445
494
  */
446
495
  getLanguageOptionMeta: async (t) => {
447
- const { data: e } = await N.get(
496
+ const { data: e } = await M.get(
448
497
  "/dropdown/" + t
449
498
  );
450
499
  return e.data;
@@ -456,42 +505,42 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
456
505
  * @param locale Target locale code.
457
506
  */
458
507
  translateText: async (t, e) => {
459
- const { data: r } = await N.post("/translate", {
508
+ const { data: r } = await M.post("/translate", {
460
509
  q: t,
461
510
  target: e
462
511
  });
463
512
  return r.data.translations[t];
464
513
  }
465
- }, nt = s({
514
+ }, at = s({
466
515
  prefix: "/dashboard/v2/dashboard"
467
- }), Nt = {
468
- getLatestTask: (t) => nt.get("/latest-task", { params: t }),
469
- getSummary: (t) => nt.get("/summary", { params: t })
470
- }, Y = s({
471
- prefix: "/alias-code/api/alias-code"
472
- }), Mt = {
473
- getAliasCode: () => Y.get("/"),
474
- postAliasCode: (t) => Y.post("/", t),
475
- getAliasCodeList: (t) => Y.get(`/${t.object}/code-list`, { params: t })
516
+ }), Vt = {
517
+ getLatestTask: (t) => at.get("/latest-task", { params: t }),
518
+ getSummary: (t) => at.get("/summary", { params: t })
476
519
  }, J = s({
477
- prefix: "/settings-attribute-go/v2/alias-code"
478
- }), Ht = {
520
+ prefix: "/alias-code/api/alias-code"
521
+ }), jt = {
479
522
  getAliasCode: () => J.get("/"),
480
523
  postAliasCode: (t) => J.post("/", t),
481
524
  getAliasCodeList: (t) => J.get(`/${t.object}/code-list`, { params: t })
482
- }, ot = s({
525
+ }, K = s({
526
+ prefix: "/settings-attribute-go/v2/alias-code"
527
+ }), Qt = {
528
+ getAliasCode: () => K.get("/"),
529
+ postAliasCode: (t) => K.post("/", t),
530
+ getAliasCodeList: (t) => K.get(`/${t.object}/code-list`, { params: t })
531
+ }, it = s({
483
532
  prefix: "/settings-attribute/v2/general-settings"
484
- }), Vt = {
485
- getGeneralSettings: () => ot.get("/"),
486
- putUpdateGeneralSettings: (t) => ot.put("/", t)
487
- }, at = s({
533
+ }), Yt = {
534
+ getGeneralSettings: () => it.get("/"),
535
+ putUpdateGeneralSettings: (t) => it.put("/", t)
536
+ }, ut = s({
488
537
  prefix: "/settings-attribute-go/v2/general-settings"
489
- }), jt = {
490
- getGeneralSettings: () => at.get("/"),
491
- putUpdateGeneralSettings: (t) => at.put("/", t)
538
+ }), Jt = {
539
+ getGeneralSettings: () => ut.get("/"),
540
+ putUpdateGeneralSettings: (t) => ut.put("/", t)
492
541
  }, U = s({
493
542
  prefix: "/settings-attribute/v2/custom-field"
494
- }), Qt = {
543
+ }), Kt = {
495
544
  getCustomField: async (t) => U.get("/", { params: t }),
496
545
  getCustomFieldsByCategory: (t, e) => U.get(`/${t}`, { params: e }),
497
546
  getOptions: async (t) => U.get("/options", { params: t }),
@@ -499,18 +548,18 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
499
548
  putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
500
549
  putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
501
550
  deleteCustomField: async (t) => U.delete("/bulk", { data: t })
502
- }, b = s({
551
+ }, D = s({
503
552
  prefix: "/settings-attribute-go/v2/custom-field"
504
- }), Yt = {
505
- getCustomField: async (t) => b.get("/", { params: t }),
506
- getOptions: async (t) => b.get("/options", { params: t }),
507
- postCreateCustomField: async (t, e) => b.post("/", e, { params: t }),
508
- putEditCustomField: async (t, e, r) => b.put(`/${r}`, e, { params: t }),
509
- putChangeStatus: async (t, e) => b.put("/bulk", e, { params: t }),
510
- deleteCustomField: async (t) => b.delete("/bulk", { params: t })
511
- }, K = ({ headers: t = {}, params: e = {} } = {}) => {
553
+ }), Wt = {
554
+ getCustomField: async (t) => D.get("/", { params: t }),
555
+ getOptions: async (t) => D.get("/options", { params: t }),
556
+ postCreateCustomField: async (t, e) => D.post("/", e, { params: t }),
557
+ putEditCustomField: async (t, e, r) => D.put(`/${r}`, e, { params: t }),
558
+ putChangeStatus: async (t, e) => D.put("/bulk", e, { params: t }),
559
+ deleteCustomField: async (t) => D.delete("/bulk", { params: t })
560
+ }, W = ({ headers: t = {}, params: e = {} } = {}) => {
512
561
  const r = G("APP_COUNTRY_STATE_API"), o = G("APP_COUNTRY_STATE_API_KEY");
513
- return pt.create({
562
+ return lt.create({
514
563
  baseURL: `${r}/v1`,
515
564
  headers: {
516
565
  "Content-type": "application/json",
@@ -519,38 +568,38 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
519
568
  },
520
569
  params: e
521
570
  });
522
- }, Jt = {
523
- getCountry: () => K().get("/countries"),
524
- getState: (t) => K().get(`/countries/${t}/states`),
525
- getCity: (t, e) => K().get(`/countries/${t}/states/${e}/cities`)
526
- }, A = s({
571
+ }, zt = {
572
+ getCountry: () => W().get("/countries"),
573
+ getState: (t) => W().get(`/countries/${t}/states`),
574
+ getCity: (t, e) => W().get(`/countries/${t}/states/${e}/cities`)
575
+ }, $ = s({
527
576
  prefix: "/routine/v2"
528
- }), Kt = {
529
- getList: (t) => A.get("/service-center", { params: t }),
530
- postList: (t) => A.post("/service-center", t),
531
- putList: (t, e) => A.put(`/service-center/${t}`, e),
532
- putActivate: (t) => A.put("/service-center/bulk", t),
533
- getDetailList: (t) => A.get(`/service-center/${t}`),
534
- getListOptions: (t) => A.get("/service-center/options", { params: t }),
535
- deleteList: (t) => A.delete("/service-center", { params: t }),
577
+ }), Xt = {
578
+ getList: (t) => $.get("/service-center", { params: t }),
579
+ postList: (t) => $.post("/service-center", t),
580
+ putList: (t, e) => $.put(`/service-center/${t}`, e),
581
+ putActivate: (t) => $.put("/service-center/bulk", t),
582
+ getDetailList: (t) => $.get(`/service-center/${t}`),
583
+ getListOptions: (t) => $.get("/service-center/options", { params: t }),
584
+ deleteList: (t) => $.delete("/service-center", { params: t }),
536
585
  // Activities
537
- getActivities: (t) => A.get("/service-activities", { params: t }),
538
- getActivityOptions: (t) => A.get("/service-activities/options", { params: t }),
539
- getActivityDetail: (t) => A.get(`/service-activities/${t}`),
540
- getActivityLog: (t) => A.get(`/service-activities/${t}/activity-log`)
541
- }, vt = s({
586
+ getActivities: (t) => $.get("/service-activities", { params: t }),
587
+ getActivityOptions: (t) => $.get("/service-activities/options", { params: t }),
588
+ getActivityDetail: (t) => $.get(`/service-activities/${t}`),
589
+ getActivityLog: (t) => $.get(`/service-activities/${t}/activity-log`)
590
+ }, yt = s({
542
591
  prefix: "/settings-attribute/v2/brands"
543
- }), Wt = {
544
- getDropdown: (t) => vt.get("/dropdown", { params: t })
545
- }, D = s({
592
+ }), Zt = {
593
+ getDropdown: (t) => yt.get("/dropdown", { params: t })
594
+ }, R = s({
546
595
  prefix: "/file-manager/v2"
547
- }), zt = {
596
+ }), te = {
548
597
  /**
549
598
  * Get storage information.
550
599
  *
551
600
  * @returns {Promise<AxiosResponse>} The Axios Response.
552
601
  */
553
- getStorageInformation: () => D.get("/files/storage"),
602
+ getStorageInformation: () => R.get("/files/storage"),
554
603
  /**
555
604
  * Get file manager data.
556
605
  *
@@ -558,7 +607,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
558
607
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
559
608
  * @returns {Promise<AxiosResponse>} The Axios Response.
560
609
  */
561
- getFileManager: (t, e) => D.get(`/${t}`, { params: e }),
610
+ getFileManager: (t, e) => R.get(`/${t}`, { params: e }),
562
611
  /**
563
612
  * Get file manager options.
564
613
  *
@@ -566,7 +615,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
566
615
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
567
616
  * @returns {Promise<AxiosResponse>} The Axios Response.
568
617
  */
569
- getFileManagerOption: (t, e) => D.get(`/${t}/options`, { params: e }),
618
+ getFileManagerOption: (t, e) => R.get(`/${t}/options`, { params: e }),
570
619
  /**
571
620
  * Recover files.
572
621
  *
@@ -574,7 +623,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
574
623
  * @param {object} body - The body of the request.
575
624
  * @returns {Promise<AxiosResponse>} The Axios Response.
576
625
  */
577
- recoverFiles: (t, e) => D.put(`/${t}/recover`, e),
626
+ recoverFiles: (t, e) => R.put(`/${t}/recover`, e),
578
627
  /**
579
628
  * Delete files.
580
629
  *
@@ -582,7 +631,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
582
631
  * @param {DeleteFileManagerDto} params - The params of the request.
583
632
  * @returns {Promise<AxiosResponse>} The Axios Response.
584
633
  */
585
- deleteFiles: (t, e) => D.delete(`/${t}`, { params: e }),
634
+ deleteFiles: (t, e) => R.delete(`/${t}`, { params: e }),
586
635
  /**
587
636
  * Delete files permanently.
588
637
  *
@@ -590,16 +639,16 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
590
639
  * @param {object} body - The body of the request.
591
640
  * @returns {Promise<AxiosResponse>} The Axios Response.
592
641
  */
593
- deletePermanently: (t, e) => D.delete(`/${t}/delete-permanent`, { params: e })
594
- }, R = s({
642
+ deletePermanently: (t, e) => R.delete(`/${t}/delete-permanent`, { params: e })
643
+ }, h = s({
595
644
  prefix: "/utility/v2"
596
- }), Xt = {
645
+ }), ee = {
597
646
  /**
598
647
  * Get storage information.
599
648
  *
600
649
  * @returns {Promise<AxiosResponse>} The Axios Response.
601
650
  */
602
- getStorageInformation: () => R.get("/files/storage"),
651
+ getStorageInformation: () => h.get("/files/storage"),
603
652
  /**
604
653
  * Get file manager data.
605
654
  *
@@ -607,7 +656,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
607
656
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
608
657
  * @returns {Promise<AxiosResponse>} The Axios Response.
609
658
  */
610
- getFileManager: (t, e) => R.get(`/${t}`, { params: e }),
659
+ getFileManager: (t, e) => h.get(`/${t}`, { params: e }),
611
660
  /**
612
661
  * Get file manager options.
613
662
  *
@@ -615,7 +664,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
615
664
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
616
665
  * @returns {Promise<AxiosResponse>} The Axios Response.
617
666
  */
618
- getFileManagerOption: (t, e) => R.get(`/${t}/options`, { params: e }),
667
+ getFileManagerOption: (t, e) => h.get(`/${t}/options`, { params: e }),
619
668
  /**
620
669
  * Recover files.
621
670
  *
@@ -623,7 +672,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
623
672
  * @param {object} body - The body of the request.
624
673
  * @returns {Promise<AxiosResponse>} The Axios Response.
625
674
  */
626
- recoverFiles: (t, e) => R.put(`/${t}/recover`, e),
675
+ recoverFiles: (t, e) => h.put(`/${t}/recover`, e),
627
676
  /**
628
677
  * Delete files.
629
678
  *
@@ -631,7 +680,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
631
680
  * @param {DeleteFileManagerDto} params - The params of the request.
632
681
  * @returns {Promise<AxiosResponse>} The Axios Response.
633
682
  */
634
- deleteFiles: (t, e) => R.delete(`/${t}`, { params: e }),
683
+ deleteFiles: (t, e) => h.delete(`/${t}`, { params: e }),
635
684
  /**
636
685
  * Delete files permanently.
637
686
  *
@@ -639,28 +688,28 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
639
688
  * @param {object} body - The body of the request.
640
689
  * @returns {Promise<AxiosResponse>} The Axios Response.
641
690
  */
642
- deletePermanently: (t, e) => R.delete(`/${t}/delete-permanent`, { params: e })
643
- }, f = s({
691
+ deletePermanently: (t, e) => h.delete(`/${t}/delete-permanent`, { params: e })
692
+ }, I = s({
644
693
  prefix: "/iot/v2/reader"
645
- }), Zt = {
646
- getData: (t) => f.get("/", { params: t }),
647
- getDataOptions: (t) => f.get("/options", { params: t }),
648
- getActivityLogData: (t) => f.get("/activity-log", { params: t }),
649
- getActivityLogOptions: (t) => f.get("/activity-log/options", { params: t }),
650
- getDataById: (t) => f.get(`/${t}`),
651
- getChangeLog: (t) => f.get(`/${t.id}/change-log`, { params: t }),
652
- getChangeLogOptions: (t) => f.get(`/${t.id}/change-log/options`, { params: t }),
653
- putData: (t, e) => f.put(`/${t}`, e)
654
- }, p = s({
694
+ }), re = {
695
+ getData: (t) => I.get("/", { params: t }),
696
+ getDataOptions: (t) => I.get("/options", { params: t }),
697
+ getActivityLogData: (t) => I.get("/activity-log", { params: t }),
698
+ getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
699
+ getDataById: (t) => I.get(`/${t}`),
700
+ getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
701
+ getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
702
+ putData: (t, e) => I.put(`/${t}`, e)
703
+ }, c = s({
655
704
  prefix: "/settings-user-role/v2"
656
- }), te = {
705
+ }), se = {
657
706
  /**
658
707
  * Retrieves the transaction role for the given group and transaction name.
659
708
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
660
709
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
661
710
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
662
711
  */
663
- getTransactionRole: (t, e) => p.get(`/transaction-roles/${t}/${e}`),
712
+ getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
664
713
  /**
665
714
  * Updates the users assigned to the given transaction role.
666
715
  * @param {string} groupId - The ID of the group the transaction role belongs to.
@@ -668,7 +717,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
668
717
  * @param {UpdateUser} body - The request body containing the updated user information.
669
718
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
670
719
  */
671
- putUpdateUsers: (t, e, r) => p.put(
720
+ putUpdateUsers: (t, e, r) => c.put(
672
721
  `/transaction-roles/${t}/${e}/update-user`,
673
722
  r
674
723
  ),
@@ -679,7 +728,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
679
728
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
680
729
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
681
730
  */
682
- putUpdateLevel: (t, e, r) => p.put(
731
+ putUpdateLevel: (t, e, r) => c.put(
683
732
  `/transaction-roles/${t}/${e}/update-approval-level`,
684
733
  r
685
734
  ),
@@ -690,64 +739,64 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
690
739
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
691
740
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
692
741
  */
693
- putUpdateGroupManage: (t, e, r) => p.put(
742
+ putUpdateGroupManage: (t, e, r) => c.put(
694
743
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
695
744
  r
696
745
  ),
697
- getUserAssignedSystemRole: (t) => p.get(`/system-roles/user/${t}`),
698
- getAssignedUserAmounts: () => p.get("/system-roles/amounts"),
746
+ getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
747
+ getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
699
748
  getPermissionUser: (t, e) => {
700
749
  if (["totalControl", "readOnly"].includes(t ?? "")) {
701
750
  const r = t === "totalControl" ? "total-control" : "read-only";
702
- return p.get(`/system-roles/total-control-read-only/${r}`, {
751
+ return c.get(`/system-roles/total-control-read-only/${r}`, {
703
752
  params: e
704
753
  });
705
754
  }
706
- return p.get(`/system-roles/permission/${t}`, { params: e });
755
+ return c.get(`/system-roles/permission/${t}`, { params: e });
707
756
  },
708
757
  getPermissionUserOptions: (t, e) => {
709
758
  if (["totalControl", "readOnly"].includes(t ?? "")) {
710
759
  const r = t === "totalControl" ? "total-control" : "read-only";
711
- return p.get(`/system-roles/total-control-read-only/${r}/options`, {
760
+ return c.get(`/system-roles/total-control-read-only/${r}/options`, {
712
761
  params: e
713
762
  });
714
763
  }
715
- return p.get(`/system-roles/permission/${t}/options`, {
764
+ return c.get(`/system-roles/permission/${t}/options`, {
716
765
  params: e
717
766
  });
718
767
  },
719
- getUserGroups: (t, e) => p.get(`/system-roles/permission/${e}/groups`, {
768
+ getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
720
769
  params: t
721
770
  }),
722
771
  postAssignUser: (t, e) => {
723
772
  if (["totalControl", "readOnly"].includes(e ?? "")) {
724
773
  const r = e === "totalControl" ? "total-control" : "read-only";
725
- return p.post(`/system-roles/total-control-read-only/${r}`, t);
774
+ return c.post(`/system-roles/total-control-read-only/${r}`, t);
726
775
  }
727
- return p.post(`/system-roles/permission/${e}`, t);
776
+ return c.post(`/system-roles/permission/${e}`, t);
728
777
  },
729
- putEditUser: (t, e) => p.put(`/system-roles/${e}`, t),
730
- putRoleSetActive: (t) => p.put("/system-roles/set-active", t),
778
+ putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
779
+ putRoleSetActive: (t) => c.put("/system-roles/set-active", t),
731
780
  deleteRemoveUser: (t, e) => {
732
781
  if (["totalControl", "readOnly"].includes(e ?? "")) {
733
782
  const r = e === "totalControl" ? "total-control" : "read-only";
734
- return p.delete(`/system-roles/total-control-read-only/${r}`, {
783
+ return c.delete(`/system-roles/total-control-read-only/${r}`, {
735
784
  data: t
736
785
  });
737
786
  }
738
- return p.delete("/system-roles", { data: t });
787
+ return c.delete("/system-roles", { data: t });
739
788
  }
740
- }, c = s({
789
+ }, l = s({
741
790
  prefix: "/settings-user-role-go/v2"
742
- }), ee = {
791
+ }), ne = {
743
792
  /**
744
793
  * Retrieves the transaction role for the given group and transaction name.
745
794
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
746
795
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
747
796
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
748
797
  */
749
- getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
750
- getTransactionRoleTypes: (t, e) => c.get(`/transaction-roles/${e}/types`, {
798
+ getTransactionRole: (t, e) => l.get(`/transaction-roles/${t}/${e}`),
799
+ getTransactionRoleTypes: (t, e) => l.get(`/transaction-roles/${e}/types`, {
751
800
  params: { groupKeys: t }
752
801
  }),
753
802
  /**
@@ -757,7 +806,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
757
806
  * @param {UpdateUser} body - The request body containing the updated user information.
758
807
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
759
808
  */
760
- putUpdateUsers: (t, e, r) => c.put(
809
+ putUpdateUsers: (t, e, r) => l.put(
761
810
  `/transaction-roles/${t}/${e}/update-user`,
762
811
  r
763
812
  ),
@@ -768,7 +817,7 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
768
817
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
769
818
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
770
819
  */
771
- putUpdateLevel: (t, e, r) => c.put(
820
+ putUpdateLevel: (t, e, r) => l.put(
772
821
  `/transaction-roles/${t}/${e}/update-approval-level`,
773
822
  r
774
823
  ),
@@ -779,105 +828,105 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
779
828
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
780
829
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
781
830
  */
782
- putUpdateGroupManage: (t, e, r) => c.put(
831
+ putUpdateGroupManage: (t, e, r) => l.put(
783
832
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
784
833
  r
785
834
  ),
786
- getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
787
- getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
835
+ getUserAssignedSystemRole: (t) => l.get(`/system-roles/user/${t}`),
836
+ getAssignedUserAmounts: () => l.get("/system-roles/amounts"),
788
837
  getPermissionUser: (t, e) => {
789
838
  if (["totalControl", "readOnly"].includes(t ?? "")) {
790
839
  const r = t === "totalControl" ? "total-control" : "read-only";
791
- return c.get(`/system-roles/total-control-read-only/${r}`, {
840
+ return l.get(`/system-roles/total-control-read-only/${r}`, {
792
841
  params: e
793
842
  });
794
843
  }
795
- return c.get(`/system-roles/permission/${t}`, { params: e });
844
+ return l.get(`/system-roles/permission/${t}`, { params: e });
796
845
  },
797
846
  getPermissionUserOptions: (t, e) => {
798
847
  if (["totalControl", "readOnly"].includes(t ?? "")) {
799
848
  const r = t === "totalControl" ? "total-control" : "read-only";
800
- return c.get(`/system-roles/total-control-read-only/${r}/options`, {
849
+ return l.get(`/system-roles/total-control-read-only/${r}/options`, {
801
850
  params: e
802
851
  });
803
852
  }
804
- return c.get(`/system-roles/permission/${t}/options`, {
853
+ return l.get(`/system-roles/permission/${t}/options`, {
805
854
  params: e
806
855
  });
807
856
  },
808
- getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
857
+ getUserGroups: (t, e) => l.get(`/system-roles/permission/${e}/groups`, {
809
858
  params: t
810
859
  }),
811
860
  postAssignUser: (t, e) => {
812
861
  if (["totalControl", "readOnly"].includes(e ?? "")) {
813
862
  const r = e === "totalControl" ? "total-control" : "read-only";
814
- return c.post(`/system-roles/total-control-read-only/${r}`, t);
863
+ return l.post(`/system-roles/total-control-read-only/${r}`, t);
815
864
  }
816
- return c.post(`/system-roles/permission/${e}`, t);
865
+ return l.post(`/system-roles/permission/${e}`, t);
817
866
  },
818
- putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
867
+ putEditUser: (t, e) => l.put(`/system-roles/${e}`, t),
819
868
  deleteRemoveUser: (t, e) => {
820
869
  if (["totalControl", "readOnly"].includes(e ?? "")) {
821
870
  const r = e === "totalControl" ? "total-control" : "read-only";
822
- return c.put(`/system-roles/total-control-read-only/${r}`, t);
871
+ return l.put(`/system-roles/total-control-read-only/${r}`, t);
823
872
  }
824
- return c.put("/system-roles", t);
873
+ return l.put("/system-roles", t);
825
874
  }
826
- }, w = s({
875
+ }, q = s({
827
876
  prefix: "/settings-attribute/v2/open-api"
828
- }), re = {
829
- getOpenAPIDocs: (t) => w.get(`/${t.doc}`),
830
- putGenerateToken: () => w.put("/generate"),
877
+ }), oe = {
878
+ getOpenAPIDocs: (t) => q.get(`/${t.doc}`),
879
+ putGenerateToken: () => q.put("/generate"),
831
880
  // This is if the dummy was not dummy
832
- getToken: () => w.get(""),
833
- putRequestOpenAPI: () => w.put("/request"),
834
- putCancelRequestOpenAPI: () => w.put("/cancel-request")
835
- }, M = s({
881
+ getToken: () => q.get(""),
882
+ putRequestOpenAPI: () => q.put("/request"),
883
+ putCancelRequestOpenAPI: () => q.put("/cancel-request")
884
+ }, H = s({
836
885
  prefix: "/settings-attribute-go/v2/open-api"
837
- }), se = {
838
- putGenerateToken: () => M.put("/generate"),
886
+ }), ae = {
887
+ putGenerateToken: () => H.put("/generate"),
839
888
  // This is if the dummy was not dummy
840
- getToken: () => M.get(""),
841
- putRequestOpenAPI: () => M.put("/request"),
842
- putCancelRequestOpenAPI: () => M.put("/cancel-request")
843
- }, T = s({
844
- prefix: "/import/v2"
845
- }), ne = {
846
- getImport: (t, e) => T.get(`/${t}`, { params: e }),
847
- postImportTemporary: (t, e) => {
848
- const r = { "Content-Type": "multipart/form-data" };
849
- return T.post(`/${t}/temporary`, e, { headers: r });
850
- },
851
- deleteImportTemporary: (t, e) => T.delete(`/${t}/temporary`, { data: e }),
852
- postDuplicateImport: (t, e) => T.post(`/${t}/duplicate`, e),
853
- putEditImport: (t, e) => T.put(`/${t}`, e),
854
- postImport: (t, e, r) => T.post(t, r, { signal: e.signal }),
855
- putImportCancelProgress: (t) => T.put(`/${t}/cancel-progress`)
889
+ getToken: () => H.get(""),
890
+ putRequestOpenAPI: () => H.put("/request"),
891
+ putCancelRequestOpenAPI: () => H.put("/cancel-request")
856
892
  }, C = s({
857
- prefix: "/import-go/v2"
858
- }), oe = {
893
+ prefix: "/import/v2"
894
+ }), ie = {
859
895
  getImport: (t, e) => C.get(`/${t}`, { params: e }),
860
896
  postImportTemporary: (t, e) => {
861
897
  const r = { "Content-Type": "multipart/form-data" };
862
898
  return C.post(`/${t}/temporary`, e, { headers: r });
863
899
  },
864
- deleteImportTemporary: (t, e) => C.delete(`/${t}/temporary`, { params: e }),
900
+ deleteImportTemporary: (t, e) => C.delete(`/${t}/temporary`, { data: e }),
865
901
  postDuplicateImport: (t, e) => C.post(`/${t}/duplicate`, e),
866
902
  putEditImport: (t, e) => C.put(`/${t}`, e),
867
903
  postImport: (t, e, r) => C.post(t, r, { signal: e.signal }),
868
904
  putImportCancelProgress: (t) => C.put(`/${t}/cancel-progress`)
869
- }, h = s({
905
+ }, O = s({
906
+ prefix: "/import-go/v2"
907
+ }), ue = {
908
+ getImport: (t, e) => O.get(`/${t}`, { params: e }),
909
+ postImportTemporary: (t, e) => {
910
+ const r = { "Content-Type": "multipart/form-data" };
911
+ return O.post(`/${t}/temporary`, e, { headers: r });
912
+ },
913
+ deleteImportTemporary: (t, e) => O.delete(`/${t}/temporary`, { params: e }),
914
+ postDuplicateImport: (t, e) => O.post(`/${t}/duplicate`, e),
915
+ putEditImport: (t, e) => O.put(`/${t}`, e),
916
+ postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
917
+ putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
918
+ }, k = s({
870
919
  prefix: "/settings-attribute/v2/asset-name"
871
- }), ae = {
872
- getDropdown: (t) => h.get("/dropdown", { params: t }),
873
- getAssetNameDetail: (t) => h.get(`/${t}`),
874
- getAssetsByAssetName: (t, e) => h.get(`/${t}/list-asset`, { params: e }),
875
- getAssetNameList: (t) => h.get("/", { params: t }),
876
- getUnpairedAssetName: (t) => h.get("/unpaired", { params: t }),
877
- getOptions: (t) => h.get("/options", { params: t })
920
+ }), ge = {
921
+ getDropdown: (t) => k.get("/dropdown", { params: t }),
922
+ getAssetNameDetail: (t) => k.get(`/${t}`),
923
+ getAssetsByAssetName: (t, e) => k.get(`/${t}/list-asset`, { params: e }),
924
+ getAssetNameList: (t) => k.get("/", { params: t }),
925
+ getUnpairedAssetName: (t) => k.get("/unpaired", { params: t }),
926
+ getOptions: (t) => k.get("/options", { params: t })
878
927
  }, n = s({
879
928
  prefix: "/assignment/v2"
880
- }), ie = {
929
+ }), pe = {
881
930
  getPreListData: (t) => n.get("/prelist", { params: t }),
882
931
  getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
883
932
  getRequestData: (t) => n.get("/prelist/request", { params: t }),
@@ -933,268 +982,269 @@ const dt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
933
982
  getAssignedAssetOptions: async (t) => n.get("/transaction/my-asset/assigned-asset/options", { params: t }),
934
983
  putCancelAssignment: async (t) => n.put("/transaction/cancel", { id: t.id }),
935
984
  putCancelReportById: async (t) => n.put(`/transaction/request/${t.id}/cancel-report`)
936
- }, O = s({
985
+ }, L = s({
937
986
  prefix: "/assignment-go/v2"
938
- }), ue = {
939
- getTransactionData: (t) => O.get("/transaction", { params: t }),
940
- getTransactionOptions: (t) => O.get("/transaction/options", { params: t }),
941
- getDetailTransactionLog: (t) => O.get(`/transaction/request/${t}/transaction-log`),
942
- postTransaction: (t) => O.post("/transaction", t),
943
- putTransaction: (t) => O.put("/transaction", t),
944
- putUnassignTransaction: (t) => O.put("/transaction/unassign", t),
945
- putCancelReport: (t) => O.put("/transaction/request/cancel-report", t)
946
- }, H = s({
987
+ }), ce = {
988
+ getTransactionData: (t) => L.get("/transaction", { params: t }),
989
+ getTransactionOptions: (t) => L.get("/transaction/options", { params: t }),
990
+ getDetailTransactionLog: (t) => L.get(`/transaction/request/${t}/transaction-log`),
991
+ postTransaction: (t) => L.post("/transaction", t),
992
+ putTransaction: (t) => L.put("/transaction", t),
993
+ putUnassignTransaction: (t) => L.put("/transaction/unassign", t),
994
+ putCancelReport: (t) => L.put("/transaction/request/cancel-report", t)
995
+ }, V = s({
947
996
  prefix: "/license/v2"
948
- }), ge = {
949
- getGroupQuota: (t) => H.get(`/${t}/allocation-quota`),
950
- getSubGroupQuota: (t) => H.get(`/${t}/subgroup-quota`),
951
- editSubGroupQuota: (t, e) => H.put(`/${t}/set-group-quota`, e),
952
- getTotalLicense: () => H.get("/total-license")
953
- }, it = s({
997
+ }), le = {
998
+ getGroupQuota: (t) => V.get(`/${t}/allocation-quota`),
999
+ getSubGroupQuota: (t) => V.get(`/${t}/subgroup-quota`),
1000
+ editSubGroupQuota: (t, e) => V.put(`/${t}/set-group-quota`, e),
1001
+ getTotalLicense: () => V.get("/total-license")
1002
+ }, gt = s({
954
1003
  prefix: "/repair/v2/damage"
955
- }), pe = {
1004
+ }), de = {
956
1005
  putReportDamage: (t, e) => {
957
1006
  const r = { "Content-Type": "multipart/form-data" };
958
- return it.put(`/report-damage/${t}`, e, { headers: r });
1007
+ return gt.put(`/report-damage/${t}`, e, { headers: r });
959
1008
  },
960
1009
  /**
961
1010
  * To mark as repaired.
962
1011
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
963
1012
  */
964
- putMarkAsRepaired: (t) => it.put("/repair", t)
965
- }, q = s({
1013
+ putMarkAsRepaired: (t) => gt.put("/repair", t)
1014
+ }, E = s({
966
1015
  prefix: "/damage-repair-ticketing/v2"
967
- }), ce = {
968
- getDamageReportList: (t) => q.get("/", { params: t }),
969
- getDamageReportListFilterOptions: (t) => q.get("/options", { params: t }),
970
- getDamageReportDetail: (t) => q.get(`/${t}`),
1016
+ }), Ae = {
1017
+ getDamageReportList: (t) => E.get("/", { params: t }),
1018
+ getDamageReportListFilterOptions: (t) => E.get("/options", { params: t }),
1019
+ getDamageReportDetail: (t) => E.get(`/${t}`),
971
1020
  putReportDamage: (t, e) => {
972
1021
  const r = { "Content-Type": "multipart/form-data" };
973
- return q.put(`/${t}/report-damage`, e, { headers: r });
1022
+ return E.put(`/${t}/report-damage`, e, { headers: r });
974
1023
  },
975
- putMarkAsRepaired: (t) => q.put("/repair", t)
976
- }, d = s({
1024
+ putMarkAsRepaired: (t) => E.put("/repair", t)
1025
+ }, A = s({
977
1026
  prefix: "/borrowing/v2"
978
- }), le = {
979
- getTaskBorrowing: async (t) => d.get("/transaction/my-asset/task", { params: t }),
980
- getTaskBorrowingOptions: async (t) => d.get("/transaction/my-asset/task/options", { params: t }),
981
- getBorrowedAsset: async (t) => d.get("/transaction/my-asset/borrowed-asset", { params: t }),
982
- getBorrowedOptions: async (t) => d.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
983
- getHistory: async (t) => d.get("/transaction/my-asset/history", { params: t }),
984
- getHistoryOptions: async (t) => d.get("/transaction/my-asset/history/options", { params: t }),
985
- postAddPrelistData: (t) => d.post("/prelist", t),
986
- putCancelBorrowing: async (t) => d.put("/transaction/cancel", { id: t.id }),
987
- putCancelExtensionRequest: async (t) => d.put(`/transaction/${t.id}/cancel-extension`),
988
- putCancelRequestReport: async (t) => d.put(`/transaction/request/${t.id}/cancel-report`),
989
- putDeclineExtensionRequest: async (t) => d.put("transaction/request/decline", t),
990
- putUpdateRequestExtension: async (t) => d.put("transaction/request/duration", t)
991
- }, ut = s({
1027
+ }), $e = {
1028
+ getTaskBorrowing: async (t) => A.get("/transaction/my-asset/task", { params: t }),
1029
+ getTaskBorrowingOptions: async (t) => A.get("/transaction/my-asset/task/options", { params: t }),
1030
+ getBorrowedAsset: async (t) => A.get("/transaction/my-asset/borrowed-asset", { params: t }),
1031
+ getBorrowedOptions: async (t) => A.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
1032
+ getHistory: async (t) => A.get("/transaction/my-asset/history", { params: t }),
1033
+ getHistoryOptions: async (t) => A.get("/transaction/my-asset/history/options", { params: t }),
1034
+ postAddPrelistData: (t) => A.post("/prelist", t),
1035
+ putCancelBorrowing: async (t) => A.put("/transaction/cancel", { id: t.id }),
1036
+ putCancelExtensionRequest: async (t) => A.put(`/transaction/${t.id}/cancel-extension`),
1037
+ putCancelRequestReport: async (t) => A.put(`/transaction/request/${t.id}/cancel-report`),
1038
+ putDeclineExtensionRequest: async (t) => A.put("transaction/request/decline", t),
1039
+ putUpdateRequestExtension: async (t) => A.put("transaction/request/duration", t)
1040
+ }, pt = s({
992
1041
  prefix: "/assets/v2"
993
- }), de = {
994
- getHistory: async (t) => ut.get("/my-asset", { params: t }),
995
- getHistoryOptions: async (t) => ut.get("/my-asset/options", { params: t })
996
- }, V = s({
1042
+ }), me = {
1043
+ getHistory: async (t) => pt.get("/my-asset", { params: t }),
1044
+ getHistoryOptions: async (t) => pt.get("/my-asset/options", { params: t })
1045
+ }, j = s({
997
1046
  prefix: "/repair/v2"
998
- }), Ae = {
999
- getRepairList: (t) => V.get("/my-asset/repair", { params: t }),
1000
- getFilterOptions: (t) => V.get("/my-asset/repair/options", { params: t }),
1001
- getAssetRepairTicketing: (t, e) => V.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1002
- putConfirmRepair: (t) => V.put(`/repair/${t}/confirm-repair`)
1003
- }, W = s({
1047
+ }), ve = {
1048
+ getRepairList: (t) => j.get("/my-asset/repair", { params: t }),
1049
+ getFilterOptions: (t) => j.get("/my-asset/repair/options", { params: t }),
1050
+ getAssetRepairTicketing: (t, e) => j.get(`/repair/${t}/asset-repair-detail`, { params: e }),
1051
+ putConfirmRepair: (t) => j.put(`/repair/${t}/confirm-repair`)
1052
+ }, z = s({
1004
1053
  env: "APP_GLOBAL_SETTINGS_API",
1005
1054
  prefix: "/v1/global-settings/auth"
1006
- }), L = s({
1055
+ }), b = s({
1007
1056
  env: "APP_TAGSAMURAI_API",
1008
1057
  prefix: "/settings-user-role/v2/auth"
1009
- }), gt = (t) => {
1058
+ }), ct = (t) => {
1010
1059
  var e, r, o, v;
1011
1060
  return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((v = (o = t.response) == null ? void 0 : o.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);
1012
- }, $e = {
1061
+ }, ye = {
1013
1062
  login: (t) => {
1014
1063
  const e = { ...t, isMobile: !1 };
1015
- return W.post("/login", e);
1064
+ return z.post("/login", e);
1016
1065
  },
1017
- reLoginGlobal: (t) => (W.interceptors.response.use((e) => e, gt), W.post("/login", t)),
1018
- reLogin: (t) => (L.interceptors.response.use((e) => e, gt), L.post("/login", t)),
1066
+ reLoginGlobal: (t) => (z.interceptors.response.use((e) => e, ct), z.post("/login", t)),
1067
+ reLogin: (t) => (b.interceptors.response.use((e) => e, ct), b.post("/login", t)),
1019
1068
  requestOTP: (t) => {
1020
1069
  const e = { email: t };
1021
- return L.post("/request-otp", e);
1070
+ return b.post("/request-otp", e);
1022
1071
  },
1023
1072
  requestResetPassLink: (t) => {
1024
1073
  const e = { email: t };
1025
- return L.post("/request-reset-link", e);
1074
+ return b.post("/request-reset-link", e);
1026
1075
  },
1027
- setPassword: (t) => L.post("/set-password", t),
1028
- verifyToken: (t) => L.get(`/verify-token/${t}`),
1076
+ setPassword: (t) => b.post("/set-password", t),
1077
+ verifyToken: (t) => b.get(`/verify-token/${t}`),
1029
1078
  confirmEmailChange: (t) => {
1030
1079
  const e = { token: t };
1031
- return L.put("/confirm-email-change/confirm", e);
1080
+ return b.put("/confirm-email-change/confirm", e);
1032
1081
  }
1033
- }, tt = "/transfer/v2", j = s({
1034
- prefix: `${tt}/prelist`
1035
- }), l = s({
1036
- prefix: `${tt}/transaction`
1037
- }), E = s({
1038
- prefix: `${tt}/approval`
1039
- }), ve = {
1082
+ }, et = "/transfer/v2", Q = s({
1083
+ prefix: `${et}/prelist`
1084
+ }), d = s({
1085
+ prefix: `${et}/transaction`
1086
+ }), B = s({
1087
+ prefix: `${et}/approval`
1088
+ }), Se = {
1040
1089
  // ------ TRANSACTION ------
1041
- getTransactions: (t) => l.get("/", { params: t }),
1042
- getTransactionDetail: (t) => l.get(`/${t}`),
1043
- getTransactionDetailAssets: (t, e) => l.get(`/${t}/request`, { params: e }),
1090
+ getTransactions: (t) => d.get("/", { params: t }),
1091
+ getTransactionDetail: (t) => d.get(`/${t}`),
1092
+ getTransactionDetailAssets: (t, e) => d.get(`/${t}/request`, { params: e }),
1044
1093
  getRequestFilterOptions: (t, e) => {
1045
1094
  const r = {};
1046
- return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0), l.get(`/${t}/request/options`, { params: r });
1095
+ return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0), d.get(`/${t}/request/options`, { params: r });
1047
1096
  },
1048
- getTransactionLog: (t) => l.get(`/request/${t}/transaction-log`),
1097
+ getTransactionLog: (t) => d.get(`/request/${t}/transaction-log`),
1049
1098
  getTransactionOptions: (t) => {
1050
1099
  const e = {};
1051
- return e[t] = !0, l.get("/options", { params: e });
1100
+ return e[t] = !0, d.get("/options", { params: e });
1052
1101
  },
1053
- postCreateTransaction: (t) => l.post("/", t),
1102
+ postCreateTransaction: (t) => d.post("/", t),
1054
1103
  putCancelTransactions: (t) => {
1055
1104
  const e = { id: t };
1056
- return l.put("/cancel", e);
1105
+ return d.put("/cancel", e);
1057
1106
  },
1058
- putUpdateTransaction: (t, e) => l.put(`/${t}`, e),
1107
+ putUpdateTransaction: (t, e) => d.put(`/${t}`, e),
1059
1108
  putCancelRequests: (t) => {
1060
1109
  const e = { id: t };
1061
- return l.put("/request/cancel", e);
1110
+ return d.put("/request/cancel", e);
1062
1111
  },
1063
- getHistoryByTransaction: (t) => l.get("/history", { params: t }),
1112
+ getHistoryByTransaction: (t) => d.get("/history", { params: t }),
1064
1113
  getHistoryByTransactionOptions: (t) => {
1065
1114
  const e = {};
1066
- return e[t] = !0, l.get("/history/options", { params: e });
1115
+ return e[t] = !0, d.get("/history/options", { params: e });
1067
1116
  },
1068
- getHistoryByAsset: (t) => l.get("/history/by-asset", { params: t }),
1117
+ getHistoryByAsset: (t) => d.get("/history/by-asset", { params: t }),
1069
1118
  getHistoryByAssetOptions: (t) => {
1070
1119
  const e = {};
1071
- return e[t] = !0, l.get("/history/by-asset/options", { params: e });
1120
+ return e[t] = !0, d.get("/history/by-asset/options", { params: e });
1072
1121
  },
1073
- getApproverList: (t) => l.get(`/${t}/approval-history`),
1074
- putHandoverTransaction: (t, e) => l.put(`/${t}/handover`, e),
1122
+ getApproverList: (t) => d.get(`/${t}/approval-history`),
1123
+ putHandoverTransaction: (t, e) => d.put(`/${t}/handover`, e),
1075
1124
  // ------ PRELIST ------
1076
- getPrelist: (t) => j.get("/", { params: t }),
1077
- postAddPrelistData: (t) => j.post("/", t),
1078
- deletePrelist: (t) => j.delete("/", {
1125
+ getPrelist: (t) => Q.get("/", { params: t }),
1126
+ postAddPrelistData: (t) => Q.post("/", t),
1127
+ deletePrelist: (t) => Q.delete("/", {
1079
1128
  params: {
1080
1129
  id: JSON.stringify(t)
1081
1130
  }
1082
1131
  }),
1083
1132
  getPrelistAssets: (t) => {
1084
1133
  const e = { id: t };
1085
- return j.get("/request", { params: e });
1134
+ return Q.get("/request", { params: e });
1086
1135
  },
1087
1136
  // APPROVAL
1088
1137
  getApprovals: (t, e) => {
1089
1138
  const r = { ...e, status: JSON.stringify([t]) };
1090
- return E.get("/", { params: r });
1139
+ return B.get("/", { params: r });
1091
1140
  },
1092
1141
  getApprovalOptions: (t, e) => {
1093
1142
  const r = {
1094
1143
  status: JSON.stringify([t])
1095
1144
  };
1096
- return r[e] = !0, E.get("/options", { params: r });
1145
+ return r[e] = !0, B.get("/options", { params: r });
1097
1146
  },
1098
1147
  getApprovalDetail: (t, e) => {
1099
1148
  const r = {
1100
1149
  groupType: e
1101
1150
  };
1102
- return E.get(`/transaction/${t}`, { params: r });
1151
+ return B.get(`/transaction/${t}`, { params: r });
1103
1152
  },
1104
1153
  getApprovalDetailOptions: (t, e, r) => {
1105
1154
  const o = {};
1106
- return o[e] = !0, o.groupType = r, E.get(`/transaction/${t}/options`, { params: o });
1155
+ return o[e] = !0, o.groupType = r, B.get(`/transaction/${t}/options`, { params: o });
1107
1156
  },
1108
- putUpdateApproval: (t) => E.put("/approve", t)
1109
- }, z = s({
1157
+ putUpdateApproval: (t) => B.put("/approve", t)
1158
+ }, X = s({
1110
1159
  prefix: "/disposal/v2/report"
1111
- }), me = {
1112
- getReportedDisposal: (t) => z.get("", { params: t }),
1113
- postReportDisposal: (t) => z.post("", t),
1114
- deleteCancelReport: (t) => z.delete("/cancel-report", { params: t })
1115
- }, Q = s({
1160
+ }), Pe = {
1161
+ getReportedDisposal: (t) => X.get("", { params: t }),
1162
+ postReportDisposal: (t) => X.post("", t),
1163
+ deleteCancelReport: (t) => X.delete("/cancel-report", { params: t })
1164
+ }, Y = s({
1116
1165
  prefix: "/transfer-go/v2"
1117
- }), ye = {
1118
- getTransactionData: (t) => Q.get("/transaction", { params: t }),
1119
- getTransactionOptions: (t) => Q.get("/transaction/options", { params: t }),
1120
- getTransactionLog: (t) => Q.get(`/transaction/request/${t}/transaction-log`),
1121
- postCreateTransaction: (t) => Q.post("/transaction", t)
1122
- }, X = s({
1166
+ }), fe = {
1167
+ getTransactionData: (t) => Y.get("/transaction", { params: t }),
1168
+ getTransactionOptions: (t) => Y.get("/transaction/options", { params: t }),
1169
+ getTransactionLog: (t) => Y.get(`/transaction/request/${t}/transaction-log`),
1170
+ postCreateTransaction: (t) => Y.post("/transaction", t)
1171
+ }, Z = s({
1123
1172
  prefix: "/audit/v2"
1124
- }), Se = {
1125
- getAudit: (t, e) => X.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1126
- getAuditOption: (t, e) => X.get(`/audit/schedule/asset-detail/${t}/options`, {
1173
+ }), Ie = {
1174
+ getAudit: (t, e) => Z.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1175
+ getAuditOption: (t, e) => Z.get(`/audit/schedule/asset-detail/${t}/options`, {
1127
1176
  params: e
1128
1177
  }),
1129
- putSetActive: (t) => X.put("/audit/asset/activation", t)
1130
- }, Z = s({
1178
+ putSetActive: (t) => Z.put("/audit/asset/activation", t)
1179
+ }, tt = s({
1131
1180
  prefix: "/routine/v2"
1132
- }), Pe = {
1133
- getMaintenance: (t, e) => Z.get(`/routine-task/${t}`, { params: e }),
1134
- getMaintenanceOption: (t, e) => Z.get(`/routine-task/${t}/options`, { params: e }),
1135
- putSetActive: (t) => Z.put("/maintenable-asset/set-active", t)
1136
- }, mt = s({
1181
+ }), Te = {
1182
+ getMaintenance: (t, e) => tt.get(`/routine-task/${t}`, { params: e }),
1183
+ getMaintenanceOption: (t, e) => tt.get(`/routine-task/${t}/options`, { params: e }),
1184
+ putSetActive: (t) => tt.put("/maintenable-asset/set-active", t)
1185
+ }, St = s({
1137
1186
  prefix: "/settings-attribute/v2/models"
1138
- }), fe = {
1139
- getDropdown: (t) => mt.get("/dropdown", { params: t })
1187
+ }), Ue = {
1188
+ getDropdown: (t) => St.get("/dropdown", { params: t })
1140
1189
  };
1141
1190
  export {
1142
- Mt as AliasCodeServices,
1143
- Ht as AliasCodeServicesGo,
1144
- ae as AssetNameServices,
1145
- bt as AssetServices,
1146
- ie as AssignmentServices,
1147
- ue as AssignmentServicesGo,
1148
- Se as AuditServices,
1149
- $e as AuthServices,
1150
- le as BorrowServices,
1151
- Wt as BrandServices,
1152
- Ot as ChangelogServices,
1153
- Jt as CountryStateServices,
1154
- Qt as CustomFieldServices,
1155
- Yt as CustomFieldServicesGo,
1156
- pe as DamageServices,
1157
- ce as DamageServicesGo,
1158
- Nt as DashboardServices,
1159
- me as DisposalServices,
1160
- zt as FileManagerServices,
1161
- Xt as FileManagerServicesGo,
1162
- Vt as GeneralSettingsServices,
1163
- jt as GeneralSettingsServicesGo,
1164
- Ut as GroupCategoryServices,
1165
- Tt as GroupCategoryServicesGo,
1166
- Ft as I18nService,
1167
- ne as ImportServices,
1168
- oe as ImportServicesGo,
1169
- ge as LicenseServices,
1170
- Lt as LogServicesGo,
1171
- Dt as MissingServices,
1172
- Rt as MissingServicesGo,
1173
- fe as ModelTypeServices,
1174
- de as MyAssetServices,
1175
- Ct as NotificationApprovalServices,
1176
- ht as NotificationServices,
1177
- Gt as NotificationServicesGo,
1178
- re as OpenAPIServices,
1179
- se as OpenAPIServicesGo,
1180
- Zt as ReaderServices,
1181
- Ae as RepairServices,
1182
- te as RoleServices,
1183
- ee as RoleServicesGo,
1184
- Pe as RoutineServices,
1185
- Kt as ServiceCenterServices,
1186
- _t as SessionLogServices,
1187
- Et as SubUserServices,
1188
- Bt as SubUserServicesGo,
1189
- kt as TAGServices,
1190
- xt as TrackingServices,
1191
- ve as TransferServices,
1192
- ye as TransferServicesGo,
1193
- wt as UserServices,
1194
- qt as UserServicesGo,
1195
- It as getAssetsFile,
1191
+ jt as AliasCodeServices,
1192
+ Qt as AliasCodeServicesGo,
1193
+ ge as AssetNameServices,
1194
+ Rt as AssetServices,
1195
+ ht as AssetServicesGo,
1196
+ pe as AssignmentServices,
1197
+ ce as AssignmentServicesGo,
1198
+ Ie as AuditServices,
1199
+ ye as AuthServices,
1200
+ $e as BorrowServices,
1201
+ Zt as BrandServices,
1202
+ bt as ChangelogServices,
1203
+ zt as CountryStateServices,
1204
+ Kt as CustomFieldServices,
1205
+ Wt as CustomFieldServicesGo,
1206
+ de as DamageServices,
1207
+ Ae as DamageServicesGo,
1208
+ Vt as DashboardServices,
1209
+ Pe as DisposalServices,
1210
+ te as FileManagerServices,
1211
+ ee as FileManagerServicesGo,
1212
+ Yt as GeneralSettingsServices,
1213
+ Jt as GeneralSettingsServicesGo,
1214
+ Ct as GroupCategoryServices,
1215
+ Ot as GroupCategoryServicesGo,
1216
+ Ht as I18nService,
1217
+ ie as ImportServices,
1218
+ ue as ImportServicesGo,
1219
+ le as LicenseServices,
1220
+ Dt as LogServicesGo,
1221
+ kt as MissingServices,
1222
+ Gt as MissingServicesGo,
1223
+ Ue as ModelTypeServices,
1224
+ me as MyAssetServices,
1225
+ Lt as NotificationApprovalServices,
1226
+ _t as NotificationServices,
1227
+ xt as NotificationServicesGo,
1228
+ oe as OpenAPIServices,
1229
+ ae as OpenAPIServicesGo,
1230
+ re as ReaderServices,
1231
+ ve as RepairServices,
1232
+ se as RoleServices,
1233
+ ne as RoleServicesGo,
1234
+ Te as RoutineServices,
1235
+ Xt as ServiceCenterServices,
1236
+ wt as SessionLogServices,
1237
+ Nt as SubUserServices,
1238
+ Mt as SubUserServicesGo,
1239
+ qt as TAGServices,
1240
+ Et as TrackingServices,
1241
+ Se as TransferServices,
1242
+ fe as TransferServicesGo,
1243
+ Bt as UserServices,
1244
+ Ft as UserServicesGo,
1245
+ Ut as getAssetsFile,
1196
1246
  G as getBaseURL,
1197
- ft as getImageURL,
1198
- Pt as getImageURLGo,
1199
- St as queryParamsStringfy
1247
+ Tt as getImageURL,
1248
+ It as getImageURLGo,
1249
+ ft as queryParamsStringfy
1200
1250
  };