@tagsamurai/fats-api-services 1.0.0-alpha.211 → 1.0.0-alpha.213
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 +422 -419
- package/api-services.system.js +1 -1
- package/main.d.ts +2 -1
- package/package.json +1 -1
- package/src/dto/globalAuth.dto.d.ts +18 -0
- package/src/services/{oldAuth.service.d.ts → globalAuth.service.d.ts} +3 -6
- package/src/services/moduleAuth.service.d.ts +19 -0
- package/src/dto/oldAuth.dto.d.ts +0 -12
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
|
|
1
|
+
import yt from "axios";
|
|
2
|
+
const Pt = { 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" }, N = (t = "APP_API") => Pt["VITE_" + t], s = (t = {}, e = !1) => {
|
|
3
|
+
const { env: r = "APP_API", prefix: a = "", headers: m = {}, ...M } = t, St = `${N(r)}${a}`, pt = JSON.parse(localStorage.getItem("user") ?? "{}"), ft = pt.jwt ?? pt.token ?? "";
|
|
4
|
+
return yt.create({
|
|
5
5
|
...M,
|
|
6
|
-
baseURL:
|
|
7
|
-
headers: e ?
|
|
6
|
+
baseURL: St,
|
|
7
|
+
headers: e ? m : {
|
|
8
8
|
"Content-Type": "application/json",
|
|
9
|
-
Authorization: `Bearer ${
|
|
10
|
-
...
|
|
9
|
+
Authorization: `Bearer ${ft}`,
|
|
10
|
+
...m
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
},
|
|
13
|
+
}, kt = (t) => {
|
|
14
14
|
if (!t || typeof t == "string")
|
|
15
15
|
return;
|
|
16
16
|
const e = {};
|
|
@@ -21,133 +21,132 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
21
21
|
[r]: t[r]
|
|
22
22
|
});
|
|
23
23
|
}), e;
|
|
24
|
-
},
|
|
24
|
+
}, Et = (t, e, r) => {
|
|
25
25
|
if (!t) return;
|
|
26
|
-
const a = N("APP_API"),
|
|
26
|
+
const a = N("APP_API"), m = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
|
|
27
27
|
if (e || r) {
|
|
28
28
|
const M = new URLSearchParams();
|
|
29
|
-
return e && (M.set("width", e.toString()), M.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${
|
|
29
|
+
return e && (M.set("width", e.toString()), M.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${m}?${M.toString()}`;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return m;
|
|
32
32
|
}, _t = (t) => {
|
|
33
33
|
if (!t) return;
|
|
34
|
-
const e = N(
|
|
34
|
+
const e = N();
|
|
35
35
|
return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
|
|
36
|
-
},
|
|
36
|
+
}, Ft = async (t, e = "excel") => await fetch(
|
|
37
37
|
`${N("APP_ASSETS_URL")}/${e}/${t}`
|
|
38
|
-
),
|
|
39
|
-
prefix: "/settings-attribute/v2"
|
|
40
|
-
|
|
41
|
-
}), Ft = {
|
|
38
|
+
), C = s({
|
|
39
|
+
prefix: "/settings-attribute/v2"
|
|
40
|
+
}), Nt = {
|
|
42
41
|
getGroupCategory: (t, e) => {
|
|
43
42
|
const r = t === "category" ? t : "groups";
|
|
44
|
-
return
|
|
43
|
+
return C.get(`/${r}/tree`, { params: e });
|
|
45
44
|
},
|
|
46
45
|
getGroupCategoryList: (t, e, r) => {
|
|
47
46
|
const a = t === "category" ? t : "groups";
|
|
48
|
-
return
|
|
47
|
+
return C.get(`/${a}/${e}`, { params: r });
|
|
49
48
|
},
|
|
50
49
|
getNames: (t) => {
|
|
51
50
|
const e = t === "category" ? t : "groups";
|
|
52
|
-
return
|
|
51
|
+
return C.get(`/${e}/names`);
|
|
53
52
|
},
|
|
54
53
|
getCodes: (t) => {
|
|
55
54
|
const e = t === "category" ? t : "groups";
|
|
56
|
-
return
|
|
55
|
+
return C.get(`/${e}/codes`);
|
|
57
56
|
},
|
|
58
57
|
postCreateGroupCategory: (t, e) => {
|
|
59
58
|
const r = t === "category" ? t : "groups";
|
|
60
|
-
return
|
|
59
|
+
return C.post(`/${r}`, e);
|
|
61
60
|
},
|
|
62
61
|
putEditGroupCategory: (t, e, r) => {
|
|
63
62
|
const a = t === "category" ? t : "groups";
|
|
64
|
-
return
|
|
63
|
+
return C.put(`/${a}/${r}`, e);
|
|
65
64
|
},
|
|
66
|
-
putMoveGroup: (t, e) =>
|
|
67
|
-
putEditBulkGroups: async (t) =>
|
|
65
|
+
putMoveGroup: (t, e) => C.put(`/groups/${e}/move-group`, t),
|
|
66
|
+
putEditBulkGroups: async (t) => C.put("/groups/bulk", t),
|
|
68
67
|
deleteGroupCategory: (t, e, r) => {
|
|
69
68
|
const a = t === "category" ? t : "groups";
|
|
70
|
-
return
|
|
69
|
+
return C.delete(`/${a}/${r}`, { data: e });
|
|
71
70
|
}
|
|
72
|
-
},
|
|
71
|
+
}, h = s({
|
|
73
72
|
prefix: "/settings-attribute-go/v2"
|
|
74
|
-
}),
|
|
73
|
+
}), Mt = {
|
|
75
74
|
getGroupCategory: (t, e) => {
|
|
76
75
|
const r = t === "category" ? t : "groups";
|
|
77
|
-
return
|
|
76
|
+
return h.get(`/${r}/tree`, { params: e });
|
|
78
77
|
},
|
|
79
78
|
getGroupCategoryList: (t, e) => {
|
|
80
79
|
const r = t === "category" ? t : "groups";
|
|
81
|
-
return
|
|
80
|
+
return h.get(`/${r}/${e}`);
|
|
82
81
|
},
|
|
83
82
|
getNames: (t) => {
|
|
84
83
|
const e = t === "category" ? t : "groups";
|
|
85
|
-
return
|
|
84
|
+
return h.get(`/${e}/names`);
|
|
86
85
|
},
|
|
87
86
|
getCodes: (t) => {
|
|
88
87
|
const e = t === "category" ? t : "groups";
|
|
89
|
-
return
|
|
88
|
+
return h.get(`/${e}/codes`);
|
|
90
89
|
},
|
|
91
90
|
postCreateGroupCategory: (t, e) => {
|
|
92
91
|
const r = t === "category" ? t : "groups";
|
|
93
|
-
return
|
|
92
|
+
return h.post(`/${r}`, e);
|
|
94
93
|
},
|
|
95
94
|
putEditGroupCategory: (t, e, r) => {
|
|
96
95
|
const a = t === "category" ? t : "groups";
|
|
97
|
-
return
|
|
96
|
+
return h.put(`/${a}/${r}`, e);
|
|
98
97
|
},
|
|
99
98
|
deleteGroupCategory: (t, e, r) => {
|
|
100
99
|
const a = t === "category" ? t : "groups";
|
|
101
|
-
return
|
|
100
|
+
return h.delete(`/${a}/${r}`, { data: e });
|
|
102
101
|
}
|
|
103
|
-
},
|
|
102
|
+
}, Tt = s({
|
|
104
103
|
prefix: "/v2",
|
|
105
104
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
106
|
-
}),
|
|
107
|
-
getTotalApprovals: () =>
|
|
108
|
-
},
|
|
105
|
+
}), Ht = {
|
|
106
|
+
getTotalApprovals: () => Tt.get("/approval/count")
|
|
107
|
+
}, R = s({
|
|
109
108
|
prefix: "/v2",
|
|
110
109
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
111
|
-
}),
|
|
112
|
-
getActionLog: (t) =>
|
|
113
|
-
getActionLogOption: (t) =>
|
|
114
|
-
getSessionLogList: (t) =>
|
|
115
|
-
getUserDetailSystemLogList: (t) =>
|
|
116
|
-
getUserDetailSystemLogOption: (t) =>
|
|
110
|
+
}), Vt = {
|
|
111
|
+
getActionLog: (t) => R.get("/change-log", { params: t }),
|
|
112
|
+
getActionLogOption: (t) => R.get("/change-log/options", { params: t }),
|
|
113
|
+
getSessionLogList: (t) => R.get("/session-log", { params: t }),
|
|
114
|
+
getUserDetailSystemLogList: (t) => R.get("/change-log", { params: t }),
|
|
115
|
+
getUserDetailSystemLogOption: (t) => R.get("/change-log/options", { params: t }),
|
|
117
116
|
/**
|
|
118
117
|
* Retrieves the transaction log.
|
|
119
118
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
120
119
|
*/
|
|
121
|
-
getTransactionLog: (t) =>
|
|
120
|
+
getTransactionLog: (t) => R.get("/transaction-log", { params: t }),
|
|
122
121
|
/**
|
|
123
122
|
* Retrieves the transaction log options.
|
|
124
123
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
125
124
|
*/
|
|
126
|
-
getTransactionLogOption: (t) =>
|
|
127
|
-
postScanLog: (t) =>
|
|
128
|
-
},
|
|
125
|
+
getTransactionLogOption: (t) => R.get("/transaction-log/options", { params: t }),
|
|
126
|
+
postScanLog: (t) => R.post("/transaction-log/scan-log", t)
|
|
127
|
+
}, y = s({
|
|
129
128
|
prefix: "/utility/v2"
|
|
130
|
-
}),
|
|
131
|
-
getActionLog: (t) =>
|
|
132
|
-
getActionLogOption: (t) =>
|
|
133
|
-
getSessionLogList: (t) =>
|
|
134
|
-
getTransactionLog: (t) =>
|
|
129
|
+
}), jt = {
|
|
130
|
+
getActionLog: (t) => y.get("/change-log", { params: t }),
|
|
131
|
+
getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
|
|
132
|
+
getSessionLogList: (t) => y.get("/session-log", { params: t }),
|
|
133
|
+
getTransactionLog: (t) => y.get("/transaction-log", { params: t }),
|
|
135
134
|
/**
|
|
136
135
|
* Retrieves the transaction log options.
|
|
137
136
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
138
137
|
*/
|
|
139
|
-
getTransactionLogOption: (t) =>
|
|
140
|
-
getUserDetailSystemLogList: (t) =>
|
|
141
|
-
getUserDetailSystemLogOption: (t) =>
|
|
142
|
-
getUserDetailUserLogBorrowingList: (t, e) =>
|
|
143
|
-
getUserDetailUserLogAssignmentList: (t, e) =>
|
|
144
|
-
getUserDetailUserLogBorrowingOption: (t, e) =>
|
|
145
|
-
getUserDetailUserLogAssignmentOption: (t, e) =>
|
|
138
|
+
getTransactionLogOption: (t) => y.get("/transaction-log/options", { params: t }),
|
|
139
|
+
getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
|
|
140
|
+
getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
|
|
141
|
+
getUserDetailUserLogBorrowingList: (t, e) => y.get(`/borrowing-log/${t}`, { params: e }),
|
|
142
|
+
getUserDetailUserLogAssignmentList: (t, e) => y.get(`/assignment-log/${t}`, { params: e }),
|
|
143
|
+
getUserDetailUserLogBorrowingOption: (t, e) => y.get(`/borrowing-log/${t}/options`, { params: e }),
|
|
144
|
+
getUserDetailUserLogAssignmentOption: (t, e) => y.get(`/assignment-log/${t}/options`, { params: e })
|
|
146
145
|
}, p = s({
|
|
147
146
|
prefix: "/assets/v2/assets"
|
|
148
147
|
}), K = s({
|
|
149
148
|
prefix: "/assets/v2/attachment"
|
|
150
|
-
}),
|
|
149
|
+
}), Qt = {
|
|
151
150
|
getScanTag: (t) => p.get("/scan", { params: { tag: t } }),
|
|
152
151
|
getAllAssets: (t) => p.get("/", { params: t }),
|
|
153
152
|
getAllAssetsOptions: (t) => p.get("/options", { params: t }),
|
|
@@ -207,7 +206,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
207
206
|
deleteAttachment: (t) => K.delete("/bulk", { params: t })
|
|
208
207
|
}, g = s({
|
|
209
208
|
prefix: "/assets-go/v2/assets"
|
|
210
|
-
}),
|
|
209
|
+
}), Yt = {
|
|
211
210
|
getAllAssets: (t) => g.get("/", { params: t }),
|
|
212
211
|
getAllAssetsOptions: (t) => g.get("/options", { params: t }),
|
|
213
212
|
getOptions: (t, e) => g.get(t ? `/${t}/options` : "/options", {
|
|
@@ -253,7 +252,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
253
252
|
deleteAttachment: (t) => g.delete("/attachment/bulk", { params: t })
|
|
254
253
|
}, H = s({
|
|
255
254
|
prefix: "/tracking/v2/missing"
|
|
256
|
-
}),
|
|
255
|
+
}), Jt = {
|
|
257
256
|
/**
|
|
258
257
|
* To mark as found.
|
|
259
258
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
@@ -265,31 +264,31 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
265
264
|
getOptions: (t) => H.get("/options", { params: t })
|
|
266
265
|
}, V = s({
|
|
267
266
|
prefix: "/missing-tracking/v2"
|
|
268
|
-
}),
|
|
267
|
+
}), Wt = {
|
|
269
268
|
putFoundAsset: (t) => V.put("/found", t),
|
|
270
269
|
putReportMissing: (t, e) => V.put(`/${t}/report-missing`, e),
|
|
271
270
|
getData: (t) => V.get("/", { params: t }),
|
|
272
271
|
getDataOptions: (t) => V.get("/options", { params: t }),
|
|
273
272
|
getDetail: (t) => V.get(`/${t}`)
|
|
274
|
-
},
|
|
273
|
+
}, gt = s({
|
|
275
274
|
prefix: "/v2/notification",
|
|
276
275
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
277
|
-
}),
|
|
276
|
+
}), Kt = {
|
|
277
|
+
getNotifications: (t) => gt.get("/", { params: t }),
|
|
278
|
+
readNotification: (t) => gt.put(`/${t}`)
|
|
279
|
+
}, ct = s({
|
|
280
|
+
prefix: "/utility/v2/notification"
|
|
281
|
+
}), zt = {
|
|
278
282
|
getNotifications: (t) => ct.get("/", { params: t }),
|
|
279
283
|
readNotification: (t) => ct.put(`/${t}`)
|
|
280
|
-
},
|
|
281
|
-
prefix: "/utility/v2/notification"
|
|
282
|
-
}), Kt = {
|
|
283
|
-
getNotifications: (t) => lt.get("/", { params: t }),
|
|
284
|
-
readNotification: (t) => lt.put(`/${t}`)
|
|
285
|
-
}, Rt = s({
|
|
284
|
+
}, Ct = s({
|
|
286
285
|
prefix: "/v2/session-log",
|
|
287
286
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
288
|
-
}),
|
|
289
|
-
postLogout: () =>
|
|
287
|
+
}), Zt = {
|
|
288
|
+
postLogout: () => Ct.post("/logout")
|
|
290
289
|
}, i = s({
|
|
291
290
|
prefix: "/tag/v2"
|
|
292
|
-
}),
|
|
291
|
+
}), Xt = {
|
|
293
292
|
getScanQR: (t) => i.get("/qr", { params: { tag: t } }),
|
|
294
293
|
getScanRFID: (t) => i.get("/rfid", { params: { tag: t } }),
|
|
295
294
|
getRFIDQRTAG: (t) => i.get("/rfid-qr/scan", { params: t }),
|
|
@@ -329,7 +328,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
329
328
|
putDeclineReport: (t, e) => i.put(`/report/decline-report/${e}`, t)
|
|
330
329
|
}, z = s({
|
|
331
330
|
prefix: "/tracking/v2/tracking"
|
|
332
|
-
}),
|
|
331
|
+
}), te = {
|
|
333
332
|
getTrackingDetail: (t) => z.get(`/${t}`),
|
|
334
333
|
putFoundAsset: (t, e, r) => {
|
|
335
334
|
const a = {
|
|
@@ -338,13 +337,13 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
338
337
|
serialNumber: r,
|
|
339
338
|
type: "Global"
|
|
340
339
|
};
|
|
341
|
-
return z.put("/
|
|
340
|
+
return z.put("/scan", void 0, { params: a });
|
|
342
341
|
},
|
|
343
342
|
putReportPermanentlyMissing: (t, e) => z.put(`/report-permanently-missing/${t}`, e),
|
|
344
343
|
putMoveBack: (t) => z.put("/tracking/move-back", t)
|
|
345
344
|
}, u = s({
|
|
346
345
|
prefix: "/settings-user-role/v2"
|
|
347
|
-
}),
|
|
346
|
+
}), ee = {
|
|
348
347
|
reLogin: (t) => u.post("/auth/login", t),
|
|
349
348
|
changePassword: (t) => u.put("/users/change-password", t),
|
|
350
349
|
/**
|
|
@@ -395,7 +394,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
395
394
|
})
|
|
396
395
|
}, l = s({
|
|
397
396
|
prefix: "/settings-user-role-go/v2"
|
|
398
|
-
}),
|
|
397
|
+
}), re = {
|
|
399
398
|
/**
|
|
400
399
|
* Retrieves the user list as dropdown options.
|
|
401
400
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
@@ -430,58 +429,58 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
430
429
|
getUserDetailUserAssetAssignedList: (t, e) => l.get(`/users/${t}/assigned-asset`, { params: e }),
|
|
431
430
|
getUserDetailUserAssetBorrowedOption: (t, e) => l.get(`/users/${t}/borrowed-asset/option`, { params: e }),
|
|
432
431
|
getUserDetailUserAssetAssignedOption: (t, e) => l.get(`/users/${t}/assigned-asset/option`, { params: e })
|
|
433
|
-
},
|
|
432
|
+
}, O = s({
|
|
434
433
|
prefix: "/settings-user-role/v2/sub-users"
|
|
435
|
-
}),
|
|
434
|
+
}), se = {
|
|
436
435
|
// Sub User
|
|
437
|
-
getSubUserList: (t, e) =>
|
|
438
|
-
getSubUserOptions: (t, e) =>
|
|
436
|
+
getSubUserList: (t, e) => O.get(`/${t}`, { params: e }),
|
|
437
|
+
getSubUserOptions: (t, e) => O.get(`/${t}/option`, { params: e }),
|
|
439
438
|
postCreateSubUser: (t, e) => {
|
|
440
439
|
const r = { "Content-Type": "multipart/form-data" };
|
|
441
|
-
return
|
|
440
|
+
return O.post(`/${t}`, e, { headers: r });
|
|
442
441
|
},
|
|
443
|
-
putSubUserSetActiveBulk: (t) =>
|
|
444
|
-
deleteSubUser: (t) =>
|
|
442
|
+
putSubUserSetActiveBulk: (t) => O.put("/set-active-bulk", t),
|
|
443
|
+
deleteSubUser: (t) => O.delete("/bulk", { data: { subUserIds: t } }),
|
|
445
444
|
putEditSubUser: (t, e) => {
|
|
446
445
|
const r = { "Content-Type": "multipart/form-data" };
|
|
447
|
-
return
|
|
446
|
+
return O.put(`/${t}`, e, { headers: r });
|
|
448
447
|
},
|
|
449
|
-
getBorrowedAsset: (t, e) =>
|
|
450
|
-
getBorrowedAssetOptions: (t, e) =>
|
|
451
|
-
},
|
|
448
|
+
getBorrowedAsset: (t, e) => O.get(`/${t}/borrowed-asset`, { params: e }),
|
|
449
|
+
getBorrowedAssetOptions: (t, e) => O.get(`/${t}/borrowed-asset/options`, { params: e })
|
|
450
|
+
}, f = s({
|
|
452
451
|
prefix: "/settings-user-role-go/v2/users"
|
|
453
|
-
}),
|
|
452
|
+
}), ne = {
|
|
454
453
|
// Sub User
|
|
455
|
-
getSubUserList: (t, e) =>
|
|
456
|
-
getSubUserOptions: (t, e) =>
|
|
454
|
+
getSubUserList: (t, e) => f.get(`/${t}/sub-users`, { params: e }),
|
|
455
|
+
getSubUserOptions: (t, e) => f.get(`/${t}/sub-users/option`, { params: e }),
|
|
457
456
|
postCreateSubUser: (t, e) => {
|
|
458
457
|
const r = { "Content-Type": "multipart/form-data" };
|
|
459
|
-
return
|
|
458
|
+
return f.post(`/${t}/sub-users`, e, { headers: r });
|
|
460
459
|
},
|
|
461
|
-
putSubUserSetActiveBulk: (t, e) =>
|
|
462
|
-
deleteSubUser: (t, e) =>
|
|
460
|
+
putSubUserSetActiveBulk: (t, e) => f.put(`/${t}/sub-users/set-active-bulk`, e),
|
|
461
|
+
deleteSubUser: (t, e) => f.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
|
|
463
462
|
putEditSubUser: (t, e, r) => {
|
|
464
463
|
const a = { "Content-Type": "multipart/form-data" };
|
|
465
|
-
return
|
|
464
|
+
return f.put(`/${t}/sub-users/${e}`, r, {
|
|
466
465
|
headers: a
|
|
467
466
|
});
|
|
468
467
|
},
|
|
469
|
-
getBorrowedAsset: (t, e, r) =>
|
|
468
|
+
getBorrowedAsset: (t, e, r) => f.get(`/${t}/sub-users/${e}/borrowed-asset`, {
|
|
470
469
|
params: r
|
|
471
470
|
}),
|
|
472
|
-
getBorrowedAssetOptions: (t, e, r) =>
|
|
471
|
+
getBorrowedAssetOptions: (t, e, r) => f.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
|
|
473
472
|
params: r
|
|
474
473
|
}),
|
|
475
|
-
getAssignedAsset: (t, e, r) =>
|
|
474
|
+
getAssignedAsset: (t, e, r) => f.get(`/${t}/sub-users/${e}/assigned-asset`, {
|
|
476
475
|
params: r
|
|
477
476
|
}),
|
|
478
|
-
getAssignedAssetOptions: (t, e, r) =>
|
|
477
|
+
getAssignedAssetOptions: (t, e, r) => f.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
|
|
479
478
|
params: r
|
|
480
479
|
})
|
|
481
480
|
}, Z = s({
|
|
482
481
|
env: "APP_ADMIN_API",
|
|
483
482
|
prefix: "/settings-attribute/languages"
|
|
484
|
-
}),
|
|
483
|
+
}), oe = {
|
|
485
484
|
/**
|
|
486
485
|
* Fetch all translation messages for a specific locale.
|
|
487
486
|
* @param locale The locale code (e.g., 'en', 'id').
|
|
@@ -522,57 +521,57 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
522
521
|
});
|
|
523
522
|
return r.data.translations[t];
|
|
524
523
|
}
|
|
525
|
-
},
|
|
524
|
+
}, lt = s({
|
|
526
525
|
prefix: "/dashboard/v2/dashboard"
|
|
527
|
-
}),
|
|
528
|
-
getLatestTask: (t) =>
|
|
529
|
-
getSummary: (t) =>
|
|
526
|
+
}), ae = {
|
|
527
|
+
getLatestTask: (t) => lt.get("/latest-task", { params: t }),
|
|
528
|
+
getSummary: (t) => lt.get("/summary", { params: t })
|
|
530
529
|
}, st = s({
|
|
531
530
|
prefix: "/alias-code/api/alias-code"
|
|
532
|
-
}),
|
|
531
|
+
}), ie = {
|
|
533
532
|
getAliasCode: () => st.get("/"),
|
|
534
533
|
postAliasCode: (t) => st.post("/", t),
|
|
535
534
|
getAliasCodeList: (t) => st.get(`/${t.object}/code-list`, { params: t })
|
|
536
535
|
}, nt = s({
|
|
537
536
|
prefix: "/settings-attribute-go/v2/alias-code"
|
|
538
|
-
}),
|
|
537
|
+
}), ue = {
|
|
539
538
|
getAliasCode: () => nt.get("/"),
|
|
540
539
|
postAliasCode: (t) => nt.post("/", t),
|
|
541
540
|
getAliasCodeList: (t) => nt.get(`/${t.object}/code-list`, { params: t })
|
|
542
|
-
},
|
|
541
|
+
}, dt = s({
|
|
543
542
|
prefix: "/settings-attribute/v2/general-settings"
|
|
544
|
-
}),
|
|
545
|
-
getGeneralSettings: () =>
|
|
546
|
-
putUpdateGeneralSettings: (t) =>
|
|
543
|
+
}), pe = {
|
|
544
|
+
getGeneralSettings: () => dt.get("/"),
|
|
545
|
+
putUpdateGeneralSettings: (t) => dt.put("/", t)
|
|
547
546
|
}, $t = s({
|
|
548
547
|
prefix: "/settings-attribute-go/v2/general-settings"
|
|
549
|
-
}),
|
|
548
|
+
}), ge = {
|
|
550
549
|
getGeneralSettings: () => $t.get("/"),
|
|
551
550
|
putUpdateGeneralSettings: (t) => $t.put("/", t)
|
|
552
|
-
},
|
|
551
|
+
}, U = s({
|
|
553
552
|
prefix: "/settings-attribute/v2/custom-field"
|
|
554
|
-
}), ge = {
|
|
555
|
-
getCustomField: async (t) => D.get("/", { params: t }),
|
|
556
|
-
getCustomFieldsByCategory: (t, e) => D.get(`/${t}`, { params: e }),
|
|
557
|
-
getOptions: async (t) => D.get("/options", { params: t }),
|
|
558
|
-
postCreateCustomField: async (t, e) => D.post("/", e, { params: t }),
|
|
559
|
-
putEditCustomField: async (t, e, r) => D.put(`/${r}`, e, { params: t }),
|
|
560
|
-
putChangeStatus: async (t, e) => D.put("/bulk", e, { params: t }),
|
|
561
|
-
deleteCustomField: async (t) => D.delete("/bulk", { data: t }),
|
|
562
|
-
getUsedCustomFields: async () => D.get("/used-by-assets")
|
|
563
|
-
}, h = s({
|
|
564
|
-
prefix: "/settings-attribute-go/v2/custom-field"
|
|
565
553
|
}), ce = {
|
|
566
|
-
getCustomField: async (t) =>
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
554
|
+
getCustomField: async (t) => U.get("/", { params: t }),
|
|
555
|
+
getCustomFieldsByCategory: (t, e) => U.get(`/${t}`, { params: e }),
|
|
556
|
+
getOptions: async (t) => U.get("/options", { params: t }),
|
|
557
|
+
postCreateCustomField: async (t, e) => U.post("/", e, { params: t }),
|
|
558
|
+
putEditCustomField: async (t, e, r) => U.put(`/${r}`, e, { params: t }),
|
|
559
|
+
putChangeStatus: async (t, e) => U.put("/bulk", e, { params: t }),
|
|
560
|
+
deleteCustomField: async (t) => U.delete("/bulk", { data: t }),
|
|
561
|
+
getUsedCustomFields: async () => U.get("/used-by-assets")
|
|
562
|
+
}, w = s({
|
|
563
|
+
prefix: "/settings-attribute-go/v2/custom-field"
|
|
564
|
+
}), le = {
|
|
565
|
+
getCustomField: async (t) => w.get("/", { params: t }),
|
|
566
|
+
getOptions: async (t) => w.get("/options", { params: t }),
|
|
567
|
+
postCreateCustomField: async (t, e) => w.post("/", e, { params: t }),
|
|
568
|
+
putEditCustomField: async (t, e, r) => w.put(`/${r}`, e, { params: t }),
|
|
569
|
+
putChangeStatus: async (t, e) => w.put("/bulk", e, { params: t }),
|
|
570
|
+
deleteCustomField: async (t) => w.delete("/bulk", { params: t }),
|
|
571
|
+
getUsedCustomFields: async () => w.get("/used-by-assets")
|
|
573
572
|
}, ot = ({ headers: t = {}, params: e = {} } = {}) => {
|
|
574
573
|
const r = N("APP_COUNTRY_STATE_API"), a = N("APP_COUNTRY_STATE_API_KEY");
|
|
575
|
-
return
|
|
574
|
+
return yt.create({
|
|
576
575
|
baseURL: `${r}/v1`,
|
|
577
576
|
headers: {
|
|
578
577
|
"Content-type": "application/json",
|
|
@@ -581,32 +580,32 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
581
580
|
},
|
|
582
581
|
params: e
|
|
583
582
|
});
|
|
584
|
-
},
|
|
583
|
+
}, de = {
|
|
585
584
|
getCountry: () => ot().get("/countries"),
|
|
586
585
|
getState: (t) => ot().get(`/countries/${t}/states`),
|
|
587
586
|
getCity: (t, e) => ot().get(`/countries/${t}/states/${e}/cities`)
|
|
588
|
-
},
|
|
587
|
+
}, S = s({
|
|
589
588
|
prefix: "/routine/v2"
|
|
590
|
-
}),
|
|
591
|
-
getList: (t) =>
|
|
592
|
-
postList: (t) =>
|
|
593
|
-
putList: (t, e) =>
|
|
594
|
-
putActivate: (t) =>
|
|
595
|
-
getDetailList: (t) =>
|
|
596
|
-
getListOptions: (t) =>
|
|
597
|
-
deleteList: (t) =>
|
|
589
|
+
}), $e = {
|
|
590
|
+
getList: (t) => S.get("/service-center", { params: t }),
|
|
591
|
+
postList: (t) => S.post("/service-center", t),
|
|
592
|
+
putList: (t, e) => S.put(`/service-center/${t}`, e),
|
|
593
|
+
putActivate: (t) => S.put("/service-center/bulk", t),
|
|
594
|
+
getDetailList: (t) => S.get(`/service-center/${t}`),
|
|
595
|
+
getListOptions: (t) => S.get("/service-center/options", { params: t }),
|
|
596
|
+
deleteList: (t) => S.delete("/service-center", { params: t }),
|
|
598
597
|
// Activities
|
|
599
|
-
getActivities: (t) =>
|
|
600
|
-
getActivityOptions: (t) =>
|
|
601
|
-
getActivityDetail: (t) =>
|
|
602
|
-
getActivityLog: (t) =>
|
|
603
|
-
},
|
|
598
|
+
getActivities: (t) => S.get("/service-activities", { params: t }),
|
|
599
|
+
getActivityOptions: (t) => S.get("/service-activities/options", { params: t }),
|
|
600
|
+
getActivityDetail: (t) => S.get(`/service-activities/${t}`),
|
|
601
|
+
getActivityLog: (t) => S.get(`/service-activities/${t}/activity-log`)
|
|
602
|
+
}, Dt = s({
|
|
604
603
|
prefix: "/settings-attribute/v2/brands"
|
|
605
604
|
}), Ae = {
|
|
606
|
-
getDropdown: (t) =>
|
|
605
|
+
getDropdown: (t) => Dt.get("/dropdown", { params: t })
|
|
607
606
|
}, k = s({
|
|
608
607
|
prefix: "/file-manager/v2"
|
|
609
|
-
}),
|
|
608
|
+
}), ve = {
|
|
610
609
|
/**
|
|
611
610
|
* Get storage information.
|
|
612
611
|
*
|
|
@@ -653,15 +652,15 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
653
652
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
654
653
|
*/
|
|
655
654
|
deletePermanently: (t, e) => k.delete(`/${t}/delete-permanent`, { params: e })
|
|
656
|
-
},
|
|
655
|
+
}, E = s({
|
|
657
656
|
prefix: "/utility/v2"
|
|
658
|
-
}),
|
|
657
|
+
}), me = {
|
|
659
658
|
/**
|
|
660
659
|
* Get storage information.
|
|
661
660
|
*
|
|
662
661
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
663
662
|
*/
|
|
664
|
-
getStorageInformation: () =>
|
|
663
|
+
getStorageInformation: () => E.get("/files/storage"),
|
|
665
664
|
/**
|
|
666
665
|
* Get file manager data.
|
|
667
666
|
*
|
|
@@ -669,7 +668,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
669
668
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
670
669
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
671
670
|
*/
|
|
672
|
-
getFileManager: (t, e) =>
|
|
671
|
+
getFileManager: (t, e) => E.get(`/${t}`, { params: e }),
|
|
673
672
|
/**
|
|
674
673
|
* Get file manager options.
|
|
675
674
|
*
|
|
@@ -677,7 +676,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
677
676
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
678
677
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
679
678
|
*/
|
|
680
|
-
getFileManagerOption: (t, e) =>
|
|
679
|
+
getFileManagerOption: (t, e) => E.get(`/${t}/options`, { params: e }),
|
|
681
680
|
/**
|
|
682
681
|
* Recover files.
|
|
683
682
|
*
|
|
@@ -685,7 +684,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
685
684
|
* @param {object} body - The body of the request.
|
|
686
685
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
687
686
|
*/
|
|
688
|
-
recoverFiles: (t, e) =>
|
|
687
|
+
recoverFiles: (t, e) => E.put(`/${t}/recover`, e),
|
|
689
688
|
/**
|
|
690
689
|
* Delete files.
|
|
691
690
|
*
|
|
@@ -693,7 +692,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
693
692
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
694
693
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
695
694
|
*/
|
|
696
|
-
deleteFiles: (t, e) =>
|
|
695
|
+
deleteFiles: (t, e) => E.delete(`/${t}`, { params: e }),
|
|
697
696
|
/**
|
|
698
697
|
* Delete files permanently.
|
|
699
698
|
*
|
|
@@ -701,21 +700,21 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
701
700
|
* @param {object} body - The body of the request.
|
|
702
701
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
703
702
|
*/
|
|
704
|
-
deletePermanently: (t, e) =>
|
|
705
|
-
},
|
|
703
|
+
deletePermanently: (t, e) => E.delete(`/${t}/delete-permanent`, { params: e })
|
|
704
|
+
}, I = s({
|
|
706
705
|
prefix: "/iot/v2/reader"
|
|
707
|
-
}),
|
|
708
|
-
getData: (t) =>
|
|
709
|
-
getDataOptions: (t) =>
|
|
710
|
-
getActivityLogData: (t) =>
|
|
711
|
-
getActivityLogOptions: (t) =>
|
|
712
|
-
getDataById: (t) =>
|
|
713
|
-
getChangeLog: (t) =>
|
|
714
|
-
getChangeLogOptions: (t) =>
|
|
715
|
-
putData: (t, e) =>
|
|
706
|
+
}), ye = {
|
|
707
|
+
getData: (t) => I.get("/", { params: t }),
|
|
708
|
+
getDataOptions: (t) => I.get("/options", { params: t }),
|
|
709
|
+
getActivityLogData: (t) => I.get("/activity-log", { params: t }),
|
|
710
|
+
getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
|
|
711
|
+
getDataById: (t) => I.get(`/${t}`),
|
|
712
|
+
getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
|
|
713
|
+
getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
|
|
714
|
+
putData: (t, e) => I.put(`/${t}`, e)
|
|
716
715
|
}, d = s({
|
|
717
716
|
prefix: "/settings-user-role/v2"
|
|
718
|
-
}),
|
|
717
|
+
}), Se = {
|
|
719
718
|
/**
|
|
720
719
|
* Retrieves the transaction role for the given group and transaction name.
|
|
721
720
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
@@ -799,17 +798,17 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
799
798
|
}
|
|
800
799
|
return d.delete("/system-roles", { data: t });
|
|
801
800
|
}
|
|
802
|
-
},
|
|
801
|
+
}, $ = s({
|
|
803
802
|
prefix: "/settings-user-role-go/v2"
|
|
804
|
-
}),
|
|
803
|
+
}), fe = {
|
|
805
804
|
/**
|
|
806
805
|
* Retrieves the transaction role for the given group and transaction name.
|
|
807
806
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
808
807
|
* @param {string} transactionName - The name of the transaction to retrieve the role for.
|
|
809
808
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
810
809
|
*/
|
|
811
|
-
getTransactionRole: (t, e) =>
|
|
812
|
-
getTransactionRoleTypes: (t, e) =>
|
|
810
|
+
getTransactionRole: (t, e) => $.get(`/transaction-roles/${t}/${e}`),
|
|
811
|
+
getTransactionRoleTypes: (t, e) => $.get(`/transaction-roles/${e}/types`, {
|
|
813
812
|
params: { groupKeys: t }
|
|
814
813
|
}),
|
|
815
814
|
/**
|
|
@@ -819,7 +818,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
819
818
|
* @param {UpdateUser} body - The request body containing the updated user information.
|
|
820
819
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
821
820
|
*/
|
|
822
|
-
putUpdateUsers: (t, e, r) =>
|
|
821
|
+
putUpdateUsers: (t, e, r) => $.put(
|
|
823
822
|
`/transaction-roles/${t}/${e}/update-user`,
|
|
824
823
|
r
|
|
825
824
|
),
|
|
@@ -830,7 +829,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
830
829
|
* @param {UserApprovalLevel} body - The request body containing the updated approval level.
|
|
831
830
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
832
831
|
*/
|
|
833
|
-
putUpdateLevel: (t, e, r) =>
|
|
832
|
+
putUpdateLevel: (t, e, r) => $.put(
|
|
834
833
|
`/transaction-roles/${t}/${e}/update-approval-level`,
|
|
835
834
|
r
|
|
836
835
|
),
|
|
@@ -841,53 +840,53 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
841
840
|
* @param {GroupManageByParent} body - The request body containing the updated management settings.
|
|
842
841
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
843
842
|
*/
|
|
844
|
-
putUpdateGroupManage: (t, e, r) =>
|
|
843
|
+
putUpdateGroupManage: (t, e, r) => $.put(
|
|
845
844
|
`/transaction-roles/${t}/${e}/update-manage-by-parent`,
|
|
846
845
|
r
|
|
847
846
|
),
|
|
848
|
-
getUserAssignedSystemRole: (t) =>
|
|
849
|
-
getAssignedUserAmounts: () =>
|
|
847
|
+
getUserAssignedSystemRole: (t) => $.get(`/system-roles/user/${t}`),
|
|
848
|
+
getAssignedUserAmounts: () => $.get("/system-roles/amounts"),
|
|
850
849
|
getPermissionUser: (t, e) => {
|
|
851
850
|
if (["totalControl", "readOnly"].includes(t ?? "")) {
|
|
852
851
|
const r = t === "totalControl" ? "total-control" : "read-only";
|
|
853
|
-
return
|
|
852
|
+
return $.get(`/system-roles/total-control-read-only/${r}`, {
|
|
854
853
|
params: e
|
|
855
854
|
});
|
|
856
855
|
}
|
|
857
|
-
return
|
|
856
|
+
return $.get(`/system-roles/permission/${t}`, { params: e });
|
|
858
857
|
},
|
|
859
858
|
getPermissionUserOptions: (t, e) => {
|
|
860
859
|
if (["totalControl", "readOnly"].includes(t ?? "")) {
|
|
861
860
|
const r = t === "totalControl" ? "total-control" : "read-only";
|
|
862
|
-
return
|
|
861
|
+
return $.get(`/system-roles/total-control-read-only/${r}/options`, {
|
|
863
862
|
params: e
|
|
864
863
|
});
|
|
865
864
|
}
|
|
866
|
-
return
|
|
865
|
+
return $.get(`/system-roles/permission/${t}/options`, {
|
|
867
866
|
params: e
|
|
868
867
|
});
|
|
869
868
|
},
|
|
870
|
-
getUserGroups: (t, e) =>
|
|
869
|
+
getUserGroups: (t, e) => $.get(`/system-roles/permission/${e}/groups`, {
|
|
871
870
|
params: t
|
|
872
871
|
}),
|
|
873
872
|
postAssignUser: (t, e) => {
|
|
874
873
|
if (["totalControl", "readOnly"].includes(e ?? "")) {
|
|
875
874
|
const r = e === "totalControl" ? "total-control" : "read-only";
|
|
876
|
-
return
|
|
875
|
+
return $.post(`/system-roles/total-control-read-only/${r}`, t);
|
|
877
876
|
}
|
|
878
|
-
return
|
|
877
|
+
return $.post(`/system-roles/permission/${e}`, t);
|
|
879
878
|
},
|
|
880
|
-
putEditUser: (t, e) =>
|
|
879
|
+
putEditUser: (t, e) => $.put(`/system-roles/${e}`, t),
|
|
881
880
|
deleteRemoveUser: (t, e) => {
|
|
882
881
|
if (["totalControl", "readOnly"].includes(e ?? "")) {
|
|
883
882
|
const r = e === "totalControl" ? "total-control" : "read-only";
|
|
884
|
-
return
|
|
883
|
+
return $.put(`/system-roles/total-control-read-only/${r}`, t);
|
|
885
884
|
}
|
|
886
|
-
return
|
|
885
|
+
return $.put("/system-roles", t);
|
|
887
886
|
}
|
|
888
887
|
}, j = s({
|
|
889
888
|
prefix: "/settings-attribute/v2/open-api"
|
|
890
|
-
}),
|
|
889
|
+
}), Pe = {
|
|
891
890
|
getOpenAPIDocs: (t) => j.get(`/${t.doc}`),
|
|
892
891
|
putGenerateToken: () => j.put("/generate"),
|
|
893
892
|
// This is if the dummy was not dummy
|
|
@@ -896,50 +895,50 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
896
895
|
putCancelRequestOpenAPI: () => j.put("/cancel-request")
|
|
897
896
|
}, X = s({
|
|
898
897
|
prefix: "/settings-attribute-go/v2/open-api"
|
|
899
|
-
}),
|
|
898
|
+
}), Te = {
|
|
900
899
|
putGenerateToken: () => X.put("/generate"),
|
|
901
900
|
// This is if the dummy was not dummy
|
|
902
901
|
getToken: () => X.get(""),
|
|
903
902
|
putRequestOpenAPI: () => X.put("/request"),
|
|
904
903
|
putCancelRequestOpenAPI: () => X.put("/cancel-request")
|
|
905
|
-
}, w = s({
|
|
906
|
-
prefix: "/import/v2"
|
|
907
|
-
}), Te = {
|
|
908
|
-
getImport: (t, e) => w.get(`/${t}`, { params: e }),
|
|
909
|
-
postImportTemporary: (t, e) => {
|
|
910
|
-
const r = { "Content-Type": "multipart/form-data" };
|
|
911
|
-
return w.post(`/${t}/temporary`, e, { headers: r });
|
|
912
|
-
},
|
|
913
|
-
deleteImportTemporary: (t, e) => w.delete(`/${t}/temporary`, { data: e }),
|
|
914
|
-
postDuplicateImport: (t, e) => w.post(`/${t}/duplicate`, e),
|
|
915
|
-
putEditImport: (t, e) => w.put(`/${t}`, e),
|
|
916
|
-
postImport: (t, e, r) => w.post(t, r, { signal: e.signal }),
|
|
917
|
-
putImportCancelProgress: (t) => w.put(`/${t}/cancel-progress`)
|
|
918
904
|
}, q = s({
|
|
919
|
-
prefix: "/import
|
|
920
|
-
}),
|
|
905
|
+
prefix: "/import/v2"
|
|
906
|
+
}), Ce = {
|
|
921
907
|
getImport: (t, e) => q.get(`/${t}`, { params: e }),
|
|
922
908
|
postImportTemporary: (t, e) => {
|
|
923
909
|
const r = { "Content-Type": "multipart/form-data" };
|
|
924
910
|
return q.post(`/${t}/temporary`, e, { headers: r });
|
|
925
911
|
},
|
|
926
|
-
deleteImportTemporary: (t, e) => q.delete(`/${t}/temporary`, {
|
|
912
|
+
deleteImportTemporary: (t, e) => q.delete(`/${t}/temporary`, { data: e }),
|
|
927
913
|
postDuplicateImport: (t, e) => q.post(`/${t}/duplicate`, e),
|
|
928
914
|
putEditImport: (t, e) => q.put(`/${t}`, e),
|
|
929
915
|
postImport: (t, e, r) => q.post(t, r, { signal: e.signal }),
|
|
930
916
|
putImportCancelProgress: (t) => q.put(`/${t}/cancel-progress`)
|
|
931
|
-
},
|
|
917
|
+
}, B = s({
|
|
918
|
+
prefix: "/import-go/v2"
|
|
919
|
+
}), De = {
|
|
920
|
+
getImport: (t, e) => B.get(`/${t}`, { params: e }),
|
|
921
|
+
postImportTemporary: (t, e) => {
|
|
922
|
+
const r = { "Content-Type": "multipart/form-data" };
|
|
923
|
+
return B.post(`/${t}/temporary`, e, { headers: r });
|
|
924
|
+
},
|
|
925
|
+
deleteImportTemporary: (t, e) => B.delete(`/${t}/temporary`, { params: e }),
|
|
926
|
+
postDuplicateImport: (t, e) => B.post(`/${t}/duplicate`, e),
|
|
927
|
+
putEditImport: (t, e) => B.put(`/${t}`, e),
|
|
928
|
+
postImport: (t, e, r) => B.post(t, r, { signal: e.signal }),
|
|
929
|
+
putImportCancelProgress: (t) => B.put(`/${t}/cancel-progress`)
|
|
930
|
+
}, _ = s({
|
|
932
931
|
prefix: "/settings-attribute/v2/asset-name"
|
|
933
932
|
}), Re = {
|
|
934
|
-
getDropdown: (t) =>
|
|
935
|
-
getAssetNameDetail: (t) =>
|
|
936
|
-
getAssetsByAssetName: (t, e) =>
|
|
937
|
-
getAssetNameList: (t) =>
|
|
938
|
-
getUnpairedAssetName: (t) =>
|
|
939
|
-
getOptions: (t) =>
|
|
933
|
+
getDropdown: (t) => _.get("/dropdown", { params: t }),
|
|
934
|
+
getAssetNameDetail: (t) => _.get(`/${t}`),
|
|
935
|
+
getAssetsByAssetName: (t, e) => _.get(`/${t}/list-asset`, { params: e }),
|
|
936
|
+
getAssetNameList: (t) => _.get("/", { params: t }),
|
|
937
|
+
getUnpairedAssetName: (t) => _.get("/unpaired", { params: t }),
|
|
938
|
+
getOptions: (t) => _.get("/options", { params: t })
|
|
940
939
|
}, o = s({
|
|
941
940
|
prefix: "/assignment/v2"
|
|
942
|
-
}),
|
|
941
|
+
}), Oe = {
|
|
943
942
|
getPreListData: (t) => o.get("/prelist", { params: t }),
|
|
944
943
|
getPreListOptions: (t) => o.get("/prelist/options", { params: t }),
|
|
945
944
|
getRequestData: (t) => o.get("/prelist/request", { params: t }),
|
|
@@ -995,68 +994,68 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
995
994
|
getAssignedAssetOptions: async (t) => o.get("/transaction/my-asset/assigned-asset/options", { params: t }),
|
|
996
995
|
putCancelAssignment: async (t) => o.put("/transaction/cancel", { id: t.id }),
|
|
997
996
|
putCancelReportById: async (t) => o.put(`/transaction/request/${t.id}/cancel-report`)
|
|
998
|
-
},
|
|
997
|
+
}, x = s({
|
|
999
998
|
prefix: "/assignment-go/v2"
|
|
1000
|
-
}),
|
|
1001
|
-
getTransactionData: (t) =>
|
|
1002
|
-
getTransactionOptions: (t) =>
|
|
1003
|
-
getDetailTransactionLog: (t) =>
|
|
1004
|
-
postTransaction: (t) =>
|
|
1005
|
-
putTransaction: (t) =>
|
|
1006
|
-
putUnassignTransaction: (t) =>
|
|
1007
|
-
putCancelReport: (t) =>
|
|
1008
|
-
},
|
|
999
|
+
}), Ue = {
|
|
1000
|
+
getTransactionData: (t) => x.get("/transaction", { params: t }),
|
|
1001
|
+
getTransactionOptions: (t) => x.get("/transaction/options", { params: t }),
|
|
1002
|
+
getDetailTransactionLog: (t) => x.get(`/transaction/request/${t}/transaction-log`),
|
|
1003
|
+
postTransaction: (t) => x.post("/transaction", t),
|
|
1004
|
+
putTransaction: (t) => x.put("/transaction", t),
|
|
1005
|
+
putUnassignTransaction: (t) => x.put("/transaction/unassign", t),
|
|
1006
|
+
putCancelReport: (t) => x.put("/transaction/request/cancel-report", t)
|
|
1007
|
+
}, A = s({
|
|
1009
1008
|
prefix: "/license/v2"
|
|
1010
|
-
}),
|
|
1011
|
-
getTotalLicense: () =>
|
|
1012
|
-
getPurchasedData: (t) =>
|
|
1013
|
-
getCompanyData: () =>
|
|
1014
|
-
},
|
|
1015
|
-
getFixedAssetPerGroup: (t, e) =>
|
|
1016
|
-
getAssetNameList: (t, e, r) =>
|
|
1009
|
+
}), Rt = {
|
|
1010
|
+
getTotalLicense: () => A.get("/total-license"),
|
|
1011
|
+
getPurchasedData: (t) => A.get("/purchase", { params: t }),
|
|
1012
|
+
getCompanyData: () => A.get("/company")
|
|
1013
|
+
}, Ot = {
|
|
1014
|
+
getFixedAssetPerGroup: (t, e) => A.get(`/${t}/fixed-asset-list`, { params: e }),
|
|
1015
|
+
getAssetNameList: (t, e, r) => A.get(`${e}/asset-list/${t}`, { params: r }),
|
|
1017
1016
|
// Get list of assets those already have licenses
|
|
1018
|
-
getLicenseAddonAssetList: (t, e, r) =>
|
|
1019
|
-
removeAddOnLicense: (t, e) =>
|
|
1020
|
-
addNewLicenses: (t, e) =>
|
|
1021
|
-
deleteAssetData: (t) =>
|
|
1022
|
-
putManageLicense: (t, e) =>
|
|
1017
|
+
getLicenseAddonAssetList: (t, e, r) => A.get(`/${t}/fixed-asset-list/${e}`, { params: r }),
|
|
1018
|
+
removeAddOnLicense: (t, e) => A.put(`/remove-license/${e}`, t),
|
|
1019
|
+
addNewLicenses: (t, e) => A.put(`/add-license/${e}`, t),
|
|
1020
|
+
deleteAssetData: (t) => A.delete("/assets", { data: t }),
|
|
1021
|
+
putManageLicense: (t, e) => A.put(
|
|
1023
1022
|
`/manage/${t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}`,
|
|
1024
1023
|
e
|
|
1025
1024
|
)
|
|
1026
|
-
},
|
|
1027
|
-
getGroupQuota: (t) =>
|
|
1028
|
-
getSubGroupQuota: (t, e) =>
|
|
1029
|
-
editSubGroupQuota: (t, e) =>
|
|
1030
|
-
},
|
|
1031
|
-
getConcurrentUserData: () =>
|
|
1032
|
-
getConcurrentUserList: (t) =>
|
|
1033
|
-
putLogoutUsers: (t) =>
|
|
1034
|
-
},
|
|
1035
|
-
getFilterOptions: (t, e) =>
|
|
1036
|
-
...
|
|
1037
|
-
...
|
|
1038
|
-
...
|
|
1039
|
-
...
|
|
1040
|
-
},
|
|
1025
|
+
}, Ut = {
|
|
1026
|
+
getGroupQuota: (t) => A.get(`/${t}/allocation-quota`),
|
|
1027
|
+
getSubGroupQuota: (t, e) => A.get(`/${t}/subgroup-quota`, { params: e }),
|
|
1028
|
+
editSubGroupQuota: (t, e) => A.put(`/${t}/set-group-quota`, e)
|
|
1029
|
+
}, It = {
|
|
1030
|
+
getConcurrentUserData: () => A.get("/concurrent-user-data"),
|
|
1031
|
+
getConcurrentUserList: (t) => A.get("/concurrent-user", { params: t }),
|
|
1032
|
+
putLogoutUsers: (t) => A.put("/concurrent-user", t)
|
|
1033
|
+
}, Ie = {
|
|
1034
|
+
getFilterOptions: (t, e) => A.get(`/${t}`, { params: e }),
|
|
1035
|
+
...Rt,
|
|
1036
|
+
...It,
|
|
1037
|
+
...Ut,
|
|
1038
|
+
...Ot
|
|
1039
|
+
}, b = s({
|
|
1041
1040
|
prefix: "/license-go/v2"
|
|
1042
|
-
}),
|
|
1043
|
-
getTotalLicense: () =>
|
|
1044
|
-
getPurchasedData: (t) =>
|
|
1041
|
+
}), Lt = {
|
|
1042
|
+
getTotalLicense: () => b.get("/total-license"),
|
|
1043
|
+
getPurchasedData: (t) => b.get("/purchase", { params: t })
|
|
1044
|
+
}, bt = {
|
|
1045
|
+
getConcurrentUserData: () => b.get("/concurrent-user-data"),
|
|
1046
|
+
getConcurrentUserList: (t) => b.get("/concurrent-user", { params: t }),
|
|
1047
|
+
putLogoutUsers: (t) => b.put("/concurrent-user", t)
|
|
1045
1048
|
}, ht = {
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
deleteAssetData: (t) => L.delete("/assets", { data: t })
|
|
1052
|
-
}, Oe = {
|
|
1053
|
-
getFilterOptions: (t, e) => L.get(`/${t}`, { params: e }),
|
|
1049
|
+
getFixedAssetPerGroup: (t, e) => b.get(`/${t}/assets`, { params: e }),
|
|
1050
|
+
deleteAssetData: (t) => b.delete("/assets", { data: t })
|
|
1051
|
+
}, Le = {
|
|
1052
|
+
getFilterOptions: (t, e) => b.get(`/${t}`, { params: e }),
|
|
1053
|
+
...Lt,
|
|
1054
1054
|
...bt,
|
|
1055
|
-
...ht
|
|
1056
|
-
...wt
|
|
1055
|
+
...ht
|
|
1057
1056
|
}, Q = s({
|
|
1058
1057
|
prefix: "/repair/v2/damage"
|
|
1059
|
-
}),
|
|
1058
|
+
}), be = {
|
|
1060
1059
|
getDamageReportList: (t) => Q.get("/", { params: t }),
|
|
1061
1060
|
getDamageReportListFilterOptions: (t) => Q.get("/options", { params: t }),
|
|
1062
1061
|
getDamageReportDetail: (t) => Q.get(`/${t}`),
|
|
@@ -1071,7 +1070,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1071
1070
|
putMarkAsRepaired: (t) => Q.put("/repair", t)
|
|
1072
1071
|
}, Y = s({
|
|
1073
1072
|
prefix: "/damage-repair-ticketing/v2"
|
|
1074
|
-
}),
|
|
1073
|
+
}), he = {
|
|
1075
1074
|
getDamageReportList: (t) => Y.get("/", { params: t }),
|
|
1076
1075
|
getDamageReportListFilterOptions: (t) => Y.get("/options", { params: t }),
|
|
1077
1076
|
getDamageReportDetail: (t) => Y.get(`/${t}`),
|
|
@@ -1082,7 +1081,7 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1082
1081
|
putMarkAsRepaired: (t) => Y.put("/repair", t)
|
|
1083
1082
|
}, n = s({
|
|
1084
1083
|
prefix: "/borrowing/v2"
|
|
1085
|
-
}),
|
|
1084
|
+
}), we = {
|
|
1086
1085
|
getTaskBorrowing: async (t) => n.get("/transaction/my-asset/task", { params: t }),
|
|
1087
1086
|
getTaskBorrowingOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
|
|
1088
1087
|
getBorrowedAsset: async (t) => n.get("/transaction/my-asset/borrowed-asset", { params: t }),
|
|
@@ -1153,14 +1152,14 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1153
1152
|
putApprovalApprove: (t) => n.put("/approval/approve", t, {
|
|
1154
1153
|
params: { sourceWeb: !0 }
|
|
1155
1154
|
})
|
|
1156
|
-
},
|
|
1155
|
+
}, At = s({
|
|
1157
1156
|
prefix: "/assets/v2"
|
|
1158
|
-
}),
|
|
1159
|
-
getHistory: async (t) =>
|
|
1160
|
-
getHistoryOptions: async (t) =>
|
|
1157
|
+
}), qe = {
|
|
1158
|
+
getHistory: async (t) => At.get("/my-asset", { params: t }),
|
|
1159
|
+
getHistoryOptions: async (t) => At.get("/my-asset/options", { params: t })
|
|
1161
1160
|
}, F = s({
|
|
1162
1161
|
prefix: "/assets-go/v2/my-assets"
|
|
1163
|
-
}),
|
|
1162
|
+
}), Be = {
|
|
1164
1163
|
getAssigned: async (t) => F.get("/assigned", { params: t }),
|
|
1165
1164
|
getAssignedOptions: async (t) => F.get("/assigned/options", { params: t }),
|
|
1166
1165
|
getBorrowed: async (t) => F.get("/borrowed", { params: t }),
|
|
@@ -1169,48 +1168,51 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1169
1168
|
getHistoryOptions: async (t) => F.get("/history/options", { params: t })
|
|
1170
1169
|
}, tt = s({
|
|
1171
1170
|
prefix: "/repair/v2"
|
|
1172
|
-
}),
|
|
1171
|
+
}), xe = {
|
|
1173
1172
|
getRepairList: (t) => tt.get("/my-asset/repair", { params: t }),
|
|
1174
1173
|
getFilterOptions: (t) => tt.get("/my-asset/repair/options", { params: t }),
|
|
1175
1174
|
getAssetRepairTicketing: (t, e) => tt.get(`/repair/${t}/asset-repair-detail`, { params: e }),
|
|
1176
1175
|
putConfirmRepair: (t) => tt.put(`/repair/${t}/confirm-repair`)
|
|
1177
|
-
},
|
|
1176
|
+
}, vt = s({
|
|
1177
|
+
prefix: "/settings-user-role-go/v2/auth"
|
|
1178
|
+
}), wt = (t) => {
|
|
1179
|
+
var e, r, a, m;
|
|
1180
|
+
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((m = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : m.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
|
|
1181
|
+
}, Ge = {
|
|
1182
|
+
reLogin: (t) => (vt.interceptors.response.use((e) => e, wt), vt.post("/login", t))
|
|
1183
|
+
}, L = s({
|
|
1178
1184
|
env: "APP_GLOBAL_SETTINGS_API",
|
|
1179
1185
|
prefix: "/v1/global-settings/auth"
|
|
1180
|
-
}),
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
}
|
|
1184
|
-
var e, r, a, T;
|
|
1185
|
-
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((T = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : T.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
|
|
1186
|
-
}, Ge = {
|
|
1186
|
+
}), qt = (t) => {
|
|
1187
|
+
var e, r, a, m;
|
|
1188
|
+
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((m = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : m.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
|
|
1189
|
+
}, ke = {
|
|
1187
1190
|
login: (t) => {
|
|
1188
1191
|
const e = { ...t, isMobile: !1 };
|
|
1189
|
-
return
|
|
1192
|
+
return L.post("/login", e);
|
|
1190
1193
|
},
|
|
1191
|
-
|
|
1192
|
-
reLogin: (t) => (G.interceptors.response.use((e) => e, mt), G.post("/login", t)),
|
|
1194
|
+
reLogin: (t) => (L.interceptors.response.use((e) => e, qt), L.post("/login", t)),
|
|
1193
1195
|
requestOTP: (t) => {
|
|
1194
1196
|
const e = { email: t };
|
|
1195
|
-
return
|
|
1197
|
+
return L.post("/request-otp", e);
|
|
1196
1198
|
},
|
|
1197
1199
|
requestResetPassLink: (t) => {
|
|
1198
1200
|
const e = { email: t };
|
|
1199
|
-
return
|
|
1201
|
+
return L.post("/request-reset-link", e);
|
|
1200
1202
|
},
|
|
1201
|
-
setPassword: (t) =>
|
|
1202
|
-
verifyToken: (t) =>
|
|
1203
|
+
setPassword: (t) => L.post("/set-password", t),
|
|
1204
|
+
verifyToken: (t) => L.get(`/verify-token/${t}`),
|
|
1203
1205
|
confirmEmailChange: (t) => {
|
|
1204
1206
|
const e = { token: t };
|
|
1205
|
-
return
|
|
1207
|
+
return L.put("/confirm-email-change/confirm", e);
|
|
1206
1208
|
}
|
|
1207
|
-
},
|
|
1208
|
-
prefix: `${
|
|
1209
|
+
}, ut = "/transfer/v2", et = s({
|
|
1210
|
+
prefix: `${ut}/prelist`
|
|
1209
1211
|
}), v = s({
|
|
1210
|
-
prefix: `${
|
|
1212
|
+
prefix: `${ut}/transaction`
|
|
1211
1213
|
}), J = s({
|
|
1212
|
-
prefix: `${
|
|
1213
|
-
}),
|
|
1214
|
+
prefix: `${ut}/approval`
|
|
1215
|
+
}), Ee = {
|
|
1214
1216
|
// ------ TRANSACTION ------
|
|
1215
1217
|
getTransactions: (t) => v.get("/", { params: t }),
|
|
1216
1218
|
getTransactionDetail: (t) => v.get(`/${t}`),
|
|
@@ -1284,9 +1286,9 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1284
1286
|
prefix: "/disposal/v2/report"
|
|
1285
1287
|
}), c = s({
|
|
1286
1288
|
prefix: "/disposal/v2/disposal"
|
|
1287
|
-
}),
|
|
1289
|
+
}), Bt = s({
|
|
1288
1290
|
prefix: "/disposal/v2/approval"
|
|
1289
|
-
}),
|
|
1291
|
+
}), _e = {
|
|
1290
1292
|
getReportedDisposal: (t) => W.get("", { params: t }),
|
|
1291
1293
|
getReportedDisposalOptions: (t) => W.get("/options", { params: t }),
|
|
1292
1294
|
postReportDisposal: (t) => W.post("", t),
|
|
@@ -1301,9 +1303,9 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1301
1303
|
getTransactionData: (t) => c.get("/transaction", { params: t }),
|
|
1302
1304
|
getTransactionDetail: (t) => c.get(`/transaction/${t}`),
|
|
1303
1305
|
getDisposalTransactionLog: (t) => c.get(`/request/${t}/disposal-log`),
|
|
1304
|
-
getTransactionApprovalHistory: (t) =>
|
|
1306
|
+
getTransactionApprovalHistory: (t) => Bt.get(`/transaction/${t}/approval-history`),
|
|
1305
1307
|
getTransactionOptions: (t) => c.get("/transaction/options", { params: t }),
|
|
1306
|
-
putCancelTransaction: (t) => c.put("/cancel", { params: t }),
|
|
1308
|
+
putCancelTransaction: (t) => c.put("/cancel", void 0, { params: t }),
|
|
1307
1309
|
putCancelRequest: (t) => c.put("/request/cancel", t),
|
|
1308
1310
|
putDisposalVerification: (t, e) => c.put(`/${e}/verification`, t),
|
|
1309
1311
|
putDisposalCompletion: (t, e) => {
|
|
@@ -1318,154 +1320,155 @@ const Tt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1318
1320
|
getHistoryByAssetOptions: (t) => c.get("/history/by-asset/options", { params: t })
|
|
1319
1321
|
}, rt = s({
|
|
1320
1322
|
prefix: "/transfer-go/v2"
|
|
1321
|
-
}),
|
|
1323
|
+
}), Fe = {
|
|
1322
1324
|
getTransactionData: (t) => rt.get("/transaction", { params: t }),
|
|
1323
1325
|
getTransactionOptions: (t) => rt.get("/transaction/options", { params: t }),
|
|
1324
1326
|
getTransactionLog: (t) => rt.get(`/transaction/request/${t}/transaction-log`),
|
|
1325
1327
|
postCreateTransaction: (t) => rt.post("/transaction", t)
|
|
1326
|
-
},
|
|
1328
|
+
}, at = s({
|
|
1327
1329
|
prefix: "/audit/v2"
|
|
1328
|
-
}),
|
|
1329
|
-
getAudit: (t, e) =>
|
|
1330
|
-
getAuditOption: (t, e) =>
|
|
1330
|
+
}), Ne = {
|
|
1331
|
+
getAudit: (t, e) => at.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
|
|
1332
|
+
getAuditOption: (t, e) => at.get(`/audit/schedule/asset-detail/${t}/options`, {
|
|
1331
1333
|
params: e
|
|
1332
1334
|
}),
|
|
1333
|
-
putSetActive: (t) =>
|
|
1334
|
-
},
|
|
1335
|
+
putSetActive: (t) => at.put("/audit/asset/activation", t)
|
|
1336
|
+
}, it = s({
|
|
1335
1337
|
prefix: "/routine/v2"
|
|
1336
|
-
}),
|
|
1337
|
-
getMaintenance: (t, e) =>
|
|
1338
|
-
getMaintenanceOption: (t, e) =>
|
|
1339
|
-
putSetActive: (t) =>
|
|
1340
|
-
},
|
|
1338
|
+
}), Me = {
|
|
1339
|
+
getMaintenance: (t, e) => it.get(`/routine-task/${t}`, { params: e }),
|
|
1340
|
+
getMaintenanceOption: (t, e) => it.get(`/routine-task/${t}/options`, { params: e }),
|
|
1341
|
+
putSetActive: (t) => it.put("/maintenable-asset/set-active", t)
|
|
1342
|
+
}, xt = s({
|
|
1341
1343
|
prefix: "/settings-attribute/v2/models"
|
|
1342
|
-
}),
|
|
1343
|
-
getDropdown: (t) =>
|
|
1344
|
-
},
|
|
1344
|
+
}), He = {
|
|
1345
|
+
getDropdown: (t) => xt.get("/dropdown", { params: t })
|
|
1346
|
+
}, mt = s({
|
|
1345
1347
|
prefix: "/settings-attribute/v2/transaction-settings"
|
|
1346
|
-
}),
|
|
1347
|
-
getData: () =>
|
|
1348
|
-
putData: (t) =>
|
|
1349
|
-
},
|
|
1348
|
+
}), Ve = {
|
|
1349
|
+
getData: () => mt.get("/"),
|
|
1350
|
+
putData: (t) => mt.put("/", t)
|
|
1351
|
+
}, G = s({
|
|
1350
1352
|
prefix: "/borrowing-go/v2"
|
|
1351
|
-
}),
|
|
1352
|
-
getTransactions: async (t) =>
|
|
1353
|
-
getTransactionOptions: async (t) =>
|
|
1354
|
-
getTransactionLog: async (t) =>
|
|
1355
|
-
postTransaction: async (t) =>
|
|
1356
|
-
putTransaction: async (t) =>
|
|
1353
|
+
}), je = {
|
|
1354
|
+
getTransactions: async (t) => G.get("/transaction", { params: t }),
|
|
1355
|
+
getTransactionOptions: async (t) => G.get("/transaction/options", { params: t }),
|
|
1356
|
+
getTransactionLog: async (t) => G.get(`/transaction/request/${t}/transaction-log`),
|
|
1357
|
+
postTransaction: async (t) => G.post("/transaction", t),
|
|
1358
|
+
putTransaction: async (t) => G.put("/transaction", t),
|
|
1357
1359
|
putTransactionReturn: async (t) => {
|
|
1358
1360
|
const e = { id: t };
|
|
1359
|
-
return
|
|
1361
|
+
return G.put("/transaction/return", e);
|
|
1360
1362
|
},
|
|
1361
1363
|
putCancelReport: async (t) => {
|
|
1362
1364
|
const e = { id: t };
|
|
1363
|
-
return
|
|
1365
|
+
return G.put("/transaction/request/cancel-report", e);
|
|
1364
1366
|
}
|
|
1365
|
-
},
|
|
1367
|
+
}, D = s({
|
|
1366
1368
|
prefix: "/disposal-go/v2/"
|
|
1367
|
-
}), Ve = {
|
|
1368
|
-
getReportedDisposal: (t) => R.get("/report", { params: t }),
|
|
1369
|
-
getReportedDisposalOptions: (t) => R.get("/report/options", { params: t }),
|
|
1370
|
-
postReportDisposal: (t) => R.post("/report", t),
|
|
1371
|
-
deleteCancelReport: (t) => (t.isFromDisposal = "false", R.delete("/report/cancel-report", { params: t })),
|
|
1372
|
-
deleteDeclineReport: (t) => (t.isFromDisposal = "true", R.delete("/report/cancel-report", { params: t })),
|
|
1373
|
-
getDisposalHistory: (t) => R.get("/transaction", { params: t }),
|
|
1374
|
-
getHistoryByAssetOptions: (t) => R.get("/transaction/options", { params: t }),
|
|
1375
|
-
getDisposalTransactionLog: (t) => R.get(`/transaction/request/${t}/transaction-log`),
|
|
1376
|
-
postCreateTransaction: (t) => R.post("/transaction", t)
|
|
1377
|
-
}, f = s({
|
|
1378
|
-
prefix: "/report/v2/reports"
|
|
1379
|
-
}), je = {
|
|
1380
|
-
getReportList: (t) => f.get("/schedules", { params: t }),
|
|
1381
|
-
getReportSchedule: (t) => f.get("/schedules/" + t),
|
|
1382
|
-
getUniqueScheduleName: (t) => f.get("/schedules/unique-name", { params: { name: t } }),
|
|
1383
|
-
getFilterOptions: (t) => f.get("/schedules/options", { params: t }),
|
|
1384
|
-
putSetActive: (t) => f.put("/schedules/activation", t),
|
|
1385
|
-
putEditSchedule: (t) => f.put("/schedules/" + t._id, t),
|
|
1386
|
-
deleteReports: (t) => f.delete("/schedules", { params: { reportIds: t } }),
|
|
1387
|
-
postCreateSchedule: (t) => f.post("/schedules/create", t),
|
|
1388
|
-
postDownloadReport: (t) => f.post("/download", t, { responseType: "arraybuffer" }),
|
|
1389
|
-
postGenerateReport: (t) => f.post("/generate", t)
|
|
1390
|
-
}, P = s({
|
|
1391
|
-
prefix: "/report-go/v2/reports"
|
|
1392
1369
|
}), Qe = {
|
|
1370
|
+
getReportedDisposal: (t) => D.get("/report", { params: t }),
|
|
1371
|
+
getReportedDisposalOptions: (t) => D.get("/report/options", { params: t }),
|
|
1372
|
+
postReportDisposal: (t) => D.post("/report", t),
|
|
1373
|
+
deleteCancelReport: (t) => (t.isFromDisposal = "false", D.delete("/report/cancel-report", { params: t })),
|
|
1374
|
+
deleteDeclineReport: (t) => (t.isFromDisposal = "true", D.delete("/report/cancel-report", { params: t })),
|
|
1375
|
+
getDisposalHistory: (t) => D.get("/transaction", { params: t }),
|
|
1376
|
+
getHistoryByAssetOptions: (t) => D.get("/transaction/options", { params: t }),
|
|
1377
|
+
getDisposalTransactionLog: (t) => D.get(`/transaction/request/${t}/transaction-log`),
|
|
1378
|
+
postCreateTransaction: (t) => D.post("/transaction", t)
|
|
1379
|
+
}, P = s({
|
|
1380
|
+
prefix: "/report/v2/reports"
|
|
1381
|
+
}), Ye = {
|
|
1393
1382
|
getReportList: (t) => P.get("/schedules", { params: t }),
|
|
1394
1383
|
getReportSchedule: (t) => P.get("/schedules/" + t),
|
|
1395
1384
|
getUniqueScheduleName: (t) => P.get("/schedules/unique-name", { params: { name: t } }),
|
|
1396
1385
|
getFilterOptions: (t) => P.get("/schedules/options", { params: t }),
|
|
1397
|
-
putSetActive: (t) => P.put("/schedules/
|
|
1398
|
-
putEditSchedule: (t
|
|
1399
|
-
deleteReports: (t) => P.delete("/schedules", { params: {
|
|
1400
|
-
postCreateSchedule: (t) => P.post("/schedules", t),
|
|
1386
|
+
putSetActive: (t) => P.put("/schedules/activation", t),
|
|
1387
|
+
putEditSchedule: (t) => P.put("/schedules/" + t._id, t),
|
|
1388
|
+
deleteReports: (t) => P.delete("/schedules", { params: { reportIds: t } }),
|
|
1389
|
+
postCreateSchedule: (t) => P.post("/schedules/create", t),
|
|
1401
1390
|
postDownloadReport: (t) => P.post("/download", t, { responseType: "arraybuffer" }),
|
|
1402
1391
|
postGenerateReport: (t) => P.post("/generate", t)
|
|
1392
|
+
}, T = s({
|
|
1393
|
+
prefix: "/report-go/v2/reports"
|
|
1394
|
+
}), Je = {
|
|
1395
|
+
getReportList: (t) => T.get("/schedules", { params: t }),
|
|
1396
|
+
getReportSchedule: (t) => T.get("/schedules/" + t),
|
|
1397
|
+
getUniqueScheduleName: (t) => T.get("/schedules/unique-name", { params: { name: t } }),
|
|
1398
|
+
getFilterOptions: (t) => T.get("/schedules/options", { params: t }),
|
|
1399
|
+
putSetActive: (t) => T.put("/schedules/set-active", t),
|
|
1400
|
+
putEditSchedule: (t, e) => T.put(`/schedules/${t}`, e),
|
|
1401
|
+
deleteReports: (t) => T.delete("/schedules", { params: { id: t } }),
|
|
1402
|
+
postCreateSchedule: (t) => T.post("/schedules", t),
|
|
1403
|
+
postDownloadReport: (t) => T.post("/download", t, { responseType: "arraybuffer" }),
|
|
1404
|
+
postGenerateReport: (t) => T.post("/generate", t)
|
|
1403
1405
|
};
|
|
1404
1406
|
export {
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
+
ie as AliasCodeServices,
|
|
1408
|
+
ue as AliasCodeServicesGo,
|
|
1407
1409
|
Re as AssetNameServices,
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1410
|
+
Qt as AssetServices,
|
|
1411
|
+
Yt as AssetServicesGo,
|
|
1412
|
+
Oe as AssignmentServices,
|
|
1413
|
+
Ue as AssignmentServicesGo,
|
|
1414
|
+
Ne as AuditServices,
|
|
1413
1415
|
Ge as AuthServices,
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
+
we as BorrowServices,
|
|
1417
|
+
je as BorrowServicesGo,
|
|
1416
1418
|
Ae as BrandServices,
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
Nt as
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
De as
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
Jt as
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
qe as
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
Kt as
|
|
1446
|
-
|
|
1447
|
-
Pe as
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
Se as
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
se as
|
|
1459
|
-
|
|
1460
|
-
Xt as
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
ee as
|
|
1466
|
-
|
|
1419
|
+
Vt as ChangelogServices,
|
|
1420
|
+
de as CountryStateServices,
|
|
1421
|
+
ce as CustomFieldServices,
|
|
1422
|
+
le as CustomFieldServicesGo,
|
|
1423
|
+
be as DamageServices,
|
|
1424
|
+
he as DamageServicesGo,
|
|
1425
|
+
ae as DashboardServices,
|
|
1426
|
+
_e as DisposalServices,
|
|
1427
|
+
Qe as DisposalServicesGo,
|
|
1428
|
+
ve as FileManagerServices,
|
|
1429
|
+
me as FileManagerServicesGo,
|
|
1430
|
+
pe as GeneralSettingsServices,
|
|
1431
|
+
ge as GeneralSettingsServicesGo,
|
|
1432
|
+
ke as GlobalAuthServices,
|
|
1433
|
+
Nt as GroupCategoryServices,
|
|
1434
|
+
Mt as GroupCategoryServicesGo,
|
|
1435
|
+
oe as I18nService,
|
|
1436
|
+
Ce as ImportServices,
|
|
1437
|
+
De as ImportServicesGo,
|
|
1438
|
+
Ie as LicenseServices,
|
|
1439
|
+
Le as LicenseServicesGo,
|
|
1440
|
+
jt as LogServicesGo,
|
|
1441
|
+
Jt as MissingServices,
|
|
1442
|
+
Wt as MissingServicesGo,
|
|
1443
|
+
He as ModelTypeServices,
|
|
1444
|
+
qe as MyAssetServices,
|
|
1445
|
+
Be as MyAssetServicesGo,
|
|
1446
|
+
Ht as NotificationApprovalServices,
|
|
1447
|
+
Kt as NotificationServices,
|
|
1448
|
+
zt as NotificationServicesGo,
|
|
1449
|
+
Pe as OpenAPIServices,
|
|
1450
|
+
Te as OpenAPIServicesGo,
|
|
1451
|
+
ye as ReaderServices,
|
|
1452
|
+
xe as RepairServices,
|
|
1453
|
+
Ye as ReportServices,
|
|
1454
|
+
Je as ReportServicesGo,
|
|
1455
|
+
Se as RoleServices,
|
|
1456
|
+
fe as RoleServicesGo,
|
|
1457
|
+
Me as RoutineServices,
|
|
1458
|
+
$e as ServiceCenterServices,
|
|
1459
|
+
Zt as SessionLogServices,
|
|
1460
|
+
se as SubUserServices,
|
|
1461
|
+
ne as SubUserServicesGo,
|
|
1462
|
+
Xt as TAGServices,
|
|
1463
|
+
te as TrackingServices,
|
|
1464
|
+
Ve as TransactionSettingServices,
|
|
1465
|
+
Ee as TransferServices,
|
|
1466
|
+
Fe as TransferServicesGo,
|
|
1467
|
+
ee as UserServices,
|
|
1468
|
+
re as UserServicesGo,
|
|
1469
|
+
Ft as getAssetsFile,
|
|
1467
1470
|
N as getBaseURL,
|
|
1468
1471
|
_t as getImageURL,
|
|
1469
|
-
|
|
1470
|
-
|
|
1472
|
+
Et as getImageURLGo,
|
|
1473
|
+
kt as queryParamsStringfy
|
|
1471
1474
|
};
|