@tagsamurai/fats-api-services 1.0.0-alpha.185 → 1.0.0-alpha.187
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 +425 -410
- package/api-services.system.js +1 -1
- package/main.d.ts +1 -0
- package/package.json +1 -1
- package/src/services/oldCustomField.service.d.ts +10 -0
- package/src/services/report.service.d.ts +31 -0
package/api-services.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
const { env: r = "APP_API", prefix: a = "", headers:
|
|
4
|
-
return
|
|
5
|
-
...
|
|
6
|
-
baseURL:
|
|
7
|
-
headers: e ?
|
|
1
|
+
import vt from "axios";
|
|
2
|
+
const ft = { 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" }, E = (t = "APP_API") => ft["VITE_" + t], s = (t = {}, e = !1) => {
|
|
3
|
+
const { env: r = "APP_API", prefix: a = "", headers: P = {}, ...F } = t, yt = `${E(r)}${a}`, ut = JSON.parse(localStorage.getItem("user") ?? "{}"), St = ut.jwt ?? ut.token ?? "";
|
|
4
|
+
return vt.create({
|
|
5
|
+
...F,
|
|
6
|
+
baseURL: yt,
|
|
7
|
+
headers: e ? P : {
|
|
8
8
|
"Content-Type": "application/json",
|
|
9
|
-
Authorization: `Bearer ${
|
|
10
|
-
...
|
|
9
|
+
Authorization: `Bearer ${St}`,
|
|
10
|
+
...P
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
},
|
|
13
|
+
}, qt = (t) => {
|
|
14
14
|
if (!t || typeof t == "string")
|
|
15
15
|
return;
|
|
16
16
|
const e = {};
|
|
@@ -21,113 +21,113 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
21
21
|
[r]: t[r]
|
|
22
22
|
});
|
|
23
23
|
}), e;
|
|
24
|
-
},
|
|
24
|
+
}, Bt = (t, e, r) => {
|
|
25
25
|
if (!t) return;
|
|
26
|
-
const a =
|
|
26
|
+
const a = E("APP_API"), P = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
|
|
27
27
|
if (e || r) {
|
|
28
|
-
const
|
|
29
|
-
return e && (
|
|
28
|
+
const F = new URLSearchParams();
|
|
29
|
+
return e && (F.set("width", e.toString()), F.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${P}?${F.toString()}`;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
},
|
|
31
|
+
return P;
|
|
32
|
+
}, Gt = (t) => {
|
|
33
33
|
if (!t) return;
|
|
34
|
-
const e =
|
|
34
|
+
const e = E("APP_TAGSAMURAI_API");
|
|
35
35
|
return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
|
|
36
|
-
},
|
|
37
|
-
`${
|
|
38
|
-
),
|
|
36
|
+
}, xt = async (t, e = "excel") => await fetch(
|
|
37
|
+
`${E("APP_ASSETS_URL")}/${e}/${t}`
|
|
38
|
+
), T = s({
|
|
39
39
|
prefix: "/settings-attribute/v2",
|
|
40
40
|
env: "APP_TAGSAMURAI_API"
|
|
41
|
-
}),
|
|
41
|
+
}), kt = {
|
|
42
42
|
getGroupCategory: (t, e) => {
|
|
43
43
|
const r = t === "category" ? t : "groups";
|
|
44
|
-
return
|
|
44
|
+
return T.get(`/${r}/tree`, { params: e });
|
|
45
45
|
},
|
|
46
46
|
getGroupCategoryList: (t, e, r) => {
|
|
47
47
|
const a = t === "category" ? t : "groups";
|
|
48
|
-
return
|
|
48
|
+
return T.get(`/${a}/${e}`, { params: r });
|
|
49
49
|
},
|
|
50
50
|
getNames: (t) => {
|
|
51
51
|
const e = t === "category" ? t : "groups";
|
|
52
|
-
return
|
|
52
|
+
return T.get(`/${e}/names`);
|
|
53
53
|
},
|
|
54
54
|
getCodes: (t) => {
|
|
55
55
|
const e = t === "category" ? t : "groups";
|
|
56
|
-
return
|
|
56
|
+
return T.get(`/${e}/codes`);
|
|
57
57
|
},
|
|
58
58
|
postCreateGroupCategory: (t, e) => {
|
|
59
59
|
const r = t === "category" ? t : "groups";
|
|
60
|
-
return
|
|
60
|
+
return T.post(`/${r}`, e);
|
|
61
61
|
},
|
|
62
62
|
putEditGroupCategory: (t, e, r) => {
|
|
63
63
|
const a = t === "category" ? t : "groups";
|
|
64
|
-
return
|
|
64
|
+
return T.put(`/${a}/${r}`, e);
|
|
65
65
|
},
|
|
66
|
-
putMoveGroup: (t, e) =>
|
|
67
|
-
putEditBulkGroups: async (t) =>
|
|
66
|
+
putMoveGroup: (t, e) => T.put(`/groups/${e}/move-group`, t),
|
|
67
|
+
putEditBulkGroups: async (t) => T.put("/groups/bulk", t),
|
|
68
68
|
deleteGroupCategory: (t, e, r) => {
|
|
69
69
|
const a = t === "category" ? t : "groups";
|
|
70
|
-
return
|
|
70
|
+
return T.delete(`/${a}/${r}`, { data: e });
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, O = s({
|
|
73
73
|
prefix: "/settings-attribute-go/v2"
|
|
74
|
-
}),
|
|
74
|
+
}), _t = {
|
|
75
75
|
getGroupCategory: (t, e) => {
|
|
76
76
|
const r = t === "category" ? t : "groups";
|
|
77
|
-
return
|
|
77
|
+
return O.get(`/${r}/tree`, { params: e });
|
|
78
78
|
},
|
|
79
79
|
getGroupCategoryList: (t, e) => {
|
|
80
80
|
const r = t === "category" ? t : "groups";
|
|
81
|
-
return
|
|
81
|
+
return O.get(`/${r}/${e}`);
|
|
82
82
|
},
|
|
83
83
|
getNames: (t) => {
|
|
84
84
|
const e = t === "category" ? t : "groups";
|
|
85
|
-
return
|
|
85
|
+
return O.get(`/${e}/names`);
|
|
86
86
|
},
|
|
87
87
|
getCodes: (t) => {
|
|
88
88
|
const e = t === "category" ? t : "groups";
|
|
89
|
-
return
|
|
89
|
+
return O.get(`/${e}/codes`);
|
|
90
90
|
},
|
|
91
91
|
postCreateGroupCategory: (t, e) => {
|
|
92
92
|
const r = t === "category" ? t : "groups";
|
|
93
|
-
return
|
|
93
|
+
return O.post(`/${r}`, e);
|
|
94
94
|
},
|
|
95
95
|
putEditGroupCategory: (t, e, r) => {
|
|
96
96
|
const a = t === "category" ? t : "groups";
|
|
97
|
-
return
|
|
97
|
+
return O.put(`/${a}/${r}`, e);
|
|
98
98
|
},
|
|
99
99
|
deleteGroupCategory: (t, e, r) => {
|
|
100
100
|
const a = t === "category" ? t : "groups";
|
|
101
|
-
return
|
|
101
|
+
return O.delete(`/${a}/${r}`, { data: e });
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, Pt = s({
|
|
104
104
|
prefix: "/v2",
|
|
105
105
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
106
|
-
}),
|
|
107
|
-
getTotalApprovals: () =>
|
|
108
|
-
},
|
|
106
|
+
}), Et = {
|
|
107
|
+
getTotalApprovals: () => Pt.get("/approval/count")
|
|
108
|
+
}, I = s({
|
|
109
109
|
prefix: "/v2",
|
|
110
110
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
111
|
-
}),
|
|
112
|
-
getActionLog: (t) =>
|
|
113
|
-
getActionLogOption: (t) =>
|
|
114
|
-
getSessionLogList: (t) =>
|
|
115
|
-
getUserDetailSystemLogList: (t) =>
|
|
116
|
-
getUserDetailSystemLogOption: (t) =>
|
|
111
|
+
}), Ft = {
|
|
112
|
+
getActionLog: (t) => I.get("/change-log", { params: t }),
|
|
113
|
+
getActionLogOption: (t) => I.get("/change-log/options", { params: t }),
|
|
114
|
+
getSessionLogList: (t) => I.get("/session-log", { params: t }),
|
|
115
|
+
getUserDetailSystemLogList: (t) => I.get("/change-log", { params: t }),
|
|
116
|
+
getUserDetailSystemLogOption: (t) => I.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) => I.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) => I.get("/transaction-log/options", { params: t }),
|
|
127
|
+
postScanLog: (t) => I.post("/transaction-log/scan-log", t)
|
|
128
128
|
}, m = s({
|
|
129
129
|
prefix: "/utility/v2"
|
|
130
|
-
}),
|
|
130
|
+
}), Nt = {
|
|
131
131
|
getActionLog: (t) => m.get("/change-log", { params: t }),
|
|
132
132
|
getActionLogOption: (t) => m.get("/change-log/options", { params: t }),
|
|
133
133
|
getSessionLogList: (t) => m.get("/session-log", { params: t }),
|
|
@@ -145,9 +145,9 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
145
145
|
getUserDetailUserLogAssignmentOption: (t, e) => m.get(`/assignment-log/${t}/options`, { params: e })
|
|
146
146
|
}, g = s({
|
|
147
147
|
prefix: "/assets/v2/assets"
|
|
148
|
-
}),
|
|
148
|
+
}), Y = s({
|
|
149
149
|
prefix: "/assets/v2/attachment"
|
|
150
|
-
}),
|
|
150
|
+
}), Mt = {
|
|
151
151
|
getScanTag: (t) => g.get("/scan", { params: { tag: t } }),
|
|
152
152
|
getAllAssets: (t) => g.get("/", { params: t }),
|
|
153
153
|
getAllAssetsOptions: (t) => g.get("/options", { params: t }),
|
|
@@ -190,24 +190,24 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
190
190
|
putLinkAsset: (t, e) => g.put(`/${e}/link-assets`, t),
|
|
191
191
|
putUnlinkAsset: (t, e) => g.put(`/${e}/remove-link-assets`, t),
|
|
192
192
|
// Asset Services prefixed by "attachment"
|
|
193
|
-
getAttachment: (t) =>
|
|
193
|
+
getAttachment: (t) => Y.get("", { params: t }),
|
|
194
194
|
postAttachment: (t) => {
|
|
195
195
|
const e = { "Content-Type": "multipart/form-data" };
|
|
196
|
-
return
|
|
196
|
+
return Y.post("", t, { headers: e });
|
|
197
197
|
},
|
|
198
198
|
putAttachment: (t, e) => {
|
|
199
199
|
const r = { "Content-Type": "multipart/form-data" };
|
|
200
|
-
return
|
|
200
|
+
return Y.put(`/${e}`, t, { headers: r });
|
|
201
201
|
},
|
|
202
202
|
/**
|
|
203
203
|
* Deletes the attachment with the given IDs.
|
|
204
204
|
* @param {object} params - The request params containing the IDs of the attachments to delete.
|
|
205
205
|
* @returns {Promise<AxiosResponse>}
|
|
206
206
|
*/
|
|
207
|
-
deleteAttachment: (t) =>
|
|
207
|
+
deleteAttachment: (t) => Y.delete("/bulk", { params: t })
|
|
208
208
|
}, p = s({
|
|
209
209
|
prefix: "/assets-go/v2/assets"
|
|
210
|
-
}),
|
|
210
|
+
}), Ht = {
|
|
211
211
|
getAllAssets: (t) => p.get("/", { params: t }),
|
|
212
212
|
getAllAssetsOptions: (t) => p.get("/options", { params: t }),
|
|
213
213
|
getOptions: (t, e) => p.get(t ? `/${t}/options` : "/options", {
|
|
@@ -251,45 +251,45 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
251
251
|
* @returns {Promise<AxiosResponse>}
|
|
252
252
|
*/
|
|
253
253
|
deleteAttachment: (t) => p.delete("/attachment/bulk", { params: t })
|
|
254
|
-
},
|
|
254
|
+
}, N = s({
|
|
255
255
|
prefix: "/tracking/v2/missing"
|
|
256
|
-
}),
|
|
256
|
+
}), Vt = {
|
|
257
257
|
/**
|
|
258
258
|
* To mark as found.
|
|
259
259
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
260
260
|
*/
|
|
261
|
-
putMarkAsFound: (t) =>
|
|
262
|
-
putReportMissing: (t, e) =>
|
|
263
|
-
getData: (t) => F.get("/", { params: t }),
|
|
264
|
-
getDetail: (t) => F.get(`/${t}`),
|
|
265
|
-
getOptions: (t) => F.get("/options", { params: t })
|
|
266
|
-
}, N = s({
|
|
267
|
-
prefix: "/missing-tracking/v2"
|
|
268
|
-
}), Vt = {
|
|
269
|
-
putFoundAsset: (t) => N.put("/found", t),
|
|
270
|
-
putReportMissing: (t, e) => N.put(`/${t}/report-missing`, e),
|
|
261
|
+
putMarkAsFound: (t) => N.put("/found", t),
|
|
262
|
+
putReportMissing: (t, e) => N.put(`/report-missing/${t}`, e),
|
|
271
263
|
getData: (t) => N.get("/", { params: t }),
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
prefix: "/v2
|
|
276
|
-
env: "APP_LOGS_NOTIFICATION_API"
|
|
264
|
+
getDetail: (t) => N.get(`/${t}`),
|
|
265
|
+
getOptions: (t) => N.get("/options", { params: t })
|
|
266
|
+
}, M = s({
|
|
267
|
+
prefix: "/missing-tracking/v2"
|
|
277
268
|
}), jt = {
|
|
278
|
-
|
|
279
|
-
|
|
269
|
+
putFoundAsset: (t) => M.put("/found", t),
|
|
270
|
+
putReportMissing: (t, e) => M.put(`/${t}/report-missing`, e),
|
|
271
|
+
getData: (t) => M.get("/", { params: t }),
|
|
272
|
+
getDataOptions: (t) => M.get("/options", { params: t }),
|
|
273
|
+
getDetail: (t) => M.get(`/${t}`)
|
|
280
274
|
}, gt = s({
|
|
281
|
-
prefix: "/
|
|
275
|
+
prefix: "/v2/notification",
|
|
276
|
+
env: "APP_LOGS_NOTIFICATION_API"
|
|
282
277
|
}), Qt = {
|
|
283
278
|
getNotifications: (t) => gt.get("/", { params: t }),
|
|
284
279
|
readNotification: (t) => gt.put(`/${t}`)
|
|
285
|
-
},
|
|
280
|
+
}, pt = s({
|
|
281
|
+
prefix: "/utility/v2/notification"
|
|
282
|
+
}), Yt = {
|
|
283
|
+
getNotifications: (t) => pt.get("/", { params: t }),
|
|
284
|
+
readNotification: (t) => pt.put(`/${t}`)
|
|
285
|
+
}, Tt = s({
|
|
286
286
|
prefix: "/v2/session-log",
|
|
287
287
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
288
|
-
}),
|
|
289
|
-
postLogout: () =>
|
|
288
|
+
}), Jt = {
|
|
289
|
+
postLogout: () => Tt.post("/logout")
|
|
290
290
|
}, i = s({
|
|
291
291
|
prefix: "/tag/v2"
|
|
292
|
-
}),
|
|
292
|
+
}), Wt = {
|
|
293
293
|
getScanQR: (t) => i.get("/qr", { params: { tag: t } }),
|
|
294
294
|
getScanRFID: (t) => i.get("/rfid", { params: { tag: t } }),
|
|
295
295
|
getRFIDQRTAG: (t) => i.get("/rfid-qr/scan", { params: t }),
|
|
@@ -326,10 +326,10 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
326
326
|
},
|
|
327
327
|
putReportTAG: (t, e) => i.put(`/tag-transaction/report/${t}`, e),
|
|
328
328
|
putDeclineReport: (t, e) => i.put(`/report/decline-report/${e}`, t)
|
|
329
|
-
},
|
|
329
|
+
}, J = s({
|
|
330
330
|
prefix: "/tracking/v2/tracking"
|
|
331
|
-
}),
|
|
332
|
-
getTrackingDetail: (t) =>
|
|
331
|
+
}), Kt = {
|
|
332
|
+
getTrackingDetail: (t) => J.get(`/${t}`),
|
|
333
333
|
putFoundAsset: (t, e, r) => {
|
|
334
334
|
const a = {
|
|
335
335
|
tag: t,
|
|
@@ -337,13 +337,13 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
337
337
|
serialNumber: r,
|
|
338
338
|
type: "Global"
|
|
339
339
|
};
|
|
340
|
-
return
|
|
340
|
+
return J.put("/found", { params: a });
|
|
341
341
|
},
|
|
342
|
-
putReportPermanentlyMissing: (t, e) =>
|
|
343
|
-
putMoveBack: (t) =>
|
|
342
|
+
putReportPermanentlyMissing: (t, e) => J.put(`/report-permanently-missing/${t}`, e),
|
|
343
|
+
putMoveBack: (t) => J.put("/tracking/move-back", t)
|
|
344
344
|
}, u = s({
|
|
345
345
|
prefix: "/settings-user-role/v2"
|
|
346
|
-
}),
|
|
346
|
+
}), zt = {
|
|
347
347
|
reLogin: (t) => u.post("/auth/login", t),
|
|
348
348
|
changePassword: (t) => u.put("/users/change-password", t),
|
|
349
349
|
/**
|
|
@@ -394,7 +394,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
394
394
|
})
|
|
395
395
|
}, c = s({
|
|
396
396
|
prefix: "/settings-user-role-go/v2"
|
|
397
|
-
}),
|
|
397
|
+
}), Zt = {
|
|
398
398
|
/**
|
|
399
399
|
* Retrieves the user list as dropdown options.
|
|
400
400
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
@@ -429,27 +429,27 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
429
429
|
getUserDetailUserAssetAssignedList: (t, e) => c.get(`/users/${t}/assigned-asset`, { params: e }),
|
|
430
430
|
getUserDetailUserAssetBorrowedOption: (t, e) => c.get(`/users/${t}/borrowed-asset/option`, { params: e }),
|
|
431
431
|
getUserDetailUserAssetAssignedOption: (t, e) => c.get(`/users/${t}/assigned-asset/option`, { params: e })
|
|
432
|
-
},
|
|
432
|
+
}, U = s({
|
|
433
433
|
prefix: "/settings-user-role/v2/sub-users"
|
|
434
|
-
}),
|
|
434
|
+
}), Xt = {
|
|
435
435
|
// Sub User
|
|
436
|
-
getSubUserList: (t, e) =>
|
|
437
|
-
getSubUserOptions: (t, e) =>
|
|
436
|
+
getSubUserList: (t, e) => U.get(`/${t}`, { params: e }),
|
|
437
|
+
getSubUserOptions: (t, e) => U.get(`/${t}/option`, { params: e }),
|
|
438
438
|
postCreateSubUser: (t, e) => {
|
|
439
439
|
const r = { "Content-Type": "multipart/form-data" };
|
|
440
|
-
return
|
|
440
|
+
return U.post(`/${t}`, e, { headers: r });
|
|
441
441
|
},
|
|
442
|
-
putSubUserSetActiveBulk: (t) =>
|
|
443
|
-
deleteSubUser: (t) =>
|
|
442
|
+
putSubUserSetActiveBulk: (t) => U.put("/set-active-bulk", t),
|
|
443
|
+
deleteSubUser: (t) => U.delete("/bulk", { data: { subUserIds: t } }),
|
|
444
444
|
putEditSubUser: (t, e) => {
|
|
445
445
|
const r = { "Content-Type": "multipart/form-data" };
|
|
446
|
-
return
|
|
446
|
+
return U.put(`/${t}`, e, { headers: r });
|
|
447
447
|
},
|
|
448
|
-
getBorrowedAsset: (t, e) =>
|
|
449
|
-
getBorrowedAssetOptions: (t, e) =>
|
|
448
|
+
getBorrowedAsset: (t, e) => U.get(`/${t}/borrowed-asset`, { params: e }),
|
|
449
|
+
getBorrowedAssetOptions: (t, e) => U.get(`/${t}/borrowed-asset/options`, { params: e })
|
|
450
450
|
}, y = s({
|
|
451
451
|
prefix: "/settings-user-role-go/v2/users"
|
|
452
|
-
}),
|
|
452
|
+
}), te = {
|
|
453
453
|
// Sub User
|
|
454
454
|
getSubUserList: (t, e) => y.get(`/${t}/sub-users`, { params: e }),
|
|
455
455
|
getSubUserOptions: (t, e) => y.get(`/${t}/sub-users/option`, { params: e }),
|
|
@@ -477,23 +477,23 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
477
477
|
getAssignedAssetOptions: (t, e, r) => y.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
|
|
478
478
|
params: r
|
|
479
479
|
})
|
|
480
|
-
},
|
|
480
|
+
}, W = s({
|
|
481
481
|
env: "APP_ADMIN_API",
|
|
482
482
|
prefix: "/settings-attribute/languages"
|
|
483
|
-
}),
|
|
483
|
+
}), ee = {
|
|
484
484
|
/**
|
|
485
485
|
* Fetch all translation messages for a specific locale.
|
|
486
486
|
* @param locale The locale code (e.g., 'en', 'id').
|
|
487
487
|
* @returns A promise resolving to a key-value record of messages.
|
|
488
488
|
*/
|
|
489
|
-
getMessages: (t) =>
|
|
489
|
+
getMessages: (t) => W.get(`/${t}/translations`),
|
|
490
490
|
/**
|
|
491
491
|
* Fetch all available lang options for LanguageDropdown and LanguageSwitcher
|
|
492
492
|
*
|
|
493
493
|
* @returns Promise Array of options
|
|
494
494
|
*/
|
|
495
495
|
getLanguageOptions: async () => {
|
|
496
|
-
const { data: t } = await
|
|
496
|
+
const { data: t } = await W.get("/dropdown");
|
|
497
497
|
return t.data;
|
|
498
498
|
},
|
|
499
499
|
/**
|
|
@@ -503,7 +503,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
503
503
|
* @returns Promise LanguageMeta
|
|
504
504
|
*/
|
|
505
505
|
getLanguageOptionMeta: async (t) => {
|
|
506
|
-
const { data: e } = await
|
|
506
|
+
const { data: e } = await W.get(
|
|
507
507
|
"/dropdown/" + t
|
|
508
508
|
);
|
|
509
509
|
return e.data;
|
|
@@ -515,61 +515,62 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
515
515
|
* @param locale Target locale code.
|
|
516
516
|
*/
|
|
517
517
|
translateText: async (t, e) => {
|
|
518
|
-
const { data: r } = await
|
|
518
|
+
const { data: r } = await W.post("/translate", {
|
|
519
519
|
q: t,
|
|
520
520
|
target: e
|
|
521
521
|
});
|
|
522
522
|
return r.data.translations[t];
|
|
523
523
|
}
|
|
524
|
-
},
|
|
524
|
+
}, ct = s({
|
|
525
525
|
prefix: "/dashboard/v2/dashboard"
|
|
526
|
-
}), ee = {
|
|
527
|
-
getLatestTask: (t) => pt.get("/latest-task", { params: t }),
|
|
528
|
-
getSummary: (t) => pt.get("/summary", { params: t })
|
|
529
|
-
}, X = s({
|
|
530
|
-
prefix: "/alias-code/api/alias-code"
|
|
531
526
|
}), re = {
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
getAliasCodeList: (t) => X.get(`/${t.object}/code-list`, { params: t })
|
|
527
|
+
getLatestTask: (t) => ct.get("/latest-task", { params: t }),
|
|
528
|
+
getSummary: (t) => ct.get("/summary", { params: t })
|
|
535
529
|
}, tt = s({
|
|
536
|
-
prefix: "/
|
|
530
|
+
prefix: "/alias-code/api/alias-code"
|
|
537
531
|
}), se = {
|
|
538
532
|
getAliasCode: () => tt.get("/"),
|
|
539
533
|
postAliasCode: (t) => tt.post("/", t),
|
|
540
534
|
getAliasCodeList: (t) => tt.get(`/${t.object}/code-list`, { params: t })
|
|
541
|
-
},
|
|
542
|
-
prefix: "/settings-attribute/v2/
|
|
535
|
+
}, et = s({
|
|
536
|
+
prefix: "/settings-attribute-go/v2/alias-code"
|
|
543
537
|
}), ne = {
|
|
544
|
-
|
|
545
|
-
|
|
538
|
+
getAliasCode: () => et.get("/"),
|
|
539
|
+
postAliasCode: (t) => et.post("/", t),
|
|
540
|
+
getAliasCodeList: (t) => et.get(`/${t.object}/code-list`, { params: t })
|
|
546
541
|
}, lt = s({
|
|
547
|
-
prefix: "/settings-attribute
|
|
542
|
+
prefix: "/settings-attribute/v2/general-settings"
|
|
548
543
|
}), oe = {
|
|
549
544
|
getGeneralSettings: () => lt.get("/"),
|
|
550
545
|
putUpdateGeneralSettings: (t) => lt.put("/", t)
|
|
551
|
-
},
|
|
552
|
-
prefix: "/settings-attribute/v2/
|
|
546
|
+
}, dt = s({
|
|
547
|
+
prefix: "/settings-attribute-go/v2/general-settings"
|
|
553
548
|
}), ae = {
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
putEditCustomField: async (t, e, r) => O.put(`/${r}`, e, { params: t }),
|
|
559
|
-
putChangeStatus: async (t, e) => O.put("/bulk", e, { params: t }),
|
|
560
|
-
deleteCustomField: async (t) => O.delete("/bulk", { data: t })
|
|
561
|
-
}, B = s({
|
|
562
|
-
prefix: "/settings-attribute-go/v2/custom-field"
|
|
549
|
+
getGeneralSettings: () => dt.get("/"),
|
|
550
|
+
putUpdateGeneralSettings: (t) => dt.put("/", t)
|
|
551
|
+
}, L = s({
|
|
552
|
+
prefix: "/settings-attribute/v2/custom-field"
|
|
563
553
|
}), ie = {
|
|
564
|
-
getCustomField: async (t) =>
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
554
|
+
getCustomField: async (t) => L.get("/", { params: t }),
|
|
555
|
+
getCustomFieldsByCategory: (t, e) => L.get(`/${t}`, { params: e }),
|
|
556
|
+
getOptions: async (t) => L.get("/options", { params: t }),
|
|
557
|
+
postCreateCustomField: async (t, e) => L.post("/", e, { params: t }),
|
|
558
|
+
putEditCustomField: async (t, e, r) => L.put(`/${r}`, e, { params: t }),
|
|
559
|
+
putChangeStatus: async (t, e) => L.put("/bulk", e, { params: t }),
|
|
560
|
+
deleteCustomField: async (t) => L.delete("/bulk", { data: t }),
|
|
561
|
+
getUsedCustomFields: async () => L.get("/used-by-assets")
|
|
562
|
+
}, G = s({
|
|
563
|
+
prefix: "/settings-attribute-go/v2/custom-field"
|
|
564
|
+
}), ue = {
|
|
565
|
+
getCustomField: async (t) => G.get("/", { params: t }),
|
|
566
|
+
getOptions: async (t) => G.get("/options", { params: t }),
|
|
567
|
+
postCreateCustomField: async (t, e) => G.post("/", e, { params: t }),
|
|
568
|
+
putEditCustomField: async (t, e, r) => G.put(`/${r}`, e, { params: t }),
|
|
569
|
+
putChangeStatus: async (t, e) => G.put("/bulk", e, { params: t }),
|
|
570
|
+
deleteCustomField: async (t) => G.delete("/bulk", { params: t })
|
|
571
|
+
}, rt = ({ headers: t = {}, params: e = {} } = {}) => {
|
|
572
|
+
const r = E("APP_COUNTRY_STATE_API"), a = E("APP_COUNTRY_STATE_API_KEY");
|
|
573
|
+
return vt.create({
|
|
573
574
|
baseURL: `${r}/v1`,
|
|
574
575
|
headers: {
|
|
575
576
|
"Content-type": "application/json",
|
|
@@ -578,13 +579,13 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
578
579
|
},
|
|
579
580
|
params: e
|
|
580
581
|
});
|
|
581
|
-
},
|
|
582
|
-
getCountry: () =>
|
|
583
|
-
getState: (t) =>
|
|
584
|
-
getCity: (t, e) =>
|
|
582
|
+
}, ge = {
|
|
583
|
+
getCountry: () => rt().get("/countries"),
|
|
584
|
+
getState: (t) => rt().get(`/countries/${t}/states`),
|
|
585
|
+
getCity: (t, e) => rt().get(`/countries/${t}/states/${e}/cities`)
|
|
585
586
|
}, v = s({
|
|
586
587
|
prefix: "/routine/v2"
|
|
587
|
-
}),
|
|
588
|
+
}), pe = {
|
|
588
589
|
getList: (t) => v.get("/service-center", { params: t }),
|
|
589
590
|
postList: (t) => v.post("/service-center", t),
|
|
590
591
|
putList: (t, e) => v.put(`/service-center/${t}`, e),
|
|
@@ -597,19 +598,19 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
597
598
|
getActivityOptions: (t) => v.get("/service-activities/options", { params: t }),
|
|
598
599
|
getActivityDetail: (t) => v.get(`/service-activities/${t}`),
|
|
599
600
|
getActivityLog: (t) => v.get(`/service-activities/${t}/activity-log`)
|
|
600
|
-
},
|
|
601
|
+
}, It = s({
|
|
601
602
|
prefix: "/settings-attribute/v2/brands"
|
|
602
|
-
}), pe = {
|
|
603
|
-
getDropdown: (t) => Tt.get("/dropdown", { params: t })
|
|
604
|
-
}, G = s({
|
|
605
|
-
prefix: "/file-manager/v2"
|
|
606
603
|
}), ce = {
|
|
604
|
+
getDropdown: (t) => It.get("/dropdown", { params: t })
|
|
605
|
+
}, x = s({
|
|
606
|
+
prefix: "/file-manager/v2"
|
|
607
|
+
}), le = {
|
|
607
608
|
/**
|
|
608
609
|
* Get storage information.
|
|
609
610
|
*
|
|
610
611
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
611
612
|
*/
|
|
612
|
-
getStorageInformation: () =>
|
|
613
|
+
getStorageInformation: () => x.get("/files/storage"),
|
|
613
614
|
/**
|
|
614
615
|
* Get file manager data.
|
|
615
616
|
*
|
|
@@ -617,7 +618,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
617
618
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
618
619
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
619
620
|
*/
|
|
620
|
-
getFileManager: (t, e) =>
|
|
621
|
+
getFileManager: (t, e) => x.get(`/${t}`, { params: e }),
|
|
621
622
|
/**
|
|
622
623
|
* Get file manager options.
|
|
623
624
|
*
|
|
@@ -625,7 +626,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
625
626
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
626
627
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
627
628
|
*/
|
|
628
|
-
getFileManagerOption: (t, e) =>
|
|
629
|
+
getFileManagerOption: (t, e) => x.get(`/${t}/options`, { params: e }),
|
|
629
630
|
/**
|
|
630
631
|
* Recover files.
|
|
631
632
|
*
|
|
@@ -633,7 +634,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
633
634
|
* @param {object} body - The body of the request.
|
|
634
635
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
635
636
|
*/
|
|
636
|
-
recoverFiles: (t, e) =>
|
|
637
|
+
recoverFiles: (t, e) => x.put(`/${t}/recover`, e),
|
|
637
638
|
/**
|
|
638
639
|
* Delete files.
|
|
639
640
|
*
|
|
@@ -641,7 +642,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
641
642
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
642
643
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
643
644
|
*/
|
|
644
|
-
deleteFiles: (t, e) =>
|
|
645
|
+
deleteFiles: (t, e) => x.delete(`/${t}`, { params: e }),
|
|
645
646
|
/**
|
|
646
647
|
* Delete files permanently.
|
|
647
648
|
*
|
|
@@ -649,16 +650,16 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
649
650
|
* @param {object} body - The body of the request.
|
|
650
651
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
651
652
|
*/
|
|
652
|
-
deletePermanently: (t, e) =>
|
|
653
|
-
},
|
|
653
|
+
deletePermanently: (t, e) => x.delete(`/${t}/delete-permanent`, { params: e })
|
|
654
|
+
}, k = s({
|
|
654
655
|
prefix: "/utility/v2"
|
|
655
|
-
}),
|
|
656
|
+
}), de = {
|
|
656
657
|
/**
|
|
657
658
|
* Get storage information.
|
|
658
659
|
*
|
|
659
660
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
660
661
|
*/
|
|
661
|
-
getStorageInformation: () =>
|
|
662
|
+
getStorageInformation: () => k.get("/files/storage"),
|
|
662
663
|
/**
|
|
663
664
|
* Get file manager data.
|
|
664
665
|
*
|
|
@@ -666,7 +667,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
666
667
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
667
668
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
668
669
|
*/
|
|
669
|
-
getFileManager: (t, e) =>
|
|
670
|
+
getFileManager: (t, e) => k.get(`/${t}`, { params: e }),
|
|
670
671
|
/**
|
|
671
672
|
* Get file manager options.
|
|
672
673
|
*
|
|
@@ -674,7 +675,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
674
675
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
675
676
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
676
677
|
*/
|
|
677
|
-
getFileManagerOption: (t, e) =>
|
|
678
|
+
getFileManagerOption: (t, e) => k.get(`/${t}/options`, { params: e }),
|
|
678
679
|
/**
|
|
679
680
|
* Recover files.
|
|
680
681
|
*
|
|
@@ -682,7 +683,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
682
683
|
* @param {object} body - The body of the request.
|
|
683
684
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
684
685
|
*/
|
|
685
|
-
recoverFiles: (t, e) =>
|
|
686
|
+
recoverFiles: (t, e) => k.put(`/${t}/recover`, e),
|
|
686
687
|
/**
|
|
687
688
|
* Delete files.
|
|
688
689
|
*
|
|
@@ -690,7 +691,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
690
691
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
691
692
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
692
693
|
*/
|
|
693
|
-
deleteFiles: (t, e) =>
|
|
694
|
+
deleteFiles: (t, e) => k.delete(`/${t}`, { params: e }),
|
|
694
695
|
/**
|
|
695
696
|
* Delete files permanently.
|
|
696
697
|
*
|
|
@@ -698,21 +699,21 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
698
699
|
* @param {object} body - The body of the request.
|
|
699
700
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
700
701
|
*/
|
|
701
|
-
deletePermanently: (t, e) =>
|
|
702
|
-
},
|
|
702
|
+
deletePermanently: (t, e) => k.delete(`/${t}/delete-permanent`, { params: e })
|
|
703
|
+
}, C = s({
|
|
703
704
|
prefix: "/iot/v2/reader"
|
|
704
|
-
}),
|
|
705
|
-
getData: (t) =>
|
|
706
|
-
getDataOptions: (t) =>
|
|
707
|
-
getActivityLogData: (t) =>
|
|
708
|
-
getActivityLogOptions: (t) =>
|
|
709
|
-
getDataById: (t) =>
|
|
710
|
-
getChangeLog: (t) =>
|
|
711
|
-
getChangeLogOptions: (t) =>
|
|
712
|
-
putData: (t, e) =>
|
|
705
|
+
}), Ae = {
|
|
706
|
+
getData: (t) => C.get("/", { params: t }),
|
|
707
|
+
getDataOptions: (t) => C.get("/options", { params: t }),
|
|
708
|
+
getActivityLogData: (t) => C.get("/activity-log", { params: t }),
|
|
709
|
+
getActivityLogOptions: (t) => C.get("/activity-log/options", { params: t }),
|
|
710
|
+
getDataById: (t) => C.get(`/${t}`),
|
|
711
|
+
getChangeLog: (t) => C.get(`/${t.id}/change-log`, { params: t }),
|
|
712
|
+
getChangeLogOptions: (t) => C.get(`/${t.id}/change-log/options`, { params: t }),
|
|
713
|
+
putData: (t, e) => C.put(`/${t}`, e)
|
|
713
714
|
}, l = s({
|
|
714
715
|
prefix: "/settings-user-role/v2"
|
|
715
|
-
}),
|
|
716
|
+
}), $e = {
|
|
716
717
|
/**
|
|
717
718
|
* Retrieves the transaction role for the given group and transaction name.
|
|
718
719
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
@@ -798,7 +799,7 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
798
799
|
}
|
|
799
800
|
}, d = s({
|
|
800
801
|
prefix: "/settings-user-role-go/v2"
|
|
801
|
-
}),
|
|
802
|
+
}), me = {
|
|
802
803
|
/**
|
|
803
804
|
* Retrieves the transaction role for the given group and transaction name.
|
|
804
805
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
@@ -882,61 +883,61 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
882
883
|
}
|
|
883
884
|
return d.put("/system-roles", t);
|
|
884
885
|
}
|
|
885
|
-
},
|
|
886
|
+
}, H = s({
|
|
886
887
|
prefix: "/settings-attribute/v2/open-api"
|
|
887
|
-
}), me = {
|
|
888
|
-
getOpenAPIDocs: (t) => M.get(`/${t.doc}`),
|
|
889
|
-
putGenerateToken: () => M.put("/generate"),
|
|
890
|
-
// This is if the dummy was not dummy
|
|
891
|
-
getToken: () => M.get(""),
|
|
892
|
-
putRequestOpenAPI: () => M.put("/request"),
|
|
893
|
-
putCancelRequestOpenAPI: () => M.put("/cancel-request")
|
|
894
|
-
}, W = s({
|
|
895
|
-
prefix: "/settings-attribute-go/v2/open-api"
|
|
896
888
|
}), ve = {
|
|
897
|
-
|
|
889
|
+
getOpenAPIDocs: (t) => H.get(`/${t.doc}`),
|
|
890
|
+
putGenerateToken: () => H.put("/generate"),
|
|
898
891
|
// This is if the dummy was not dummy
|
|
899
|
-
getToken: () =>
|
|
900
|
-
putRequestOpenAPI: () =>
|
|
901
|
-
putCancelRequestOpenAPI: () =>
|
|
902
|
-
},
|
|
903
|
-
prefix: "/
|
|
892
|
+
getToken: () => H.get(""),
|
|
893
|
+
putRequestOpenAPI: () => H.put("/request"),
|
|
894
|
+
putCancelRequestOpenAPI: () => H.put("/cancel-request")
|
|
895
|
+
}, K = s({
|
|
896
|
+
prefix: "/settings-attribute-go/v2/open-api"
|
|
904
897
|
}), ye = {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
deleteImportTemporary: (t, e) => R.delete(`/${t}/temporary`, { data: e }),
|
|
911
|
-
postDuplicateImport: (t, e) => R.post(`/${t}/duplicate`, e),
|
|
912
|
-
putEditImport: (t, e) => R.put(`/${t}`, e),
|
|
913
|
-
postImport: (t, e, r) => R.post(t, r, { signal: e.signal }),
|
|
914
|
-
putImportCancelProgress: (t) => R.put(`/${t}/cancel-progress`)
|
|
898
|
+
putGenerateToken: () => K.put("/generate"),
|
|
899
|
+
// This is if the dummy was not dummy
|
|
900
|
+
getToken: () => K.get(""),
|
|
901
|
+
putRequestOpenAPI: () => K.put("/request"),
|
|
902
|
+
putCancelRequestOpenAPI: () => K.put("/cancel-request")
|
|
915
903
|
}, D = s({
|
|
916
|
-
prefix: "/import
|
|
904
|
+
prefix: "/import/v2"
|
|
917
905
|
}), Se = {
|
|
918
906
|
getImport: (t, e) => D.get(`/${t}`, { params: e }),
|
|
919
907
|
postImportTemporary: (t, e) => {
|
|
920
908
|
const r = { "Content-Type": "multipart/form-data" };
|
|
921
909
|
return D.post(`/${t}/temporary`, e, { headers: r });
|
|
922
910
|
},
|
|
923
|
-
deleteImportTemporary: (t, e) => D.delete(`/${t}/temporary`, {
|
|
911
|
+
deleteImportTemporary: (t, e) => D.delete(`/${t}/temporary`, { data: e }),
|
|
924
912
|
postDuplicateImport: (t, e) => D.post(`/${t}/duplicate`, e),
|
|
925
913
|
putEditImport: (t, e) => D.put(`/${t}`, e),
|
|
926
914
|
postImport: (t, e, r) => D.post(t, r, { signal: e.signal }),
|
|
927
915
|
putImportCancelProgress: (t) => D.put(`/${t}/cancel-progress`)
|
|
928
|
-
},
|
|
929
|
-
prefix: "/
|
|
916
|
+
}, b = s({
|
|
917
|
+
prefix: "/import-go/v2"
|
|
930
918
|
}), fe = {
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
919
|
+
getImport: (t, e) => b.get(`/${t}`, { params: e }),
|
|
920
|
+
postImportTemporary: (t, e) => {
|
|
921
|
+
const r = { "Content-Type": "multipart/form-data" };
|
|
922
|
+
return b.post(`/${t}/temporary`, e, { headers: r });
|
|
923
|
+
},
|
|
924
|
+
deleteImportTemporary: (t, e) => b.delete(`/${t}/temporary`, { params: e }),
|
|
925
|
+
postDuplicateImport: (t, e) => b.post(`/${t}/duplicate`, e),
|
|
926
|
+
putEditImport: (t, e) => b.put(`/${t}`, e),
|
|
927
|
+
postImport: (t, e, r) => b.post(t, r, { signal: e.signal }),
|
|
928
|
+
putImportCancelProgress: (t) => b.put(`/${t}/cancel-progress`)
|
|
929
|
+
}, _ = s({
|
|
930
|
+
prefix: "/settings-attribute/v2/asset-name"
|
|
931
|
+
}), Pe = {
|
|
932
|
+
getDropdown: (t) => _.get("/dropdown", { params: t }),
|
|
933
|
+
getAssetNameDetail: (t) => _.get(`/${t}`),
|
|
934
|
+
getAssetsByAssetName: (t, e) => _.get(`/${t}/list-asset`, { params: e }),
|
|
935
|
+
getAssetNameList: (t) => _.get("/", { params: t }),
|
|
936
|
+
getUnpairedAssetName: (t) => _.get("/unpaired", { params: t }),
|
|
937
|
+
getOptions: (t) => _.get("/options", { params: t })
|
|
937
938
|
}, o = s({
|
|
938
939
|
prefix: "/assignment/v2"
|
|
939
|
-
}),
|
|
940
|
+
}), Te = {
|
|
940
941
|
getPreListData: (t) => o.get("/prelist", { params: t }),
|
|
941
942
|
getPreListOptions: (t) => o.get("/prelist/options", { params: t }),
|
|
942
943
|
getRequestData: (t) => o.get("/prelist/request", { params: t }),
|
|
@@ -992,23 +993,23 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
992
993
|
getAssignedAssetOptions: async (t) => o.get("/transaction/my-asset/assigned-asset/options", { params: t }),
|
|
993
994
|
putCancelAssignment: async (t) => o.put("/transaction/cancel", { id: t.id }),
|
|
994
995
|
putCancelReportById: async (t) => o.put(`/transaction/request/${t.id}/cancel-report`)
|
|
995
|
-
},
|
|
996
|
+
}, h = s({
|
|
996
997
|
prefix: "/assignment-go/v2"
|
|
997
|
-
}),
|
|
998
|
-
getTransactionData: (t) =>
|
|
999
|
-
getTransactionOptions: (t) =>
|
|
1000
|
-
getDetailTransactionLog: (t) =>
|
|
1001
|
-
postTransaction: (t) =>
|
|
1002
|
-
putTransaction: (t) =>
|
|
1003
|
-
putUnassignTransaction: (t) =>
|
|
1004
|
-
putCancelReport: (t) =>
|
|
998
|
+
}), Ie = {
|
|
999
|
+
getTransactionData: (t) => h.get("/transaction", { params: t }),
|
|
1000
|
+
getTransactionOptions: (t) => h.get("/transaction/options", { params: t }),
|
|
1001
|
+
getDetailTransactionLog: (t) => h.get(`/transaction/request/${t}/transaction-log`),
|
|
1002
|
+
postTransaction: (t) => h.post("/transaction", t),
|
|
1003
|
+
putTransaction: (t) => h.put("/transaction", t),
|
|
1004
|
+
putUnassignTransaction: (t) => h.put("/transaction/unassign", t),
|
|
1005
|
+
putCancelReport: (t) => h.put("/transaction/request/cancel-report", t)
|
|
1005
1006
|
}, A = s({
|
|
1006
1007
|
prefix: "/license/v2"
|
|
1007
|
-
}),
|
|
1008
|
+
}), Ut = {
|
|
1008
1009
|
getTotalLicense: () => A.get("/total-license"),
|
|
1009
1010
|
getPurchasedData: (t) => A.get("/purchase", { params: t }),
|
|
1010
1011
|
getCompanyData: () => A.get("/company")
|
|
1011
|
-
},
|
|
1012
|
+
}, Lt = {
|
|
1012
1013
|
getFixedAssetPerGroup: (t, e) => A.get(`/${t}/fixed-asset-list`, { params: e }),
|
|
1013
1014
|
getAssetNameList: (t, e, r) => A.get(`${e}/asset-list/${t}`, { params: r }),
|
|
1014
1015
|
// Get list of assets those already have licenses
|
|
@@ -1020,63 +1021,63 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1020
1021
|
`/manage/${t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}`,
|
|
1021
1022
|
e
|
|
1022
1023
|
)
|
|
1023
|
-
},
|
|
1024
|
+
}, Ct = {
|
|
1024
1025
|
getGroupQuota: (t) => A.get(`/${t}/allocation-quota`),
|
|
1025
1026
|
getSubGroupQuota: (t, e) => A.get(`/${t}/subgroup-quota`, { params: e }),
|
|
1026
1027
|
editSubGroupQuota: (t, e) => A.put(`/${t}/set-group-quota`, e)
|
|
1027
|
-
},
|
|
1028
|
+
}, Rt = {
|
|
1028
1029
|
getConcurrentUserData: () => A.get("/concurrent-user-data"),
|
|
1029
1030
|
getConcurrentUserList: (t) => A.get("/concurrent-user", { params: t }),
|
|
1030
1031
|
putLogoutUsers: (t) => A.put("/concurrent-user", t)
|
|
1031
|
-
},
|
|
1032
|
+
}, Ue = {
|
|
1032
1033
|
getFilterOptions: (t, e) => A.get(`/${t}`, { params: e }),
|
|
1033
|
-
...
|
|
1034
|
+
...Ut,
|
|
1035
|
+
...Rt,
|
|
1034
1036
|
...Ct,
|
|
1035
|
-
...Lt
|
|
1036
|
-
|
|
1037
|
-
}, L = s({
|
|
1037
|
+
...Lt
|
|
1038
|
+
}, R = s({
|
|
1038
1039
|
prefix: "/license-go/v2"
|
|
1039
1040
|
}), Ot = {
|
|
1040
|
-
getTotalLicense: () =>
|
|
1041
|
-
getPurchasedData: (t) =>
|
|
1042
|
-
}, Rt = {
|
|
1043
|
-
getConcurrentUserData: () => L.get("/concurrent-user-data"),
|
|
1044
|
-
getConcurrentUserList: (t) => L.get("/concurrent-user", { params: t }),
|
|
1045
|
-
putLogoutUsers: (t) => L.put("/concurrent-user", t)
|
|
1041
|
+
getTotalLicense: () => R.get("/total-license"),
|
|
1042
|
+
getPurchasedData: (t) => R.get("/purchase", { params: t })
|
|
1046
1043
|
}, Dt = {
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1044
|
+
getConcurrentUserData: () => R.get("/concurrent-user-data"),
|
|
1045
|
+
getConcurrentUserList: (t) => R.get("/concurrent-user", { params: t }),
|
|
1046
|
+
putLogoutUsers: (t) => R.put("/concurrent-user", t)
|
|
1047
|
+
}, bt = {
|
|
1048
|
+
getFixedAssetPerGroup: (t, e) => R.get(`/${t}/assets`, { params: e }),
|
|
1049
|
+
deleteAssetData: (t) => R.delete("/assets", { data: t })
|
|
1050
|
+
}, Le = {
|
|
1051
|
+
getFilterOptions: (t, e) => R.get(`/${t}`, { params: e }),
|
|
1051
1052
|
...Ot,
|
|
1052
|
-
...
|
|
1053
|
-
...
|
|
1054
|
-
},
|
|
1053
|
+
...Dt,
|
|
1054
|
+
...bt
|
|
1055
|
+
}, V = s({
|
|
1055
1056
|
prefix: "/repair/v2/damage"
|
|
1056
|
-
}),
|
|
1057
|
-
getDamageReportList: (t) =>
|
|
1058
|
-
getDamageReportListFilterOptions: (t) =>
|
|
1059
|
-
getDamageReportDetail: (t) =>
|
|
1057
|
+
}), Ce = {
|
|
1058
|
+
getDamageReportList: (t) => V.get("/", { params: t }),
|
|
1059
|
+
getDamageReportListFilterOptions: (t) => V.get("/options", { params: t }),
|
|
1060
|
+
getDamageReportDetail: (t) => V.get(`/${t}`),
|
|
1060
1061
|
putReportDamage: (t, e) => {
|
|
1061
1062
|
const r = { "Content-Type": "multipart/form-data" };
|
|
1062
|
-
return
|
|
1063
|
+
return V.put(`/report-damage/${t}`, e, { headers: r });
|
|
1063
1064
|
},
|
|
1064
1065
|
/**
|
|
1065
1066
|
* To mark as repaired.
|
|
1066
1067
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
1067
1068
|
*/
|
|
1068
|
-
putMarkAsRepaired: (t) =>
|
|
1069
|
-
},
|
|
1069
|
+
putMarkAsRepaired: (t) => V.put("/repair", t)
|
|
1070
|
+
}, j = s({
|
|
1070
1071
|
prefix: "/damage-repair-ticketing/v2"
|
|
1071
|
-
}),
|
|
1072
|
-
getDamageReportList: (t) =>
|
|
1073
|
-
getDamageReportListFilterOptions: (t) =>
|
|
1074
|
-
getDamageReportDetail: (t) =>
|
|
1072
|
+
}), Re = {
|
|
1073
|
+
getDamageReportList: (t) => j.get("/", { params: t }),
|
|
1074
|
+
getDamageReportListFilterOptions: (t) => j.get("/options", { params: t }),
|
|
1075
|
+
getDamageReportDetail: (t) => j.get(`/${t}`),
|
|
1075
1076
|
putReportDamage: (t, e) => {
|
|
1076
1077
|
const r = { "Content-Type": "multipart/form-data" };
|
|
1077
|
-
return
|
|
1078
|
+
return j.put(`/${t}/report-damage`, e, { headers: r });
|
|
1078
1079
|
},
|
|
1079
|
-
putMarkAsRepaired: (t) =>
|
|
1080
|
+
putMarkAsRepaired: (t) => j.put("/repair", t)
|
|
1080
1081
|
}, n = s({
|
|
1081
1082
|
prefix: "/borrowing/v2"
|
|
1082
1083
|
}), Oe = {
|
|
@@ -1143,55 +1144,55 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1143
1144
|
id: t
|
|
1144
1145
|
}),
|
|
1145
1146
|
putBorrowingEditExtension: (t) => n.put("/transaction/request/duration", t)
|
|
1146
|
-
},
|
|
1147
|
+
}, At = s({
|
|
1147
1148
|
prefix: "/assets/v2"
|
|
1148
|
-
}), Re = {
|
|
1149
|
-
getHistory: async (t) => dt.get("/my-asset", { params: t }),
|
|
1150
|
-
getHistoryOptions: async (t) => dt.get("/my-asset/options", { params: t })
|
|
1151
|
-
}, K = s({
|
|
1152
|
-
prefix: "/repair/v2"
|
|
1153
1149
|
}), De = {
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
},
|
|
1150
|
+
getHistory: async (t) => At.get("/my-asset", { params: t }),
|
|
1151
|
+
getHistoryOptions: async (t) => At.get("/my-asset/options", { params: t })
|
|
1152
|
+
}, z = s({
|
|
1153
|
+
prefix: "/repair/v2"
|
|
1154
|
+
}), be = {
|
|
1155
|
+
getRepairList: (t) => z.get("/my-asset/repair", { params: t }),
|
|
1156
|
+
getFilterOptions: (t) => z.get("/my-asset/repair/options", { params: t }),
|
|
1157
|
+
getAssetRepairTicketing: (t, e) => z.get(`/repair/${t}/asset-repair-detail`, { params: e }),
|
|
1158
|
+
putConfirmRepair: (t) => z.put(`/repair/${t}/confirm-repair`)
|
|
1159
|
+
}, st = s({
|
|
1159
1160
|
env: "APP_GLOBAL_SETTINGS_API",
|
|
1160
1161
|
prefix: "/v1/global-settings/auth"
|
|
1161
|
-
}),
|
|
1162
|
+
}), w = s({
|
|
1162
1163
|
env: "APP_TAGSAMURAI_API",
|
|
1163
1164
|
prefix: "/settings-user-role/v2/auth"
|
|
1164
|
-
}),
|
|
1165
|
-
var e, r, a,
|
|
1166
|
-
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((
|
|
1167
|
-
},
|
|
1165
|
+
}), $t = (t) => {
|
|
1166
|
+
var e, r, a, P;
|
|
1167
|
+
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((P = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : P.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
|
|
1168
|
+
}, he = {
|
|
1168
1169
|
login: (t) => {
|
|
1169
1170
|
const e = { ...t, isMobile: !1 };
|
|
1170
|
-
return
|
|
1171
|
+
return st.post("/login", e);
|
|
1171
1172
|
},
|
|
1172
|
-
reLoginGlobal: (t) => (
|
|
1173
|
-
reLogin: (t) => (
|
|
1173
|
+
reLoginGlobal: (t) => (st.interceptors.response.use((e) => e, $t), st.post("/login", t)),
|
|
1174
|
+
reLogin: (t) => (w.interceptors.response.use((e) => e, $t), w.post("/login", t)),
|
|
1174
1175
|
requestOTP: (t) => {
|
|
1175
1176
|
const e = { email: t };
|
|
1176
|
-
return
|
|
1177
|
+
return w.post("/request-otp", e);
|
|
1177
1178
|
},
|
|
1178
1179
|
requestResetPassLink: (t) => {
|
|
1179
1180
|
const e = { email: t };
|
|
1180
|
-
return
|
|
1181
|
+
return w.post("/request-reset-link", e);
|
|
1181
1182
|
},
|
|
1182
|
-
setPassword: (t) =>
|
|
1183
|
-
verifyToken: (t) =>
|
|
1183
|
+
setPassword: (t) => w.post("/set-password", t),
|
|
1184
|
+
verifyToken: (t) => w.get(`/verify-token/${t}`),
|
|
1184
1185
|
confirmEmailChange: (t) => {
|
|
1185
1186
|
const e = { token: t };
|
|
1186
|
-
return
|
|
1187
|
+
return w.put("/confirm-email-change/confirm", e);
|
|
1187
1188
|
}
|
|
1188
|
-
},
|
|
1189
|
-
prefix: `${
|
|
1189
|
+
}, it = "/transfer/v2", Z = s({
|
|
1190
|
+
prefix: `${it}/prelist`
|
|
1190
1191
|
}), $ = s({
|
|
1191
|
-
prefix: `${
|
|
1192
|
-
}),
|
|
1193
|
-
prefix: `${
|
|
1194
|
-
}),
|
|
1192
|
+
prefix: `${it}/transaction`
|
|
1193
|
+
}), Q = s({
|
|
1194
|
+
prefix: `${it}/approval`
|
|
1195
|
+
}), we = {
|
|
1195
1196
|
// ------ TRANSACTION ------
|
|
1196
1197
|
getTransactions: (t) => $.get("/", { params: t }),
|
|
1197
1198
|
getTransactionDetail: (t) => $.get(`/${t}`),
|
|
@@ -1228,104 +1229,104 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1228
1229
|
getApproverList: (t) => $.get(`/${t}/approval-history`),
|
|
1229
1230
|
putHandoverTransaction: (t, e) => $.put(`/${t}/handover`, e),
|
|
1230
1231
|
// ------ PRELIST ------
|
|
1231
|
-
getPrelist: (t) =>
|
|
1232
|
-
postAddPrelistData: (t) =>
|
|
1233
|
-
deletePrelist: (t) =>
|
|
1232
|
+
getPrelist: (t) => Z.get("/", { params: t }),
|
|
1233
|
+
postAddPrelistData: (t) => Z.post("/", t),
|
|
1234
|
+
deletePrelist: (t) => Z.delete("/", {
|
|
1234
1235
|
params: {
|
|
1235
1236
|
id: JSON.stringify(t)
|
|
1236
1237
|
}
|
|
1237
1238
|
}),
|
|
1238
1239
|
getPrelistAssets: (t) => {
|
|
1239
1240
|
const e = { id: t };
|
|
1240
|
-
return
|
|
1241
|
+
return Z.get("/request", { params: e });
|
|
1241
1242
|
},
|
|
1242
1243
|
// APPROVAL
|
|
1243
1244
|
getApprovals: (t, e) => {
|
|
1244
1245
|
const r = { ...e, status: JSON.stringify([t]) };
|
|
1245
|
-
return
|
|
1246
|
+
return Q.get("/", { params: r });
|
|
1246
1247
|
},
|
|
1247
1248
|
getApprovalOptions: (t, e) => {
|
|
1248
1249
|
const r = {
|
|
1249
1250
|
status: JSON.stringify([t])
|
|
1250
1251
|
};
|
|
1251
|
-
return r[e] = !0,
|
|
1252
|
+
return r[e] = !0, Q.get("/options", { params: r });
|
|
1252
1253
|
},
|
|
1253
1254
|
getApprovalDetail: (t, e) => {
|
|
1254
1255
|
const r = {
|
|
1255
1256
|
groupType: e
|
|
1256
1257
|
};
|
|
1257
|
-
return
|
|
1258
|
+
return Q.get(`/transaction/${t}`, { params: r });
|
|
1258
1259
|
},
|
|
1259
1260
|
getApprovalDetailOptions: (t, e, r) => {
|
|
1260
1261
|
const a = {};
|
|
1261
|
-
return a[e] = !0, a.groupType = r,
|
|
1262
|
+
return a[e] = !0, a.groupType = r, Q.get(`/transaction/${t}/options`, { params: a });
|
|
1262
1263
|
},
|
|
1263
|
-
putUpdateApproval: (t) =>
|
|
1264
|
-
},
|
|
1264
|
+
putUpdateApproval: (t) => Q.put("/approve", t)
|
|
1265
|
+
}, nt = s({
|
|
1265
1266
|
prefix: "/disposal/v2/report"
|
|
1266
|
-
}), we = {
|
|
1267
|
-
getReportedDisposal: (t) => st.get("", { params: t }),
|
|
1268
|
-
postReportDisposal: (t) => st.post("", t),
|
|
1269
|
-
deleteCancelReport: (t) => st.delete("/cancel-report", { params: t })
|
|
1270
|
-
}, Z = s({
|
|
1271
|
-
prefix: "/transfer-go/v2"
|
|
1272
1267
|
}), qe = {
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
prefix: "/audit/v2"
|
|
1268
|
+
getReportedDisposal: (t) => nt.get("", { params: t }),
|
|
1269
|
+
postReportDisposal: (t) => nt.post("", t),
|
|
1270
|
+
deleteCancelReport: (t) => nt.delete("/cancel-report", { params: t })
|
|
1271
|
+
}, X = s({
|
|
1272
|
+
prefix: "/transfer-go/v2"
|
|
1279
1273
|
}), Be = {
|
|
1280
|
-
|
|
1281
|
-
|
|
1274
|
+
getTransactionData: (t) => X.get("/transaction", { params: t }),
|
|
1275
|
+
getTransactionOptions: (t) => X.get("/transaction/options", { params: t }),
|
|
1276
|
+
getTransactionLog: (t) => X.get(`/transaction/request/${t}/transaction-log`),
|
|
1277
|
+
postCreateTransaction: (t) => X.post("/transaction", t)
|
|
1278
|
+
}, ot = s({
|
|
1279
|
+
prefix: "/audit/v2"
|
|
1280
|
+
}), Ge = {
|
|
1281
|
+
getAudit: (t, e) => ot.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
|
|
1282
|
+
getAuditOption: (t, e) => ot.get(`/audit/schedule/asset-detail/${t}/options`, {
|
|
1282
1283
|
params: e
|
|
1283
1284
|
}),
|
|
1284
|
-
putSetActive: (t) =>
|
|
1285
|
-
},
|
|
1285
|
+
putSetActive: (t) => ot.put("/audit/asset/activation", t)
|
|
1286
|
+
}, at = s({
|
|
1286
1287
|
prefix: "/routine/v2"
|
|
1287
|
-
}), Ge = {
|
|
1288
|
-
getMaintenance: (t, e) => ot.get(`/routine-task/${t}`, { params: e }),
|
|
1289
|
-
getMaintenanceOption: (t, e) => ot.get(`/routine-task/${t}/options`, { params: e }),
|
|
1290
|
-
putSetActive: (t) => ot.put("/maintenable-asset/set-active", t)
|
|
1291
|
-
}, bt = s({
|
|
1292
|
-
prefix: "/settings-attribute/v2/models"
|
|
1293
1288
|
}), xe = {
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1289
|
+
getMaintenance: (t, e) => at.get(`/routine-task/${t}`, { params: e }),
|
|
1290
|
+
getMaintenanceOption: (t, e) => at.get(`/routine-task/${t}/options`, { params: e }),
|
|
1291
|
+
putSetActive: (t) => at.put("/maintenable-asset/set-active", t)
|
|
1292
|
+
}, ht = s({
|
|
1293
|
+
prefix: "/settings-attribute/v2/models"
|
|
1297
1294
|
}), ke = {
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
prefix: "/borrowing-go/v2"
|
|
1295
|
+
getDropdown: (t) => ht.get("/dropdown", { params: t })
|
|
1296
|
+
}, mt = s({
|
|
1297
|
+
prefix: "/settings-attribute/v2/transaction-settings"
|
|
1302
1298
|
}), _e = {
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1299
|
+
getData: () => mt.get("/"),
|
|
1300
|
+
putData: (t) => mt.put("/", t)
|
|
1301
|
+
}, q = s({
|
|
1302
|
+
prefix: "/borrowing-go/v2"
|
|
1303
|
+
}), Ee = {
|
|
1304
|
+
getTransactions: async (t) => q.get("/transaction", { params: t }),
|
|
1305
|
+
getTransactionOptions: async (t) => q.get("/transaction/options", { params: t }),
|
|
1306
|
+
getTransactionLog: async (t) => q.get(`/transaction/request/${t}/transaction-log`),
|
|
1307
|
+
postTransaction: async (t) => q.post("/transaction", t),
|
|
1308
|
+
putTransaction: async (t) => q.put("/transaction", t),
|
|
1308
1309
|
putTransactionReturn: async (t) => {
|
|
1309
1310
|
const e = { id: t };
|
|
1310
|
-
return
|
|
1311
|
+
return q.put("/transaction/return", e);
|
|
1311
1312
|
},
|
|
1312
1313
|
putCancelReport: async (t) => {
|
|
1313
1314
|
const e = { id: t };
|
|
1314
|
-
return
|
|
1315
|
+
return q.put("/transaction/request/cancel-report", e);
|
|
1315
1316
|
}
|
|
1316
|
-
},
|
|
1317
|
+
}, B = s({
|
|
1317
1318
|
prefix: "/disposal-go/v2/"
|
|
1318
|
-
}),
|
|
1319
|
-
getReportedDisposal: (t) =>
|
|
1320
|
-
getReportedDisposalOptions: (t) =>
|
|
1321
|
-
postReportDisposal: (t) =>
|
|
1322
|
-
deleteCancelReport: (t) => (t.isFromDisposal = "false",
|
|
1323
|
-
deleteDeclineReport: (t) => (t.isFromDisposal = "true",
|
|
1324
|
-
getDisposalHistory: (t, e) =>
|
|
1325
|
-
getHistoryByAssetOptions: (t) =>
|
|
1319
|
+
}), Fe = {
|
|
1320
|
+
getReportedDisposal: (t) => B.get("/report", { params: t }),
|
|
1321
|
+
getReportedDisposalOptions: (t) => B.get("/report/options", { params: t }),
|
|
1322
|
+
postReportDisposal: (t) => B.post("/report", t),
|
|
1323
|
+
deleteCancelReport: (t) => (t.isFromDisposal = "false", B.delete("/cancel-report", { params: t })),
|
|
1324
|
+
deleteDeclineReport: (t) => (t.isFromDisposal = "true", B.delete("/report/cancel-report", { params: t })),
|
|
1325
|
+
getDisposalHistory: (t, e) => B.get(`/disposal/history${t}`, { params: e }),
|
|
1326
|
+
getHistoryByAssetOptions: (t) => B.get("/disposal/history/by-asset/options", { params: t })
|
|
1326
1327
|
}, S = s({
|
|
1327
1328
|
prefix: "/report/v2/reports"
|
|
1328
|
-
}),
|
|
1329
|
+
}), Ne = {
|
|
1329
1330
|
getReportList: (t) => S.get("/schedules", { params: t }),
|
|
1330
1331
|
getReportSchedule: (t) => S.get("/schedules/" + t),
|
|
1331
1332
|
getUniqueScheduleName: (t) => S.get("/schedules/unique-name", { params: { name: t } }),
|
|
@@ -1336,70 +1337,84 @@ const St = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1336
1337
|
postCreateSchedule: (t) => S.post("/schedules/create", t),
|
|
1337
1338
|
postDownloadReport: (t) => S.post("/download", t, { responseType: "arraybuffer" }),
|
|
1338
1339
|
postGenerateReport: (t) => S.post("/generate", t)
|
|
1340
|
+
}, f = s({
|
|
1341
|
+
prefix: "/report-go/v2/reports"
|
|
1342
|
+
}), Me = {
|
|
1343
|
+
getReportList: (t) => f.get("/schedules", { params: t }),
|
|
1344
|
+
getReportSchedule: (t) => f.get("/schedules/" + t),
|
|
1345
|
+
getUniqueScheduleName: (t) => f.get("/schedules/unique-name", { params: { name: t } }),
|
|
1346
|
+
getFilterOptions: (t) => f.get("/schedules/options", { params: t }),
|
|
1347
|
+
putSetActive: (t) => f.put("/schedules/activation", t),
|
|
1348
|
+
putEditSchedule: (t) => f.put("/schedules/" + t._id, t),
|
|
1349
|
+
deleteReports: (t) => f.delete("/schedules", { params: { reportIds: t } }),
|
|
1350
|
+
postCreateSchedule: (t) => f.post("/schedules/create", t),
|
|
1351
|
+
postDownloadReport: (t) => f.post("/download", t, { responseType: "arraybuffer" }),
|
|
1352
|
+
postGenerateReport: (t) => f.post("/generate", t)
|
|
1339
1353
|
};
|
|
1340
1354
|
export {
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1355
|
+
se as AliasCodeServices,
|
|
1356
|
+
ne as AliasCodeServicesGo,
|
|
1357
|
+
Pe as AssetNameServices,
|
|
1358
|
+
Mt as AssetServices,
|
|
1359
|
+
Ht as AssetServicesGo,
|
|
1360
|
+
Te as AssignmentServices,
|
|
1361
|
+
Ie as AssignmentServicesGo,
|
|
1362
|
+
Ge as AuditServices,
|
|
1363
|
+
he as AuthServices,
|
|
1350
1364
|
Oe as BorrowServices,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
$e as
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
Xt as
|
|
1393
|
-
|
|
1394
|
-
Wt as
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
zt as
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1365
|
+
Ee as BorrowServicesGo,
|
|
1366
|
+
ce as BrandServices,
|
|
1367
|
+
Ft as ChangelogServices,
|
|
1368
|
+
ge as CountryStateServices,
|
|
1369
|
+
ie as CustomFieldServices,
|
|
1370
|
+
ue as CustomFieldServicesGo,
|
|
1371
|
+
Ce as DamageServices,
|
|
1372
|
+
Re as DamageServicesGo,
|
|
1373
|
+
re as DashboardServices,
|
|
1374
|
+
qe as DisposalServices,
|
|
1375
|
+
Fe as DisposalServicesGo,
|
|
1376
|
+
le as FileManagerServices,
|
|
1377
|
+
de as FileManagerServicesGo,
|
|
1378
|
+
oe as GeneralSettingsServices,
|
|
1379
|
+
ae as GeneralSettingsServicesGo,
|
|
1380
|
+
kt as GroupCategoryServices,
|
|
1381
|
+
_t as GroupCategoryServicesGo,
|
|
1382
|
+
ee as I18nService,
|
|
1383
|
+
Se as ImportServices,
|
|
1384
|
+
fe as ImportServicesGo,
|
|
1385
|
+
Ue as LicenseServices,
|
|
1386
|
+
Le as LicenseServicesGo,
|
|
1387
|
+
Nt as LogServicesGo,
|
|
1388
|
+
Vt as MissingServices,
|
|
1389
|
+
jt as MissingServicesGo,
|
|
1390
|
+
ke as ModelTypeServices,
|
|
1391
|
+
De as MyAssetServices,
|
|
1392
|
+
Et as NotificationApprovalServices,
|
|
1393
|
+
Qt as NotificationServices,
|
|
1394
|
+
Yt as NotificationServicesGo,
|
|
1395
|
+
ve as OpenAPIServices,
|
|
1396
|
+
ye as OpenAPIServicesGo,
|
|
1397
|
+
Ae as ReaderServices,
|
|
1398
|
+
be as RepairServices,
|
|
1399
|
+
Ne as ReportServices,
|
|
1400
|
+
Me as ReportServicesGo,
|
|
1401
|
+
$e as RoleServices,
|
|
1402
|
+
me as RoleServicesGo,
|
|
1403
|
+
xe as RoutineServices,
|
|
1404
|
+
pe as ServiceCenterServices,
|
|
1405
|
+
Jt as SessionLogServices,
|
|
1406
|
+
Xt as SubUserServices,
|
|
1407
|
+
te as SubUserServicesGo,
|
|
1408
|
+
Wt as TAGServices,
|
|
1409
|
+
Kt as TrackingServices,
|
|
1410
|
+
_e as TransactionSettingServices,
|
|
1411
|
+
we as TransferServices,
|
|
1412
|
+
Be as TransferServicesGo,
|
|
1413
|
+
zt as UserServices,
|
|
1414
|
+
Zt as UserServicesGo,
|
|
1415
|
+
xt as getAssetsFile,
|
|
1416
|
+
E as getBaseURL,
|
|
1417
|
+
Gt as getImageURL,
|
|
1418
|
+
Bt as getImageURLGo,
|
|
1419
|
+
qt as queryParamsStringfy
|
|
1405
1420
|
};
|