@tagsamurai/fats-api-services 1.0.0-alpha.100 → 1.0.0-alpha.102

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 z from "axios";
2
- const tt = { 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" }, R = (t = "APP_API") => tt["VITE_" + t], s = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: a = "", headers: U = {}, ...D } = t, Z = `${R(r)}${a}`, M = JSON.parse(localStorage.getItem("user") ?? "{}"), X = M.jwt ?? M.token ?? "";
4
- return z.create({
5
- ...D,
6
- baseURL: Z,
7
- headers: e ? U : {
1
+ import Z from "axios";
2
+ const st = { 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" }, D = (t = "APP_API") => st["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: a = "", headers: T = {}, ..._ } = t, et = `${D(r)}${a}`, V = JSON.parse(localStorage.getItem("user") ?? "{}"), rt = V.jwt ?? V.token ?? "";
4
+ return Z.create({
5
+ ..._,
6
+ baseURL: et,
7
+ headers: e ? T : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${X}`,
10
- ...U
9
+ Authorization: `Bearer ${rt}`,
10
+ ...T
11
11
  }
12
12
  });
13
- }, it = (t) => {
13
+ }, pt = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,158 +21,159 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, ut = (t, e, r) => {
24
+ }, ct = (t, e, r) => {
25
25
  if (!t) return;
26
- const a = R("APP_API"), U = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
26
+ const a = D("APP_API"), T = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
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())), `${U}?${D.toString()}`;
28
+ const _ = new URLSearchParams();
29
+ return e && (_.set("width", e.toString()), _.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${T}?${_.toString()}`;
30
30
  }
31
- return U;
32
- }, gt = (t) => {
31
+ return T;
32
+ }, lt = (t) => {
33
33
  if (!t) return;
34
- const e = R("APP_TAGSAMURAI_API");
34
+ const e = D("APP_TAGSAMURAI_API");
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, pt = async (t, e = "excel") => await fetch(
37
- `${R("APP_ASSETS_URL")}/${e}/${t}`
38
- ), A = s({
36
+ }, dt = async (t, e = "excel") => await fetch(
37
+ `${D("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), y = s({
39
39
  prefix: "/settings-attribute/v2",
40
40
  env: "APP_TAGSAMURAI_API"
41
- }), ct = {
41
+ }), $t = {
42
42
  getGroupCategory: (t, e) => {
43
43
  const r = t === "category" ? t : "groups";
44
- return A.get(`/${r}/tree`, { params: e });
44
+ return y.get(`/${r}/tree`, { params: e });
45
45
  },
46
46
  getGroupCategoryList: (t, e, r) => {
47
47
  const a = t === "category" ? t : "groups";
48
- return A.get(`/${a}/${e}`, { params: r });
48
+ return y.get(`/${a}/${e}`, { params: r });
49
49
  },
50
50
  getNames: (t) => {
51
51
  const e = t === "category" ? t : "groups";
52
- return A.get(`/${e}/names`);
52
+ return y.get(`/${e}/names`);
53
53
  },
54
54
  getCodes: (t) => {
55
55
  const e = t === "category" ? t : "groups";
56
- return A.get(`/${e}/codes`);
56
+ return y.get(`/${e}/codes`);
57
57
  },
58
58
  postCreateGroupCategory: (t, e) => {
59
59
  const r = t === "category" ? t : "groups";
60
- return A.post(`/${r}`, e);
60
+ return y.post(`/${r}`, e);
61
61
  },
62
62
  putEditGroupCategory: (t, e, r) => {
63
63
  const a = t === "category" ? t : "groups";
64
- return A.put(`/${a}/${r}`, e);
64
+ return y.put(`/${a}/${r}`, e);
65
65
  },
66
- putMoveGroup: (t, e) => A.put(`/groups/${e}/move-group`, t),
67
- putEditBulkGroups: async (t) => A.put("/groups/bulk", t),
66
+ putMoveGroup: (t, e) => y.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => y.put("/groups/bulk", t),
68
68
  deleteGroupCategory: (t, e, r) => {
69
69
  const a = t === "category" ? t : "groups";
70
- return A.delete(`/${a}/${r}`, { data: e });
70
+ return y.delete(`/${a}/${r}`, { data: e });
71
71
  }
72
- }, S = s({
72
+ }, P = s({
73
73
  prefix: "/settings-attribute-go/v2"
74
- }), lt = {
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 P.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 P.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 P.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 P.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 P.post(`/${r}`, e);
94
94
  },
95
95
  putEditGroupCategory: (t, e, r) => {
96
96
  const a = t === "category" ? t : "groups";
97
- return S.put(`/${a}/${r}`, e);
97
+ return P.put(`/${a}/${r}`, e);
98
98
  },
99
99
  deleteGroupCategory: (t, e, r) => {
100
100
  const a = t === "category" ? t : "groups";
101
- return S.delete(`/${a}/${r}`, { data: e });
101
+ return P.delete(`/${a}/${r}`, { data: e });
102
102
  }
103
- }, et = s({
103
+ }, nt = s({
104
104
  prefix: "/v2",
105
105
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), dt = {
107
- getTotalApprovals: () => et.get("/approval/count")
108
- }, _ = s({
106
+ }), yt = {
107
+ getTotalApprovals: () => nt.get("/approval/count")
108
+ }, G = s({
109
109
  prefix: "/v2",
110
110
  env: "APP_LOGS_NOTIFICATION_API"
111
- }), $t = {
112
- getActionLog: (t) => _.get("/change-log", { params: t }),
113
- getActionLogOption: (t) => _.get("/change-log/options", { params: t }),
114
- getSessionLogList: (t) => _.get("/session-log", { params: t }),
115
- getUserDetailSystemLogList: (t) => _.get("/change-log", { params: t }),
116
- getUserDetailSystemLogOption: (t) => _.get("/change-log/options", { params: t })
117
- }, y = s({
111
+ }), vt = {
112
+ getActionLog: (t) => G.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => G.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => G.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => G.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => G.get("/change-log/options", { params: t })
117
+ }, v = s({
118
118
  prefix: "/utility/v2"
119
- }), At = {
120
- getActionLog: (t) => y.get("/change-log", { params: t }),
121
- getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
122
- getSessionLogList: (t) => y.get("/session-log", { params: t }),
123
- getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
124
- getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
125
- getUserDetailUserLogBorrowingList: (t, e) => y.get(`/borrowing-log/${t}`, { params: e }),
126
- getUserDetailUserLogAssignmentList: (t, e) => y.get(`/assignment-log/${t}`, { params: e }),
127
- getUserDetailUserLogBorrowingOption: (t, e) => y.get(`/borrowing-log/${t}/options`, { params: e }),
128
- getUserDetailUserLogAssignmentOption: (t, e) => y.get(`/assignment-log/${t}/options`, { params: e })
129
- }, c = s({
119
+ }), mt = {
120
+ getActionLog: (t) => v.get("/change-log", { params: t }),
121
+ getActionLogOption: (t) => v.get("/change-log/options", { params: t }),
122
+ getSessionLogList: (t) => v.get("/session-log", { params: t }),
123
+ getUserDetailSystemLogList: (t) => v.get("/change-log", { params: t }),
124
+ getUserDetailSystemLogOption: (t) => v.get("/change-log/options", { params: t }),
125
+ getUserDetailUserLogBorrowingList: (t, e) => v.get(`/borrowing-log/${t}`, { params: e }),
126
+ getUserDetailUserLogAssignmentList: (t, e) => v.get(`/assignment-log/${t}`, { params: e }),
127
+ getUserDetailUserLogBorrowingOption: (t, e) => v.get(`/borrowing-log/${t}/options`, { params: e }),
128
+ getUserDetailUserLogAssignmentOption: (t, e) => v.get(`/assignment-log/${t}/options`, { params: e })
129
+ }, l = s({
130
130
  prefix: "/assets/v2/assets"
131
- }), yt = {
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 } }),
131
+ }), St = {
132
+ getScanTag: (t) => l.get("/scan", { params: { tag: t } }),
133
+ getAllAssets: (t) => l.get("/", { params: t }),
134
+ getAllAssetsOptions: (t) => l.get("/options", { params: t }),
135
+ getAvailableAssets: (t) => l.get("/available", { params: t }),
136
+ getAvailableAssetOptions: (t) => l.get("/available/options", { params: t }),
137
+ scanAsset: (t) => l.get("", { params: { tag: t } }),
138
+ getAssetsById: (t, e) => l.get("/by-id", { params: { _id: t, ...e } }),
139
+ getOptions: (t, e) => l.get(t ? `/${t}/options` : "/options", { params: e }),
140
+ getUnlinkedAssets: (t) => l.get("/unlinked", { params: t }),
141
+ getAssetDetail: (t, e) => l.get(`/${t}`, { params: e }),
142
+ getLinkedAssetFamily: (t) => l.get("/family", { params: { id: t } }),
142
143
  matchAssetWithTag: (t, e) => {
143
144
  const r = {
144
145
  _id: JSON.stringify([t]),
145
146
  tag: e
146
147
  };
147
- return c.get("/by-id", { params: r });
148
+ return l.get("/by-id", { params: r });
148
149
  }
149
- }, V = s({
150
+ }, j = s({
150
151
  prefix: "/tracking/v2/missing"
151
- }), vt = {
152
+ }), Pt = {
152
153
  putFoundAsset: (t, e) => {
153
154
  const r = { ids: [t], serialNumber: e };
154
- return V.put("/found", r);
155
+ return j.put("/found", r);
155
156
  },
156
- putReportMissing: (t, e) => V.put(`/report-missing/${t}`, e)
157
- }, H = s({
157
+ putReportMissing: (t, e) => j.put(`/report-missing/${t}`, e)
158
+ }, Q = s({
158
159
  prefix: "/v2/notification",
159
160
  env: "APP_LOGS_NOTIFICATION_API"
160
- }), mt = {
161
- getNotifications: (t) => H.get("/", { params: t }),
162
- readNotification: (t) => H.put(`/${t}`)
163
- }, j = s({
161
+ }), It = {
162
+ getNotifications: (t) => Q.get("/", { params: t }),
163
+ readNotification: (t) => Q.put(`/${t}`)
164
+ }, Y = s({
164
165
  prefix: "/utility/v2/notification"
165
- }), St = {
166
- getNotifications: (t) => j.get("/", { params: t }),
167
- readNotification: (t) => j.put(`/${t}`)
168
- }, rt = s({
166
+ }), ft = {
167
+ getNotifications: (t) => Y.get("/", { params: t }),
168
+ readNotification: (t) => Y.put(`/${t}`)
169
+ }, ot = s({
169
170
  prefix: "/v2/session-log",
170
171
  env: "APP_LOGS_NOTIFICATION_API"
171
- }), Pt = {
172
- postLogout: () => rt.post("/logout")
172
+ }), Ut = {
173
+ postLogout: () => ot.post("/logout")
173
174
  }, o = s({
174
175
  prefix: "/tag/v2"
175
- }), It = {
176
+ }), Tt = {
176
177
  getScanQR: (t) => o.get("/qr", { params: { tag: t } }),
177
178
  getScanRFID: (t) => o.get("/rfid", { params: { tag: t } }),
178
179
  getRFIDQRTAG: (t) => o.get("/rfid-qr/scan", { params: t }),
@@ -208,9 +209,9 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
208
209
  },
209
210
  postScanLog: (t) => o.post("/scan-log", t),
210
211
  putReportTAG: (t, e) => o.put(`/tag-transaction/report/${t}`, e)
211
- }, E = s({
212
+ }, k = s({
212
213
  prefix: "/tracking/v2/tracking"
213
- }), ft = {
214
+ }), Ct = {
214
215
  putFoundAsset: (t, e, r) => {
215
216
  const a = {
216
217
  tag: t,
@@ -218,13 +219,13 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
218
219
  serialNumber: r,
219
220
  type: "Global"
220
221
  };
221
- return E.put("/found", { params: a });
222
+ return k.put("/found", { params: a });
222
223
  },
223
- putReportPermanentlyMissing: (t, e) => E.put(`/report-permanently-missing/${t}`, e),
224
- getTrackingDetail: (t) => E.get(`/${t}`)
224
+ putReportPermanentlyMissing: (t, e) => k.put(`/report-permanently-missing/${t}`, e),
225
+ getTrackingDetail: (t) => k.get(`/${t}`)
225
226
  }, i = s({
226
227
  prefix: "/settings-user-role/v2"
227
- }), Ut = {
228
+ }), bt = {
228
229
  reLogin: (t) => i.post("/auth/login", t),
229
230
  changePassword: (t) => i.put("/users/change-password", t),
230
231
  /**
@@ -268,7 +269,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
268
269
  getUserDetailUserAssetAssignedOption: (t, e) => i.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
269
270
  }, u = s({
270
271
  prefix: "/settings-user-role-go/v2"
271
- }), Ct = {
272
+ }), Ot = {
272
273
  /**
273
274
  * Retrieves the user list as dropdown options.
274
275
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
@@ -303,58 +304,58 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
303
304
  getUserDetailUserAssetAssignedList: (t, e) => u.get(`/users/${t}/assigned-asset`, { params: e }),
304
305
  getUserDetailUserAssetBorrowedOption: (t, e) => u.get(`/users/${t}/borrowed-asset/option`, { params: e }),
305
306
  getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/users/${t}/assigned-asset/option`, { params: e })
306
- }, v = s({
307
+ }, m = s({
307
308
  prefix: "/settings-user-role/v2/sub-users"
308
- }), Tt = {
309
+ }), Lt = {
309
310
  // Sub User
310
- getSubUserList: (t, e) => v.get(`/${t}`, { params: e }),
311
- getSubUserOptions: (t, e) => v.get(`/${t}/option`, { params: e }),
311
+ getSubUserList: (t, e) => m.get(`/${t}`, { params: e }),
312
+ getSubUserOptions: (t, e) => m.get(`/${t}/option`, { params: e }),
312
313
  postCreateSubUser: (t, e) => {
313
314
  const r = { "Content-Type": "multipart/form-data" };
314
- return v.post(`/${t}`, e, { headers: r });
315
+ return m.post(`/${t}`, e, { headers: r });
315
316
  },
316
- putSubUserSetActiveBulk: (t) => v.put("/set-active-bulk", t),
317
- deleteSubUser: (t) => v.delete("/bulk", { data: { subUserIds: t } }),
317
+ putSubUserSetActiveBulk: (t) => m.put("/set-active-bulk", t),
318
+ deleteSubUser: (t) => m.delete("/bulk", { data: { subUserIds: t } }),
318
319
  putEditSubUser: (t, e) => {
319
320
  const r = { "Content-Type": "multipart/form-data" };
320
- return v.put(`/${t}`, e, { headers: r });
321
+ return m.put(`/${t}`, e, { headers: r });
321
322
  },
322
- getBorrowedAsset: (t, e) => v.get(`/${t}/borrowed-asset`, { params: e }),
323
- getBorrowedAssetOptions: (t, e) => v.get(`/${t}/borrowed-asset/options`, { params: e })
324
- }, $ = s({
323
+ getBorrowedAsset: (t, e) => m.get(`/${t}/borrowed-asset`, { params: e }),
324
+ getBorrowedAssetOptions: (t, e) => m.get(`/${t}/borrowed-asset/options`, { params: e })
325
+ }, A = s({
325
326
  prefix: "/settings-user-role-go/v2/users"
326
- }), Lt = {
327
+ }), Rt = {
327
328
  // Sub User
328
- getSubUserList: (t, e) => $.get(`/${t}/sub-users`, { params: e }),
329
- getSubUserOptions: (t, e) => $.get(`/${t}/sub-users/option`, { params: e }),
329
+ getSubUserList: (t, e) => A.get(`/${t}/sub-users`, { params: e }),
330
+ getSubUserOptions: (t, e) => A.get(`/${t}/sub-users/option`, { params: e }),
330
331
  postCreateSubUser: (t, e) => {
331
332
  const r = { "Content-Type": "multipart/form-data" };
332
- return $.post(`/${t}/sub-users`, e, { headers: r });
333
+ return A.post(`/${t}/sub-users`, e, { headers: r });
333
334
  },
334
- putSubUserSetActiveBulk: (t, e) => $.put(`/${t}/sub-users/set-active-bulk`, e),
335
- deleteSubUser: (t, e) => $.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
335
+ putSubUserSetActiveBulk: (t, e) => A.put(`/${t}/sub-users/set-active-bulk`, e),
336
+ deleteSubUser: (t, e) => A.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
336
337
  putEditSubUser: (t, e, r) => {
337
338
  const a = { "Content-Type": "multipart/form-data" };
338
- return $.put(`/${t}/sub-users/${e}`, r, {
339
+ return A.put(`/${t}/sub-users/${e}`, r, {
339
340
  headers: a
340
341
  });
341
342
  },
342
- getBorrowedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset`, {
343
+ getBorrowedAsset: (t, e, r) => A.get(`/${t}/sub-users/${e}/borrowed-asset`, {
343
344
  params: r
344
345
  }),
345
- getBorrowedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
346
+ getBorrowedAssetOptions: (t, e, r) => A.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
346
347
  params: r
347
348
  }),
348
- getAssignedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset`, {
349
+ getAssignedAsset: (t, e, r) => A.get(`/${t}/sub-users/${e}/assigned-asset`, {
349
350
  params: r
350
351
  }),
351
- getAssignedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
352
+ getAssignedAssetOptions: (t, e, r) => A.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
352
353
  params: r
353
354
  })
354
355
  }, x = s({
355
356
  env: "APP_ADMIN_API",
356
357
  prefix: "/settings-attribute/languages"
357
- }), bt = {
358
+ }), Dt = {
358
359
  /**
359
360
  * Fetch all translation messages for a specific locale.
360
361
  * @param locale The locale code (e.g., 'en', 'id').
@@ -397,54 +398,54 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
397
398
  });
398
399
  return r.data.translations[t];
399
400
  }
400
- }, Q = s({
401
+ }, J = s({
401
402
  prefix: "/dashboard/v2/dashboard"
402
- }), Ot = {
403
- getLatestTask: (t) => Q.get("/latest-task", { params: t }),
404
- getSummary: (t) => Q.get("/summary", { params: t })
405
- }, k = s({
406
- prefix: "/alias-code/api/alias-code"
407
- }), Rt = {
408
- getAliasCode: () => k.get("/"),
409
- postAliasCode: (t) => k.post("/", t),
410
- getAliasCodeList: (t) => k.get(`/${t.object}/code-list`, { params: t })
403
+ }), _t = {
404
+ getLatestTask: (t) => J.get("/latest-task", { params: t }),
405
+ getSummary: (t) => J.get("/summary", { params: t })
411
406
  }, B = s({
412
- prefix: "/settings-attribute-go/v2/alias-code"
413
- }), Dt = {
407
+ prefix: "/alias-code/api/alias-code"
408
+ }), Gt = {
414
409
  getAliasCode: () => B.get("/"),
415
410
  postAliasCode: (t) => B.post("/", t),
416
411
  getAliasCodeList: (t) => B.get(`/${t.object}/code-list`, { params: t })
417
- }, Y = s({
412
+ }, F = s({
413
+ prefix: "/settings-attribute-go/v2/alias-code"
414
+ }), ht = {
415
+ getAliasCode: () => F.get("/"),
416
+ postAliasCode: (t) => F.post("/", t),
417
+ getAliasCodeList: (t) => F.get(`/${t.object}/code-list`, { params: t })
418
+ }, K = s({
418
419
  prefix: "/settings-attribute/v2/general-settings"
419
- }), _t = {
420
- getGeneralSettings: () => Y.get("/"),
421
- putUpdateGeneralSettings: (t) => Y.put("/", t)
422
- }, J = s({
420
+ }), qt = {
421
+ getGeneralSettings: () => K.get("/"),
422
+ putUpdateGeneralSettings: (t) => K.put("/", t)
423
+ }, W = s({
423
424
  prefix: "/settings-attribute-go/v2/general-settings"
424
- }), Gt = {
425
- getGeneralSettings: () => J.get("/"),
426
- putUpdateGeneralSettings: (t) => J.put("/", t)
425
+ }), xt = {
426
+ getGeneralSettings: () => W.get("/"),
427
+ putUpdateGeneralSettings: (t) => W.put("/", t)
427
428
  }, C = s({
428
429
  prefix: "/settings-attribute/v2/custom-field"
429
- }), ht = {
430
+ }), wt = {
430
431
  getCustomField: async (t) => C.get("/", { params: t }),
431
432
  getOptions: async (t) => C.get("/options", { params: t }),
432
433
  postCreateCustomField: async (t, e) => C.post("/", e, { params: t }),
433
434
  putEditCustomField: async (t, e, r) => C.put(`/${r}`, e, { params: t }),
434
435
  putChangeStatus: async (t, e) => C.put("/bulk", e, { params: t }),
435
436
  deleteCustomField: async (t) => C.delete("/bulk", { data: t })
436
- }, T = s({
437
+ }, b = s({
437
438
  prefix: "/settings-attribute-go/v2/custom-field"
438
- }), xt = {
439
- getCustomField: async (t) => T.get("/", { params: t }),
440
- getOptions: async (t) => T.get("/options", { params: t }),
441
- postCreateCustomField: async (t, e) => T.post("/", e, { params: t }),
442
- putEditCustomField: async (t, e, r) => T.put(`/${r}`, e, { params: t }),
443
- putChangeStatus: async (t, e) => T.put("/bulk", e, { params: t }),
444
- deleteCustomField: async (t) => T.delete("/bulk", { params: t })
445
- }, F = ({ headers: t = {}, params: e = {} } = {}) => {
446
- const r = R("APP_COUNTRY_STATE_API"), a = R("APP_COUNTRY_STATE_API_KEY");
447
- return z.create({
439
+ }), Et = {
440
+ getCustomField: async (t) => b.get("/", { params: t }),
441
+ getOptions: async (t) => b.get("/options", { params: t }),
442
+ postCreateCustomField: async (t, e) => b.post("/", e, { params: t }),
443
+ putEditCustomField: async (t, e, r) => b.put(`/${r}`, e, { params: t }),
444
+ putChangeStatus: async (t, e) => b.put("/bulk", e, { params: t }),
445
+ deleteCustomField: async (t) => b.delete("/bulk", { params: t })
446
+ }, N = ({ headers: t = {}, params: e = {} } = {}) => {
447
+ const r = D("APP_COUNTRY_STATE_API"), a = D("APP_COUNTRY_STATE_API_KEY");
448
+ return Z.create({
448
449
  baseURL: `${r}/v1`,
449
450
  headers: {
450
451
  "Content-type": "application/json",
@@ -453,38 +454,38 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
453
454
  },
454
455
  params: e
455
456
  });
456
- }, qt = {
457
- getCountry: () => F().get("/countries"),
458
- getState: (t) => F().get(`/countries/${t}/states`),
459
- getCity: (t, e) => F().get(`/countries/${t}/states/${e}/cities`)
460
- }, l = s({
457
+ }, kt = {
458
+ getCountry: () => N().get("/countries"),
459
+ getState: (t) => N().get(`/countries/${t}/states`),
460
+ getCity: (t, e) => N().get(`/countries/${t}/states/${e}/cities`)
461
+ }, d = s({
461
462
  prefix: "/routine/v2"
462
- }), wt = {
463
- getList: (t) => l.get("/service-center", { params: t }),
464
- postList: (t) => l.post("/service-center", t),
465
- putList: (t, e) => l.put(`/service-center/${t}`, e),
466
- putActivate: (t) => l.put("/service-center/bulk", t),
467
- getDetailList: (t) => l.get(`/service-center/${t}`),
468
- getListOptions: (t) => l.get("/service-center/options", { params: t }),
469
- deleteList: (t) => l.delete("/service-center", { params: t }),
463
+ }), Bt = {
464
+ getList: (t) => d.get("/service-center", { params: t }),
465
+ postList: (t) => d.post("/service-center", t),
466
+ putList: (t, e) => d.put(`/service-center/${t}`, e),
467
+ putActivate: (t) => d.put("/service-center/bulk", t),
468
+ getDetailList: (t) => d.get(`/service-center/${t}`),
469
+ getListOptions: (t) => d.get("/service-center/options", { params: t }),
470
+ deleteList: (t) => d.delete("/service-center", { params: t }),
470
471
  // Activities
471
- getActivities: (t) => l.get("/service-activities", { params: t }),
472
- getActivityOptions: (t) => l.get("/service-activities/options", { params: t }),
473
- getActivityDetail: (t) => l.get(`/service-activities/${t}`),
474
- getActivityLog: (t) => l.get(`/service-activities/${t}/activity-log`)
475
- }, st = s({
472
+ getActivities: (t) => d.get("/service-activities", { params: t }),
473
+ getActivityOptions: (t) => d.get("/service-activities/options", { params: t }),
474
+ getActivityDetail: (t) => d.get(`/service-activities/${t}`),
475
+ getActivityLog: (t) => d.get(`/service-activities/${t}/activity-log`)
476
+ }, at = s({
476
477
  prefix: "/settings-attribute/v2/brands"
477
- }), Et = {
478
- getDropdown: (t) => st.get("/dropdown", { params: t })
479
- }, L = s({
478
+ }), Ft = {
479
+ getDropdown: (t) => at.get("/dropdown", { params: t })
480
+ }, O = s({
480
481
  prefix: "/file-manager/v2"
481
- }), kt = {
482
+ }), Nt = {
482
483
  /**
483
484
  * Get storage information.
484
485
  *
485
486
  * @returns {Promise<AxiosResponse>} The Axios Response.
486
487
  */
487
- getStorageInformation: () => L.get("/files/storage"),
488
+ getStorageInformation: () => O.get("/files/storage"),
488
489
  /**
489
490
  * Get file manager data.
490
491
  *
@@ -492,7 +493,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
492
493
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
493
494
  * @returns {Promise<AxiosResponse>} The Axios Response.
494
495
  */
495
- getFileManager: (t, e) => L.get(`/${t}`, { params: e }),
496
+ getFileManager: (t, e) => O.get(`/${t}`, { params: e }),
496
497
  /**
497
498
  * Get file manager options.
498
499
  *
@@ -500,7 +501,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
500
501
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
501
502
  * @returns {Promise<AxiosResponse>} The Axios Response.
502
503
  */
503
- getFileManagerOption: (t, e) => L.get(`/${t}/options`, { params: e }),
504
+ getFileManagerOption: (t, e) => O.get(`/${t}/options`, { params: e }),
504
505
  /**
505
506
  * Recover files.
506
507
  *
@@ -508,7 +509,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
508
509
  * @param {object} body - The body of the request.
509
510
  * @returns {Promise<AxiosResponse>} The Axios Response.
510
511
  */
511
- recoverFiles: (t, e) => L.put(`/${t}/recover`, e),
512
+ recoverFiles: (t, e) => O.put(`/${t}/recover`, e),
512
513
  /**
513
514
  * Delete files.
514
515
  *
@@ -516,7 +517,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
516
517
  * @param {DeleteFileManagerDto} params - The params of the request.
517
518
  * @returns {Promise<AxiosResponse>} The Axios Response.
518
519
  */
519
- deleteFiles: (t, e) => L.delete(`/${t}`, { params: e }),
520
+ deleteFiles: (t, e) => O.delete(`/${t}`, { params: e }),
520
521
  /**
521
522
  * Delete files permanently.
522
523
  *
@@ -524,16 +525,16 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
524
525
  * @param {object} body - The body of the request.
525
526
  * @returns {Promise<AxiosResponse>} The Axios Response.
526
527
  */
527
- deletePermanently: (t, e) => L.delete(`/${t}/delete-permanent`, { params: e })
528
- }, b = s({
528
+ deletePermanently: (t, e) => O.delete(`/${t}/delete-permanent`, { params: e })
529
+ }, L = s({
529
530
  prefix: "/utility/v2"
530
- }), Bt = {
531
+ }), Mt = {
531
532
  /**
532
533
  * Get storage information.
533
534
  *
534
535
  * @returns {Promise<AxiosResponse>} The Axios Response.
535
536
  */
536
- getStorageInformation: () => b.get("/files/storage"),
537
+ getStorageInformation: () => L.get("/files/storage"),
537
538
  /**
538
539
  * Get file manager data.
539
540
  *
@@ -541,7 +542,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
541
542
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
542
543
  * @returns {Promise<AxiosResponse>} The Axios Response.
543
544
  */
544
- getFileManager: (t, e) => b.get(`/${t}`, { params: e }),
545
+ getFileManager: (t, e) => L.get(`/${t}`, { params: e }),
545
546
  /**
546
547
  * Get file manager options.
547
548
  *
@@ -549,7 +550,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
549
550
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
550
551
  * @returns {Promise<AxiosResponse>} The Axios Response.
551
552
  */
552
- getFileManagerOption: (t, e) => b.get(`/${t}/options`, { params: e }),
553
+ getFileManagerOption: (t, e) => L.get(`/${t}/options`, { params: e }),
553
554
  /**
554
555
  * Recover files.
555
556
  *
@@ -557,7 +558,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
557
558
  * @param {object} body - The body of the request.
558
559
  * @returns {Promise<AxiosResponse>} The Axios Response.
559
560
  */
560
- recoverFiles: (t, e) => b.put(`/${t}/recover`, e),
561
+ recoverFiles: (t, e) => L.put(`/${t}/recover`, e),
561
562
  /**
562
563
  * Delete files.
563
564
  *
@@ -565,7 +566,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
565
566
  * @param {DeleteFileManagerDto} params - The params of the request.
566
567
  * @returns {Promise<AxiosResponse>} The Axios Response.
567
568
  */
568
- deleteFiles: (t, e) => b.delete(`/${t}`, { params: e }),
569
+ deleteFiles: (t, e) => L.delete(`/${t}`, { params: e }),
569
570
  /**
570
571
  * Delete files permanently.
571
572
  *
@@ -573,21 +574,21 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
573
574
  * @param {object} body - The body of the request.
574
575
  * @returns {Promise<AxiosResponse>} The Axios Response.
575
576
  */
576
- deletePermanently: (t, e) => b.delete(`/${t}/delete-permanent`, { params: e })
577
- }, m = s({
577
+ deletePermanently: (t, e) => L.delete(`/${t}/delete-permanent`, { params: e })
578
+ }, S = s({
578
579
  prefix: "/iot/v2/reader"
579
- }), Ft = {
580
- getData: (t) => m.get("/", { params: t }),
581
- getDataOptions: (t) => m.get("/options", { params: t }),
582
- getActivityLogData: (t) => m.get("/activity-log", { params: t }),
583
- getActivityLogOptions: (t) => m.get("/activity-log/options", { params: t }),
584
- getDataById: (t) => m.get(`/${t}`),
585
- getChangeLog: (t) => m.get(`/${t.id}/change-log`, { params: t }),
586
- getChangeLogOptions: (t) => m.get(`/${t.id}/change-log/options`, { params: t }),
587
- putData: (t, e) => m.put(`/${t}`, e)
580
+ }), Ht = {
581
+ getData: (t) => S.get("/", { params: t }),
582
+ getDataOptions: (t) => S.get("/options", { params: t }),
583
+ getActivityLogData: (t) => S.get("/activity-log", { params: t }),
584
+ getActivityLogOptions: (t) => S.get("/activity-log/options", { params: t }),
585
+ getDataById: (t) => S.get(`/${t}`),
586
+ getChangeLog: (t) => S.get(`/${t.id}/change-log`, { params: t }),
587
+ getChangeLogOptions: (t) => S.get(`/${t.id}/change-log/options`, { params: t }),
588
+ putData: (t, e) => S.put(`/${t}`, e)
588
589
  }, g = s({
589
590
  prefix: "/settings-user-role/v2"
590
- }), Nt = {
591
+ }), Vt = {
591
592
  /**
592
593
  * Retrieves the transaction role for the given group and transaction name.
593
594
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -673,7 +674,7 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
673
674
  }
674
675
  }, p = s({
675
676
  prefix: "/settings-user-role-go/v2"
676
- }), Mt = {
677
+ }), jt = {
677
678
  /**
678
679
  * Retrieves the transaction role for the given group and transaction name.
679
680
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -757,61 +758,61 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
757
758
  }
758
759
  return p.put("/system-roles", t);
759
760
  }
760
- }, G = s({
761
+ }, h = s({
761
762
  prefix: "/settings-attribute/v2/open-api"
762
- }), Vt = {
763
- getOpenAPIDocs: (t) => G.get(`/${t.doc}`),
764
- putGenerateToken: () => G.put("/generate"),
763
+ }), Qt = {
764
+ getOpenAPIDocs: (t) => h.get(`/${t.doc}`),
765
+ putGenerateToken: () => h.put("/generate"),
765
766
  // This is if the dummy was not dummy
766
- getToken: () => G.get(""),
767
- putRequestOpenAPI: () => G.put("/request"),
768
- putCancelRequestOpenAPI: () => G.put("/cancel-request")
769
- }, q = s({
767
+ getToken: () => h.get(""),
768
+ putRequestOpenAPI: () => h.put("/request"),
769
+ putCancelRequestOpenAPI: () => h.put("/cancel-request")
770
+ }, w = s({
770
771
  prefix: "/settings-attribute-go/v2/open-api"
771
- }), Ht = {
772
- putGenerateToken: () => q.put("/generate"),
772
+ }), Yt = {
773
+ putGenerateToken: () => w.put("/generate"),
773
774
  // This is if the dummy was not dummy
774
- getToken: () => q.get(""),
775
- putRequestOpenAPI: () => q.put("/request"),
776
- putCancelRequestOpenAPI: () => q.put("/cancel-request")
777
- }, P = s({
778
- prefix: "/import/v2"
779
- }), jt = {
780
- getImport: (t, e) => P.get(`/${t}`, { params: e }),
781
- postImportTemporary: (t, e) => {
782
- const r = { "Content-Type": "multipart/form-data" };
783
- return P.post(`/${t}/temporary`, e, { headers: r });
784
- },
785
- deleteImportTemporary: (t, e) => P.delete(`/${t}/temporary`, { data: e }),
786
- postDuplicateImport: (t, e) => P.post(`/${t}/duplicate`, e),
787
- putEditImport: (t, e) => P.put(`/${t}`, e),
788
- postImport: (t, e, r) => P.post(t, r, { signal: e.signal }),
789
- putImportCancelProgress: (t) => P.put(`/${t}/cancel-progress`)
775
+ getToken: () => w.get(""),
776
+ putRequestOpenAPI: () => w.put("/request"),
777
+ putCancelRequestOpenAPI: () => w.put("/cancel-request")
790
778
  }, I = s({
791
- prefix: "/import-go/v2"
792
- }), Qt = {
779
+ prefix: "/import/v2"
780
+ }), Jt = {
793
781
  getImport: (t, e) => I.get(`/${t}`, { params: e }),
794
782
  postImportTemporary: (t, e) => {
795
783
  const r = { "Content-Type": "multipart/form-data" };
796
784
  return I.post(`/${t}/temporary`, e, { headers: r });
797
785
  },
798
- deleteImportTemporary: (t, e) => I.delete(`/${t}/temporary`, { params: e }),
786
+ deleteImportTemporary: (t, e) => I.delete(`/${t}/temporary`, { data: e }),
799
787
  postDuplicateImport: (t, e) => I.post(`/${t}/duplicate`, e),
800
788
  putEditImport: (t, e) => I.put(`/${t}`, e),
801
789
  postImport: (t, e, r) => I.post(t, r, { signal: e.signal }),
802
790
  putImportCancelProgress: (t) => I.put(`/${t}/cancel-progress`)
803
- }, O = s({
791
+ }, f = s({
792
+ prefix: "/import-go/v2"
793
+ }), Kt = {
794
+ getImport: (t, e) => f.get(`/${t}`, { params: e }),
795
+ postImportTemporary: (t, e) => {
796
+ const r = { "Content-Type": "multipart/form-data" };
797
+ return f.post(`/${t}/temporary`, e, { headers: r });
798
+ },
799
+ deleteImportTemporary: (t, e) => f.delete(`/${t}/temporary`, { params: e }),
800
+ postDuplicateImport: (t, e) => f.post(`/${t}/duplicate`, e),
801
+ putEditImport: (t, e) => f.put(`/${t}`, e),
802
+ postImport: (t, e, r) => f.post(t, r, { signal: e.signal }),
803
+ putImportCancelProgress: (t) => f.put(`/${t}/cancel-progress`)
804
+ }, R = s({
804
805
  prefix: "/settings-attribute/v2/asset-name"
805
- }), Yt = {
806
- getDropdown: (t) => O.get("/dropdown", { params: t }),
807
- getAssetNameDetail: (t) => O.get(`/${t}`),
808
- getAssetsByAssetName: (t, e) => O.get(`/${t}/list-asset`, { params: e }),
809
- getAssetNameList: (t) => O.get("/", { params: t }),
810
- getUnpairedAssetName: (t) => O.get("/unpaired", { params: t }),
811
- getOptions: (t) => O.get("/options", { params: t })
806
+ }), Wt = {
807
+ getDropdown: (t) => R.get("/dropdown", { params: t }),
808
+ getAssetNameDetail: (t) => R.get(`/${t}`),
809
+ getAssetsByAssetName: (t, e) => R.get(`/${t}/list-asset`, { params: e }),
810
+ getAssetNameList: (t) => R.get("/", { params: t }),
811
+ getUnpairedAssetName: (t) => R.get("/unpaired", { params: t }),
812
+ getOptions: (t) => R.get("/options", { params: t })
812
813
  }, n = s({
813
814
  prefix: "/assignment/v2"
814
- }), Jt = {
815
+ }), zt = {
815
816
  getPreListData: (t) => n.get("/prelist", { params: t }),
816
817
  getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
817
818
  getRequestData: (t) => n.get("/prelist/request", { params: t }),
@@ -859,139 +860,191 @@ const tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
859
860
  getAssignedAssetOptions: async (t) => n.get("/transaction/my-asset/assigned-asset/options", { params: t }),
860
861
  putCancelAssignment: async (t) => n.put("/transaction/cancel", { id: t.id }),
861
862
  putCancelReportById: async (t) => n.put(`/transaction/request/${t.id}/cancel-report`)
862
- }, f = s({
863
+ }, U = s({
863
864
  prefix: "/assignment-go/v2"
864
- }), Kt = {
865
- getTransactionData: (t) => f.get("/transaction", { params: t }),
866
- getTransactionOptions: (t) => f.get("/transaction/options", { params: t }),
867
- getDetailTransactionLog: (t) => f.get(`/transaction/request/${t}/transaction-log`),
868
- postTransaction: (t) => f.post("/transaction", t),
869
- putTransaction: (t) => f.put("/transaction", t),
870
- putUnassignTransaction: (t) => f.put("/transaction/unassign", t),
871
- putCancelReport: (t) => f.put("/transaction/request/cancel-report", t)
872
- }, w = s({
865
+ }), Xt = {
866
+ getTransactionData: (t) => U.get("/transaction", { params: t }),
867
+ getTransactionOptions: (t) => U.get("/transaction/options", { params: t }),
868
+ getDetailTransactionLog: (t) => U.get(`/transaction/request/${t}/transaction-log`),
869
+ postTransaction: (t) => U.post("/transaction", t),
870
+ putTransaction: (t) => U.put("/transaction", t),
871
+ putUnassignTransaction: (t) => U.put("/transaction/unassign", t),
872
+ putCancelReport: (t) => U.put("/transaction/request/cancel-report", t)
873
+ }, E = s({
873
874
  prefix: "/license/v2"
874
- }), Wt = {
875
- getGroupQuota: (t) => w.get(`/${t}/allocation-quota`),
876
- getSubGroupQuota: (t) => w.get(`/${t}/subgroup-quota`),
877
- editSubGroupQuota: (t, e) => w.put(`/${t}/set-group-quota`, e),
878
- getTotalLicense: () => w.get("/total-license")
879
- }, nt = s({
875
+ }), Zt = {
876
+ getGroupQuota: (t) => E.get(`/${t}/allocation-quota`),
877
+ getSubGroupQuota: (t) => E.get(`/${t}/subgroup-quota`),
878
+ editSubGroupQuota: (t, e) => E.put(`/${t}/set-group-quota`, e),
879
+ getTotalLicense: () => E.get("/total-license")
880
+ }, it = s({
880
881
  prefix: "/repair/v2/damage"
881
- }), zt = {
882
+ }), te = {
882
883
  putReportDamage: (t, e) => {
883
884
  const r = { "Content-Type": "multipart/form-data" };
884
- return nt.put(`/report-damage/${t}`, e, { headers: r });
885
+ return it.put(`/report-damage/${t}`, e, { headers: r });
885
886
  }
886
- }, K = s({
887
+ }, z = s({
887
888
  prefix: "/damage-repair-ticketing/v2"
888
- }), Zt = {
889
+ }), ee = {
889
890
  putReportDamage: (t, e) => {
890
891
  const r = { "Content-Type": "multipart/form-data" };
891
- return K.put(`/${t}/report-damage`, e, { headers: r });
892
+ return z.put(`/${t}/report-damage`, e, { headers: r });
892
893
  },
893
- putMarkAsRepaired: (t) => K.put("/repair", t)
894
- }, d = s({
894
+ putMarkAsRepaired: (t) => z.put("/repair", t)
895
+ }, $ = s({
895
896
  prefix: "/borrowing/v2"
896
- }), Xt = {
897
- getTaskBorrowing: async (t) => d.get("/transaction/my-asset/task", { params: t }),
898
- getTaskBorrowingOptions: async (t) => d.get("/transaction/my-asset/task/options", { params: t }),
899
- getBorrowedAsset: async (t) => d.get("/transaction/my-asset/borrowed-asset", { params: t }),
900
- getBorrowedOptions: async (t) => d.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
901
- getHistory: async (t) => d.get("/transaction/my-asset/history", { params: t }),
902
- getHistoryOptions: async (t) => d.get("/transaction/my-asset/history/options", { params: t }),
903
- putCancelBorrowing: async (t) => d.put("/transaction/cancel", { id: t.id }),
904
- putCancelExtensionRequest: async (t) => d.put(`/transaction/${t.id}/cancel-extension`),
905
- putCancelRequestReport: async (t) => d.put(`/transaction/request/${t.id}/cancel-report`),
906
- putDeclineExtensionRequest: async (t) => d.put("transaction/request/decline", t),
907
- putUpdateRequestExtension: async (t) => d.put("transaction/request/duration", t)
908
- }, W = s({
897
+ }), re = {
898
+ getTaskBorrowing: async (t) => $.get("/transaction/my-asset/task", { params: t }),
899
+ getTaskBorrowingOptions: async (t) => $.get("/transaction/my-asset/task/options", { params: t }),
900
+ getBorrowedAsset: async (t) => $.get("/transaction/my-asset/borrowed-asset", { params: t }),
901
+ getBorrowedOptions: async (t) => $.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
902
+ getHistory: async (t) => $.get("/transaction/my-asset/history", { params: t }),
903
+ getHistoryOptions: async (t) => $.get("/transaction/my-asset/history/options", { params: t }),
904
+ putCancelBorrowing: async (t) => $.put("/transaction/cancel", { id: t.id }),
905
+ putCancelExtensionRequest: async (t) => $.put(`/transaction/${t.id}/cancel-extension`),
906
+ putCancelRequestReport: async (t) => $.put(`/transaction/request/${t.id}/cancel-report`),
907
+ putDeclineExtensionRequest: async (t) => $.put("transaction/request/decline", t),
908
+ putUpdateRequestExtension: async (t) => $.put("transaction/request/duration", t)
909
+ }, X = s({
909
910
  prefix: "/assets/v2"
910
- }), te = {
911
- getHistory: async (t) => W.get("/my-asset", { params: t }),
912
- getHistoryOptions: async (t) => W.get("/my-asset/options", { params: t })
913
- }, N = s({
911
+ }), se = {
912
+ getHistory: async (t) => X.get("/my-asset", { params: t }),
913
+ getHistoryOptions: async (t) => X.get("/my-asset/options", { params: t })
914
+ }, M = s({
914
915
  prefix: "/repair/v2"
915
- }), ee = {
916
- getRepairList: (t) => N.get("/my-asset/repair", { params: t }),
917
- getFilterOptions: (t) => N.get("/my-asset/repair/options", { params: t }),
918
- putConfirmRepair: (t) => N.put(`/repair/${t}/confirm-repair`)
919
- }, ot = s({
916
+ }), ne = {
917
+ getRepairList: (t) => M.get("/my-asset/repair", { params: t }),
918
+ getFilterOptions: (t) => M.get("/my-asset/repair/options", { params: t }),
919
+ putConfirmRepair: (t) => M.put(`/repair/${t}/confirm-repair`)
920
+ }, ut = s({
920
921
  env: "APP_GLOBAL_SETTINGS_API",
921
922
  prefix: "/v1/global-settings/auth"
922
- }), h = s({
923
+ }), q = s({
923
924
  env: "APP_TAGSAMURAI_API",
924
925
  prefix: "/settings-user-role/v2/auth"
925
- }), re = {
926
+ }), oe = {
926
927
  login: (t) => {
927
928
  const e = { ...t, isMobile: !1 };
928
- return ot.post("/login", e);
929
+ return ut.post("/login", e);
929
930
  },
930
931
  requestOTP: (t) => {
931
932
  const e = { email: t };
932
- return h.post("/request-otp", e);
933
+ return q.post("/request-otp", e);
933
934
  },
934
935
  requestResetPassLink: (t) => {
935
936
  const e = { email: t };
936
- return h.post("/request-reset-link", e);
937
+ return q.post("/request-reset-link", e);
937
938
  },
938
- setPassword: (t) => h.post("/set-password", t),
939
- verifyToken: (t) => h.get(`/verify-token/${t}`),
939
+ setPassword: (t) => q.post("/set-password", t),
940
+ verifyToken: (t) => q.get(`/verify-token/${t}`),
940
941
  confirmEmailChange: (t) => {
941
942
  const e = { token: t };
942
- return h.put("/confirm-email-change/confirm", e);
943
+ return q.put("/confirm-email-change/confirm", e);
944
+ }
945
+ }, tt = "/transfer/v2", H = s({
946
+ prefix: `${tt}/prelist`
947
+ }), c = s({
948
+ prefix: `${tt}/transaction`
949
+ }), ae = {
950
+ // ------ TRANSACTION ------
951
+ getTransactions: (t) => c.get("/", { params: t }),
952
+ getTransactionDetail: (t) => c.get(`/${t}`),
953
+ getTransactionDetailAssets: (t, e) => c.get(`/${t}/request`, { params: e }),
954
+ getRequestFilterOptions: (t, e) => {
955
+ const r = {};
956
+ return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0), c.get(`/${t}/request/options`, { params: r });
957
+ },
958
+ getTransactionLog: (t) => c.get(`/request/${t}/transaction-log`),
959
+ getTransactionOptions: (t) => {
960
+ const e = {};
961
+ return e[t] = !0, c.get("/options", { params: e });
962
+ },
963
+ postCreateTransaction: (t) => c.post("/", t),
964
+ putCancelTransactions: (t) => {
965
+ const e = { id: t };
966
+ return c.put("/cancel", e);
967
+ },
968
+ putUpdateTransaction: (t, e) => c.put(`/${t}`, e),
969
+ putCancelRequests: (t) => {
970
+ const e = { id: t };
971
+ return c.put("/request/cancel", e);
972
+ },
973
+ getHistoryByTransaction: (t) => c.get("/history", { params: t }),
974
+ getHistoryByTransactionOptions: (t) => {
975
+ const e = {};
976
+ return e[t] = !0, c.get("/history/options", { params: e });
977
+ },
978
+ getHistoryByAsset: (t) => c.get("/history/by-asset", { params: t }),
979
+ getHistoryByAssetOptions: (t) => {
980
+ const e = {};
981
+ return e[t] = !0, c.get("/history/by-asset/options", { params: e });
982
+ },
983
+ getApproverList: (t) => c.get(`/${t}/approval-history`),
984
+ putHandoverTransaction: (t, e) => c.put(`/${t}/handover`, e),
985
+ // ------ PRELIST ------
986
+ getPrelist: (t) => H.get("/", { params: t }),
987
+ deletePrelist: (t) => H.delete("/", {
988
+ params: {
989
+ id: JSON.stringify(t)
990
+ }
991
+ }),
992
+ getPrelistAssets: (t) => {
993
+ const e = { id: t };
994
+ return H.get("/request", { params: e });
943
995
  }
944
996
  };
945
997
  export {
946
- Rt as AliasCodeServices,
947
- Dt as AliasCodeServicesGo,
948
- Yt as AssetNameServices,
949
- yt as AssetServices,
950
- Jt as AssignmentServices,
951
- Kt as AssignmentServicesGo,
952
- re as AuthServices,
953
- Xt as BorrowServices,
954
- Et as BrandServices,
955
- $t as ChangelogServices,
956
- qt as CountryStateServices,
957
- ht as CustomFieldServices,
958
- xt as CustomFieldServicesGo,
959
- zt as DamageServices,
960
- Zt as DamageServicesGo,
961
- Ot as DashboardServices,
962
- kt as FileManagerServices,
963
- Bt as FileManagerServicesGo,
964
- _t as GeneralSettingsServices,
965
- Gt as GeneralSettingsServicesGo,
966
- ct as GroupCategoryServices,
967
- lt as GroupCategoryServicesGo,
968
- bt as I18nService,
969
- jt as ImportServices,
970
- Qt as ImportServicesGo,
971
- Wt as LicenseServices,
972
- At as LogServicesGo,
973
- vt as MissingServices,
974
- te as MyAssetServices,
975
- dt as NotificationApprovalServices,
976
- mt as NotificationServices,
977
- St as NotificationServicesGo,
978
- Vt as OpenAPIServices,
979
- Ht as OpenAPIServicesGo,
980
- Ft as ReaderServices,
981
- ee as RepairServices,
982
- Nt as RoleServices,
983
- Mt as RoleServicesGo,
984
- wt as ServiceCenterServices,
985
- Pt as SessionLogServices,
986
- Tt as SubUserServices,
987
- Lt as SubUserServicesGo,
988
- It as TAGServices,
989
- ft as TrackingServices,
990
- Ut as UserServices,
991
- Ct as UserServicesGo,
992
- pt as getAssetsFile,
993
- R as getBaseURL,
994
- gt as getImageURL,
995
- ut as getImageURLGo,
996
- it as queryParamsStringfy
998
+ Gt as AliasCodeServices,
999
+ ht as AliasCodeServicesGo,
1000
+ Wt as AssetNameServices,
1001
+ St as AssetServices,
1002
+ zt as AssignmentServices,
1003
+ Xt as AssignmentServicesGo,
1004
+ oe as AuthServices,
1005
+ re as BorrowServices,
1006
+ Ft as BrandServices,
1007
+ vt as ChangelogServices,
1008
+ kt as CountryStateServices,
1009
+ wt as CustomFieldServices,
1010
+ Et as CustomFieldServicesGo,
1011
+ te as DamageServices,
1012
+ ee as DamageServicesGo,
1013
+ _t as DashboardServices,
1014
+ Nt as FileManagerServices,
1015
+ Mt as FileManagerServicesGo,
1016
+ qt as GeneralSettingsServices,
1017
+ xt as GeneralSettingsServicesGo,
1018
+ $t as GroupCategoryServices,
1019
+ At as GroupCategoryServicesGo,
1020
+ Dt as I18nService,
1021
+ Jt as ImportServices,
1022
+ Kt as ImportServicesGo,
1023
+ Zt as LicenseServices,
1024
+ mt as LogServicesGo,
1025
+ Pt as MissingServices,
1026
+ se as MyAssetServices,
1027
+ yt as NotificationApprovalServices,
1028
+ It as NotificationServices,
1029
+ ft as NotificationServicesGo,
1030
+ Qt as OpenAPIServices,
1031
+ Yt as OpenAPIServicesGo,
1032
+ Ht as ReaderServices,
1033
+ ne as RepairServices,
1034
+ Vt as RoleServices,
1035
+ jt as RoleServicesGo,
1036
+ Bt as ServiceCenterServices,
1037
+ Ut as SessionLogServices,
1038
+ Lt as SubUserServices,
1039
+ Rt as SubUserServicesGo,
1040
+ Tt as TAGServices,
1041
+ Ct as TrackingServices,
1042
+ ae as TransferServices,
1043
+ bt as UserServices,
1044
+ Ot as UserServicesGo,
1045
+ dt as getAssetsFile,
1046
+ D as getBaseURL,
1047
+ lt as getImageURL,
1048
+ ct as getImageURLGo,
1049
+ pt as queryParamsStringfy
997
1050
  };