@tagsamurai/fats-api-services 1.0.0-alpha.157 → 1.0.0-alpha.159

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