@tagsamurai/fats-api-services 1.0.0-alpha.156 → 1.0.0-alpha.158

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" }, G = (t = "APP_API") => At["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: o = "", headers: v = {}, ..._ } = t, lt = `${G(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 = G("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 = G("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
- `${G("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,202 +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("/bulk", 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
- // Asset Services prefixed by "attachment"
234
- 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 }),
235
234
  postAttachment: (t, e) => {
236
235
  const r = { "Content-Type": "multipart/form-data" };
237
- return g.post(`/attachment/${e}`, t, { headers: r });
236
+ return p.post(`/attachment/${e}`, t, { headers: r });
238
237
  },
239
238
  putAttachment: (t, e) => {
240
239
  const r = { "Content-Type": "multipart/form-data" };
241
- return g.put(`/attachment/${e}`, t, { headers: r });
240
+ return p.put(`/attachment/${e}`, t, { headers: r });
242
241
  },
243
242
  /**
244
243
  * Deletes the attachment with the given IDs.
245
244
  * @param {object} params - The request params containing the IDs of the attachments to delete.
246
245
  * @returns {Promise<AxiosResponse>}
247
246
  */
248
- deleteAttachment: (t) => g.delete("/attachment/bulk", { params: t })
249
- }, x = s({
247
+ deleteAttachment: (t) => p.delete("/attachment/bulk", { params: t })
248
+ }, k = s({
250
249
  prefix: "/tracking/v2/missing"
251
250
  }), ht = {
252
251
  /**
253
252
  * To mark as found.
254
253
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
255
254
  */
256
- putMarkAsFound: (t) => x.put("/found", t),
257
- putReportMissing: (t, e) => x.put(`/report-missing/${t}`, e),
258
- getData: (t) => x.get("/", { params: t }),
259
- getDetail: (t) => x.get(`/${t}`),
260
- getOptions: (t) => x.get("/options", { params: t })
261
- }, 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({
262
261
  prefix: "/missing-tracking/v2"
263
- }), kt = {
264
- putFoundAsset: (t) => w.put("/found", t),
265
- putReportMissing: (t, e) => w.put(`/${t}/report-missing`, e),
266
- getData: (t) => w.get("/", { params: t }),
267
- getDataOptions: (t) => w.get("/options", { params: t }),
268
- 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}`)
269
268
  }, st = s({
270
269
  prefix: "/v2/notification",
271
270
  env: "APP_LOGS_NOTIFICATION_API"
272
- }), Gt = {
271
+ }), Bt = {
273
272
  getNotifications: (t) => st.get("/", { params: t }),
274
273
  readNotification: (t) => st.put(`/${t}`)
275
274
  }, nt = s({
276
275
  prefix: "/utility/v2/notification"
277
- }), _t = {
276
+ }), kt = {
278
277
  getNotifications: (t) => nt.get("/", { params: t }),
279
278
  readNotification: (t) => nt.put(`/${t}`)
280
- }, mt = s({
279
+ }, vt = s({
281
280
  prefix: "/v2/session-log",
282
281
  env: "APP_LOGS_NOTIFICATION_API"
283
- }), xt = {
284
- postLogout: () => mt.post("/logout")
285
- }, a = s({
282
+ }), Gt = {
283
+ postLogout: () => vt.post("/logout")
284
+ }, i = s({
286
285
  prefix: "/tag/v2"
287
- }), wt = {
288
- getScanQR: (t) => a.get("/qr", { params: { tag: t } }),
289
- getScanRFID: (t) => a.get("/rfid", { params: { tag: t } }),
290
- getRFIDQRTAG: (t) => a.get("/rfid-qr/scan", { params: t }),
291
- 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 }),
292
291
  // Tab All
293
- getRfidQrAll: (t, e) => a.get(`/${t}`, { params: e }),
292
+ getRfidQrAll: (t, e) => i.get(`/${t}`, { params: e }),
294
293
  // Tab Paired
295
- getRfidQrPaired: (t, e, r) => a.get(`/${t}/paired/${e}`, { params: r }),
296
- postAddTAGtoPrelist: (t, e) => a.post(`/prelist/${e}/asset-name`, t),
297
- postAddTAGtoReplacePrelist: (t) => a.post("/prelist/replace-tag", t),
298
- postAddTAGToPrelistUnpair: (t) => a.post("/prelist/unpair-tag", t),
299
- 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),
300
299
  // Available Tab
301
- getRFIDQrAvailable: (t, e) => a.get(`/${t}/available`, { params: e }),
300
+ getRFIDQrAvailable: (t, e) => i.get(`/${t}/available`, { params: e }),
302
301
  // Damaged TAB
303
- getRFIDQrDamaged: (t, e) => a.get(`/${t}/damaged`, { params: e }),
302
+ getRFIDQrDamaged: (t, e) => i.get(`/${t}/damaged`, { params: e }),
304
303
  // RFID and QR Module
305
- getRFIDandQRList: (t) => a.get("/rfid-qr", { params: t }),
306
- deleteUnpairTAG: (t) => a.delete("/rfid-qr", { data: { data: t } }),
307
- 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 } }),
308
307
  // RFID To Be Returned
309
- getToBeReturnedTAGList: (t) => a.get("/rfid/to-be-returned", { params: t }),
308
+ getToBeReturnedTAGList: (t) => i.get("/rfid/to-be-returned", { params: t }),
310
309
  // Handover TAG
311
- putHandoverTAG: (t) => a.put("/rfid/handover", { body: { data: t } }),
310
+ putHandoverTAG: (t) => i.put("/rfid/handover", { body: { data: t } }),
312
311
  // Table Filter
313
- getFilterOptions: (t, e) => a.get(`/${t}/options`, { params: e }),
314
- getHolderListOptions: (t) => a.get("/rfid/holder-list/options", { params: t }),
315
- getHolderList: (t) => a.get("/rfid/holder-list", { params: t }),
316
- putAuditTAG: (t, e) => a.put(`/${e}/audit`, t),
317
- 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),
318
317
  postCreateQr: (t) => {
319
318
  const e = { amount: t };
320
- return a.post("/qr", e);
319
+ return i.post("/qr", e);
321
320
  },
322
- putReportTAG: (t, e) => a.put(`/tag-transaction/report/${t}`, e),
323
- 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)
324
323
  }, N = s({
325
324
  prefix: "/tracking/v2/tracking"
326
- }), qt = {
325
+ }), _t = {
327
326
  getTrackingDetail: (t) => N.get(`/${t}`),
328
327
  putFoundAsset: (t, e, r) => {
329
- const o = {
328
+ const a = {
330
329
  tag: t,
331
330
  group: e,
332
331
  serialNumber: r,
333
332
  type: "Global"
334
333
  };
335
- return N.put("/found", { params: o });
334
+ return N.put("/found", { params: a });
336
335
  },
337
336
  putReportPermanentlyMissing: (t, e) => N.put(`/report-permanently-missing/${t}`, e),
338
337
  putMoveBack: (t) => N.put("/tracking/move-back", t)
@@ -358,8 +357,8 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
358
357
  * @param params {Record<string, unknown>}
359
358
  */
360
359
  getUserDetailSystemRoles: (t, e, r) => {
361
- const o = r ? `/${r}` : "";
362
- return u.get(`/user-detail/${t}/system-roles${o}`, {
360
+ const a = r ? `/${r}` : "";
361
+ return u.get(`/user-detail/${t}/system-roles${a}`, {
363
362
  params: e
364
363
  });
365
364
  },
@@ -379,19 +378,26 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
379
378
  getUserDetailUserAssetBorrowedList: (t, e) => u.get(`/user-detail/${t}/assets/borrowed`, { params: e }),
380
379
  getUserDetailUserAssetAssignedList: (t, e) => u.get(`/user-detail/${t}/assets/assigned`, { params: e }),
381
380
  getUserDetailUserAssetBorrowedOption: (t, e) => u.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
382
- getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
383
- }, 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({
384
390
  prefix: "/settings-user-role-go/v2"
385
391
  }), Ft = {
386
392
  /**
387
393
  * Retrieves the user list as dropdown options.
388
394
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
389
395
  */
390
- getUserDropdown: (t) => p.get("/users/dropdown", { params: t }),
391
- getUserOptions: (t) => p.get("/users/options", { params: t }),
392
- getUserList: (t) => p.get("/users", { params: t }),
393
- getUserDetail: (t) => p.get(`/users/${t}`),
394
- 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),
395
401
  // User Detail
396
402
  /**
397
403
  *
@@ -400,44 +406,44 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
400
406
  * @param params {Record<string, unknown>}
401
407
  */
402
408
  getUserDetailSystemRoles: (t, e, r) => {
403
- const o = r ? `/${r}/groups` : "";
404
- return p.get(`/users/${t}/system-roles${o}`, {
409
+ const a = r ? `/${r}/groups` : "";
410
+ return c.get(`/users/${t}/system-roles${a}`, {
405
411
  params: e
406
412
  });
407
413
  },
408
- getUserDetailTransactionRoleList: (t, e) => p.get(`/users/${t}/transaction-roles`, { params: e }),
409
- postUserDetailAddTransactionRole: (t, e) => p.post(`/users/${t}/add-transaction-role`, e),
410
- deleteUserDetailTransactionRole: (t, e) => p.put(`/users/${t}/delete-transaction-role`, e),
411
- putUserDetailEditTransactionRole: (t, e) => p.put(`/users/${t}/edit-transaction-role`, e),
412
- putAssignGroup: (t, e, r) => p.put(`/users/${r}/system-roles/${e}/groups`, t),
413
- putRoleSetActive: (t, e) => p.put(`/users/${e}/system-roles/set-active-bulk`, t),
414
- getUserDetailTransactionAdminLogList: (t, e) => p.get(`/users/${t}/transaction-log`, { params: e }),
415
- getUserDetailTransactionAdminLogOption: (t, e) => p.get(`/users/${t}/transaction-log/option`, { params: e }),
416
- getUserDetailUserAssetBorrowedList: (t, e) => p.get(`/users/${t}/borrowed-asset`, { params: e }),
417
- getUserDetailUserAssetAssignedList: (t, e) => p.get(`/users/${t}/assigned-asset`, { params: e }),
418
- getUserDetailUserAssetBorrowedOption: (t, e) => p.get(`/users/${t}/borrowed-asset/option`, { params: e }),
419
- getUserDetailUserAssetAssignedOption: (t, e) => p.get(`/users/${t}/assigned-asset/option`, { params: e })
420
- }, 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({
421
427
  prefix: "/settings-user-role/v2/sub-users"
422
- }), Bt = {
428
+ }), Nt = {
423
429
  // Sub User
424
- getSubUserList: (t, e) => f.get(`/${t}`, { params: e }),
425
- 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 }),
426
432
  postCreateSubUser: (t, e) => {
427
433
  const r = { "Content-Type": "multipart/form-data" };
428
- return f.post(`/${t}`, e, { headers: r });
434
+ return P.post(`/${t}`, e, { headers: r });
429
435
  },
430
- putSubUserSetActiveBulk: (t) => f.put("/set-active-bulk", t),
431
- 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 } }),
432
438
  putEditSubUser: (t, e) => {
433
439
  const r = { "Content-Type": "multipart/form-data" };
434
- return f.put(`/${t}`, e, { headers: r });
440
+ return P.put(`/${t}`, e, { headers: r });
435
441
  },
436
- getBorrowedAsset: (t, e) => f.get(`/${t}/borrowed-asset`, { params: e }),
437
- 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 })
438
444
  }, m = s({
439
445
  prefix: "/settings-user-role-go/v2/users"
440
- }), Nt = {
446
+ }), Mt = {
441
447
  // Sub User
442
448
  getSubUserList: (t, e) => m.get(`/${t}/sub-users`, { params: e }),
443
449
  getSubUserOptions: (t, e) => m.get(`/${t}/sub-users/option`, { params: e }),
@@ -448,9 +454,9 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
448
454
  putSubUserSetActiveBulk: (t, e) => m.put(`/${t}/sub-users/set-active-bulk`, e),
449
455
  deleteSubUser: (t, e) => m.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
450
456
  putEditSubUser: (t, e, r) => {
451
- const o = { "Content-Type": "multipart/form-data" };
457
+ const a = { "Content-Type": "multipart/form-data" };
452
458
  return m.put(`/${t}/sub-users/${e}`, r, {
453
- headers: o
459
+ headers: a
454
460
  });
455
461
  },
456
462
  getBorrowedAsset: (t, e, r) => m.get(`/${t}/sub-users/${e}/borrowed-asset`, {
@@ -468,7 +474,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
468
474
  }, M = s({
469
475
  env: "APP_ADMIN_API",
470
476
  prefix: "/settings-attribute/languages"
471
- }), Mt = {
477
+ }), Ht = {
472
478
  /**
473
479
  * Fetch all translation messages for a specific locale.
474
480
  * @param locale The locale code (e.g., 'en', 'id').
@@ -511,34 +517,34 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
511
517
  }
512
518
  }, ot = s({
513
519
  prefix: "/dashboard/v2/dashboard"
514
- }), Ht = {
520
+ }), Vt = {
515
521
  getLatestTask: (t) => ot.get("/latest-task", { params: t }),
516
522
  getSummary: (t) => ot.get("/summary", { params: t })
517
523
  }, J = s({
518
524
  prefix: "/alias-code/api/alias-code"
519
- }), Vt = {
525
+ }), jt = {
520
526
  getAliasCode: () => J.get("/"),
521
527
  postAliasCode: (t) => J.post("/", t),
522
528
  getAliasCodeList: (t) => J.get(`/${t.object}/code-list`, { params: t })
523
- }, K = s({
529
+ }, W = s({
524
530
  prefix: "/settings-attribute-go/v2/alias-code"
525
- }), jt = {
526
- getAliasCode: () => K.get("/"),
527
- postAliasCode: (t) => K.post("/", t),
528
- 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 })
529
535
  }, at = s({
530
536
  prefix: "/settings-attribute/v2/general-settings"
531
- }), Qt = {
537
+ }), Yt = {
532
538
  getGeneralSettings: () => at.get("/"),
533
539
  putUpdateGeneralSettings: (t) => at.put("/", t)
534
540
  }, it = s({
535
541
  prefix: "/settings-attribute-go/v2/general-settings"
536
- }), Yt = {
542
+ }), Jt = {
537
543
  getGeneralSettings: () => it.get("/"),
538
544
  putUpdateGeneralSettings: (t) => it.put("/", t)
539
545
  }, U = s({
540
546
  prefix: "/settings-attribute/v2/custom-field"
541
- }), Jt = {
547
+ }), Wt = {
542
548
  getCustomField: async (t) => U.get("/", { params: t }),
543
549
  getCustomFieldsByCategory: (t, e) => U.get(`/${t}`, { params: e }),
544
550
  getOptions: async (t) => U.get("/options", { params: t }),
@@ -546,33 +552,33 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
546
552
  putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
547
553
  putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
548
554
  deleteCustomField: async (t) => U.delete("/bulk", { data: t })
549
- }, D = s({
555
+ }, R = s({
550
556
  prefix: "/settings-attribute-go/v2/custom-field"
551
557
  }), Kt = {
552
- getCustomField: async (t) => D.get("/", { params: t }),
553
- getOptions: async (t) => D.get("/options", { params: t }),
554
- postCreateCustomField: async (t, e) => D.post("/", e, { params: t }),
555
- putEditCustomField: async (t, e, r) => D.put(`/${r}`, e, { params: t }),
556
- putChangeStatus: async (t, e) => D.put("/bulk", e, { params: t }),
557
- deleteCustomField: async (t) => D.delete("/bulk", { params: t })
558
- }, W = ({ headers: t = {}, params: e = {} } = {}) => {
559
- const r = G("APP_COUNTRY_STATE_API"), o = G("APP_COUNTRY_STATE_API_KEY");
560
- 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({
561
567
  baseURL: `${r}/v1`,
562
568
  headers: {
563
569
  "Content-type": "application/json",
564
- "X-CSCAPI-KEY": o,
570
+ "X-CSCAPI-KEY": a,
565
571
  ...t
566
572
  },
567
573
  params: e
568
574
  });
569
- }, Wt = {
570
- getCountry: () => W().get("/countries"),
571
- getState: (t) => W().get(`/countries/${t}/states`),
572
- 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`)
573
579
  }, $ = s({
574
580
  prefix: "/routine/v2"
575
- }), zt = {
581
+ }), Xt = {
576
582
  getList: (t) => $.get("/service-center", { params: t }),
577
583
  postList: (t) => $.post("/service-center", t),
578
584
  putList: (t, e) => $.put(`/service-center/${t}`, e),
@@ -585,19 +591,19 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
585
591
  getActivityOptions: (t) => $.get("/service-activities/options", { params: t }),
586
592
  getActivityDetail: (t) => $.get(`/service-activities/${t}`),
587
593
  getActivityLog: (t) => $.get(`/service-activities/${t}/activity-log`)
588
- }, vt = s({
594
+ }, yt = s({
589
595
  prefix: "/settings-attribute/v2/brands"
590
- }), Xt = {
591
- getDropdown: (t) => vt.get("/dropdown", { params: t })
592
- }, R = s({
593
- prefix: "/file-manager/v2"
594
596
  }), Zt = {
597
+ getDropdown: (t) => yt.get("/dropdown", { params: t })
598
+ }, D = s({
599
+ prefix: "/file-manager/v2"
600
+ }), te = {
595
601
  /**
596
602
  * Get storage information.
597
603
  *
598
604
  * @returns {Promise<AxiosResponse>} The Axios Response.
599
605
  */
600
- getStorageInformation: () => R.get("/files/storage"),
606
+ getStorageInformation: () => D.get("/files/storage"),
601
607
  /**
602
608
  * Get file manager data.
603
609
  *
@@ -605,7 +611,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
605
611
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
606
612
  * @returns {Promise<AxiosResponse>} The Axios Response.
607
613
  */
608
- getFileManager: (t, e) => R.get(`/${t}`, { params: e }),
614
+ getFileManager: (t, e) => D.get(`/${t}`, { params: e }),
609
615
  /**
610
616
  * Get file manager options.
611
617
  *
@@ -613,7 +619,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
613
619
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
614
620
  * @returns {Promise<AxiosResponse>} The Axios Response.
615
621
  */
616
- getFileManagerOption: (t, e) => R.get(`/${t}/options`, { params: e }),
622
+ getFileManagerOption: (t, e) => D.get(`/${t}/options`, { params: e }),
617
623
  /**
618
624
  * Recover files.
619
625
  *
@@ -621,7 +627,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
621
627
  * @param {object} body - The body of the request.
622
628
  * @returns {Promise<AxiosResponse>} The Axios Response.
623
629
  */
624
- recoverFiles: (t, e) => R.put(`/${t}/recover`, e),
630
+ recoverFiles: (t, e) => D.put(`/${t}/recover`, e),
625
631
  /**
626
632
  * Delete files.
627
633
  *
@@ -629,7 +635,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
629
635
  * @param {DeleteFileManagerDto} params - The params of the request.
630
636
  * @returns {Promise<AxiosResponse>} The Axios Response.
631
637
  */
632
- deleteFiles: (t, e) => R.delete(`/${t}`, { params: e }),
638
+ deleteFiles: (t, e) => D.delete(`/${t}`, { params: e }),
633
639
  /**
634
640
  * Delete files permanently.
635
641
  *
@@ -637,16 +643,16 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
637
643
  * @param {object} body - The body of the request.
638
644
  * @returns {Promise<AxiosResponse>} The Axios Response.
639
645
  */
640
- deletePermanently: (t, e) => R.delete(`/${t}/delete-permanent`, { params: e })
641
- }, h = s({
646
+ deletePermanently: (t, e) => D.delete(`/${t}/delete-permanent`, { params: e })
647
+ }, w = s({
642
648
  prefix: "/utility/v2"
643
- }), te = {
649
+ }), ee = {
644
650
  /**
645
651
  * Get storage information.
646
652
  *
647
653
  * @returns {Promise<AxiosResponse>} The Axios Response.
648
654
  */
649
- getStorageInformation: () => h.get("/files/storage"),
655
+ getStorageInformation: () => w.get("/files/storage"),
650
656
  /**
651
657
  * Get file manager data.
652
658
  *
@@ -654,7 +660,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
654
660
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
655
661
  * @returns {Promise<AxiosResponse>} The Axios Response.
656
662
  */
657
- getFileManager: (t, e) => h.get(`/${t}`, { params: e }),
663
+ getFileManager: (t, e) => w.get(`/${t}`, { params: e }),
658
664
  /**
659
665
  * Get file manager options.
660
666
  *
@@ -662,7 +668,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
662
668
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
663
669
  * @returns {Promise<AxiosResponse>} The Axios Response.
664
670
  */
665
- getFileManagerOption: (t, e) => h.get(`/${t}/options`, { params: e }),
671
+ getFileManagerOption: (t, e) => w.get(`/${t}/options`, { params: e }),
666
672
  /**
667
673
  * Recover files.
668
674
  *
@@ -670,7 +676,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
670
676
  * @param {object} body - The body of the request.
671
677
  * @returns {Promise<AxiosResponse>} The Axios Response.
672
678
  */
673
- recoverFiles: (t, e) => h.put(`/${t}/recover`, e),
679
+ recoverFiles: (t, e) => w.put(`/${t}/recover`, e),
674
680
  /**
675
681
  * Delete files.
676
682
  *
@@ -678,7 +684,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
678
684
  * @param {DeleteFileManagerDto} params - The params of the request.
679
685
  * @returns {Promise<AxiosResponse>} The Axios Response.
680
686
  */
681
- deleteFiles: (t, e) => h.delete(`/${t}`, { params: e }),
687
+ deleteFiles: (t, e) => w.delete(`/${t}`, { params: e }),
682
688
  /**
683
689
  * Delete files permanently.
684
690
  *
@@ -686,28 +692,28 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
686
692
  * @param {object} body - The body of the request.
687
693
  * @returns {Promise<AxiosResponse>} The Axios Response.
688
694
  */
689
- deletePermanently: (t, e) => h.delete(`/${t}/delete-permanent`, { params: e })
690
- }, I = s({
695
+ deletePermanently: (t, e) => w.delete(`/${t}/delete-permanent`, { params: e })
696
+ }, T = s({
691
697
  prefix: "/iot/v2/reader"
692
- }), ee = {
693
- getData: (t) => I.get("/", { params: t }),
694
- getDataOptions: (t) => I.get("/options", { params: t }),
695
- getActivityLogData: (t) => I.get("/activity-log", { params: t }),
696
- getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
697
- getDataById: (t) => I.get(`/${t}`),
698
- getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
699
- getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
700
- putData: (t, e) => I.put(`/${t}`, e)
701
- }, c = s({
702
- prefix: "/settings-user-role/v2"
703
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 = {
704
710
  /**
705
711
  * Retrieves the transaction role for the given group and transaction name.
706
712
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
707
713
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
708
714
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
709
715
  */
710
- getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
716
+ getTransactionRole: (t, e) => l.get(`/transaction-roles/${t}/${e}`),
711
717
  /**
712
718
  * Updates the users assigned to the given transaction role.
713
719
  * @param {string} groupId - The ID of the group the transaction role belongs to.
@@ -715,7 +721,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
715
721
  * @param {UpdateUser} body - The request body containing the updated user information.
716
722
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
717
723
  */
718
- putUpdateUsers: (t, e, r) => c.put(
724
+ putUpdateUsers: (t, e, r) => l.put(
719
725
  `/transaction-roles/${t}/${e}/update-user`,
720
726
  r
721
727
  ),
@@ -726,7 +732,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
726
732
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
727
733
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
728
734
  */
729
- putUpdateLevel: (t, e, r) => c.put(
735
+ putUpdateLevel: (t, e, r) => l.put(
730
736
  `/transaction-roles/${t}/${e}/update-approval-level`,
731
737
  r
732
738
  ),
@@ -737,64 +743,64 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
737
743
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
738
744
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
739
745
  */
740
- putUpdateGroupManage: (t, e, r) => c.put(
746
+ putUpdateGroupManage: (t, e, r) => l.put(
741
747
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
742
748
  r
743
749
  ),
744
- getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
745
- getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
750
+ getUserAssignedSystemRole: (t) => l.get(`/system-roles/user/${t}`),
751
+ getAssignedUserAmounts: () => l.get("/system-roles/amounts"),
746
752
  getPermissionUser: (t, e) => {
747
753
  if (["totalControl", "readOnly"].includes(t ?? "")) {
748
754
  const r = t === "totalControl" ? "total-control" : "read-only";
749
- return c.get(`/system-roles/total-control-read-only/${r}`, {
755
+ return l.get(`/system-roles/total-control-read-only/${r}`, {
750
756
  params: e
751
757
  });
752
758
  }
753
- return c.get(`/system-roles/permission/${t}`, { params: e });
759
+ return l.get(`/system-roles/permission/${t}`, { params: e });
754
760
  },
755
761
  getPermissionUserOptions: (t, e) => {
756
762
  if (["totalControl", "readOnly"].includes(t ?? "")) {
757
763
  const r = t === "totalControl" ? "total-control" : "read-only";
758
- return c.get(`/system-roles/total-control-read-only/${r}/options`, {
764
+ return l.get(`/system-roles/total-control-read-only/${r}/options`, {
759
765
  params: e
760
766
  });
761
767
  }
762
- return c.get(`/system-roles/permission/${t}/options`, {
768
+ return l.get(`/system-roles/permission/${t}/options`, {
763
769
  params: e
764
770
  });
765
771
  },
766
- getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
772
+ getUserGroups: (t, e) => l.get(`/system-roles/permission/${e}/groups`, {
767
773
  params: t
768
774
  }),
769
775
  postAssignUser: (t, e) => {
770
776
  if (["totalControl", "readOnly"].includes(e ?? "")) {
771
777
  const r = e === "totalControl" ? "total-control" : "read-only";
772
- return c.post(`/system-roles/total-control-read-only/${r}`, t);
778
+ return l.post(`/system-roles/total-control-read-only/${r}`, t);
773
779
  }
774
- return c.post(`/system-roles/permission/${e}`, t);
780
+ return l.post(`/system-roles/permission/${e}`, t);
775
781
  },
776
- putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
777
- 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),
778
784
  deleteRemoveUser: (t, e) => {
779
785
  if (["totalControl", "readOnly"].includes(e ?? "")) {
780
786
  const r = e === "totalControl" ? "total-control" : "read-only";
781
- return c.delete(`/system-roles/total-control-read-only/${r}`, {
787
+ return l.delete(`/system-roles/total-control-read-only/${r}`, {
782
788
  data: t
783
789
  });
784
790
  }
785
- return c.delete("/system-roles", { data: t });
791
+ return l.delete("/system-roles", { data: t });
786
792
  }
787
- }, l = s({
793
+ }, d = s({
788
794
  prefix: "/settings-user-role-go/v2"
789
- }), se = {
795
+ }), ne = {
790
796
  /**
791
797
  * Retrieves the transaction role for the given group and transaction name.
792
798
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
793
799
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
794
800
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
795
801
  */
796
- getTransactionRole: (t, e) => l.get(`/transaction-roles/${t}/${e}`),
797
- 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`, {
798
804
  params: { groupKeys: t }
799
805
  }),
800
806
  /**
@@ -804,7 +810,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
804
810
  * @param {UpdateUser} body - The request body containing the updated user information.
805
811
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
806
812
  */
807
- putUpdateUsers: (t, e, r) => l.put(
813
+ putUpdateUsers: (t, e, r) => d.put(
808
814
  `/transaction-roles/${t}/${e}/update-user`,
809
815
  r
810
816
  ),
@@ -815,7 +821,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
815
821
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
816
822
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
817
823
  */
818
- putUpdateLevel: (t, e, r) => l.put(
824
+ putUpdateLevel: (t, e, r) => d.put(
819
825
  `/transaction-roles/${t}/${e}/update-approval-level`,
820
826
  r
821
827
  ),
@@ -826,62 +832,62 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
826
832
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
827
833
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
828
834
  */
829
- putUpdateGroupManage: (t, e, r) => l.put(
835
+ putUpdateGroupManage: (t, e, r) => d.put(
830
836
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
831
837
  r
832
838
  ),
833
- getUserAssignedSystemRole: (t) => l.get(`/system-roles/user/${t}`),
834
- getAssignedUserAmounts: () => l.get("/system-roles/amounts"),
839
+ getUserAssignedSystemRole: (t) => d.get(`/system-roles/user/${t}`),
840
+ getAssignedUserAmounts: () => d.get("/system-roles/amounts"),
835
841
  getPermissionUser: (t, e) => {
836
842
  if (["totalControl", "readOnly"].includes(t ?? "")) {
837
843
  const r = t === "totalControl" ? "total-control" : "read-only";
838
- return l.get(`/system-roles/total-control-read-only/${r}`, {
844
+ return d.get(`/system-roles/total-control-read-only/${r}`, {
839
845
  params: e
840
846
  });
841
847
  }
842
- return l.get(`/system-roles/permission/${t}`, { params: e });
848
+ return d.get(`/system-roles/permission/${t}`, { params: e });
843
849
  },
844
850
  getPermissionUserOptions: (t, e) => {
845
851
  if (["totalControl", "readOnly"].includes(t ?? "")) {
846
852
  const r = t === "totalControl" ? "total-control" : "read-only";
847
- return l.get(`/system-roles/total-control-read-only/${r}/options`, {
853
+ return d.get(`/system-roles/total-control-read-only/${r}/options`, {
848
854
  params: e
849
855
  });
850
856
  }
851
- return l.get(`/system-roles/permission/${t}/options`, {
857
+ return d.get(`/system-roles/permission/${t}/options`, {
852
858
  params: e
853
859
  });
854
860
  },
855
- getUserGroups: (t, e) => l.get(`/system-roles/permission/${e}/groups`, {
861
+ getUserGroups: (t, e) => d.get(`/system-roles/permission/${e}/groups`, {
856
862
  params: t
857
863
  }),
858
864
  postAssignUser: (t, e) => {
859
865
  if (["totalControl", "readOnly"].includes(e ?? "")) {
860
866
  const r = e === "totalControl" ? "total-control" : "read-only";
861
- return l.post(`/system-roles/total-control-read-only/${r}`, t);
867
+ return d.post(`/system-roles/total-control-read-only/${r}`, t);
862
868
  }
863
- return l.post(`/system-roles/permission/${e}`, t);
869
+ return d.post(`/system-roles/permission/${e}`, t);
864
870
  },
865
- putEditUser: (t, e) => l.put(`/system-roles/${e}`, t),
871
+ putEditUser: (t, e) => d.put(`/system-roles/${e}`, t),
866
872
  deleteRemoveUser: (t, e) => {
867
873
  if (["totalControl", "readOnly"].includes(e ?? "")) {
868
874
  const r = e === "totalControl" ? "total-control" : "read-only";
869
- return l.put(`/system-roles/total-control-read-only/${r}`, t);
875
+ return d.put(`/system-roles/total-control-read-only/${r}`, t);
870
876
  }
871
- return l.put("/system-roles", t);
877
+ return d.put("/system-roles", t);
872
878
  }
873
- }, q = s({
879
+ }, x = s({
874
880
  prefix: "/settings-attribute/v2/open-api"
875
- }), ne = {
876
- getOpenAPIDocs: (t) => q.get(`/${t.doc}`),
877
- putGenerateToken: () => q.put("/generate"),
881
+ }), oe = {
882
+ getOpenAPIDocs: (t) => x.get(`/${t.doc}`),
883
+ putGenerateToken: () => x.put("/generate"),
878
884
  // This is if the dummy was not dummy
879
- getToken: () => q.get(""),
880
- putRequestOpenAPI: () => q.put("/request"),
881
- putCancelRequestOpenAPI: () => q.put("/cancel-request")
885
+ getToken: () => x.get(""),
886
+ putRequestOpenAPI: () => x.put("/request"),
887
+ putCancelRequestOpenAPI: () => x.put("/cancel-request")
882
888
  }, H = s({
883
889
  prefix: "/settings-attribute-go/v2/open-api"
884
- }), oe = {
890
+ }), ae = {
885
891
  putGenerateToken: () => H.put("/generate"),
886
892
  // This is if the dummy was not dummy
887
893
  getToken: () => H.get(""),
@@ -889,7 +895,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
889
895
  putCancelRequestOpenAPI: () => H.put("/cancel-request")
890
896
  }, C = s({
891
897
  prefix: "/import/v2"
892
- }), ae = {
898
+ }), ie = {
893
899
  getImport: (t, e) => C.get(`/${t}`, { params: e }),
894
900
  postImportTemporary: (t, e) => {
895
901
  const r = { "Content-Type": "multipart/form-data" };
@@ -902,7 +908,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
902
908
  putImportCancelProgress: (t) => C.put(`/${t}/cancel-progress`)
903
909
  }, O = s({
904
910
  prefix: "/import-go/v2"
905
- }), ie = {
911
+ }), ue = {
906
912
  getImport: (t, e) => O.get(`/${t}`, { params: e }),
907
913
  postImportTemporary: (t, e) => {
908
914
  const r = { "Content-Type": "multipart/form-data" };
@@ -913,93 +919,93 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
913
919
  putEditImport: (t, e) => O.put(`/${t}`, e),
914
920
  postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
915
921
  putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
916
- }, k = s({
922
+ }, h = s({
917
923
  prefix: "/settings-attribute/v2/asset-name"
918
- }), ue = {
919
- getDropdown: (t) => k.get("/dropdown", { params: t }),
920
- getAssetNameDetail: (t) => k.get(`/${t}`),
921
- getAssetsByAssetName: (t, e) => k.get(`/${t}/list-asset`, { params: e }),
922
- getAssetNameList: (t) => k.get("/", { params: t }),
923
- getUnpairedAssetName: (t) => k.get("/unpaired", { params: t }),
924
- getOptions: (t) => k.get("/options", { params: t })
925
- }, n = s({
926
- prefix: "/assignment/v2"
927
924
  }), ge = {
928
- getPreListData: (t) => n.get("/prelist", { params: t }),
929
- getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
930
- getRequestData: (t) => n.get("/prelist/request", { params: t }),
931
- postAddPrelistData: (t) => n.post("/prelist", t),
932
- getDetailRequestData: (t, e) => n.get(`/transaction/${t}/request`, { params: e }),
933
- getDetailRequestOption: (t, e) => n.get(`/transaction/${e}/request/options`, { params: t }),
934
- getTransactionData: (t) => n.get("/transaction", { params: t }),
935
- getTransactionOptions: (t) => n.get("/transaction/options", { params: t }),
936
- getDetailTransactionData: (t) => n.get(`/transaction/${t}`),
937
- getTransactionApproval: (t) => n.get("/approval", { params: t }),
938
- getApprovalData: (t, e) => n.get(`/approval/transaction/${t}`, { params: e }),
939
- getTransactionApprovalOptions: (t) => n.get("/approval/options", { params: t }),
940
- 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`, {
941
947
  params: e
942
948
  }),
943
- getTransactionApprovers: (t) => n.get(`/approval/transaction/${t}/transaction`),
944
- putApproveApproval: (t) => n.put("/approval/approve", t),
945
- getDetailTransactionLog: (t) => n.get(`/transaction/request/${t}/transaction-log`),
946
- getVerifyAsset: (t, e) => n.get(`/transaction/${e}/request/scan`, { params: t }),
947
- putEditAssignedUser: (t, e) => n.put(`/transaction/${t}/user`, e),
948
- putEditEmailConfirmation: (t, e) => n.put(`/transaction/${t}/update-email-or-assigned-user`, e),
949
- postSendConfirmationEmail: (t) => n.post(`/transaction/${t}/send-confirmation-email`),
950
- postTransaction: (t) => n.post("/transaction", t),
951
- putTransaction: (t, e) => n.put(`/transaction/${t}/request`, e),
952
- putCancelTransaction: (t) => n.put("/transaction/cancel", t),
953
- putCancelAssignmentRequest: (t) => n.put("/transaction/request/cancel", t),
954
- putVerifyRequest: (t, e) => n.put(`/transaction/${e}/verify-requests`, t),
955
- putVerifyToken: (t) => n.put("/transaction/verify-token", t),
956
- putHandoverConfirm: (t) => n.put("/transaction/handover-confirmation", t),
957
- putAssignHandover: (t) => n.put(`/transaction/${t}/handover`),
958
- deletePrelistData: (t) => n.delete("/prelist", { params: t }),
959
- deleteRequestPrelistData: (t) => n.delete("/prelist/request", { data: t }),
960
- getAssignedByAsset: (t) => n.get("/transaction/request/assigned/by-asset", { params: t }),
961
- 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", {
962
968
  params: t
963
969
  }),
964
- getAssignedByUser: (t) => n.get("/transaction/request/assigned/by-user", { params: t }),
965
- getAssignedByUserOptions: (t) => n.get("/transaction/request/assigned/by-user/options", { params: t }),
966
- postUnassignPrelistAsset: (t) => n.post("/prelist", t),
967
- postUnassignPrelistUser: (t) => n.post("/prelist/unassign/by-user", t),
968
- putUnassignRequest: (t) => n.put("/transaction/request/unassign", t),
969
- 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),
970
976
  getHistory: (t, e) => {
971
977
  const r = t.split(" ").join("-").toLowerCase();
972
- return n.get(`/transaction/history/${r}`, { params: e });
978
+ return o.get(`/transaction/history/${r}`, { params: e });
973
979
  },
974
- getHistoryOptions: (t) => n.get("/transaction/history/options", { params: t }),
975
- getHistoryByTransactionOptions: (t) => n.get("/transaction/history/by-transaction/options", { params: t }),
976
- putCancelReport: (t) => n.put("/transaction/request/cancel-report", t),
977
- getTaskAssignment: async (t) => n.get("/transaction/my-asset/task", { params: t }),
978
- getTaskAssignmentOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
979
- getAssignedAsset: async (t) => n.get("/transaction/my-asset/assigned-asset", { params: t }),
980
- getAssignedAssetOptions: async (t) => n.get("/transaction/my-asset/assigned-asset/options", { params: t }),
981
- putCancelAssignment: async (t) => n.put("/transaction/cancel", { id: t.id }),
982
- putCancelReportById: async (t) => n.put(`/transaction/request/${t.id}/cancel-report`)
983
- }, 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({
984
990
  prefix: "/assignment-go/v2"
985
- }), pe = {
986
- getTransactionData: (t) => L.get("/transaction", { params: t }),
987
- getTransactionOptions: (t) => L.get("/transaction/options", { params: t }),
988
- getDetailTransactionLog: (t) => L.get(`/transaction/request/${t}/transaction-log`),
989
- postTransaction: (t) => L.post("/transaction", t),
990
- putTransaction: (t) => L.put("/transaction", t),
991
- putUnassignTransaction: (t) => L.put("/transaction/unassign", t),
992
- 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)
993
999
  }, V = s({
994
1000
  prefix: "/license/v2"
995
- }), ce = {
1001
+ }), le = {
996
1002
  getGroupQuota: (t) => V.get(`/${t}/allocation-quota`),
997
1003
  getSubGroupQuota: (t) => V.get(`/${t}/subgroup-quota`),
998
1004
  editSubGroupQuota: (t, e) => V.put(`/${t}/set-group-quota`, e),
999
1005
  getTotalLicense: () => V.get("/total-license")
1000
1006
  }, ut = s({
1001
1007
  prefix: "/repair/v2/damage"
1002
- }), le = {
1008
+ }), de = {
1003
1009
  putReportDamage: (t, e) => {
1004
1010
  const r = { "Content-Type": "multipart/form-data" };
1005
1011
  return ut.put(`/report-damage/${t}`, e, { headers: r });
@@ -1009,40 +1015,91 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1009
1015
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
1010
1016
  */
1011
1017
  putMarkAsRepaired: (t) => ut.put("/repair", t)
1012
- }, E = s({
1018
+ }, _ = s({
1013
1019
  prefix: "/damage-repair-ticketing/v2"
1014
- }), de = {
1015
- getDamageReportList: (t) => E.get("/", { params: t }),
1016
- getDamageReportListFilterOptions: (t) => E.get("/options", { params: t }),
1017
- 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}`),
1018
1024
  putReportDamage: (t, e) => {
1019
1025
  const r = { "Content-Type": "multipart/form-data" };
1020
- return E.put(`/${t}/report-damage`, e, { headers: r });
1026
+ return _.put(`/${t}/report-damage`, e, { headers: r });
1021
1027
  },
1022
- putMarkAsRepaired: (t) => E.put("/repair", t)
1023
- }, A = s({
1028
+ putMarkAsRepaired: (t) => _.put("/repair", t)
1029
+ }, n = s({
1024
1030
  prefix: "/borrowing/v2"
1025
- }), Ae = {
1026
- getTaskBorrowing: async (t) => A.get("/transaction/my-asset/task", { params: t }),
1027
- getTaskBorrowingOptions: async (t) => A.get("/transaction/my-asset/task/options", { params: t }),
1028
- getBorrowedAsset: async (t) => A.get("/transaction/my-asset/borrowed-asset", { params: t }),
1029
- getBorrowedOptions: async (t) => A.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
1030
- getHistory: async (t) => A.get("/transaction/my-asset/history", { params: t }),
1031
- getHistoryOptions: async (t) => A.get("/transaction/my-asset/history/options", { params: t }),
1032
- postAddPrelistData: (t) => A.post("/prelist", t),
1033
- putCancelBorrowing: async (t) => A.put("/transaction/cancel", { id: t.id }),
1034
- putCancelExtensionRequest: async (t) => A.put(`/transaction/${t.id}/cancel-extension`),
1035
- putCancelRequestReport: async (t) => A.put(`/transaction/request/${t.id}/cancel-report`),
1036
- putDeclineExtensionRequest: async (t) => A.put("transaction/request/decline", t),
1037
- 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)
1038
1095
  }, gt = s({
1039
1096
  prefix: "/assets/v2"
1040
- }), $e = {
1097
+ }), me = {
1041
1098
  getHistory: async (t) => gt.get("/my-asset", { params: t }),
1042
1099
  getHistoryOptions: async (t) => gt.get("/my-asset/options", { params: t })
1043
1100
  }, j = s({
1044
1101
  prefix: "/repair/v2"
1045
- }), me = {
1102
+ }), ve = {
1046
1103
  getRepairList: (t) => j.get("/my-asset/repair", { params: t }),
1047
1104
  getFilterOptions: (t) => j.get("/my-asset/repair/options", { params: t }),
1048
1105
  getAssetRepairTicketing: (t, e) => j.get(`/repair/${t}/asset-repair-detail`, { params: e }),
@@ -1050,75 +1107,75 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1050
1107
  }, z = s({
1051
1108
  env: "APP_GLOBAL_SETTINGS_API",
1052
1109
  prefix: "/v1/global-settings/auth"
1053
- }), b = s({
1110
+ }), L = s({
1054
1111
  env: "APP_TAGSAMURAI_API",
1055
1112
  prefix: "/settings-user-role/v2/auth"
1056
1113
  }), pt = (t) => {
1057
- var e, r, o, v;
1058
- 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);
1059
- }, 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 = {
1060
1117
  login: (t) => {
1061
1118
  const e = { ...t, isMobile: !1 };
1062
1119
  return z.post("/login", e);
1063
1120
  },
1064
1121
  reLoginGlobal: (t) => (z.interceptors.response.use((e) => e, pt), z.post("/login", t)),
1065
- 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)),
1066
1123
  requestOTP: (t) => {
1067
1124
  const e = { email: t };
1068
- return b.post("/request-otp", e);
1125
+ return L.post("/request-otp", e);
1069
1126
  },
1070
1127
  requestResetPassLink: (t) => {
1071
1128
  const e = { email: t };
1072
- return b.post("/request-reset-link", e);
1129
+ return L.post("/request-reset-link", e);
1073
1130
  },
1074
- setPassword: (t) => b.post("/set-password", t),
1075
- verifyToken: (t) => b.get(`/verify-token/${t}`),
1131
+ setPassword: (t) => L.post("/set-password", t),
1132
+ verifyToken: (t) => L.get(`/verify-token/${t}`),
1076
1133
  confirmEmailChange: (t) => {
1077
1134
  const e = { token: t };
1078
- return b.put("/confirm-email-change/confirm", e);
1135
+ return L.put("/confirm-email-change/confirm", e);
1079
1136
  }
1080
1137
  }, et = "/transfer/v2", Q = s({
1081
1138
  prefix: `${et}/prelist`
1082
- }), d = s({
1139
+ }), A = s({
1083
1140
  prefix: `${et}/transaction`
1084
- }), F = s({
1141
+ }), E = s({
1085
1142
  prefix: `${et}/approval`
1086
- }), ye = {
1143
+ }), Se = {
1087
1144
  // ------ TRANSACTION ------
1088
- getTransactions: (t) => d.get("/", { params: t }),
1089
- getTransactionDetail: (t) => d.get(`/${t}`),
1090
- 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 }),
1091
1148
  getRequestFilterOptions: (t, e) => {
1092
1149
  const r = {};
1093
- 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 });
1094
1151
  },
1095
- getTransactionLog: (t) => d.get(`/request/${t}/transaction-log`),
1152
+ getTransactionLog: (t) => A.get(`/request/${t}/transaction-log`),
1096
1153
  getTransactionOptions: (t) => {
1097
1154
  const e = {};
1098
- return e[t] = !0, d.get("/options", { params: e });
1155
+ return e[t] = !0, A.get("/options", { params: e });
1099
1156
  },
1100
- postCreateTransaction: (t) => d.post("/", t),
1157
+ postCreateTransaction: (t) => A.post("/", t),
1101
1158
  putCancelTransactions: (t) => {
1102
1159
  const e = { id: t };
1103
- return d.put("/cancel", e);
1160
+ return A.put("/cancel", e);
1104
1161
  },
1105
- putUpdateTransaction: (t, e) => d.put(`/${t}`, e),
1162
+ putUpdateTransaction: (t, e) => A.put(`/${t}`, e),
1106
1163
  putCancelRequests: (t) => {
1107
1164
  const e = { id: t };
1108
- return d.put("/request/cancel", e);
1165
+ return A.put("/request/cancel", e);
1109
1166
  },
1110
- getHistoryByTransaction: (t) => d.get("/history", { params: t }),
1167
+ getHistoryByTransaction: (t) => A.get("/history", { params: t }),
1111
1168
  getHistoryByTransactionOptions: (t) => {
1112
1169
  const e = {};
1113
- return e[t] = !0, d.get("/history/options", { params: e });
1170
+ return e[t] = !0, A.get("/history/options", { params: e });
1114
1171
  },
1115
- getHistoryByAsset: (t) => d.get("/history/by-asset", { params: t }),
1172
+ getHistoryByAsset: (t) => A.get("/history/by-asset", { params: t }),
1116
1173
  getHistoryByAssetOptions: (t) => {
1117
1174
  const e = {};
1118
- 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 });
1119
1176
  },
1120
- getApproverList: (t) => d.get(`/${t}/approval-history`),
1121
- 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),
1122
1179
  // ------ PRELIST ------
1123
1180
  getPrelist: (t) => Q.get("/", { params: t }),
1124
1181
  postAddPrelistData: (t) => Q.post("/", t),
@@ -1134,28 +1191,28 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1134
1191
  // APPROVAL
1135
1192
  getApprovals: (t, e) => {
1136
1193
  const r = { ...e, status: JSON.stringify([t]) };
1137
- return F.get("/", { params: r });
1194
+ return E.get("/", { params: r });
1138
1195
  },
1139
1196
  getApprovalOptions: (t, e) => {
1140
1197
  const r = {
1141
1198
  status: JSON.stringify([t])
1142
1199
  };
1143
- return r[e] = !0, F.get("/options", { params: r });
1200
+ return r[e] = !0, E.get("/options", { params: r });
1144
1201
  },
1145
1202
  getApprovalDetail: (t, e) => {
1146
1203
  const r = {
1147
1204
  groupType: e
1148
1205
  };
1149
- return F.get(`/transaction/${t}`, { params: r });
1206
+ return E.get(`/transaction/${t}`, { params: r });
1150
1207
  },
1151
1208
  getApprovalDetailOptions: (t, e, r) => {
1152
- const o = {};
1153
- 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 });
1154
1211
  },
1155
- putUpdateApproval: (t) => F.put("/approve", t)
1212
+ putUpdateApproval: (t) => E.put("/approve", t)
1156
1213
  }, X = s({
1157
1214
  prefix: "/disposal/v2/report"
1158
- }), Se = {
1215
+ }), fe = {
1159
1216
  getReportedDisposal: (t) => X.get("", { params: t }),
1160
1217
  postReportDisposal: (t) => X.post("", t),
1161
1218
  deleteCancelReport: (t) => X.delete("/cancel-report", { params: t })
@@ -1168,7 +1225,7 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1168
1225
  postCreateTransaction: (t) => Y.post("/transaction", t)
1169
1226
  }, Z = s({
1170
1227
  prefix: "/audit/v2"
1171
- }), fe = {
1228
+ }), Te = {
1172
1229
  getAudit: (t, e) => Z.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1173
1230
  getAuditOption: (t, e) => Z.get(`/audit/schedule/asset-detail/${t}/options`, {
1174
1231
  params: e
@@ -1180,69 +1237,75 @@ const At = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
1180
1237
  getMaintenance: (t, e) => tt.get(`/routine-task/${t}`, { params: e }),
1181
1238
  getMaintenanceOption: (t, e) => tt.get(`/routine-task/${t}/options`, { params: e }),
1182
1239
  putSetActive: (t) => tt.put("/maintenable-asset/set-active", t)
1183
- }, yt = s({
1240
+ }, St = s({
1184
1241
  prefix: "/settings-attribute/v2/models"
1185
- }), Te = {
1186
- 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)
1187
1249
  };
1188
1250
  export {
1189
- Vt as AliasCodeServices,
1190
- jt as AliasCodeServicesGo,
1191
- ue as AssetNameServices,
1251
+ jt as AliasCodeServices,
1252
+ Qt as AliasCodeServicesGo,
1253
+ ge as AssetNameServices,
1192
1254
  Dt as AssetServices,
1193
- Rt as AssetServicesGo,
1194
- ge as AssignmentServices,
1195
- pe as AssignmentServicesGo,
1196
- fe as AuditServices,
1197
- ve as AuthServices,
1198
- Ae as BorrowServices,
1199
- 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,
1200
1262
  Lt as ChangelogServices,
1201
- Wt as CountryStateServices,
1202
- Jt as CustomFieldServices,
1263
+ zt as CountryStateServices,
1264
+ Wt as CustomFieldServices,
1203
1265
  Kt as CustomFieldServicesGo,
1204
- le as DamageServices,
1205
- de as DamageServicesGo,
1206
- Ht as DashboardServices,
1207
- Se as DisposalServices,
1208
- Zt as FileManagerServices,
1209
- te as FileManagerServicesGo,
1210
- Qt as GeneralSettingsServices,
1211
- Yt as GeneralSettingsServicesGo,
1212
- Ut as GroupCategoryServices,
1213
- Ct as GroupCategoryServicesGo,
1214
- Mt as I18nService,
1215
- ae as ImportServices,
1216
- ie as ImportServicesGo,
1217
- ce as LicenseServices,
1218
- 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,
1219
1281
  ht as MissingServices,
1220
- kt as MissingServicesGo,
1221
- Te as ModelTypeServices,
1222
- $e as MyAssetServices,
1223
- Ot as NotificationApprovalServices,
1224
- Gt as NotificationServices,
1225
- _t as NotificationServicesGo,
1226
- ne as OpenAPIServices,
1227
- oe as OpenAPIServicesGo,
1228
- ee as ReaderServices,
1229
- me as RepairServices,
1230
- re as RoleServices,
1231
- 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,
1232
1294
  Ie as RoutineServices,
1233
- zt as ServiceCenterServices,
1234
- xt as SessionLogServices,
1235
- Bt as SubUserServices,
1236
- Nt as SubUserServicesGo,
1237
- wt as TAGServices,
1238
- qt as TrackingServices,
1239
- 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,
1240
1303
  Pe as TransferServicesGo,
1241
1304
  Et as UserServices,
1242
1305
  Ft as UserServicesGo,
1243
- Tt as getAssetsFile,
1244
- G as getBaseURL,
1306
+ Ut as getAssetsFile,
1307
+ q as getBaseURL,
1245
1308
  It as getImageURL,
1246
- ft as getImageURLGo,
1309
+ Tt as getImageURLGo,
1247
1310
  Pt as queryParamsStringfy
1248
1311
  };