@tagsamurai/fats-api-services 1.0.0-alpha.12 → 1.0.0-alpha.121

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 (113) hide show
  1. package/api-services.es.js +1064 -105
  2. package/api-services.system.js +1 -1
  3. package/main.d.ts +40 -1
  4. package/package.json +1 -1
  5. package/src/dto/aliasCode.dto.d.ts +4 -0
  6. package/src/dto/assetDetail.dto.d.ts +76 -0
  7. package/src/dto/assetName.dto.d.ts +8 -0
  8. package/src/dto/assetService.dto.d.ts +118 -0
  9. package/src/dto/assignment.dto.d.ts +81 -0
  10. package/src/dto/audit.dto.d.ts +14 -0
  11. package/src/dto/customField.dto.d.ts +16 -0
  12. package/src/dto/dashboard.dto.d.ts +15 -0
  13. package/src/dto/disposal.dto.d.ts +4 -0
  14. package/src/dto/fileManager.dto.d.ts +25 -0
  15. package/src/dto/groupCategoryService.dto.d.ts +3 -3
  16. package/src/dto/importData.dto.d.ts +7 -0
  17. package/src/dto/importTemporaryData.dto.d.ts +6 -0
  18. package/src/dto/license.dto.d.ts +4 -0
  19. package/src/dto/log.dto.d.ts +1 -1
  20. package/src/dto/maintenanceRoutine.dto.d.ts +12 -0
  21. package/src/dto/missing.dto.d.ts +4 -0
  22. package/src/dto/notification.dto.d.ts +3 -1
  23. package/src/dto/oldAuth.dto.d.ts +12 -0
  24. package/src/dto/oldBorrowService.dto.d.ts +47 -0
  25. package/src/dto/oldDamageService.dto.d.ts +7 -0
  26. package/src/dto/oldRepairService.dto.d.ts +29 -0
  27. package/src/dto/oldTagService.dto.d.ts +50 -0
  28. package/src/dto/oldTrackingService.dto.d.ts +6 -0
  29. package/src/dto/oldTransferService.dto.d.ts +221 -0
  30. package/src/dto/openApi.dto.d.ts +3 -0
  31. package/src/dto/role.dto.d.ts +50 -0
  32. package/src/dto/serviceCenter.dto.d.ts +22 -0
  33. package/src/dto/subUser.dto.d.ts +46 -0
  34. package/src/dto/transactionLog.dto.d.ts +17 -0
  35. package/src/dto/transfer.dto.d.ts +29 -0
  36. package/src/dto/user.dto.d.ts +115 -22
  37. package/src/services/aliasCode.service.d.ts +10 -0
  38. package/src/services/assignment.service.d.ts +15 -0
  39. package/src/services/countryState.service.d.ts +7 -0
  40. package/src/services/customField.service.d.ts +18 -0
  41. package/src/services/damage.service.d.ts +7 -0
  42. package/src/services/fileManager.service.d.ts +53 -0
  43. package/src/services/generalSettings.service.d.ts +6 -0
  44. package/src/services/groupCategory.service.d.ts +1 -0
  45. package/src/services/importData.service.d.ts +24 -0
  46. package/src/services/log.service.d.ts +20 -0
  47. package/src/services/missing.service.d.ts +7 -0
  48. package/src/services/notification.service.d.ts +9 -0
  49. package/src/services/oldAliasCode.service.d.ts +10 -0
  50. package/src/services/oldAsset.service.d.ts +46 -0
  51. package/src/services/oldAssetName.service.d.ts +14 -0
  52. package/src/services/oldAssignment.service.d.ts +84 -0
  53. package/src/services/oldAudit.service.d.ts +11 -0
  54. package/src/services/oldAuth.service.d.ts +10 -0
  55. package/src/services/oldBorrow.service.d.ts +18 -0
  56. package/src/services/oldBrand.service.d.ts +7 -0
  57. package/src/services/oldCustomField.service.d.ts +16 -0
  58. package/src/services/oldDamage.service.d.ts +11 -0
  59. package/src/services/oldDashboard.service.d.ts +7 -0
  60. package/src/services/oldDisposal.service.d.ts +8 -0
  61. package/src/services/oldFileManager.service.d.ts +53 -0
  62. package/src/services/oldGeneralSettings.service.d.ts +6 -0
  63. package/src/services/oldGroupCategory.service.d.ts +5 -4
  64. package/src/services/oldImportData.service.d.ts +22 -0
  65. package/src/services/oldLicense.service.d.ts +9 -0
  66. package/src/services/oldLog.service.d.ts +16 -0
  67. package/src/services/oldMaintenanceRoutine.service.d.ts +11 -0
  68. package/src/services/oldMissing.service.d.ts +8 -1
  69. package/src/services/oldModelType.service.d.ts +7 -0
  70. package/src/services/oldMyAsset.service.d.ts +7 -0
  71. package/src/services/oldOpenApi.service.d.ts +10 -0
  72. package/src/services/oldReader.service.d.ts +13 -0
  73. package/src/services/oldRepair.service.d.ts +9 -0
  74. package/src/services/oldRole.service.d.ts +56 -0
  75. package/src/services/oldServiceCenter.service.d.ts +19 -0
  76. package/src/services/oldSubUser.service.d.ts +15 -0
  77. package/src/services/oldTag.service.d.ts +27 -0
  78. package/src/services/oldTracking.service.d.ts +4 -0
  79. package/src/services/oldTransfer.service.d.ts +30 -0
  80. package/src/services/oldUser.service.d.ts +26 -15
  81. package/src/services/openApi.service.d.ts +8 -0
  82. package/src/services/role.service.d.ts +58 -0
  83. package/src/services/subUser.service.d.ts +17 -0
  84. package/src/services/transfer.service.d.ts +11 -0
  85. package/src/services/user.service.d.ts +42 -0
  86. package/src/types/aliasCode.type.d.ts +16 -0
  87. package/src/types/asset.type.d.ts +200 -0
  88. package/src/types/assetDetail.type.d.ts +107 -0
  89. package/src/types/assignedAsset.type.d.ts +60 -0
  90. package/src/types/assignment.type.d.ts +334 -0
  91. package/src/types/audit.type.d.ts +13 -0
  92. package/src/types/customField.type.d.ts +43 -0
  93. package/src/types/dataTable.type.d.ts +7 -0
  94. package/src/types/fetchResponse.type.d.ts +7 -0
  95. package/src/types/fileManager.type.d.ts +24 -0
  96. package/src/types/groupCategoryData.type.d.ts +3 -10
  97. package/src/types/importData.type.d.ts +92 -0
  98. package/src/types/maintenanceRoutine.type.d.ts +10 -0
  99. package/src/types/notification.type.d.ts +17 -0
  100. package/src/types/oldAssetService.type.d.ts +98 -0
  101. package/src/types/oldTagService.type.d.ts +118 -0
  102. package/src/types/reader.d.ts +55 -0
  103. package/src/types/role.type.d.ts +111 -6
  104. package/src/types/serviceCenter.type.d.ts +29 -0
  105. package/src/types/subUser.type.d.ts +28 -0
  106. package/src/types/transfer.type.d.ts +64 -0
  107. package/src/types/user.type.d.ts +42 -0
  108. package/src/types/userGlobalRole.type.d.ts +1 -1
  109. package/src/types/userGroupRole.type.d.ts +1 -1
  110. package/src/types/userTransactionRole.type.d.ts +2 -0
  111. package/src/utils/getAssetsFile.util.d.ts +1 -0
  112. package/src/utils/index.d.ts +1 -0
  113. package/src/types/userSystemRole.type.d.ts +0 -14
@@ -1,16 +1,16 @@
1
- import d from "axios";
2
- const f = { 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_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" }, A = (t = "APP_API") => f["VITE_" + t], n = (t = {}, e = !1) => {
3
- const { env: r = "APP_API", prefix: a = "", headers: u = {}, ...P } = t, I = `${A(r)}${a}`, c = JSON.parse(localStorage.getItem("user") ?? "{}"), _ = c.jwt ?? c.token ?? "";
4
- return d.create({
5
- ...P,
6
- baseURL: I,
7
- headers: e ? u : {
1
+ import at from "axios";
2
+ const gt = { 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" }, h = (t = "APP_API") => gt["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: o = "", headers: C = {}, ...G } = t, it = `${h(r)}${o}`, J = JSON.parse(localStorage.getItem("user") ?? "{}"), ut = J.jwt ?? J.token ?? "";
4
+ return at.create({
5
+ ...G,
6
+ baseURL: it,
7
+ headers: e ? C : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${_}`,
10
- ...u
9
+ Authorization: `Bearer ${ut}`,
10
+ ...C
11
11
  }
12
12
  });
13
- }, O = (t) => {
13
+ }, $t = (t) => {
14
14
  if (!t || typeof t == "string")
15
15
  return;
16
16
  const e = {};
@@ -21,147 +21,418 @@ const f = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
21
21
  [r]: t[r]
22
22
  });
23
23
  }), e;
24
- }, U = (t) => {
24
+ }, vt = (t, e, r) => {
25
25
  if (!t) return;
26
- const e = A("APP_TAGSAMURAI_API");
26
+ const o = h("APP_API"), C = t.startsWith("http") ? t : `${o}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
+ if (e || r) {
28
+ const G = new URLSearchParams();
29
+ return e && (G.set("width", e.toString()), G.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${C}?${G.toString()}`;
30
+ }
31
+ return C;
32
+ }, mt = (t) => {
33
+ if (!t) return;
34
+ const e = h("APP_TAGSAMURAI_API");
27
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
28
- }, o = n({
36
+ }, yt = async (t, e = "excel") => await fetch(
37
+ `${h("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), v = s({
29
39
  prefix: "/settings-attribute/v2",
30
40
  env: "APP_TAGSAMURAI_API"
31
- }), y = {
32
- getGroupCategory: (t) => {
41
+ }), St = {
42
+ getGroupCategory: (t, e) => {
43
+ const r = t === "category" ? t : "groups";
44
+ return v.get(`/${r}/tree`, { params: e });
45
+ },
46
+ getGroupCategoryList: (t, e, r) => {
47
+ const o = t === "category" ? t : "groups";
48
+ return v.get(`/${o}/${e}`, { params: r });
49
+ },
50
+ getNames: (t) => {
33
51
  const e = t === "category" ? t : "groups";
34
- return o.get(`/${e}/tree`);
52
+ return v.get(`/${e}/names`);
53
+ },
54
+ getCodes: (t) => {
55
+ const e = t === "category" ? t : "groups";
56
+ return v.get(`/${e}/codes`);
57
+ },
58
+ postCreateGroupCategory: (t, e) => {
59
+ const r = t === "category" ? t : "groups";
60
+ return v.post(`/${r}`, e);
61
+ },
62
+ putEditGroupCategory: (t, e, r) => {
63
+ const o = t === "category" ? t : "groups";
64
+ return v.put(`/${o}/${r}`, e);
65
+ },
66
+ putMoveGroup: (t, e) => v.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => v.put("/groups/bulk", t),
68
+ deleteGroupCategory: (t, e, r) => {
69
+ const o = t === "category" ? t : "groups";
70
+ return v.delete(`/${o}/${r}`, { data: e });
71
+ }
72
+ }, f = s({
73
+ prefix: "/settings-attribute-go/v2"
74
+ }), Pt = {
75
+ getGroupCategory: (t, e) => {
76
+ const r = t === "category" ? t : "groups";
77
+ return f.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 f.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 f.get(`/${e}/names`);
86
+ },
87
+ getCodes: (t) => {
88
+ const e = t === "category" ? t : "groups";
89
+ return f.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 f.post(`/${r}`, e);
47
94
  },
48
95
  putEditGroupCategory: (t, e, r) => {
49
- const a = t === "category" ? t : "groups";
50
- return o.put(`/${a}/${r}`, e);
96
+ const o = t === "category" ? t : "groups";
97
+ return f.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 a = t === "category" ? t : "groups";
56
- return o.delete(`/${a}/${r}`, { data: e });
100
+ const o = t === "category" ? t : "groups";
101
+ return f.delete(`/${o}/${r}`, { data: e });
57
102
  }
58
- }, v = n({
103
+ }, pt = s({
59
104
  prefix: "/v2",
60
105
  env: "APP_LOGS_NOTIFICATION_API"
61
- }), h = {
62
- getTotalApprovals: () => v.get("/approval/count")
63
- }, i = n({
106
+ }), ft = {
107
+ getTotalApprovals: () => pt.get("/approval/count")
108
+ }, y = s({
64
109
  prefix: "/v2",
65
110
  env: "APP_LOGS_NOTIFICATION_API"
66
- }), D = {
67
- getActionLog: (t) => i.get("/change-log", { params: t }),
68
- getActionLogOption: (t) => i.get("/change-log/options", { params: t }),
69
- getSessionLogList: (t) => i.get("/session-log", { params: t }),
70
- getUserDetailSystemLogList: (t) => i.get("/change-log", { params: t }),
71
- getUserDetailSystemLogOption: (t) => i.get("/change-log/options", { params: t })
72
- }, S = n({
111
+ }), It = {
112
+ getActionLog: (t) => y.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => y.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
117
+ /**
118
+ * Retrieves the transaction log.
119
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
120
+ */
121
+ getTransactionLog: (t) => y.get("/transaction-log", { params: t }),
122
+ /**
123
+ * Retrieves the transaction log options.
124
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
125
+ */
126
+ getTransactionLogOption: (t) => y.get("/transaction-log/options", { params: t }),
127
+ postScanLog: (t) => y.post("/transaction-log/scan-log", t)
128
+ }, m = s({
129
+ prefix: "/utility/v2"
130
+ }), Ut = {
131
+ getActionLog: (t) => m.get("/change-log", { params: t }),
132
+ getActionLogOption: (t) => m.get("/change-log/options", { params: t }),
133
+ getSessionLogList: (t) => m.get("/session-log", { params: t }),
134
+ getUserDetailSystemLogList: (t) => m.get("/change-log", { params: t }),
135
+ getUserDetailSystemLogOption: (t) => m.get("/change-log/options", { params: t }),
136
+ getUserDetailUserLogBorrowingList: (t, e) => m.get(`/borrowing-log/${t}`, { params: e }),
137
+ getUserDetailUserLogAssignmentList: (t, e) => m.get(`/assignment-log/${t}`, { params: e }),
138
+ getUserDetailUserLogBorrowingOption: (t, e) => m.get(`/borrowing-log/${t}/options`, { params: e }),
139
+ getUserDetailUserLogAssignmentOption: (t, e) => m.get(`/assignment-log/${t}/options`, { params: e })
140
+ }, a = s({
73
141
  prefix: "/assets/v2/assets"
74
- }), N = {
75
- getScanTag: (t) => S.get("/scan", { params: { tag: t } })
76
- }, T = n({
142
+ }), x = s({
143
+ prefix: "/assets/v2/attachment"
144
+ }), Tt = {
145
+ getScanTag: (t) => a.get("/scan", { params: { tag: t } }),
146
+ getAllAssets: (t) => a.get("/", { params: t }),
147
+ getAllAssetsOptions: (t) => a.get("/options", { params: t }),
148
+ getAvailableAssets: (t) => a.get("/available", { params: t }),
149
+ getAvailableAssetOptions: (t) => a.get("/available/options", { params: t }),
150
+ scanAsset: (t) => a.get("", { params: { tag: t } }),
151
+ getAssetsById: (t, e) => a.get("/by-id", { params: { _id: t, ...e } }),
152
+ getOptions: (t, e) => a.get(t ? `/${t}/options` : "/options", {
153
+ params: e
154
+ }),
155
+ getUnlinkedAssets: (t) => a.get("/unlinked", { params: t }),
156
+ getAssetDetail: (t, e) => a.get(`/${t}`, { params: e }),
157
+ getAssetNameTotal: (t) => a.get(`/name-amount/${t}`),
158
+ getLinkedAssetFamily: (t) => a.get("/family", { params: { id: t } }),
159
+ matchAssetWithTag: (t, e) => {
160
+ const r = {
161
+ _id: JSON.stringify([t]),
162
+ tag: e
163
+ };
164
+ return a.get("/by-id", { params: r });
165
+ },
166
+ postRegisterAsset: (t) => {
167
+ const e = { "Content-Type": "multipart/form-data" };
168
+ return a.post("/bulk", t, { headers: e });
169
+ },
170
+ putEditAsset: (t, e) => {
171
+ const r = { "Content-Type": "multipart/form-data" };
172
+ return a.put(`/${t}`, e, { headers: r });
173
+ },
174
+ putEditDetailCustomField: (t, e) => {
175
+ const r = { "Content-Type": "multipart/form-data" };
176
+ return a.put(`/${t}`, e, { headers: r });
177
+ },
178
+ getLinkedAsset: (t, e) => a.get(`/${t}/linked`, { params: e }),
179
+ getPurchase: (t) => a.get(`/${t}/purchase`),
180
+ putPurchase: (t, e) => a.put(`/${e}/purchase`, t),
181
+ getAccounting: (t, e) => a.get(`/${t}/accounting`, { params: e }),
182
+ getAssetOption: (t) => a.get("/options", { params: t }),
183
+ getAssetFamily: (t) => a.get(`/${t}/family`),
184
+ getLinkedAssetOption: (t, e) => a.get(`/${t}/linked/options`, { params: e }),
185
+ putLinkAsset: (t, e) => a.put(`/${e}/link-assets`, t),
186
+ putUnlinkAsset: (t, e) => a.put(`/${e}/remove-link-assets`, t),
187
+ // Asset Services prefixed by "attachment"
188
+ getAttachment: (t) => x.get("", { params: t }),
189
+ postAttachment: (t) => {
190
+ const e = { "Content-Type": "multipart/form-data" };
191
+ return x.post("", t, { headers: e });
192
+ },
193
+ putAttachment: (t, e) => {
194
+ const r = { "Content-Type": "multipart/form-data" };
195
+ return x.put(`/${e}`, t, { headers: r });
196
+ },
197
+ /**
198
+ * Deletes the attachment with the given IDs.
199
+ * @param {object} params - The request params containing the IDs of the attachments to delete.
200
+ * @returns {Promise<AxiosResponse>}
201
+ */
202
+ deleteAttachment: (t) => x.delete("/bulk", { params: t })
203
+ }, K = s({
77
204
  prefix: "/tracking/v2/missing"
78
- }), C = {
205
+ }), Ct = {
206
+ /**
207
+ * To mark as found.
208
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
209
+ */
210
+ putMarkAsFound: (t) => K.put("/found", t),
211
+ putReportMissing: (t, e) => K.put(`/report-missing/${t}`, e)
212
+ }, W = s({
213
+ prefix: "/missing-tracking/v2"
214
+ }), Ot = {
79
215
  putFoundAsset: (t, e) => {
80
216
  const r = { ids: [t], serialNumber: e };
81
- return T.put("/found", r);
82
- }
83
- }, p = n({
217
+ return W.put("/found", r);
218
+ },
219
+ putReportMissing: (t, e) => W.put(`/${t}/report-missing`, e)
220
+ }, z = s({
84
221
  prefix: "/v2/notification",
85
222
  env: "APP_LOGS_NOTIFICATION_API"
86
- }), E = {
87
- getNotifications: (t) => p.get("/", { params: t }),
88
- readNotification: (t) => p.put(`/${t}`)
89
- }, $ = n({
223
+ }), bt = {
224
+ getNotifications: (t) => z.get("/", { params: t }),
225
+ readNotification: (t) => z.put(`/${t}`)
226
+ }, X = s({
227
+ prefix: "/utility/v2/notification"
228
+ }), Lt = {
229
+ getNotifications: (t) => X.get("/", { params: t }),
230
+ readNotification: (t) => X.put(`/${t}`)
231
+ }, ct = s({
90
232
  prefix: "/v2/session-log",
91
233
  env: "APP_LOGS_NOTIFICATION_API"
92
- }), R = {
93
- postLogout: () => $.post("/logout")
94
- }, l = n({
234
+ }), Dt = {
235
+ postLogout: () => ct.post("/logout")
236
+ }, i = s({
95
237
  prefix: "/tag/v2"
96
- }), G = {
97
- getScanQR: (t) => l.get("/qr", { params: { tag: t } }),
98
- getScanRFID: (t) => l.get("/rfid", { params: { tag: t } })
99
- }, m = n({
238
+ }), Rt = {
239
+ getScanQR: (t) => i.get("/qr", { params: { tag: t } }),
240
+ getScanRFID: (t) => i.get("/rfid", { params: { tag: t } }),
241
+ getRFIDQRTAG: (t) => i.get("/rfid-qr/scan", { params: t }),
242
+ getEventLog: (t) => i.get("/tag-transaction/event-log", { params: t }),
243
+ // Tab All
244
+ getRfidQrAll: (t, e) => i.get(`/${t}`, { params: e }),
245
+ // Tab Paired
246
+ getRfidQrPaired: (t, e, r) => i.get(`/${t}/paired/${e}`, { params: r }),
247
+ postAddTAGtoPrelist: (t, e) => i.post(`/prelist/${e}/asset-name`, t),
248
+ postAddTAGtoReplacePrelist: (t) => i.post("/prelist/replace-tag", t),
249
+ postAddTAGToPrelistUnpair: (t) => i.post("/prelist/unpair-tag", t),
250
+ postAddTAGtoPending: (t) => i.post("/pending-changes", t),
251
+ // Available Tab
252
+ getRFIDQrAvailable: (t, e) => i.get(`/${t}/available`, { params: e }),
253
+ // Damaged TAB
254
+ getRFIDQrDamaged: (t, e) => i.get(`/${t}/damaged`, { params: e }),
255
+ // RFID and QR Module
256
+ getRFIDandQRList: (t) => i.get("/rfid-qr", { params: t }),
257
+ deleteUnpairTAG: (t) => i.delete("/rfid-qr", { data: { data: t } }),
258
+ postPairTAG: (t) => i.post("/rfid-qr", { body: { data: t } }),
259
+ // RFID To Be Returned
260
+ getToBeReturnedTAGList: (t) => i.get("/rfid/to-be-returned", { params: t }),
261
+ // Handover TAG
262
+ putHandoverTAG: (t) => i.put("/rfid/handover", { body: { data: t } }),
263
+ // Table Filter
264
+ getFilterOptions: (t, e) => i.get(`/${t}/options`, { params: e }),
265
+ getHolderListOptions: (t) => i.get("/rfid/holder-list/options", { params: t }),
266
+ getHolderList: (t) => i.get("/rfid/holder-list", { params: t }),
267
+ putAuditTAG: (t, e) => i.put(`/${e}/audit`, t),
268
+ postLogAudit: (t) => i.post("/tag-transaction/log-audit", t),
269
+ postCreateQr: (t) => {
270
+ const e = { amount: t };
271
+ return i.post("/qr", e);
272
+ },
273
+ putReportTAG: (t, e) => i.put(`/tag-transaction/report/${t}`, e),
274
+ putDeclineReport: (t, e) => i.put(`/report/decline-report/${e}`, t)
275
+ }, w = s({
100
276
  prefix: "/tracking/v2/tracking"
101
- }), x = {
277
+ }), ht = {
278
+ getTrackingDetail: (t) => w.get(`/${t}`),
102
279
  putFoundAsset: (t, e, r) => {
103
- const a = {
280
+ const o = {
104
281
  tag: t,
105
282
  group: e,
106
283
  serialNumber: r,
107
284
  type: "Global"
108
285
  };
109
- return m.put("/found", { params: a });
110
- }
111
- }, s = n({
286
+ return w.put("/found", { params: o });
287
+ },
288
+ putReportPermanentlyMissing: (t, e) => w.put(`/report-permanently-missing/${t}`, e),
289
+ putMoveBack: (t) => w.put("/tracking/move-back", t)
290
+ }, u = s({
112
291
  prefix: "/settings-user-role/v2"
113
- }), w = {
114
- reLogin: (t) => s.post("/auth/login", t),
115
- changePassword: (t) => s.put("/users/change-password", t),
116
- getUserDetail: (t) => s.get(`/users/${t}`),
117
- putEditUser: (t, e) => {
118
- const r = { "Content-Type": "multipart/form-data" };
119
- return s.put(`/users/${t}`, e, { headers: r });
292
+ }), Gt = {
293
+ reLogin: (t) => u.post("/auth/login", t),
294
+ changePassword: (t) => u.put("/users/change-password", t),
295
+ /**
296
+ * Retrieves the user list as dropdown options.
297
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
298
+ */
299
+ getUserDropdown: (t) => u.get("/users/dropdown", { params: t }),
300
+ getUserOptions: (t) => u.get("/users/options", { params: t }),
301
+ getUserList: (t) => u.get("/users", { params: t }),
302
+ getUserDetail: (t) => u.get(`/users/${t}`),
303
+ putSetActiveBulk: (t) => u.put("/users/set-active-bulk", t),
304
+ // User Detail
305
+ /**
306
+ *
307
+ * @param id {string} User's _id
308
+ * @param type {"Global" | "Group"} Whether the system role's type is global or group
309
+ * @param params {Record<string, unknown>}
310
+ */
311
+ getUserDetailSystemRoles: (t, e, r) => {
312
+ const o = r ? `/${r}` : "";
313
+ return u.get(`/user-detail/${t}/system-roles${o}`, {
314
+ params: e
315
+ });
120
316
  },
121
- putDeleteProfilePicture: (t) => s.put(`/users/${t}/delete-profile-picture`),
122
- putCancelEmailChange: (t, e) => s.put("/auth/confirm-email-change/cancel", {
123
- user: t,
124
- companyCode: e
317
+ getUserDetailTransactionRoleList: (t, e) => u.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
318
+ postUserDetailAddTransactionRole: (t, e) => u.post(`/user-detail/${t}/add-transaction-role`, e),
319
+ deleteUserDetailTransactionRole: (t, e) => u.delete(`/user-detail/${t}/delete-transaction-role`, {
320
+ data: e
125
321
  }),
322
+ putUserDetailEditTransactionRole: (t, e) => u.put(`/user-detail/${t}/edit-transaction-role`, e),
323
+ putAssignGroup: (t, e, r) => u.put(`/user-detail/${r}/system-roles/${e}`, t),
324
+ getUserDetailUserLogBorrowingList: (t, e) => u.get(`/users-log/${t}/borrowing`, { params: e }),
325
+ getUserDetailUserLogAssignmentList: (t, e) => u.get(`/users-log/${t}/assignment`, { params: e }),
326
+ getUserDetailUserLogBorrowingOption: (t, e) => u.get(`/users-log/${t}/borrowing/option`, { params: e }),
327
+ getUserDetailUserLogAssignmentOption: (t, e) => u.get(`/users-log/${t}/assignment/option`, { params: e }),
328
+ getUserDetailTransactionAdminLogList: (t, e) => u.get(`/users-log/${t}/transaction-log`, { params: e }),
329
+ getUserDetailTransactionAdminLogOption: (t, e) => u.get(`/users-log/${t}/transaction-log/option`, { params: e }),
330
+ getUserDetailUserAssetBorrowedList: (t, e) => u.get(`/user-detail/${t}/assets/borrowed`, { params: e }),
331
+ getUserDetailUserAssetAssignedList: (t, e) => u.get(`/user-detail/${t}/assets/assigned`, { params: e }),
332
+ getUserDetailUserAssetBorrowedOption: (t, e) => u.get(`/user-detail/${t}/assets/borrowed/option`, { params: e }),
333
+ getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
334
+ }, g = s({
335
+ prefix: "/settings-user-role-go/v2"
336
+ }), _t = {
337
+ /**
338
+ * Retrieves the user list as dropdown options.
339
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
340
+ */
341
+ getUserDropdown: (t) => g.get("/users/dropdown", { params: t }),
342
+ getUserOptions: (t) => g.get("/users/options", { params: t }),
343
+ getUserList: (t) => g.get("/users", { params: t }),
344
+ getUserDetail: (t) => g.get(`/users/${t}`),
345
+ putSetActiveBulk: (t) => g.put("/users/set-active-bulk", t),
346
+ // User Detail
126
347
  /**
127
348
  *
128
349
  * @param id {string} User's _id
129
350
  * @param type {"Global" | "Group"} Whether the system role's type is global or group
130
351
  * @param params {Record<string, unknown>}
131
352
  */
132
- getUserDetailSystemRoles: (t, e, r) => s.get(`/user-detail/${t}/system-roles`, {
133
- params: {
134
- ...r,
135
- type: e
136
- }
353
+ getUserDetailSystemRoles: (t, e, r) => {
354
+ const o = r ? `/${r}/groups` : "";
355
+ return g.get(`/users/${t}/system-roles${o}`, {
356
+ params: e
357
+ });
358
+ },
359
+ getUserDetailTransactionRoleList: (t, e) => g.get(`/users/${t}/transaction-roles`, { params: e }),
360
+ postUserDetailAddTransactionRole: (t, e) => g.post(`/users/${t}/add-transaction-role`, e),
361
+ deleteUserDetailTransactionRole: (t, e) => g.put(`/users/${t}/delete-transaction-role`, e),
362
+ putUserDetailEditTransactionRole: (t, e) => g.put(`/users/${t}/edit-transaction-role`, e),
363
+ putAssignGroup: (t, e, r) => g.put(`/users/${r}/system-roles/${e}/groups`, t),
364
+ putRoleSetActive: (t, e) => g.put(`/users/${e}/system-roles/set-active-bulk`, t),
365
+ getUserDetailTransactionAdminLogList: (t, e) => g.get(`/users/${t}/transaction-log`, { params: e }),
366
+ getUserDetailTransactionAdminLogOption: (t, e) => g.get(`/users/${t}/transaction-log/option`, { params: e }),
367
+ getUserDetailUserAssetBorrowedList: (t, e) => g.get(`/users/${t}/borrowed-asset`, { params: e }),
368
+ getUserDetailUserAssetAssignedList: (t, e) => g.get(`/users/${t}/assigned-asset`, { params: e }),
369
+ getUserDetailUserAssetBorrowedOption: (t, e) => g.get(`/users/${t}/borrowed-asset/option`, { params: e }),
370
+ getUserDetailUserAssetAssignedOption: (t, e) => g.get(`/users/${t}/assigned-asset/option`, { params: e })
371
+ }, S = s({
372
+ prefix: "/settings-user-role/v2/sub-users"
373
+ }), kt = {
374
+ // Sub User
375
+ getSubUserList: (t, e) => S.get(`/${t}`, { params: e }),
376
+ getSubUserOptions: (t, e) => S.get(`/${t}/option`, { params: e }),
377
+ postCreateSubUser: (t, e) => {
378
+ const r = { "Content-Type": "multipart/form-data" };
379
+ return S.post(`/${t}`, e, { headers: r });
380
+ },
381
+ putSubUserSetActiveBulk: (t) => S.put("/set-active-bulk", t),
382
+ deleteSubUser: (t) => S.delete("/bulk", { data: { subUserIds: t } }),
383
+ putEditSubUser: (t, e) => {
384
+ const r = { "Content-Type": "multipart/form-data" };
385
+ return S.put(`/${t}`, e, { headers: r });
386
+ },
387
+ getBorrowedAsset: (t, e) => S.get(`/${t}/borrowed-asset`, { params: e }),
388
+ getBorrowedAssetOptions: (t, e) => S.get(`/${t}/borrowed-asset/options`, { params: e })
389
+ }, $ = s({
390
+ prefix: "/settings-user-role-go/v2/users"
391
+ }), qt = {
392
+ // Sub User
393
+ getSubUserList: (t, e) => $.get(`/${t}/sub-users`, { params: e }),
394
+ getSubUserOptions: (t, e) => $.get(`/${t}/sub-users/option`, { params: e }),
395
+ postCreateSubUser: (t, e) => {
396
+ const r = { "Content-Type": "multipart/form-data" };
397
+ return $.post(`/${t}/sub-users`, e, { headers: r });
398
+ },
399
+ putSubUserSetActiveBulk: (t, e) => $.put(`/${t}/sub-users/set-active-bulk`, e),
400
+ deleteSubUser: (t, e) => $.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
401
+ putEditSubUser: (t, e, r) => {
402
+ const o = { "Content-Type": "multipart/form-data" };
403
+ return $.put(`/${t}/sub-users/${e}`, r, {
404
+ headers: o
405
+ });
406
+ },
407
+ getBorrowedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset`, {
408
+ params: r
137
409
  }),
138
- // User Detail
139
- getUserDetailSystemRoleList: (t, e) => s.get(`/user-detail/${t}/system-role-list`, { params: e }),
140
- getUserDetailSystemRoleOptions: (t, e) => s.get(`/user-detail/${t}/system-role/option`, { params: e }),
141
- getUserDetailTransactionRoleList: (t, e) => s.get(`/user-detail/${t}/transaction-role-list`, { params: e }),
142
- getUserDetailUserLogBorrowingList: (t, e) => s.get(`/users-log/${t}/borrowing`, { params: e }),
143
- getUserDetailUserLogAssignmentList: (t, e) => s.get(`/users-log/${t}/assignment`, { params: e }),
144
- getUserDetailUserLogBorrowingOption: (t, e) => s.get(`/users-log/${t}/borrowing/option`, { params: e }),
145
- getUserDetailUserLogAssignmentOption: (t, e) => s.get(`/users-log/${t}/assignment/option`, { params: e }),
146
- getUserDetailTransactionAdminLogList: (t, e) => s.get(`/users-log/${t}/transaction-log`, { params: e }),
147
- getUserDetailTransactionAdminLogOption: (t, e) => s.get(`/users-log/${t}/transaction-log/option`, { params: e })
148
- }, g = n({
410
+ getBorrowedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
411
+ params: r
412
+ }),
413
+ getAssignedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset`, {
414
+ params: r
415
+ }),
416
+ getAssignedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
417
+ params: r
418
+ })
419
+ }, E = s({
149
420
  env: "APP_ADMIN_API",
150
421
  prefix: "/settings-attribute/languages"
151
- }), M = {
422
+ }), xt = {
152
423
  /**
153
424
  * Fetch all translation messages for a specific locale.
154
425
  * @param locale The locale code (e.g., 'en', 'id').
155
426
  * @returns A promise resolving to a key-value record of messages.
156
427
  */
157
- getMessages: (t) => g.get(`/${t}/translations`),
428
+ getMessages: (t) => E.get(`/${t}/translations`),
158
429
  /**
159
430
  * Fetch all available lang options for LanguageDropdown and LanguageSwitcher
160
431
  *
161
432
  * @returns Promise Array of options
162
433
  */
163
434
  getLanguageOptions: async () => {
164
- const { data: t } = await g.get(
435
+ const { data: t } = await E.get(
165
436
  "/dropdown"
166
437
  );
167
438
  return t.data;
@@ -173,7 +444,7 @@ const f = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
173
444
  * @returns Promise LanguageMeta
174
445
  */
175
446
  getLanguageOptionMeta: async (t) => {
176
- const { data: e } = await g.get(
447
+ const { data: e } = await E.get(
177
448
  "/dropdown/" + t
178
449
  );
179
450
  return e.data;
@@ -185,26 +456,714 @@ const f = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
185
456
  * @param locale Target locale code.
186
457
  */
187
458
  translateText: async (t, e) => {
188
- const { data: r } = await g.post("/translate", {
459
+ const { data: r } = await E.post("/translate", {
189
460
  q: t,
190
461
  target: e
191
462
  });
192
463
  return r.data.translations[t];
193
464
  }
465
+ }, Z = s({
466
+ prefix: "/dashboard/v2/dashboard"
467
+ }), wt = {
468
+ getLatestTask: (t) => Z.get("/latest-task", { params: t }),
469
+ getSummary: (t) => Z.get("/summary", { params: t })
470
+ }, V = s({
471
+ prefix: "/alias-code/api/alias-code"
472
+ }), Et = {
473
+ getAliasCode: () => V.get("/"),
474
+ postAliasCode: (t) => V.post("/", t),
475
+ getAliasCodeList: (t) => V.get(`/${t.object}/code-list`, { params: t })
476
+ }, j = s({
477
+ prefix: "/settings-attribute-go/v2/alias-code"
478
+ }), Bt = {
479
+ getAliasCode: () => j.get("/"),
480
+ postAliasCode: (t) => j.post("/", t),
481
+ getAliasCodeList: (t) => j.get(`/${t.object}/code-list`, { params: t })
482
+ }, tt = s({
483
+ prefix: "/settings-attribute/v2/general-settings"
484
+ }), Ft = {
485
+ getGeneralSettings: () => tt.get("/"),
486
+ putUpdateGeneralSettings: (t) => tt.put("/", t)
487
+ }, et = s({
488
+ prefix: "/settings-attribute-go/v2/general-settings"
489
+ }), Nt = {
490
+ getGeneralSettings: () => et.get("/"),
491
+ putUpdateGeneralSettings: (t) => et.put("/", t)
492
+ }, O = s({
493
+ prefix: "/settings-attribute/v2/custom-field"
494
+ }), Mt = {
495
+ getCustomField: async (t) => O.get("/", { params: t }),
496
+ getOptions: async (t) => O.get("/options", { params: t }),
497
+ postCreateCustomField: async (t, e) => O.post("/", e, { params: t }),
498
+ putEditCustomField: async (t, e, r) => O.put(`/${r}`, e, { params: t }),
499
+ putChangeStatus: async (t, e) => O.put("/bulk", e, { params: t }),
500
+ deleteCustomField: async (t) => O.delete("/bulk", { data: t })
501
+ }, b = s({
502
+ prefix: "/settings-attribute-go/v2/custom-field"
503
+ }), Ht = {
504
+ getCustomField: async (t) => b.get("/", { params: t }),
505
+ getOptions: async (t) => b.get("/options", { params: t }),
506
+ postCreateCustomField: async (t, e) => b.post("/", e, { params: t }),
507
+ putEditCustomField: async (t, e, r) => b.put(`/${r}`, e, { params: t }),
508
+ putChangeStatus: async (t, e) => b.put("/bulk", e, { params: t }),
509
+ deleteCustomField: async (t) => b.delete("/bulk", { params: t })
510
+ }, Q = ({ headers: t = {}, params: e = {} } = {}) => {
511
+ const r = h("APP_COUNTRY_STATE_API"), o = h("APP_COUNTRY_STATE_API_KEY");
512
+ return at.create({
513
+ baseURL: `${r}/v1`,
514
+ headers: {
515
+ "Content-type": "application/json",
516
+ "X-CSCAPI-KEY": o,
517
+ ...t
518
+ },
519
+ params: e
520
+ });
521
+ }, Vt = {
522
+ getCountry: () => Q().get("/countries"),
523
+ getState: (t) => Q().get(`/countries/${t}/states`),
524
+ getCity: (t, e) => Q().get(`/countries/${t}/states/${e}/cities`)
525
+ }, A = s({
526
+ prefix: "/routine/v2"
527
+ }), jt = {
528
+ getList: (t) => A.get("/service-center", { params: t }),
529
+ postList: (t) => A.post("/service-center", t),
530
+ putList: (t, e) => A.put(`/service-center/${t}`, e),
531
+ putActivate: (t) => A.put("/service-center/bulk", t),
532
+ getDetailList: (t) => A.get(`/service-center/${t}`),
533
+ getListOptions: (t) => A.get("/service-center/options", { params: t }),
534
+ deleteList: (t) => A.delete("/service-center", { params: t }),
535
+ // Activities
536
+ getActivities: (t) => A.get("/service-activities", { params: t }),
537
+ getActivityOptions: (t) => A.get("/service-activities/options", { params: t }),
538
+ getActivityDetail: (t) => A.get(`/service-activities/${t}`),
539
+ getActivityLog: (t) => A.get(`/service-activities/${t}/activity-log`)
540
+ }, lt = s({
541
+ prefix: "/settings-attribute/v2/brands"
542
+ }), Qt = {
543
+ getDropdown: (t) => lt.get("/dropdown", { params: t })
544
+ }, L = s({
545
+ prefix: "/file-manager/v2"
546
+ }), Yt = {
547
+ /**
548
+ * Get storage information.
549
+ *
550
+ * @returns {Promise<AxiosResponse>} The Axios Response.
551
+ */
552
+ getStorageInformation: () => L.get("/files/storage"),
553
+ /**
554
+ * Get file manager data.
555
+ *
556
+ * @param {FileType} type - The type of the file.
557
+ * @param {FileManagerFilterParams} [params] - The parameters for filtering.
558
+ * @returns {Promise<AxiosResponse>} The Axios Response.
559
+ */
560
+ getFileManager: (t, e) => L.get(`/${t}`, { params: e }),
561
+ /**
562
+ * Get file manager options.
563
+ *
564
+ * @param {FileType} type - The type of the file.
565
+ * @param {FileManagerOptionBoolean} [params] - The parameters for options.
566
+ * @returns {Promise<AxiosResponse>} The Axios Response.
567
+ */
568
+ getFileManagerOption: (t, e) => L.get(`/${t}/options`, { params: e }),
569
+ /**
570
+ * Recover files.
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
+ recoverFiles: (t, e) => L.put(`/${t}/recover`, e),
577
+ /**
578
+ * Delete files.
579
+ *
580
+ * @param {FileType} type - The type of the file.
581
+ * @param {DeleteFileManagerDto} params - The params of the request.
582
+ * @returns {Promise<AxiosResponse>} The Axios Response.
583
+ */
584
+ deleteFiles: (t, e) => L.delete(`/${t}`, { params: e }),
585
+ /**
586
+ * Delete files permanently.
587
+ *
588
+ * @param {FileType} type - The type of the file.
589
+ * @param {object} body - The body of the request.
590
+ * @returns {Promise<AxiosResponse>} The Axios Response.
591
+ */
592
+ deletePermanently: (t, e) => L.delete(`/${t}/delete-permanent`, { params: e })
593
+ }, D = s({
594
+ prefix: "/utility/v2"
595
+ }), Jt = {
596
+ /**
597
+ * Get storage information.
598
+ *
599
+ * @returns {Promise<AxiosResponse>} The Axios Response.
600
+ */
601
+ getStorageInformation: () => D.get("/files/storage"),
602
+ /**
603
+ * Get file manager data.
604
+ *
605
+ * @param {FileType} type - The type of the file.
606
+ * @param {FileManagerFilterParams} [params] - The parameters for filtering.
607
+ * @returns {Promise<AxiosResponse>} The Axios Response.
608
+ */
609
+ getFileManager: (t, e) => D.get(`/${t}`, { params: e }),
610
+ /**
611
+ * Get file manager options.
612
+ *
613
+ * @param {FileType} type - The type of the file.
614
+ * @param {FileManagerOptionBoolean} [params] - The parameters for options.
615
+ * @returns {Promise<AxiosResponse>} The Axios Response.
616
+ */
617
+ getFileManagerOption: (t, e) => D.get(`/${t}/options`, { params: e }),
618
+ /**
619
+ * Recover files.
620
+ *
621
+ * @param {FileType} type - The type of the file.
622
+ * @param {object} body - The body of the request.
623
+ * @returns {Promise<AxiosResponse>} The Axios Response.
624
+ */
625
+ recoverFiles: (t, e) => D.put(`/${t}/recover`, e),
626
+ /**
627
+ * Delete files.
628
+ *
629
+ * @param {FileType} type - The type of the file.
630
+ * @param {DeleteFileManagerDto} params - The params of the request.
631
+ * @returns {Promise<AxiosResponse>} The Axios Response.
632
+ */
633
+ deleteFiles: (t, e) => D.delete(`/${t}`, { params: e }),
634
+ /**
635
+ * Delete files permanently.
636
+ *
637
+ * @param {FileType} type - The type of the file.
638
+ * @param {object} body - The body of the request.
639
+ * @returns {Promise<AxiosResponse>} The Axios Response.
640
+ */
641
+ deletePermanently: (t, e) => D.delete(`/${t}/delete-permanent`, { params: e })
642
+ }, P = s({
643
+ prefix: "/iot/v2/reader"
644
+ }), Kt = {
645
+ getData: (t) => P.get("/", { params: t }),
646
+ getDataOptions: (t) => P.get("/options", { params: t }),
647
+ getActivityLogData: (t) => P.get("/activity-log", { params: t }),
648
+ getActivityLogOptions: (t) => P.get("/activity-log/options", { params: t }),
649
+ getDataById: (t) => P.get(`/${t}`),
650
+ getChangeLog: (t) => P.get(`/${t.id}/change-log`, { params: t }),
651
+ getChangeLogOptions: (t) => P.get(`/${t.id}/change-log/options`, { params: t }),
652
+ putData: (t, e) => P.put(`/${t}`, e)
653
+ }, p = s({
654
+ prefix: "/settings-user-role/v2"
655
+ }), Wt = {
656
+ /**
657
+ * Retrieves the transaction role for the given group and transaction name.
658
+ * @param {string} groupId - The ID of the group to retrieve the transaction role for.
659
+ * @param {string} transactionName - The name of the transaction to retrieve the role for.
660
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
661
+ */
662
+ getTransactionRole: (t, e) => p.get(`/transaction-roles/${t}/${e}`),
663
+ /**
664
+ * Updates the users assigned to the given transaction role.
665
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
666
+ * @param {string} transactionName - The name of the transaction to update.
667
+ * @param {UpdateUser} body - The request body containing the updated user information.
668
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
669
+ */
670
+ putUpdateUsers: (t, e, r) => p.put(
671
+ `/transaction-roles/${t}/${e}/update-user`,
672
+ r
673
+ ),
674
+ /**
675
+ * Updates the approval level for the given transaction role.
676
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
677
+ * @param {string} transactionName - The name of the transaction to update.
678
+ * @param {UserApprovalLevel} body - The request body containing the updated approval level.
679
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
680
+ */
681
+ putUpdateLevel: (t, e, r) => p.put(
682
+ `/transaction-roles/${t}/${e}/update-approval-level`,
683
+ r
684
+ ),
685
+ /**
686
+ * Updates the group management settings for the given transaction role.
687
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
688
+ * @param {string} transactionName - The name of the transaction to update.
689
+ * @param {GroupManageByParent} body - The request body containing the updated management settings.
690
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
691
+ */
692
+ putUpdateGroupManage: (t, e, r) => p.put(
693
+ `/transaction-roles/${t}/${e}/update-manage-by-parent`,
694
+ r
695
+ ),
696
+ getUserAssignedSystemRole: (t) => p.get(`/system-roles/user/${t}`),
697
+ getAssignedUserAmounts: () => p.get("/system-roles/amounts"),
698
+ getPermissionUser: (t, e) => {
699
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
700
+ const r = t === "totalControl" ? "total-control" : "read-only";
701
+ return p.get(`/system-roles/total-control-read-only/${r}`, {
702
+ params: e
703
+ });
704
+ }
705
+ return p.get(`/system-roles/permission/${t}`, { params: e });
706
+ },
707
+ getPermissionUserOptions: (t, e) => {
708
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
709
+ const r = t === "totalControl" ? "total-control" : "read-only";
710
+ return p.get(`/system-roles/total-control-read-only/${r}/options`, {
711
+ params: e
712
+ });
713
+ }
714
+ return p.get(`/system-roles/permission/${t}/options`, {
715
+ params: e
716
+ });
717
+ },
718
+ getUserGroups: (t, e) => p.get(`/system-roles/permission/${e}/groups`, {
719
+ params: t
720
+ }),
721
+ postAssignUser: (t, e) => {
722
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
723
+ const r = e === "totalControl" ? "total-control" : "read-only";
724
+ return p.post(`/system-roles/total-control-read-only/${r}`, t);
725
+ }
726
+ return p.post(`/system-roles/permission/${e}`, t);
727
+ },
728
+ putEditUser: (t, e) => p.put(`/system-roles/${e}`, t),
729
+ putRoleSetActive: (t) => p.put("/system-roles/set-active", t),
730
+ deleteRemoveUser: (t, e) => {
731
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
732
+ const r = e === "totalControl" ? "total-control" : "read-only";
733
+ return p.delete(`/system-roles/total-control-read-only/${r}`, {
734
+ data: t
735
+ });
736
+ }
737
+ return p.delete("/system-roles", { data: t });
738
+ }
739
+ }, c = s({
740
+ prefix: "/settings-user-role-go/v2"
741
+ }), zt = {
742
+ /**
743
+ * Retrieves the transaction role for the given group and transaction name.
744
+ * @param {string} groupId - The ID of the group to retrieve the transaction role for.
745
+ * @param {string} transactionName - The name of the transaction to retrieve the role for.
746
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
747
+ */
748
+ getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
749
+ getTransactionRoleTypes: (t, e) => c.get(`/transaction-roles/${e}/types`, {
750
+ params: { groupKeys: t }
751
+ }),
752
+ /**
753
+ * Updates the users assigned to the given transaction role.
754
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
755
+ * @param {string} transactionName - The name of the transaction to update.
756
+ * @param {UpdateUser} body - The request body containing the updated user information.
757
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
758
+ */
759
+ putUpdateUsers: (t, e, r) => c.put(
760
+ `/transaction-roles/${t}/${e}/update-user`,
761
+ r
762
+ ),
763
+ /**
764
+ * Updates the approval level for the given transaction role.
765
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
766
+ * @param {string} transactionName - The name of the transaction to update.
767
+ * @param {UserApprovalLevel} body - The request body containing the updated approval level.
768
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
769
+ */
770
+ putUpdateLevel: (t, e, r) => c.put(
771
+ `/transaction-roles/${t}/${e}/update-approval-level`,
772
+ r
773
+ ),
774
+ /**
775
+ * Updates the group management settings for the given transaction role.
776
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
777
+ * @param {string} transactionName - The name of the transaction to update.
778
+ * @param {GroupManageByParent} body - The request body containing the updated management settings.
779
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
780
+ */
781
+ putUpdateGroupManage: (t, e, r) => c.put(
782
+ `/transaction-roles/${t}/${e}/update-manage-by-parent`,
783
+ r
784
+ ),
785
+ getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
786
+ getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
787
+ getPermissionUser: (t, e) => {
788
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
789
+ const r = t === "totalControl" ? "total-control" : "read-only";
790
+ return c.get(`/system-roles/total-control-read-only/${r}`, {
791
+ params: e
792
+ });
793
+ }
794
+ return c.get(`/system-roles/permission/${t}`, { params: e });
795
+ },
796
+ getPermissionUserOptions: (t, e) => {
797
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
798
+ const r = t === "totalControl" ? "total-control" : "read-only";
799
+ return c.get(`/system-roles/total-control-read-only/${r}/options`, {
800
+ params: e
801
+ });
802
+ }
803
+ return c.get(`/system-roles/permission/${t}/options`, {
804
+ params: e
805
+ });
806
+ },
807
+ getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
808
+ params: t
809
+ }),
810
+ postAssignUser: (t, e) => {
811
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
812
+ const r = e === "totalControl" ? "total-control" : "read-only";
813
+ return c.post(`/system-roles/total-control-read-only/${r}`, t);
814
+ }
815
+ return c.post(`/system-roles/permission/${e}`, t);
816
+ },
817
+ putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
818
+ deleteRemoveUser: (t, e) => {
819
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
820
+ const r = e === "totalControl" ? "total-control" : "read-only";
821
+ return c.put(`/system-roles/total-control-read-only/${r}`, t);
822
+ }
823
+ return c.put("/system-roles", t);
824
+ }
825
+ }, _ = s({
826
+ prefix: "/settings-attribute/v2/open-api"
827
+ }), Xt = {
828
+ getOpenAPIDocs: (t) => _.get(`/${t.doc}`),
829
+ putGenerateToken: () => _.put("/generate"),
830
+ // This is if the dummy was not dummy
831
+ getToken: () => _.get(""),
832
+ putRequestOpenAPI: () => _.put("/request"),
833
+ putCancelRequestOpenAPI: () => _.put("/cancel-request")
834
+ }, B = s({
835
+ prefix: "/settings-attribute-go/v2/open-api"
836
+ }), Zt = {
837
+ putGenerateToken: () => B.put("/generate"),
838
+ // This is if the dummy was not dummy
839
+ getToken: () => B.get(""),
840
+ putRequestOpenAPI: () => B.put("/request"),
841
+ putCancelRequestOpenAPI: () => B.put("/cancel-request")
842
+ }, I = s({
843
+ prefix: "/import/v2"
844
+ }), te = {
845
+ getImport: (t, e) => I.get(`/${t}`, { params: e }),
846
+ postImportTemporary: (t, e) => {
847
+ const r = { "Content-Type": "multipart/form-data" };
848
+ return I.post(`/${t}/temporary`, e, { headers: r });
849
+ },
850
+ deleteImportTemporary: (t, e) => I.delete(`/${t}/temporary`, { data: e }),
851
+ postDuplicateImport: (t, e) => I.post(`/${t}/duplicate`, e),
852
+ putEditImport: (t, e) => I.put(`/${t}`, e),
853
+ postImport: (t, e, r) => I.post(t, r, { signal: e.signal }),
854
+ putImportCancelProgress: (t) => I.put(`/${t}/cancel-progress`)
855
+ }, U = s({
856
+ prefix: "/import-go/v2"
857
+ }), ee = {
858
+ getImport: (t, e) => U.get(`/${t}`, { params: e }),
859
+ postImportTemporary: (t, e) => {
860
+ const r = { "Content-Type": "multipart/form-data" };
861
+ return U.post(`/${t}/temporary`, e, { headers: r });
862
+ },
863
+ deleteImportTemporary: (t, e) => U.delete(`/${t}/temporary`, { params: e }),
864
+ postDuplicateImport: (t, e) => U.post(`/${t}/duplicate`, e),
865
+ putEditImport: (t, e) => U.put(`/${t}`, e),
866
+ postImport: (t, e, r) => U.post(t, r, { signal: e.signal }),
867
+ putImportCancelProgress: (t) => U.put(`/${t}/cancel-progress`)
868
+ }, R = s({
869
+ prefix: "/settings-attribute/v2/asset-name"
870
+ }), re = {
871
+ getDropdown: (t) => R.get("/dropdown", { params: t }),
872
+ getAssetNameDetail: (t) => R.get(`/${t}`),
873
+ getAssetsByAssetName: (t, e) => R.get(`/${t}/list-asset`, { params: e }),
874
+ getAssetNameList: (t) => R.get("/", { params: t }),
875
+ getUnpairedAssetName: (t) => R.get("/unpaired", { params: t }),
876
+ getOptions: (t) => R.get("/options", { params: t })
877
+ }, n = s({
878
+ prefix: "/assignment/v2"
879
+ }), se = {
880
+ getPreListData: (t) => n.get("/prelist", { params: t }),
881
+ getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
882
+ getRequestData: (t) => n.get("/prelist/request", { params: t }),
883
+ postAddPrelistData: (t) => n.post("/prelist", t),
884
+ getDetailRequestData: (t, e) => n.get(`/transaction/${t}/request`, { params: e }),
885
+ getDetailRequestOption: (t, e) => n.get(`/transaction/${e}/request/options`, { params: t }),
886
+ getTransactionData: (t) => n.get("/transaction", { params: t }),
887
+ getTransactionOptions: (t) => n.get("/transaction/options", { params: t }),
888
+ getDetailTransactionData: (t) => n.get(`/transaction/${t}`),
889
+ getTransactionApproval: (t) => n.get("/approval", { params: t }),
890
+ getApprovalData: (t, e) => n.get(`/approval/transaction/${t}`, { params: e }),
891
+ getTransactionApprovalOptions: (t) => n.get("/approval/options", { params: t }),
892
+ getApprovalOptions: (t, e) => n.get(`/approval/transaction/${t}/options`, {
893
+ params: e
894
+ }),
895
+ getTransactionApprovers: (t) => n.get(`/approval/transaction/${t}/transaction`),
896
+ putApproveApproval: (t) => n.put("/approval/approve", t),
897
+ getDetailTransactionLog: (t) => n.get(`/transaction/request/${t}/transaction-log`),
898
+ getVerifyAsset: (t, e) => n.get(`/transaction/${e}/request/scan`, { params: t }),
899
+ putEditAssignedUser: (t, e) => n.put(`/transaction/${t}/user`, e),
900
+ putEditEmailConfirmation: (t, e) => n.put(`/transaction/${t}/update-email-or-assigned-user`, e),
901
+ postSendConfirmationEmail: (t) => n.post(`/transaction/${t}/send-confirmation-email`),
902
+ postTransaction: (t) => n.post("/transaction", t),
903
+ putTransaction: (t, e) => n.put(`/transaction/${t}/request`, e),
904
+ putCancelTransaction: (t) => n.put("/transaction/cancel", t),
905
+ putCancelAssignmentRequest: (t) => n.put("/transaction/request/cancel", t),
906
+ putVerifyRequest: (t, e) => n.put(`/transaction/${e}/verify-requests`, t),
907
+ putVerifyToken: (t) => n.put("/transaction/verify-token", t),
908
+ putHandoverConfirm: (t) => n.put("/transaction/handover-confirmation", t),
909
+ putAssignHandover: (t) => n.put(`/transaction/${t}/handover`),
910
+ deletePrelistData: (t) => n.delete("/prelist", { params: t }),
911
+ deleteRequestPrelistData: (t) => n.delete("/prelist/request", { data: t }),
912
+ getAssignedByAsset: (t) => n.get("/transaction/request/assigned/by-asset", { params: t }),
913
+ getAssignedByAssetOptions: (t) => n.get("/transaction/request/assigned/by-asset/options", {
914
+ params: t
915
+ }),
916
+ getAssignedByUser: (t) => n.get("/transaction/request/assigned/by-user", { params: t }),
917
+ getAssignedByUserOptions: (t) => n.get("/transaction/request/assigned/by-user/options", { params: t }),
918
+ postUnassignPrelistAsset: (t) => n.post("/prelist", t),
919
+ postUnassignPrelistUser: (t) => n.post("/prelist/unassign/by-user", t),
920
+ putUnassignRequest: (t) => n.put("/transaction/request/unassign", t),
921
+ putReportDone: (t, e) => n.put(`/transaction/${t}/confirm-report-done`, e),
922
+ getHistory: (t, e) => {
923
+ const r = t.split(" ").join("-").toLowerCase();
924
+ return n.get(`/transaction/history/${r}`, { params: e });
925
+ },
926
+ getHistoryOptions: (t) => n.get("/transaction/history/options", { params: t }),
927
+ getHistoryByTransactionOptions: (t) => n.get("/transaction/history/by-transaction/options", { params: t }),
928
+ putCancelReport: (t) => n.put("/transaction/request/cancel-report", t),
929
+ getTaskAssignment: async (t) => n.get("/transaction/my-asset/task", { params: t }),
930
+ getTaskAssignmentOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
931
+ getAssignedAsset: async (t) => n.get("/transaction/my-asset/assigned-asset", { params: t }),
932
+ getAssignedAssetOptions: async (t) => n.get("/transaction/my-asset/assigned-asset/options", { params: t }),
933
+ putCancelAssignment: async (t) => n.put("/transaction/cancel", { id: t.id }),
934
+ putCancelReportById: async (t) => n.put(`/transaction/request/${t.id}/cancel-report`)
935
+ }, T = s({
936
+ prefix: "/assignment-go/v2"
937
+ }), ne = {
938
+ getTransactionData: (t) => T.get("/transaction", { params: t }),
939
+ getTransactionOptions: (t) => T.get("/transaction/options", { params: t }),
940
+ getDetailTransactionLog: (t) => T.get(`/transaction/request/${t}/transaction-log`),
941
+ postTransaction: (t) => T.post("/transaction", t),
942
+ putTransaction: (t) => T.put("/transaction", t),
943
+ putUnassignTransaction: (t) => T.put("/transaction/unassign", t),
944
+ putCancelReport: (t) => T.put("/transaction/request/cancel-report", t)
945
+ }, F = s({
946
+ prefix: "/license/v2"
947
+ }), oe = {
948
+ getGroupQuota: (t) => F.get(`/${t}/allocation-quota`),
949
+ getSubGroupQuota: (t) => F.get(`/${t}/subgroup-quota`),
950
+ editSubGroupQuota: (t, e) => F.put(`/${t}/set-group-quota`, e),
951
+ getTotalLicense: () => F.get("/total-license")
952
+ }, rt = s({
953
+ prefix: "/repair/v2/damage"
954
+ }), ae = {
955
+ putReportDamage: (t, e) => {
956
+ const r = { "Content-Type": "multipart/form-data" };
957
+ return rt.put(`/report-damage/${t}`, e, { headers: r });
958
+ },
959
+ /**
960
+ * To mark as repaired.
961
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
962
+ */
963
+ putMarkAsRepaired: (t) => rt.put("/repair", t)
964
+ }, st = s({
965
+ prefix: "/damage-repair-ticketing/v2"
966
+ }), ie = {
967
+ putReportDamage: (t, e) => {
968
+ const r = { "Content-Type": "multipart/form-data" };
969
+ return st.put(`/${t}/report-damage`, e, { headers: r });
970
+ },
971
+ putMarkAsRepaired: (t) => st.put("/repair", t)
972
+ }, d = s({
973
+ prefix: "/borrowing/v2"
974
+ }), ue = {
975
+ getTaskBorrowing: async (t) => d.get("/transaction/my-asset/task", { params: t }),
976
+ getTaskBorrowingOptions: async (t) => d.get("/transaction/my-asset/task/options", { params: t }),
977
+ getBorrowedAsset: async (t) => d.get("/transaction/my-asset/borrowed-asset", { params: t }),
978
+ getBorrowedOptions: async (t) => d.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
979
+ getHistory: async (t) => d.get("/transaction/my-asset/history", { params: t }),
980
+ getHistoryOptions: async (t) => d.get("/transaction/my-asset/history/options", { params: t }),
981
+ postAddPrelistData: (t) => d.post("/prelist", t),
982
+ putCancelBorrowing: async (t) => d.put("/transaction/cancel", { id: t.id }),
983
+ putCancelExtensionRequest: async (t) => d.put(`/transaction/${t.id}/cancel-extension`),
984
+ putCancelRequestReport: async (t) => d.put(`/transaction/request/${t.id}/cancel-report`),
985
+ putDeclineExtensionRequest: async (t) => d.put("transaction/request/decline", t),
986
+ putUpdateRequestExtension: async (t) => d.put("transaction/request/duration", t)
987
+ }, nt = s({
988
+ prefix: "/assets/v2"
989
+ }), ge = {
990
+ getHistory: async (t) => nt.get("/my-asset", { params: t }),
991
+ getHistoryOptions: async (t) => nt.get("/my-asset/options", { params: t })
992
+ }, N = s({
993
+ prefix: "/repair/v2"
994
+ }), pe = {
995
+ getRepairList: (t) => N.get("/my-asset/repair", { params: t }),
996
+ getFilterOptions: (t) => N.get("/my-asset/repair/options", { params: t }),
997
+ getRepairTicketing: (t, e) => N.get(`/repair/${t}/asset-repair-detail`, { params: e }),
998
+ putConfirmRepair: (t) => N.put(`/repair/${t}/confirm-repair`)
999
+ }, dt = s({
1000
+ env: "APP_GLOBAL_SETTINGS_API",
1001
+ prefix: "/v1/global-settings/auth"
1002
+ }), k = s({
1003
+ env: "APP_TAGSAMURAI_API",
1004
+ prefix: "/settings-user-role/v2/auth"
1005
+ }), ce = {
1006
+ login: (t) => {
1007
+ const e = { ...t, isMobile: !1 };
1008
+ return dt.post("/login", e);
1009
+ },
1010
+ requestOTP: (t) => {
1011
+ const e = { email: t };
1012
+ return k.post("/request-otp", e);
1013
+ },
1014
+ requestResetPassLink: (t) => {
1015
+ const e = { email: t };
1016
+ return k.post("/request-reset-link", e);
1017
+ },
1018
+ setPassword: (t) => k.post("/set-password", t),
1019
+ verifyToken: (t) => k.get(`/verify-token/${t}`),
1020
+ confirmEmailChange: (t) => {
1021
+ const e = { token: t };
1022
+ return k.put("/confirm-email-change/confirm", e);
1023
+ }
1024
+ }, Y = "/transfer/v2", M = s({
1025
+ prefix: `${Y}/prelist`
1026
+ }), l = s({
1027
+ prefix: `${Y}/transaction`
1028
+ }), q = s({
1029
+ prefix: `${Y}/approval`
1030
+ }), le = {
1031
+ // ------ TRANSACTION ------
1032
+ getTransactions: (t) => l.get("/", { params: t }),
1033
+ getTransactionDetail: (t) => l.get(`/${t}`),
1034
+ getTransactionDetailAssets: (t, e) => l.get(`/${t}/request`, { params: e }),
1035
+ getRequestFilterOptions: (t, e) => {
1036
+ const r = {};
1037
+ return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0), l.get(`/${t}/request/options`, { params: r });
1038
+ },
1039
+ getTransactionLog: (t) => l.get(`/request/${t}/transaction-log`),
1040
+ getTransactionOptions: (t) => {
1041
+ const e = {};
1042
+ return e[t] = !0, l.get("/options", { params: e });
1043
+ },
1044
+ postCreateTransaction: (t) => l.post("/", t),
1045
+ putCancelTransactions: (t) => {
1046
+ const e = { id: t };
1047
+ return l.put("/cancel", e);
1048
+ },
1049
+ putUpdateTransaction: (t, e) => l.put(`/${t}`, e),
1050
+ putCancelRequests: (t) => {
1051
+ const e = { id: t };
1052
+ return l.put("/request/cancel", e);
1053
+ },
1054
+ getHistoryByTransaction: (t) => l.get("/history", { params: t }),
1055
+ getHistoryByTransactionOptions: (t) => {
1056
+ const e = {};
1057
+ return e[t] = !0, l.get("/history/options", { params: e });
1058
+ },
1059
+ getHistoryByAsset: (t) => l.get("/history/by-asset", { params: t }),
1060
+ getHistoryByAssetOptions: (t) => {
1061
+ const e = {};
1062
+ return e[t] = !0, l.get("/history/by-asset/options", { params: e });
1063
+ },
1064
+ getApproverList: (t) => l.get(`/${t}/approval-history`),
1065
+ putHandoverTransaction: (t, e) => l.put(`/${t}/handover`, e),
1066
+ // ------ PRELIST ------
1067
+ getPrelist: (t) => M.get("/", { params: t }),
1068
+ postAddPrelistData: (t) => M.post("/", t),
1069
+ deletePrelist: (t) => M.delete("/", {
1070
+ params: {
1071
+ id: JSON.stringify(t)
1072
+ }
1073
+ }),
1074
+ getPrelistAssets: (t) => {
1075
+ const e = { id: t };
1076
+ return M.get("/request", { params: e });
1077
+ },
1078
+ // APPROVAL
1079
+ getApprovals: (t, e) => {
1080
+ const r = { ...e, status: JSON.stringify([t]) };
1081
+ return q.get("/", { params: r });
1082
+ },
1083
+ getApprovalOptions: (t, e) => {
1084
+ const r = {
1085
+ status: JSON.stringify([t])
1086
+ };
1087
+ return r[e] = !0, q.get("/options", { params: r });
1088
+ },
1089
+ getApprovalDetail: (t, e) => {
1090
+ const r = {
1091
+ groupType: e
1092
+ };
1093
+ return q.get(`/transaction/${t}`, { params: r });
1094
+ },
1095
+ getApprovalDetailOptions: (t, e, r) => {
1096
+ const o = {};
1097
+ return o[e] = !0, o.groupType = r, q.get(`/transaction/${t}/options`, { params: o });
1098
+ },
1099
+ putUpdateApproval: (t) => q.put("/approve", t)
1100
+ }, ot = s({
1101
+ prefix: "/disposal/v2"
1102
+ }), de = {
1103
+ getReportedDisposal: (t) => ot.get("/report", { params: t }),
1104
+ deleteCancelReport: (t) => ot.delete("/report/cancel-report", { params: t })
1105
+ }, H = s({
1106
+ prefix: "/transfer-go/v2"
1107
+ }), Ae = {
1108
+ getTransactionData: (t) => H.get("/transaction", { params: t }),
1109
+ getTransactionOptions: (t) => H.get("/transaction/options", { params: t }),
1110
+ getTransactionLog: (t) => H.get(`/transaction/request/${t}/transaction-log`),
1111
+ postCreateTransaction: (t) => H.post("/transaction", t)
194
1112
  };
195
1113
  export {
196
- N as AssetServices,
197
- D as ChangelogServices,
198
- y as GroupCategoryServices,
199
- M as I18nService,
200
- C as MissingServices,
201
- h as NotificationApprovalServices,
202
- E as NotificationServices,
203
- R as SessionLogServices,
204
- G as TAGServices,
205
- x as TrackingServices,
206
- w as UserServices,
207
- A as getBaseURL,
208
- U as getImageURL,
209
- O as queryParamsStringfy
1114
+ Et as AliasCodeServices,
1115
+ Bt as AliasCodeServicesGo,
1116
+ re as AssetNameServices,
1117
+ Tt as AssetServices,
1118
+ se as AssignmentServices,
1119
+ ne as AssignmentServicesGo,
1120
+ ce as AuthServices,
1121
+ ue as BorrowServices,
1122
+ Qt as BrandServices,
1123
+ It as ChangelogServices,
1124
+ Vt as CountryStateServices,
1125
+ Mt as CustomFieldServices,
1126
+ Ht as CustomFieldServicesGo,
1127
+ ae as DamageServices,
1128
+ ie as DamageServicesGo,
1129
+ wt as DashboardServices,
1130
+ de as DisposalServices,
1131
+ Yt as FileManagerServices,
1132
+ Jt as FileManagerServicesGo,
1133
+ Ft as GeneralSettingsServices,
1134
+ Nt as GeneralSettingsServicesGo,
1135
+ St as GroupCategoryServices,
1136
+ Pt as GroupCategoryServicesGo,
1137
+ xt as I18nService,
1138
+ te as ImportServices,
1139
+ ee as ImportServicesGo,
1140
+ oe as LicenseServices,
1141
+ Ut as LogServicesGo,
1142
+ Ct as MissingServices,
1143
+ Ot as MissingServicesGo,
1144
+ ge as MyAssetServices,
1145
+ ft as NotificationApprovalServices,
1146
+ bt as NotificationServices,
1147
+ Lt as NotificationServicesGo,
1148
+ Xt as OpenAPIServices,
1149
+ Zt as OpenAPIServicesGo,
1150
+ Kt as ReaderServices,
1151
+ pe as RepairServices,
1152
+ Wt as RoleServices,
1153
+ zt as RoleServicesGo,
1154
+ jt as ServiceCenterServices,
1155
+ Dt as SessionLogServices,
1156
+ kt as SubUserServices,
1157
+ qt as SubUserServicesGo,
1158
+ Rt as TAGServices,
1159
+ ht as TrackingServices,
1160
+ le as TransferServices,
1161
+ Ae as TransferServicesGo,
1162
+ Gt as UserServices,
1163
+ _t as UserServicesGo,
1164
+ yt as getAssetsFile,
1165
+ h as getBaseURL,
1166
+ mt as getImageURL,
1167
+ vt as getImageURLGo,
1168
+ $t as queryParamsStringfy
210
1169
  };