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