@tagsamurai/fats-api-services 1.0.0-alpha.16 → 1.0.0-alpha.160

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