@tagsamurai/fats-api-services 1.0.0-alpha.83 → 1.0.0-alpha.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- import q from "axios";
2
- const Q = { 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" }, b = (t = "APP_API") => Q["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: n = "", headers: P = {}, ...O } = t, V = `${b(r)}${n}`, E = JSON.parse(localStorage.getItem("user") ?? "{}"), j = E.jwt ?? E.token ?? "";
4
- return q.create({
5
- ...O,
6
- baseURL: V,
7
- headers: e ? P : {
1
+ import Y from "axios";
2
+ const K = { 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" }, O = (t = "APP_API") => K["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: a = "", headers: I = {}, ...D } = t, H = `${O(r)}${a}`, k = JSON.parse(localStorage.getItem("user") ?? "{}"), J = k.jwt ?? k.token ?? "";
4
+ return Y.create({
5
+ ...D,
6
+ baseURL: H,
7
+ headers: e ? I : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${j}`,
10
- ...P
9
+ Authorization: `Bearer ${J}`,
10
+ ...I
11
11
  }
12
12
  });
13
- }, X = (t) => {
13
+ }, et = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,156 +21,158 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, tt = (t, e, r) => {
24
+ }, rt = (t, e, r) => {
25
25
  if (!t) return;
26
- const n = b("APP_API"), P = t.startsWith("http") ? t : `${n}/utility/v2/files/${t.replace(/^\/+/, "")}`;
26
+ const a = O("APP_API"), I = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
28
- const O = new URLSearchParams();
29
- return e && (O.set("width", e.toString()), O.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${P}?${O.toString()}`;
28
+ const D = new URLSearchParams();
29
+ return e && (D.set("width", e.toString()), D.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${I}?${D.toString()}`;
30
30
  }
31
- return P;
32
- }, et = (t) => {
31
+ return I;
32
+ }, st = (t) => {
33
33
  if (!t) return;
34
- const e = b("APP_TAGSAMURAI_API");
34
+ const e = O("APP_TAGSAMURAI_API");
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, rt = async (t, e = "excel") => await fetch(
37
- `${b("APP_ASSETS_URL")}/${e}/${t}`
38
- ), d = s({
36
+ }, nt = async (t, e = "excel") => await fetch(
37
+ `${O("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), $ = s({
39
39
  prefix: "/settings-attribute/v2",
40
40
  env: "APP_TAGSAMURAI_API"
41
- }), st = {
41
+ }), ot = {
42
42
  getGroupCategory: (t, e) => {
43
43
  const r = t === "category" ? t : "groups";
44
- return d.get(`/${r}/tree`, { params: e });
44
+ return $.get(`/${r}/tree`, { params: e });
45
45
  },
46
46
  getGroupCategoryList: (t, e, r) => {
47
- const n = t === "category" ? t : "groups";
48
- return d.get(`/${n}/${e}`, { params: r });
47
+ const a = t === "category" ? t : "groups";
48
+ return $.get(`/${a}/${e}`, { params: r });
49
49
  },
50
50
  getNames: (t) => {
51
51
  const e = t === "category" ? t : "groups";
52
- return d.get(`/${e}/names`);
52
+ return $.get(`/${e}/names`);
53
53
  },
54
54
  getCodes: (t) => {
55
55
  const e = t === "category" ? t : "groups";
56
- return d.get(`/${e}/codes`);
56
+ return $.get(`/${e}/codes`);
57
57
  },
58
58
  postCreateGroupCategory: (t, e) => {
59
59
  const r = t === "category" ? t : "groups";
60
- return d.post(`/${r}`, e);
60
+ return $.post(`/${r}`, e);
61
61
  },
62
62
  putEditGroupCategory: (t, e, r) => {
63
- const n = t === "category" ? t : "groups";
64
- return d.put(`/${n}/${r}`, e);
63
+ const a = t === "category" ? t : "groups";
64
+ return $.put(`/${a}/${r}`, e);
65
65
  },
66
- putMoveGroup: (t, e) => d.put(`/groups/${e}/move-group`, t),
67
- putEditBulkGroups: async (t) => d.put("/groups/bulk", t),
66
+ putMoveGroup: (t, e) => $.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => $.put("/groups/bulk", t),
68
68
  deleteGroupCategory: (t, e, r) => {
69
- const n = t === "category" ? t : "groups";
70
- return d.delete(`/${n}/${r}`, { data: e });
69
+ const a = t === "category" ? t : "groups";
70
+ return $.delete(`/${a}/${r}`, { data: e });
71
71
  }
72
- }, S = s({
72
+ }, y = s({
73
73
  prefix: "/settings-attribute-go/v2"
74
- }), ot = {
74
+ }), at = {
75
75
  getGroupCategory: (t, e) => {
76
76
  const r = t === "category" ? t : "groups";
77
- return S.get(`/${r}/tree`, { params: e });
77
+ return y.get(`/${r}/tree`, { params: e });
78
78
  },
79
79
  getGroupCategoryList: (t, e) => {
80
80
  const r = t === "category" ? t : "groups";
81
- return S.get(`/${r}/${e}`);
81
+ return y.get(`/${r}/${e}`);
82
82
  },
83
83
  getNames: (t) => {
84
84
  const e = t === "category" ? t : "groups";
85
- return S.get(`/${e}/names`);
85
+ return y.get(`/${e}/names`);
86
86
  },
87
87
  getCodes: (t) => {
88
88
  const e = t === "category" ? t : "groups";
89
- return S.get(`/${e}/codes`);
89
+ return y.get(`/${e}/codes`);
90
90
  },
91
91
  postCreateGroupCategory: (t, e) => {
92
92
  const r = t === "category" ? t : "groups";
93
- return S.post(`/${r}`, e);
93
+ return y.post(`/${r}`, e);
94
94
  },
95
95
  putEditGroupCategory: (t, e, r) => {
96
- const n = t === "category" ? t : "groups";
97
- return S.put(`/${n}/${r}`, e);
96
+ const a = t === "category" ? t : "groups";
97
+ return y.put(`/${a}/${r}`, e);
98
98
  },
99
99
  deleteGroupCategory: (t, e, r) => {
100
- const n = t === "category" ? t : "groups";
101
- return S.delete(`/${n}/${r}`, { data: e });
100
+ const a = t === "category" ? t : "groups";
101
+ return y.delete(`/${a}/${r}`, { data: e });
102
102
  }
103
- }, Y = s({
103
+ }, W = s({
104
104
  prefix: "/v2",
105
105
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), nt = {
107
- getTotalApprovals: () => Y.get("/approval/count")
108
- }, T = s({
106
+ }), it = {
107
+ getTotalApprovals: () => W.get("/approval/count")
108
+ }, R = s({
109
109
  prefix: "/v2",
110
110
  env: "APP_LOGS_NOTIFICATION_API"
111
- }), at = {
112
- getActionLog: (t) => T.get("/change-log", { params: t }),
113
- getActionLogOption: (t) => T.get("/change-log/options", { params: t }),
114
- getSessionLogList: (t) => T.get("/session-log", { params: t }),
115
- getUserDetailSystemLogList: (t) => T.get("/change-log", { params: t }),
116
- getUserDetailSystemLogOption: (t) => T.get("/change-log/options", { params: t })
117
- }, $ = s({
111
+ }), ut = {
112
+ getActionLog: (t) => R.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => R.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => R.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => R.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => R.get("/change-log/options", { params: t })
117
+ }, A = s({
118
118
  prefix: "/utility/v2"
119
- }), it = {
120
- getActionLog: (t) => $.get("/change-log", { params: t }),
121
- getActionLogOption: (t) => $.get("/change-log/options", { params: t }),
122
- getSessionLogList: (t) => $.get("/session-log", { params: t }),
123
- getUserDetailSystemLogList: (t) => $.get("/change-log", { params: t }),
124
- getUserDetailSystemLogOption: (t) => $.get("/change-log/options", { params: t }),
125
- getUserDetailUserLogBorrowingList: (t, e) => $.get(`/borrowing-log/${t}`, { params: e }),
126
- getUserDetailUserLogAssignmentList: (t, e) => $.get(`/assignment-log/${t}`, { params: e }),
127
- getUserDetailUserLogBorrowingOption: (t, e) => $.get(`/borrowing-log/${t}/options`, { params: e }),
128
- getUserDetailUserLogAssignmentOption: (t, e) => $.get(`/assignment-log/${t}/options`, { params: e })
129
- }, p = s({
119
+ }), gt = {
120
+ getActionLog: (t) => A.get("/change-log", { params: t }),
121
+ getActionLogOption: (t) => A.get("/change-log/options", { params: t }),
122
+ getSessionLogList: (t) => A.get("/session-log", { params: t }),
123
+ getUserDetailSystemLogList: (t) => A.get("/change-log", { params: t }),
124
+ getUserDetailSystemLogOption: (t) => A.get("/change-log/options", { params: t }),
125
+ getUserDetailUserLogBorrowingList: (t, e) => A.get(`/borrowing-log/${t}`, { params: e }),
126
+ getUserDetailUserLogAssignmentList: (t, e) => A.get(`/assignment-log/${t}`, { params: e }),
127
+ getUserDetailUserLogBorrowingOption: (t, e) => A.get(`/borrowing-log/${t}/options`, { params: e }),
128
+ getUserDetailUserLogAssignmentOption: (t, e) => A.get(`/assignment-log/${t}/options`, { params: e })
129
+ }, c = s({
130
130
  prefix: "/assets/v2/assets"
131
- }), ut = {
132
- getScanTag: (t) => p.get("/scan", { params: { tag: t } }),
133
- getAllAssets: (t) => p.get("/", { params: t }),
134
- getAvailableAssets: (t) => p.get("/available", { params: t }),
135
- scanAsset: (t) => p.get("", { params: { tag: t } }),
136
- getAssetsById: (t, e) => p.get("/by-id", { params: { _id: t, ...e } }),
137
- getOptions: (t, e) => p.get(t ? `/${t}/options` : "/options", { params: e }),
138
- getUnlinkedAssets: (t) => p.get("/unlinked", { params: t }),
139
- getAssetDetail: (t, e) => p.get(`/${t}`, { params: e }),
140
- getLinkedAssetFamily: (t) => p.get("/family", { params: { id: t } }),
131
+ }), pt = {
132
+ getScanTag: (t) => c.get("/scan", { params: { tag: t } }),
133
+ getAllAssets: (t) => c.get("/", { params: t }),
134
+ getAllAssetsOptions: (t) => c.get("/options", { params: t }),
135
+ getAvailableAssets: (t) => c.get("/available", { params: t }),
136
+ scanAsset: (t) => c.get("", { params: { tag: t } }),
137
+ getAssetsById: (t, e) => c.get("/by-id", { params: { _id: t, ...e } }),
138
+ getOptions: (t, e) => c.get(t ? `/${t}/options` : "/options", { params: e }),
139
+ getUnlinkedAssets: (t) => c.get("/unlinked", { params: t }),
140
+ getAssetDetail: (t, e) => c.get(`/${t}`, { params: e }),
141
+ getLinkedAssetFamily: (t) => c.get("/family", { params: { id: t } }),
141
142
  matchAssetWithTag: (t, e) => {
142
143
  const r = {
143
144
  _id: JSON.stringify([t]),
144
145
  tag: e
145
146
  };
146
- return p.get("/by-id", { params: r });
147
+ return c.get("/by-id", { params: r });
147
148
  }
148
- }, J = s({
149
+ }, N = s({
149
150
  prefix: "/tracking/v2/missing"
150
- }), gt = {
151
+ }), ct = {
151
152
  putFoundAsset: (t, e) => {
152
153
  const r = { ids: [t], serialNumber: e };
153
- return J.put("/found", r);
154
- }
155
- }, F = s({
154
+ return N.put("/found", r);
155
+ },
156
+ putReportMissing: (t, e) => N.put(`/report-missing/${t}`, e)
157
+ }, B = s({
156
158
  prefix: "/v2/notification",
157
159
  env: "APP_LOGS_NOTIFICATION_API"
158
160
  }), lt = {
159
- getNotifications: (t) => F.get("/", { params: t }),
160
- readNotification: (t) => F.put(`/${t}`)
161
- }, N = s({
161
+ getNotifications: (t) => B.get("/", { params: t }),
162
+ readNotification: (t) => B.put(`/${t}`)
163
+ }, M = s({
162
164
  prefix: "/utility/v2/notification"
163
- }), pt = {
164
- getNotifications: (t) => N.get("/", { params: t }),
165
- readNotification: (t) => N.put(`/${t}`)
166
- }, H = s({
165
+ }), dt = {
166
+ getNotifications: (t) => M.get("/", { params: t }),
167
+ readNotification: (t) => M.put(`/${t}`)
168
+ }, z = s({
167
169
  prefix: "/v2/session-log",
168
170
  env: "APP_LOGS_NOTIFICATION_API"
169
- }), ct = {
170
- postLogout: () => H.post("/logout")
171
+ }), $t = {
172
+ postLogout: () => z.post("/logout")
171
173
  }, o = s({
172
174
  prefix: "/tag/v2"
173
- }), dt = {
175
+ }), At = {
174
176
  getScanQR: (t) => o.get("/qr", { params: { tag: t } }),
175
177
  getScanRFID: (t) => o.get("/rfid", { params: { tag: t } }),
176
178
  getRFIDQRTAG: (t) => o.get("/rfid-qr/scan", { params: t }),
@@ -206,32 +208,34 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
206
208
  },
207
209
  postScanLog: (t) => o.post("/scan-log", t),
208
210
  putReportTAG: (t, e) => o.put(`/tag-transaction/report/${t}`, e)
209
- }, K = s({
211
+ }, E = s({
210
212
  prefix: "/tracking/v2/tracking"
211
- }), $t = {
213
+ }), vt = {
212
214
  putFoundAsset: (t, e, r) => {
213
- const n = {
215
+ const a = {
214
216
  tag: t,
215
217
  group: e,
216
218
  serialNumber: r,
217
219
  type: "Global"
218
220
  };
219
- return K.put("/found", { params: n });
220
- }
221
- }, a = s({
221
+ return E.put("/found", { params: a });
222
+ },
223
+ putReportPermanentlyMissing: (t, e) => E.put(`/report-permanently-missing/${t}`, e),
224
+ getTrackingDetail: (t) => E.get(`/${t}`)
225
+ }, i = s({
222
226
  prefix: "/settings-user-role/v2"
223
- }), At = {
224
- reLogin: (t) => a.post("/auth/login", t),
225
- changePassword: (t) => a.put("/users/change-password", t),
227
+ }), mt = {
228
+ reLogin: (t) => i.post("/auth/login", t),
229
+ changePassword: (t) => i.put("/users/change-password", t),
226
230
  /**
227
231
  * Retrieves the user list as dropdown options.
228
232
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
229
233
  */
230
- getUserDropdown: (t) => a.get("/users/dropdown", { params: t }),
231
- getUserOptions: (t) => a.get("/users/options", { params: t }),
232
- getUserList: (t) => a.get("/users", { params: t }),
233
- getUserDetail: (t) => a.get(`/users/${t}`),
234
- putSetActiveBulk: (t) => a.put("/users/set-active-bulk", t),
234
+ getUserDropdown: (t) => i.get("/users/dropdown", { params: t }),
235
+ getUserOptions: (t) => i.get("/users/options", { params: t }),
236
+ getUserList: (t) => i.get("/users", { params: t }),
237
+ getUserDetail: (t) => i.get(`/users/${t}`),
238
+ putSetActiveBulk: (t) => i.put("/users/set-active-bulk", t),
235
239
  // User Detail
236
240
  /**
237
241
  *
@@ -240,40 +244,40 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
240
244
  * @param params {Record<string, unknown>}
241
245
  */
242
246
  getUserDetailSystemRoles: (t, e, r) => {
243
- const n = r ? `/${r}` : "";
244
- return a.get(`/user-detail/${t}/system-roles${n}`, {
247
+ const a = r ? `/${r}` : "";
248
+ return i.get(`/user-detail/${t}/system-roles${a}`, {
245
249
  params: e
246
250
  });
247
251
  },
248
- getUserDetailTransactionRoleList: (t, e) => a.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
249
- postUserDetailAddTransactionRole: (t, e) => a.post(`/user-detail/${t}/add-transaction-role`, e),
250
- deleteUserDetailTransactionRole: (t, e) => a.delete(`/user-detail/${t}/delete-transaction-role`, {
252
+ getUserDetailTransactionRoleList: (t, e) => i.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
253
+ postUserDetailAddTransactionRole: (t, e) => i.post(`/user-detail/${t}/add-transaction-role`, e),
254
+ deleteUserDetailTransactionRole: (t, e) => i.delete(`/user-detail/${t}/delete-transaction-role`, {
251
255
  data: e
252
256
  }),
253
- putUserDetailEditTransactionRole: (t, e) => a.put(`/user-detail/${t}/edit-transaction-role`, e),
254
- putAssignGroup: (t, e, r) => a.put(`/user-detail/${r}/system-roles/${e}`, t),
255
- getUserDetailUserLogBorrowingList: (t, e) => a.get(`/users-log/${t}/borrowing`, { params: e }),
256
- getUserDetailUserLogAssignmentList: (t, e) => a.get(`/users-log/${t}/assignment`, { params: e }),
257
- getUserDetailUserLogBorrowingOption: (t, e) => a.get(`/users-log/${t}/borrowing/option`, { params: e }),
258
- getUserDetailUserLogAssignmentOption: (t, e) => a.get(`/users-log/${t}/assignment/option`, { params: e }),
259
- getUserDetailTransactionAdminLogList: (t, e) => a.get(`/users-log/${t}/transaction-log`, { params: e }),
260
- getUserDetailTransactionAdminLogOption: (t, e) => a.get(`/users-log/${t}/transaction-log/option`, { params: e }),
261
- getUserDetailUserAssetBorrowedList: (t, e) => a.get(`/user-detail/${t}/assets/borrowed`, { params: e }),
262
- getUserDetailUserAssetAssignedList: (t, e) => a.get(`/user-detail/${t}/assets/assigned`, { params: e }),
263
- getUserDetailUserAssetBorrowedOption: (t, e) => a.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
264
- getUserDetailUserAssetAssignedOption: (t, e) => a.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
265
- }, i = s({
257
+ putUserDetailEditTransactionRole: (t, e) => i.put(`/user-detail/${t}/edit-transaction-role`, e),
258
+ putAssignGroup: (t, e, r) => i.put(`/user-detail/${r}/system-roles/${e}`, t),
259
+ getUserDetailUserLogBorrowingList: (t, e) => i.get(`/users-log/${t}/borrowing`, { params: e }),
260
+ getUserDetailUserLogAssignmentList: (t, e) => i.get(`/users-log/${t}/assignment`, { params: e }),
261
+ getUserDetailUserLogBorrowingOption: (t, e) => i.get(`/users-log/${t}/borrowing/option`, { params: e }),
262
+ getUserDetailUserLogAssignmentOption: (t, e) => i.get(`/users-log/${t}/assignment/option`, { params: e }),
263
+ getUserDetailTransactionAdminLogList: (t, e) => i.get(`/users-log/${t}/transaction-log`, { params: e }),
264
+ getUserDetailTransactionAdminLogOption: (t, e) => i.get(`/users-log/${t}/transaction-log/option`, { params: e }),
265
+ getUserDetailUserAssetBorrowedList: (t, e) => i.get(`/user-detail/${t}/assets/borrowed`, { params: e }),
266
+ getUserDetailUserAssetAssignedList: (t, e) => i.get(`/user-detail/${t}/assets/assigned`, { params: e }),
267
+ getUserDetailUserAssetBorrowedOption: (t, e) => i.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
268
+ getUserDetailUserAssetAssignedOption: (t, e) => i.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
269
+ }, u = s({
266
270
  prefix: "/settings-user-role-go/v2"
267
- }), vt = {
271
+ }), yt = {
268
272
  /**
269
273
  * Retrieves the user list as dropdown options.
270
274
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
271
275
  */
272
- getUserDropdown: (t) => i.get("/users/dropdown", { params: t }),
273
- getUserOptions: (t) => i.get("/users/options", { params: t }),
274
- getUserList: (t) => i.get("/users", { params: t }),
275
- getUserDetail: (t) => i.get(`/users/${t}`),
276
- putSetActiveBulk: (t) => i.put("/users/set-active-bulk", t),
276
+ getUserDropdown: (t) => u.get("/users/dropdown", { params: t }),
277
+ getUserOptions: (t) => u.get("/users/options", { params: t }),
278
+ getUserList: (t) => u.get("/users", { params: t }),
279
+ getUserDetail: (t) => u.get(`/users/${t}`),
280
+ putSetActiveBulk: (t) => u.put("/users/set-active-bulk", t),
277
281
  // User Detail
278
282
  /**
279
283
  *
@@ -282,80 +286,80 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
282
286
  * @param params {Record<string, unknown>}
283
287
  */
284
288
  getUserDetailSystemRoles: (t, e, r) => {
285
- const n = r ? `/${r}/groups` : "";
286
- return i.get(`/users/${t}/system-roles${n}`, {
289
+ const a = r ? `/${r}/groups` : "";
290
+ return u.get(`/users/${t}/system-roles${a}`, {
287
291
  params: e
288
292
  });
289
293
  },
290
- getUserDetailTransactionRoleList: (t, e) => i.get(`/users/${t}/transaction-roles`, { params: e }),
294
+ getUserDetailTransactionRoleList: (t, e) => u.get(`/users/${t}/transaction-roles`, { params: e }),
291
295
  // TODO
292
- postUserDetailAddTransactionRole: (t, e) => i.post(`/users/${t}/add-transaction-role`, e),
296
+ postUserDetailAddTransactionRole: (t, e) => u.post(`/users/${t}/add-transaction-role`, e),
293
297
  // TODO
294
- deleteUserDetailTransactionRole: (t, e) => i.delete(`/users/${t}/delete-transaction-role`, {
298
+ deleteUserDetailTransactionRole: (t, e) => u.delete(`/users/${t}/delete-transaction-role`, {
295
299
  data: e
296
300
  }),
297
301
  // TODO
298
- putUserDetailEditTransactionRole: (t, e) => i.put(`/users/${t}/edit-transaction-role`, e),
299
- putAssignGroup: (t, e, r) => i.put(`/users/${r}/system-roles/${e}/groups`, t),
300
- putRoleSetActive: (t, e) => i.put(`/users/${e}/system-roles/set-active-bulk`, t),
301
- getUserDetailTransactionAdminLogList: (t, e) => i.get(`/users/${t}/transaction-log`, { params: e }),
302
- getUserDetailTransactionAdminLogOption: (t, e) => i.get(`/users/${t}/transaction-log/option`, { params: e }),
303
- getUserDetailUserAssetBorrowedList: (t, e) => i.get(`/users/${t}/borrowed-asset`, { params: e }),
304
- getUserDetailUserAssetAssignedList: (t, e) => i.get(`/users/${t}/assigned-asset`, { params: e }),
305
- getUserDetailUserAssetBorrowedOption: (t, e) => i.get(`/users/${t}/borrowed-asset/option`, { params: e }),
306
- getUserDetailUserAssetAssignedOption: (t, e) => i.get(`/users/${t}/assigned-asset/option`, { params: e })
307
- }, A = s({
302
+ putUserDetailEditTransactionRole: (t, e) => u.put(`/users/${t}/edit-transaction-role`, e),
303
+ putAssignGroup: (t, e, r) => u.put(`/users/${r}/system-roles/${e}/groups`, t),
304
+ putRoleSetActive: (t, e) => u.put(`/users/${e}/system-roles/set-active-bulk`, t),
305
+ getUserDetailTransactionAdminLogList: (t, e) => u.get(`/users/${t}/transaction-log`, { params: e }),
306
+ getUserDetailTransactionAdminLogOption: (t, e) => u.get(`/users/${t}/transaction-log/option`, { params: e }),
307
+ getUserDetailUserAssetBorrowedList: (t, e) => u.get(`/users/${t}/borrowed-asset`, { params: e }),
308
+ getUserDetailUserAssetAssignedList: (t, e) => u.get(`/users/${t}/assigned-asset`, { params: e }),
309
+ getUserDetailUserAssetBorrowedOption: (t, e) => u.get(`/users/${t}/borrowed-asset/option`, { params: e }),
310
+ getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/users/${t}/assigned-asset/option`, { params: e })
311
+ }, v = s({
308
312
  prefix: "/settings-user-role/v2/sub-users"
309
313
  }), St = {
310
314
  // Sub User
311
- getSubUserList: (t, e) => A.get(`/${t}`, { params: e }),
312
- getSubUserOptions: (t, e) => A.get(`/${t}/option`, { params: e }),
315
+ getSubUserList: (t, e) => v.get(`/${t}`, { params: e }),
316
+ getSubUserOptions: (t, e) => v.get(`/${t}/option`, { params: e }),
313
317
  postCreateSubUser: (t, e) => {
314
318
  const r = { "Content-Type": "multipart/form-data" };
315
- return A.post(`/${t}`, e, { headers: r });
319
+ return v.post(`/${t}`, e, { headers: r });
316
320
  },
317
- putSubUserSetActiveBulk: (t) => A.put("/set-active-bulk", t),
318
- deleteSubUser: (t) => A.delete("/bulk", { data: { subUserIds: t } }),
321
+ putSubUserSetActiveBulk: (t) => v.put("/set-active-bulk", t),
322
+ deleteSubUser: (t) => v.delete("/bulk", { data: { subUserIds: t } }),
319
323
  putEditSubUser: (t, e) => {
320
324
  const r = { "Content-Type": "multipart/form-data" };
321
- return A.put(`/${t}`, e, { headers: r });
325
+ return v.put(`/${t}`, e, { headers: r });
322
326
  },
323
- getBorrowedAsset: (t, e) => A.get(`/${t}/borrowed-asset`, { params: e }),
324
- getBorrowedAssetOptions: (t, e) => A.get(`/${t}/borrowed-asset/options`, { params: e })
325
- }, c = s({
327
+ getBorrowedAsset: (t, e) => v.get(`/${t}/borrowed-asset`, { params: e }),
328
+ getBorrowedAssetOptions: (t, e) => v.get(`/${t}/borrowed-asset/options`, { params: e })
329
+ }, d = s({
326
330
  prefix: "/settings-user-role-go/v2/users"
327
- }), mt = {
331
+ }), Pt = {
328
332
  // Sub User
329
- getSubUserList: (t, e) => c.get(`/${t}/sub-users`, { params: e }),
330
- getSubUserOptions: (t, e) => c.get(`/${t}/sub-users/option`, { params: e }),
333
+ getSubUserList: (t, e) => d.get(`/${t}/sub-users`, { params: e }),
334
+ getSubUserOptions: (t, e) => d.get(`/${t}/sub-users/option`, { params: e }),
331
335
  postCreateSubUser: (t, e) => {
332
336
  const r = { "Content-Type": "multipart/form-data" };
333
- return c.post(`/${t}/sub-users`, e, { headers: r });
337
+ return d.post(`/${t}/sub-users`, e, { headers: r });
334
338
  },
335
- putSubUserSetActiveBulk: (t, e) => c.put(`/${t}/sub-users/set-active-bulk`, e),
336
- deleteSubUser: (t, e) => c.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
339
+ putSubUserSetActiveBulk: (t, e) => d.put(`/${t}/sub-users/set-active-bulk`, e),
340
+ deleteSubUser: (t, e) => d.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
337
341
  putEditSubUser: (t, e, r) => {
338
- const n = { "Content-Type": "multipart/form-data" };
339
- return c.put(`/${t}/sub-users/${e}`, r, {
340
- headers: n
342
+ const a = { "Content-Type": "multipart/form-data" };
343
+ return d.put(`/${t}/sub-users/${e}`, r, {
344
+ headers: a
341
345
  });
342
346
  },
343
- getBorrowedAsset: (t, e, r) => c.get(`/${t}/sub-users/${e}/borrowed-asset`, {
347
+ getBorrowedAsset: (t, e, r) => d.get(`/${t}/sub-users/${e}/borrowed-asset`, {
344
348
  params: r
345
349
  }),
346
- getBorrowedAssetOptions: (t, e, r) => c.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
350
+ getBorrowedAssetOptions: (t, e, r) => d.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
347
351
  params: r
348
352
  }),
349
- getAssignedAsset: (t, e, r) => c.get(`/${t}/sub-users/${e}/assigned-asset`, {
353
+ getAssignedAsset: (t, e, r) => d.get(`/${t}/sub-users/${e}/assigned-asset`, {
350
354
  params: r
351
355
  }),
352
- getAssignedAssetOptions: (t, e, r) => c.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
356
+ getAssignedAssetOptions: (t, e, r) => d.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
353
357
  params: r
354
358
  })
355
359
  }, G = s({
356
360
  env: "APP_ADMIN_API",
357
361
  prefix: "/settings-attribute/languages"
358
- }), yt = {
362
+ }), Ut = {
359
363
  /**
360
364
  * Fetch all translation messages for a specific locale.
361
365
  * @param locale The locale code (e.g., 'en', 'id').
@@ -398,69 +402,69 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
398
402
  });
399
403
  return r.data.translations[t];
400
404
  }
401
- }, k = s({
405
+ }, V = s({
402
406
  prefix: "/dashboard/v2/dashboard"
403
- }), Pt = {
404
- getLatestTask: (t) => k.get("/latest-task", { params: t }),
405
- getSummary: (t) => k.get("/summary", { params: t })
406
- }, h = s({
407
- prefix: "/alias-code/api/alias-code"
408
407
  }), It = {
409
- getAliasCode: () => h.get("/"),
410
- postAliasCode: (t) => h.post("/", t),
411
- getAliasCodeList: (t) => h.get(`/${t.object}/code-list`, { params: t })
412
- }, x = s({
408
+ getLatestTask: (t) => V.get("/latest-task", { params: t }),
409
+ getSummary: (t) => V.get("/summary", { params: t })
410
+ }, q = s({
411
+ prefix: "/alias-code/api/alias-code"
412
+ }), ft = {
413
+ getAliasCode: () => q.get("/"),
414
+ postAliasCode: (t) => q.post("/", t),
415
+ getAliasCodeList: (t) => q.get(`/${t.object}/code-list`, { params: t })
416
+ }, w = s({
413
417
  prefix: "/settings-attribute-go/v2/alias-code"
414
- }), Ut = {
415
- getAliasCode: () => x.get("/"),
416
- postAliasCode: (t) => x.post("/", t),
417
- getAliasCodeList: (t) => x.get(`/${t.object}/code-list`, { params: t })
418
- }, B = s({
418
+ }), Ct = {
419
+ getAliasCode: () => w.get("/"),
420
+ postAliasCode: (t) => w.post("/", t),
421
+ getAliasCodeList: (t) => w.get(`/${t.object}/code-list`, { params: t })
422
+ }, j = s({
419
423
  prefix: "/settings-attribute/v2/general-settings"
420
- }), ft = {
421
- getGeneralSettings: () => B.get("/"),
422
- putUpdateGeneralSettings: (t) => B.put("/", t)
423
- }, M = s({
424
+ }), Lt = {
425
+ getGeneralSettings: () => j.get("/"),
426
+ putUpdateGeneralSettings: (t) => j.put("/", t)
427
+ }, Q = s({
424
428
  prefix: "/settings-attribute-go/v2/general-settings"
425
- }), Ct = {
426
- getGeneralSettings: () => M.get("/"),
427
- putUpdateGeneralSettings: (t) => M.put("/", t)
428
- }, I = s({
429
+ }), bt = {
430
+ getGeneralSettings: () => Q.get("/"),
431
+ putUpdateGeneralSettings: (t) => Q.put("/", t)
432
+ }, f = s({
429
433
  prefix: "/settings-attribute/v2/custom-field"
430
- }), Lt = {
431
- getCustomField: async (t) => I.get("/", { params: t }),
432
- getOptions: async (t) => I.get("/options", { params: t }),
433
- postCreateCustomField: async (t, e) => I.post("/", e, { params: t }),
434
- putEditCustomField: async (t, e, r) => I.put(`/${r}`, e, { params: t }),
435
- putChangeStatus: async (t, e) => I.put("/bulk", e, { params: t }),
436
- deleteCustomField: async (t) => I.delete("/bulk", { data: t })
437
- }, U = s({
434
+ }), Tt = {
435
+ getCustomField: async (t) => f.get("/", { params: t }),
436
+ getOptions: async (t) => f.get("/options", { params: t }),
437
+ postCreateCustomField: async (t, e) => f.post("/", e, { params: t }),
438
+ putEditCustomField: async (t, e, r) => f.put(`/${r}`, e, { params: t }),
439
+ putChangeStatus: async (t, e) => f.put("/bulk", e, { params: t }),
440
+ deleteCustomField: async (t) => f.delete("/bulk", { data: t })
441
+ }, C = s({
438
442
  prefix: "/settings-attribute-go/v2/custom-field"
439
- }), bt = {
440
- getCustomField: async (t) => U.get("/", { params: t }),
441
- getOptions: async (t) => U.get("/options", { params: t }),
442
- postCreateCustomField: async (t, e) => U.post("/", e, { params: t }),
443
- putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
444
- putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
445
- deleteCustomField: async (t) => U.delete("/bulk", { params: t })
446
- }, w = ({ headers: t = {}, params: e = {} } = {}) => {
447
- const r = b("APP_COUNTRY_STATE_API"), n = b("APP_COUNTRY_STATE_API_KEY");
448
- return q.create({
443
+ }), Ot = {
444
+ getCustomField: async (t) => C.get("/", { params: t }),
445
+ getOptions: async (t) => C.get("/options", { params: t }),
446
+ postCreateCustomField: async (t, e) => C.post("/", e, { params: t }),
447
+ putEditCustomField: async (t, e, r) => C.put(`/${r}`, e, { params: t }),
448
+ putChangeStatus: async (t, e) => C.put("/bulk", e, { params: t }),
449
+ deleteCustomField: async (t) => C.delete("/bulk", { params: t })
450
+ }, F = ({ headers: t = {}, params: e = {} } = {}) => {
451
+ const r = O("APP_COUNTRY_STATE_API"), a = O("APP_COUNTRY_STATE_API_KEY");
452
+ return Y.create({
449
453
  baseURL: `${r}/v1`,
450
454
  headers: {
451
455
  "Content-type": "application/json",
452
- "X-CSCAPI-KEY": n,
456
+ "X-CSCAPI-KEY": a,
453
457
  ...t
454
458
  },
455
459
  params: e
456
460
  });
457
- }, Ot = {
458
- getCountry: () => w().get("/countries"),
459
- getState: (t) => w().get(`/countries/${t}/states`),
460
- getCity: (t, e) => w().get(`/countries/${t}/states/${e}/cities`)
461
+ }, Dt = {
462
+ getCountry: () => F().get("/countries"),
463
+ getState: (t) => F().get(`/countries/${t}/states`),
464
+ getCity: (t, e) => F().get(`/countries/${t}/states/${e}/cities`)
461
465
  }, l = s({
462
466
  prefix: "/routine/v2"
463
- }), Tt = {
467
+ }), Rt = {
464
468
  getList: (t) => l.get("/service-center", { params: t }),
465
469
  postList: (t) => l.post("/service-center", t),
466
470
  putList: (t, e) => l.put(`/service-center/${t}`, e),
@@ -473,11 +477,11 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
473
477
  getActivityOptions: (t) => l.get("/service-activities/options", { params: t }),
474
478
  getActivityDetail: (t) => l.get(`/service-activities/${t}`),
475
479
  getActivityLog: (t) => l.get(`/service-activities/${t}/activity-log`)
476
- }, W = s({
480
+ }, Z = s({
477
481
  prefix: "/settings-attribute/v2/brands"
478
482
  }), _t = {
479
- getDropdown: (t) => W.get("/dropdown", { params: t })
480
- }, f = s({
483
+ getDropdown: (t) => Z.get("/dropdown", { params: t })
484
+ }, L = s({
481
485
  prefix: "/file-manager/v2"
482
486
  }), Gt = {
483
487
  /**
@@ -485,7 +489,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
485
489
  *
486
490
  * @returns {Promise<AxiosResponse>} The Axios Response.
487
491
  */
488
- getStorageInformation: () => f.get("/files/storage"),
492
+ getStorageInformation: () => L.get("/files/storage"),
489
493
  /**
490
494
  * Get file manager data.
491
495
  *
@@ -493,7 +497,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
493
497
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
494
498
  * @returns {Promise<AxiosResponse>} The Axios Response.
495
499
  */
496
- getFileManager: (t, e) => f.get(`/${t}`, { params: e }),
500
+ getFileManager: (t, e) => L.get(`/${t}`, { params: e }),
497
501
  /**
498
502
  * Get file manager options.
499
503
  *
@@ -501,7 +505,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
501
505
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
502
506
  * @returns {Promise<AxiosResponse>} The Axios Response.
503
507
  */
504
- getFileManagerOption: (t, e) => f.get(`/${t}/options`, { params: e }),
508
+ getFileManagerOption: (t, e) => L.get(`/${t}/options`, { params: e }),
505
509
  /**
506
510
  * Recover files.
507
511
  *
@@ -509,7 +513,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
509
513
  * @param {object} body - The body of the request.
510
514
  * @returns {Promise<AxiosResponse>} The Axios Response.
511
515
  */
512
- recoverFiles: (t, e) => f.put(`/${t}/recover`, e),
516
+ recoverFiles: (t, e) => L.put(`/${t}/recover`, e),
513
517
  /**
514
518
  * Delete files.
515
519
  *
@@ -517,7 +521,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
517
521
  * @param {DeleteFileManagerDto} params - The params of the request.
518
522
  * @returns {Promise<AxiosResponse>} The Axios Response.
519
523
  */
520
- deleteFiles: (t, e) => f.delete(`/${t}`, { params: e }),
524
+ deleteFiles: (t, e) => L.delete(`/${t}`, { params: e }),
521
525
  /**
522
526
  * Delete files permanently.
523
527
  *
@@ -525,16 +529,16 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
525
529
  * @param {object} body - The body of the request.
526
530
  * @returns {Promise<AxiosResponse>} The Axios Response.
527
531
  */
528
- deletePermanently: (t, e) => f.delete(`/${t}/delete-permanent`, { params: e })
529
- }, C = s({
532
+ deletePermanently: (t, e) => L.delete(`/${t}/delete-permanent`, { params: e })
533
+ }, b = s({
530
534
  prefix: "/utility/v2"
531
- }), Dt = {
535
+ }), ht = {
532
536
  /**
533
537
  * Get storage information.
534
538
  *
535
539
  * @returns {Promise<AxiosResponse>} The Axios Response.
536
540
  */
537
- getStorageInformation: () => C.get("/files/storage"),
541
+ getStorageInformation: () => b.get("/files/storage"),
538
542
  /**
539
543
  * Get file manager data.
540
544
  *
@@ -542,7 +546,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
542
546
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
543
547
  * @returns {Promise<AxiosResponse>} The Axios Response.
544
548
  */
545
- getFileManager: (t, e) => C.get(`/${t}`, { params: e }),
549
+ getFileManager: (t, e) => b.get(`/${t}`, { params: e }),
546
550
  /**
547
551
  * Get file manager options.
548
552
  *
@@ -550,7 +554,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
550
554
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
551
555
  * @returns {Promise<AxiosResponse>} The Axios Response.
552
556
  */
553
- getFileManagerOption: (t, e) => C.get(`/${t}/options`, { params: e }),
557
+ getFileManagerOption: (t, e) => b.get(`/${t}/options`, { params: e }),
554
558
  /**
555
559
  * Recover files.
556
560
  *
@@ -558,7 +562,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
558
562
  * @param {object} body - The body of the request.
559
563
  * @returns {Promise<AxiosResponse>} The Axios Response.
560
564
  */
561
- recoverFiles: (t, e) => C.put(`/${t}/recover`, e),
565
+ recoverFiles: (t, e) => b.put(`/${t}/recover`, e),
562
566
  /**
563
567
  * Delete files.
564
568
  *
@@ -566,7 +570,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
566
570
  * @param {DeleteFileManagerDto} params - The params of the request.
567
571
  * @returns {Promise<AxiosResponse>} The Axios Response.
568
572
  */
569
- deleteFiles: (t, e) => C.delete(`/${t}`, { params: e }),
573
+ deleteFiles: (t, e) => b.delete(`/${t}`, { params: e }),
570
574
  /**
571
575
  * Delete files permanently.
572
576
  *
@@ -574,28 +578,28 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
574
578
  * @param {object} body - The body of the request.
575
579
  * @returns {Promise<AxiosResponse>} The Axios Response.
576
580
  */
577
- deletePermanently: (t, e) => C.delete(`/${t}/delete-permanent`, { params: e })
578
- }, v = s({
581
+ deletePermanently: (t, e) => b.delete(`/${t}/delete-permanent`, { params: e })
582
+ }, m = s({
579
583
  prefix: "/iot/v2/reader"
580
- }), Rt = {
581
- getData: (t) => v.get("/", { params: t }),
582
- getDataOptions: (t) => v.get("/options", { params: t }),
583
- getActivityLogData: (t) => v.get("/activity-log", { params: t }),
584
- getActivityLogOptions: (t) => v.get("/activity-log/options", { params: t }),
585
- getDataById: (t) => v.get(`/${t}`),
586
- getChangeLog: (t) => v.get(`/${t.id}/change-log`, { params: t }),
587
- getChangeLogOptions: (t) => v.get(`/${t.id}/change-log/options`, { params: t }),
588
- putData: (t, e) => v.put(`/${t}`, e)
589
- }, u = s({
584
+ }), xt = {
585
+ getData: (t) => m.get("/", { params: t }),
586
+ getDataOptions: (t) => m.get("/options", { params: t }),
587
+ getActivityLogData: (t) => m.get("/activity-log", { params: t }),
588
+ getActivityLogOptions: (t) => m.get("/activity-log/options", { params: t }),
589
+ getDataById: (t) => m.get(`/${t}`),
590
+ getChangeLog: (t) => m.get(`/${t.id}/change-log`, { params: t }),
591
+ getChangeLogOptions: (t) => m.get(`/${t.id}/change-log/options`, { params: t }),
592
+ putData: (t, e) => m.put(`/${t}`, e)
593
+ }, g = s({
590
594
  prefix: "/settings-user-role/v2"
591
- }), ht = {
595
+ }), Et = {
592
596
  /**
593
597
  * Retrieves the transaction role for the given group and transaction name.
594
598
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
595
599
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
596
600
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
597
601
  */
598
- getTransactionRole: (t, e) => u.get(`/transaction-roles/${t}/${e}`),
602
+ getTransactionRole: (t, e) => g.get(`/transaction-roles/${t}/${e}`),
599
603
  /**
600
604
  * Updates the users assigned to the given transaction role.
601
605
  * @param {string} groupId - The ID of the group the transaction role belongs to.
@@ -603,7 +607,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
603
607
  * @param {UpdateUser} body - The request body containing the updated user information.
604
608
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
605
609
  */
606
- putUpdateUsers: (t, e, r) => u.put(
610
+ putUpdateUsers: (t, e, r) => g.put(
607
611
  `/transaction-roles/${t}/${e}/update-user`,
608
612
  r
609
613
  ),
@@ -614,7 +618,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
614
618
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
615
619
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
616
620
  */
617
- putUpdateLevel: (t, e, r) => u.put(
621
+ putUpdateLevel: (t, e, r) => g.put(
618
622
  `/transaction-roles/${t}/${e}/update-approval-level`,
619
623
  r
620
624
  ),
@@ -625,63 +629,63 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
625
629
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
626
630
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
627
631
  */
628
- putUpdateGroupManage: (t, e, r) => u.put(
632
+ putUpdateGroupManage: (t, e, r) => g.put(
629
633
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
630
634
  r
631
635
  ),
632
- getUserAssignedSystemRole: (t) => u.get(`/system-roles/user/${t}`),
633
- getAssignedUserAmounts: () => u.get("/system-roles/amounts"),
636
+ getUserAssignedSystemRole: (t) => g.get(`/system-roles/user/${t}`),
637
+ getAssignedUserAmounts: () => g.get("/system-roles/amounts"),
634
638
  getPermissionUser: (t, e) => {
635
639
  if (["totalControl", "readOnly"].includes(t ?? "")) {
636
640
  const r = t === "totalControl" ? "total-control" : "read-only";
637
- return u.get(`/system-roles/total-control-read-only/${r}`, {
641
+ return g.get(`/system-roles/total-control-read-only/${r}`, {
638
642
  params: e
639
643
  });
640
644
  }
641
- return u.get(`/system-roles/permission/${t}`, { params: e });
645
+ return g.get(`/system-roles/permission/${t}`, { params: e });
642
646
  },
643
647
  getPermissionUserOptions: (t, e) => {
644
648
  if (["totalControl", "readOnly"].includes(t ?? "")) {
645
649
  const r = t === "totalControl" ? "total-control" : "read-only";
646
- return u.get(`/system-roles/total-control-read-only/${r}/options`, {
650
+ return g.get(`/system-roles/total-control-read-only/${r}/options`, {
647
651
  params: e
648
652
  });
649
653
  }
650
- return u.get(`/system-roles/permission/${t}/options`, {
654
+ return g.get(`/system-roles/permission/${t}/options`, {
651
655
  params: e
652
656
  });
653
657
  },
654
- getUserGroups: (t, e) => u.get(`/system-roles/permission/${e}/groups`, {
658
+ getUserGroups: (t, e) => g.get(`/system-roles/permission/${e}/groups`, {
655
659
  params: t
656
660
  }),
657
661
  postAssignUser: (t, e) => {
658
662
  if (["totalControl", "readOnly"].includes(e ?? "")) {
659
663
  const r = e === "totalControl" ? "total-control" : "read-only";
660
- return u.post(`/system-roles/total-control-read-only/${r}`, t);
664
+ return g.post(`/system-roles/total-control-read-only/${r}`, t);
661
665
  }
662
- return u.post(`/system-roles/permission/${e}`, t);
666
+ return g.post(`/system-roles/permission/${e}`, t);
663
667
  },
664
- putEditUser: (t, e) => u.put(`/system-roles/${e}`, t),
665
- putRoleSetActive: (t) => u.put("/system-roles/set-active", t),
668
+ putEditUser: (t, e) => g.put(`/system-roles/${e}`, t),
669
+ putRoleSetActive: (t) => g.put("/system-roles/set-active", t),
666
670
  deleteRemoveUser: (t, e) => {
667
671
  if (["totalControl", "readOnly"].includes(e ?? "")) {
668
672
  const r = e === "totalControl" ? "total-control" : "read-only";
669
- return u.delete(`/system-roles/total-control-read-only/${r}`, {
673
+ return g.delete(`/system-roles/total-control-read-only/${r}`, {
670
674
  data: t
671
675
  });
672
676
  }
673
- return u.delete("/system-roles", { data: t });
677
+ return g.delete("/system-roles", { data: t });
674
678
  }
675
- }, g = s({
679
+ }, p = s({
676
680
  prefix: "/settings-user-role-go/v2"
677
- }), xt = {
681
+ }), qt = {
678
682
  /**
679
683
  * Retrieves the transaction role for the given group and transaction name.
680
684
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
681
685
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
682
686
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
683
687
  */
684
- getTransactionRole: (t, e) => g.get(`/transaction-roles/${t}/${e}`),
688
+ getTransactionRole: (t, e) => p.get(`/transaction-roles/${t}/${e}`),
685
689
  /**
686
690
  * Updates the users assigned to the given transaction role.
687
691
  * @param {string} groupId - The ID of the group the transaction role belongs to.
@@ -689,7 +693,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
689
693
  * @param {UpdateUser} body - The request body containing the updated user information.
690
694
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
691
695
  */
692
- putUpdateUsers: (t, e, r) => g.put(
696
+ putUpdateUsers: (t, e, r) => p.put(
693
697
  `/transaction-roles/${t}/${e}/update-user`,
694
698
  r
695
699
  ),
@@ -700,7 +704,7 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
700
704
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
701
705
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
702
706
  */
703
- putUpdateLevel: (t, e, r) => g.put(
707
+ putUpdateLevel: (t, e, r) => p.put(
704
708
  `/transaction-roles/${t}/${e}/update-approval-level`,
705
709
  r
706
710
  ),
@@ -711,49 +715,49 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
711
715
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
712
716
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
713
717
  */
714
- putUpdateGroupManage: (t, e, r) => g.put(
718
+ putUpdateGroupManage: (t, e, r) => p.put(
715
719
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
716
720
  r
717
721
  ),
718
- getUserAssignedSystemRole: (t) => g.get(`/system-roles/user/${t}`),
719
- getAssignedUserAmounts: () => g.get("/system-roles/amounts"),
722
+ getUserAssignedSystemRole: (t) => p.get(`/system-roles/user/${t}`),
723
+ getAssignedUserAmounts: () => p.get("/system-roles/amounts"),
720
724
  getPermissionUser: (t, e) => {
721
725
  if (["totalControl", "readOnly"].includes(t ?? "")) {
722
726
  const r = t === "totalControl" ? "total-control" : "read-only";
723
- return g.get(`/system-roles/total-control-read-only/${r}`, {
727
+ return p.get(`/system-roles/total-control-read-only/${r}`, {
724
728
  params: e
725
729
  });
726
730
  }
727
- return g.get(`/system-roles/permission/${t}`, { params: e });
731
+ return p.get(`/system-roles/permission/${t}`, { params: e });
728
732
  },
729
733
  getPermissionUserOptions: (t, e) => {
730
734
  if (["totalControl", "readOnly"].includes(t ?? "")) {
731
735
  const r = t === "totalControl" ? "total-control" : "read-only";
732
- return g.get(`/system-roles/total-control-read-only/${r}/options`, {
736
+ return p.get(`/system-roles/total-control-read-only/${r}/options`, {
733
737
  params: e
734
738
  });
735
739
  }
736
- return g.get(`/system-roles/permission/${t}/options`, {
740
+ return p.get(`/system-roles/permission/${t}/options`, {
737
741
  params: e
738
742
  });
739
743
  },
740
- getUserGroups: (t, e) => g.get(`/system-roles/permission/${e}/groups`, {
744
+ getUserGroups: (t, e) => p.get(`/system-roles/permission/${e}/groups`, {
741
745
  params: t
742
746
  }),
743
747
  postAssignUser: (t, e) => {
744
748
  if (["totalControl", "readOnly"].includes(e ?? "")) {
745
749
  const r = e === "totalControl" ? "total-control" : "read-only";
746
- return g.post(`/system-roles/total-control-read-only/${r}`, t);
750
+ return p.post(`/system-roles/total-control-read-only/${r}`, t);
747
751
  }
748
- return g.post(`/system-roles/permission/${e}`, t);
752
+ return p.post(`/system-roles/permission/${e}`, t);
749
753
  },
750
- putEditUser: (t, e) => g.put(`/system-roles/${e}`, t),
754
+ putEditUser: (t, e) => p.put(`/system-roles/${e}`, t),
751
755
  deleteRemoveUser: (t, e) => {
752
756
  if (["totalControl", "readOnly"].includes(e ?? "")) {
753
757
  const r = e === "totalControl" ? "total-control" : "read-only";
754
- return g.put(`/system-roles/total-control-read-only/${r}`, t);
758
+ return p.put(`/system-roles/total-control-read-only/${r}`, t);
755
759
  }
756
- return g.put("/system-roles", t);
760
+ return p.put("/system-roles", t);
757
761
  }
758
762
  }, _ = s({
759
763
  prefix: "/settings-attribute/v2/open-api"
@@ -764,107 +768,163 @@ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
764
768
  getToken: () => _.get(""),
765
769
  putRequestOpenAPI: () => _.put("/request"),
766
770
  putCancelRequestOpenAPI: () => _.put("/cancel-request")
767
- }, D = s({
771
+ }, h = s({
768
772
  prefix: "/settings-attribute-go/v2/open-api"
769
- }), Et = {
770
- putGenerateToken: () => D.put("/generate"),
773
+ }), Ft = {
774
+ putGenerateToken: () => h.put("/generate"),
771
775
  // This is if the dummy was not dummy
772
- getToken: () => D.get(""),
773
- putRequestOpenAPI: () => D.put("/request"),
774
- putCancelRequestOpenAPI: () => D.put("/cancel-request")
775
- }, m = s({
776
+ getToken: () => h.get(""),
777
+ putRequestOpenAPI: () => h.put("/request"),
778
+ putCancelRequestOpenAPI: () => h.put("/cancel-request")
779
+ }, S = s({
776
780
  prefix: "/import/v2"
777
- }), Ft = {
778
- getImport: (t, e) => m.get(`/${t}`, { params: e }),
781
+ }), kt = {
782
+ getImport: (t, e) => S.get(`/${t}`, { params: e }),
779
783
  postImportTemporary: (t, e) => {
780
784
  const r = { "Content-Type": "multipart/form-data" };
781
- return m.post(`/${t}/temporary`, e, { headers: r });
785
+ return S.post(`/${t}/temporary`, e, { headers: r });
782
786
  },
783
- deleteImportTemporary: (t, e) => m.delete(`/${t}/temporary`, { data: e }),
784
- postDuplicateImport: (t, e) => m.post(`/${t}/duplicate`, e),
785
- putEditImport: (t, e) => m.put(`/${t}`, e),
786
- postImport: (t, e, r) => m.post(t, r, { signal: e.signal }),
787
- putImportCancelProgress: (t) => m.put(`/${t}/cancel-progress`)
788
- }, y = s({
787
+ deleteImportTemporary: (t, e) => S.delete(`/${t}/temporary`, { data: e }),
788
+ postDuplicateImport: (t, e) => S.post(`/${t}/duplicate`, e),
789
+ putEditImport: (t, e) => S.put(`/${t}`, e),
790
+ postImport: (t, e, r) => S.post(t, r, { signal: e.signal }),
791
+ putImportCancelProgress: (t) => S.put(`/${t}/cancel-progress`)
792
+ }, P = s({
789
793
  prefix: "/import-go/v2"
790
794
  }), Nt = {
791
- getImport: (t, e) => y.get(`/${t}`, { params: e }),
795
+ getImport: (t, e) => P.get(`/${t}`, { params: e }),
792
796
  postImportTemporary: (t, e) => {
793
797
  const r = { "Content-Type": "multipart/form-data" };
794
- return y.post(`/${t}/temporary`, e, { headers: r });
798
+ return P.post(`/${t}/temporary`, e, { headers: r });
795
799
  },
796
- deleteImportTemporary: (t, e) => y.delete(`/${t}/temporary`, { params: e }),
797
- postDuplicateImport: (t, e) => y.post(`/${t}/duplicate`, e),
798
- putEditImport: (t, e) => y.put(`/${t}`, e),
799
- postImport: (t, e, r) => y.post(t, r, { signal: e.signal }),
800
- putImportCancelProgress: (t) => y.put(`/${t}/cancel-progress`)
801
- }, L = s({
800
+ deleteImportTemporary: (t, e) => P.delete(`/${t}/temporary`, { params: e }),
801
+ postDuplicateImport: (t, e) => P.post(`/${t}/duplicate`, e),
802
+ putEditImport: (t, e) => P.put(`/${t}`, e),
803
+ postImport: (t, e, r) => P.post(t, r, { signal: e.signal }),
804
+ putImportCancelProgress: (t) => P.put(`/${t}/cancel-progress`)
805
+ }, T = s({
802
806
  prefix: "/settings-attribute/v2/asset-name"
803
- }), kt = {
804
- getDropdown: (t) => L.get("/dropdown", { params: t }),
805
- getAssetNameDetail: (t) => L.get(`/${t}`),
806
- getAssetsByAssetName: (t, e) => L.get(`/${t}/list-asset`, { params: e }),
807
- getAssetNameList: (t) => L.get("/", { params: t }),
808
- getUnpairedAssetName: (t) => L.get("/unpaired", { params: t }),
809
- getOptions: (t) => L.get("/options", { params: t })
810
- }, R = s({
811
- prefix: "/license/v2"
812
807
  }), Bt = {
813
- getGroupQuota: (t) => R.get(`/${t}/allocation-quota`),
814
- getSubGroupQuota: (t) => R.get(`/${t}/subgroup-quota`),
815
- editSubGroupQuota: (t, e) => R.put(`/${t}/set-group-quota`, e),
816
- getTotalLicense: () => R.get("/total-license")
817
- }, z = s({
818
- prefix: "/repair/v2/damage"
808
+ getDropdown: (t) => T.get("/dropdown", { params: t }),
809
+ getAssetNameDetail: (t) => T.get(`/${t}`),
810
+ getAssetsByAssetName: (t, e) => T.get(`/${t}/list-asset`, { params: e }),
811
+ getAssetNameList: (t) => T.get("/", { params: t }),
812
+ getUnpairedAssetName: (t) => T.get("/unpaired", { params: t }),
813
+ getOptions: (t) => T.get("/options", { params: t })
814
+ }, n = s({
815
+ prefix: "/assignment/v2"
819
816
  }), Mt = {
817
+ getPreListData: (t) => n.get("/prelist", { params: t }),
818
+ getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
819
+ getRequestData: (t) => n.get("/prelist/request", { params: t }),
820
+ getDetailRequestData: (t, e) => n.get(`/transaction/${t}/request`, { params: e }),
821
+ getDetailRequestOption: (t, e) => n.get(`/transaction/${e}/request/options`, { params: t }),
822
+ getTransactionData: (t) => n.get("/transaction", { params: t }),
823
+ getTransactionOptions: (t) => n.get("/transaction/options", { params: t }),
824
+ getDetailTransactionData: (t) => n.get(`/transaction/${t}`),
825
+ getTransactionApprovals: (t) => n.get(`/approval/transaction/${t}/transaction`),
826
+ getDetailTransactionLog: (t) => n.get(`/transaction/request/${t}/transaction-log`),
827
+ getVerifyAsset: (t, e) => n.get(`/transaction/${e}/request/scan`, { params: t }),
828
+ putEditAssignedUser: (t, e) => n.put(`/transaction/${t}/user`, e),
829
+ putEditEmailConfirmation: (t, e) => n.put(`/transaction/${t}/update-email-or-assigned-user`, e),
830
+ postSendConfirmationEmail: (t) => n.post(`/transaction/${t}/send-confirmation-email`),
831
+ postTransaction: (t) => n.post("/transaction", t),
832
+ putTransaction: (t, e) => n.put(`/transaction/${t}/request`, e),
833
+ putCancelTransaction: (t) => n.put("/transaction/cancel", t),
834
+ putCancelAssignmentRequest: (t) => n.put("/transaction/request/cancel", t),
835
+ putVerifyRequest: (t, e) => n.put(`/transaction/${e}/verify-requests`, t),
836
+ putVerifyToken: (t) => n.put("/transaction/verify-token", t),
837
+ putHandoverConfirm: (t) => n.put("/transaction/handover-confirmation", t),
838
+ putAssignHandover: (t) => n.put(`/transaction/${t}/handover`),
839
+ deletePrelistData: (t) => n.delete("/prelist", { params: t }),
840
+ deleteRequestPrelistData: (t) => n.delete("/prelist/request", { data: t }),
841
+ getAssignedByAsset: (t) => n.get("/transaction/request/assigned/by-asset", { params: t }),
842
+ getAssignedByAssetOptions: (t) => n.get("/transaction/request/assigned/by-asset/options", {
843
+ params: t
844
+ }),
845
+ getAssignedByUser: (t) => n.get("/transaction/request/assigned/by-user", { params: t }),
846
+ getAssignedByUserOptions: (t) => n.get("/transaction/request/assigned/by-user/options", { params: t }),
847
+ postUnassignPrelistAsset: (t) => n.post("/prelist", t),
848
+ postUnassignPrelistUser: (t) => n.post("/prelist/unassign/by-user", t),
849
+ putUnassignRequest: (t) => n.put("/transaction/request/unassign", t),
850
+ putReportDone: (t, e) => n.put(`/transaction/${t}/confirm-report-done`, e),
851
+ getHistory: (t, e) => {
852
+ const r = t.split(" ").join("-").toLowerCase();
853
+ return n.get(`/transaction/history/${r}`, { params: e });
854
+ },
855
+ getHistoryOptions: (t) => n.get("/transaction/history/options", { params: t }),
856
+ getHistoryByTransactionOptions: (t) => n.get("/transaction/history/by-transaction/options", { params: t }),
857
+ putCancelReport: (t) => n.put("/transaction/request/cancel-report", t)
858
+ }, U = s({
859
+ prefix: "/assignment-go/v2"
860
+ }), Vt = {
861
+ getTransactionData: (t) => U.get("/transaction", { params: t }),
862
+ getTransactionOptions: (t) => U.get("/transaction/options", { params: t }),
863
+ getDetailTransactionLog: (t) => U.get(`/transaction/request/${t}/transaction-log`),
864
+ postTransaction: (t) => U.post("/transaction", t),
865
+ putTransaction: (t) => U.put("/transaction", t),
866
+ putUnassignTransaction: (t) => U.put("/transaction/unassign", t),
867
+ putCancelReport: (t) => U.put("/transaction/request/cancel-report", t)
868
+ }, x = s({
869
+ prefix: "/license/v2"
870
+ }), jt = {
871
+ getGroupQuota: (t) => x.get(`/${t}/allocation-quota`),
872
+ getSubGroupQuota: (t) => x.get(`/${t}/subgroup-quota`),
873
+ editSubGroupQuota: (t, e) => x.put(`/${t}/set-group-quota`, e),
874
+ getTotalLicense: () => x.get("/total-license")
875
+ }, X = s({
876
+ prefix: "/repair/v2/damage"
877
+ }), Qt = {
820
878
  putReportDamage: (t, e) => {
821
879
  const r = { "Content-Type": "multipart/form-data" };
822
- return z.put(`/report-damage/${t}`, e, { headers: r });
880
+ return X.put(`/report-damage/${t}`, e, { headers: r });
823
881
  }
824
882
  };
825
883
  export {
826
- It as AliasCodeServices,
827
- Ut as AliasCodeServicesGo,
828
- kt as AssetNameServices,
829
- ut as AssetServices,
884
+ ft as AliasCodeServices,
885
+ Ct as AliasCodeServicesGo,
886
+ Bt as AssetNameServices,
887
+ pt as AssetServices,
888
+ Mt as AssignmentServices,
889
+ Vt as AssignmentServicesGo,
830
890
  _t as BrandServices,
831
- at as ChangelogServices,
832
- Ot as CountryStateServices,
833
- Lt as CustomFieldServices,
834
- bt as CustomFieldServicesGo,
835
- Mt as DamageServices,
836
- Pt as DashboardServices,
891
+ ut as ChangelogServices,
892
+ Dt as CountryStateServices,
893
+ Tt as CustomFieldServices,
894
+ Ot as CustomFieldServicesGo,
895
+ Qt as DamageServices,
896
+ It as DashboardServices,
837
897
  Gt as FileManagerServices,
838
- Dt as FileManagerServicesGo,
839
- ft as GeneralSettingsServices,
840
- Ct as GeneralSettingsServicesGo,
841
- st as GroupCategoryServices,
842
- ot as GroupCategoryServicesGo,
843
- yt as I18nService,
844
- Ft as ImportServices,
898
+ ht as FileManagerServicesGo,
899
+ Lt as GeneralSettingsServices,
900
+ bt as GeneralSettingsServicesGo,
901
+ ot as GroupCategoryServices,
902
+ at as GroupCategoryServicesGo,
903
+ Ut as I18nService,
904
+ kt as ImportServices,
845
905
  Nt as ImportServicesGo,
846
- Bt as LicenseServices,
847
- it as LogServicesGo,
848
- gt as MissingServices,
849
- nt as NotificationApprovalServices,
906
+ jt as LicenseServices,
907
+ gt as LogServicesGo,
908
+ ct as MissingServices,
909
+ it as NotificationApprovalServices,
850
910
  lt as NotificationServices,
851
- pt as NotificationServicesGo,
911
+ dt as NotificationServicesGo,
852
912
  wt as OpenAPIServices,
853
- Et as OpenAPIServicesGo,
854
- Rt as ReaderServices,
855
- ht as RoleServices,
856
- xt as RoleServicesGo,
857
- Tt as ServiceCenterServices,
858
- ct as SessionLogServices,
913
+ Ft as OpenAPIServicesGo,
914
+ xt as ReaderServices,
915
+ Et as RoleServices,
916
+ qt as RoleServicesGo,
917
+ Rt as ServiceCenterServices,
918
+ $t as SessionLogServices,
859
919
  St as SubUserServices,
860
- mt as SubUserServicesGo,
861
- dt as TAGServices,
862
- $t as TrackingServices,
863
- At as UserServices,
864
- vt as UserServicesGo,
865
- rt as getAssetsFile,
866
- b as getBaseURL,
867
- et as getImageURL,
868
- tt as getImageURLGo,
869
- X as queryParamsStringfy
920
+ Pt as SubUserServicesGo,
921
+ At as TAGServices,
922
+ vt as TrackingServices,
923
+ mt as UserServices,
924
+ yt as UserServicesGo,
925
+ nt as getAssetsFile,
926
+ O as getBaseURL,
927
+ st as getImageURL,
928
+ rt as getImageURLGo,
929
+ et as queryParamsStringfy
870
930
  };