@tagsamurai/fats-api-services 1.0.0-alpha.170 → 1.0.0-alpha.172
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 +473 -433
- package/api-services.system.js +1 -1
- package/main.d.ts +1 -0
- package/package.json +1 -1
- package/src/dto/license.dto.d.ts +24 -0
- package/src/services/disposal.service.d.ts +3 -3
- package/src/services/license.service.d.ts +20 -0
- package/src/services/oldLicense.service.d.ts +30 -2
- package/src/types/fetchResponse.type.d.ts +2 -0
- package/src/types/license.type.d.ts +43 -0
- package/src/types/licenseAddon.type.d.ts +35 -0
- package/src/types/licenseAllocation.type.d.ts +78 -0
- package/src/types/licenseConcurrent.type.d.ts +11 -0
- package/src/types/licensePurchased.type.d.ts +16 -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 $t from "axios";
|
|
2
|
+
const yt = { 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" }, k = (t = "APP_API") => yt["VITE_" + t], s = (t = {}, e = !1) => {
|
|
3
|
+
const { env: r = "APP_API", prefix: a = "", headers: S = {}, ..._ } = t, mt = `${k(r)}${a}`, ot = JSON.parse(localStorage.getItem("user") ?? "{}"), vt = ot.jwt ?? ot.token ?? "";
|
|
4
|
+
return $t.create({
|
|
5
|
+
..._,
|
|
6
|
+
baseURL: mt,
|
|
7
|
+
headers: e ? S : {
|
|
8
8
|
"Content-Type": "application/json",
|
|
9
|
-
Authorization: `Bearer ${
|
|
10
|
-
...
|
|
9
|
+
Authorization: `Bearer ${vt}`,
|
|
10
|
+
...S
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
},
|
|
13
|
+
}, Rt = (t) => {
|
|
14
14
|
if (!t || typeof t == "string")
|
|
15
15
|
return;
|
|
16
16
|
const e = {};
|
|
@@ -21,133 +21,133 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
21
21
|
[r]: t[r]
|
|
22
22
|
});
|
|
23
23
|
}), e;
|
|
24
|
-
},
|
|
24
|
+
}, wt = (t, e, r) => {
|
|
25
25
|
if (!t) return;
|
|
26
|
-
const a = k("APP_API"),
|
|
26
|
+
const a = k("APP_API"), S = t.startsWith("http") ? t : `${a}/utility/v2/files/${t.replace(/^\/+/, "")}`;
|
|
27
27
|
if (e || r) {
|
|
28
|
-
const
|
|
29
|
-
return e && (
|
|
28
|
+
const _ = new URLSearchParams();
|
|
29
|
+
return e && (_.set("width", e.toString()), _.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${S}?${_.toString()}`;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
},
|
|
31
|
+
return S;
|
|
32
|
+
}, ht = (t) => {
|
|
33
33
|
if (!t) return;
|
|
34
34
|
const e = k("APP_TAGSAMURAI_API");
|
|
35
35
|
return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
|
|
36
|
-
},
|
|
36
|
+
}, qt = async (t, e = "excel") => await fetch(
|
|
37
37
|
`${k("APP_ASSETS_URL")}/${e}/${t}`
|
|
38
|
-
),
|
|
38
|
+
), f = s({
|
|
39
39
|
prefix: "/settings-attribute/v2",
|
|
40
40
|
env: "APP_TAGSAMURAI_API"
|
|
41
|
-
}),
|
|
41
|
+
}), Bt = {
|
|
42
42
|
getGroupCategory: (t, e) => {
|
|
43
43
|
const r = t === "category" ? t : "groups";
|
|
44
|
-
return
|
|
44
|
+
return f.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 f.get(`/${a}/${e}`, { params: r });
|
|
49
49
|
},
|
|
50
50
|
getNames: (t) => {
|
|
51
51
|
const e = t === "category" ? t : "groups";
|
|
52
|
-
return
|
|
52
|
+
return f.get(`/${e}/names`);
|
|
53
53
|
},
|
|
54
54
|
getCodes: (t) => {
|
|
55
55
|
const e = t === "category" ? t : "groups";
|
|
56
|
-
return
|
|
56
|
+
return f.get(`/${e}/codes`);
|
|
57
57
|
},
|
|
58
58
|
postCreateGroupCategory: (t, e) => {
|
|
59
59
|
const r = t === "category" ? t : "groups";
|
|
60
|
-
return
|
|
60
|
+
return f.post(`/${r}`, e);
|
|
61
61
|
},
|
|
62
62
|
putEditGroupCategory: (t, e, r) => {
|
|
63
63
|
const a = t === "category" ? t : "groups";
|
|
64
|
-
return
|
|
64
|
+
return f.put(`/${a}/${r}`, e);
|
|
65
65
|
},
|
|
66
|
-
putMoveGroup: (t, e) =>
|
|
67
|
-
putEditBulkGroups: async (t) =>
|
|
66
|
+
putMoveGroup: (t, e) => f.put(`/groups/${e}/move-group`, t),
|
|
67
|
+
putEditBulkGroups: async (t) => f.put("/groups/bulk", t),
|
|
68
68
|
deleteGroupCategory: (t, e, r) => {
|
|
69
69
|
const a = t === "category" ? t : "groups";
|
|
70
|
-
return
|
|
70
|
+
return f.delete(`/${a}/${r}`, { data: e });
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, U = s({
|
|
73
73
|
prefix: "/settings-attribute-go/v2"
|
|
74
|
-
}),
|
|
74
|
+
}), xt = {
|
|
75
75
|
getGroupCategory: (t, e) => {
|
|
76
76
|
const r = t === "category" ? t : "groups";
|
|
77
|
-
return
|
|
77
|
+
return U.get(`/${r}/tree`, { params: e });
|
|
78
78
|
},
|
|
79
79
|
getGroupCategoryList: (t, e) => {
|
|
80
80
|
const r = t === "category" ? t : "groups";
|
|
81
|
-
return
|
|
81
|
+
return U.get(`/${r}/${e}`);
|
|
82
82
|
},
|
|
83
83
|
getNames: (t) => {
|
|
84
84
|
const e = t === "category" ? t : "groups";
|
|
85
|
-
return
|
|
85
|
+
return U.get(`/${e}/names`);
|
|
86
86
|
},
|
|
87
87
|
getCodes: (t) => {
|
|
88
88
|
const e = t === "category" ? t : "groups";
|
|
89
|
-
return
|
|
89
|
+
return U.get(`/${e}/codes`);
|
|
90
90
|
},
|
|
91
91
|
postCreateGroupCategory: (t, e) => {
|
|
92
92
|
const r = t === "category" ? t : "groups";
|
|
93
|
-
return
|
|
93
|
+
return U.post(`/${r}`, e);
|
|
94
94
|
},
|
|
95
95
|
putEditGroupCategory: (t, e, r) => {
|
|
96
96
|
const a = t === "category" ? t : "groups";
|
|
97
|
-
return
|
|
97
|
+
return U.put(`/${a}/${r}`, e);
|
|
98
98
|
},
|
|
99
99
|
deleteGroupCategory: (t, e, r) => {
|
|
100
100
|
const a = t === "category" ? t : "groups";
|
|
101
|
-
return
|
|
101
|
+
return U.delete(`/${a}/${r}`, { data: e });
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, St = s({
|
|
104
104
|
prefix: "/v2",
|
|
105
105
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
106
|
-
}),
|
|
107
|
-
getTotalApprovals: () =>
|
|
108
|
-
},
|
|
106
|
+
}), Gt = {
|
|
107
|
+
getTotalApprovals: () => St.get("/approval/count")
|
|
108
|
+
}, P = 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
|
+
}), kt = {
|
|
112
|
+
getActionLog: (t) => P.get("/change-log", { params: t }),
|
|
113
|
+
getActionLogOption: (t) => P.get("/change-log/options", { params: t }),
|
|
114
|
+
getSessionLogList: (t) => P.get("/session-log", { params: t }),
|
|
115
|
+
getUserDetailSystemLogList: (t) => P.get("/change-log", { params: t }),
|
|
116
|
+
getUserDetailSystemLogOption: (t) => P.get("/change-log/options", { params: t }),
|
|
117
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) => P.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) =>
|
|
128
|
-
},
|
|
126
|
+
getTransactionLogOption: (t) => P.get("/transaction-log/options", { params: t }),
|
|
127
|
+
postScanLog: (t) => P.post("/transaction-log/scan-log", t)
|
|
128
|
+
}, m = s({
|
|
129
129
|
prefix: "/utility/v2"
|
|
130
|
-
}),
|
|
131
|
-
getActionLog: (t) =>
|
|
132
|
-
getActionLogOption: (t) =>
|
|
133
|
-
getSessionLogList: (t) =>
|
|
134
|
-
getTransactionLog: (t) =>
|
|
130
|
+
}), _t = {
|
|
131
|
+
getActionLog: (t) => m.get("/change-log", { params: t }),
|
|
132
|
+
getActionLogOption: (t) => m.get("/change-log/options", { params: t }),
|
|
133
|
+
getSessionLogList: (t) => m.get("/session-log", { params: t }),
|
|
134
|
+
getTransactionLog: (t) => m.get("/transaction-log", { params: t }),
|
|
135
135
|
/**
|
|
136
136
|
* Retrieves the transaction log options.
|
|
137
137
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
138
138
|
*/
|
|
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) =>
|
|
139
|
+
getTransactionLogOption: (t) => m.get("/transaction-log/options", { params: t }),
|
|
140
|
+
getUserDetailSystemLogList: (t) => m.get("/change-log", { params: t }),
|
|
141
|
+
getUserDetailSystemLogOption: (t) => m.get("/change-log/options", { params: t }),
|
|
142
|
+
getUserDetailUserLogBorrowingList: (t, e) => m.get(`/borrowing-log/${t}`, { params: e }),
|
|
143
|
+
getUserDetailUserLogAssignmentList: (t, e) => m.get(`/assignment-log/${t}`, { params: e }),
|
|
144
|
+
getUserDetailUserLogBorrowingOption: (t, e) => m.get(`/borrowing-log/${t}/options`, { params: e }),
|
|
145
|
+
getUserDetailUserLogAssignmentOption: (t, e) => m.get(`/assignment-log/${t}/options`, { params: e })
|
|
146
146
|
}, g = s({
|
|
147
147
|
prefix: "/assets/v2/assets"
|
|
148
|
-
}),
|
|
148
|
+
}), V = s({
|
|
149
149
|
prefix: "/assets/v2/attachment"
|
|
150
|
-
}),
|
|
150
|
+
}), Et = {
|
|
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 vt = { 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) => V.get("", { params: t }),
|
|
194
194
|
postAttachment: (t) => {
|
|
195
195
|
const e = { "Content-Type": "multipart/form-data" };
|
|
196
|
-
return
|
|
196
|
+
return V.post("", t, { headers: e });
|
|
197
197
|
},
|
|
198
198
|
putAttachment: (t, e) => {
|
|
199
199
|
const r = { "Content-Type": "multipart/form-data" };
|
|
200
|
-
return
|
|
200
|
+
return V.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) => V.delete("/bulk", { params: t })
|
|
208
208
|
}, p = s({
|
|
209
209
|
prefix: "/assets-go/v2/assets"
|
|
210
|
-
}),
|
|
210
|
+
}), Ft = {
|
|
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 vt = { 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
|
+
}, E = s({
|
|
255
255
|
prefix: "/tracking/v2/missing"
|
|
256
|
-
}),
|
|
256
|
+
}), Nt = {
|
|
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) =>
|
|
264
|
-
getDetail: (t) =>
|
|
265
|
-
getOptions: (t) =>
|
|
266
|
-
},
|
|
261
|
+
putMarkAsFound: (t) => E.put("/found", t),
|
|
262
|
+
putReportMissing: (t, e) => E.put(`/report-missing/${t}`, e),
|
|
263
|
+
getData: (t) => E.get("/", { params: t }),
|
|
264
|
+
getDetail: (t) => E.get(`/${t}`),
|
|
265
|
+
getOptions: (t) => E.get("/options", { params: t })
|
|
266
|
+
}, F = s({
|
|
267
267
|
prefix: "/missing-tracking/v2"
|
|
268
|
-
}),
|
|
269
|
-
putFoundAsset: (t) =>
|
|
270
|
-
putReportMissing: (t, e) =>
|
|
271
|
-
getData: (t) =>
|
|
272
|
-
getDataOptions: (t) =>
|
|
273
|
-
getDetail: (t) =>
|
|
274
|
-
},
|
|
268
|
+
}), Mt = {
|
|
269
|
+
putFoundAsset: (t) => F.put("/found", t),
|
|
270
|
+
putReportMissing: (t, e) => F.put(`/${t}/report-missing`, e),
|
|
271
|
+
getData: (t) => F.get("/", { params: t }),
|
|
272
|
+
getDataOptions: (t) => F.get("/options", { params: t }),
|
|
273
|
+
getDetail: (t) => F.get(`/${t}`)
|
|
274
|
+
}, at = s({
|
|
275
275
|
prefix: "/v2/notification",
|
|
276
276
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
277
|
-
}),
|
|
278
|
-
getNotifications: (t) => ot.get("/", { params: t }),
|
|
279
|
-
readNotification: (t) => ot.put(`/${t}`)
|
|
280
|
-
}, at = s({
|
|
281
|
-
prefix: "/utility/v2/notification"
|
|
282
|
-
}), xt = {
|
|
277
|
+
}), Ht = {
|
|
283
278
|
getNotifications: (t) => at.get("/", { params: t }),
|
|
284
279
|
readNotification: (t) => at.put(`/${t}`)
|
|
285
|
-
},
|
|
280
|
+
}, it = s({
|
|
281
|
+
prefix: "/utility/v2/notification"
|
|
282
|
+
}), Vt = {
|
|
283
|
+
getNotifications: (t) => it.get("/", { params: t }),
|
|
284
|
+
readNotification: (t) => it.put(`/${t}`)
|
|
285
|
+
}, ft = s({
|
|
286
286
|
prefix: "/v2/session-log",
|
|
287
287
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
288
|
-
}),
|
|
289
|
-
postLogout: () =>
|
|
288
|
+
}), jt = {
|
|
289
|
+
postLogout: () => ft.post("/logout")
|
|
290
290
|
}, i = s({
|
|
291
291
|
prefix: "/tag/v2"
|
|
292
|
-
}),
|
|
292
|
+
}), Qt = {
|
|
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 vt = { 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
|
+
}), Yt = {
|
|
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 vt = { 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
|
+
}), Jt = {
|
|
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 vt = { 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
|
+
}), Wt = {
|
|
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,71 +429,71 @@ const vt = { 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
|
+
}, T = s({
|
|
433
433
|
prefix: "/settings-user-role/v2/sub-users"
|
|
434
|
-
}),
|
|
434
|
+
}), Kt = {
|
|
435
435
|
// Sub User
|
|
436
|
-
getSubUserList: (t, e) =>
|
|
437
|
-
getSubUserOptions: (t, e) =>
|
|
436
|
+
getSubUserList: (t, e) => T.get(`/${t}`, { params: e }),
|
|
437
|
+
getSubUserOptions: (t, e) => T.get(`/${t}/option`, { params: e }),
|
|
438
438
|
postCreateSubUser: (t, e) => {
|
|
439
439
|
const r = { "Content-Type": "multipart/form-data" };
|
|
440
|
-
return
|
|
440
|
+
return T.post(`/${t}`, e, { headers: r });
|
|
441
441
|
},
|
|
442
|
-
putSubUserSetActiveBulk: (t) =>
|
|
443
|
-
deleteSubUser: (t) =>
|
|
442
|
+
putSubUserSetActiveBulk: (t) => T.put("/set-active-bulk", t),
|
|
443
|
+
deleteSubUser: (t) => T.delete("/bulk", { data: { subUserIds: t } }),
|
|
444
444
|
putEditSubUser: (t, e) => {
|
|
445
445
|
const r = { "Content-Type": "multipart/form-data" };
|
|
446
|
-
return
|
|
446
|
+
return T.put(`/${t}`, e, { headers: r });
|
|
447
447
|
},
|
|
448
|
-
getBorrowedAsset: (t, e) =>
|
|
449
|
-
getBorrowedAssetOptions: (t, e) =>
|
|
450
|
-
},
|
|
448
|
+
getBorrowedAsset: (t, e) => T.get(`/${t}/borrowed-asset`, { params: e }),
|
|
449
|
+
getBorrowedAssetOptions: (t, e) => T.get(`/${t}/borrowed-asset/options`, { params: e })
|
|
450
|
+
}, y = s({
|
|
451
451
|
prefix: "/settings-user-role-go/v2/users"
|
|
452
|
-
}),
|
|
452
|
+
}), zt = {
|
|
453
453
|
// Sub User
|
|
454
|
-
getSubUserList: (t, e) =>
|
|
455
|
-
getSubUserOptions: (t, e) =>
|
|
454
|
+
getSubUserList: (t, e) => y.get(`/${t}/sub-users`, { params: e }),
|
|
455
|
+
getSubUserOptions: (t, e) => y.get(`/${t}/sub-users/option`, { params: e }),
|
|
456
456
|
postCreateSubUser: (t, e) => {
|
|
457
457
|
const r = { "Content-Type": "multipart/form-data" };
|
|
458
|
-
return
|
|
458
|
+
return y.post(`/${t}/sub-users`, e, { headers: r });
|
|
459
459
|
},
|
|
460
|
-
putSubUserSetActiveBulk: (t, e) =>
|
|
461
|
-
deleteSubUser: (t, e) =>
|
|
460
|
+
putSubUserSetActiveBulk: (t, e) => y.put(`/${t}/sub-users/set-active-bulk`, e),
|
|
461
|
+
deleteSubUser: (t, e) => y.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
|
|
462
462
|
putEditSubUser: (t, e, r) => {
|
|
463
463
|
const a = { "Content-Type": "multipart/form-data" };
|
|
464
|
-
return
|
|
464
|
+
return y.put(`/${t}/sub-users/${e}`, r, {
|
|
465
465
|
headers: a
|
|
466
466
|
});
|
|
467
467
|
},
|
|
468
|
-
getBorrowedAsset: (t, e, r) =>
|
|
468
|
+
getBorrowedAsset: (t, e, r) => y.get(`/${t}/sub-users/${e}/borrowed-asset`, {
|
|
469
469
|
params: r
|
|
470
470
|
}),
|
|
471
|
-
getBorrowedAssetOptions: (t, e, r) =>
|
|
471
|
+
getBorrowedAssetOptions: (t, e, r) => y.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
|
|
472
472
|
params: r
|
|
473
473
|
}),
|
|
474
|
-
getAssignedAsset: (t, e, r) =>
|
|
474
|
+
getAssignedAsset: (t, e, r) => y.get(`/${t}/sub-users/${e}/assigned-asset`, {
|
|
475
475
|
params: r
|
|
476
476
|
}),
|
|
477
|
-
getAssignedAssetOptions: (t, e, r) =>
|
|
477
|
+
getAssignedAssetOptions: (t, e, r) => y.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
|
|
478
478
|
params: r
|
|
479
479
|
})
|
|
480
|
-
},
|
|
480
|
+
}, Q = s({
|
|
481
481
|
env: "APP_ADMIN_API",
|
|
482
482
|
prefix: "/settings-attribute/languages"
|
|
483
|
-
}),
|
|
483
|
+
}), Zt = {
|
|
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) => Q.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 Q.get("/dropdown");
|
|
497
497
|
return t.data;
|
|
498
498
|
},
|
|
499
499
|
/**
|
|
@@ -503,7 +503,7 @@ const vt = { 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 Q.get(
|
|
507
507
|
"/dropdown/" + t
|
|
508
508
|
);
|
|
509
509
|
return e.data;
|
|
@@ -515,61 +515,61 @@ const vt = { 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 Q.post("/translate", {
|
|
519
519
|
q: t,
|
|
520
520
|
target: e
|
|
521
521
|
});
|
|
522
522
|
return r.data.translations[t];
|
|
523
523
|
}
|
|
524
|
-
},
|
|
524
|
+
}, ut = s({
|
|
525
525
|
prefix: "/dashboard/v2/dashboard"
|
|
526
|
-
}),
|
|
527
|
-
getLatestTask: (t) =>
|
|
528
|
-
getSummary: (t) =>
|
|
529
|
-
}, K = s({
|
|
530
|
-
prefix: "/alias-code/api/alias-code"
|
|
531
|
-
}), Yt = {
|
|
532
|
-
getAliasCode: () => K.get("/"),
|
|
533
|
-
postAliasCode: (t) => K.post("/", t),
|
|
534
|
-
getAliasCodeList: (t) => K.get(`/${t.object}/code-list`, { params: t })
|
|
526
|
+
}), Xt = {
|
|
527
|
+
getLatestTask: (t) => ut.get("/latest-task", { params: t }),
|
|
528
|
+
getSummary: (t) => ut.get("/summary", { params: t })
|
|
535
529
|
}, z = s({
|
|
536
|
-
prefix: "/
|
|
537
|
-
}),
|
|
530
|
+
prefix: "/alias-code/api/alias-code"
|
|
531
|
+
}), te = {
|
|
538
532
|
getAliasCode: () => z.get("/"),
|
|
539
533
|
postAliasCode: (t) => z.post("/", t),
|
|
540
534
|
getAliasCodeList: (t) => z.get(`/${t.object}/code-list`, { params: t })
|
|
541
|
-
},
|
|
542
|
-
prefix: "/settings-attribute/v2/
|
|
543
|
-
}),
|
|
544
|
-
|
|
545
|
-
|
|
535
|
+
}, Z = s({
|
|
536
|
+
prefix: "/settings-attribute-go/v2/alias-code"
|
|
537
|
+
}), ee = {
|
|
538
|
+
getAliasCode: () => Z.get("/"),
|
|
539
|
+
postAliasCode: (t) => Z.post("/", t),
|
|
540
|
+
getAliasCodeList: (t) => Z.get(`/${t.object}/code-list`, { params: t })
|
|
546
541
|
}, gt = s({
|
|
547
|
-
prefix: "/settings-attribute
|
|
548
|
-
}),
|
|
542
|
+
prefix: "/settings-attribute/v2/general-settings"
|
|
543
|
+
}), re = {
|
|
549
544
|
getGeneralSettings: () => gt.get("/"),
|
|
550
545
|
putUpdateGeneralSettings: (t) => gt.put("/", t)
|
|
551
|
-
},
|
|
546
|
+
}, pt = s({
|
|
547
|
+
prefix: "/settings-attribute-go/v2/general-settings"
|
|
548
|
+
}), se = {
|
|
549
|
+
getGeneralSettings: () => pt.get("/"),
|
|
550
|
+
putUpdateGeneralSettings: (t) => pt.put("/", t)
|
|
551
|
+
}, L = s({
|
|
552
552
|
prefix: "/settings-attribute/v2/custom-field"
|
|
553
|
-
}),
|
|
554
|
-
getCustomField: async (t) =>
|
|
555
|
-
getCustomFieldsByCategory: (t, e) =>
|
|
556
|
-
getOptions: async (t) =>
|
|
557
|
-
postCreateCustomField: async (t, e) =>
|
|
558
|
-
putEditCustomField: async (t, e, r) =>
|
|
559
|
-
putChangeStatus: async (t, e) =>
|
|
560
|
-
deleteCustomField: async (t) =>
|
|
561
|
-
},
|
|
553
|
+
}), ne = {
|
|
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
|
+
}, q = s({
|
|
562
562
|
prefix: "/settings-attribute-go/v2/custom-field"
|
|
563
|
-
}),
|
|
564
|
-
getCustomField: async (t) =>
|
|
565
|
-
getOptions: async (t) =>
|
|
566
|
-
postCreateCustomField: async (t, e) =>
|
|
567
|
-
putEditCustomField: async (t, e, r) =>
|
|
568
|
-
putChangeStatus: async (t, e) =>
|
|
569
|
-
deleteCustomField: async (t) =>
|
|
563
|
+
}), oe = {
|
|
564
|
+
getCustomField: async (t) => q.get("/", { params: t }),
|
|
565
|
+
getOptions: async (t) => q.get("/options", { params: t }),
|
|
566
|
+
postCreateCustomField: async (t, e) => q.post("/", e, { params: t }),
|
|
567
|
+
putEditCustomField: async (t, e, r) => q.put(`/${r}`, e, { params: t }),
|
|
568
|
+
putChangeStatus: async (t, e) => q.put("/bulk", e, { params: t }),
|
|
569
|
+
deleteCustomField: async (t) => q.delete("/bulk", { params: t })
|
|
570
570
|
}, X = ({ headers: t = {}, params: e = {} } = {}) => {
|
|
571
571
|
const r = k("APP_COUNTRY_STATE_API"), a = k("APP_COUNTRY_STATE_API_KEY");
|
|
572
|
-
return
|
|
572
|
+
return $t.create({
|
|
573
573
|
baseURL: `${r}/v1`,
|
|
574
574
|
headers: {
|
|
575
575
|
"Content-type": "application/json",
|
|
@@ -578,38 +578,38 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
578
578
|
},
|
|
579
579
|
params: e
|
|
580
580
|
});
|
|
581
|
-
},
|
|
581
|
+
}, ae = {
|
|
582
582
|
getCountry: () => X().get("/countries"),
|
|
583
583
|
getState: (t) => X().get(`/countries/${t}/states`),
|
|
584
584
|
getCity: (t, e) => X().get(`/countries/${t}/states/${e}/cities`)
|
|
585
|
-
},
|
|
585
|
+
}, v = s({
|
|
586
586
|
prefix: "/routine/v2"
|
|
587
|
-
}),
|
|
588
|
-
getList: (t) =>
|
|
589
|
-
postList: (t) =>
|
|
590
|
-
putList: (t, e) =>
|
|
591
|
-
putActivate: (t) =>
|
|
592
|
-
getDetailList: (t) =>
|
|
593
|
-
getListOptions: (t) =>
|
|
594
|
-
deleteList: (t) =>
|
|
587
|
+
}), ie = {
|
|
588
|
+
getList: (t) => v.get("/service-center", { params: t }),
|
|
589
|
+
postList: (t) => v.post("/service-center", t),
|
|
590
|
+
putList: (t, e) => v.put(`/service-center/${t}`, e),
|
|
591
|
+
putActivate: (t) => v.put("/service-center/bulk", t),
|
|
592
|
+
getDetailList: (t) => v.get(`/service-center/${t}`),
|
|
593
|
+
getListOptions: (t) => v.get("/service-center/options", { params: t }),
|
|
594
|
+
deleteList: (t) => v.delete("/service-center", { params: t }),
|
|
595
595
|
// Activities
|
|
596
|
-
getActivities: (t) =>
|
|
597
|
-
getActivityOptions: (t) =>
|
|
598
|
-
getActivityDetail: (t) =>
|
|
599
|
-
getActivityLog: (t) =>
|
|
600
|
-
},
|
|
596
|
+
getActivities: (t) => v.get("/service-activities", { params: t }),
|
|
597
|
+
getActivityOptions: (t) => v.get("/service-activities/options", { params: t }),
|
|
598
|
+
getActivityDetail: (t) => v.get(`/service-activities/${t}`),
|
|
599
|
+
getActivityLog: (t) => v.get(`/service-activities/${t}/activity-log`)
|
|
600
|
+
}, Pt = s({
|
|
601
601
|
prefix: "/settings-attribute/v2/brands"
|
|
602
|
-
}),
|
|
603
|
-
getDropdown: (t) =>
|
|
604
|
-
},
|
|
602
|
+
}), ue = {
|
|
603
|
+
getDropdown: (t) => Pt.get("/dropdown", { params: t })
|
|
604
|
+
}, B = s({
|
|
605
605
|
prefix: "/file-manager/v2"
|
|
606
|
-
}),
|
|
606
|
+
}), ge = {
|
|
607
607
|
/**
|
|
608
608
|
* Get storage information.
|
|
609
609
|
*
|
|
610
610
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
611
611
|
*/
|
|
612
|
-
getStorageInformation: () =>
|
|
612
|
+
getStorageInformation: () => B.get("/files/storage"),
|
|
613
613
|
/**
|
|
614
614
|
* Get file manager data.
|
|
615
615
|
*
|
|
@@ -617,7 +617,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
617
617
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
618
618
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
619
619
|
*/
|
|
620
|
-
getFileManager: (t, e) =>
|
|
620
|
+
getFileManager: (t, e) => B.get(`/${t}`, { params: e }),
|
|
621
621
|
/**
|
|
622
622
|
* Get file manager options.
|
|
623
623
|
*
|
|
@@ -625,7 +625,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
625
625
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
626
626
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
627
627
|
*/
|
|
628
|
-
getFileManagerOption: (t, e) =>
|
|
628
|
+
getFileManagerOption: (t, e) => B.get(`/${t}/options`, { params: e }),
|
|
629
629
|
/**
|
|
630
630
|
* Recover files.
|
|
631
631
|
*
|
|
@@ -633,7 +633,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
633
633
|
* @param {object} body - The body of the request.
|
|
634
634
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
635
635
|
*/
|
|
636
|
-
recoverFiles: (t, e) =>
|
|
636
|
+
recoverFiles: (t, e) => B.put(`/${t}/recover`, e),
|
|
637
637
|
/**
|
|
638
638
|
* Delete files.
|
|
639
639
|
*
|
|
@@ -641,7 +641,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
641
641
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
642
642
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
643
643
|
*/
|
|
644
|
-
deleteFiles: (t, e) =>
|
|
644
|
+
deleteFiles: (t, e) => B.delete(`/${t}`, { params: e }),
|
|
645
645
|
/**
|
|
646
646
|
* Delete files permanently.
|
|
647
647
|
*
|
|
@@ -649,16 +649,16 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
649
649
|
* @param {object} body - The body of the request.
|
|
650
650
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
651
651
|
*/
|
|
652
|
-
deletePermanently: (t, e) =>
|
|
653
|
-
},
|
|
652
|
+
deletePermanently: (t, e) => B.delete(`/${t}/delete-permanent`, { params: e })
|
|
653
|
+
}, x = s({
|
|
654
654
|
prefix: "/utility/v2"
|
|
655
|
-
}),
|
|
655
|
+
}), pe = {
|
|
656
656
|
/**
|
|
657
657
|
* Get storage information.
|
|
658
658
|
*
|
|
659
659
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
660
660
|
*/
|
|
661
|
-
getStorageInformation: () =>
|
|
661
|
+
getStorageInformation: () => x.get("/files/storage"),
|
|
662
662
|
/**
|
|
663
663
|
* Get file manager data.
|
|
664
664
|
*
|
|
@@ -666,7 +666,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
666
666
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
667
667
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
668
668
|
*/
|
|
669
|
-
getFileManager: (t, e) =>
|
|
669
|
+
getFileManager: (t, e) => x.get(`/${t}`, { params: e }),
|
|
670
670
|
/**
|
|
671
671
|
* Get file manager options.
|
|
672
672
|
*
|
|
@@ -674,7 +674,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
674
674
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
675
675
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
676
676
|
*/
|
|
677
|
-
getFileManagerOption: (t, e) =>
|
|
677
|
+
getFileManagerOption: (t, e) => x.get(`/${t}/options`, { params: e }),
|
|
678
678
|
/**
|
|
679
679
|
* Recover files.
|
|
680
680
|
*
|
|
@@ -682,7 +682,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
682
682
|
* @param {object} body - The body of the request.
|
|
683
683
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
684
684
|
*/
|
|
685
|
-
recoverFiles: (t, e) =>
|
|
685
|
+
recoverFiles: (t, e) => x.put(`/${t}/recover`, e),
|
|
686
686
|
/**
|
|
687
687
|
* Delete files.
|
|
688
688
|
*
|
|
@@ -690,7 +690,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
690
690
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
691
691
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
692
692
|
*/
|
|
693
|
-
deleteFiles: (t, e) =>
|
|
693
|
+
deleteFiles: (t, e) => x.delete(`/${t}`, { params: e }),
|
|
694
694
|
/**
|
|
695
695
|
* Delete files permanently.
|
|
696
696
|
*
|
|
@@ -698,21 +698,21 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
698
698
|
* @param {object} body - The body of the request.
|
|
699
699
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
700
700
|
*/
|
|
701
|
-
deletePermanently: (t, e) =>
|
|
702
|
-
},
|
|
701
|
+
deletePermanently: (t, e) => x.delete(`/${t}/delete-permanent`, { params: e })
|
|
702
|
+
}, I = s({
|
|
703
703
|
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) =>
|
|
704
|
+
}), ce = {
|
|
705
|
+
getData: (t) => I.get("/", { params: t }),
|
|
706
|
+
getDataOptions: (t) => I.get("/options", { params: t }),
|
|
707
|
+
getActivityLogData: (t) => I.get("/activity-log", { params: t }),
|
|
708
|
+
getActivityLogOptions: (t) => I.get("/activity-log/options", { params: t }),
|
|
709
|
+
getDataById: (t) => I.get(`/${t}`),
|
|
710
|
+
getChangeLog: (t) => I.get(`/${t.id}/change-log`, { params: t }),
|
|
711
|
+
getChangeLogOptions: (t) => I.get(`/${t.id}/change-log/options`, { params: t }),
|
|
712
|
+
putData: (t, e) => I.put(`/${t}`, e)
|
|
713
713
|
}, l = s({
|
|
714
714
|
prefix: "/settings-user-role/v2"
|
|
715
|
-
}),
|
|
715
|
+
}), le = {
|
|
716
716
|
/**
|
|
717
717
|
* Retrieves the transaction role for the given group and transaction name.
|
|
718
718
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
@@ -798,7 +798,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
798
798
|
}
|
|
799
799
|
}, d = s({
|
|
800
800
|
prefix: "/settings-user-role-go/v2"
|
|
801
|
-
}),
|
|
801
|
+
}), de = {
|
|
802
802
|
/**
|
|
803
803
|
* Retrieves the transaction role for the given group and transaction name.
|
|
804
804
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
@@ -882,61 +882,61 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
882
882
|
}
|
|
883
883
|
return d.put("/system-roles", t);
|
|
884
884
|
}
|
|
885
|
-
},
|
|
885
|
+
}, N = s({
|
|
886
886
|
prefix: "/settings-attribute/v2/open-api"
|
|
887
|
-
}),
|
|
888
|
-
getOpenAPIDocs: (t) =>
|
|
889
|
-
putGenerateToken: () =>
|
|
887
|
+
}), Ae = {
|
|
888
|
+
getOpenAPIDocs: (t) => N.get(`/${t.doc}`),
|
|
889
|
+
putGenerateToken: () => N.put("/generate"),
|
|
890
890
|
// This is if the dummy was not dummy
|
|
891
|
-
getToken: () =>
|
|
892
|
-
putRequestOpenAPI: () =>
|
|
893
|
-
putCancelRequestOpenAPI: () =>
|
|
894
|
-
},
|
|
891
|
+
getToken: () => N.get(""),
|
|
892
|
+
putRequestOpenAPI: () => N.put("/request"),
|
|
893
|
+
putCancelRequestOpenAPI: () => N.put("/cancel-request")
|
|
894
|
+
}, Y = s({
|
|
895
895
|
prefix: "/settings-attribute-go/v2/open-api"
|
|
896
|
-
}),
|
|
897
|
-
putGenerateToken: () =>
|
|
896
|
+
}), $e = {
|
|
897
|
+
putGenerateToken: () => Y.put("/generate"),
|
|
898
898
|
// This is if the dummy was not dummy
|
|
899
|
-
getToken: () =>
|
|
900
|
-
putRequestOpenAPI: () =>
|
|
901
|
-
putCancelRequestOpenAPI: () =>
|
|
902
|
-
}, O = s({
|
|
903
|
-
prefix: "/import/v2"
|
|
904
|
-
}), ge = {
|
|
905
|
-
getImport: (t, e) => O.get(`/${t}`, { params: e }),
|
|
906
|
-
postImportTemporary: (t, e) => {
|
|
907
|
-
const r = { "Content-Type": "multipart/form-data" };
|
|
908
|
-
return O.post(`/${t}/temporary`, e, { headers: r });
|
|
909
|
-
},
|
|
910
|
-
deleteImportTemporary: (t, e) => O.delete(`/${t}/temporary`, { data: e }),
|
|
911
|
-
postDuplicateImport: (t, e) => O.post(`/${t}/duplicate`, e),
|
|
912
|
-
putEditImport: (t, e) => O.put(`/${t}`, e),
|
|
913
|
-
postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
|
|
914
|
-
putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
|
|
899
|
+
getToken: () => Y.get(""),
|
|
900
|
+
putRequestOpenAPI: () => Y.put("/request"),
|
|
901
|
+
putCancelRequestOpenAPI: () => Y.put("/cancel-request")
|
|
915
902
|
}, C = s({
|
|
916
|
-
prefix: "/import
|
|
917
|
-
}),
|
|
903
|
+
prefix: "/import/v2"
|
|
904
|
+
}), me = {
|
|
918
905
|
getImport: (t, e) => C.get(`/${t}`, { params: e }),
|
|
919
906
|
postImportTemporary: (t, e) => {
|
|
920
907
|
const r = { "Content-Type": "multipart/form-data" };
|
|
921
908
|
return C.post(`/${t}/temporary`, e, { headers: r });
|
|
922
909
|
},
|
|
923
|
-
deleteImportTemporary: (t, e) => C.delete(`/${t}/temporary`, {
|
|
910
|
+
deleteImportTemporary: (t, e) => C.delete(`/${t}/temporary`, { data: e }),
|
|
924
911
|
postDuplicateImport: (t, e) => C.post(`/${t}/duplicate`, e),
|
|
925
912
|
putEditImport: (t, e) => C.put(`/${t}`, e),
|
|
926
913
|
postImport: (t, e, r) => C.post(t, r, { signal: e.signal }),
|
|
927
914
|
putImportCancelProgress: (t) => C.put(`/${t}/cancel-progress`)
|
|
928
|
-
},
|
|
915
|
+
}, O = s({
|
|
916
|
+
prefix: "/import-go/v2"
|
|
917
|
+
}), ve = {
|
|
918
|
+
getImport: (t, e) => O.get(`/${t}`, { params: e }),
|
|
919
|
+
postImportTemporary: (t, e) => {
|
|
920
|
+
const r = { "Content-Type": "multipart/form-data" };
|
|
921
|
+
return O.post(`/${t}/temporary`, e, { headers: r });
|
|
922
|
+
},
|
|
923
|
+
deleteImportTemporary: (t, e) => O.delete(`/${t}/temporary`, { params: e }),
|
|
924
|
+
postDuplicateImport: (t, e) => O.post(`/${t}/duplicate`, e),
|
|
925
|
+
putEditImport: (t, e) => O.put(`/${t}`, e),
|
|
926
|
+
postImport: (t, e, r) => O.post(t, r, { signal: e.signal }),
|
|
927
|
+
putImportCancelProgress: (t) => O.put(`/${t}/cancel-progress`)
|
|
928
|
+
}, G = s({
|
|
929
929
|
prefix: "/settings-attribute/v2/asset-name"
|
|
930
|
-
}),
|
|
931
|
-
getDropdown: (t) =>
|
|
932
|
-
getAssetNameDetail: (t) =>
|
|
933
|
-
getAssetsByAssetName: (t, e) =>
|
|
934
|
-
getAssetNameList: (t) =>
|
|
935
|
-
getUnpairedAssetName: (t) =>
|
|
936
|
-
getOptions: (t) =>
|
|
930
|
+
}), ye = {
|
|
931
|
+
getDropdown: (t) => G.get("/dropdown", { params: t }),
|
|
932
|
+
getAssetNameDetail: (t) => G.get(`/${t}`),
|
|
933
|
+
getAssetsByAssetName: (t, e) => G.get(`/${t}/list-asset`, { params: e }),
|
|
934
|
+
getAssetNameList: (t) => G.get("/", { params: t }),
|
|
935
|
+
getUnpairedAssetName: (t) => G.get("/unpaired", { params: t }),
|
|
936
|
+
getOptions: (t) => G.get("/options", { params: t })
|
|
937
937
|
}, o = s({
|
|
938
938
|
prefix: "/assignment/v2"
|
|
939
|
-
}),
|
|
939
|
+
}), Se = {
|
|
940
940
|
getPreListData: (t) => o.get("/prelist", { params: t }),
|
|
941
941
|
getPreListOptions: (t) => o.get("/prelist/options", { params: t }),
|
|
942
942
|
getRequestData: (t) => o.get("/prelist/request", { params: t }),
|
|
@@ -994,7 +994,7 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
994
994
|
putCancelReportById: async (t) => o.put(`/transaction/request/${t.id}/cancel-report`)
|
|
995
995
|
}, b = s({
|
|
996
996
|
prefix: "/assignment-go/v2"
|
|
997
|
-
}),
|
|
997
|
+
}), fe = {
|
|
998
998
|
getTransactionData: (t) => b.get("/transaction", { params: t }),
|
|
999
999
|
getTransactionOptions: (t) => b.get("/transaction/options", { params: t }),
|
|
1000
1000
|
getDetailTransactionLog: (t) => b.get(`/transaction/request/${t}/transaction-log`),
|
|
@@ -1002,39 +1002,78 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1002
1002
|
putTransaction: (t) => b.put("/transaction", t),
|
|
1003
1003
|
putUnassignTransaction: (t) => b.put("/transaction/unassign", t),
|
|
1004
1004
|
putCancelReport: (t) => b.put("/transaction/request/cancel-report", t)
|
|
1005
|
-
},
|
|
1005
|
+
}, A = s({
|
|
1006
1006
|
prefix: "/license/v2"
|
|
1007
|
-
}),
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1007
|
+
}), Tt = {
|
|
1008
|
+
getTotalLicense: () => A.get("/total-license"),
|
|
1009
|
+
getPurchasedData: (t) => A.get("/purchase", { params: t }),
|
|
1010
|
+
getCompanyData: () => A.get("/company")
|
|
1011
|
+
}, It = {
|
|
1012
|
+
getFixedAssetPerGroup: (t, e) => A.get(`/${t}/fixed-asset-list`, { params: e }),
|
|
1013
|
+
getLicenseAddonAssetList: (t, e, r) => A.get(`${e}/asset-list/${t}`, { params: r }),
|
|
1014
|
+
// Get list of assets those already have licenses
|
|
1015
|
+
getFixedAssetList: (t, e, r) => A.get(`/${t}/fixed-asset-list/${e}`, { params: r }),
|
|
1016
|
+
removeAddOnLicense: (t, e) => A.put(`/remove-license/${e}`, t),
|
|
1017
|
+
addNewLicenses: (t, e) => A.put(`/add-license/${e}`, t),
|
|
1018
|
+
deleteAssetData: (t) => A.delete("/assets", { data: t }),
|
|
1019
|
+
putManageLicense: (t, e) => A.put(
|
|
1020
|
+
`/manage/${t.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()}`,
|
|
1021
|
+
e
|
|
1022
|
+
)
|
|
1023
|
+
}, Ut = {
|
|
1024
|
+
getGroupQuota: (t) => A.get(`/${t}/allocation-quota`),
|
|
1025
|
+
getSubGroupQuota: (t) => A.get(`/${t}/subgroup-quota`),
|
|
1026
|
+
editSubGroupQuota: (t, e) => A.put(`/${t}/set-group-quota`, e)
|
|
1027
|
+
}, Lt = {
|
|
1028
|
+
getConcurrentUserData: () => A.get("/concurrent-user-data"),
|
|
1029
|
+
getConcurrentUserList: (t) => A.get("/concurrent-user", { params: t }),
|
|
1030
|
+
putLogoutUsers: (t) => A.put("/concurrent-user", t)
|
|
1031
|
+
}, Pe = {
|
|
1032
|
+
getFilterOptions: (t, e) => A.get(`/${t}`, { params: e }),
|
|
1033
|
+
...Tt,
|
|
1034
|
+
...Lt,
|
|
1035
|
+
...Ut,
|
|
1036
|
+
...It
|
|
1037
|
+
}, h = s({
|
|
1038
|
+
prefix: "/license-go/v2"
|
|
1039
|
+
}), Ct = {
|
|
1040
|
+
getTotalLicense: () => h.get("/total-license"),
|
|
1041
|
+
getPurchasedData: (t) => h.get("/purchase", { params: t })
|
|
1042
|
+
}, Ot = {
|
|
1043
|
+
getConcurrentUserData: () => h.get("/concurrent-user-data"),
|
|
1044
|
+
getConcurrentUserList: (t) => h.get("/concurrent-user", { params: t }),
|
|
1045
|
+
putLogoutUsers: (t) => h.put("/concurrent-user", t)
|
|
1046
|
+
}, Te = {
|
|
1047
|
+
getFilterOptions: (t, e) => h.get(`/${t}`, { params: e }),
|
|
1048
|
+
getFixedAssetList: (t, e) => h.get(`/${t}/fixed-asset-list`, { params: e }),
|
|
1049
|
+
...Ct,
|
|
1050
|
+
...Ot
|
|
1051
|
+
}, ct = s({
|
|
1013
1052
|
prefix: "/repair/v2/damage"
|
|
1014
|
-
}),
|
|
1053
|
+
}), Ie = {
|
|
1015
1054
|
putReportDamage: (t, e) => {
|
|
1016
1055
|
const r = { "Content-Type": "multipart/form-data" };
|
|
1017
|
-
return
|
|
1056
|
+
return ct.put(`/report-damage/${t}`, e, { headers: r });
|
|
1018
1057
|
},
|
|
1019
1058
|
/**
|
|
1020
1059
|
* To mark as repaired.
|
|
1021
1060
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
1022
1061
|
*/
|
|
1023
|
-
putMarkAsRepaired: (t) =>
|
|
1024
|
-
},
|
|
1062
|
+
putMarkAsRepaired: (t) => ct.put("/repair", t)
|
|
1063
|
+
}, M = s({
|
|
1025
1064
|
prefix: "/damage-repair-ticketing/v2"
|
|
1026
|
-
}),
|
|
1027
|
-
getDamageReportList: (t) =>
|
|
1028
|
-
getDamageReportListFilterOptions: (t) =>
|
|
1029
|
-
getDamageReportDetail: (t) =>
|
|
1065
|
+
}), Ue = {
|
|
1066
|
+
getDamageReportList: (t) => M.get("/", { params: t }),
|
|
1067
|
+
getDamageReportListFilterOptions: (t) => M.get("/options", { params: t }),
|
|
1068
|
+
getDamageReportDetail: (t) => M.get(`/${t}`),
|
|
1030
1069
|
putReportDamage: (t, e) => {
|
|
1031
1070
|
const r = { "Content-Type": "multipart/form-data" };
|
|
1032
|
-
return
|
|
1071
|
+
return M.put(`/${t}/report-damage`, e, { headers: r });
|
|
1033
1072
|
},
|
|
1034
|
-
putMarkAsRepaired: (t) =>
|
|
1073
|
+
putMarkAsRepaired: (t) => M.put("/repair", t)
|
|
1035
1074
|
}, n = s({
|
|
1036
1075
|
prefix: "/borrowing/v2"
|
|
1037
|
-
}),
|
|
1076
|
+
}), Le = {
|
|
1038
1077
|
getTaskBorrowing: async (t) => n.get("/transaction/my-asset/task", { params: t }),
|
|
1039
1078
|
getTaskBorrowingOptions: async (t) => n.get("/transaction/my-asset/task/options", { params: t }),
|
|
1040
1079
|
getBorrowedAsset: async (t) => n.get("/transaction/my-asset/borrowed-asset", { params: t }),
|
|
@@ -1098,248 +1137,249 @@ const vt = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE
|
|
|
1098
1137
|
id: t
|
|
1099
1138
|
}),
|
|
1100
1139
|
putBorrowingEditExtension: (t) => n.put("/transaction/request/duration", t)
|
|
1101
|
-
},
|
|
1140
|
+
}, lt = s({
|
|
1102
1141
|
prefix: "/assets/v2"
|
|
1103
|
-
}),
|
|
1104
|
-
getHistory: async (t) =>
|
|
1105
|
-
getHistoryOptions: async (t) =>
|
|
1106
|
-
},
|
|
1142
|
+
}), Ce = {
|
|
1143
|
+
getHistory: async (t) => lt.get("/my-asset", { params: t }),
|
|
1144
|
+
getHistoryOptions: async (t) => lt.get("/my-asset/options", { params: t })
|
|
1145
|
+
}, J = s({
|
|
1107
1146
|
prefix: "/repair/v2"
|
|
1108
|
-
}),
|
|
1109
|
-
getRepairList: (t) =>
|
|
1110
|
-
getFilterOptions: (t) =>
|
|
1111
|
-
getAssetRepairTicketing: (t, e) =>
|
|
1112
|
-
putConfirmRepair: (t) =>
|
|
1113
|
-
},
|
|
1147
|
+
}), Oe = {
|
|
1148
|
+
getRepairList: (t) => J.get("/my-asset/repair", { params: t }),
|
|
1149
|
+
getFilterOptions: (t) => J.get("/my-asset/repair/options", { params: t }),
|
|
1150
|
+
getAssetRepairTicketing: (t, e) => J.get(`/repair/${t}/asset-repair-detail`, { params: e }),
|
|
1151
|
+
putConfirmRepair: (t) => J.put(`/repair/${t}/confirm-repair`)
|
|
1152
|
+
}, tt = s({
|
|
1114
1153
|
env: "APP_GLOBAL_SETTINGS_API",
|
|
1115
1154
|
prefix: "/v1/global-settings/auth"
|
|
1116
|
-
}),
|
|
1155
|
+
}), D = s({
|
|
1117
1156
|
env: "APP_TAGSAMURAI_API",
|
|
1118
1157
|
prefix: "/settings-user-role/v2/auth"
|
|
1119
|
-
}),
|
|
1120
|
-
var e, r, a,
|
|
1121
|
-
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((
|
|
1122
|
-
},
|
|
1158
|
+
}), dt = (t) => {
|
|
1159
|
+
var e, r, a, S;
|
|
1160
|
+
return ((e = t.response) == null ? void 0 : e.status) === 401 || ((r = t.response) == null ? void 0 : r.status) === 500 || ((S = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : S.message) === "jwt malformed" ? (window.onblur = void 0, window.onfocus = void 0, window.sessionExpired = !0, window.dispatchEvent(new CustomEvent("user:expired"))) : Promise.reject(t);
|
|
1161
|
+
}, be = {
|
|
1123
1162
|
login: (t) => {
|
|
1124
1163
|
const e = { ...t, isMobile: !1 };
|
|
1125
|
-
return
|
|
1164
|
+
return tt.post("/login", e);
|
|
1126
1165
|
},
|
|
1127
|
-
reLoginGlobal: (t) => (
|
|
1128
|
-
reLogin: (t) => (
|
|
1166
|
+
reLoginGlobal: (t) => (tt.interceptors.response.use((e) => e, dt), tt.post("/login", t)),
|
|
1167
|
+
reLogin: (t) => (D.interceptors.response.use((e) => e, dt), D.post("/login", t)),
|
|
1129
1168
|
requestOTP: (t) => {
|
|
1130
1169
|
const e = { email: t };
|
|
1131
|
-
return
|
|
1170
|
+
return D.post("/request-otp", e);
|
|
1132
1171
|
},
|
|
1133
1172
|
requestResetPassLink: (t) => {
|
|
1134
1173
|
const e = { email: t };
|
|
1135
|
-
return
|
|
1174
|
+
return D.post("/request-reset-link", e);
|
|
1136
1175
|
},
|
|
1137
|
-
setPassword: (t) =>
|
|
1138
|
-
verifyToken: (t) =>
|
|
1176
|
+
setPassword: (t) => D.post("/set-password", t),
|
|
1177
|
+
verifyToken: (t) => D.get(`/verify-token/${t}`),
|
|
1139
1178
|
confirmEmailChange: (t) => {
|
|
1140
1179
|
const e = { token: t };
|
|
1141
|
-
return
|
|
1180
|
+
return D.put("/confirm-email-change/confirm", e);
|
|
1142
1181
|
}
|
|
1143
|
-
},
|
|
1144
|
-
prefix: `${
|
|
1145
|
-
}),
|
|
1146
|
-
prefix: `${
|
|
1147
|
-
}),
|
|
1148
|
-
prefix: `${
|
|
1149
|
-
}),
|
|
1182
|
+
}, nt = "/transfer/v2", W = s({
|
|
1183
|
+
prefix: `${nt}/prelist`
|
|
1184
|
+
}), $ = s({
|
|
1185
|
+
prefix: `${nt}/transaction`
|
|
1186
|
+
}), H = s({
|
|
1187
|
+
prefix: `${nt}/approval`
|
|
1188
|
+
}), De = {
|
|
1150
1189
|
// ------ TRANSACTION ------
|
|
1151
|
-
getTransactions: (t) =>
|
|
1152
|
-
getTransactionDetail: (t) =>
|
|
1153
|
-
getTransactionDetailAssets: (t, e) =>
|
|
1190
|
+
getTransactions: (t) => $.get("/", { params: t }),
|
|
1191
|
+
getTransactionDetail: (t) => $.get(`/${t}`),
|
|
1192
|
+
getTransactionDetailAssets: (t, e) => $.get(`/${t}/request`, { params: e }),
|
|
1154
1193
|
getRequestFilterOptions: (t, e) => {
|
|
1155
1194
|
const r = {};
|
|
1156
|
-
return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0),
|
|
1195
|
+
return e ? r[e] = !0 : (r.nameOptions = !0, r.brandOptions = !0, r.modelOptions = !0), $.get(`/${t}/request/options`, { params: r });
|
|
1157
1196
|
},
|
|
1158
|
-
getTransactionLog: (t) =>
|
|
1197
|
+
getTransactionLog: (t) => $.get(`/request/${t}/transaction-log`),
|
|
1159
1198
|
getTransactionOptions: (t) => {
|
|
1160
1199
|
const e = {};
|
|
1161
|
-
return e[t] = !0,
|
|
1200
|
+
return e[t] = !0, $.get("/options", { params: e });
|
|
1162
1201
|
},
|
|
1163
|
-
postCreateTransaction: (t) =>
|
|
1202
|
+
postCreateTransaction: (t) => $.post("/", t),
|
|
1164
1203
|
putCancelTransactions: (t) => {
|
|
1165
1204
|
const e = { id: t };
|
|
1166
|
-
return
|
|
1205
|
+
return $.put("/cancel", e);
|
|
1167
1206
|
},
|
|
1168
|
-
putUpdateTransaction: (t, e) =>
|
|
1207
|
+
putUpdateTransaction: (t, e) => $.put(`/${t}`, e),
|
|
1169
1208
|
putCancelRequests: (t) => {
|
|
1170
1209
|
const e = { id: t };
|
|
1171
|
-
return
|
|
1210
|
+
return $.put("/request/cancel", e);
|
|
1172
1211
|
},
|
|
1173
|
-
getHistoryByTransaction: (t) =>
|
|
1212
|
+
getHistoryByTransaction: (t) => $.get("/history", { params: t }),
|
|
1174
1213
|
getHistoryByTransactionOptions: (t) => {
|
|
1175
1214
|
const e = {};
|
|
1176
|
-
return e[t] = !0,
|
|
1215
|
+
return e[t] = !0, $.get("/history/options", { params: e });
|
|
1177
1216
|
},
|
|
1178
|
-
getHistoryByAsset: (t) =>
|
|
1217
|
+
getHistoryByAsset: (t) => $.get("/history/by-asset", { params: t }),
|
|
1179
1218
|
getHistoryByAssetOptions: (t) => {
|
|
1180
1219
|
const e = {};
|
|
1181
|
-
return e[t] = !0,
|
|
1220
|
+
return e[t] = !0, $.get("/history/by-asset/options", { params: e });
|
|
1182
1221
|
},
|
|
1183
|
-
getApproverList: (t) =>
|
|
1184
|
-
putHandoverTransaction: (t, e) =>
|
|
1222
|
+
getApproverList: (t) => $.get(`/${t}/approval-history`),
|
|
1223
|
+
putHandoverTransaction: (t, e) => $.put(`/${t}/handover`, e),
|
|
1185
1224
|
// ------ PRELIST ------
|
|
1186
|
-
getPrelist: (t) =>
|
|
1187
|
-
postAddPrelistData: (t) =>
|
|
1188
|
-
deletePrelist: (t) =>
|
|
1225
|
+
getPrelist: (t) => W.get("/", { params: t }),
|
|
1226
|
+
postAddPrelistData: (t) => W.post("/", t),
|
|
1227
|
+
deletePrelist: (t) => W.delete("/", {
|
|
1189
1228
|
params: {
|
|
1190
1229
|
id: JSON.stringify(t)
|
|
1191
1230
|
}
|
|
1192
1231
|
}),
|
|
1193
1232
|
getPrelistAssets: (t) => {
|
|
1194
1233
|
const e = { id: t };
|
|
1195
|
-
return
|
|
1234
|
+
return W.get("/request", { params: e });
|
|
1196
1235
|
},
|
|
1197
1236
|
// APPROVAL
|
|
1198
1237
|
getApprovals: (t, e) => {
|
|
1199
1238
|
const r = { ...e, status: JSON.stringify([t]) };
|
|
1200
|
-
return
|
|
1239
|
+
return H.get("/", { params: r });
|
|
1201
1240
|
},
|
|
1202
1241
|
getApprovalOptions: (t, e) => {
|
|
1203
1242
|
const r = {
|
|
1204
1243
|
status: JSON.stringify([t])
|
|
1205
1244
|
};
|
|
1206
|
-
return r[e] = !0,
|
|
1245
|
+
return r[e] = !0, H.get("/options", { params: r });
|
|
1207
1246
|
},
|
|
1208
1247
|
getApprovalDetail: (t, e) => {
|
|
1209
1248
|
const r = {
|
|
1210
1249
|
groupType: e
|
|
1211
1250
|
};
|
|
1212
|
-
return
|
|
1251
|
+
return H.get(`/transaction/${t}`, { params: r });
|
|
1213
1252
|
},
|
|
1214
1253
|
getApprovalDetailOptions: (t, e, r) => {
|
|
1215
1254
|
const a = {};
|
|
1216
|
-
return a[e] = !0, a.groupType = r,
|
|
1255
|
+
return a[e] = !0, a.groupType = r, H.get(`/transaction/${t}/options`, { params: a });
|
|
1217
1256
|
},
|
|
1218
|
-
putUpdateApproval: (t) =>
|
|
1219
|
-
},
|
|
1257
|
+
putUpdateApproval: (t) => H.put("/approve", t)
|
|
1258
|
+
}, et = s({
|
|
1220
1259
|
prefix: "/disposal/v2/report"
|
|
1221
|
-
}),
|
|
1222
|
-
getReportedDisposal: (t) =>
|
|
1223
|
-
postReportDisposal: (t) =>
|
|
1224
|
-
deleteCancelReport: (t) =>
|
|
1225
|
-
},
|
|
1260
|
+
}), Re = {
|
|
1261
|
+
getReportedDisposal: (t) => et.get("", { params: t }),
|
|
1262
|
+
postReportDisposal: (t) => et.post("", t),
|
|
1263
|
+
deleteCancelReport: (t) => et.delete("/cancel-report", { params: t })
|
|
1264
|
+
}, K = s({
|
|
1226
1265
|
prefix: "/transfer-go/v2"
|
|
1227
|
-
}),
|
|
1228
|
-
getTransactionData: (t) =>
|
|
1229
|
-
getTransactionOptions: (t) =>
|
|
1230
|
-
getTransactionLog: (t) =>
|
|
1231
|
-
postCreateTransaction: (t) =>
|
|
1232
|
-
},
|
|
1266
|
+
}), we = {
|
|
1267
|
+
getTransactionData: (t) => K.get("/transaction", { params: t }),
|
|
1268
|
+
getTransactionOptions: (t) => K.get("/transaction/options", { params: t }),
|
|
1269
|
+
getTransactionLog: (t) => K.get(`/transaction/request/${t}/transaction-log`),
|
|
1270
|
+
postCreateTransaction: (t) => K.post("/transaction", t)
|
|
1271
|
+
}, rt = s({
|
|
1233
1272
|
prefix: "/audit/v2"
|
|
1234
|
-
}),
|
|
1235
|
-
getAudit: (t, e) =>
|
|
1236
|
-
getAuditOption: (t, e) =>
|
|
1273
|
+
}), he = {
|
|
1274
|
+
getAudit: (t, e) => rt.get(`/audit/schedule/asset-detail/${t}`, { params: e }),
|
|
1275
|
+
getAuditOption: (t, e) => rt.get(`/audit/schedule/asset-detail/${t}/options`, {
|
|
1237
1276
|
params: e
|
|
1238
1277
|
}),
|
|
1239
|
-
putSetActive: (t) =>
|
|
1240
|
-
},
|
|
1278
|
+
putSetActive: (t) => rt.put("/audit/asset/activation", t)
|
|
1279
|
+
}, st = s({
|
|
1241
1280
|
prefix: "/routine/v2"
|
|
1242
|
-
}),
|
|
1243
|
-
getMaintenance: (t, e) =>
|
|
1244
|
-
getMaintenanceOption: (t, e) =>
|
|
1245
|
-
putSetActive: (t) =>
|
|
1246
|
-
},
|
|
1281
|
+
}), qe = {
|
|
1282
|
+
getMaintenance: (t, e) => st.get(`/routine-task/${t}`, { params: e }),
|
|
1283
|
+
getMaintenanceOption: (t, e) => st.get(`/routine-task/${t}/options`, { params: e }),
|
|
1284
|
+
putSetActive: (t) => st.put("/maintenable-asset/set-active", t)
|
|
1285
|
+
}, bt = s({
|
|
1247
1286
|
prefix: "/settings-attribute/v2/models"
|
|
1248
|
-
}),
|
|
1249
|
-
getDropdown: (t) =>
|
|
1250
|
-
},
|
|
1287
|
+
}), Be = {
|
|
1288
|
+
getDropdown: (t) => bt.get("/dropdown", { params: t })
|
|
1289
|
+
}, At = s({
|
|
1251
1290
|
prefix: "/settings-attribute/v2/transaction-settings"
|
|
1252
|
-
}),
|
|
1253
|
-
getData: () =>
|
|
1254
|
-
putData: (t) =>
|
|
1255
|
-
},
|
|
1291
|
+
}), xe = {
|
|
1292
|
+
getData: () => At.get("/"),
|
|
1293
|
+
putData: (t) => At.put("/", t)
|
|
1294
|
+
}, R = s({
|
|
1256
1295
|
prefix: "/borrowing-go/v2"
|
|
1257
|
-
}),
|
|
1258
|
-
getTransactions: async (t) =>
|
|
1259
|
-
getTransactionOptions: async (t) =>
|
|
1260
|
-
getTransactionLog: async (t) =>
|
|
1261
|
-
postTransaction: async (t) =>
|
|
1262
|
-
putTransaction: async (t) =>
|
|
1296
|
+
}), Ge = {
|
|
1297
|
+
getTransactions: async (t) => R.get("/transaction", { params: t }),
|
|
1298
|
+
getTransactionOptions: async (t) => R.get("/transaction/options", { params: t }),
|
|
1299
|
+
getTransactionLog: async (t) => R.get(`/transaction/request/${t}/transaction-log`),
|
|
1300
|
+
postTransaction: async (t) => R.post("/transaction", t),
|
|
1301
|
+
putTransaction: async (t) => R.put("/transaction", t),
|
|
1263
1302
|
putTransactionReturn: async (t) => {
|
|
1264
1303
|
const e = { id: t };
|
|
1265
|
-
return
|
|
1304
|
+
return R.put("/transaction/return", e);
|
|
1266
1305
|
},
|
|
1267
1306
|
putCancelReport: async (t) => {
|
|
1268
1307
|
const e = { id: t };
|
|
1269
|
-
return
|
|
1308
|
+
return R.put("/transaction/request/cancel-report", e);
|
|
1270
1309
|
}
|
|
1271
|
-
},
|
|
1310
|
+
}, w = s({
|
|
1272
1311
|
prefix: "/disposal-go/v2/"
|
|
1273
|
-
}),
|
|
1274
|
-
getReportedDisposal: (t) =>
|
|
1275
|
-
getReportedDisposalOptions: (t) =>
|
|
1276
|
-
postReportDisposal: (t) =>
|
|
1277
|
-
deleteCancelReport: (t) => (t.isFromDisposal = "false",
|
|
1278
|
-
deleteDeclineReport: (t) => (t.isFromDisposal = "true",
|
|
1279
|
-
getDisposalHistory: (t, e) =>
|
|
1280
|
-
getHistoryByAssetOptions: (t) =>
|
|
1312
|
+
}), ke = {
|
|
1313
|
+
getReportedDisposal: (t) => w.get("/report", { params: t }),
|
|
1314
|
+
getReportedDisposalOptions: (t) => w.get("/report/options", { params: t }),
|
|
1315
|
+
postReportDisposal: (t) => w.post("/report", t),
|
|
1316
|
+
deleteCancelReport: (t) => (t.isFromDisposal = "false", w.delete("/cancel-report", { params: t })),
|
|
1317
|
+
deleteDeclineReport: (t) => (t.isFromDisposal = "true", w.delete("/report/cancel-report", { params: t })),
|
|
1318
|
+
getDisposalHistory: (t, e) => w.get(`/disposal/history${t}`, { params: e }),
|
|
1319
|
+
getHistoryByAssetOptions: (t) => w.get("/disposal/history/by-asset/options", { params: t })
|
|
1281
1320
|
};
|
|
1282
1321
|
export {
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
Gt as
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1322
|
+
te as AliasCodeServices,
|
|
1323
|
+
ee as AliasCodeServicesGo,
|
|
1324
|
+
ye as AssetNameServices,
|
|
1325
|
+
Et as AssetServices,
|
|
1326
|
+
Ft as AssetServicesGo,
|
|
1327
|
+
Se as AssignmentServices,
|
|
1328
|
+
fe as AssignmentServicesGo,
|
|
1329
|
+
he as AuditServices,
|
|
1330
|
+
be as AuthServices,
|
|
1331
|
+
Le as BorrowServices,
|
|
1332
|
+
Ge as BorrowServicesGo,
|
|
1333
|
+
ue as BrandServices,
|
|
1334
|
+
kt as ChangelogServices,
|
|
1335
|
+
ae as CountryStateServices,
|
|
1336
|
+
ne as CustomFieldServices,
|
|
1337
|
+
oe as CustomFieldServicesGo,
|
|
1338
|
+
Ie as DamageServices,
|
|
1339
|
+
Ue as DamageServicesGo,
|
|
1340
|
+
Xt as DashboardServices,
|
|
1341
|
+
Re as DisposalServices,
|
|
1342
|
+
ke as DisposalServicesGo,
|
|
1343
|
+
ge as FileManagerServices,
|
|
1344
|
+
pe as FileManagerServicesGo,
|
|
1345
|
+
re as GeneralSettingsServices,
|
|
1346
|
+
se as GeneralSettingsServicesGo,
|
|
1347
|
+
Bt as GroupCategoryServices,
|
|
1348
|
+
xt as GroupCategoryServicesGo,
|
|
1349
|
+
Zt as I18nService,
|
|
1350
|
+
me as ImportServices,
|
|
1351
|
+
ve as ImportServicesGo,
|
|
1352
|
+
Pe as LicenseServices,
|
|
1353
|
+
Te as LicenseServicesGo,
|
|
1354
|
+
_t as LogServicesGo,
|
|
1355
|
+
Nt as MissingServices,
|
|
1356
|
+
Mt as MissingServicesGo,
|
|
1357
|
+
Be as ModelTypeServices,
|
|
1358
|
+
Ce as MyAssetServices,
|
|
1359
|
+
Gt as NotificationApprovalServices,
|
|
1360
|
+
Ht as NotificationServices,
|
|
1361
|
+
Vt as NotificationServicesGo,
|
|
1362
|
+
Ae as OpenAPIServices,
|
|
1363
|
+
$e as OpenAPIServicesGo,
|
|
1364
|
+
ce as ReaderServices,
|
|
1365
|
+
Oe as RepairServices,
|
|
1366
|
+
le as RoleServices,
|
|
1367
|
+
de as RoleServicesGo,
|
|
1368
|
+
qe as RoutineServices,
|
|
1369
|
+
ie as ServiceCenterServices,
|
|
1370
|
+
jt as SessionLogServices,
|
|
1371
|
+
Kt as SubUserServices,
|
|
1372
|
+
zt as SubUserServicesGo,
|
|
1373
|
+
Qt as TAGServices,
|
|
1374
|
+
Yt as TrackingServices,
|
|
1375
|
+
xe as TransactionSettingServices,
|
|
1376
|
+
De as TransferServices,
|
|
1377
|
+
we as TransferServicesGo,
|
|
1378
|
+
Jt as UserServices,
|
|
1379
|
+
Wt as UserServicesGo,
|
|
1380
|
+
qt as getAssetsFile,
|
|
1341
1381
|
k as getBaseURL,
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1382
|
+
ht as getImageURL,
|
|
1383
|
+
wt as getImageURLGo,
|
|
1384
|
+
Rt as queryParamsStringfy
|
|
1345
1385
|
};
|