@tagsamurai/fats-api-services 1.0.0-alpha.13 → 1.0.0-alpha.131

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 (114) hide show
  1. package/api-services.es.js +1092 -104
  2. package/api-services.system.js +1 -1
  3. package/main.d.ts +43 -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 +83 -0
  7. package/src/dto/assetName.dto.d.ts +8 -0
  8. package/src/dto/assetService.dto.d.ts +120 -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 +48 -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 +26 -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 +19 -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 +3 -2
  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 +120 -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/disposal.type.d.ts +1 -0
  95. package/src/types/fetchResponse.type.d.ts +7 -0
  96. package/src/types/fileManager.type.d.ts +24 -0
  97. package/src/types/groupCategoryData.type.d.ts +3 -10
  98. package/src/types/importData.type.d.ts +92 -0
  99. package/src/types/maintenanceRoutine.type.d.ts +10 -0
  100. package/src/types/notification.type.d.ts +17 -0
  101. package/src/types/oldAssetService.type.d.ts +98 -0
  102. package/src/types/oldTagService.type.d.ts +118 -0
  103. package/src/types/reader.d.ts +55 -0
  104. package/src/types/role.type.d.ts +111 -6
  105. package/src/types/serviceCenter.type.d.ts +29 -0
  106. package/src/types/subUser.type.d.ts +28 -0
  107. package/src/types/transfer.type.d.ts +64 -0
  108. package/src/types/user.type.d.ts +42 -0
  109. package/src/types/userGlobalRole.type.d.ts +1 -1
  110. package/src/types/userGroupRole.type.d.ts +1 -1
  111. package/src/types/userTransactionRole.type.d.ts +2 -0
  112. package/src/utils/getAssetsFile.util.d.ts +1 -0
  113. package/src/utils/index.d.ts +1 -0
  114. 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 gt from "axios";
2
+ const lt = { 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" }, G = (t = "APP_API") => lt["VITE_" + t], s = (t = {}, e = !1) => {
3
+ const { env: r = "APP_API", prefix: o = "", headers: v = {}, ...S } = t, pt = `${G(r)}${o}`, z = JSON.parse(localStorage.getItem("user") ?? "{}"), ct = z.jwt ?? z.token ?? "";
4
+ return gt.create({
5
+ ...S,
6
+ baseURL: pt,
7
+ headers: e ? v : {
8
8
  "Content-Type": "application/json",
9
- Authorization: `Bearer ${_}`,
10
- ...u
9
+ Authorization: `Bearer ${ct}`,
10
+ ...v
11
11
  }
12
12
  });
13
- }, O = (t) => {
13
+ }, yt = (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
+ }, St = (t, e, r) => {
25
25
  if (!t) return;
26
- const e = A("APP_TAGSAMURAI_API");
26
+ const o = G("APP_API"), v = t.startsWith("http") ? t : `${o}/utility/v2/files/${t.replace(/^\/+/, "")}`;
27
+ if (e || r) {
28
+ const S = new URLSearchParams();
29
+ return e && (S.set("width", e.toString()), S.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${v}?${S.toString()}`;
30
+ }
31
+ return v;
32
+ }, Pt = (t) => {
33
+ if (!t) return;
34
+ const e = G("APP_TAGSAMURAI_API");
27
35
  return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
28
- }, o = n({
36
+ }, ft = async (t, e = "excel") => await fetch(
37
+ `${G("APP_ASSETS_URL")}/${e}/${t}`
38
+ ), m = s({
29
39
  prefix: "/settings-attribute/v2",
30
40
  env: "APP_TAGSAMURAI_API"
31
- }), y = {
41
+ }), It = {
32
42
  getGroupCategory: (t, e) => {
33
43
  const r = t === "category" ? t : "groups";
34
- return o.get(`/${r}/tree`, { params: e });
44
+ return m.get(`/${r}/tree`, { params: e });
45
+ },
46
+ getGroupCategoryList: (t, e, r) => {
47
+ const o = t === "category" ? t : "groups";
48
+ return m.get(`/${o}/${e}`, { params: r });
49
+ },
50
+ getNames: (t) => {
51
+ const e = t === "category" ? t : "groups";
52
+ return m.get(`/${e}/names`);
53
+ },
54
+ getCodes: (t) => {
55
+ const e = t === "category" ? t : "groups";
56
+ return m.get(`/${e}/codes`);
57
+ },
58
+ postCreateGroupCategory: (t, e) => {
59
+ const r = t === "category" ? t : "groups";
60
+ return m.post(`/${r}`, e);
61
+ },
62
+ putEditGroupCategory: (t, e, r) => {
63
+ const o = t === "category" ? t : "groups";
64
+ return m.put(`/${o}/${r}`, e);
65
+ },
66
+ putMoveGroup: (t, e) => m.put(`/groups/${e}/move-group`, t),
67
+ putEditBulkGroups: async (t) => m.put("/groups/bulk", t),
68
+ deleteGroupCategory: (t, e, r) => {
69
+ const o = t === "category" ? t : "groups";
70
+ return m.delete(`/${o}/${r}`, { data: e });
71
+ }
72
+ }, U = s({
73
+ prefix: "/settings-attribute-go/v2"
74
+ }), Ut = {
75
+ getGroupCategory: (t, e) => {
76
+ const r = t === "category" ? t : "groups";
77
+ return U.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 U.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 U.get(`/${e}/names`);
86
+ },
87
+ getCodes: (t) => {
88
+ const e = t === "category" ? t : "groups";
89
+ return U.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 U.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 U.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 U.delete(`/${o}/${r}`, { data: e });
57
102
  }
58
- }, v = n({
103
+ }, dt = s({
59
104
  prefix: "/v2",
60
105
  env: "APP_LOGS_NOTIFICATION_API"
61
- }), h = {
62
- getTotalApprovals: () => v.get("/approval/count")
63
- }, i = n({
106
+ }), Tt = {
107
+ getTotalApprovals: () => dt.get("/approval/count")
108
+ }, P = 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
+ }), Ct = {
112
+ getActionLog: (t) => P.get("/change-log", { params: t }),
113
+ getActionLogOption: (t) => P.get("/change-log/options", { params: t }),
114
+ getSessionLogList: (t) => P.get("/session-log", { params: t }),
115
+ getUserDetailSystemLogList: (t) => P.get("/change-log", { params: t }),
116
+ getUserDetailSystemLogOption: (t) => P.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) => P.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) => P.get("/transaction-log/options", { params: t }),
127
+ postScanLog: (t) => P.post("/transaction-log/scan-log", t)
128
+ }, y = s({
129
+ prefix: "/utility/v2"
130
+ }), Ot = {
131
+ getActionLog: (t) => y.get("/change-log", { params: t }),
132
+ getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
133
+ getSessionLogList: (t) => y.get("/session-log", { params: t }),
134
+ getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
135
+ getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
136
+ getUserDetailUserLogBorrowingList: (t, e) => y.get(`/borrowing-log/${t}`, { params: e }),
137
+ getUserDetailUserLogAssignmentList: (t, e) => y.get(`/assignment-log/${t}`, { params: e }),
138
+ getUserDetailUserLogBorrowingOption: (t, e) => y.get(`/borrowing-log/${t}/options`, { params: e }),
139
+ getUserDetailUserLogAssignmentOption: (t, e) => y.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
+ }), w = s({
143
+ prefix: "/assets/v2/attachment"
144
+ }), bt = {
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) => w.get("", { params: t }),
189
+ postAttachment: (t) => {
190
+ const e = { "Content-Type": "multipart/form-data" };
191
+ return w.post("", t, { headers: e });
192
+ },
193
+ putAttachment: (t, e) => {
194
+ const r = { "Content-Type": "multipart/form-data" };
195
+ return w.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) => w.delete("/bulk", { params: t })
203
+ }, X = s({
77
204
  prefix: "/tracking/v2/missing"
78
- }), C = {
205
+ }), Lt = {
206
+ /**
207
+ * To mark as found.
208
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
209
+ */
210
+ putMarkAsFound: (t) => X.put("/found", t),
211
+ putReportMissing: (t, e) => X.put(`/report-missing/${t}`, e)
212
+ }, Z = s({
213
+ prefix: "/missing-tracking/v2"
214
+ }), Dt = {
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 Z.put("/found", r);
218
+ },
219
+ putReportMissing: (t, e) => Z.put(`/${t}/report-missing`, e)
220
+ }, tt = 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
+ }), Rt = {
224
+ getNotifications: (t) => tt.get("/", { params: t }),
225
+ readNotification: (t) => tt.put(`/${t}`)
226
+ }, et = s({
227
+ prefix: "/utility/v2/notification"
228
+ }), ht = {
229
+ getNotifications: (t) => et.get("/", { params: t }),
230
+ readNotification: (t) => et.put(`/${t}`)
231
+ }, At = s({
90
232
  prefix: "/v2/session-log",
91
233
  env: "APP_LOGS_NOTIFICATION_API"
92
- }), R = {
93
- postLogout: () => $.post("/logout")
94
- }, l = n({
234
+ }), Gt = {
235
+ postLogout: () => At.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
+ }), _t = {
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
+ }, q = s({
100
276
  prefix: "/tracking/v2/tracking"
101
- }), x = {
277
+ }), kt = {
278
+ getTrackingDetail: (t) => q.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 q.put("/found", { params: o });
287
+ },
288
+ putReportPermanentlyMissing: (t, e) => q.put(`/report-permanently-missing/${t}`, e),
289
+ putMoveBack: (t) => q.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
+ }), xt = {
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
+ }), wt = {
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
+ }, f = s({
372
+ prefix: "/settings-user-role/v2/sub-users"
373
+ }), qt = {
374
+ // Sub User
375
+ getSubUserList: (t, e) => f.get(`/${t}`, { params: e }),
376
+ getSubUserOptions: (t, e) => f.get(`/${t}/option`, { params: e }),
377
+ postCreateSubUser: (t, e) => {
378
+ const r = { "Content-Type": "multipart/form-data" };
379
+ return f.post(`/${t}`, e, { headers: r });
380
+ },
381
+ putSubUserSetActiveBulk: (t) => f.put("/set-active-bulk", t),
382
+ deleteSubUser: (t) => f.delete("/bulk", { data: { subUserIds: t } }),
383
+ putEditSubUser: (t, e) => {
384
+ const r = { "Content-Type": "multipart/form-data" };
385
+ return f.put(`/${t}`, e, { headers: r });
386
+ },
387
+ getBorrowedAsset: (t, e) => f.get(`/${t}/borrowed-asset`, { params: e }),
388
+ getBorrowedAssetOptions: (t, e) => f.get(`/${t}/borrowed-asset/options`, { params: e })
389
+ }, $ = s({
390
+ prefix: "/settings-user-role-go/v2/users"
391
+ }), Et = {
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
+ }), Bt = {
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,743 @@ 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
+ }, rt = s({
466
+ prefix: "/dashboard/v2/dashboard"
467
+ }), Ft = {
468
+ getLatestTask: (t) => rt.get("/latest-task", { params: t }),
469
+ getSummary: (t) => rt.get("/summary", { params: t })
470
+ }, V = s({
471
+ prefix: "/alias-code/api/alias-code"
472
+ }), Nt = {
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
+ }), Mt = {
479
+ getAliasCode: () => j.get("/"),
480
+ postAliasCode: (t) => j.post("/", t),
481
+ getAliasCodeList: (t) => j.get(`/${t.object}/code-list`, { params: t })
482
+ }, st = s({
483
+ prefix: "/settings-attribute/v2/general-settings"
484
+ }), Ht = {
485
+ getGeneralSettings: () => st.get("/"),
486
+ putUpdateGeneralSettings: (t) => st.put("/", t)
487
+ }, nt = s({
488
+ prefix: "/settings-attribute-go/v2/general-settings"
489
+ }), Vt = {
490
+ getGeneralSettings: () => nt.get("/"),
491
+ putUpdateGeneralSettings: (t) => nt.put("/", t)
492
+ }, T = s({
493
+ prefix: "/settings-attribute/v2/custom-field"
494
+ }), jt = {
495
+ getCustomField: async (t) => T.get("/", { params: t }),
496
+ getCustomFieldsByCategory: (t, e) => T.get(`/${t}`, { params: e }),
497
+ getOptions: async (t) => T.get("/options", { params: t }),
498
+ postCreateCustomField: async (t, e) => T.post("/", e, { params: t }),
499
+ putEditCustomField: async (t, e, r) => T.put(`/${r}`, e, { params: t }),
500
+ putChangeStatus: async (t, e) => T.put("/bulk", e, { params: t }),
501
+ deleteCustomField: async (t) => T.delete("/bulk", { data: t })
502
+ }, L = s({
503
+ prefix: "/settings-attribute-go/v2/custom-field"
504
+ }), Qt = {
505
+ getCustomField: async (t) => L.get("/", { params: t }),
506
+ getOptions: async (t) => L.get("/options", { params: t }),
507
+ postCreateCustomField: async (t, e) => L.post("/", e, { params: t }),
508
+ putEditCustomField: async (t, e, r) => L.put(`/${r}`, e, { params: t }),
509
+ putChangeStatus: async (t, e) => L.put("/bulk", e, { params: t }),
510
+ deleteCustomField: async (t) => L.delete("/bulk", { params: t })
511
+ }, Q = ({ headers: t = {}, params: e = {} } = {}) => {
512
+ const r = G("APP_COUNTRY_STATE_API"), o = G("APP_COUNTRY_STATE_API_KEY");
513
+ return gt.create({
514
+ baseURL: `${r}/v1`,
515
+ headers: {
516
+ "Content-type": "application/json",
517
+ "X-CSCAPI-KEY": o,
518
+ ...t
519
+ },
520
+ params: e
521
+ });
522
+ }, Yt = {
523
+ getCountry: () => Q().get("/countries"),
524
+ getState: (t) => Q().get(`/countries/${t}/states`),
525
+ getCity: (t, e) => Q().get(`/countries/${t}/states/${e}/cities`)
526
+ }, A = s({
527
+ prefix: "/routine/v2"
528
+ }), Jt = {
529
+ getList: (t) => A.get("/service-center", { params: t }),
530
+ postList: (t) => A.post("/service-center", t),
531
+ putList: (t, e) => A.put(`/service-center/${t}`, e),
532
+ putActivate: (t) => A.put("/service-center/bulk", t),
533
+ getDetailList: (t) => A.get(`/service-center/${t}`),
534
+ getListOptions: (t) => A.get("/service-center/options", { params: t }),
535
+ deleteList: (t) => A.delete("/service-center", { params: t }),
536
+ // Activities
537
+ getActivities: (t) => A.get("/service-activities", { params: t }),
538
+ getActivityOptions: (t) => A.get("/service-activities/options", { params: t }),
539
+ getActivityDetail: (t) => A.get(`/service-activities/${t}`),
540
+ getActivityLog: (t) => A.get(`/service-activities/${t}/activity-log`)
541
+ }, $t = s({
542
+ prefix: "/settings-attribute/v2/brands"
543
+ }), Kt = {
544
+ getDropdown: (t) => $t.get("/dropdown", { params: t })
545
+ }, D = s({
546
+ prefix: "/file-manager/v2"
547
+ }), Wt = {
548
+ /**
549
+ * Get storage information.
550
+ *
551
+ * @returns {Promise<AxiosResponse>} The Axios Response.
552
+ */
553
+ getStorageInformation: () => D.get("/files/storage"),
554
+ /**
555
+ * Get file manager data.
556
+ *
557
+ * @param {FileType} type - The type of the file.
558
+ * @param {FileManagerFilterParams} [params] - The parameters for filtering.
559
+ * @returns {Promise<AxiosResponse>} The Axios Response.
560
+ */
561
+ getFileManager: (t, e) => D.get(`/${t}`, { params: e }),
562
+ /**
563
+ * Get file manager options.
564
+ *
565
+ * @param {FileType} type - The type of the file.
566
+ * @param {FileManagerOptionBoolean} [params] - The parameters for options.
567
+ * @returns {Promise<AxiosResponse>} The Axios Response.
568
+ */
569
+ getFileManagerOption: (t, e) => D.get(`/${t}/options`, { params: e }),
570
+ /**
571
+ * Recover files.
572
+ *
573
+ * @param {FileType} type - The type of the file.
574
+ * @param {object} body - The body of the request.
575
+ * @returns {Promise<AxiosResponse>} The Axios Response.
576
+ */
577
+ recoverFiles: (t, e) => D.put(`/${t}/recover`, e),
578
+ /**
579
+ * Delete files.
580
+ *
581
+ * @param {FileType} type - The type of the file.
582
+ * @param {DeleteFileManagerDto} params - The params of the request.
583
+ * @returns {Promise<AxiosResponse>} The Axios Response.
584
+ */
585
+ deleteFiles: (t, e) => D.delete(`/${t}`, { params: e }),
586
+ /**
587
+ * Delete files permanently.
588
+ *
589
+ * @param {FileType} type - The type of the file.
590
+ * @param {object} body - The body of the request.
591
+ * @returns {Promise<AxiosResponse>} The Axios Response.
592
+ */
593
+ deletePermanently: (t, e) => D.delete(`/${t}/delete-permanent`, { params: e })
594
+ }, R = s({
595
+ prefix: "/utility/v2"
596
+ }), zt = {
597
+ /**
598
+ * Get storage information.
599
+ *
600
+ * @returns {Promise<AxiosResponse>} The Axios Response.
601
+ */
602
+ getStorageInformation: () => R.get("/files/storage"),
603
+ /**
604
+ * Get file manager data.
605
+ *
606
+ * @param {FileType} type - The type of the file.
607
+ * @param {FileManagerFilterParams} [params] - The parameters for filtering.
608
+ * @returns {Promise<AxiosResponse>} The Axios Response.
609
+ */
610
+ getFileManager: (t, e) => R.get(`/${t}`, { params: e }),
611
+ /**
612
+ * Get file manager options.
613
+ *
614
+ * @param {FileType} type - The type of the file.
615
+ * @param {FileManagerOptionBoolean} [params] - The parameters for options.
616
+ * @returns {Promise<AxiosResponse>} The Axios Response.
617
+ */
618
+ getFileManagerOption: (t, e) => R.get(`/${t}/options`, { params: e }),
619
+ /**
620
+ * Recover files.
621
+ *
622
+ * @param {FileType} type - The type of the file.
623
+ * @param {object} body - The body of the request.
624
+ * @returns {Promise<AxiosResponse>} The Axios Response.
625
+ */
626
+ recoverFiles: (t, e) => R.put(`/${t}/recover`, e),
627
+ /**
628
+ * Delete files.
629
+ *
630
+ * @param {FileType} type - The type of the file.
631
+ * @param {DeleteFileManagerDto} params - The params of the request.
632
+ * @returns {Promise<AxiosResponse>} The Axios Response.
633
+ */
634
+ deleteFiles: (t, e) => R.delete(`/${t}`, { params: e }),
635
+ /**
636
+ * Delete files permanently.
637
+ *
638
+ * @param {FileType} type - The type of the file.
639
+ * @param {object} body - The body of the request.
640
+ * @returns {Promise<AxiosResponse>} The Axios Response.
641
+ */
642
+ deletePermanently: (t, e) => R.delete(`/${t}/delete-permanent`, { params: e })
643
+ }, I = s({
644
+ prefix: "/iot/v2/reader"
645
+ }), Xt = {
646
+ getData: (t) => I.get("/", { params: t }),
647
+ getDataOptions: (t) => I.get("/options", { params: t }),
648
+ getActivityLogData: (t) => I.get("/activity-log", { params: t }),
649
+ getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
650
+ getDataById: (t) => I.get(`/${t}`),
651
+ getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
652
+ getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
653
+ putData: (t, e) => I.put(`/${t}`, e)
654
+ }, p = s({
655
+ prefix: "/settings-user-role/v2"
656
+ }), Zt = {
657
+ /**
658
+ * Retrieves the transaction role for the given group and transaction name.
659
+ * @param {string} groupId - The ID of the group to retrieve the transaction role for.
660
+ * @param {string} transactionName - The name of the transaction to retrieve the role for.
661
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
662
+ */
663
+ getTransactionRole: (t, e) => p.get(`/transaction-roles/${t}/${e}`),
664
+ /**
665
+ * Updates the users assigned to the given transaction role.
666
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
667
+ * @param {string} transactionName - The name of the transaction to update.
668
+ * @param {UpdateUser} body - The request body containing the updated user information.
669
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
670
+ */
671
+ putUpdateUsers: (t, e, r) => p.put(
672
+ `/transaction-roles/${t}/${e}/update-user`,
673
+ r
674
+ ),
675
+ /**
676
+ * Updates the approval level for the given transaction role.
677
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
678
+ * @param {string} transactionName - The name of the transaction to update.
679
+ * @param {UserApprovalLevel} body - The request body containing the updated approval level.
680
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
681
+ */
682
+ putUpdateLevel: (t, e, r) => p.put(
683
+ `/transaction-roles/${t}/${e}/update-approval-level`,
684
+ r
685
+ ),
686
+ /**
687
+ * Updates the group management settings for the given transaction role.
688
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
689
+ * @param {string} transactionName - The name of the transaction to update.
690
+ * @param {GroupManageByParent} body - The request body containing the updated management settings.
691
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
692
+ */
693
+ putUpdateGroupManage: (t, e, r) => p.put(
694
+ `/transaction-roles/${t}/${e}/update-manage-by-parent`,
695
+ r
696
+ ),
697
+ getUserAssignedSystemRole: (t) => p.get(`/system-roles/user/${t}`),
698
+ getAssignedUserAmounts: () => p.get("/system-roles/amounts"),
699
+ getPermissionUser: (t, e) => {
700
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
701
+ const r = t === "totalControl" ? "total-control" : "read-only";
702
+ return p.get(`/system-roles/total-control-read-only/${r}`, {
703
+ params: e
704
+ });
705
+ }
706
+ return p.get(`/system-roles/permission/${t}`, { params: e });
707
+ },
708
+ getPermissionUserOptions: (t, e) => {
709
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
710
+ const r = t === "totalControl" ? "total-control" : "read-only";
711
+ return p.get(`/system-roles/total-control-read-only/${r}/options`, {
712
+ params: e
713
+ });
714
+ }
715
+ return p.get(`/system-roles/permission/${t}/options`, {
716
+ params: e
717
+ });
718
+ },
719
+ getUserGroups: (t, e) => p.get(`/system-roles/permission/${e}/groups`, {
720
+ params: t
721
+ }),
722
+ postAssignUser: (t, e) => {
723
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
724
+ const r = e === "totalControl" ? "total-control" : "read-only";
725
+ return p.post(`/system-roles/total-control-read-only/${r}`, t);
726
+ }
727
+ return p.post(`/system-roles/permission/${e}`, t);
728
+ },
729
+ putEditUser: (t, e) => p.put(`/system-roles/${e}`, t),
730
+ putRoleSetActive: (t) => p.put("/system-roles/set-active", t),
731
+ deleteRemoveUser: (t, e) => {
732
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
733
+ const r = e === "totalControl" ? "total-control" : "read-only";
734
+ return p.delete(`/system-roles/total-control-read-only/${r}`, {
735
+ data: t
736
+ });
737
+ }
738
+ return p.delete("/system-roles", { data: t });
739
+ }
740
+ }, c = s({
741
+ prefix: "/settings-user-role-go/v2"
742
+ }), te = {
743
+ /**
744
+ * Retrieves the transaction role for the given group and transaction name.
745
+ * @param {string} groupId - The ID of the group to retrieve the transaction role for.
746
+ * @param {string} transactionName - The name of the transaction to retrieve the role for.
747
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
748
+ */
749
+ getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
750
+ getTransactionRoleTypes: (t, e) => c.get(`/transaction-roles/${e}/types`, {
751
+ params: { groupKeys: t }
752
+ }),
753
+ /**
754
+ * Updates the users assigned to the given transaction role.
755
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
756
+ * @param {string} transactionName - The name of the transaction to update.
757
+ * @param {UpdateUser} body - The request body containing the updated user information.
758
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
759
+ */
760
+ putUpdateUsers: (t, e, r) => c.put(
761
+ `/transaction-roles/${t}/${e}/update-user`,
762
+ r
763
+ ),
764
+ /**
765
+ * Updates the approval level for the given transaction role.
766
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
767
+ * @param {string} transactionName - The name of the transaction to update.
768
+ * @param {UserApprovalLevel} body - The request body containing the updated approval level.
769
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
770
+ */
771
+ putUpdateLevel: (t, e, r) => c.put(
772
+ `/transaction-roles/${t}/${e}/update-approval-level`,
773
+ r
774
+ ),
775
+ /**
776
+ * Updates the group management settings for the given transaction role.
777
+ * @param {string} groupId - The ID of the group the transaction role belongs to.
778
+ * @param {string} transactionName - The name of the transaction to update.
779
+ * @param {GroupManageByParent} body - The request body containing the updated management settings.
780
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
781
+ */
782
+ putUpdateGroupManage: (t, e, r) => c.put(
783
+ `/transaction-roles/${t}/${e}/update-manage-by-parent`,
784
+ r
785
+ ),
786
+ getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
787
+ getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
788
+ getPermissionUser: (t, e) => {
789
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
790
+ const r = t === "totalControl" ? "total-control" : "read-only";
791
+ return c.get(`/system-roles/total-control-read-only/${r}`, {
792
+ params: e
793
+ });
794
+ }
795
+ return c.get(`/system-roles/permission/${t}`, { params: e });
796
+ },
797
+ getPermissionUserOptions: (t, e) => {
798
+ if (["totalControl", "readOnly"].includes(t ?? "")) {
799
+ const r = t === "totalControl" ? "total-control" : "read-only";
800
+ return c.get(`/system-roles/total-control-read-only/${r}/options`, {
801
+ params: e
802
+ });
803
+ }
804
+ return c.get(`/system-roles/permission/${t}/options`, {
805
+ params: e
806
+ });
807
+ },
808
+ getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
809
+ params: t
810
+ }),
811
+ postAssignUser: (t, e) => {
812
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
813
+ const r = e === "totalControl" ? "total-control" : "read-only";
814
+ return c.post(`/system-roles/total-control-read-only/${r}`, t);
815
+ }
816
+ return c.post(`/system-roles/permission/${e}`, t);
817
+ },
818
+ putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
819
+ deleteRemoveUser: (t, e) => {
820
+ if (["totalControl", "readOnly"].includes(e ?? "")) {
821
+ const r = e === "totalControl" ? "total-control" : "read-only";
822
+ return c.put(`/system-roles/total-control-read-only/${r}`, t);
823
+ }
824
+ return c.put("/system-roles", t);
825
+ }
826
+ }, _ = s({
827
+ prefix: "/settings-attribute/v2/open-api"
828
+ }), ee = {
829
+ getOpenAPIDocs: (t) => _.get(`/${t.doc}`),
830
+ putGenerateToken: () => _.put("/generate"),
831
+ // This is if the dummy was not dummy
832
+ getToken: () => _.get(""),
833
+ putRequestOpenAPI: () => _.put("/request"),
834
+ putCancelRequestOpenAPI: () => _.put("/cancel-request")
835
+ }, B = s({
836
+ prefix: "/settings-attribute-go/v2/open-api"
837
+ }), re = {
838
+ putGenerateToken: () => B.put("/generate"),
839
+ // This is if the dummy was not dummy
840
+ getToken: () => B.get(""),
841
+ putRequestOpenAPI: () => B.put("/request"),
842
+ putCancelRequestOpenAPI: () => B.put("/cancel-request")
843
+ }, C = s({
844
+ prefix: "/import/v2"
845
+ }), se = {
846
+ getImport: (t, e) => C.get(`/${t}`, { params: e }),
847
+ postImportTemporary: (t, e) => {
848
+ const r = { "Content-Type": "multipart/form-data" };
849
+ return C.post(`/${t}/temporary`, e, { headers: r });
850
+ },
851
+ deleteImportTemporary: (t, e) => C.delete(`/${t}/temporary`, { data: e }),
852
+ postDuplicateImport: (t, e) => C.post(`/${t}/duplicate`, e),
853
+ putEditImport: (t, e) => C.put(`/${t}`, e),
854
+ postImport: (t, e, r) => C.post(t, r, { signal: e.signal }),
855
+ putImportCancelProgress: (t) => C.put(`/${t}/cancel-progress`)
856
+ }, O = s({
857
+ prefix: "/import-go/v2"
858
+ }), ne = {
859
+ getImport: (t, e) => O.get(`/${t}`, { params: e }),
860
+ postImportTemporary: (t, e) => {
861
+ const r = { "Content-Type": "multipart/form-data" };
862
+ return O.post(`/${t}/temporary`, e, { headers: r });
863
+ },
864
+ deleteImportTemporary: (t, e) => O.delete(`/${t}/temporary`, { params: e }),
865
+ postDuplicateImport: (t, e) => O.post(`/${t}/duplicate`, e),
866
+ putEditImport: (t, e) => O.put(`/${t}`, e),
867
+ postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
868
+ putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
869
+ }, h = s({
870
+ prefix: "/settings-attribute/v2/asset-name"
871
+ }), oe = {
872
+ getDropdown: (t) => h.get("/dropdown", { params: t }),
873
+ getAssetNameDetail: (t) => h.get(`/${t}`),
874
+ getAssetsByAssetName: (t, e) => h.get(`/${t}/list-asset`, { params: e }),
875
+ getAssetNameList: (t) => h.get("/", { params: t }),
876
+ getUnpairedAssetName: (t) => h.get("/unpaired", { params: t }),
877
+ getOptions: (t) => h.get("/options", { params: t })
878
+ }, n = s({
879
+ prefix: "/assignment/v2"
880
+ }), ae = {
881
+ getPreListData: (t) => n.get("/prelist", { params: t }),
882
+ getPreListOptions: (t) => n.get("/prelist/options", { params: t }),
883
+ getRequestData: (t) => n.get("/prelist/request", { params: t }),
884
+ postAddPrelistData: (t) => n.post("/prelist", t),
885
+ getDetailRequestData: (t, e) => n.get(`/transaction/${t}/request`, { params: e }),
886
+ getDetailRequestOption: (t, e) => n.get(`/transaction/${e}/request/options`, { params: t }),
887
+ getTransactionData: (t) => n.get("/transaction", { params: t }),
888
+ getTransactionOptions: (t) => n.get("/transaction/options", { params: t }),
889
+ getDetailTransactionData: (t) => n.get(`/transaction/${t}`),
890
+ getTransactionApproval: (t) => n.get("/approval", { params: t }),
891
+ getApprovalData: (t, e) => n.get(`/approval/transaction/${t}`, { params: e }),
892
+ getTransactionApprovalOptions: (t) => n.get("/approval/options", { params: t }),
893
+ getApprovalOptions: (t, e) => n.get(`/approval/transaction/${t}/options`, {
894
+ params: e
895
+ }),
896
+ getTransactionApprovers: (t) => n.get(`/approval/transaction/${t}/transaction`),
897
+ putApproveApproval: (t) => n.put("/approval/approve", t),
898
+ getDetailTransactionLog: (t) => n.get(`/transaction/request/${t}/transaction-log`),
899
+ getVerifyAsset: (t, e) => n.get(`/transaction/${e}/request/scan`, { params: t }),
900
+ putEditAssignedUser: (t, e) => n.put(`/transaction/${t}/user`, e),
901
+ putEditEmailConfirmation: (t, e) => n.put(`/transaction/${t}/update-email-or-assigned-user`, e),
902
+ postSendConfirmationEmail: (t) => n.post(`/transaction/${t}/send-confirmation-email`),
903
+ postTransaction: (t) => n.post("/transaction", t),
904
+ putTransaction: (t, e) => n.put(`/transaction/${t}/request`, e),
905
+ putCancelTransaction: (t) => n.put("/transaction/cancel", t),
906
+ putCancelAssignmentRequest: (t) => n.put("/transaction/request/cancel", t),
907
+ putVerifyRequest: (t, e) => n.put(`/transaction/${e}/verify-requests`, t),
908
+ putVerifyToken: (t) => n.put("/transaction/verify-token", t),
909
+ putHandoverConfirm: (t) => n.put("/transaction/handover-confirmation", t),
910
+ putAssignHandover: (t) => n.put(`/transaction/${t}/handover`),
911
+ deletePrelistData: (t) => n.delete("/prelist", { params: t }),
912
+ deleteRequestPrelistData: (t) => n.delete("/prelist/request", { data: t }),
913
+ getAssignedByAsset: (t) => n.get("/transaction/request/assigned/by-asset", { params: t }),
914
+ getAssignedByAssetOptions: (t) => n.get("/transaction/request/assigned/by-asset/options", {
915
+ params: t
916
+ }),
917
+ getAssignedByUser: (t) => n.get("/transaction/request/assigned/by-user", { params: t }),
918
+ getAssignedByUserOptions: (t) => n.get("/transaction/request/assigned/by-user/options", { params: t }),
919
+ postUnassignPrelistAsset: (t) => n.post("/prelist", t),
920
+ postUnassignPrelistUser: (t) => n.post("/prelist/unassign/by-user", t),
921
+ putUnassignRequest: (t) => n.put("/transaction/request/unassign", t),
922
+ putReportDone: (t, e) => n.put(`/transaction/${t}/confirm-report-done`, e),
923
+ getHistory: (t, e) => {
924
+ const r = t.split(" ").join("-").toLowerCase();
925
+ return n.get(`/transaction/history/${r}`, { params: e });
926
+ },
927
+ getHistoryOptions: (t) => n.get("/transaction/history/options", { params: t }),
928
+ getHistoryByTransactionOptions: (t) => n.get("/transaction/history/by-transaction/options", { params: t }),
929
+ putCancelReport: (t) => n.put("/transaction/request/cancel-report", t),
930
+ getTaskAssignment: async (t) => n.get("/transaction/my-asset/task", { params: t }),
931
+ getTaskAssignmentOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
932
+ getAssignedAsset: async (t) => n.get("/transaction/my-asset/assigned-asset", { params: t }),
933
+ getAssignedAssetOptions: async (t) => n.get("/transaction/my-asset/assigned-asset/options", { params: t }),
934
+ putCancelAssignment: async (t) => n.put("/transaction/cancel", { id: t.id }),
935
+ putCancelReportById: async (t) => n.put(`/transaction/request/${t.id}/cancel-report`)
936
+ }, b = s({
937
+ prefix: "/assignment-go/v2"
938
+ }), ie = {
939
+ getTransactionData: (t) => b.get("/transaction", { params: t }),
940
+ getTransactionOptions: (t) => b.get("/transaction/options", { params: t }),
941
+ getDetailTransactionLog: (t) => b.get(`/transaction/request/${t}/transaction-log`),
942
+ postTransaction: (t) => b.post("/transaction", t),
943
+ putTransaction: (t) => b.put("/transaction", t),
944
+ putUnassignTransaction: (t) => b.put("/transaction/unassign", t),
945
+ putCancelReport: (t) => b.put("/transaction/request/cancel-report", t)
946
+ }, F = s({
947
+ prefix: "/license/v2"
948
+ }), ue = {
949
+ getGroupQuota: (t) => F.get(`/${t}/allocation-quota`),
950
+ getSubGroupQuota: (t) => F.get(`/${t}/subgroup-quota`),
951
+ editSubGroupQuota: (t, e) => F.put(`/${t}/set-group-quota`, e),
952
+ getTotalLicense: () => F.get("/total-license")
953
+ }, ot = s({
954
+ prefix: "/repair/v2/damage"
955
+ }), ge = {
956
+ putReportDamage: (t, e) => {
957
+ const r = { "Content-Type": "multipart/form-data" };
958
+ return ot.put(`/report-damage/${t}`, e, { headers: r });
959
+ },
960
+ /**
961
+ * To mark as repaired.
962
+ * @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
963
+ */
964
+ putMarkAsRepaired: (t) => ot.put("/repair", t)
965
+ }, at = s({
966
+ prefix: "/damage-repair-ticketing/v2"
967
+ }), pe = {
968
+ putReportDamage: (t, e) => {
969
+ const r = { "Content-Type": "multipart/form-data" };
970
+ return at.put(`/${t}/report-damage`, e, { headers: r });
971
+ },
972
+ putMarkAsRepaired: (t) => at.put("/repair", t)
973
+ }, d = s({
974
+ prefix: "/borrowing/v2"
975
+ }), ce = {
976
+ getTaskBorrowing: async (t) => d.get("/transaction/my-asset/task", { params: t }),
977
+ getTaskBorrowingOptions: async (t) => d.get("/transaction/my-asset/task/options", { params: t }),
978
+ getBorrowedAsset: async (t) => d.get("/transaction/my-asset/borrowed-asset", { params: t }),
979
+ getBorrowedOptions: async (t) => d.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
980
+ getHistory: async (t) => d.get("/transaction/my-asset/history", { params: t }),
981
+ getHistoryOptions: async (t) => d.get("/transaction/my-asset/history/options", { params: t }),
982
+ postAddPrelistData: (t) => d.post("/prelist", t),
983
+ putCancelBorrowing: async (t) => d.put("/transaction/cancel", { id: t.id }),
984
+ putCancelExtensionRequest: async (t) => d.put(`/transaction/${t.id}/cancel-extension`),
985
+ putCancelRequestReport: async (t) => d.put(`/transaction/request/${t.id}/cancel-report`),
986
+ putDeclineExtensionRequest: async (t) => d.put("transaction/request/decline", t),
987
+ putUpdateRequestExtension: async (t) => d.put("transaction/request/duration", t)
988
+ }, it = s({
989
+ prefix: "/assets/v2"
990
+ }), le = {
991
+ getHistory: async (t) => it.get("/my-asset", { params: t }),
992
+ getHistoryOptions: async (t) => it.get("/my-asset/options", { params: t })
993
+ }, N = s({
994
+ prefix: "/repair/v2"
995
+ }), de = {
996
+ getRepairList: (t) => N.get("/my-asset/repair", { params: t }),
997
+ getFilterOptions: (t) => N.get("/my-asset/repair/options", { params: t }),
998
+ getRepairTicketing: (t, e) => N.get(`/repair/${t}/asset-repair-detail`, { params: e }),
999
+ putConfirmRepair: (t) => N.put(`/repair/${t}/confirm-repair`)
1000
+ }, Y = s({
1001
+ env: "APP_GLOBAL_SETTINGS_API",
1002
+ prefix: "/v1/global-settings/auth"
1003
+ }), k = s({
1004
+ env: "APP_TAGSAMURAI_API",
1005
+ prefix: "/settings-user-role/v2/auth"
1006
+ }), Ae = {
1007
+ login: (t) => {
1008
+ const e = { ...t, isMobile: !1 };
1009
+ return Y.post("/login", e);
1010
+ },
1011
+ reLogin: (t) => (Y.interceptors.response.use(
1012
+ (e) => e,
1013
+ (e) => {
1014
+ var r, o, v, S;
1015
+ return ((r = e.response) == null ? void 0 : r.status) === 401 || ((o = e.response) == null ? void 0 : o.status) === 500 || ((S = (v = e.response) == null ? void 0 : v.data) == null ? void 0 : S.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(e);
1016
+ }
1017
+ ), Y.post("/login", t)),
1018
+ requestOTP: (t) => {
1019
+ const e = { email: t };
1020
+ return k.post("/request-otp", e);
1021
+ },
1022
+ requestResetPassLink: (t) => {
1023
+ const e = { email: t };
1024
+ return k.post("/request-reset-link", e);
1025
+ },
1026
+ setPassword: (t) => k.post("/set-password", t),
1027
+ verifyToken: (t) => k.get(`/verify-token/${t}`),
1028
+ confirmEmailChange: (t) => {
1029
+ const e = { token: t };
1030
+ return k.put("/confirm-email-change/confirm", e);
1031
+ }
1032
+ }, W = "/transfer/v2", M = s({
1033
+ prefix: `${W}/prelist`
1034
+ }), l = s({
1035
+ prefix: `${W}/transaction`
1036
+ }), x = s({
1037
+ prefix: `${W}/approval`
1038
+ }), $e = {
1039
+ // ------ TRANSACTION ------
1040
+ getTransactions: (t) => l.get("/", { params: t }),
1041
+ getTransactionDetail: (t) => l.get(`/${t}`),
1042
+ getTransactionDetailAssets: (t, e) => l.get(`/${t}/request`, { params: e }),
1043
+ getRequestFilterOptions: (t, e) => {
1044
+ const r = {};
1045
+ return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0), l.get(`/${t}/request/options`, { params: r });
1046
+ },
1047
+ getTransactionLog: (t) => l.get(`/request/${t}/transaction-log`),
1048
+ getTransactionOptions: (t) => {
1049
+ const e = {};
1050
+ return e[t] = !0, l.get("/options", { params: e });
1051
+ },
1052
+ postCreateTransaction: (t) => l.post("/", t),
1053
+ putCancelTransactions: (t) => {
1054
+ const e = { id: t };
1055
+ return l.put("/cancel", e);
1056
+ },
1057
+ putUpdateTransaction: (t, e) => l.put(`/${t}`, e),
1058
+ putCancelRequests: (t) => {
1059
+ const e = { id: t };
1060
+ return l.put("/request/cancel", e);
1061
+ },
1062
+ getHistoryByTransaction: (t) => l.get("/history", { params: t }),
1063
+ getHistoryByTransactionOptions: (t) => {
1064
+ const e = {};
1065
+ return e[t] = !0, l.get("/history/options", { params: e });
1066
+ },
1067
+ getHistoryByAsset: (t) => l.get("/history/by-asset", { params: t }),
1068
+ getHistoryByAssetOptions: (t) => {
1069
+ const e = {};
1070
+ return e[t] = !0, l.get("/history/by-asset/options", { params: e });
1071
+ },
1072
+ getApproverList: (t) => l.get(`/${t}/approval-history`),
1073
+ putHandoverTransaction: (t, e) => l.put(`/${t}/handover`, e),
1074
+ // ------ PRELIST ------
1075
+ getPrelist: (t) => M.get("/", { params: t }),
1076
+ postAddPrelistData: (t) => M.post("/", t),
1077
+ deletePrelist: (t) => M.delete("/", {
1078
+ params: {
1079
+ id: JSON.stringify(t)
1080
+ }
1081
+ }),
1082
+ getPrelistAssets: (t) => {
1083
+ const e = { id: t };
1084
+ return M.get("/request", { params: e });
1085
+ },
1086
+ // APPROVAL
1087
+ getApprovals: (t, e) => {
1088
+ const r = { ...e, status: JSON.stringify([t]) };
1089
+ return x.get("/", { params: r });
1090
+ },
1091
+ getApprovalOptions: (t, e) => {
1092
+ const r = {
1093
+ status: JSON.stringify([t])
1094
+ };
1095
+ return r[e] = !0, x.get("/options", { params: r });
1096
+ },
1097
+ getApprovalDetail: (t, e) => {
1098
+ const r = {
1099
+ groupType: e
1100
+ };
1101
+ return x.get(`/transaction/${t}`, { params: r });
1102
+ },
1103
+ getApprovalDetailOptions: (t, e, r) => {
1104
+ const o = {};
1105
+ return o[e] = !0, o.groupType = r, x.get(`/transaction/${t}/options`, { params: o });
1106
+ },
1107
+ putUpdateApproval: (t) => x.put("/approve", t)
1108
+ }, ut = s({
1109
+ prefix: "/disposal/v2"
1110
+ }), ve = {
1111
+ getReportedDisposal: (t) => ut.get("/report", { params: t }),
1112
+ deleteCancelReport: (t) => ut.delete("/report/cancel-report", { params: t })
1113
+ }, H = s({
1114
+ prefix: "/transfer-go/v2"
1115
+ }), me = {
1116
+ getTransactionData: (t) => H.get("/transaction", { params: t }),
1117
+ getTransactionOptions: (t) => H.get("/transaction/options", { params: t }),
1118
+ getTransactionLog: (t) => H.get(`/transaction/request/${t}/transaction-log`),
1119
+ postCreateTransaction: (t) => H.post("/transaction", t)
1120
+ }, J = s({
1121
+ prefix: "/audit/v2"
1122
+ }), ye = {
1123
+ getAudit: (t, e) => J.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
1124
+ getAuditOption: (t, e) => J.get(`/audit/schedule/asset-detail/${t}/options`, {
1125
+ params: e
1126
+ }),
1127
+ putSetActive: (t) => J.put("/audit/asset/activation", t)
1128
+ }, K = s({
1129
+ prefix: "/routine/v2"
1130
+ }), Se = {
1131
+ getMaintenance: (t, e) => K.get(`/routine-task/${t}`, { params: e }),
1132
+ getMaintenanceOption: (t, e) => K.get(`/routine-task/${t}/options`, { params: e }),
1133
+ putSetActive: (t) => K.put("/maintenable-asset/set-active", t)
1134
+ }, vt = s({
1135
+ prefix: "/settings-attribute/v2/models"
1136
+ }), Pe = {
1137
+ getDropdown: (t) => vt.get("/dropdown", { params: t })
194
1138
  };
195
1139
  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
1140
+ Nt as AliasCodeServices,
1141
+ Mt as AliasCodeServicesGo,
1142
+ oe as AssetNameServices,
1143
+ bt as AssetServices,
1144
+ ae as AssignmentServices,
1145
+ ie as AssignmentServicesGo,
1146
+ ye as AuditServices,
1147
+ Ae as AuthServices,
1148
+ ce as BorrowServices,
1149
+ Kt as BrandServices,
1150
+ Ct as ChangelogServices,
1151
+ Yt as CountryStateServices,
1152
+ jt as CustomFieldServices,
1153
+ Qt as CustomFieldServicesGo,
1154
+ ge as DamageServices,
1155
+ pe as DamageServicesGo,
1156
+ Ft as DashboardServices,
1157
+ ve as DisposalServices,
1158
+ Wt as FileManagerServices,
1159
+ zt as FileManagerServicesGo,
1160
+ Ht as GeneralSettingsServices,
1161
+ Vt as GeneralSettingsServicesGo,
1162
+ It as GroupCategoryServices,
1163
+ Ut as GroupCategoryServicesGo,
1164
+ Bt as I18nService,
1165
+ se as ImportServices,
1166
+ ne as ImportServicesGo,
1167
+ ue as LicenseServices,
1168
+ Ot as LogServicesGo,
1169
+ Se as MaintenanceRoutineServices,
1170
+ Lt as MissingServices,
1171
+ Dt as MissingServicesGo,
1172
+ Pe as ModelTypeServices,
1173
+ le as MyAssetServices,
1174
+ Tt as NotificationApprovalServices,
1175
+ Rt as NotificationServices,
1176
+ ht as NotificationServicesGo,
1177
+ ee as OpenAPIServices,
1178
+ re as OpenAPIServicesGo,
1179
+ Xt as ReaderServices,
1180
+ de as RepairServices,
1181
+ Zt as RoleServices,
1182
+ te as RoleServicesGo,
1183
+ Jt as ServiceCenterServices,
1184
+ Gt as SessionLogServices,
1185
+ qt as SubUserServices,
1186
+ Et as SubUserServicesGo,
1187
+ _t as TAGServices,
1188
+ kt as TrackingServices,
1189
+ $e as TransferServices,
1190
+ me as TransferServicesGo,
1191
+ xt as UserServices,
1192
+ wt as UserServicesGo,
1193
+ ft as getAssetsFile,
1194
+ G as getBaseURL,
1195
+ Pt as getImageURL,
1196
+ St as getImageURLGo,
1197
+ yt as queryParamsStringfy
210
1198
  };