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