@tagsamurai/fats-api-services 1.0.0-alpha.170 → 1.0.0-alpha.172

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