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