@tagsamurai/fats-api-services 1.0.0-alpha.8 → 1.0.0-alpha.80

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.
Files changed (82) hide show
  1. package/api-services.es.js +821 -45
  2. package/api-services.system.js +1 -1
  3. package/main.d.ts +36 -2
  4. package/package.json +1 -1
  5. package/src/dto/aliasCode.dto.d.ts +4 -0
  6. package/src/dto/assetName.dto.d.ts +8 -0
  7. package/src/dto/customField.dto.d.ts +16 -0
  8. package/src/dto/dashboard.dto.d.ts +15 -0
  9. package/src/dto/fileManager.dto.d.ts +25 -0
  10. package/src/dto/groupCategoryService.dto.d.ts +4 -3
  11. package/src/dto/importData.dto.d.ts +7 -0
  12. package/src/dto/importTemporaryData.dto.d.ts +6 -0
  13. package/src/dto/license.dto.d.ts +4 -0
  14. package/src/dto/log.dto.d.ts +1 -1
  15. package/src/dto/notification.dto.d.ts +9 -0
  16. package/src/dto/oldAssetService.dto.d.ts +27 -0
  17. package/src/dto/openApi.dto.d.ts +3 -0
  18. package/src/dto/role.dto.d.ts +50 -0
  19. package/src/dto/serviceCenter.dto.d.ts +22 -0
  20. package/src/dto/subUser.dto.d.ts +46 -0
  21. package/src/dto/user.dto.d.ts +221 -0
  22. package/src/services/aliasCode.service.d.ts +10 -0
  23. package/src/services/countryState.service.d.ts +7 -0
  24. package/src/services/customField.service.d.ts +18 -0
  25. package/src/services/fileManager.service.d.ts +53 -0
  26. package/src/services/generalSettings.service.d.ts +6 -0
  27. package/src/services/groupCategory.service.d.ts +3 -2
  28. package/src/services/i18n.service.d.ts +32 -0
  29. package/src/services/importData.service.d.ts +24 -0
  30. package/src/services/log.service.d.ts +20 -0
  31. package/src/services/notification.service.d.ts +9 -0
  32. package/src/services/oldAliasCode.service.d.ts +10 -0
  33. package/src/services/oldAsset.service.d.ts +21 -0
  34. package/src/services/oldAssetName.service.d.ts +14 -0
  35. package/src/services/oldBrand.service.d.ts +7 -0
  36. package/src/services/oldCustomField.service.d.ts +16 -0
  37. package/src/services/oldDashboard.service.d.ts +7 -0
  38. package/src/services/oldFileManager.service.d.ts +53 -0
  39. package/src/services/oldGeneralSettings.service.d.ts +6 -0
  40. package/src/services/oldGroupCategory.service.d.ts +5 -4
  41. package/src/services/oldImportData.service.d.ts +22 -0
  42. package/src/services/oldLicense.service.d.ts +9 -0
  43. package/src/services/oldMissing.service.d.ts +5 -0
  44. package/src/services/oldNotification.service.d.ts +7 -0
  45. package/src/services/oldOpenApi.service.d.ts +10 -0
  46. package/src/services/oldReader.service.d.ts +13 -0
  47. package/src/services/oldRole.service.d.ts +56 -0
  48. package/src/services/oldServiceCenter.service.d.ts +19 -0
  49. package/src/services/oldSessionLog.service.d.ts +5 -0
  50. package/src/services/oldSubUser.service.d.ts +15 -0
  51. package/src/services/oldTag.service.d.ts +33 -0
  52. package/src/services/oldTracking.service.d.ts +5 -0
  53. package/src/services/oldUser.service.d.ts +51 -0
  54. package/src/services/openApi.service.d.ts +8 -0
  55. package/src/services/role.service.d.ts +55 -0
  56. package/src/services/subUser.service.d.ts +17 -0
  57. package/src/services/user.service.d.ts +41 -0
  58. package/src/types/aliasCode.type.d.ts +16 -0
  59. package/src/types/customField.type.d.ts +43 -0
  60. package/src/types/dataTable.type.d.ts +7 -0
  61. package/src/types/fetchResponse.type.d.ts +7 -0
  62. package/src/types/fileManager.type.d.ts +24 -0
  63. package/src/types/group.type.d.ts +5 -0
  64. package/src/types/groupCategoryData.type.d.ts +3 -10
  65. package/src/types/i18nService.type.d.ts +22 -0
  66. package/src/types/importData.type.d.ts +92 -0
  67. package/src/types/notification.type.d.ts +17 -0
  68. package/src/types/oldAssetService.type.d.ts +98 -0
  69. package/src/types/oldTagService.type.d.ts +155 -0
  70. package/src/types/reader.d.ts +55 -0
  71. package/src/types/role.type.d.ts +121 -0
  72. package/src/types/serviceCenter.type.d.ts +29 -0
  73. package/src/types/subUser.type.d.ts +28 -0
  74. package/src/types/user.type.d.ts +212 -0
  75. package/src/types/userAsset.type.d.ts +18 -0
  76. package/src/types/userGlobalRole.type.d.ts +28 -0
  77. package/src/types/userGroupRole.type.d.ts +30 -0
  78. package/src/types/userLog.type.d.ts +18 -0
  79. package/src/types/userTransactionRole.type.d.ts +11 -0
  80. package/src/utils/getAssetsFile.util.d.ts +1 -0
  81. package/src/utils/index.d.ts +1 -0
  82. package/src/services/asset.service.d.ts +0 -5
@@ -1,16 +1,16 @@
1
- import P from "axios";
2
- const _ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_API: "https://dev-api.tagsamurai.com", VITE_APP_COUNTRY_STATE_API: "https://api.countrystatecity.in", VITE_APP_COUNTRY_STATE_API_KEY: "ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, c = (t = "APP_API") => _["VITE_" + t], g = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: s = "", headers: a = {}, ...p } = t, u = `${c(r)}${s}`, i = JSON.parse(localStorage.getItem("user") ?? "{}"), A = i.jwt ?? i.token ?? "";
4
- return P.create({
5
- ...p,
6
- baseURL: u,
7
- headers: e ? a : {
1
+ import q from "axios";
2
+ const Q = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_ADMIN_API: "https://dev-admin-api.tagsamurai.com", VITE_APP_API: "https://dev-api.tagsamurai.com", VITE_APP_ASSETS_URL: "https://assets.tagsamurai.com", VITE_APP_COUNTRY_STATE_API: "https://api.countrystatecity.in", VITE_APP_COUNTRY_STATE_API_KEY: "ZTc5TVc2STlwTkFFNFltYTRjc05sOHR3ODJEYzVMVTZ5UnBJaWU5SA==", VITE_APP_GLOBAL_SETTINGS_API: "https://dev-api.global-settings.tagsamurai.com", VITE_APP_LOGS_NOTIFICATION_API: "https://dev-api-logs-notification.tagsamurai.com", VITE_APP_TAGSAMURAI_API: "https://dev-api.tagsamurai.com" }, b = (t = "APP_API") => Q["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: o = "", headers: P = {}, ...O } = t, V = `${b(r)}${o}`, E = JSON.parse(localStorage.getItem("user") ?? "{}"), j = E.jwt ?? E.token ?? "";
4
+ return q.create({
5
+ ...O,
6
+ baseURL: V,
7
+ headers: e ? P : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${A}`,
10
- ...a
9
+ Authorization: `Bearer ${j}`,
10
+ ...P
11
11
  }
12
12
  });
13
- }, S = (t) => {
13
+ }, Z = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,65 +21,841 @@ const _ = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, f = (t) => {
24
+ }, X = (t, e, r) => {
25
25
  if (!t) return;
26
- const e = c("APP_TAGSAMURAI_API");
26
+ const o = b("APP_API"), P = t.startsWith("http") ? t : `${o}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
+ if (e || r) {
28
+ const O = new URLSearchParams();
29
+ return e && (O.set("width", e.toString()), O.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${P}?${O.toString()}`;
30
+ }
31
+ return P;
32
+ }, tt = (t) => {
33
+ if (!t) return;
34
+ const e = b("APP_TAGSAMURAI_API");
27
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
28
- }, o = g({
36
+ }, et = async (t, e = "excel") => await fetch(
37
+ `${b("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), d = s({
29
39
  prefix: "/settings-attribute/v2",
30
40
  env: "APP_TAGSAMURAI_API"
31
- }), v = {
32
- getGroupCategory: (t) => {
41
+ }), rt = {
42
+ getGroupCategory: (t, e) => {
43
+ const r = t === "category" ? t : "groups";
44
+ return d.get(`/${r}/tree`, { params: e });
45
+ },
46
+ getGroupCategoryList: (t, e, r) => {
47
+ const o = t === "category" ? t : "groups";
48
+ return d.get(`/${o}/${e}`, { params: r });
49
+ },
50
+ getNames: (t) => {
51
+ const e = t === "category" ? t : "groups";
52
+ return d.get(`/${e}/names`);
53
+ },
54
+ getCodes: (t) => {
33
55
  const e = t === "category" ? t : "groups";
34
- return o.get(`/${e}/tree`);
56
+ return d.get(`/${e}/codes`);
57
+ },
58
+ postCreateGroupCategory: (t, e) => {
59
+ const r = t === "category" ? t : "groups";
60
+ return d.post(`/${r}`, e);
61
+ },
62
+ putEditGroupCategory: (t, e, r) => {
63
+ const o = t === "category" ? t : "groups";
64
+ return d.put(`/${o}/${r}`, e);
65
+ },
66
+ putMoveGroup: (t, e) => d.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => d.put("/groups/bulk", t),
68
+ deleteGroupCategory: (t, e, r) => {
69
+ const o = t === "category" ? t : "groups";
70
+ return d.delete(`/${o}/${r}`, { data: e });
71
+ }
72
+ }, S = s({
73
+ prefix: "/settings-attribute-go/v2"
74
+ }), st = {
75
+ getGroupCategory: (t, e) => {
76
+ const r = t === "category" ? t : "groups";
77
+ return S.get(`/${r}/tree`, { params: e });
35
78
  },
36
79
  getGroupCategoryList: (t, e) => {
37
80
  const r = t === "category" ? t : "groups";
38
- return o.get(`/${r}/${e}`);
81
+ return S.get(`/${r}/${e}`);
39
82
  },
40
83
  getNames: (t) => {
41
84
  const e = t === "category" ? t : "groups";
42
- return o.get(`/${e}/names`);
85
+ return S.get(`/${e}/names`);
86
+ },
87
+ getCodes: (t) => {
88
+ const e = t === "category" ? t : "groups";
89
+ return S.get(`/${e}/codes`);
43
90
  },
44
91
  postCreateGroupCategory: (t, e) => {
45
92
  const r = t === "category" ? t : "groups";
46
- return o.post(`/${r}`, e);
93
+ return S.post(`/${r}`, e);
47
94
  },
48
95
  putEditGroupCategory: (t, e, r) => {
49
- const s = t === "category" ? t : "groups";
50
- return o.put(`/${s}/${r}`, e);
96
+ const o = t === "category" ? t : "groups";
97
+ return S.put(`/${o}/${r}`, e);
51
98
  },
52
- putMoveGroup: (t, e) => o.put(`/groups/${e}/move-group`, t),
53
- putEditBulkGroups: async (t) => o.put("/bulk", t),
54
99
  deleteGroupCategory: (t, e, r) => {
55
- const s = t === "category" ? t : "groups";
56
- return o.delete(`/${s}/${r}`, { data: e });
100
+ const o = t === "category" ? t : "groups";
101
+ return S.delete(`/${o}/${r}`, { data: e });
57
102
  }
58
- }, I = g({
103
+ }, Y = s({
59
104
  prefix: "/v2",
60
105
  env: "APP_LOGS_NOTIFICATION_API"
61
- }), O = {
62
- getTotalApprovals: () => I.get("/approval/count")
63
- }, n = g({
106
+ }), ot = {
107
+ getTotalApprovals: () => Y.get("/approval/count")
108
+ }, T = s({
64
109
  prefix: "/v2",
65
110
  env: "APP_LOGS_NOTIFICATION_API"
66
- }), y = {
67
- getActionLog: (t) => n.get("/change-log", { params: t }),
68
- getActionLogOption: (t) => n.get("/change-log/options", { params: t }),
69
- getSessionLogList: (t) => n.get("/session-log", { params: t }),
70
- getUserDetailSystemLogList: (t) => n.get("/change-log", { params: t }),
71
- getUserDetailSystemLogOption: (t) => n.get("/change-log/options", { params: t })
72
- }, l = g({
111
+ }), nt = {
112
+ getActionLog: (t) => T.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => T.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => T.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => T.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => T.get("/change-log/options", { params: t })
117
+ }, $ = s({
118
+ prefix: "/utility/v2"
119
+ }), it = {
120
+ getActionLog: (t) => $.get("/change-log", { params: t }),
121
+ getActionLogOption: (t) => $.get("/change-log/options", { params: t }),
122
+ getSessionLogList: (t) => $.get("/session-log", { params: t }),
123
+ getUserDetailSystemLogList: (t) => $.get("/change-log", { params: t }),
124
+ getUserDetailSystemLogOption: (t) => $.get("/change-log/options", { params: t }),
125
+ getUserDetailUserLogBorrowingList: (t, e) => $.get(`/borrowing-log/${t}`, { params: e }),
126
+ getUserDetailUserLogAssignmentList: (t, e) => $.get(`/assignment-log/${t}`, { params: e }),
127
+ getUserDetailUserLogBorrowingOption: (t, e) => $.get(`/borrowing-log/${t}/options`, { params: e }),
128
+ getUserDetailUserLogAssignmentOption: (t, e) => $.get(`/assignment-log/${t}/options`, { params: e })
129
+ }, c = s({
73
130
  prefix: "/assets/v2/assets"
74
- }), h = {
75
- getScanTag: (t) => l.get("/scan", { params: { tag: t } })
131
+ }), at = {
132
+ getScanTag: (t) => c.get("/scan", { params: { tag: t } }),
133
+ getAllAssets: (t) => c.get("/", { params: t }),
134
+ getAvailableAssets: (t) => c.get("/available", { params: t }),
135
+ scanAsset: (t) => c.get("", { params: { tag: t } }),
136
+ getAssetsById: (t, e) => c.get("/by-id", { params: { _id: t, ...e } }),
137
+ getOptions: (t, e) => c.get(t ? `/${t}/options` : "/options", { params: e }),
138
+ getUnlinkedAssets: (t) => c.get("/unlinked", { params: t }),
139
+ getAssetDetail: (t, e) => c.get(`/${t}`, { params: e }),
140
+ getLinkedAssetFamily: (t) => c.get("/family", { params: { id: t } }),
141
+ matchAssetWithTag: (t, e) => {
142
+ const r = {
143
+ _id: JSON.stringify([t]),
144
+ tag: e
145
+ };
146
+ return c.get("/by-id", { params: r });
147
+ }
148
+ }, J = s({
149
+ prefix: "/tracking/v2/missing"
150
+ }), ut = {
151
+ putFoundAsset: (t, e) => {
152
+ const r = { ids: [t], serialNumber: e };
153
+ return J.put("/found", r);
154
+ }
155
+ }, F = s({
156
+ prefix: "/v2/notification",
157
+ env: "APP_LOGS_NOTIFICATION_API"
158
+ }), gt = {
159
+ getNotifications: (t) => F.get("/", { params: t }),
160
+ readNotification: (t) => F.put(`/${t}`)
161
+ }, N = s({
162
+ prefix: "/utility/v2/notification"
163
+ }), lt = {
164
+ getNotifications: (t) => N.get("/", { params: t }),
165
+ readNotification: (t) => N.put(`/${t}`)
166
+ }, H = s({
167
+ prefix: "/v2/session-log",
168
+ env: "APP_LOGS_NOTIFICATION_API"
169
+ }), ct = {
170
+ postLogout: () => H.post("/logout")
171
+ }, n = s({
172
+ prefix: "/tag/v2"
173
+ }), pt = {
174
+ getScanQR: (t) => n.get("/qr", { params: { tag: t } }),
175
+ getScanRFID: (t) => n.get("/rfid", { params: { tag: t } }),
176
+ getRFIDQRTAG: (t) => n.get("/rfid-qr/scan", { params: t }),
177
+ getEventLog: (t) => n.get("/tag-transaction/event-log", { params: t }),
178
+ // Tab All
179
+ getRfidQrAll: (t, e) => n.get(`/${t}`, { params: e }),
180
+ // Tab Paired
181
+ getRfidQrPaired: (t, e, r) => n.get(`/${t}/paired/${e}`, { params: r }),
182
+ postAddTAGtoPrelist: (t, e) => n.post(`/prelist/${e}/asset-name`, { body: t }),
183
+ postAddTAGToPrelistUnpair: (t) => n.post("/prelist/unpair-tag", { body: t }),
184
+ postAddTAGtoPending: (t) => n.post("/pending-changes", { body: t }),
185
+ // Available Tab
186
+ getRFIDQrAvailable: (t, e) => n.get(`/${t}/available`, { params: e }),
187
+ // Damaged TAB
188
+ getRFIDQrDamaged: (t, e) => n.get(`/${t}/damaged`, { params: e }),
189
+ // RFID and QR Module
190
+ getRFIDandQRList: (t) => n.get("/rfid-qr", { params: t }),
191
+ deleteUnpairTAG: (t) => n.delete("/rfid-qr", { data: { data: t } }),
192
+ postPairTAG: (t) => n.post("/rfid-qr", { body: { data: t } }),
193
+ // RFID To Be Returned
194
+ getToBeReturnedTAGList: (t) => n.get("/rfid/to-be-returned", { params: t }),
195
+ // Handover TAG
196
+ putHandoverTAG: (t) => n.put("/rfid/handover", { body: { data: t } }),
197
+ // Table Filter
198
+ getFilterOptions: (t, e) => n.get(`/${t}/options`, { params: e }),
199
+ getHolderListOptions: (t) => n.get("/rfid/holder-list/options", { params: t }),
200
+ getHolderList: (t) => n.get("/rfid/holder-list", { params: t }),
201
+ putAuditTAG: (t, e) => n.put(`/${e}/audit`, { body: t }),
202
+ postLogAudit: (t) => n.post("/tag-transaction/log-audit", { body: t }),
203
+ postCreateQr: (t) => {
204
+ const e = { amount: t };
205
+ return n.post("/qr", e);
206
+ },
207
+ postScanLog: (t) => n.post("/scan-log", t)
208
+ }, K = s({
209
+ prefix: "/tracking/v2/tracking"
210
+ }), dt = {
211
+ putFoundAsset: (t, e, r) => {
212
+ const o = {
213
+ tag: t,
214
+ group: e,
215
+ serialNumber: r,
216
+ type: "Global"
217
+ };
218
+ return K.put("/found", { params: o });
219
+ }
220
+ }, i = s({
221
+ prefix: "/settings-user-role/v2"
222
+ }), $t = {
223
+ reLogin: (t) => i.post("/auth/login", t),
224
+ changePassword: (t) => i.put("/users/change-password", t),
225
+ /**
226
+ * Retrieves the user list as dropdown options.
227
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
228
+ */
229
+ getUserDropdown: (t) => i.get("/users/dropdown", { params: t }),
230
+ getUserOptions: (t) => i.get("/users/options", { params: t }),
231
+ getUserList: (t) => i.get("/users", { params: t }),
232
+ getUserDetail: (t) => i.get(`/users/${t}`),
233
+ putSetActiveBulk: (t) => i.put("/users/set-active-bulk", t),
234
+ // User Detail
235
+ /**
236
+ *
237
+ * @param id {string} User's _id
238
+ * @param type {"Global" | "Group"} Whether the system role's type is global or group
239
+ * @param params {Record<string, unknown>}
240
+ */
241
+ getUserDetailSystemRoles: (t, e, r) => {
242
+ const o = r ? `/${r}` : "";
243
+ return i.get(`/user-detail/${t}/system-roles${o}`, {
244
+ params: e
245
+ });
246
+ },
247
+ getUserDetailTransactionRoleList: (t, e) => i.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
248
+ postUserDetailAddTransactionRole: (t, e) => i.post(`/user-detail/${t}/add-transaction-role`, e),
249
+ deleteUserDetailTransactionRole: (t, e) => i.delete(`/user-detail/${t}/delete-transaction-role`, {
250
+ data: e
251
+ }),
252
+ putUserDetailEditTransactionRole: (t, e) => i.put(`/user-detail/${t}/edit-transaction-role`, e),
253
+ putAssignGroup: (t, e, r) => i.put(`/user-detail/${r}/system-roles/${e}`, t),
254
+ getUserDetailUserLogBorrowingList: (t, e) => i.get(`/users-log/${t}/borrowing`, { params: e }),
255
+ getUserDetailUserLogAssignmentList: (t, e) => i.get(`/users-log/${t}/assignment`, { params: e }),
256
+ getUserDetailUserLogBorrowingOption: (t, e) => i.get(`/users-log/${t}/borrowing/option`, { params: e }),
257
+ getUserDetailUserLogAssignmentOption: (t, e) => i.get(`/users-log/${t}/assignment/option`, { params: e }),
258
+ getUserDetailTransactionAdminLogList: (t, e) => i.get(`/users-log/${t}/transaction-log`, { params: e }),
259
+ getUserDetailTransactionAdminLogOption: (t, e) => i.get(`/users-log/${t}/transaction-log/option`, { params: e }),
260
+ getUserDetailUserAssetBorrowedList: (t, e) => i.get(`/user-detail/${t}/assets/borrowed`, { params: e }),
261
+ getUserDetailUserAssetAssignedList: (t, e) => i.get(`/user-detail/${t}/assets/assigned`, { params: e }),
262
+ getUserDetailUserAssetBorrowedOption: (t, e) => i.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
263
+ getUserDetailUserAssetAssignedOption: (t, e) => i.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
264
+ }, a = s({
265
+ prefix: "/settings-user-role-go/v2"
266
+ }), At = {
267
+ /**
268
+ * Retrieves the user list as dropdown options.
269
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
270
+ */
271
+ getUserDropdown: (t) => a.get("/users/dropdown", { params: t }),
272
+ getUserOptions: (t) => a.get("/users/options", { params: t }),
273
+ getUserList: (t) => a.get("/users", { params: t }),
274
+ getUserDetail: (t) => a.get(`/users/${t}`),
275
+ putSetActiveBulk: (t) => a.put("/users/set-active-bulk", t),
276
+ // User Detail
277
+ /**
278
+ *
279
+ * @param id {string} User's _id
280
+ * @param type {"Global" | "Group"} Whether the system role's type is global or group
281
+ * @param params {Record<string, unknown>}
282
+ */
283
+ getUserDetailSystemRoles: (t, e, r) => {
284
+ const o = r ? `/${r}/groups` : "";
285
+ return a.get(`/users/${t}/system-roles${o}`, {
286
+ params: e
287
+ });
288
+ },
289
+ getUserDetailTransactionRoleList: (t, e) => a.get(`/users/${t}/transaction-roles`, { params: e }),
290
+ // TODO
291
+ postUserDetailAddTransactionRole: (t, e) => a.post(`/users/${t}/add-transaction-role`, e),
292
+ // TODO
293
+ deleteUserDetailTransactionRole: (t, e) => a.delete(`/users/${t}/delete-transaction-role`, {
294
+ data: e
295
+ }),
296
+ // TODO
297
+ putUserDetailEditTransactionRole: (t, e) => a.put(`/users/${t}/edit-transaction-role`, e),
298
+ putAssignGroup: (t, e, r) => a.put(`/users/${r}/system-roles/${e}/groups`, t),
299
+ putRoleSetActive: (t, e) => a.put(`/users/${e}/system-roles/set-active-bulk`, t),
300
+ getUserDetailTransactionAdminLogList: (t, e) => a.get(`/users/${t}/transaction-log`, { params: e }),
301
+ getUserDetailTransactionAdminLogOption: (t, e) => a.get(`/users/${t}/transaction-log/option`, { params: e }),
302
+ getUserDetailUserAssetBorrowedList: (t, e) => a.get(`/users/${t}/borrowed-asset`, { params: e }),
303
+ getUserDetailUserAssetAssignedList: (t, e) => a.get(`/users/${t}/assigned-asset`, { params: e }),
304
+ getUserDetailUserAssetBorrowedOption: (t, e) => a.get(`/users/${t}/borrowed-asset/option`, { params: e }),
305
+ getUserDetailUserAssetAssignedOption: (t, e) => a.get(`/users/${t}/assigned-asset/option`, { params: e })
306
+ }, A = s({
307
+ prefix: "/settings-user-role/v2/sub-users"
308
+ }), vt = {
309
+ // Sub User
310
+ getSubUserList: (t, e) => A.get(`/${t}`, { params: e }),
311
+ getSubUserOptions: (t, e) => A.get(`/${t}/option`, { params: e }),
312
+ postCreateSubUser: (t, e) => {
313
+ const r = { "Content-Type": "multipart/form-data" };
314
+ return A.post(`/${t}`, e, { headers: r });
315
+ },
316
+ putSubUserSetActiveBulk: (t) => A.put("/set-active-bulk", t),
317
+ deleteSubUser: (t) => A.delete("/bulk", { data: { subUserIds: t } }),
318
+ putEditSubUser: (t, e) => {
319
+ const r = { "Content-Type": "multipart/form-data" };
320
+ return A.put(`/${t}`, e, { headers: r });
321
+ },
322
+ getBorrowedAsset: (t, e) => A.get(`/${t}/borrowed-asset`, { params: e }),
323
+ getBorrowedAssetOptions: (t, e) => A.get(`/${t}/borrowed-asset/options`, { params: e })
324
+ }, p = s({
325
+ prefix: "/settings-user-role-go/v2/users"
326
+ }), St = {
327
+ // Sub User
328
+ getSubUserList: (t, e) => p.get(`/${t}/sub-users`, { params: e }),
329
+ getSubUserOptions: (t, e) => p.get(`/${t}/sub-users/option`, { params: e }),
330
+ postCreateSubUser: (t, e) => {
331
+ const r = { "Content-Type": "multipart/form-data" };
332
+ return p.post(`/${t}/sub-users`, e, { headers: r });
333
+ },
334
+ putSubUserSetActiveBulk: (t, e) => p.put(`/${t}/sub-users/set-active-bulk`, e),
335
+ deleteSubUser: (t, e) => p.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
336
+ putEditSubUser: (t, e, r) => {
337
+ const o = { "Content-Type": "multipart/form-data" };
338
+ return p.put(`/${t}/sub-users/${e}`, r, {
339
+ headers: o
340
+ });
341
+ },
342
+ getBorrowedAsset: (t, e, r) => p.get(`/${t}/sub-users/${e}/borrowed-asset`, {
343
+ params: r
344
+ }),
345
+ getBorrowedAssetOptions: (t, e, r) => p.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
346
+ params: r
347
+ }),
348
+ getAssignedAsset: (t, e, r) => p.get(`/${t}/sub-users/${e}/assigned-asset`, {
349
+ params: r
350
+ }),
351
+ getAssignedAssetOptions: (t, e, r) => p.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
352
+ params: r
353
+ })
354
+ }, G = s({
355
+ env: "APP_ADMIN_API",
356
+ prefix: "/settings-attribute/languages"
357
+ }), mt = {
358
+ /**
359
+ * Fetch all translation messages for a specific locale.
360
+ * @param locale The locale code (e.g., 'en', 'id').
361
+ * @returns A promise resolving to a key-value record of messages.
362
+ */
363
+ getMessages: (t) => G.get(`/${t}/translations`),
364
+ /**
365
+ * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
366
+ *
367
+ * @returns Promise Array of options
368
+ */
369
+ getLanguageOptions: async () => {
370
+ const { data: t } = await G.get(
371
+ "/dropdown"
372
+ );
373
+ return t.data;
374
+ },
375
+ /**
376
+ * Fetch single lang option meta data
377
+ *
378
+ * @param isoCode The locale code (e.g., 'en', 'id').
379
+ * @returns Promise LanguageMeta
380
+ */
381
+ getLanguageOptionMeta: async (t) => {
382
+ const { data: e } = await G.get(
383
+ "/dropdown/" + t
384
+ );
385
+ return e.data;
386
+ },
387
+ /**
388
+ * Translate a specific text to the target locale.
389
+ *
390
+ * @param key Unique translation key.
391
+ * @param locale Target locale code.
392
+ */
393
+ translateText: async (t, e) => {
394
+ const { data: r } = await G.post("/translate", {
395
+ q: t,
396
+ target: e
397
+ });
398
+ return r.data.translations[t];
399
+ }
400
+ }, k = s({
401
+ prefix: "/dashboard/v2/dashboard"
402
+ }), yt = {
403
+ getLatestTask: (t) => k.get("/latest-task", { params: t }),
404
+ getSummary: (t) => k.get("/summary", { params: t })
405
+ }, h = s({
406
+ prefix: "/alias-code/api/alias-code"
407
+ }), Pt = {
408
+ getAliasCode: () => h.get("/"),
409
+ postAliasCode: (t) => h.post("/", t),
410
+ getAliasCodeList: (t) => h.get(`/${t.object}/code-list`, { params: t })
411
+ }, x = s({
412
+ prefix: "/settings-attribute-go/v2/alias-code"
413
+ }), It = {
414
+ getAliasCode: () => x.get("/"),
415
+ postAliasCode: (t) => x.post("/", t),
416
+ getAliasCodeList: (t) => x.get(`/${t.object}/code-list`, { params: t })
417
+ }, B = s({
418
+ prefix: "/settings-attribute/v2/general-settings"
419
+ }), Ut = {
420
+ getGeneralSettings: () => B.get("/"),
421
+ putUpdateGeneralSettings: (t) => B.put("/", t)
422
+ }, M = s({
423
+ prefix: "/settings-attribute-go/v2/general-settings"
424
+ }), ft = {
425
+ getGeneralSettings: () => M.get("/"),
426
+ putUpdateGeneralSettings: (t) => M.put("/", t)
427
+ }, I = s({
428
+ prefix: "/settings-attribute/v2/custom-field"
429
+ }), Lt = {
430
+ getCustomField: async (t) => I.get("/", { params: t }),
431
+ getOptions: async (t) => I.get("/options", { params: t }),
432
+ postCreateCustomField: async (t, e) => I.post("/", e, { params: t }),
433
+ putEditCustomField: async (t, e, r) => I.put(`/${r}`, e, { params: t }),
434
+ putChangeStatus: async (t, e) => I.put("/bulk", e, { params: t }),
435
+ deleteCustomField: async (t) => I.delete("/bulk", { data: t })
436
+ }, U = s({
437
+ prefix: "/settings-attribute-go/v2/custom-field"
438
+ }), Ct = {
439
+ getCustomField: async (t) => U.get("/", { params: t }),
440
+ getOptions: async (t) => U.get("/options", { params: t }),
441
+ postCreateCustomField: async (t, e) => U.post("/", e, { params: t }),
442
+ putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
443
+ putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
444
+ deleteCustomField: async (t) => U.delete("/bulk", { params: t })
445
+ }, w = ({ headers: t = {}, params: e = {} } = {}) => {
446
+ const r = b("APP_COUNTRY_STATE_API"), o = b("APP_COUNTRY_STATE_API_KEY");
447
+ return q.create({
448
+ baseURL: `${r}/v1`,
449
+ headers: {
450
+ "Content-type": "application/json",
451
+ "X-CSCAPI-KEY": o,
452
+ ...t
453
+ },
454
+ params: e
455
+ });
456
+ }, bt = {
457
+ getCountry: () => w().get("/countries"),
458
+ getState: (t) => w().get(`/countries/${t}/states`),
459
+ getCity: (t, e) => w().get(`/countries/${t}/states/${e}/cities`)
460
+ }, l = s({
461
+ prefix: "/routine/v2"
462
+ }), Ot = {
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 }),
470
+ // 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
+ }, W = s({
476
+ prefix: "/settings-attribute/v2/brands"
477
+ }), Tt = {
478
+ getDropdown: (t) => W.get("/dropdown", { params: t })
479
+ }, f = s({
480
+ prefix: "/file-manager/v2"
481
+ }), _t = {
482
+ /**
483
+ * Get storage information.
484
+ *
485
+ * @returns {Promise<AxiosResponse>} The Axios Response.
486
+ */
487
+ getStorageInformation: () => f.get("/files/storage"),
488
+ /**
489
+ * Get file manager data.
490
+ *
491
+ * @param {FileType} type - The type of the file.
492
+ * @param {FileManagerFilterParams} [params] - The parameters for filtering.
493
+ * @returns {Promise<AxiosResponse>} The Axios Response.
494
+ */
495
+ getFileManager: (t, e) => f.get(`/${t}`, { params: e }),
496
+ /**
497
+ * Get file manager options.
498
+ *
499
+ * @param {FileType} type - The type of the file.
500
+ * @param {FileManagerOptionBoolean} [params] - The parameters for options.
501
+ * @returns {Promise<AxiosResponse>} The Axios Response.
502
+ */
503
+ getFileManagerOption: (t, e) => f.get(`/${t}/options`, { params: e }),
504
+ /**
505
+ * Recover files.
506
+ *
507
+ * @param {FileType} type - The type of the file.
508
+ * @param {object} body - The body of the request.
509
+ * @returns {Promise<AxiosResponse>} The Axios Response.
510
+ */
511
+ recoverFiles: (t, e) => f.put(`/${t}/recover`, e),
512
+ /**
513
+ * Delete files.
514
+ *
515
+ * @param {FileType} type - The type of the file.
516
+ * @param {DeleteFileManagerDto} params - The params of the request.
517
+ * @returns {Promise<AxiosResponse>} The Axios Response.
518
+ */
519
+ deleteFiles: (t, e) => f.delete(`/${t}`, { params: e }),
520
+ /**
521
+ * Delete files permanently.
522
+ *
523
+ * @param {FileType} type - The type of the file.
524
+ * @param {object} body - The body of the request.
525
+ * @returns {Promise<AxiosResponse>} The Axios Response.
526
+ */
527
+ deletePermanently: (t, e) => f.delete(`/${t}/delete-permanent`, { params: e })
528
+ }, L = s({
529
+ prefix: "/utility/v2"
530
+ }), Gt = {
531
+ /**
532
+ * Get storage information.
533
+ *
534
+ * @returns {Promise<AxiosResponse>} The Axios Response.
535
+ */
536
+ getStorageInformation: () => L.get("/files/storage"),
537
+ /**
538
+ * Get file manager data.
539
+ *
540
+ * @param {FileType} type - The type of the file.
541
+ * @param {FileManagerFilterParams} [params] - The parameters for filtering.
542
+ * @returns {Promise<AxiosResponse>} The Axios Response.
543
+ */
544
+ getFileManager: (t, e) => L.get(`/${t}`, { params: e }),
545
+ /**
546
+ * Get file manager options.
547
+ *
548
+ * @param {FileType} type - The type of the file.
549
+ * @param {FileManagerOptionBoolean} [params] - The parameters for options.
550
+ * @returns {Promise<AxiosResponse>} The Axios Response.
551
+ */
552
+ getFileManagerOption: (t, e) => L.get(`/${t}/options`, { params: e }),
553
+ /**
554
+ * Recover files.
555
+ *
556
+ * @param {FileType} type - The type of the file.
557
+ * @param {object} body - The body of the request.
558
+ * @returns {Promise<AxiosResponse>} The Axios Response.
559
+ */
560
+ recoverFiles: (t, e) => L.put(`/${t}/recover`, e),
561
+ /**
562
+ * Delete files.
563
+ *
564
+ * @param {FileType} type - The type of the file.
565
+ * @param {DeleteFileManagerDto} params - The params of the request.
566
+ * @returns {Promise<AxiosResponse>} The Axios Response.
567
+ */
568
+ deleteFiles: (t, e) => L.delete(`/${t}`, { params: e }),
569
+ /**
570
+ * Delete files permanently.
571
+ *
572
+ * @param {FileType} type - The type of the file.
573
+ * @param {object} body - The body of the request.
574
+ * @returns {Promise<AxiosResponse>} The Axios Response.
575
+ */
576
+ deletePermanently: (t, e) => L.delete(`/${t}/delete-permanent`, { params: e })
577
+ }, v = s({
578
+ prefix: "/iot/v2/reader"
579
+ }), Dt = {
580
+ getData: (t) => v.get("/", { params: t }),
581
+ getDataOptions: (t) => v.get("/options", { params: t }),
582
+ getActivityLogData: (t) => v.get("/activity-log", { params: t }),
583
+ getActivityLogOptions: (t) => v.get("/activity-log/options", { params: t }),
584
+ getDataById: (t) => v.get(`/${t}`),
585
+ getChangeLog: (t) => v.get(`/${t.id}/change-log`, { params: t }),
586
+ getChangeLogOptions: (t) => v.get(`/${t.id}/change-log/options`, { params: t }),
587
+ putData: (t, e) => v.put(`/${t}`, e)
588
+ }, u = s({
589
+ prefix: "/settings-user-role/v2"
590
+ }), Rt = {
591
+ /**
592
+ * Retrieves the transaction role for the given group and transaction name.
593
+ * @param {string} groupId - The ID of the group to retrieve the transaction role for.
594
+ * @param {string} transactionName - The name of the transaction to retrieve the role for.
595
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
596
+ */
597
+ getTransactionRole: (t, e) => u.get(`/transaction-roles/${t}/${e}`),
598
+ /**
599
+ * Updates the users assigned to the given transaction role.
600
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
601
+ * @param {string} transactionName - The name of the transaction to update.
602
+ * @param {UpdateUser} body - The request body containing the updated user information.
603
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
604
+ */
605
+ putUpdateUsers: (t, e, r) => u.put(
606
+ `/transaction-roles/${t}/${e}/update-user`,
607
+ r
608
+ ),
609
+ /**
610
+ * Updates the approval level for the given transaction role.
611
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
612
+ * @param {string} transactionName - The name of the transaction to update.
613
+ * @param {UserApprovalLevel} body - The request body containing the updated approval level.
614
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
615
+ */
616
+ putUpdateLevel: (t, e, r) => u.put(
617
+ `/transaction-roles/${t}/${e}/update-approval-level`,
618
+ r
619
+ ),
620
+ /**
621
+ * Updates the group management settings for the given transaction role.
622
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
623
+ * @param {string} transactionName - The name of the transaction to update.
624
+ * @param {GroupManageByParent} body - The request body containing the updated management settings.
625
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
626
+ */
627
+ putUpdateGroupManage: (t, e, r) => u.put(
628
+ `/transaction-roles/${t}/${e}/update-manage-by-parent`,
629
+ r
630
+ ),
631
+ getUserAssignedSystemRole: (t) => u.get(`/system-roles/user/${t}`),
632
+ getAssignedUserAmounts: () => u.get("/system-roles/amounts"),
633
+ getPermissionUser: (t, e) => {
634
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
635
+ const r = t === "totalControl" ? "total-control" : "read-only";
636
+ return u.get(`/system-roles/total-control-read-only/${r}`, {
637
+ params: e
638
+ });
639
+ }
640
+ return u.get(`/system-roles/permission/${t}`, { params: e });
641
+ },
642
+ getPermissionUserOptions: (t, e) => {
643
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
644
+ const r = t === "totalControl" ? "total-control" : "read-only";
645
+ return u.get(`/system-roles/total-control-read-only/${r}/options`, {
646
+ params: e
647
+ });
648
+ }
649
+ return u.get(`/system-roles/permission/${t}/options`, {
650
+ params: e
651
+ });
652
+ },
653
+ getUserGroups: (t, e) => u.get(`/system-roles/permission/${e}/groups`, {
654
+ params: t
655
+ }),
656
+ postAssignUser: (t, e) => {
657
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
658
+ const r = e === "totalControl" ? "total-control" : "read-only";
659
+ return u.post(`/system-roles/total-control-read-only/${r}`, t);
660
+ }
661
+ return u.post(`/system-roles/permission/${e}`, t);
662
+ },
663
+ putEditUser: (t, e) => u.put(`/system-roles/${e}`, t),
664
+ putRoleSetActive: (t) => u.put("/system-roles/set-active", t),
665
+ deleteRemoveUser: (t, e) => {
666
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
667
+ const r = e === "totalControl" ? "total-control" : "read-only";
668
+ return u.delete(`/system-roles/total-control-read-only/${r}`, {
669
+ data: t
670
+ });
671
+ }
672
+ return u.delete("/system-roles", { data: t });
673
+ }
674
+ }, g = s({
675
+ prefix: "/settings-user-role-go/v2"
676
+ }), ht = {
677
+ /**
678
+ * Retrieves the transaction role for the given group and transaction name.
679
+ * @param {string} groupId - The ID of the group to retrieve the transaction role for.
680
+ * @param {string} transactionName - The name of the transaction to retrieve the role for.
681
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
682
+ */
683
+ getTransactionRole: (t, e) => g.get(`/transaction-roles/${t}/${e}`),
684
+ /**
685
+ * Updates the users assigned to the given transaction role.
686
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
687
+ * @param {string} transactionName - The name of the transaction to update.
688
+ * @param {UpdateUser} body - The request body containing the updated user information.
689
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
690
+ */
691
+ putUpdateUsers: (t, e, r) => g.put(
692
+ `/transaction-roles/${t}/${e}/update-user`,
693
+ r
694
+ ),
695
+ /**
696
+ * Updates the approval level for the given transaction role.
697
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
698
+ * @param {string} transactionName - The name of the transaction to update.
699
+ * @param {UserApprovalLevel} body - The request body containing the updated approval level.
700
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
701
+ */
702
+ putUpdateLevel: (t, e, r) => g.put(
703
+ `/transaction-roles/${t}/${e}/update-approval-level`,
704
+ r
705
+ ),
706
+ /**
707
+ * Updates the group management settings for the given transaction role.
708
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
709
+ * @param {string} transactionName - The name of the transaction to update.
710
+ * @param {GroupManageByParent} body - The request body containing the updated management settings.
711
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
712
+ */
713
+ putUpdateGroupManage: (t, e, r) => g.put(
714
+ `/transaction-roles/${t}/${e}/update-manage-by-parent`,
715
+ r
716
+ ),
717
+ getUserAssignedSystemRole: (t) => g.get(`/system-roles/user/${t}`),
718
+ getAssignedUserAmounts: () => g.get("/system-roles/amounts"),
719
+ getPermissionUser: (t, e) => {
720
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
721
+ const r = t === "totalControl" ? "total-control" : "read-only";
722
+ return g.get(`/system-roles/total-control-read-only/${r}`, {
723
+ params: e
724
+ });
725
+ }
726
+ return g.get(`/system-roles/permission/${t}`, { params: e });
727
+ },
728
+ getPermissionUserOptions: (t, e) => {
729
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
730
+ const r = t === "totalControl" ? "total-control" : "read-only";
731
+ return g.get(`/system-roles/total-control-read-only/${r}/options`, {
732
+ params: e
733
+ });
734
+ }
735
+ return g.get(`/system-roles/permission/${t}/options`, {
736
+ params: e
737
+ });
738
+ },
739
+ getUserGroups: (t, e) => g.get(`/system-roles/permission/${e}/groups`, {
740
+ params: t
741
+ }),
742
+ postAssignUser: (t, e) => {
743
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
744
+ const r = e === "totalControl" ? "total-control" : "read-only";
745
+ return g.post(`/system-roles/total-control-read-only/${r}`, t);
746
+ }
747
+ return g.post(`/system-roles/permission/${e}`, t);
748
+ },
749
+ putEditUser: (t, e) => g.put(`/system-roles/${e}`, t),
750
+ deleteRemoveUser: (t, e) => {
751
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
752
+ const r = e === "totalControl" ? "total-control" : "read-only";
753
+ return g.put(`/system-roles/total-control-read-only/${r}`, t);
754
+ }
755
+ return g.put("/system-roles", t);
756
+ }
757
+ }, _ = s({
758
+ prefix: "/settings-attribute/v2/open-api"
759
+ }), xt = {
760
+ getOpenAPIDocs: (t) => _.get(`/${t.doc}`),
761
+ putGenerateToken: () => _.put("/generate"),
762
+ // This is if the dummy was not dummy
763
+ getToken: () => _.get(""),
764
+ putRequestOpenAPI: () => _.put("/request"),
765
+ putCancelRequestOpenAPI: () => _.put("/cancel-request")
766
+ }, D = s({
767
+ prefix: "/settings-attribute-go/v2/open-api"
768
+ }), wt = {
769
+ putGenerateToken: () => D.put("/generate"),
770
+ // This is if the dummy was not dummy
771
+ getToken: () => D.get(""),
772
+ putRequestOpenAPI: () => D.put("/request"),
773
+ putCancelRequestOpenAPI: () => D.put("/cancel-request")
774
+ }, m = s({
775
+ prefix: "/import/v2"
776
+ }), Et = {
777
+ getImport: (t, e) => m.get(`/${t}`, { params: e }),
778
+ postImportTemporary: (t, e) => {
779
+ const r = { "Content-Type": "multipart/form-data" };
780
+ return m.post(`/${t}/temporary`, e, { headers: r });
781
+ },
782
+ deleteImportTemporary: (t, e) => m.delete(`/${t}/temporary`, { data: e }),
783
+ postDuplicateImport: (t, e) => m.post(`/${t}/duplicate`, e),
784
+ putEditImport: (t, e) => m.put(`/${t}`, e),
785
+ postImport: (t, e, r) => m.post(t, r, { signal: e.signal }),
786
+ putImportCancelProgress: (t) => m.put(`/${t}/cancel-progress`)
787
+ }, y = s({
788
+ prefix: "/import-go/v2"
789
+ }), Ft = {
790
+ getImport: (t, e) => y.get(`/${t}`, { params: e }),
791
+ postImportTemporary: (t, e) => {
792
+ const r = { "Content-Type": "multipart/form-data" };
793
+ return y.post(`/${t}/temporary`, e, { headers: r });
794
+ },
795
+ deleteImportTemporary: (t, e) => y.delete(`/${t}/temporary`, { params: e }),
796
+ postDuplicateImport: (t, e) => y.post(`/${t}/duplicate`, e),
797
+ putEditImport: (t, e) => y.put(`/${t}`, e),
798
+ postImport: (t, e, r) => y.post(t, r, { signal: e.signal }),
799
+ putImportCancelProgress: (t) => y.put(`/${t}/cancel-progress`)
800
+ }, C = s({
801
+ prefix: "/settings-attribute/v2/asset-name"
802
+ }), Nt = {
803
+ getDropdown: (t) => C.get("/dropdown", { params: t }),
804
+ getAssetNameDetail: (t) => C.get(`/${t}`),
805
+ getAssetsByAssetName: (t, e) => C.get(`/${t}/list-asset`, { params: e }),
806
+ getAssetNameList: (t) => C.get("/", { params: t }),
807
+ getUnpairedAssetName: (t) => C.get("/unpaired", { params: t }),
808
+ getOptions: (t) => C.get("/options", { params: t })
809
+ }, R = s({
810
+ prefix: "/license/v2"
811
+ }), kt = {
812
+ getGroupQuota: (t) => R.get(`/${t}/allocation-quota`),
813
+ getSubGroupQuota: (t) => R.get(`/${t}/subgroup-quota`),
814
+ editSubGroupQuota: (t, e) => R.put(`/${t}/set-group-quota`, e),
815
+ getTotalLicense: () => R.get("/total-license")
76
816
  };
77
817
  export {
78
- h as AssetServices,
79
- y as ChangelogServices,
80
- v as GroupCategoryServices,
81
- O as NotificationApprovalServices,
82
- c as getBaseURL,
83
- f as getImageURL,
84
- S as queryParamsStringfy
818
+ Pt as AliasCodeServices,
819
+ It as AliasCodeServicesGo,
820
+ Nt as AssetNameServices,
821
+ at as AssetServices,
822
+ Tt as BrandServices,
823
+ nt as ChangelogServices,
824
+ bt as CountryStateServices,
825
+ Lt as CustomFieldServices,
826
+ Ct as CustomFieldServicesGo,
827
+ yt as DashboardServices,
828
+ _t as FileManagerServices,
829
+ Gt as FileManagerServicesGo,
830
+ Ut as GeneralSettingsServices,
831
+ ft as GeneralSettingsServicesGo,
832
+ rt as GroupCategoryServices,
833
+ st as GroupCategoryServicesGo,
834
+ mt as I18nService,
835
+ Et as ImportServices,
836
+ Ft as ImportServicesGo,
837
+ kt as LicenseServices,
838
+ it as LogServicesGo,
839
+ ut as MissingServices,
840
+ ot as NotificationApprovalServices,
841
+ gt as NotificationServices,
842
+ lt as NotificationServicesGo,
843
+ xt as OpenAPIServices,
844
+ wt as OpenAPIServicesGo,
845
+ Dt as ReaderServices,
846
+ Rt as RoleServices,
847
+ ht as RoleServicesGo,
848
+ Ot as ServiceCenterServices,
849
+ ct as SessionLogServices,
850
+ vt as SubUserServices,
851
+ St as SubUserServicesGo,
852
+ pt as TAGServices,
853
+ dt as TrackingServices,
854
+ $t as UserServices,
855
+ At as UserServicesGo,
856
+ et as getAssetsFile,
857
+ b as getBaseURL,
858
+ tt as getImageURL,
859
+ X as getImageURLGo,
860
+ Z as queryParamsStringfy
85
861
  };