@tagsamurai/fats-api-services 1.0.0-alpha.92 → 1.0.0-alpha.94

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 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], n = (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({
1
+ import K from "axios";
2
+ const Z = { 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") => Z["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: a = "", headers: f = {}, ...D } = t, W = `${R(r)}${a}`, N = JSON.parse(localStorage.getItem("user") ?? "{}"), z = N.jwt ?? N.token ?? "";
4
+ return K.create({
5
5
  ...D,
6
- baseURL: H,
7
- headers: e ? I : {
6
+ baseURL: W,
7
+ headers: e ? f : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${J}`,
10
- ...I
9
+ Authorization: `Bearer ${z}`,
10
+ ...f
11
11
  }
12
12
  });
13
- }, et = (t) => {
13
+ }, nt = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,158 +21,158 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, rt = (t, e, r) => {
24
+ }, ot = (t, e, r) => {
25
25
  if (!t) return;
26
- const a = O("APP_API"), I = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
26
+ const a = R("APP_API"), f = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
27
  if (e || r) {
28
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()}`;
29
+ return e && (D.set("width", e.toString()), D.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${f}?${D.toString()}`;
30
30
  }
31
- return I;
32
- }, st = (t) => {
31
+ return f;
32
+ }, at = (t) => {
33
33
  if (!t) return;
34
- const e = O("APP_TAGSAMURAI_API");
34
+ const e = R("APP_TAGSAMURAI_API");
35
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
36
- }, nt = async (t, e = "excel") => await fetch(
37
- `${O("APP_ASSETS_URL")}/${e}/${t}`
38
- ), $ = n({
36
+ }, it = async (t, e = "excel") => await fetch(
37
+ `${R("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), A = s({
39
39
  prefix: "/settings-attribute/v2",
40
40
  env: "APP_TAGSAMURAI_API"
41
- }), ot = {
41
+ }), ut = {
42
42
  getGroupCategory: (t, e) => {
43
43
  const r = t === "category" ? t : "groups";
44
- return $.get(`/${r}/tree`, { params: e });
44
+ return A.get(`/${r}/tree`, { params: e });
45
45
  },
46
46
  getGroupCategoryList: (t, e, r) => {
47
47
  const a = t === "category" ? t : "groups";
48
- return $.get(`/${a}/${e}`, { params: r });
48
+ return A.get(`/${a}/${e}`, { params: r });
49
49
  },
50
50
  getNames: (t) => {
51
51
  const e = t === "category" ? t : "groups";
52
- return $.get(`/${e}/names`);
52
+ return A.get(`/${e}/names`);
53
53
  },
54
54
  getCodes: (t) => {
55
55
  const e = t === "category" ? t : "groups";
56
- return $.get(`/${e}/codes`);
56
+ return A.get(`/${e}/codes`);
57
57
  },
58
58
  postCreateGroupCategory: (t, e) => {
59
59
  const r = t === "category" ? t : "groups";
60
- return $.post(`/${r}`, e);
60
+ return A.post(`/${r}`, e);
61
61
  },
62
62
  putEditGroupCategory: (t, e, r) => {
63
63
  const a = t === "category" ? t : "groups";
64
- return $.put(`/${a}/${r}`, e);
64
+ return A.put(`/${a}/${r}`, e);
65
65
  },
66
- putMoveGroup: (t, e) => $.put(`/groups/${e}/move-group`, t),
67
- putEditBulkGroups: async (t) => $.put("/groups/bulk", t),
66
+ putMoveGroup: (t, e) => A.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => A.put("/groups/bulk", t),
68
68
  deleteGroupCategory: (t, e, r) => {
69
69
  const a = t === "category" ? t : "groups";
70
- return $.delete(`/${a}/${r}`, { data: e });
70
+ return A.delete(`/${a}/${r}`, { data: e });
71
71
  }
72
- }, y = n({
72
+ }, S = s({
73
73
  prefix: "/settings-attribute-go/v2"
74
- }), at = {
74
+ }), gt = {
75
75
  getGroupCategory: (t, e) => {
76
76
  const r = t === "category" ? t : "groups";
77
- return y.get(`/${r}/tree`, { params: e });
77
+ return S.get(`/${r}/tree`, { params: e });
78
78
  },
79
79
  getGroupCategoryList: (t, e) => {
80
80
  const r = t === "category" ? t : "groups";
81
- return y.get(`/${r}/${e}`);
81
+ return S.get(`/${r}/${e}`);
82
82
  },
83
83
  getNames: (t) => {
84
84
  const e = t === "category" ? t : "groups";
85
- return y.get(`/${e}/names`);
85
+ return S.get(`/${e}/names`);
86
86
  },
87
87
  getCodes: (t) => {
88
88
  const e = t === "category" ? t : "groups";
89
- return y.get(`/${e}/codes`);
89
+ return S.get(`/${e}/codes`);
90
90
  },
91
91
  postCreateGroupCategory: (t, e) => {
92
92
  const r = t === "category" ? t : "groups";
93
- return y.post(`/${r}`, e);
93
+ return S.post(`/${r}`, e);
94
94
  },
95
95
  putEditGroupCategory: (t, e, r) => {
96
96
  const a = t === "category" ? t : "groups";
97
- return y.put(`/${a}/${r}`, e);
97
+ return S.put(`/${a}/${r}`, e);
98
98
  },
99
99
  deleteGroupCategory: (t, e, r) => {
100
100
  const a = t === "category" ? t : "groups";
101
- return y.delete(`/${a}/${r}`, { data: e });
101
+ return S.delete(`/${a}/${r}`, { data: e });
102
102
  }
103
- }, W = n({
103
+ }, X = s({
104
104
  prefix: "/v2",
105
105
  env: "APP_LOGS_NOTIFICATION_API"
106
- }), it = {
107
- getTotalApprovals: () => W.get("/approval/count")
108
- }, R = n({
106
+ }), ct = {
107
+ getTotalApprovals: () => X.get("/approval/count")
108
+ }, G = s({
109
109
  prefix: "/v2",
110
110
  env: "APP_LOGS_NOTIFICATION_API"
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 = n({
111
+ }), pt = {
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
+ }, y = s({
118
118
  prefix: "/utility/v2"
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 = n({
119
+ }), lt = {
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
+ }, p = s({
130
130
  prefix: "/assets/v2/assets"
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 } }),
131
+ }), dt = {
132
+ getScanTag: (t) => p.get("/scan", { params: { tag: t } }),
133
+ getAllAssets: (t) => p.get("/", { params: t }),
134
+ getAllAssetsOptions: (t) => p.get("/options", { params: t }),
135
+ getAvailableAssets: (t) => p.get("/available", { params: t }),
136
+ scanAsset: (t) => p.get("", { params: { tag: t } }),
137
+ getAssetsById: (t, e) => p.get("/by-id", { params: { _id: t, ...e } }),
138
+ getOptions: (t, e) => p.get(t ? `/${t}/options` : "/options", { params: e }),
139
+ getUnlinkedAssets: (t) => p.get("/unlinked", { params: t }),
140
+ getAssetDetail: (t, e) => p.get(`/${t}`, { params: e }),
141
+ getLinkedAssetFamily: (t) => p.get("/family", { params: { id: t } }),
142
142
  matchAssetWithTag: (t, e) => {
143
143
  const r = {
144
144
  _id: JSON.stringify([t]),
145
145
  tag: e
146
146
  };
147
- return c.get("/by-id", { params: r });
147
+ return p.get("/by-id", { params: r });
148
148
  }
149
- }, B = n({
149
+ }, M = s({
150
150
  prefix: "/tracking/v2/missing"
151
- }), ct = {
151
+ }), $t = {
152
152
  putFoundAsset: (t, e) => {
153
153
  const r = { ids: [t], serialNumber: e };
154
- return B.put("/found", r);
154
+ return M.put("/found", r);
155
155
  },
156
- putReportMissing: (t, e) => B.put(`/report-missing/${t}`, e)
157
- }, N = n({
156
+ putReportMissing: (t, e) => M.put(`/report-missing/${t}`, e)
157
+ }, V = s({
158
158
  prefix: "/v2/notification",
159
159
  env: "APP_LOGS_NOTIFICATION_API"
160
- }), lt = {
161
- getNotifications: (t) => N.get("/", { params: t }),
162
- readNotification: (t) => N.put(`/${t}`)
163
- }, M = n({
160
+ }), At = {
161
+ getNotifications: (t) => V.get("/", { params: t }),
162
+ readNotification: (t) => V.put(`/${t}`)
163
+ }, H = s({
164
164
  prefix: "/utility/v2/notification"
165
- }), dt = {
166
- getNotifications: (t) => M.get("/", { params: t }),
167
- readNotification: (t) => M.put(`/${t}`)
168
- }, z = n({
165
+ }), yt = {
166
+ getNotifications: (t) => H.get("/", { params: t }),
167
+ readNotification: (t) => H.put(`/${t}`)
168
+ }, tt = s({
169
169
  prefix: "/v2/session-log",
170
170
  env: "APP_LOGS_NOTIFICATION_API"
171
- }), $t = {
172
- postLogout: () => z.post("/logout")
173
- }, o = n({
171
+ }), vt = {
172
+ postLogout: () => tt.post("/logout")
173
+ }, o = s({
174
174
  prefix: "/tag/v2"
175
- }), At = {
175
+ }), mt = {
176
176
  getScanQR: (t) => o.get("/qr", { params: { tag: t } }),
177
177
  getScanRFID: (t) => o.get("/rfid", { params: { tag: t } }),
178
178
  getRFIDQRTAG: (t) => o.get("/rfid-qr/scan", { params: t }),
@@ -208,9 +208,9 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
208
208
  },
209
209
  postScanLog: (t) => o.post("/scan-log", t),
210
210
  putReportTAG: (t, e) => o.put(`/tag-transaction/report/${t}`, e)
211
- }, E = n({
211
+ }, q = s({
212
212
  prefix: "/tracking/v2/tracking"
213
- }), vt = {
213
+ }), St = {
214
214
  putFoundAsset: (t, e, r) => {
215
215
  const a = {
216
216
  tag: t,
@@ -218,13 +218,13 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
218
218
  serialNumber: r,
219
219
  type: "Global"
220
220
  };
221
- return E.put("/found", { params: a });
221
+ return q.put("/found", { params: a });
222
222
  },
223
- putReportPermanentlyMissing: (t, e) => E.put(`/report-permanently-missing/${t}`, e),
224
- getTrackingDetail: (t) => E.get(`/${t}`)
225
- }, i = n({
223
+ putReportPermanentlyMissing: (t, e) => q.put(`/report-permanently-missing/${t}`, e),
224
+ getTrackingDetail: (t) => q.get(`/${t}`)
225
+ }, i = s({
226
226
  prefix: "/settings-user-role/v2"
227
- }), mt = {
227
+ }), Pt = {
228
228
  reLogin: (t) => i.post("/auth/login", t),
229
229
  changePassword: (t) => i.put("/users/change-password", t),
230
230
  /**
@@ -266,9 +266,9 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
266
266
  getUserDetailUserAssetAssignedList: (t, e) => i.get(`/user-detail/${t}/assets/assigned`, { params: e }),
267
267
  getUserDetailUserAssetBorrowedOption: (t, e) => i.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
268
268
  getUserDetailUserAssetAssignedOption: (t, e) => i.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
269
- }, u = n({
269
+ }, u = s({
270
270
  prefix: "/settings-user-role-go/v2"
271
- }), yt = {
271
+ }), Ut = {
272
272
  /**
273
273
  * Retrieves the user list as dropdown options.
274
274
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
@@ -308,9 +308,9 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
308
308
  getUserDetailUserAssetAssignedList: (t, e) => u.get(`/users/${t}/assigned-asset`, { params: e }),
309
309
  getUserDetailUserAssetBorrowedOption: (t, e) => u.get(`/users/${t}/borrowed-asset/option`, { params: e }),
310
310
  getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/users/${t}/assigned-asset/option`, { params: e })
311
- }, v = n({
311
+ }, v = s({
312
312
  prefix: "/settings-user-role/v2/sub-users"
313
- }), St = {
313
+ }), It = {
314
314
  // Sub User
315
315
  getSubUserList: (t, e) => v.get(`/${t}`, { params: e }),
316
316
  getSubUserOptions: (t, e) => v.get(`/${t}/option`, { params: e }),
@@ -326,53 +326,53 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
326
326
  },
327
327
  getBorrowedAsset: (t, e) => v.get(`/${t}/borrowed-asset`, { params: e }),
328
328
  getBorrowedAssetOptions: (t, e) => v.get(`/${t}/borrowed-asset/options`, { params: e })
329
- }, d = n({
329
+ }, $ = s({
330
330
  prefix: "/settings-user-role-go/v2/users"
331
- }), Pt = {
331
+ }), ft = {
332
332
  // Sub User
333
- getSubUserList: (t, e) => d.get(`/${t}/sub-users`, { params: e }),
334
- getSubUserOptions: (t, e) => d.get(`/${t}/sub-users/option`, { params: e }),
333
+ getSubUserList: (t, e) => $.get(`/${t}/sub-users`, { params: e }),
334
+ getSubUserOptions: (t, e) => $.get(`/${t}/sub-users/option`, { params: e }),
335
335
  postCreateSubUser: (t, e) => {
336
336
  const r = { "Content-Type": "multipart/form-data" };
337
- return d.post(`/${t}/sub-users`, e, { headers: r });
337
+ return $.post(`/${t}/sub-users`, e, { headers: r });
338
338
  },
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 }),
339
+ putSubUserSetActiveBulk: (t, e) => $.put(`/${t}/sub-users/set-active-bulk`, e),
340
+ deleteSubUser: (t, e) => $.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
341
341
  putEditSubUser: (t, e, r) => {
342
342
  const a = { "Content-Type": "multipart/form-data" };
343
- return d.put(`/${t}/sub-users/${e}`, r, {
343
+ return $.put(`/${t}/sub-users/${e}`, r, {
344
344
  headers: a
345
345
  });
346
346
  },
347
- getBorrowedAsset: (t, e, r) => d.get(`/${t}/sub-users/${e}/borrowed-asset`, {
347
+ getBorrowedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset`, {
348
348
  params: r
349
349
  }),
350
- getBorrowedAssetOptions: (t, e, r) => d.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
350
+ getBorrowedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
351
351
  params: r
352
352
  }),
353
- getAssignedAsset: (t, e, r) => d.get(`/${t}/sub-users/${e}/assigned-asset`, {
353
+ getAssignedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset`, {
354
354
  params: r
355
355
  }),
356
- getAssignedAssetOptions: (t, e, r) => d.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
356
+ getAssignedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
357
357
  params: r
358
358
  })
359
- }, G = n({
359
+ }, h = s({
360
360
  env: "APP_ADMIN_API",
361
361
  prefix: "/settings-attribute/languages"
362
- }), Ut = {
362
+ }), Ct = {
363
363
  /**
364
364
  * Fetch all translation messages for a specific locale.
365
365
  * @param locale The locale code (e.g., 'en', 'id').
366
366
  * @returns A promise resolving to a key-value record of messages.
367
367
  */
368
- getMessages: (t) => G.get(`/${t}/translations`),
368
+ getMessages: (t) => h.get(`/${t}/translations`),
369
369
  /**
370
370
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
371
371
  *
372
372
  * @returns Promise Array of options
373
373
  */
374
374
  getLanguageOptions: async () => {
375
- const { data: t } = await G.get(
375
+ const { data: t } = await h.get(
376
376
  "/dropdown"
377
377
  );
378
378
  return t.data;
@@ -384,7 +384,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
384
384
  * @returns Promise LanguageMeta
385
385
  */
386
386
  getLanguageOptionMeta: async (t) => {
387
- const { data: e } = await G.get(
387
+ const { data: e } = await h.get(
388
388
  "/dropdown/" + t
389
389
  );
390
390
  return e.data;
@@ -396,60 +396,60 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
396
396
  * @param locale Target locale code.
397
397
  */
398
398
  translateText: async (t, e) => {
399
- const { data: r } = await G.post("/translate", {
399
+ const { data: r } = await h.post("/translate", {
400
400
  q: t,
401
401
  target: e
402
402
  });
403
403
  return r.data.translations[t];
404
404
  }
405
- }, V = n({
405
+ }, j = s({
406
406
  prefix: "/dashboard/v2/dashboard"
407
- }), It = {
408
- getLatestTask: (t) => V.get("/latest-task", { params: t }),
409
- getSummary: (t) => V.get("/summary", { params: t })
410
- }, q = n({
407
+ }), Lt = {
408
+ getLatestTask: (t) => j.get("/latest-task", { params: t }),
409
+ getSummary: (t) => j.get("/summary", { params: t })
410
+ }, E = s({
411
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 = n({
412
+ }), Tt = {
413
+ getAliasCode: () => E.get("/"),
414
+ postAliasCode: (t) => E.post("/", t),
415
+ getAliasCodeList: (t) => E.get(`/${t.object}/code-list`, { params: t })
416
+ }, k = s({
417
417
  prefix: "/settings-attribute-go/v2/alias-code"
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 = n({
418
+ }), Ot = {
419
+ getAliasCode: () => k.get("/"),
420
+ postAliasCode: (t) => k.post("/", t),
421
+ getAliasCodeList: (t) => k.get(`/${t.object}/code-list`, { params: t })
422
+ }, Q = s({
423
423
  prefix: "/settings-attribute/v2/general-settings"
424
- }), Lt = {
425
- getGeneralSettings: () => j.get("/"),
426
- putUpdateGeneralSettings: (t) => j.put("/", t)
427
- }, Q = n({
428
- prefix: "/settings-attribute-go/v2/general-settings"
429
- }), Tt = {
424
+ }), bt = {
430
425
  getGeneralSettings: () => Q.get("/"),
431
426
  putUpdateGeneralSettings: (t) => Q.put("/", t)
432
- }, f = n({
427
+ }, Y = s({
428
+ prefix: "/settings-attribute-go/v2/general-settings"
429
+ }), Rt = {
430
+ getGeneralSettings: () => Y.get("/"),
431
+ putUpdateGeneralSettings: (t) => Y.put("/", t)
432
+ }, C = s({
433
433
  prefix: "/settings-attribute/v2/custom-field"
434
- }), bt = {
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 = n({
442
- prefix: "/settings-attribute-go/v2/custom-field"
443
- }), Ot = {
434
+ }), Dt = {
444
435
  getCustomField: async (t) => C.get("/", { params: t }),
445
436
  getOptions: async (t) => C.get("/options", { params: t }),
446
437
  postCreateCustomField: async (t, e) => C.post("/", e, { params: t }),
447
438
  putEditCustomField: async (t, e, r) => C.put(`/${r}`, e, { params: t }),
448
439
  putChangeStatus: async (t, e) => C.put("/bulk", e, { params: t }),
449
- deleteCustomField: async (t) => C.delete("/bulk", { params: t })
440
+ deleteCustomField: async (t) => C.delete("/bulk", { data: t })
441
+ }, L = s({
442
+ prefix: "/settings-attribute-go/v2/custom-field"
443
+ }), Gt = {
444
+ getCustomField: async (t) => L.get("/", { params: t }),
445
+ getOptions: async (t) => L.get("/options", { params: t }),
446
+ postCreateCustomField: async (t, e) => L.post("/", e, { params: t }),
447
+ putEditCustomField: async (t, e, r) => L.put(`/${r}`, e, { params: t }),
448
+ putChangeStatus: async (t, e) => L.put("/bulk", e, { params: t }),
449
+ deleteCustomField: async (t) => L.delete("/bulk", { params: t })
450
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({
451
+ const r = R("APP_COUNTRY_STATE_API"), a = R("APP_COUNTRY_STATE_API_KEY");
452
+ return K.create({
453
453
  baseURL: `${r}/v1`,
454
454
  headers: {
455
455
  "Content-type": "application/json",
@@ -458,13 +458,13 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
458
458
  },
459
459
  params: e
460
460
  });
461
- }, Dt = {
461
+ }, _t = {
462
462
  getCountry: () => F().get("/countries"),
463
463
  getState: (t) => F().get(`/countries/${t}/states`),
464
464
  getCity: (t, e) => F().get(`/countries/${t}/states/${e}/cities`)
465
- }, l = n({
465
+ }, l = s({
466
466
  prefix: "/routine/v2"
467
- }), Rt = {
467
+ }), ht = {
468
468
  getList: (t) => l.get("/service-center", { params: t }),
469
469
  postList: (t) => l.post("/service-center", t),
470
470
  putList: (t, e) => l.put(`/service-center/${t}`, e),
@@ -477,19 +477,19 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
477
477
  getActivityOptions: (t) => l.get("/service-activities/options", { params: t }),
478
478
  getActivityDetail: (t) => l.get(`/service-activities/${t}`),
479
479
  getActivityLog: (t) => l.get(`/service-activities/${t}/activity-log`)
480
- }, Z = n({
480
+ }, et = s({
481
481
  prefix: "/settings-attribute/v2/brands"
482
- }), _t = {
483
- getDropdown: (t) => Z.get("/dropdown", { params: t })
484
- }, L = n({
482
+ }), xt = {
483
+ getDropdown: (t) => et.get("/dropdown", { params: t })
484
+ }, T = s({
485
485
  prefix: "/file-manager/v2"
486
- }), Gt = {
486
+ }), wt = {
487
487
  /**
488
488
  * Get storage information.
489
489
  *
490
490
  * @returns {Promise<AxiosResponse>} The Axios Response.
491
491
  */
492
- getStorageInformation: () => L.get("/files/storage"),
492
+ getStorageInformation: () => T.get("/files/storage"),
493
493
  /**
494
494
  * Get file manager data.
495
495
  *
@@ -497,7 +497,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
497
497
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
498
498
  * @returns {Promise<AxiosResponse>} The Axios Response.
499
499
  */
500
- getFileManager: (t, e) => L.get(`/${t}`, { params: e }),
500
+ getFileManager: (t, e) => T.get(`/${t}`, { params: e }),
501
501
  /**
502
502
  * Get file manager options.
503
503
  *
@@ -505,7 +505,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
505
505
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
506
506
  * @returns {Promise<AxiosResponse>} The Axios Response.
507
507
  */
508
- getFileManagerOption: (t, e) => L.get(`/${t}/options`, { params: e }),
508
+ getFileManagerOption: (t, e) => T.get(`/${t}/options`, { params: e }),
509
509
  /**
510
510
  * Recover files.
511
511
  *
@@ -513,7 +513,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
513
513
  * @param {object} body - The body of the request.
514
514
  * @returns {Promise<AxiosResponse>} The Axios Response.
515
515
  */
516
- recoverFiles: (t, e) => L.put(`/${t}/recover`, e),
516
+ recoverFiles: (t, e) => T.put(`/${t}/recover`, e),
517
517
  /**
518
518
  * Delete files.
519
519
  *
@@ -521,7 +521,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
521
521
  * @param {DeleteFileManagerDto} params - The params of the request.
522
522
  * @returns {Promise<AxiosResponse>} The Axios Response.
523
523
  */
524
- deleteFiles: (t, e) => L.delete(`/${t}`, { params: e }),
524
+ deleteFiles: (t, e) => T.delete(`/${t}`, { params: e }),
525
525
  /**
526
526
  * Delete files permanently.
527
527
  *
@@ -529,16 +529,16 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
529
529
  * @param {object} body - The body of the request.
530
530
  * @returns {Promise<AxiosResponse>} The Axios Response.
531
531
  */
532
- deletePermanently: (t, e) => L.delete(`/${t}/delete-permanent`, { params: e })
533
- }, T = n({
532
+ deletePermanently: (t, e) => T.delete(`/${t}/delete-permanent`, { params: e })
533
+ }, O = s({
534
534
  prefix: "/utility/v2"
535
- }), ht = {
535
+ }), qt = {
536
536
  /**
537
537
  * Get storage information.
538
538
  *
539
539
  * @returns {Promise<AxiosResponse>} The Axios Response.
540
540
  */
541
- getStorageInformation: () => T.get("/files/storage"),
541
+ getStorageInformation: () => O.get("/files/storage"),
542
542
  /**
543
543
  * Get file manager data.
544
544
  *
@@ -546,7 +546,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
546
546
  * @param {FileManagerFilterParams} [params] - The parameters for filtering.
547
547
  * @returns {Promise<AxiosResponse>} The Axios Response.
548
548
  */
549
- getFileManager: (t, e) => T.get(`/${t}`, { params: e }),
549
+ getFileManager: (t, e) => O.get(`/${t}`, { params: e }),
550
550
  /**
551
551
  * Get file manager options.
552
552
  *
@@ -554,7 +554,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
554
554
  * @param {FileManagerOptionBoolean} [params] - The parameters for options.
555
555
  * @returns {Promise<AxiosResponse>} The Axios Response.
556
556
  */
557
- getFileManagerOption: (t, e) => T.get(`/${t}/options`, { params: e }),
557
+ getFileManagerOption: (t, e) => O.get(`/${t}/options`, { params: e }),
558
558
  /**
559
559
  * Recover files.
560
560
  *
@@ -562,7 +562,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
562
562
  * @param {object} body - The body of the request.
563
563
  * @returns {Promise<AxiosResponse>} The Axios Response.
564
564
  */
565
- recoverFiles: (t, e) => T.put(`/${t}/recover`, e),
565
+ recoverFiles: (t, e) => O.put(`/${t}/recover`, e),
566
566
  /**
567
567
  * Delete files.
568
568
  *
@@ -570,7 +570,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
570
570
  * @param {DeleteFileManagerDto} params - The params of the request.
571
571
  * @returns {Promise<AxiosResponse>} The Axios Response.
572
572
  */
573
- deleteFiles: (t, e) => T.delete(`/${t}`, { params: e }),
573
+ deleteFiles: (t, e) => O.delete(`/${t}`, { params: e }),
574
574
  /**
575
575
  * Delete files permanently.
576
576
  *
@@ -578,10 +578,10 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
578
578
  * @param {object} body - The body of the request.
579
579
  * @returns {Promise<AxiosResponse>} The Axios Response.
580
580
  */
581
- deletePermanently: (t, e) => T.delete(`/${t}/delete-permanent`, { params: e })
582
- }, m = n({
581
+ deletePermanently: (t, e) => O.delete(`/${t}/delete-permanent`, { params: e })
582
+ }, m = s({
583
583
  prefix: "/iot/v2/reader"
584
- }), xt = {
584
+ }), Et = {
585
585
  getData: (t) => m.get("/", { params: t }),
586
586
  getDataOptions: (t) => m.get("/options", { params: t }),
587
587
  getActivityLogData: (t) => m.get("/activity-log", { params: t }),
@@ -590,9 +590,9 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
590
590
  getChangeLog: (t) => m.get(`/${t.id}/change-log`, { params: t }),
591
591
  getChangeLogOptions: (t) => m.get(`/${t.id}/change-log/options`, { params: t }),
592
592
  putData: (t, e) => m.put(`/${t}`, e)
593
- }, g = n({
593
+ }, g = s({
594
594
  prefix: "/settings-user-role/v2"
595
- }), Et = {
595
+ }), kt = {
596
596
  /**
597
597
  * Retrieves the transaction role for the given group and transaction name.
598
598
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
@@ -676,17 +676,17 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
676
676
  }
677
677
  return g.delete("/system-roles", { data: t });
678
678
  }
679
- }, p = n({
679
+ }, c = s({
680
680
  prefix: "/settings-user-role-go/v2"
681
- }), qt = {
681
+ }), Ft = {
682
682
  /**
683
683
  * Retrieves the transaction role for the given group and transaction name.
684
684
  * @param {string} groupId - The ID of the group to retrieve the transaction role for.
685
685
  * @param {string} transactionName - The name of the transaction to retrieve the role for.
686
686
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
687
687
  */
688
- getTransactionRole: (t, e) => p.get(`/transaction-roles/${t}/${e}`),
689
- getTransactionRoleTypes: (t, e) => p.get(`/transaction-roles/${e}/types`, {
688
+ getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
689
+ getTransactionRoleTypes: (t, e) => c.get(`/transaction-roles/${e}/types`, {
690
690
  params: { groupKeys: t }
691
691
  }),
692
692
  /**
@@ -696,7 +696,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
696
696
  * @param {UpdateUser} body - The request body containing the updated user information.
697
697
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
698
698
  */
699
- putUpdateUsers: (t, e, r) => p.put(
699
+ putUpdateUsers: (t, e, r) => c.put(
700
700
  `/transaction-roles/${t}/${e}/update-user`,
701
701
  r
702
702
  ),
@@ -707,7 +707,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
707
707
  * @param {UserApprovalLevel} body - The request body containing the updated approval level.
708
708
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
709
709
  */
710
- putUpdateLevel: (t, e, r) => p.put(
710
+ putUpdateLevel: (t, e, r) => c.put(
711
711
  `/transaction-roles/${t}/${e}/update-approval-level`,
712
712
  r
713
713
  ),
@@ -718,222 +718,250 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
718
718
  * @param {GroupManageByParent} body - The request body containing the updated management settings.
719
719
  * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
720
720
  */
721
- putUpdateGroupManage: (t, e, r) => p.put(
721
+ putUpdateGroupManage: (t, e, r) => c.put(
722
722
  `/transaction-roles/${t}/${e}/update-manage-by-parent`,
723
723
  r
724
724
  ),
725
- getUserAssignedSystemRole: (t) => p.get(`/system-roles/user/${t}`),
726
- getAssignedUserAmounts: () => p.get("/system-roles/amounts"),
725
+ getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
726
+ getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
727
727
  getPermissionUser: (t, e) => {
728
728
  if (["totalControl", "readOnly"].includes(t ?? "")) {
729
729
  const r = t === "totalControl" ? "total-control" : "read-only";
730
- return p.get(`/system-roles/total-control-read-only/${r}`, {
730
+ return c.get(`/system-roles/total-control-read-only/${r}`, {
731
731
  params: e
732
732
  });
733
733
  }
734
- return p.get(`/system-roles/permission/${t}`, { params: e });
734
+ return c.get(`/system-roles/permission/${t}`, { params: e });
735
735
  },
736
736
  getPermissionUserOptions: (t, e) => {
737
737
  if (["totalControl", "readOnly"].includes(t ?? "")) {
738
738
  const r = t === "totalControl" ? "total-control" : "read-only";
739
- return p.get(`/system-roles/total-control-read-only/${r}/options`, {
739
+ return c.get(`/system-roles/total-control-read-only/${r}/options`, {
740
740
  params: e
741
741
  });
742
742
  }
743
- return p.get(`/system-roles/permission/${t}/options`, {
743
+ return c.get(`/system-roles/permission/${t}/options`, {
744
744
  params: e
745
745
  });
746
746
  },
747
- getUserGroups: (t, e) => p.get(`/system-roles/permission/${e}/groups`, {
747
+ getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
748
748
  params: t
749
749
  }),
750
750
  postAssignUser: (t, e) => {
751
751
  if (["totalControl", "readOnly"].includes(e ?? "")) {
752
752
  const r = e === "totalControl" ? "total-control" : "read-only";
753
- return p.post(`/system-roles/total-control-read-only/${r}`, t);
753
+ return c.post(`/system-roles/total-control-read-only/${r}`, t);
754
754
  }
755
- return p.post(`/system-roles/permission/${e}`, t);
755
+ return c.post(`/system-roles/permission/${e}`, t);
756
756
  },
757
- putEditUser: (t, e) => p.put(`/system-roles/${e}`, t),
757
+ putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
758
758
  deleteRemoveUser: (t, e) => {
759
759
  if (["totalControl", "readOnly"].includes(e ?? "")) {
760
760
  const r = e === "totalControl" ? "total-control" : "read-only";
761
- return p.put(`/system-roles/total-control-read-only/${r}`, t);
761
+ return c.put(`/system-roles/total-control-read-only/${r}`, t);
762
762
  }
763
- return p.put("/system-roles", t);
763
+ return c.put("/system-roles", t);
764
764
  }
765
- }, _ = n({
765
+ }, _ = s({
766
766
  prefix: "/settings-attribute/v2/open-api"
767
- }), wt = {
767
+ }), Bt = {
768
768
  getOpenAPIDocs: (t) => _.get(`/${t.doc}`),
769
769
  putGenerateToken: () => _.put("/generate"),
770
770
  // This is if the dummy was not dummy
771
771
  getToken: () => _.get(""),
772
772
  putRequestOpenAPI: () => _.put("/request"),
773
773
  putCancelRequestOpenAPI: () => _.put("/cancel-request")
774
- }, h = n({
774
+ }, x = s({
775
775
  prefix: "/settings-attribute-go/v2/open-api"
776
- }), Ft = {
777
- putGenerateToken: () => h.put("/generate"),
776
+ }), Nt = {
777
+ putGenerateToken: () => x.put("/generate"),
778
778
  // This is if the dummy was not dummy
779
- getToken: () => h.get(""),
780
- putRequestOpenAPI: () => h.put("/request"),
781
- putCancelRequestOpenAPI: () => h.put("/cancel-request")
782
- }, S = n({
779
+ getToken: () => x.get(""),
780
+ putRequestOpenAPI: () => x.put("/request"),
781
+ putCancelRequestOpenAPI: () => x.put("/cancel-request")
782
+ }, P = s({
783
783
  prefix: "/import/v2"
784
- }), kt = {
785
- getImport: (t, e) => S.get(`/${t}`, { params: e }),
786
- postImportTemporary: (t, e) => {
787
- const r = { "Content-Type": "multipart/form-data" };
788
- return S.post(`/${t}/temporary`, e, { headers: r });
789
- },
790
- deleteImportTemporary: (t, e) => S.delete(`/${t}/temporary`, { data: e }),
791
- postDuplicateImport: (t, e) => S.post(`/${t}/duplicate`, e),
792
- putEditImport: (t, e) => S.put(`/${t}`, e),
793
- postImport: (t, e, r) => S.post(t, r, { signal: e.signal }),
794
- putImportCancelProgress: (t) => S.put(`/${t}/cancel-progress`)
795
- }, P = n({
796
- prefix: "/import-go/v2"
797
- }), Bt = {
784
+ }), Mt = {
798
785
  getImport: (t, e) => P.get(`/${t}`, { params: e }),
799
786
  postImportTemporary: (t, e) => {
800
787
  const r = { "Content-Type": "multipart/form-data" };
801
788
  return P.post(`/${t}/temporary`, e, { headers: r });
802
789
  },
803
- deleteImportTemporary: (t, e) => P.delete(`/${t}/temporary`, { params: e }),
790
+ deleteImportTemporary: (t, e) => P.delete(`/${t}/temporary`, { data: e }),
804
791
  postDuplicateImport: (t, e) => P.post(`/${t}/duplicate`, e),
805
792
  putEditImport: (t, e) => P.put(`/${t}`, e),
806
793
  postImport: (t, e, r) => P.post(t, r, { signal: e.signal }),
807
794
  putImportCancelProgress: (t) => P.put(`/${t}/cancel-progress`)
808
- }, b = n({
795
+ }, U = s({
796
+ prefix: "/import-go/v2"
797
+ }), Vt = {
798
+ getImport: (t, e) => U.get(`/${t}`, { params: e }),
799
+ postImportTemporary: (t, e) => {
800
+ const r = { "Content-Type": "multipart/form-data" };
801
+ return U.post(`/${t}/temporary`, e, { headers: r });
802
+ },
803
+ deleteImportTemporary: (t, e) => U.delete(`/${t}/temporary`, { params: e }),
804
+ postDuplicateImport: (t, e) => U.post(`/${t}/duplicate`, e),
805
+ putEditImport: (t, e) => U.put(`/${t}`, e),
806
+ postImport: (t, e, r) => U.post(t, r, { signal: e.signal }),
807
+ putImportCancelProgress: (t) => U.put(`/${t}/cancel-progress`)
808
+ }, b = s({
809
809
  prefix: "/settings-attribute/v2/asset-name"
810
- }), Nt = {
810
+ }), Ht = {
811
811
  getDropdown: (t) => b.get("/dropdown", { params: t }),
812
812
  getAssetNameDetail: (t) => b.get(`/${t}`),
813
813
  getAssetsByAssetName: (t, e) => b.get(`/${t}/list-asset`, { params: e }),
814
814
  getAssetNameList: (t) => b.get("/", { params: t }),
815
815
  getUnpairedAssetName: (t) => b.get("/unpaired", { params: t }),
816
816
  getOptions: (t) => b.get("/options", { params: t })
817
- }, s = n({
817
+ }, n = s({
818
818
  prefix: "/assignment/v2"
819
- }), Mt = {
820
- getPreListData: (t) => s.get("/prelist", { params: t }),
821
- getPreListOptions: (t) => s.get("/prelist/options", { params: t }),
822
- getRequestData: (t) => s.get("/prelist/request", { params: t }),
823
- getDetailRequestData: (t, e) => s.get(`/transaction/${t}/request`, { params: e }),
824
- getDetailRequestOption: (t, e) => s.get(`/transaction/${e}/request/options`, { params: t }),
825
- getTransactionData: (t) => s.get("/transaction", { params: t }),
826
- getTransactionOptions: (t) => s.get("/transaction/options", { params: t }),
827
- getDetailTransactionData: (t) => s.get(`/transaction/${t}`),
828
- getTransactionApprovals: (t) => s.get(`/approval/transaction/${t}/transaction`),
829
- getDetailTransactionLog: (t) => s.get(`/transaction/request/${t}/transaction-log`),
830
- getVerifyAsset: (t, e) => s.get(`/transaction/${e}/request/scan`, { params: t }),
831
- putEditAssignedUser: (t, e) => s.put(`/transaction/${t}/user`, e),
832
- putEditEmailConfirmation: (t, e) => s.put(`/transaction/${t}/update-email-or-assigned-user`, e),
833
- postSendConfirmationEmail: (t) => s.post(`/transaction/${t}/send-confirmation-email`),
834
- postTransaction: (t) => s.post("/transaction", t),
835
- putTransaction: (t, e) => s.put(`/transaction/${t}/request`, e),
836
- putCancelTransaction: (t) => s.put("/transaction/cancel", t),
837
- putCancelAssignmentRequest: (t) => s.put("/transaction/request/cancel", t),
838
- putVerifyRequest: (t, e) => s.put(`/transaction/${e}/verify-requests`, t),
839
- putVerifyToken: (t) => s.put("/transaction/verify-token", t),
840
- putHandoverConfirm: (t) => s.put("/transaction/handover-confirmation", t),
841
- putAssignHandover: (t) => s.put(`/transaction/${t}/handover`),
842
- deletePrelistData: (t) => s.delete("/prelist", { params: t }),
843
- deleteRequestPrelistData: (t) => s.delete("/prelist/request", { data: t }),
844
- getAssignedByAsset: (t) => s.get("/transaction/request/assigned/by-asset", { params: t }),
845
- getAssignedByAssetOptions: (t) => s.get("/transaction/request/assigned/by-asset/options", {
819
+ }), jt = {
820
+ getPreListData: (t) => n.get("/prelist", { params: t }),
821
+ getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
822
+ getRequestData: (t) => n.get("/prelist/request", { params: t }),
823
+ getDetailRequestData: (t, e) => n.get(`/transaction/${t}/request`, { params: e }),
824
+ getDetailRequestOption: (t, e) => n.get(`/transaction/${e}/request/options`, { params: t }),
825
+ getTransactionData: (t) => n.get("/transaction", { params: t }),
826
+ getTransactionOptions: (t) => n.get("/transaction/options", { params: t }),
827
+ getDetailTransactionData: (t) => n.get(`/transaction/${t}`),
828
+ getTransactionApprovals: (t) => n.get(`/approval/transaction/${t}/transaction`),
829
+ getDetailTransactionLog: (t) => n.get(`/transaction/request/${t}/transaction-log`),
830
+ getVerifyAsset: (t, e) => n.get(`/transaction/${e}/request/scan`, { params: t }),
831
+ putEditAssignedUser: (t, e) => n.put(`/transaction/${t}/user`, e),
832
+ putEditEmailConfirmation: (t, e) => n.put(`/transaction/${t}/update-email-or-assigned-user`, e),
833
+ postSendConfirmationEmail: (t) => n.post(`/transaction/${t}/send-confirmation-email`),
834
+ postTransaction: (t) => n.post("/transaction", t),
835
+ putTransaction: (t, e) => n.put(`/transaction/${t}/request`, e),
836
+ putCancelTransaction: (t) => n.put("/transaction/cancel", t),
837
+ putCancelAssignmentRequest: (t) => n.put("/transaction/request/cancel", t),
838
+ putVerifyRequest: (t, e) => n.put(`/transaction/${e}/verify-requests`, t),
839
+ putVerifyToken: (t) => n.put("/transaction/verify-token", t),
840
+ putHandoverConfirm: (t) => n.put("/transaction/handover-confirmation", t),
841
+ putAssignHandover: (t) => n.put(`/transaction/${t}/handover`),
842
+ deletePrelistData: (t) => n.delete("/prelist", { params: t }),
843
+ deleteRequestPrelistData: (t) => n.delete("/prelist/request", { data: t }),
844
+ getAssignedByAsset: (t) => n.get("/transaction/request/assigned/by-asset", { params: t }),
845
+ getAssignedByAssetOptions: (t) => n.get("/transaction/request/assigned/by-asset/options", {
846
846
  params: t
847
847
  }),
848
- getAssignedByUser: (t) => s.get("/transaction/request/assigned/by-user", { params: t }),
849
- getAssignedByUserOptions: (t) => s.get("/transaction/request/assigned/by-user/options", { params: t }),
850
- postUnassignPrelistAsset: (t) => s.post("/prelist", t),
851
- postUnassignPrelistUser: (t) => s.post("/prelist/unassign/by-user", t),
852
- putUnassignRequest: (t) => s.put("/transaction/request/unassign", t),
853
- putReportDone: (t, e) => s.put(`/transaction/${t}/confirm-report-done`, e),
848
+ getAssignedByUser: (t) => n.get("/transaction/request/assigned/by-user", { params: t }),
849
+ getAssignedByUserOptions: (t) => n.get("/transaction/request/assigned/by-user/options", { params: t }),
850
+ postUnassignPrelistAsset: (t) => n.post("/prelist", t),
851
+ postUnassignPrelistUser: (t) => n.post("/prelist/unassign/by-user", t),
852
+ putUnassignRequest: (t) => n.put("/transaction/request/unassign", t),
853
+ putReportDone: (t, e) => n.put(`/transaction/${t}/confirm-report-done`, e),
854
854
  getHistory: (t, e) => {
855
855
  const r = t.split(" ").join("-").toLowerCase();
856
- return s.get(`/transaction/history/${r}`, { params: e });
857
- },
858
- getHistoryOptions: (t) => s.get("/transaction/history/options", { params: t }),
859
- getHistoryByTransactionOptions: (t) => s.get("/transaction/history/by-transaction/options", { params: t }),
860
- putCancelReport: (t) => s.put("/transaction/request/cancel-report", t),
861
- getTaskAssignment: async (t) => s.get("/transaction/my-asset/task", { params: t }),
862
- getTaskAssignmentOptions: async (t) => s.get("/transaction/my-asset/task/options", { params: t }),
863
- getAssignedAsset: async (t) => s.get("/transaction/my-asset/assigned-asset", { params: t }),
864
- getAssignedAssetOptions: async (t) => s.get("/transaction/my-asset/assigned-asset/options", { params: t }),
865
- putCancelAssignment: async (t) => s.put("/transaction/cancel", { id: t.id }),
866
- putCancelReportById: async (t) => s.put(`/transaction/request/${t.id}/cancel-report`)
867
- }, U = n({
856
+ return n.get(`/transaction/history/${r}`, { params: e });
857
+ },
858
+ getHistoryOptions: (t) => n.get("/transaction/history/options", { params: t }),
859
+ getHistoryByTransactionOptions: (t) => n.get("/transaction/history/by-transaction/options", { params: t }),
860
+ putCancelReport: (t) => n.put("/transaction/request/cancel-report", t),
861
+ getTaskAssignment: async (t) => n.get("/transaction/my-asset/task", { params: t }),
862
+ getTaskAssignmentOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
863
+ getAssignedAsset: async (t) => n.get("/transaction/my-asset/assigned-asset", { params: t }),
864
+ getAssignedAssetOptions: async (t) => n.get("/transaction/my-asset/assigned-asset/options", { params: t }),
865
+ putCancelAssignment: async (t) => n.put("/transaction/cancel", { id: t.id }),
866
+ putCancelReportById: async (t) => n.put(`/transaction/request/${t.id}/cancel-report`)
867
+ }, I = s({
868
868
  prefix: "/assignment-go/v2"
869
- }), Vt = {
870
- getTransactionData: (t) => U.get("/transaction", { params: t }),
871
- getTransactionOptions: (t) => U.get("/transaction/options", { params: t }),
872
- getDetailTransactionLog: (t) => U.get(`/transaction/request/${t}/transaction-log`),
873
- postTransaction: (t) => U.post("/transaction", t),
874
- putTransaction: (t) => U.put("/transaction", t),
875
- putUnassignTransaction: (t) => U.put("/transaction/unassign", t),
876
- putCancelReport: (t) => U.put("/transaction/request/cancel-report", t)
877
- }, x = n({
869
+ }), Qt = {
870
+ getTransactionData: (t) => I.get("/transaction", { params: t }),
871
+ getTransactionOptions: (t) => I.get("/transaction/options", { params: t }),
872
+ getDetailTransactionLog: (t) => I.get(`/transaction/request/${t}/transaction-log`),
873
+ postTransaction: (t) => I.post("/transaction", t),
874
+ putTransaction: (t) => I.put("/transaction", t),
875
+ putUnassignTransaction: (t) => I.put("/transaction/unassign", t),
876
+ putCancelReport: (t) => I.put("/transaction/request/cancel-report", t)
877
+ }, w = s({
878
878
  prefix: "/license/v2"
879
- }), jt = {
880
- getGroupQuota: (t) => x.get(`/${t}/allocation-quota`),
881
- getSubGroupQuota: (t) => x.get(`/${t}/subgroup-quota`),
882
- editSubGroupQuota: (t, e) => x.put(`/${t}/set-group-quota`, e),
883
- getTotalLicense: () => x.get("/total-license")
884
- }, X = n({
879
+ }), Yt = {
880
+ getGroupQuota: (t) => w.get(`/${t}/allocation-quota`),
881
+ getSubGroupQuota: (t) => w.get(`/${t}/subgroup-quota`),
882
+ editSubGroupQuota: (t, e) => w.put(`/${t}/set-group-quota`, e),
883
+ getTotalLicense: () => w.get("/total-license")
884
+ }, rt = s({
885
885
  prefix: "/repair/v2/damage"
886
- }), Qt = {
886
+ }), Jt = {
887
887
  putReportDamage: (t, e) => {
888
888
  const r = { "Content-Type": "multipart/form-data" };
889
- return X.put(`/report-damage/${t}`, e, { headers: r });
889
+ return rt.put(`/report-damage/${t}`, e, { headers: r });
890
890
  }
891
+ }, d = s({
892
+ prefix: "/borrowing/v2"
893
+ }), Kt = {
894
+ getTaskBorrowing: async (t) => d.get("/transaction/my-asset/task", { params: t }),
895
+ getTaskBorrowingOptions: async (t) => d.get("/transaction/my-asset/task/options", { params: t }),
896
+ getBorrowedAsset: async (t) => d.get("/transaction/my-asset/borrowed-asset", { params: t }),
897
+ getBorrowedOptions: async (t) => d.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
898
+ getHistory: async (t) => d.get("/transaction/my-asset/history", { params: t }),
899
+ getHistoryOptions: async (t) => d.get("/transaction/my-asset/history/options", { params: t }),
900
+ putCancelBorrowing: async (t) => d.put("/transaction/cancel", { id: t.id }),
901
+ putCancelExtensionRequest: async (t) => d.put(`/transaction/${t.id}/cancel-extension`),
902
+ putCancelRequestReport: async (t) => d.put(`/transaction/request/${t.id}/cancel-report`),
903
+ putDeclineExtensionRequest: async (t) => d.put("transaction/request/decline", t),
904
+ putUpdateRequestExtension: async (t) => d.put("transaction/request/duration", t)
905
+ }, J = s({
906
+ prefix: "/assets/v2"
907
+ }), Wt = {
908
+ getHistory: async (t) => J.get("/my-asset", { params: t }),
909
+ getHistoryOptions: async (t) => J.get("/my-asset/options", { params: t })
910
+ }, B = s({
911
+ prefix: "/repair/v2"
912
+ }), zt = {
913
+ getRepairList: (t) => B.get("/my-asset/repair", { params: t }),
914
+ getFilterOptions: (t) => B.get("/my-asset/repair/options", { params: t }),
915
+ putConfirmRepair: (t) => B.put(`/repair/${t}/confirm-repair`)
891
916
  };
892
917
  export {
893
- ft as AliasCodeServices,
894
- Ct as AliasCodeServicesGo,
895
- Nt as AssetNameServices,
896
- pt as AssetServices,
897
- Mt as AssignmentServices,
898
- Vt as AssignmentServicesGo,
899
- _t as BrandServices,
900
- ut as ChangelogServices,
901
- Dt as CountryStateServices,
902
- bt as CustomFieldServices,
903
- Ot as CustomFieldServicesGo,
904
- Qt as DamageServices,
905
- It as DashboardServices,
906
- Gt as FileManagerServices,
907
- ht as FileManagerServicesGo,
908
- Lt as GeneralSettingsServices,
909
- Tt as GeneralSettingsServicesGo,
910
- ot as GroupCategoryServices,
911
- at as GroupCategoryServicesGo,
912
- Ut as I18nService,
913
- kt as ImportServices,
914
- Bt as ImportServicesGo,
915
- jt as LicenseServices,
916
- gt as LogServicesGo,
917
- ct as MissingServices,
918
- it as NotificationApprovalServices,
919
- lt as NotificationServices,
920
- dt as NotificationServicesGo,
921
- wt as OpenAPIServices,
922
- Ft as OpenAPIServicesGo,
923
- xt as ReaderServices,
924
- Et as RoleServices,
925
- qt as RoleServicesGo,
926
- Rt as ServiceCenterServices,
927
- $t as SessionLogServices,
928
- St as SubUserServices,
929
- Pt as SubUserServicesGo,
930
- At as TAGServices,
931
- vt as TrackingServices,
932
- mt as UserServices,
933
- yt as UserServicesGo,
934
- nt as getAssetsFile,
935
- O as getBaseURL,
936
- st as getImageURL,
937
- rt as getImageURLGo,
938
- et as queryParamsStringfy
918
+ Tt as AliasCodeServices,
919
+ Ot as AliasCodeServicesGo,
920
+ Ht as AssetNameServices,
921
+ dt as AssetServices,
922
+ jt as AssignmentServices,
923
+ Qt as AssignmentServicesGo,
924
+ Kt as BorrowServices,
925
+ xt as BrandServices,
926
+ pt as ChangelogServices,
927
+ _t as CountryStateServices,
928
+ Dt as CustomFieldServices,
929
+ Gt as CustomFieldServicesGo,
930
+ Jt as DamageServices,
931
+ Lt as DashboardServices,
932
+ wt as FileManagerServices,
933
+ qt as FileManagerServicesGo,
934
+ bt as GeneralSettingsServices,
935
+ Rt as GeneralSettingsServicesGo,
936
+ ut as GroupCategoryServices,
937
+ gt as GroupCategoryServicesGo,
938
+ Ct as I18nService,
939
+ Mt as ImportServices,
940
+ Vt as ImportServicesGo,
941
+ Yt as LicenseServices,
942
+ lt as LogServicesGo,
943
+ $t as MissingServices,
944
+ Wt as MyAssetServices,
945
+ ct as NotificationApprovalServices,
946
+ At as NotificationServices,
947
+ yt as NotificationServicesGo,
948
+ Bt as OpenAPIServices,
949
+ Nt as OpenAPIServicesGo,
950
+ Et as ReaderServices,
951
+ zt as RepairServices,
952
+ kt as RoleServices,
953
+ Ft as RoleServicesGo,
954
+ ht as ServiceCenterServices,
955
+ vt as SessionLogServices,
956
+ It as SubUserServices,
957
+ ft as SubUserServicesGo,
958
+ mt as TAGServices,
959
+ St as TrackingServices,
960
+ Pt as UserServices,
961
+ Ut as UserServicesGo,
962
+ it as getAssetsFile,
963
+ R as getBaseURL,
964
+ at as getImageURL,
965
+ ot as getImageURLGo,
966
+ nt as queryParamsStringfy
939
967
  };