@tagsamurai/fats-api-services 1.0.0-alpha.92 → 1.0.0-alpha.93
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 +291 -270
- package/api-services.system.js +1 -1
- package/main.d.ts +2 -0
- package/package.json +1 -1
- package/src/services/oldMyAsset.service.d.ts +7 -0
package/api-services.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
const { env: r = "APP_API", prefix: a = "", headers:
|
|
4
|
-
return
|
|
5
|
-
...
|
|
6
|
-
baseURL:
|
|
7
|
-
headers: e ?
|
|
1
|
+
import J from "axios";
|
|
2
|
+
const z = { 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" }, D = (t = "APP_API") => z["VITE_" + t], n = (t = {}, e = !1) => {
|
|
3
|
+
const { env: r = "APP_API", prefix: a = "", headers: f = {}, ...R } = t, K = `${D(r)}${a}`, F = JSON.parse(localStorage.getItem("user") ?? "{}"), W = F.jwt ?? F.token ?? "";
|
|
4
|
+
return J.create({
|
|
5
|
+
...R,
|
|
6
|
+
baseURL: K,
|
|
7
|
+
headers: e ? f : {
|
|
8
8
|
"Content-Type": "application/json",
|
|
9
|
-
Authorization: `Bearer ${
|
|
10
|
-
...
|
|
9
|
+
Authorization: `Bearer ${W}`,
|
|
10
|
+
...f
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
|
-
},
|
|
13
|
+
}, st = (t) => {
|
|
14
14
|
if (!t || typeof t == "string")
|
|
15
15
|
return;
|
|
16
16
|
const e = {};
|
|
@@ -21,158 +21,158 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
21
21
|
[r]: t[r]
|
|
22
22
|
});
|
|
23
23
|
}), e;
|
|
24
|
-
},
|
|
24
|
+
}, nt = (t, e, r) => {
|
|
25
25
|
if (!t) return;
|
|
26
|
-
const a =
|
|
26
|
+
const a = D("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 R = new URLSearchParams();
|
|
29
|
+
return e && (R.set("width", e.toString()), R.set("height", r ? r == null ? void 0 : r.toString() : e.toString())), `${f}?${R.toString()}`;
|
|
30
30
|
}
|
|
31
|
-
return
|
|
32
|
-
},
|
|
31
|
+
return f;
|
|
32
|
+
}, ot = (t) => {
|
|
33
33
|
if (!t) return;
|
|
34
|
-
const e =
|
|
34
|
+
const e = D("APP_TAGSAMURAI_API");
|
|
35
35
|
return t.startsWith("http") ? t : `${e}/file-manager/v2/files/${t}`;
|
|
36
|
-
},
|
|
37
|
-
`${
|
|
38
|
-
),
|
|
36
|
+
}, at = async (t, e = "excel") => await fetch(
|
|
37
|
+
`${D("APP_ASSETS_URL")}/${e}/${t}`
|
|
38
|
+
), A = n({
|
|
39
39
|
prefix: "/settings-attribute/v2",
|
|
40
40
|
env: "APP_TAGSAMURAI_API"
|
|
41
|
-
}),
|
|
41
|
+
}), it = {
|
|
42
42
|
getGroupCategory: (t, e) => {
|
|
43
43
|
const r = t === "category" ? t : "groups";
|
|
44
|
-
return
|
|
44
|
+
return A.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 A.get(`/${a}/${e}`, { params: r });
|
|
49
49
|
},
|
|
50
50
|
getNames: (t) => {
|
|
51
51
|
const e = t === "category" ? t : "groups";
|
|
52
|
-
return
|
|
52
|
+
return A.get(`/${e}/names`);
|
|
53
53
|
},
|
|
54
54
|
getCodes: (t) => {
|
|
55
55
|
const e = t === "category" ? t : "groups";
|
|
56
|
-
return
|
|
56
|
+
return A.get(`/${e}/codes`);
|
|
57
57
|
},
|
|
58
58
|
postCreateGroupCategory: (t, e) => {
|
|
59
59
|
const r = t === "category" ? t : "groups";
|
|
60
|
-
return
|
|
60
|
+
return A.post(`/${r}`, e);
|
|
61
61
|
},
|
|
62
62
|
putEditGroupCategory: (t, e, r) => {
|
|
63
63
|
const a = t === "category" ? t : "groups";
|
|
64
|
-
return
|
|
64
|
+
return A.put(`/${a}/${r}`, e);
|
|
65
65
|
},
|
|
66
|
-
putMoveGroup: (t, e) =>
|
|
67
|
-
putEditBulkGroups: async (t) =>
|
|
66
|
+
putMoveGroup: (t, e) => A.put(`/groups/${e}/move-group`, t),
|
|
67
|
+
putEditBulkGroups: async (t) => A.put("/groups/bulk", t),
|
|
68
68
|
deleteGroupCategory: (t, e, r) => {
|
|
69
69
|
const a = t === "category" ? t : "groups";
|
|
70
|
-
return
|
|
70
|
+
return A.delete(`/${a}/${r}`, { data: e });
|
|
71
71
|
}
|
|
72
|
-
},
|
|
72
|
+
}, S = n({
|
|
73
73
|
prefix: "/settings-attribute-go/v2"
|
|
74
|
-
}),
|
|
74
|
+
}), ut = {
|
|
75
75
|
getGroupCategory: (t, e) => {
|
|
76
76
|
const r = t === "category" ? t : "groups";
|
|
77
|
-
return
|
|
77
|
+
return S.get(`/${r}/tree`, { params: e });
|
|
78
78
|
},
|
|
79
79
|
getGroupCategoryList: (t, e) => {
|
|
80
80
|
const r = t === "category" ? t : "groups";
|
|
81
|
-
return
|
|
81
|
+
return S.get(`/${r}/${e}`);
|
|
82
82
|
},
|
|
83
83
|
getNames: (t) => {
|
|
84
84
|
const e = t === "category" ? t : "groups";
|
|
85
|
-
return
|
|
85
|
+
return S.get(`/${e}/names`);
|
|
86
86
|
},
|
|
87
87
|
getCodes: (t) => {
|
|
88
88
|
const e = t === "category" ? t : "groups";
|
|
89
|
-
return
|
|
89
|
+
return S.get(`/${e}/codes`);
|
|
90
90
|
},
|
|
91
91
|
postCreateGroupCategory: (t, e) => {
|
|
92
92
|
const r = t === "category" ? t : "groups";
|
|
93
|
-
return
|
|
93
|
+
return S.post(`/${r}`, e);
|
|
94
94
|
},
|
|
95
95
|
putEditGroupCategory: (t, e, r) => {
|
|
96
96
|
const a = t === "category" ? t : "groups";
|
|
97
|
-
return
|
|
97
|
+
return S.put(`/${a}/${r}`, e);
|
|
98
98
|
},
|
|
99
99
|
deleteGroupCategory: (t, e, r) => {
|
|
100
100
|
const a = t === "category" ? t : "groups";
|
|
101
|
-
return
|
|
101
|
+
return S.delete(`/${a}/${r}`, { data: e });
|
|
102
102
|
}
|
|
103
|
-
},
|
|
103
|
+
}, Z = n({
|
|
104
104
|
prefix: "/v2",
|
|
105
105
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
106
|
-
}),
|
|
107
|
-
getTotalApprovals: () =>
|
|
108
|
-
},
|
|
106
|
+
}), gt = {
|
|
107
|
+
getTotalApprovals: () => Z.get("/approval/count")
|
|
108
|
+
}, G = n({
|
|
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) =>
|
|
117
|
-
},
|
|
111
|
+
}), ct = {
|
|
112
|
+
getActionLog: (t) => G.get("/change-log", { params: t }),
|
|
113
|
+
getActionLogOption: (t) => G.get("/change-log/options", { params: t }),
|
|
114
|
+
getSessionLogList: (t) => G.get("/session-log", { params: t }),
|
|
115
|
+
getUserDetailSystemLogList: (t) => G.get("/change-log", { params: t }),
|
|
116
|
+
getUserDetailSystemLogOption: (t) => G.get("/change-log/options", { params: t })
|
|
117
|
+
}, y = n({
|
|
118
118
|
prefix: "/utility/v2"
|
|
119
|
-
}), gt = {
|
|
120
|
-
getActionLog: (t) => A.get("/change-log", { params: t }),
|
|
121
|
-
getActionLogOption: (t) => A.get("/change-log/options", { params: t }),
|
|
122
|
-
getSessionLogList: (t) => A.get("/session-log", { params: t }),
|
|
123
|
-
getUserDetailSystemLogList: (t) => A.get("/change-log", { params: t }),
|
|
124
|
-
getUserDetailSystemLogOption: (t) => A.get("/change-log/options", { params: t }),
|
|
125
|
-
getUserDetailUserLogBorrowingList: (t, e) => A.get(`/borrowing-log/${t}`, { params: e }),
|
|
126
|
-
getUserDetailUserLogAssignmentList: (t, e) => A.get(`/assignment-log/${t}`, { params: e }),
|
|
127
|
-
getUserDetailUserLogBorrowingOption: (t, e) => A.get(`/borrowing-log/${t}/options`, { params: e }),
|
|
128
|
-
getUserDetailUserLogAssignmentOption: (t, e) => A.get(`/assignment-log/${t}/options`, { params: e })
|
|
129
|
-
}, c = n({
|
|
130
|
-
prefix: "/assets/v2/assets"
|
|
131
119
|
}), pt = {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
120
|
+
getActionLog: (t) => y.get("/change-log", { params: t }),
|
|
121
|
+
getActionLogOption: (t) => y.get("/change-log/options", { params: t }),
|
|
122
|
+
getSessionLogList: (t) => y.get("/session-log", { params: t }),
|
|
123
|
+
getUserDetailSystemLogList: (t) => y.get("/change-log", { params: t }),
|
|
124
|
+
getUserDetailSystemLogOption: (t) => y.get("/change-log/options", { params: t }),
|
|
125
|
+
getUserDetailUserLogBorrowingList: (t, e) => y.get(`/borrowing-log/${t}`, { params: e }),
|
|
126
|
+
getUserDetailUserLogAssignmentList: (t, e) => y.get(`/assignment-log/${t}`, { params: e }),
|
|
127
|
+
getUserDetailUserLogBorrowingOption: (t, e) => y.get(`/borrowing-log/${t}/options`, { params: e }),
|
|
128
|
+
getUserDetailUserLogAssignmentOption: (t, e) => y.get(`/assignment-log/${t}/options`, { params: e })
|
|
129
|
+
}, p = n({
|
|
130
|
+
prefix: "/assets/v2/assets"
|
|
131
|
+
}), lt = {
|
|
132
|
+
getScanTag: (t) => p.get("/scan", { params: { tag: t } }),
|
|
133
|
+
getAllAssets: (t) => p.get("/", { params: t }),
|
|
134
|
+
getAllAssetsOptions: (t) => p.get("/options", { params: t }),
|
|
135
|
+
getAvailableAssets: (t) => p.get("/available", { params: t }),
|
|
136
|
+
scanAsset: (t) => p.get("", { params: { tag: t } }),
|
|
137
|
+
getAssetsById: (t, e) => p.get("/by-id", { params: { _id: t, ...e } }),
|
|
138
|
+
getOptions: (t, e) => p.get(t ? `/${t}/options` : "/options", { params: e }),
|
|
139
|
+
getUnlinkedAssets: (t) => p.get("/unlinked", { params: t }),
|
|
140
|
+
getAssetDetail: (t, e) => p.get(`/${t}`, { params: e }),
|
|
141
|
+
getLinkedAssetFamily: (t) => p.get("/family", { params: { id: t } }),
|
|
142
142
|
matchAssetWithTag: (t, e) => {
|
|
143
143
|
const r = {
|
|
144
144
|
_id: JSON.stringify([t]),
|
|
145
145
|
tag: e
|
|
146
146
|
};
|
|
147
|
-
return
|
|
147
|
+
return p.get("/by-id", { params: r });
|
|
148
148
|
}
|
|
149
|
-
},
|
|
149
|
+
}, N = n({
|
|
150
150
|
prefix: "/tracking/v2/missing"
|
|
151
|
-
}),
|
|
151
|
+
}), dt = {
|
|
152
152
|
putFoundAsset: (t, e) => {
|
|
153
153
|
const r = { ids: [t], serialNumber: e };
|
|
154
|
-
return
|
|
154
|
+
return N.put("/found", r);
|
|
155
155
|
},
|
|
156
|
-
putReportMissing: (t, e) =>
|
|
157
|
-
},
|
|
156
|
+
putReportMissing: (t, e) => N.put(`/report-missing/${t}`, e)
|
|
157
|
+
}, M = n({
|
|
158
158
|
prefix: "/v2/notification",
|
|
159
159
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
160
|
-
}),
|
|
161
|
-
getNotifications: (t) => N.get("/", { params: t }),
|
|
162
|
-
readNotification: (t) => N.put(`/${t}`)
|
|
163
|
-
}, M = n({
|
|
164
|
-
prefix: "/utility/v2/notification"
|
|
165
|
-
}), dt = {
|
|
160
|
+
}), $t = {
|
|
166
161
|
getNotifications: (t) => M.get("/", { params: t }),
|
|
167
162
|
readNotification: (t) => M.put(`/${t}`)
|
|
168
|
-
},
|
|
163
|
+
}, V = n({
|
|
164
|
+
prefix: "/utility/v2/notification"
|
|
165
|
+
}), At = {
|
|
166
|
+
getNotifications: (t) => V.get("/", { params: t }),
|
|
167
|
+
readNotification: (t) => V.put(`/${t}`)
|
|
168
|
+
}, X = n({
|
|
169
169
|
prefix: "/v2/session-log",
|
|
170
170
|
env: "APP_LOGS_NOTIFICATION_API"
|
|
171
|
-
}),
|
|
172
|
-
postLogout: () =>
|
|
171
|
+
}), yt = {
|
|
172
|
+
postLogout: () => X.post("/logout")
|
|
173
173
|
}, o = n({
|
|
174
174
|
prefix: "/tag/v2"
|
|
175
|
-
}),
|
|
175
|
+
}), vt = {
|
|
176
176
|
getScanQR: (t) => o.get("/qr", { params: { tag: t } }),
|
|
177
177
|
getScanRFID: (t) => o.get("/rfid", { params: { tag: t } }),
|
|
178
178
|
getRFIDQRTAG: (t) => o.get("/rfid-qr/scan", { params: t }),
|
|
@@ -208,9 +208,9 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
208
208
|
},
|
|
209
209
|
postScanLog: (t) => o.post("/scan-log", t),
|
|
210
210
|
putReportTAG: (t, e) => o.put(`/tag-transaction/report/${t}`, e)
|
|
211
|
-
},
|
|
211
|
+
}, q = n({
|
|
212
212
|
prefix: "/tracking/v2/tracking"
|
|
213
|
-
}),
|
|
213
|
+
}), mt = {
|
|
214
214
|
putFoundAsset: (t, e, r) => {
|
|
215
215
|
const a = {
|
|
216
216
|
tag: t,
|
|
@@ -218,13 +218,13 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
218
218
|
serialNumber: r,
|
|
219
219
|
type: "Global"
|
|
220
220
|
};
|
|
221
|
-
return
|
|
221
|
+
return q.put("/found", { params: a });
|
|
222
222
|
},
|
|
223
|
-
putReportPermanentlyMissing: (t, e) =>
|
|
224
|
-
getTrackingDetail: (t) =>
|
|
223
|
+
putReportPermanentlyMissing: (t, e) => q.put(`/report-permanently-missing/${t}`, e),
|
|
224
|
+
getTrackingDetail: (t) => q.get(`/${t}`)
|
|
225
225
|
}, i = n({
|
|
226
226
|
prefix: "/settings-user-role/v2"
|
|
227
|
-
}),
|
|
227
|
+
}), St = {
|
|
228
228
|
reLogin: (t) => i.post("/auth/login", t),
|
|
229
229
|
changePassword: (t) => i.put("/users/change-password", t),
|
|
230
230
|
/**
|
|
@@ -268,7 +268,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
268
268
|
getUserDetailUserAssetAssignedOption: (t, e) => i.get(`/user-detail/${t}/assets/assigned/option`, { params: e })
|
|
269
269
|
}, u = n({
|
|
270
270
|
prefix: "/settings-user-role-go/v2"
|
|
271
|
-
}),
|
|
271
|
+
}), Pt = {
|
|
272
272
|
/**
|
|
273
273
|
* Retrieves the user list as dropdown options.
|
|
274
274
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
@@ -310,7 +310,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
310
310
|
getUserDetailUserAssetAssignedOption: (t, e) => u.get(`/users/${t}/assigned-asset/option`, { params: e })
|
|
311
311
|
}, v = n({
|
|
312
312
|
prefix: "/settings-user-role/v2/sub-users"
|
|
313
|
-
}),
|
|
313
|
+
}), Ut = {
|
|
314
314
|
// Sub User
|
|
315
315
|
getSubUserList: (t, e) => v.get(`/${t}`, { params: e }),
|
|
316
316
|
getSubUserOptions: (t, e) => v.get(`/${t}/option`, { params: e }),
|
|
@@ -326,53 +326,53 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
326
326
|
},
|
|
327
327
|
getBorrowedAsset: (t, e) => v.get(`/${t}/borrowed-asset`, { params: e }),
|
|
328
328
|
getBorrowedAssetOptions: (t, e) => v.get(`/${t}/borrowed-asset/options`, { params: e })
|
|
329
|
-
},
|
|
329
|
+
}, $ = n({
|
|
330
330
|
prefix: "/settings-user-role-go/v2/users"
|
|
331
|
-
}),
|
|
331
|
+
}), It = {
|
|
332
332
|
// Sub User
|
|
333
|
-
getSubUserList: (t, e) =>
|
|
334
|
-
getSubUserOptions: (t, e) =>
|
|
333
|
+
getSubUserList: (t, e) => $.get(`/${t}/sub-users`, { params: e }),
|
|
334
|
+
getSubUserOptions: (t, e) => $.get(`/${t}/sub-users/option`, { params: e }),
|
|
335
335
|
postCreateSubUser: (t, e) => {
|
|
336
336
|
const r = { "Content-Type": "multipart/form-data" };
|
|
337
|
-
return
|
|
337
|
+
return $.post(`/${t}/sub-users`, e, { headers: r });
|
|
338
338
|
},
|
|
339
|
-
putSubUserSetActiveBulk: (t, e) =>
|
|
340
|
-
deleteSubUser: (t, e) =>
|
|
339
|
+
putSubUserSetActiveBulk: (t, e) => $.put(`/${t}/sub-users/set-active-bulk`, e),
|
|
340
|
+
deleteSubUser: (t, e) => $.put(`/${t}/sub-users/bulk`, { subUserIds: e }),
|
|
341
341
|
putEditSubUser: (t, e, r) => {
|
|
342
342
|
const a = { "Content-Type": "multipart/form-data" };
|
|
343
|
-
return
|
|
343
|
+
return $.put(`/${t}/sub-users/${e}`, r, {
|
|
344
344
|
headers: a
|
|
345
345
|
});
|
|
346
346
|
},
|
|
347
|
-
getBorrowedAsset: (t, e, r) =>
|
|
347
|
+
getBorrowedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset`, {
|
|
348
348
|
params: r
|
|
349
349
|
}),
|
|
350
|
-
getBorrowedAssetOptions: (t, e, r) =>
|
|
350
|
+
getBorrowedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/borrowed-asset/options`, {
|
|
351
351
|
params: r
|
|
352
352
|
}),
|
|
353
|
-
getAssignedAsset: (t, e, r) =>
|
|
353
|
+
getAssignedAsset: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset`, {
|
|
354
354
|
params: r
|
|
355
355
|
}),
|
|
356
|
-
getAssignedAssetOptions: (t, e, r) =>
|
|
356
|
+
getAssignedAssetOptions: (t, e, r) => $.get(`/${t}/sub-users/${e}/assigned-asset/options`, {
|
|
357
357
|
params: r
|
|
358
358
|
})
|
|
359
|
-
},
|
|
359
|
+
}, h = n({
|
|
360
360
|
env: "APP_ADMIN_API",
|
|
361
361
|
prefix: "/settings-attribute/languages"
|
|
362
|
-
}),
|
|
362
|
+
}), ft = {
|
|
363
363
|
/**
|
|
364
364
|
* Fetch all translation messages for a specific locale.
|
|
365
365
|
* @param locale The locale code (e.g., 'en', 'id').
|
|
366
366
|
* @returns A promise resolving to a key-value record of messages.
|
|
367
367
|
*/
|
|
368
|
-
getMessages: (t) =>
|
|
368
|
+
getMessages: (t) => h.get(`/${t}/translations`),
|
|
369
369
|
/**
|
|
370
370
|
* Fetch all available lang options for LanguageDropdown and LanguageSwitcher
|
|
371
371
|
*
|
|
372
372
|
* @returns Promise Array of options
|
|
373
373
|
*/
|
|
374
374
|
getLanguageOptions: async () => {
|
|
375
|
-
const { data: t } = await
|
|
375
|
+
const { data: t } = await h.get(
|
|
376
376
|
"/dropdown"
|
|
377
377
|
);
|
|
378
378
|
return t.data;
|
|
@@ -384,7 +384,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
384
384
|
* @returns Promise LanguageMeta
|
|
385
385
|
*/
|
|
386
386
|
getLanguageOptionMeta: async (t) => {
|
|
387
|
-
const { data: e } = await
|
|
387
|
+
const { data: e } = await h.get(
|
|
388
388
|
"/dropdown/" + t
|
|
389
389
|
);
|
|
390
390
|
return e.data;
|
|
@@ -396,60 +396,60 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
396
396
|
* @param locale Target locale code.
|
|
397
397
|
*/
|
|
398
398
|
translateText: async (t, e) => {
|
|
399
|
-
const { data: r } = await
|
|
399
|
+
const { data: r } = await h.post("/translate", {
|
|
400
400
|
q: t,
|
|
401
401
|
target: e
|
|
402
402
|
});
|
|
403
403
|
return r.data.translations[t];
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, H = n({
|
|
406
406
|
prefix: "/dashboard/v2/dashboard"
|
|
407
|
-
}),
|
|
408
|
-
getLatestTask: (t) =>
|
|
409
|
-
getSummary: (t) =>
|
|
410
|
-
},
|
|
407
|
+
}), Ct = {
|
|
408
|
+
getLatestTask: (t) => H.get("/latest-task", { params: t }),
|
|
409
|
+
getSummary: (t) => H.get("/summary", { params: t })
|
|
410
|
+
}, E = n({
|
|
411
411
|
prefix: "/alias-code/api/alias-code"
|
|
412
|
-
}),
|
|
413
|
-
getAliasCode: () =>
|
|
414
|
-
postAliasCode: (t) =>
|
|
415
|
-
getAliasCodeList: (t) =>
|
|
416
|
-
},
|
|
412
|
+
}), Lt = {
|
|
413
|
+
getAliasCode: () => E.get("/"),
|
|
414
|
+
postAliasCode: (t) => E.post("/", t),
|
|
415
|
+
getAliasCodeList: (t) => E.get(`/${t.object}/code-list`, { params: t })
|
|
416
|
+
}, k = n({
|
|
417
417
|
prefix: "/settings-attribute-go/v2/alias-code"
|
|
418
|
-
}),
|
|
419
|
-
getAliasCode: () =>
|
|
420
|
-
postAliasCode: (t) =>
|
|
421
|
-
getAliasCodeList: (t) =>
|
|
418
|
+
}), Tt = {
|
|
419
|
+
getAliasCode: () => k.get("/"),
|
|
420
|
+
postAliasCode: (t) => k.post("/", t),
|
|
421
|
+
getAliasCodeList: (t) => k.get(`/${t.object}/code-list`, { params: t })
|
|
422
422
|
}, j = n({
|
|
423
423
|
prefix: "/settings-attribute/v2/general-settings"
|
|
424
|
-
}),
|
|
424
|
+
}), Ot = {
|
|
425
425
|
getGeneralSettings: () => j.get("/"),
|
|
426
426
|
putUpdateGeneralSettings: (t) => j.put("/", t)
|
|
427
427
|
}, Q = n({
|
|
428
428
|
prefix: "/settings-attribute-go/v2/general-settings"
|
|
429
|
-
}),
|
|
429
|
+
}), bt = {
|
|
430
430
|
getGeneralSettings: () => Q.get("/"),
|
|
431
431
|
putUpdateGeneralSettings: (t) => Q.put("/", t)
|
|
432
|
-
}, f = n({
|
|
433
|
-
prefix: "/settings-attribute/v2/custom-field"
|
|
434
|
-
}), bt = {
|
|
435
|
-
getCustomField: async (t) => f.get("/", { params: t }),
|
|
436
|
-
getOptions: async (t) => f.get("/options", { params: t }),
|
|
437
|
-
postCreateCustomField: async (t, e) => f.post("/", e, { params: t }),
|
|
438
|
-
putEditCustomField: async (t, e, r) => f.put(`/${r}`, e, { params: t }),
|
|
439
|
-
putChangeStatus: async (t, e) => f.put("/bulk", e, { params: t }),
|
|
440
|
-
deleteCustomField: async (t) => f.delete("/bulk", { data: t })
|
|
441
432
|
}, C = n({
|
|
442
|
-
prefix: "/settings-attribute
|
|
443
|
-
}),
|
|
433
|
+
prefix: "/settings-attribute/v2/custom-field"
|
|
434
|
+
}), Dt = {
|
|
444
435
|
getCustomField: async (t) => C.get("/", { params: t }),
|
|
445
436
|
getOptions: async (t) => C.get("/options", { params: t }),
|
|
446
437
|
postCreateCustomField: async (t, e) => C.post("/", e, { params: t }),
|
|
447
438
|
putEditCustomField: async (t, e, r) => C.put(`/${r}`, e, { params: t }),
|
|
448
439
|
putChangeStatus: async (t, e) => C.put("/bulk", e, { params: t }),
|
|
449
|
-
deleteCustomField: async (t) => C.delete("/bulk", {
|
|
450
|
-
},
|
|
451
|
-
|
|
452
|
-
|
|
440
|
+
deleteCustomField: async (t) => C.delete("/bulk", { data: t })
|
|
441
|
+
}, L = n({
|
|
442
|
+
prefix: "/settings-attribute-go/v2/custom-field"
|
|
443
|
+
}), Rt = {
|
|
444
|
+
getCustomField: async (t) => L.get("/", { params: t }),
|
|
445
|
+
getOptions: async (t) => L.get("/options", { params: t }),
|
|
446
|
+
postCreateCustomField: async (t, e) => L.post("/", e, { params: t }),
|
|
447
|
+
putEditCustomField: async (t, e, r) => L.put(`/${r}`, e, { params: t }),
|
|
448
|
+
putChangeStatus: async (t, e) => L.put("/bulk", e, { params: t }),
|
|
449
|
+
deleteCustomField: async (t) => L.delete("/bulk", { params: t })
|
|
450
|
+
}, B = ({ headers: t = {}, params: e = {} } = {}) => {
|
|
451
|
+
const r = D("APP_COUNTRY_STATE_API"), a = D("APP_COUNTRY_STATE_API_KEY");
|
|
452
|
+
return J.create({
|
|
453
453
|
baseURL: `${r}/v1`,
|
|
454
454
|
headers: {
|
|
455
455
|
"Content-type": "application/json",
|
|
@@ -458,13 +458,13 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
458
458
|
},
|
|
459
459
|
params: e
|
|
460
460
|
});
|
|
461
|
-
},
|
|
462
|
-
getCountry: () =>
|
|
463
|
-
getState: (t) =>
|
|
464
|
-
getCity: (t, e) =>
|
|
461
|
+
}, Gt = {
|
|
462
|
+
getCountry: () => B().get("/countries"),
|
|
463
|
+
getState: (t) => B().get(`/countries/${t}/states`),
|
|
464
|
+
getCity: (t, e) => B().get(`/countries/${t}/states/${e}/cities`)
|
|
465
465
|
}, l = n({
|
|
466
466
|
prefix: "/routine/v2"
|
|
467
|
-
}),
|
|
467
|
+
}), _t = {
|
|
468
468
|
getList: (t) => l.get("/service-center", { params: t }),
|
|
469
469
|
postList: (t) => l.post("/service-center", t),
|
|
470
470
|
putList: (t, e) => l.put(`/service-center/${t}`, e),
|
|
@@ -477,19 +477,19 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
477
477
|
getActivityOptions: (t) => l.get("/service-activities/options", { params: t }),
|
|
478
478
|
getActivityDetail: (t) => l.get(`/service-activities/${t}`),
|
|
479
479
|
getActivityLog: (t) => l.get(`/service-activities/${t}/activity-log`)
|
|
480
|
-
},
|
|
480
|
+
}, tt = n({
|
|
481
481
|
prefix: "/settings-attribute/v2/brands"
|
|
482
|
-
}),
|
|
483
|
-
getDropdown: (t) =>
|
|
484
|
-
},
|
|
482
|
+
}), ht = {
|
|
483
|
+
getDropdown: (t) => tt.get("/dropdown", { params: t })
|
|
484
|
+
}, T = n({
|
|
485
485
|
prefix: "/file-manager/v2"
|
|
486
|
-
}),
|
|
486
|
+
}), wt = {
|
|
487
487
|
/**
|
|
488
488
|
* Get storage information.
|
|
489
489
|
*
|
|
490
490
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
491
491
|
*/
|
|
492
|
-
getStorageInformation: () =>
|
|
492
|
+
getStorageInformation: () => T.get("/files/storage"),
|
|
493
493
|
/**
|
|
494
494
|
* Get file manager data.
|
|
495
495
|
*
|
|
@@ -497,7 +497,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
497
497
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
498
498
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
499
499
|
*/
|
|
500
|
-
getFileManager: (t, e) =>
|
|
500
|
+
getFileManager: (t, e) => T.get(`/${t}`, { params: e }),
|
|
501
501
|
/**
|
|
502
502
|
* Get file manager options.
|
|
503
503
|
*
|
|
@@ -505,7 +505,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
505
505
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
506
506
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
507
507
|
*/
|
|
508
|
-
getFileManagerOption: (t, e) =>
|
|
508
|
+
getFileManagerOption: (t, e) => T.get(`/${t}/options`, { params: e }),
|
|
509
509
|
/**
|
|
510
510
|
* Recover files.
|
|
511
511
|
*
|
|
@@ -513,7 +513,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
513
513
|
* @param {object} body - The body of the request.
|
|
514
514
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
515
515
|
*/
|
|
516
|
-
recoverFiles: (t, e) =>
|
|
516
|
+
recoverFiles: (t, e) => T.put(`/${t}/recover`, e),
|
|
517
517
|
/**
|
|
518
518
|
* Delete files.
|
|
519
519
|
*
|
|
@@ -521,7 +521,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
521
521
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
522
522
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
523
523
|
*/
|
|
524
|
-
deleteFiles: (t, e) =>
|
|
524
|
+
deleteFiles: (t, e) => T.delete(`/${t}`, { params: e }),
|
|
525
525
|
/**
|
|
526
526
|
* Delete files permanently.
|
|
527
527
|
*
|
|
@@ -529,16 +529,16 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
529
529
|
* @param {object} body - The body of the request.
|
|
530
530
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
531
531
|
*/
|
|
532
|
-
deletePermanently: (t, e) =>
|
|
533
|
-
},
|
|
532
|
+
deletePermanently: (t, e) => T.delete(`/${t}/delete-permanent`, { params: e })
|
|
533
|
+
}, O = n({
|
|
534
534
|
prefix: "/utility/v2"
|
|
535
|
-
}),
|
|
535
|
+
}), xt = {
|
|
536
536
|
/**
|
|
537
537
|
* Get storage information.
|
|
538
538
|
*
|
|
539
539
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
540
540
|
*/
|
|
541
|
-
getStorageInformation: () =>
|
|
541
|
+
getStorageInformation: () => O.get("/files/storage"),
|
|
542
542
|
/**
|
|
543
543
|
* Get file manager data.
|
|
544
544
|
*
|
|
@@ -546,7 +546,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
546
546
|
* @param {FileManagerFilterParams} [params] - The parameters for filtering.
|
|
547
547
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
548
548
|
*/
|
|
549
|
-
getFileManager: (t, e) =>
|
|
549
|
+
getFileManager: (t, e) => O.get(`/${t}`, { params: e }),
|
|
550
550
|
/**
|
|
551
551
|
* Get file manager options.
|
|
552
552
|
*
|
|
@@ -554,7 +554,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
554
554
|
* @param {FileManagerOptionBoolean} [params] - The parameters for options.
|
|
555
555
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
556
556
|
*/
|
|
557
|
-
getFileManagerOption: (t, e) =>
|
|
557
|
+
getFileManagerOption: (t, e) => O.get(`/${t}/options`, { params: e }),
|
|
558
558
|
/**
|
|
559
559
|
* Recover files.
|
|
560
560
|
*
|
|
@@ -562,7 +562,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
562
562
|
* @param {object} body - The body of the request.
|
|
563
563
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
564
564
|
*/
|
|
565
|
-
recoverFiles: (t, e) =>
|
|
565
|
+
recoverFiles: (t, e) => O.put(`/${t}/recover`, e),
|
|
566
566
|
/**
|
|
567
567
|
* Delete files.
|
|
568
568
|
*
|
|
@@ -570,7 +570,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
570
570
|
* @param {DeleteFileManagerDto} params - The params of the request.
|
|
571
571
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
572
572
|
*/
|
|
573
|
-
deleteFiles: (t, e) =>
|
|
573
|
+
deleteFiles: (t, e) => O.delete(`/${t}`, { params: e }),
|
|
574
574
|
/**
|
|
575
575
|
* Delete files permanently.
|
|
576
576
|
*
|
|
@@ -578,10 +578,10 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
578
578
|
* @param {object} body - The body of the request.
|
|
579
579
|
* @returns {Promise<AxiosResponse>} The Axios Response.
|
|
580
580
|
*/
|
|
581
|
-
deletePermanently: (t, e) =>
|
|
581
|
+
deletePermanently: (t, e) => O.delete(`/${t}/delete-permanent`, { params: e })
|
|
582
582
|
}, m = n({
|
|
583
583
|
prefix: "/iot/v2/reader"
|
|
584
|
-
}),
|
|
584
|
+
}), qt = {
|
|
585
585
|
getData: (t) => m.get("/", { params: t }),
|
|
586
586
|
getDataOptions: (t) => m.get("/options", { params: t }),
|
|
587
587
|
getActivityLogData: (t) => m.get("/activity-log", { params: t }),
|
|
@@ -676,17 +676,17 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
676
676
|
}
|
|
677
677
|
return g.delete("/system-roles", { data: t });
|
|
678
678
|
}
|
|
679
|
-
},
|
|
679
|
+
}, c = n({
|
|
680
680
|
prefix: "/settings-user-role-go/v2"
|
|
681
|
-
}),
|
|
681
|
+
}), kt = {
|
|
682
682
|
/**
|
|
683
683
|
* Retrieves the transaction role for the given group and transaction name.
|
|
684
684
|
* @param {string} groupId - The ID of the group to retrieve the transaction role for.
|
|
685
685
|
* @param {string} transactionName - The name of the transaction to retrieve the role for.
|
|
686
686
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
687
687
|
*/
|
|
688
|
-
getTransactionRole: (t, e) =>
|
|
689
|
-
getTransactionRoleTypes: (t, e) =>
|
|
688
|
+
getTransactionRole: (t, e) => c.get(`/transaction-roles/${t}/${e}`),
|
|
689
|
+
getTransactionRoleTypes: (t, e) => c.get(`/transaction-roles/${e}/types`, {
|
|
690
690
|
params: { groupKeys: t }
|
|
691
691
|
}),
|
|
692
692
|
/**
|
|
@@ -696,7 +696,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
696
696
|
* @param {UpdateUser} body - The request body containing the updated user information.
|
|
697
697
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
698
698
|
*/
|
|
699
|
-
putUpdateUsers: (t, e, r) =>
|
|
699
|
+
putUpdateUsers: (t, e, r) => c.put(
|
|
700
700
|
`/transaction-roles/${t}/${e}/update-user`,
|
|
701
701
|
r
|
|
702
702
|
),
|
|
@@ -707,7 +707,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
707
707
|
* @param {UserApprovalLevel} body - The request body containing the updated approval level.
|
|
708
708
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
709
709
|
*/
|
|
710
|
-
putUpdateLevel: (t, e, r) =>
|
|
710
|
+
putUpdateLevel: (t, e, r) => c.put(
|
|
711
711
|
`/transaction-roles/${t}/${e}/update-approval-level`,
|
|
712
712
|
r
|
|
713
713
|
),
|
|
@@ -718,96 +718,96 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
718
718
|
* @param {GroupManageByParent} body - The request body containing the updated management settings.
|
|
719
719
|
* @returns {Promise<AxiosResponse>} - A promise that resolves to the response from the API.
|
|
720
720
|
*/
|
|
721
|
-
putUpdateGroupManage: (t, e, r) =>
|
|
721
|
+
putUpdateGroupManage: (t, e, r) => c.put(
|
|
722
722
|
`/transaction-roles/${t}/${e}/update-manage-by-parent`,
|
|
723
723
|
r
|
|
724
724
|
),
|
|
725
|
-
getUserAssignedSystemRole: (t) =>
|
|
726
|
-
getAssignedUserAmounts: () =>
|
|
725
|
+
getUserAssignedSystemRole: (t) => c.get(`/system-roles/user/${t}`),
|
|
726
|
+
getAssignedUserAmounts: () => c.get("/system-roles/amounts"),
|
|
727
727
|
getPermissionUser: (t, e) => {
|
|
728
728
|
if (["totalControl", "readOnly"].includes(t ?? "")) {
|
|
729
729
|
const r = t === "totalControl" ? "total-control" : "read-only";
|
|
730
|
-
return
|
|
730
|
+
return c.get(`/system-roles/total-control-read-only/${r}`, {
|
|
731
731
|
params: e
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
|
-
return
|
|
734
|
+
return c.get(`/system-roles/permission/${t}`, { params: e });
|
|
735
735
|
},
|
|
736
736
|
getPermissionUserOptions: (t, e) => {
|
|
737
737
|
if (["totalControl", "readOnly"].includes(t ?? "")) {
|
|
738
738
|
const r = t === "totalControl" ? "total-control" : "read-only";
|
|
739
|
-
return
|
|
739
|
+
return c.get(`/system-roles/total-control-read-only/${r}/options`, {
|
|
740
740
|
params: e
|
|
741
741
|
});
|
|
742
742
|
}
|
|
743
|
-
return
|
|
743
|
+
return c.get(`/system-roles/permission/${t}/options`, {
|
|
744
744
|
params: e
|
|
745
745
|
});
|
|
746
746
|
},
|
|
747
|
-
getUserGroups: (t, e) =>
|
|
747
|
+
getUserGroups: (t, e) => c.get(`/system-roles/permission/${e}/groups`, {
|
|
748
748
|
params: t
|
|
749
749
|
}),
|
|
750
750
|
postAssignUser: (t, e) => {
|
|
751
751
|
if (["totalControl", "readOnly"].includes(e ?? "")) {
|
|
752
752
|
const r = e === "totalControl" ? "total-control" : "read-only";
|
|
753
|
-
return
|
|
753
|
+
return c.post(`/system-roles/total-control-read-only/${r}`, t);
|
|
754
754
|
}
|
|
755
|
-
return
|
|
755
|
+
return c.post(`/system-roles/permission/${e}`, t);
|
|
756
756
|
},
|
|
757
|
-
putEditUser: (t, e) =>
|
|
757
|
+
putEditUser: (t, e) => c.put(`/system-roles/${e}`, t),
|
|
758
758
|
deleteRemoveUser: (t, e) => {
|
|
759
759
|
if (["totalControl", "readOnly"].includes(e ?? "")) {
|
|
760
760
|
const r = e === "totalControl" ? "total-control" : "read-only";
|
|
761
|
-
return
|
|
761
|
+
return c.put(`/system-roles/total-control-read-only/${r}`, t);
|
|
762
762
|
}
|
|
763
|
-
return
|
|
763
|
+
return c.put("/system-roles", t);
|
|
764
764
|
}
|
|
765
765
|
}, _ = n({
|
|
766
766
|
prefix: "/settings-attribute/v2/open-api"
|
|
767
|
-
}),
|
|
767
|
+
}), Bt = {
|
|
768
768
|
getOpenAPIDocs: (t) => _.get(`/${t.doc}`),
|
|
769
769
|
putGenerateToken: () => _.put("/generate"),
|
|
770
770
|
// This is if the dummy was not dummy
|
|
771
771
|
getToken: () => _.get(""),
|
|
772
772
|
putRequestOpenAPI: () => _.put("/request"),
|
|
773
773
|
putCancelRequestOpenAPI: () => _.put("/cancel-request")
|
|
774
|
-
},
|
|
774
|
+
}, w = n({
|
|
775
775
|
prefix: "/settings-attribute-go/v2/open-api"
|
|
776
776
|
}), Ft = {
|
|
777
|
-
putGenerateToken: () =>
|
|
777
|
+
putGenerateToken: () => w.put("/generate"),
|
|
778
778
|
// This is if the dummy was not dummy
|
|
779
|
-
getToken: () =>
|
|
780
|
-
putRequestOpenAPI: () =>
|
|
781
|
-
putCancelRequestOpenAPI: () =>
|
|
782
|
-
}, S = n({
|
|
783
|
-
prefix: "/import/v2"
|
|
784
|
-
}), kt = {
|
|
785
|
-
getImport: (t, e) => S.get(`/${t}`, { params: e }),
|
|
786
|
-
postImportTemporary: (t, e) => {
|
|
787
|
-
const r = { "Content-Type": "multipart/form-data" };
|
|
788
|
-
return S.post(`/${t}/temporary`, e, { headers: r });
|
|
789
|
-
},
|
|
790
|
-
deleteImportTemporary: (t, e) => S.delete(`/${t}/temporary`, { data: e }),
|
|
791
|
-
postDuplicateImport: (t, e) => S.post(`/${t}/duplicate`, e),
|
|
792
|
-
putEditImport: (t, e) => S.put(`/${t}`, e),
|
|
793
|
-
postImport: (t, e, r) => S.post(t, r, { signal: e.signal }),
|
|
794
|
-
putImportCancelProgress: (t) => S.put(`/${t}/cancel-progress`)
|
|
779
|
+
getToken: () => w.get(""),
|
|
780
|
+
putRequestOpenAPI: () => w.put("/request"),
|
|
781
|
+
putCancelRequestOpenAPI: () => w.put("/cancel-request")
|
|
795
782
|
}, P = n({
|
|
796
|
-
prefix: "/import
|
|
797
|
-
}),
|
|
783
|
+
prefix: "/import/v2"
|
|
784
|
+
}), Nt = {
|
|
798
785
|
getImport: (t, e) => P.get(`/${t}`, { params: e }),
|
|
799
786
|
postImportTemporary: (t, e) => {
|
|
800
787
|
const r = { "Content-Type": "multipart/form-data" };
|
|
801
788
|
return P.post(`/${t}/temporary`, e, { headers: r });
|
|
802
789
|
},
|
|
803
|
-
deleteImportTemporary: (t, e) => P.delete(`/${t}/temporary`, {
|
|
790
|
+
deleteImportTemporary: (t, e) => P.delete(`/${t}/temporary`, { data: e }),
|
|
804
791
|
postDuplicateImport: (t, e) => P.post(`/${t}/duplicate`, e),
|
|
805
792
|
putEditImport: (t, e) => P.put(`/${t}`, e),
|
|
806
793
|
postImport: (t, e, r) => P.post(t, r, { signal: e.signal }),
|
|
807
794
|
putImportCancelProgress: (t) => P.put(`/${t}/cancel-progress`)
|
|
795
|
+
}, U = n({
|
|
796
|
+
prefix: "/import-go/v2"
|
|
797
|
+
}), Mt = {
|
|
798
|
+
getImport: (t, e) => U.get(`/${t}`, { params: e }),
|
|
799
|
+
postImportTemporary: (t, e) => {
|
|
800
|
+
const r = { "Content-Type": "multipart/form-data" };
|
|
801
|
+
return U.post(`/${t}/temporary`, e, { headers: r });
|
|
802
|
+
},
|
|
803
|
+
deleteImportTemporary: (t, e) => U.delete(`/${t}/temporary`, { params: e }),
|
|
804
|
+
postDuplicateImport: (t, e) => U.post(`/${t}/duplicate`, e),
|
|
805
|
+
putEditImport: (t, e) => U.put(`/${t}`, e),
|
|
806
|
+
postImport: (t, e, r) => U.post(t, r, { signal: e.signal }),
|
|
807
|
+
putImportCancelProgress: (t) => U.put(`/${t}/cancel-progress`)
|
|
808
808
|
}, b = n({
|
|
809
809
|
prefix: "/settings-attribute/v2/asset-name"
|
|
810
|
-
}),
|
|
810
|
+
}), Vt = {
|
|
811
811
|
getDropdown: (t) => b.get("/dropdown", { params: t }),
|
|
812
812
|
getAssetNameDetail: (t) => b.get(`/${t}`),
|
|
813
813
|
getAssetsByAssetName: (t, e) => b.get(`/${t}/list-asset`, { params: e }),
|
|
@@ -816,7 +816,7 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
816
816
|
getOptions: (t) => b.get("/options", { params: t })
|
|
817
817
|
}, s = n({
|
|
818
818
|
prefix: "/assignment/v2"
|
|
819
|
-
}),
|
|
819
|
+
}), Ht = {
|
|
820
820
|
getPreListData: (t) => s.get("/prelist", { params: t }),
|
|
821
821
|
getPreListOptions: (t) => s.get("/prelist/options", { params: t }),
|
|
822
822
|
getRequestData: (t) => s.get("/prelist/request", { params: t }),
|
|
@@ -864,76 +864,97 @@ const K = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_
|
|
|
864
864
|
getAssignedAssetOptions: async (t) => s.get("/transaction/my-asset/assigned-asset/options", { params: t }),
|
|
865
865
|
putCancelAssignment: async (t) => s.put("/transaction/cancel", { id: t.id }),
|
|
866
866
|
putCancelReportById: async (t) => s.put(`/transaction/request/${t.id}/cancel-report`)
|
|
867
|
-
},
|
|
867
|
+
}, I = n({
|
|
868
868
|
prefix: "/assignment-go/v2"
|
|
869
|
-
}),
|
|
870
|
-
getTransactionData: (t) =>
|
|
871
|
-
getTransactionOptions: (t) =>
|
|
872
|
-
getDetailTransactionLog: (t) =>
|
|
873
|
-
postTransaction: (t) =>
|
|
874
|
-
putTransaction: (t) =>
|
|
875
|
-
putUnassignTransaction: (t) =>
|
|
876
|
-
putCancelReport: (t) =>
|
|
869
|
+
}), jt = {
|
|
870
|
+
getTransactionData: (t) => I.get("/transaction", { params: t }),
|
|
871
|
+
getTransactionOptions: (t) => I.get("/transaction/options", { params: t }),
|
|
872
|
+
getDetailTransactionLog: (t) => I.get(`/transaction/request/${t}/transaction-log`),
|
|
873
|
+
postTransaction: (t) => I.post("/transaction", t),
|
|
874
|
+
putTransaction: (t) => I.put("/transaction", t),
|
|
875
|
+
putUnassignTransaction: (t) => I.put("/transaction/unassign", t),
|
|
876
|
+
putCancelReport: (t) => I.put("/transaction/request/cancel-report", t)
|
|
877
877
|
}, x = n({
|
|
878
878
|
prefix: "/license/v2"
|
|
879
|
-
}),
|
|
879
|
+
}), Qt = {
|
|
880
880
|
getGroupQuota: (t) => x.get(`/${t}/allocation-quota`),
|
|
881
881
|
getSubGroupQuota: (t) => x.get(`/${t}/subgroup-quota`),
|
|
882
882
|
editSubGroupQuota: (t, e) => x.put(`/${t}/set-group-quota`, e),
|
|
883
883
|
getTotalLicense: () => x.get("/total-license")
|
|
884
|
-
},
|
|
884
|
+
}, et = n({
|
|
885
885
|
prefix: "/repair/v2/damage"
|
|
886
|
-
}),
|
|
886
|
+
}), Yt = {
|
|
887
887
|
putReportDamage: (t, e) => {
|
|
888
888
|
const r = { "Content-Type": "multipart/form-data" };
|
|
889
|
-
return
|
|
889
|
+
return et.put(`/report-damage/${t}`, e, { headers: r });
|
|
890
890
|
}
|
|
891
|
+
}, d = n({
|
|
892
|
+
prefix: "/borrowing/v2"
|
|
893
|
+
}), Jt = {
|
|
894
|
+
getTaskBorrowing: async (t) => d.get("/transaction/my-asset/task", { params: t }),
|
|
895
|
+
getTaskBorrowingOptions: async (t) => d.get("/transaction/my-asset/task/options", { params: t }),
|
|
896
|
+
getBorrowedAsset: async (t) => d.get("/transaction/my-asset/borrowed-asset", { params: t }),
|
|
897
|
+
getBorrowedOptions: async (t) => d.get("/transaction/my-asset/borrowed-asset/options", { params: t }),
|
|
898
|
+
getHistory: async (t) => d.get("/transaction/my-asset/history", { params: t }),
|
|
899
|
+
getHistoryOptions: async (t) => d.get("/transaction/my-asset/history/options", { params: t }),
|
|
900
|
+
putCancelBorrowing: async (t) => d.put("/transaction/cancel", { id: t.id }),
|
|
901
|
+
putCancelExtensionRequest: async (t) => d.put(`/transaction/${t.id}/cancel-extension`),
|
|
902
|
+
putCancelRequestReport: async (t) => d.put(`/transaction/request/${t.id}/cancel-report`),
|
|
903
|
+
putDeclineExtensionRequest: async (t) => d.put("transaction/request/decline", t),
|
|
904
|
+
putUpdateRequestExtension: async (t) => d.put("transaction/request/duration", t)
|
|
905
|
+
}, Y = n({
|
|
906
|
+
prefix: "/assets/v2"
|
|
907
|
+
}), Kt = {
|
|
908
|
+
getHistory: async (t) => Y.get("/my-asset", { params: t }),
|
|
909
|
+
getHistoryOptions: async (t) => Y.get("/my-asset/options", { params: t })
|
|
891
910
|
};
|
|
892
911
|
export {
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
912
|
+
Lt as AliasCodeServices,
|
|
913
|
+
Tt as AliasCodeServicesGo,
|
|
914
|
+
Vt as AssetNameServices,
|
|
915
|
+
lt as AssetServices,
|
|
916
|
+
Ht as AssignmentServices,
|
|
917
|
+
jt as AssignmentServicesGo,
|
|
918
|
+
Jt as BorrowServices,
|
|
919
|
+
ht as BrandServices,
|
|
920
|
+
ct as ChangelogServices,
|
|
921
|
+
Gt as CountryStateServices,
|
|
922
|
+
Dt as CustomFieldServices,
|
|
923
|
+
Rt as CustomFieldServicesGo,
|
|
924
|
+
Yt as DamageServices,
|
|
925
|
+
Ct as DashboardServices,
|
|
926
|
+
wt as FileManagerServices,
|
|
927
|
+
xt as FileManagerServicesGo,
|
|
928
|
+
Ot as GeneralSettingsServices,
|
|
929
|
+
bt as GeneralSettingsServicesGo,
|
|
930
|
+
it as GroupCategoryServices,
|
|
931
|
+
ut as GroupCategoryServicesGo,
|
|
932
|
+
ft as I18nService,
|
|
933
|
+
Nt as ImportServices,
|
|
934
|
+
Mt as ImportServicesGo,
|
|
935
|
+
Qt as LicenseServices,
|
|
936
|
+
pt as LogServicesGo,
|
|
937
|
+
dt as MissingServices,
|
|
938
|
+
Kt as MyAssetServices,
|
|
939
|
+
gt as NotificationApprovalServices,
|
|
940
|
+
$t as NotificationServices,
|
|
941
|
+
At as NotificationServicesGo,
|
|
942
|
+
Bt as OpenAPIServices,
|
|
922
943
|
Ft as OpenAPIServicesGo,
|
|
923
|
-
|
|
944
|
+
qt as ReaderServices,
|
|
924
945
|
Et as RoleServices,
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
946
|
+
kt as RoleServicesGo,
|
|
947
|
+
_t as ServiceCenterServices,
|
|
948
|
+
yt as SessionLogServices,
|
|
949
|
+
Ut as SubUserServices,
|
|
950
|
+
It as SubUserServicesGo,
|
|
951
|
+
vt as TAGServices,
|
|
952
|
+
mt as TrackingServices,
|
|
953
|
+
St as UserServices,
|
|
954
|
+
Pt as UserServicesGo,
|
|
955
|
+
at as getAssetsFile,
|
|
956
|
+
D as getBaseURL,
|
|
957
|
+
ot as getImageURL,
|
|
958
|
+
nt as getImageURLGo,
|
|
959
|
+
st as queryParamsStringfy
|
|
939
960
|
};
|
package/api-services.system.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["axios"],function(s,et){"use strict";var w;return{setters:[F=>{w=F.default}],execute:function(){const F={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"},f=s("getBaseURL",(t="APP_API")=>F["VITE_"+t]),o=(t={},e=!1)=>{const{env:r="APP_API",prefix:u="",headers:D={},..._}=t,X=`${f(r)}${u}`,K=JSON.parse(localStorage.getItem("user")??"{}"),tt=K.jwt??K.token??"";return w.create({..._,baseURL:X,headers:e?D:{"Content-Type":"application/json",Authorization:`Bearer ${tt}`,...D}})},rt=s("queryParamsStringfy",t=>{if(!t||typeof t=="string")return;const e={};return Object.keys(t).forEach(r=>{Array.isArray(t[r])?t[r].length>0&&Object.assign(e,{[r]:JSON.stringify(t[r])}):t[r]!==void 0&&Object.assign(e,{[r]:t[r]})}),e}),st=s("getImageURLGo",(t,e,r)=>{if(!t)return;const u=f("APP_API"),D=t.startsWith("http")?t:`${u}/utility/v2/files/${t.replace(/^\/+/,"")}`;if(e||r){const _=new URLSearchParams;return e&&(_.set("width",e.toString()),_.set("height",r?r==null?void 0:r.toString():e.toString())),`${D}?${_.toString()}`}return D}),nt=s("getImageURL",t=>{if(!t)return;const e=f("APP_TAGSAMURAI_API");return t.startsWith("http")?t:`${e}/file-manager/v2/files/${t}`}),ot=s("getAssetsFile",async(t,e="excel")=>await fetch(`${f("APP_ASSETS_URL")}/${e}/${t}`)),A=o({prefix:"/settings-attribute/v2",env:"APP_TAGSAMURAI_API"}),at=s("GroupCategoryServices",{getGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return A.get(`/${r}/tree`,{params:e})},getGroupCategoryList:(t,e,r)=>{const u=t==="category"?t:"groups";return A.get(`/${u}/${e}`,{params:r})},getNames:t=>{const e=t==="category"?t:"groups";return A.get(`/${e}/names`)},getCodes:t=>{const e=t==="category"?t:"groups";return A.get(`/${e}/codes`)},postCreateGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return A.post(`/${r}`,e)},putEditGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return A.put(`/${u}/${r}`,e)},putMoveGroup:(t,e)=>A.put(`/groups/${e}/move-group`,t),putEditBulkGroups:async t=>A.put("/groups/bulk",t),deleteGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return A.delete(`/${u}/${r}`,{data:e})}}),S=o({prefix:"/settings-attribute-go/v2"}),it=s("GroupCategoryServicesGo",{getGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return S.get(`/${r}/tree`,{params:e})},getGroupCategoryList:(t,e)=>{const r=t==="category"?t:"groups";return S.get(`/${r}/${e}`)},getNames:t=>{const e=t==="category"?t:"groups";return S.get(`/${e}/names`)},getCodes:t=>{const e=t==="category"?t:"groups";return S.get(`/${e}/codes`)},postCreateGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return S.post(`/${r}`,e)},putEditGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return S.put(`/${u}/${r}`,e)},deleteGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return S.delete(`/${u}/${r}`,{data:e})}}),W=o({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),ut=s("NotificationApprovalServices",{getTotalApprovals:()=>W.get("/approval/count")}),R=o({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),gt=s("ChangelogServices",{getActionLog:t=>R.get("/change-log",{params:t}),getActionLogOption:t=>R.get("/change-log/options",{params:t}),getSessionLogList:t=>R.get("/session-log",{params:t}),getUserDetailSystemLogList:t=>R.get("/change-log",{params:t}),getUserDetailSystemLogOption:t=>R.get("/change-log/options",{params:t})}),v=o({prefix:"/utility/v2"}),ct=s("LogServicesGo",{getActionLog:t=>v.get("/change-log",{params:t}),getActionLogOption:t=>v.get("/change-log/options",{params:t}),getSessionLogList:t=>v.get("/session-log",{params:t}),getUserDetailSystemLogList:t=>v.get("/change-log",{params:t}),getUserDetailSystemLogOption:t=>v.get("/change-log/options",{params:t}),getUserDetailUserLogBorrowingList:(t,e)=>v.get(`/borrowing-log/${t}`,{params:e}),getUserDetailUserLogAssignmentList:(t,e)=>v.get(`/assignment-log/${t}`,{params:e}),getUserDetailUserLogBorrowingOption:(t,e)=>v.get(`/borrowing-log/${t}/options`,{params:e}),getUserDetailUserLogAssignmentOption:(t,e)=>v.get(`/assignment-log/${t}/options`,{params:e})}),p=o({prefix:"/assets/v2/assets"}),lt=s("AssetServices",{getScanTag:t=>p.get("/scan",{params:{tag:t}}),getAllAssets:t=>p.get("/",{params:t}),getAllAssetsOptions:t=>p.get("/options",{params:t}),getAvailableAssets:t=>p.get("/available",{params:t}),scanAsset:t=>p.get("",{params:{tag:t}}),getAssetsById:(t,e)=>p.get("/by-id",{params:{_id:t,...e}}),getOptions:(t,e)=>p.get(t?`/${t}/options`:"/options",{params:e}),getUnlinkedAssets:t=>p.get("/unlinked",{params:t}),getAssetDetail:(t,e)=>p.get(`/${t}`,{params:e}),getLinkedAssetFamily:t=>p.get("/family",{params:{id:t}}),matchAssetWithTag:(t,e)=>{const r={_id:JSON.stringify([t]),tag:e};return p.get("/by-id",{params:r})}}),V=o({prefix:"/tracking/v2/missing"}),pt=s("MissingServices",{putFoundAsset:(t,e)=>{const r={ids:[t],serialNumber:e};return V.put("/found",r)},putReportMissing:(t,e)=>V.put(`/report-missing/${t}`,e)}),j=o({prefix:"/v2/notification",env:"APP_LOGS_NOTIFICATION_API"}),dt=s("NotificationServices",{getNotifications:t=>j.get("/",{params:t}),readNotification:t=>j.put(`/${t}`)}),Q=o({prefix:"/utility/v2/notification"}),$t=s("NotificationServicesGo",{getNotifications:t=>Q.get("/",{params:t}),readNotification:t=>Q.put(`/${t}`)}),x=o({prefix:"/v2/session-log",env:"APP_LOGS_NOTIFICATION_API"}),At=s("SessionLogServices",{postLogout:()=>x.post("/logout")}),a=o({prefix:"/tag/v2"}),vt=s("TAGServices",{getScanQR:t=>a.get("/qr",{params:{tag:t}}),getScanRFID:t=>a.get("/rfid",{params:{tag:t}}),getRFIDQRTAG:t=>a.get("/rfid-qr/scan",{params:t}),getEventLog:t=>a.get("/tag-transaction/event-log",{params:t}),getRfidQrAll:(t,e)=>a.get(`/${t}`,{params:e}),getRfidQrPaired:(t,e,r)=>a.get(`/${t}/paired/${e}`,{params:r}),postAddTAGtoPrelist:(t,e)=>a.post(`/prelist/${e}/asset-name`,t),postAddTAGToPrelistUnpair:t=>a.post("/prelist/unpair-tag",t),postAddTAGtoPending:t=>a.post("/pending-changes",t),getRFIDQrAvailable:(t,e)=>a.get(`/${t}/available`,{params:e}),getRFIDQrDamaged:(t,e)=>a.get(`/${t}/damaged`,{params:e}),getRFIDandQRList:t=>a.get("/rfid-qr",{params:t}),deleteUnpairTAG:t=>a.delete("/rfid-qr",{data:{data:t}}),postPairTAG:t=>a.post("/rfid-qr",{body:{data:t}}),getToBeReturnedTAGList:t=>a.get("/rfid/to-be-returned",{params:t}),putHandoverTAG:t=>a.put("/rfid/handover",{body:{data:t}}),getFilterOptions:(t,e)=>a.get(`/${t}/options`,{params:e}),getHolderListOptions:t=>a.get("/rfid/holder-list/options",{params:t}),getHolderList:t=>a.get("/rfid/holder-list",{params:t}),putAuditTAG:(t,e)=>a.put(`/${e}/audit`,t),postLogAudit:t=>a.post("/tag-transaction/log-audit",t),postCreateQr:t=>{const e={amount:t};return a.post("/qr",e)},postScanLog:t=>a.post("/scan-log",t),putReportTAG:(t,e)=>a.put(`/tag-transaction/report/${t}`,e)}),k=o({prefix:"/tracking/v2/tracking"}),mt=s("TrackingServices",{putFoundAsset:(t,e,r)=>{const u={tag:t,group:e,serialNumber:r,type:"Global"};return k.put("/found",{params:u})},putReportPermanentlyMissing:(t,e)=>k.put(`/report-permanently-missing/${t}`,e),getTrackingDetail:t=>k.get(`/${t}`)}),i=o({prefix:"/settings-user-role/v2"}),yt=s("UserServices",{reLogin:t=>i.post("/auth/login",t),changePassword:t=>i.put("/users/change-password",t),getUserDropdown:t=>i.get("/users/dropdown",{params:t}),getUserOptions:t=>i.get("/users/options",{params:t}),getUserList:t=>i.get("/users",{params:t}),getUserDetail:t=>i.get(`/users/${t}`),putSetActiveBulk:t=>i.put("/users/set-active-bulk",t),getUserDetailSystemRoles:(t,e,r)=>{const u=r?`/${r}`:"";return i.get(`/user-detail/${t}/system-roles${u}`,{params:e})},getUserDetailTransactionRoleList:(t,e)=>i.get(`/user-detail/${t}/transaction-role-list`,{params:e}),postUserDetailAddTransactionRole:(t,e)=>i.post(`/user-detail/${t}/add-transaction-role`,e),deleteUserDetailTransactionRole:(t,e)=>i.delete(`/user-detail/${t}/delete-transaction-role`,{data:e}),putUserDetailEditTransactionRole:(t,e)=>i.put(`/user-detail/${t}/edit-transaction-role`,e),putAssignGroup:(t,e,r)=>i.put(`/user-detail/${r}/system-roles/${e}`,t),getUserDetailUserLogBorrowingList:(t,e)=>i.get(`/users-log/${t}/borrowing`,{params:e}),getUserDetailUserLogAssignmentList:(t,e)=>i.get(`/users-log/${t}/assignment`,{params:e}),getUserDetailUserLogBorrowingOption:(t,e)=>i.get(`/users-log/${t}/borrowing/option`,{params:e}),getUserDetailUserLogAssignmentOption:(t,e)=>i.get(`/users-log/${t}/assignment/option`,{params:e}),getUserDetailTransactionAdminLogList:(t,e)=>i.get(`/users-log/${t}/transaction-log`,{params:e}),getUserDetailTransactionAdminLogOption:(t,e)=>i.get(`/users-log/${t}/transaction-log/option`,{params:e}),getUserDetailUserAssetBorrowedList:(t,e)=>i.get(`/user-detail/${t}/assets/borrowed`,{params:e}),getUserDetailUserAssetAssignedList:(t,e)=>i.get(`/user-detail/${t}/assets/assigned`,{params:e}),getUserDetailUserAssetBorrowedOption:(t,e)=>i.get(`/user-detail/${t}/assets/borrowed/option`,{params:e}),getUserDetailUserAssetAssignedOption:(t,e)=>i.get(`/user-detail/${t}/assets/assigned/option`,{params:e})}),g=o({prefix:"/settings-user-role-go/v2"}),St=s("UserServicesGo",{getUserDropdown:t=>g.get("/users/dropdown",{params:t}),getUserOptions:t=>g.get("/users/options",{params:t}),getUserList:t=>g.get("/users",{params:t}),getUserDetail:t=>g.get(`/users/${t}`),putSetActiveBulk:t=>g.put("/users/set-active-bulk",t),getUserDetailSystemRoles:(t,e,r)=>{const u=r?`/${r}/groups`:"";return g.get(`/users/${t}/system-roles${u}`,{params:e})},getUserDetailTransactionRoleList:(t,e)=>g.get(`/users/${t}/transaction-roles`,{params:e}),postUserDetailAddTransactionRole:(t,e)=>g.post(`/users/${t}/add-transaction-role`,e),deleteUserDetailTransactionRole:(t,e)=>g.delete(`/users/${t}/delete-transaction-role`,{data:e}),putUserDetailEditTransactionRole:(t,e)=>g.put(`/users/${t}/edit-transaction-role`,e),putAssignGroup:(t,e,r)=>g.put(`/users/${r}/system-roles/${e}/groups`,t),putRoleSetActive:(t,e)=>g.put(`/users/${e}/system-roles/set-active-bulk`,t),getUserDetailTransactionAdminLogList:(t,e)=>g.get(`/users/${t}/transaction-log`,{params:e}),getUserDetailTransactionAdminLogOption:(t,e)=>g.get(`/users/${t}/transaction-log/option`,{params:e}),getUserDetailUserAssetBorrowedList:(t,e)=>g.get(`/users/${t}/borrowed-asset`,{params:e}),getUserDetailUserAssetAssignedList:(t,e)=>g.get(`/users/${t}/assigned-asset`,{params:e}),getUserDetailUserAssetBorrowedOption:(t,e)=>g.get(`/users/${t}/borrowed-asset/option`,{params:e}),getUserDetailUserAssetAssignedOption:(t,e)=>g.get(`/users/${t}/assigned-asset/option`,{params:e})}),m=o({prefix:"/settings-user-role/v2/sub-users"}),Pt=s("SubUserServices",{getSubUserList:(t,e)=>m.get(`/${t}`,{params:e}),getSubUserOptions:(t,e)=>m.get(`/${t}/option`,{params:e}),postCreateSubUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return m.post(`/${t}`,e,{headers:r})},putSubUserSetActiveBulk:t=>m.put("/set-active-bulk",t),deleteSubUser:t=>m.delete("/bulk",{data:{subUserIds:t}}),putEditSubUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return m.put(`/${t}`,e,{headers:r})},getBorrowedAsset:(t,e)=>m.get(`/${t}/borrowed-asset`,{params:e}),getBorrowedAssetOptions:(t,e)=>m.get(`/${t}/borrowed-asset/options`,{params:e})}),$=o({prefix:"/settings-user-role-go/v2/users"}),Ut=s("SubUserServicesGo",{getSubUserList:(t,e)=>$.get(`/${t}/sub-users`,{params:e}),getSubUserOptions:(t,e)=>$.get(`/${t}/sub-users/option`,{params:e}),postCreateSubUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return $.post(`/${t}/sub-users`,e,{headers:r})},putSubUserSetActiveBulk:(t,e)=>$.put(`/${t}/sub-users/set-active-bulk`,e),deleteSubUser:(t,e)=>$.put(`/${t}/sub-users/bulk`,{subUserIds:e}),putEditSubUser:(t,e,r)=>{const u={"Content-Type":"multipart/form-data"};return $.put(`/${t}/sub-users/${e}`,r,{headers:u})},getBorrowedAsset:(t,e,r)=>$.get(`/${t}/sub-users/${e}/borrowed-asset`,{params:r}),getBorrowedAssetOptions:(t,e,r)=>$.get(`/${t}/sub-users/${e}/borrowed-asset/options`,{params:r}),getAssignedAsset:(t,e,r)=>$.get(`/${t}/sub-users/${e}/assigned-asset`,{params:r}),getAssignedAssetOptions:(t,e,r)=>$.get(`/${t}/sub-users/${e}/assigned-asset/options`,{params:r})}),h=o({env:"APP_ADMIN_API",prefix:"/settings-attribute/languages"}),It=s("I18nService",{getMessages:t=>h.get(`/${t}/translations`),getLanguageOptions:async()=>{const{data:t}=await h.get("/dropdown");return t.data},getLanguageOptionMeta:async t=>{const{data:e}=await h.get("/dropdown/"+t);return e.data},translateText:async(t,e)=>{const{data:r}=await h.post("/translate",{q:t,target:e});return r.data.translations[t]}}),Y=o({prefix:"/dashboard/v2/dashboard"}),ft=s("DashboardServices",{getLatestTask:t=>Y.get("/latest-task",{params:t}),getSummary:t=>Y.get("/summary",{params:t})}),B=o({prefix:"/alias-code/api/alias-code"}),Ct=s("AliasCodeServices",{getAliasCode:()=>B.get("/"),postAliasCode:t=>B.post("/",t),getAliasCodeList:t=>B.get(`/${t.object}/code-list`,{params:t})}),N=o({prefix:"/settings-attribute-go/v2/alias-code"}),Lt=s("AliasCodeServicesGo",{getAliasCode:()=>N.get("/"),postAliasCode:t=>N.post("/",t),getAliasCodeList:t=>N.get(`/${t.object}/code-list`,{params:t})}),H=o({prefix:"/settings-attribute/v2/general-settings"}),Tt=s("GeneralSettingsServices",{getGeneralSettings:()=>H.get("/"),putUpdateGeneralSettings:t=>H.put("/",t)}),J=o({prefix:"/settings-attribute-go/v2/general-settings"}),bt=s("GeneralSettingsServicesGo",{getGeneralSettings:()=>J.get("/"),putUpdateGeneralSettings:t=>J.put("/",t)}),C=o({prefix:"/settings-attribute/v2/custom-field"}),Ot=s("CustomFieldServices",{getCustomField:async t=>C.get("/",{params:t}),getOptions:async t=>C.get("/options",{params:t}),postCreateCustomField:async(t,e)=>C.post("/",e,{params:t}),putEditCustomField:async(t,e,r)=>C.put(`/${r}`,e,{params:t}),putChangeStatus:async(t,e)=>C.put("/bulk",e,{params:t}),deleteCustomField:async t=>C.delete("/bulk",{data:t})}),L=o({prefix:"/settings-attribute-go/v2/custom-field"}),Dt=s("CustomFieldServicesGo",{getCustomField:async t=>L.get("/",{params:t}),getOptions:async t=>L.get("/options",{params:t}),postCreateCustomField:async(t,e)=>L.post("/",e,{params:t}),putEditCustomField:async(t,e,r)=>L.put(`/${r}`,e,{params:t}),putChangeStatus:async(t,e)=>L.put("/bulk",e,{params:t}),deleteCustomField:async t=>L.delete("/bulk",{params:t})}),M=({headers:t={},params:e={}}={})=>{const r=f("APP_COUNTRY_STATE_API"),u=f("APP_COUNTRY_STATE_API_KEY");return w.create({baseURL:`${r}/v1`,headers:{"Content-type":"application/json","X-CSCAPI-KEY":u,...t},params:e})},Rt=s("CountryStateServices",{getCountry:()=>M().get("/countries"),getState:t=>M().get(`/countries/${t}/states`),getCity:(t,e)=>M().get(`/countries/${t}/states/${e}/cities`)}),d=o({prefix:"/routine/v2"}),Gt=s("ServiceCenterServices",{getList:t=>d.get("/service-center",{params:t}),postList:t=>d.post("/service-center",t),putList:(t,e)=>d.put(`/service-center/${t}`,e),putActivate:t=>d.put("/service-center/bulk",t),getDetailList:t=>d.get(`/service-center/${t}`),getListOptions:t=>d.get("/service-center/options",{params:t}),deleteList:t=>d.delete("/service-center",{params:t}),getActivities:t=>d.get("/service-activities",{params:t}),getActivityOptions:t=>d.get("/service-activities/options",{params:t}),getActivityDetail:t=>d.get(`/service-activities/${t}`),getActivityLog:t=>d.get(`/service-activities/${t}/activity-log`)}),z=o({prefix:"/settings-attribute/v2/brands"}),_t=s("BrandServices",{getDropdown:t=>z.get("/dropdown",{params:t})}),T=o({prefix:"/file-manager/v2"}),ht=s("FileManagerServices",{getStorageInformation:()=>T.get("/files/storage"),getFileManager:(t,e)=>T.get(`/${t}`,{params:e}),getFileManagerOption:(t,e)=>T.get(`/${t}/options`,{params:e}),recoverFiles:(t,e)=>T.put(`/${t}/recover`,e),deleteFiles:(t,e)=>T.delete(`/${t}`,{params:e}),deletePermanently:(t,e)=>T.delete(`/${t}/delete-permanent`,{params:e})}),b=o({prefix:"/utility/v2"}),Et=s("FileManagerServicesGo",{getStorageInformation:()=>b.get("/files/storage"),getFileManager:(t,e)=>b.get(`/${t}`,{params:e}),getFileManagerOption:(t,e)=>b.get(`/${t}/options`,{params:e}),recoverFiles:(t,e)=>b.put(`/${t}/recover`,e),deleteFiles:(t,e)=>b.delete(`/${t}`,{params:e}),deletePermanently:(t,e)=>b.delete(`/${t}/delete-permanent`,{params:e})}),y=o({prefix:"/iot/v2/reader"}),qt=s("ReaderServices",{getData:t=>y.get("/",{params:t}),getDataOptions:t=>y.get("/options",{params:t}),getActivityLogData:t=>y.get("/activity-log",{params:t}),getActivityLogOptions:t=>y.get("/activity-log/options",{params:t}),getDataById:t=>y.get(`/${t}`),getChangeLog:t=>y.get(`/${t.id}/change-log`,{params:t}),getChangeLogOptions:t=>y.get(`/${t.id}/change-log/options`,{params:t}),putData:(t,e)=>y.put(`/${t}`,e)}),c=o({prefix:"/settings-user-role/v2"}),wt=s("RoleServices",{getTransactionRole:(t,e)=>c.get(`/transaction-roles/${t}/${e}`),putUpdateUsers:(t,e,r)=>c.put(`/transaction-roles/${t}/${e}/update-user`,r),putUpdateLevel:(t,e,r)=>c.put(`/transaction-roles/${t}/${e}/update-approval-level`,r),putUpdateGroupManage:(t,e,r)=>c.put(`/transaction-roles/${t}/${e}/update-manage-by-parent`,r),getUserAssignedSystemRole:t=>c.get(`/system-roles/user/${t}`),getAssignedUserAmounts:()=>c.get("/system-roles/amounts"),getPermissionUser:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return c.get(`/system-roles/total-control-read-only/${r}`,{params:e})}return c.get(`/system-roles/permission/${t}`,{params:e})},getPermissionUserOptions:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return c.get(`/system-roles/total-control-read-only/${r}/options`,{params:e})}return c.get(`/system-roles/permission/${t}/options`,{params:e})},getUserGroups:(t,e)=>c.get(`/system-roles/permission/${e}/groups`,{params:t}),postAssignUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return c.post(`/system-roles/total-control-read-only/${r}`,t)}return c.post(`/system-roles/permission/${e}`,t)},putEditUser:(t,e)=>c.put(`/system-roles/${e}`,t),putRoleSetActive:t=>c.put("/system-roles/set-active",t),deleteRemoveUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return c.delete(`/system-roles/total-control-read-only/${r}`,{data:t})}return c.delete("/system-roles",{data:t})}}),l=o({prefix:"/settings-user-role-go/v2"}),Ft=s("RoleServicesGo",{getTransactionRole:(t,e)=>l.get(`/transaction-roles/${t}/${e}`),getTransactionRoleTypes:(t,e)=>l.get(`/transaction-roles/${e}/types`,{params:{groupKeys:t}}),putUpdateUsers:(t,e,r)=>l.put(`/transaction-roles/${t}/${e}/update-user`,r),putUpdateLevel:(t,e,r)=>l.put(`/transaction-roles/${t}/${e}/update-approval-level`,r),putUpdateGroupManage:(t,e,r)=>l.put(`/transaction-roles/${t}/${e}/update-manage-by-parent`,r),getUserAssignedSystemRole:t=>l.get(`/system-roles/user/${t}`),getAssignedUserAmounts:()=>l.get("/system-roles/amounts"),getPermissionUser:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return l.get(`/system-roles/total-control-read-only/${r}`,{params:e})}return l.get(`/system-roles/permission/${t}`,{params:e})},getPermissionUserOptions:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return l.get(`/system-roles/total-control-read-only/${r}/options`,{params:e})}return l.get(`/system-roles/permission/${t}/options`,{params:e})},getUserGroups:(t,e)=>l.get(`/system-roles/permission/${e}/groups`,{params:t}),postAssignUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return l.post(`/system-roles/total-control-read-only/${r}`,t)}return l.post(`/system-roles/permission/${e}`,t)},putEditUser:(t,e)=>l.put(`/system-roles/${e}`,t),deleteRemoveUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return l.put(`/system-roles/total-control-read-only/${r}`,t)}return l.put("/system-roles",t)}}),G=o({prefix:"/settings-attribute/v2/open-api"}),kt=s("OpenAPIServices",{getOpenAPIDocs:t=>G.get(`/${t.doc}`),putGenerateToken:()=>G.put("/generate"),getToken:()=>G.get(""),putRequestOpenAPI:()=>G.put("/request"),putCancelRequestOpenAPI:()=>G.put("/cancel-request")}),E=o({prefix:"/settings-attribute-go/v2/open-api"}),Bt=s("OpenAPIServicesGo",{putGenerateToken:()=>E.put("/generate"),getToken:()=>E.get(""),putRequestOpenAPI:()=>E.put("/request"),putCancelRequestOpenAPI:()=>E.put("/cancel-request")}),P=o({prefix:"/import/v2"}),Nt=s("ImportServices",{getImport:(t,e)=>P.get(`/${t}`,{params:e}),postImportTemporary:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return P.post(`/${t}/temporary`,e,{headers:r})},deleteImportTemporary:(t,e)=>P.delete(`/${t}/temporary`,{data:e}),postDuplicateImport:(t,e)=>P.post(`/${t}/duplicate`,e),putEditImport:(t,e)=>P.put(`/${t}`,e),postImport:(t,e,r)=>P.post(t,r,{signal:e.signal}),putImportCancelProgress:t=>P.put(`/${t}/cancel-progress`)}),U=o({prefix:"/import-go/v2"}),Mt=s("ImportServicesGo",{getImport:(t,e)=>U.get(`/${t}`,{params:e}),postImportTemporary:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return U.post(`/${t}/temporary`,e,{headers:r})},deleteImportTemporary:(t,e)=>U.delete(`/${t}/temporary`,{params:e}),postDuplicateImport:(t,e)=>U.post(`/${t}/duplicate`,e),putEditImport:(t,e)=>U.put(`/${t}`,e),postImport:(t,e,r)=>U.post(t,r,{signal:e.signal}),putImportCancelProgress:t=>U.put(`/${t}/cancel-progress`)}),O=o({prefix:"/settings-attribute/v2/asset-name"}),Vt=s("AssetNameServices",{getDropdown:t=>O.get("/dropdown",{params:t}),getAssetNameDetail:t=>O.get(`/${t}`),getAssetsByAssetName:(t,e)=>O.get(`/${t}/list-asset`,{params:e}),getAssetNameList:t=>O.get("/",{params:t}),getUnpairedAssetName:t=>O.get("/unpaired",{params:t}),getOptions:t=>O.get("/options",{params:t})}),n=o({prefix:"/assignment/v2"}),jt=s("AssignmentServices",{getPreListData:t=>n.get("/prelist",{params:t}),getPreListOptions:t=>n.get("/prelist/options",{params:t}),getRequestData:t=>n.get("/prelist/request",{params:t}),getDetailRequestData:(t,e)=>n.get(`/transaction/${t}/request`,{params:e}),getDetailRequestOption:(t,e)=>n.get(`/transaction/${e}/request/options`,{params:t}),getTransactionData:t=>n.get("/transaction",{params:t}),getTransactionOptions:t=>n.get("/transaction/options",{params:t}),getDetailTransactionData:t=>n.get(`/transaction/${t}`),getTransactionApprovals:t=>n.get(`/approval/transaction/${t}/transaction`),getDetailTransactionLog:t=>n.get(`/transaction/request/${t}/transaction-log`),getVerifyAsset:(t,e)=>n.get(`/transaction/${e}/request/scan`,{params:t}),putEditAssignedUser:(t,e)=>n.put(`/transaction/${t}/user`,e),putEditEmailConfirmation:(t,e)=>n.put(`/transaction/${t}/update-email-or-assigned-user`,e),postSendConfirmationEmail:t=>n.post(`/transaction/${t}/send-confirmation-email`),postTransaction:t=>n.post("/transaction",t),putTransaction:(t,e)=>n.put(`/transaction/${t}/request`,e),putCancelTransaction:t=>n.put("/transaction/cancel",t),putCancelAssignmentRequest:t=>n.put("/transaction/request/cancel",t),putVerifyRequest:(t,e)=>n.put(`/transaction/${e}/verify-requests`,t),putVerifyToken:t=>n.put("/transaction/verify-token",t),putHandoverConfirm:t=>n.put("/transaction/handover-confirmation",t),putAssignHandover:t=>n.put(`/transaction/${t}/handover`),deletePrelistData:t=>n.delete("/prelist",{params:t}),deleteRequestPrelistData:t=>n.delete("/prelist/request",{data:t}),getAssignedByAsset:t=>n.get("/transaction/request/assigned/by-asset",{params:t}),getAssignedByAssetOptions:t=>n.get("/transaction/request/assigned/by-asset/options",{params:t}),getAssignedByUser:t=>n.get("/transaction/request/assigned/by-user",{params:t}),getAssignedByUserOptions:t=>n.get("/transaction/request/assigned/by-user/options",{params:t}),postUnassignPrelistAsset:t=>n.post("/prelist",t),postUnassignPrelistUser:t=>n.post("/prelist/unassign/by-user",t),putUnassignRequest:t=>n.put("/transaction/request/unassign",t),putReportDone:(t,e)=>n.put(`/transaction/${t}/confirm-report-done`,e),getHistory:(t,e)=>{const r=t.split(" ").join("-").toLowerCase();return n.get(`/transaction/history/${r}`,{params:e})},getHistoryOptions:t=>n.get("/transaction/history/options",{params:t}),getHistoryByTransactionOptions:t=>n.get("/transaction/history/by-transaction/options",{params:t}),putCancelReport:t=>n.put("/transaction/request/cancel-report",t),getTaskAssignment:async t=>n.get("/transaction/my-asset/task",{params:t}),getTaskAssignmentOptions:async t=>n.get("/transaction/my-asset/task/options",{params:t}),getAssignedAsset:async t=>n.get("/transaction/my-asset/assigned-asset",{params:t}),getAssignedAssetOptions:async t=>n.get("/transaction/my-asset/assigned-asset/options",{params:t}),putCancelAssignment:async t=>n.put("/transaction/cancel",{id:t.id}),putCancelReportById:async t=>n.put(`/transaction/request/${t.id}/cancel-report`)}),I=o({prefix:"/assignment-go/v2"}),Qt=s("AssignmentServicesGo",{getTransactionData:t=>I.get("/transaction",{params:t}),getTransactionOptions:t=>I.get("/transaction/options",{params:t}),getDetailTransactionLog:t=>I.get(`/transaction/request/${t}/transaction-log`),postTransaction:t=>I.post("/transaction",t),putTransaction:t=>I.put("/transaction",t),putUnassignTransaction:t=>I.put("/transaction/unassign",t),putCancelReport:t=>I.put("/transaction/request/cancel-report",t)}),q=o({prefix:"/license/v2"}),Yt=s("LicenseServices",{getGroupQuota:t=>q.get(`/${t}/allocation-quota`),getSubGroupQuota:t=>q.get(`/${t}/subgroup-quota`),editSubGroupQuota:(t,e)=>q.put(`/${t}/set-group-quota`,e),getTotalLicense:()=>q.get("/total-license")}),Z=o({prefix:"/repair/v2/damage"}),Ht=s("DamageServices",{putReportDamage:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return Z.put(`/report-damage/${t}`,e,{headers:r})}})}}});
|
|
1
|
+
System.register(["axios"],function(s,st){"use strict";var B;return{setters:[k=>{B=k.default}],execute:function(){const k={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"},C=s("getBaseURL",(t="APP_API")=>k["VITE_"+t]),n=(t={},e=!1)=>{const{env:r="APP_API",prefix:u="",headers:R={},...h}=t,et=`${C(r)}${u}`,W=JSON.parse(localStorage.getItem("user")??"{}"),rt=W.jwt??W.token??"";return B.create({...h,baseURL:et,headers:e?R:{"Content-Type":"application/json",Authorization:`Bearer ${rt}`,...R}})},nt=s("queryParamsStringfy",t=>{if(!t||typeof t=="string")return;const e={};return Object.keys(t).forEach(r=>{Array.isArray(t[r])?t[r].length>0&&Object.assign(e,{[r]:JSON.stringify(t[r])}):t[r]!==void 0&&Object.assign(e,{[r]:t[r]})}),e}),ot=s("getImageURLGo",(t,e,r)=>{if(!t)return;const u=C("APP_API"),R=t.startsWith("http")?t:`${u}/utility/v2/files/${t.replace(/^\/+/,"")}`;if(e||r){const h=new URLSearchParams;return e&&(h.set("width",e.toString()),h.set("height",r?r==null?void 0:r.toString():e.toString())),`${R}?${h.toString()}`}return R}),at=s("getImageURL",t=>{if(!t)return;const e=C("APP_TAGSAMURAI_API");return t.startsWith("http")?t:`${e}/file-manager/v2/files/${t}`}),it=s("getAssetsFile",async(t,e="excel")=>await fetch(`${C("APP_ASSETS_URL")}/${e}/${t}`)),v=n({prefix:"/settings-attribute/v2",env:"APP_TAGSAMURAI_API"}),ut=s("GroupCategoryServices",{getGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return v.get(`/${r}/tree`,{params:e})},getGroupCategoryList:(t,e,r)=>{const u=t==="category"?t:"groups";return v.get(`/${u}/${e}`,{params:r})},getNames:t=>{const e=t==="category"?t:"groups";return v.get(`/${e}/names`)},getCodes:t=>{const e=t==="category"?t:"groups";return v.get(`/${e}/codes`)},postCreateGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return v.post(`/${r}`,e)},putEditGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return v.put(`/${u}/${r}`,e)},putMoveGroup:(t,e)=>v.put(`/groups/${e}/move-group`,t),putEditBulkGroups:async t=>v.put("/groups/bulk",t),deleteGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return v.delete(`/${u}/${r}`,{data:e})}}),P=n({prefix:"/settings-attribute-go/v2"}),gt=s("GroupCategoryServicesGo",{getGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return P.get(`/${r}/tree`,{params:e})},getGroupCategoryList:(t,e)=>{const r=t==="category"?t:"groups";return P.get(`/${r}/${e}`)},getNames:t=>{const e=t==="category"?t:"groups";return P.get(`/${e}/names`)},getCodes:t=>{const e=t==="category"?t:"groups";return P.get(`/${e}/codes`)},postCreateGroupCategory:(t,e)=>{const r=t==="category"?t:"groups";return P.post(`/${r}`,e)},putEditGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return P.put(`/${u}/${r}`,e)},deleteGroupCategory:(t,e,r)=>{const u=t==="category"?t:"groups";return P.delete(`/${u}/${r}`,{data:e})}}),z=n({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),ct=s("NotificationApprovalServices",{getTotalApprovals:()=>z.get("/approval/count")}),G=n({prefix:"/v2",env:"APP_LOGS_NOTIFICATION_API"}),pt=s("ChangelogServices",{getActionLog:t=>G.get("/change-log",{params:t}),getActionLogOption:t=>G.get("/change-log/options",{params:t}),getSessionLogList:t=>G.get("/session-log",{params:t}),getUserDetailSystemLogList:t=>G.get("/change-log",{params:t}),getUserDetailSystemLogOption:t=>G.get("/change-log/options",{params:t})}),y=n({prefix:"/utility/v2"}),lt=s("LogServicesGo",{getActionLog:t=>y.get("/change-log",{params:t}),getActionLogOption:t=>y.get("/change-log/options",{params:t}),getSessionLogList:t=>y.get("/session-log",{params:t}),getUserDetailSystemLogList:t=>y.get("/change-log",{params:t}),getUserDetailSystemLogOption:t=>y.get("/change-log/options",{params:t}),getUserDetailUserLogBorrowingList:(t,e)=>y.get(`/borrowing-log/${t}`,{params:e}),getUserDetailUserLogAssignmentList:(t,e)=>y.get(`/assignment-log/${t}`,{params:e}),getUserDetailUserLogBorrowingOption:(t,e)=>y.get(`/borrowing-log/${t}/options`,{params:e}),getUserDetailUserLogAssignmentOption:(t,e)=>y.get(`/assignment-log/${t}/options`,{params:e})}),l=n({prefix:"/assets/v2/assets"}),dt=s("AssetServices",{getScanTag:t=>l.get("/scan",{params:{tag:t}}),getAllAssets:t=>l.get("/",{params:t}),getAllAssetsOptions:t=>l.get("/options",{params:t}),getAvailableAssets:t=>l.get("/available",{params:t}),scanAsset:t=>l.get("",{params:{tag:t}}),getAssetsById:(t,e)=>l.get("/by-id",{params:{_id:t,...e}}),getOptions:(t,e)=>l.get(t?`/${t}/options`:"/options",{params:e}),getUnlinkedAssets:t=>l.get("/unlinked",{params:t}),getAssetDetail:(t,e)=>l.get(`/${t}`,{params:e}),getLinkedAssetFamily:t=>l.get("/family",{params:{id:t}}),matchAssetWithTag:(t,e)=>{const r={_id:JSON.stringify([t]),tag:e};return l.get("/by-id",{params:r})}}),H=n({prefix:"/tracking/v2/missing"}),$t=s("MissingServices",{putFoundAsset:(t,e)=>{const r={ids:[t],serialNumber:e};return H.put("/found",r)},putReportMissing:(t,e)=>H.put(`/report-missing/${t}`,e)}),j=n({prefix:"/v2/notification",env:"APP_LOGS_NOTIFICATION_API"}),At=s("NotificationServices",{getNotifications:t=>j.get("/",{params:t}),readNotification:t=>j.put(`/${t}`)}),Q=n({prefix:"/utility/v2/notification"}),vt=s("NotificationServicesGo",{getNotifications:t=>Q.get("/",{params:t}),readNotification:t=>Q.put(`/${t}`)}),Z=n({prefix:"/v2/session-log",env:"APP_LOGS_NOTIFICATION_API"}),yt=s("SessionLogServices",{postLogout:()=>Z.post("/logout")}),a=n({prefix:"/tag/v2"}),mt=s("TAGServices",{getScanQR:t=>a.get("/qr",{params:{tag:t}}),getScanRFID:t=>a.get("/rfid",{params:{tag:t}}),getRFIDQRTAG:t=>a.get("/rfid-qr/scan",{params:t}),getEventLog:t=>a.get("/tag-transaction/event-log",{params:t}),getRfidQrAll:(t,e)=>a.get(`/${t}`,{params:e}),getRfidQrPaired:(t,e,r)=>a.get(`/${t}/paired/${e}`,{params:r}),postAddTAGtoPrelist:(t,e)=>a.post(`/prelist/${e}/asset-name`,t),postAddTAGToPrelistUnpair:t=>a.post("/prelist/unpair-tag",t),postAddTAGtoPending:t=>a.post("/pending-changes",t),getRFIDQrAvailable:(t,e)=>a.get(`/${t}/available`,{params:e}),getRFIDQrDamaged:(t,e)=>a.get(`/${t}/damaged`,{params:e}),getRFIDandQRList:t=>a.get("/rfid-qr",{params:t}),deleteUnpairTAG:t=>a.delete("/rfid-qr",{data:{data:t}}),postPairTAG:t=>a.post("/rfid-qr",{body:{data:t}}),getToBeReturnedTAGList:t=>a.get("/rfid/to-be-returned",{params:t}),putHandoverTAG:t=>a.put("/rfid/handover",{body:{data:t}}),getFilterOptions:(t,e)=>a.get(`/${t}/options`,{params:e}),getHolderListOptions:t=>a.get("/rfid/holder-list/options",{params:t}),getHolderList:t=>a.get("/rfid/holder-list",{params:t}),putAuditTAG:(t,e)=>a.put(`/${e}/audit`,t),postLogAudit:t=>a.post("/tag-transaction/log-audit",t),postCreateQr:t=>{const e={amount:t};return a.post("/qr",e)},postScanLog:t=>a.post("/scan-log",t),putReportTAG:(t,e)=>a.put(`/tag-transaction/report/${t}`,e)}),F=n({prefix:"/tracking/v2/tracking"}),St=s("TrackingServices",{putFoundAsset:(t,e,r)=>{const u={tag:t,group:e,serialNumber:r,type:"Global"};return F.put("/found",{params:u})},putReportPermanentlyMissing:(t,e)=>F.put(`/report-permanently-missing/${t}`,e),getTrackingDetail:t=>F.get(`/${t}`)}),i=n({prefix:"/settings-user-role/v2"}),Pt=s("UserServices",{reLogin:t=>i.post("/auth/login",t),changePassword:t=>i.put("/users/change-password",t),getUserDropdown:t=>i.get("/users/dropdown",{params:t}),getUserOptions:t=>i.get("/users/options",{params:t}),getUserList:t=>i.get("/users",{params:t}),getUserDetail:t=>i.get(`/users/${t}`),putSetActiveBulk:t=>i.put("/users/set-active-bulk",t),getUserDetailSystemRoles:(t,e,r)=>{const u=r?`/${r}`:"";return i.get(`/user-detail/${t}/system-roles${u}`,{params:e})},getUserDetailTransactionRoleList:(t,e)=>i.get(`/user-detail/${t}/transaction-role-list`,{params:e}),postUserDetailAddTransactionRole:(t,e)=>i.post(`/user-detail/${t}/add-transaction-role`,e),deleteUserDetailTransactionRole:(t,e)=>i.delete(`/user-detail/${t}/delete-transaction-role`,{data:e}),putUserDetailEditTransactionRole:(t,e)=>i.put(`/user-detail/${t}/edit-transaction-role`,e),putAssignGroup:(t,e,r)=>i.put(`/user-detail/${r}/system-roles/${e}`,t),getUserDetailUserLogBorrowingList:(t,e)=>i.get(`/users-log/${t}/borrowing`,{params:e}),getUserDetailUserLogAssignmentList:(t,e)=>i.get(`/users-log/${t}/assignment`,{params:e}),getUserDetailUserLogBorrowingOption:(t,e)=>i.get(`/users-log/${t}/borrowing/option`,{params:e}),getUserDetailUserLogAssignmentOption:(t,e)=>i.get(`/users-log/${t}/assignment/option`,{params:e}),getUserDetailTransactionAdminLogList:(t,e)=>i.get(`/users-log/${t}/transaction-log`,{params:e}),getUserDetailTransactionAdminLogOption:(t,e)=>i.get(`/users-log/${t}/transaction-log/option`,{params:e}),getUserDetailUserAssetBorrowedList:(t,e)=>i.get(`/user-detail/${t}/assets/borrowed`,{params:e}),getUserDetailUserAssetAssignedList:(t,e)=>i.get(`/user-detail/${t}/assets/assigned`,{params:e}),getUserDetailUserAssetBorrowedOption:(t,e)=>i.get(`/user-detail/${t}/assets/borrowed/option`,{params:e}),getUserDetailUserAssetAssignedOption:(t,e)=>i.get(`/user-detail/${t}/assets/assigned/option`,{params:e})}),g=n({prefix:"/settings-user-role-go/v2"}),Ut=s("UserServicesGo",{getUserDropdown:t=>g.get("/users/dropdown",{params:t}),getUserOptions:t=>g.get("/users/options",{params:t}),getUserList:t=>g.get("/users",{params:t}),getUserDetail:t=>g.get(`/users/${t}`),putSetActiveBulk:t=>g.put("/users/set-active-bulk",t),getUserDetailSystemRoles:(t,e,r)=>{const u=r?`/${r}/groups`:"";return g.get(`/users/${t}/system-roles${u}`,{params:e})},getUserDetailTransactionRoleList:(t,e)=>g.get(`/users/${t}/transaction-roles`,{params:e}),postUserDetailAddTransactionRole:(t,e)=>g.post(`/users/${t}/add-transaction-role`,e),deleteUserDetailTransactionRole:(t,e)=>g.delete(`/users/${t}/delete-transaction-role`,{data:e}),putUserDetailEditTransactionRole:(t,e)=>g.put(`/users/${t}/edit-transaction-role`,e),putAssignGroup:(t,e,r)=>g.put(`/users/${r}/system-roles/${e}/groups`,t),putRoleSetActive:(t,e)=>g.put(`/users/${e}/system-roles/set-active-bulk`,t),getUserDetailTransactionAdminLogList:(t,e)=>g.get(`/users/${t}/transaction-log`,{params:e}),getUserDetailTransactionAdminLogOption:(t,e)=>g.get(`/users/${t}/transaction-log/option`,{params:e}),getUserDetailUserAssetBorrowedList:(t,e)=>g.get(`/users/${t}/borrowed-asset`,{params:e}),getUserDetailUserAssetAssignedList:(t,e)=>g.get(`/users/${t}/assigned-asset`,{params:e}),getUserDetailUserAssetBorrowedOption:(t,e)=>g.get(`/users/${t}/borrowed-asset/option`,{params:e}),getUserDetailUserAssetAssignedOption:(t,e)=>g.get(`/users/${t}/assigned-asset/option`,{params:e})}),m=n({prefix:"/settings-user-role/v2/sub-users"}),It=s("SubUserServices",{getSubUserList:(t,e)=>m.get(`/${t}`,{params:e}),getSubUserOptions:(t,e)=>m.get(`/${t}/option`,{params:e}),postCreateSubUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return m.post(`/${t}`,e,{headers:r})},putSubUserSetActiveBulk:t=>m.put("/set-active-bulk",t),deleteSubUser:t=>m.delete("/bulk",{data:{subUserIds:t}}),putEditSubUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return m.put(`/${t}`,e,{headers:r})},getBorrowedAsset:(t,e)=>m.get(`/${t}/borrowed-asset`,{params:e}),getBorrowedAssetOptions:(t,e)=>m.get(`/${t}/borrowed-asset/options`,{params:e})}),A=n({prefix:"/settings-user-role-go/v2/users"}),ft=s("SubUserServicesGo",{getSubUserList:(t,e)=>A.get(`/${t}/sub-users`,{params:e}),getSubUserOptions:(t,e)=>A.get(`/${t}/sub-users/option`,{params:e}),postCreateSubUser:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return A.post(`/${t}/sub-users`,e,{headers:r})},putSubUserSetActiveBulk:(t,e)=>A.put(`/${t}/sub-users/set-active-bulk`,e),deleteSubUser:(t,e)=>A.put(`/${t}/sub-users/bulk`,{subUserIds:e}),putEditSubUser:(t,e,r)=>{const u={"Content-Type":"multipart/form-data"};return A.put(`/${t}/sub-users/${e}`,r,{headers:u})},getBorrowedAsset:(t,e,r)=>A.get(`/${t}/sub-users/${e}/borrowed-asset`,{params:r}),getBorrowedAssetOptions:(t,e,r)=>A.get(`/${t}/sub-users/${e}/borrowed-asset/options`,{params:r}),getAssignedAsset:(t,e,r)=>A.get(`/${t}/sub-users/${e}/assigned-asset`,{params:r}),getAssignedAssetOptions:(t,e,r)=>A.get(`/${t}/sub-users/${e}/assigned-asset/options`,{params:r})}),w=n({env:"APP_ADMIN_API",prefix:"/settings-attribute/languages"}),Ct=s("I18nService",{getMessages:t=>w.get(`/${t}/translations`),getLanguageOptions:async()=>{const{data:t}=await w.get("/dropdown");return t.data},getLanguageOptionMeta:async t=>{const{data:e}=await w.get("/dropdown/"+t);return e.data},translateText:async(t,e)=>{const{data:r}=await w.post("/translate",{q:t,target:e});return r.data.translations[t]}}),Y=n({prefix:"/dashboard/v2/dashboard"}),Lt=s("DashboardServices",{getLatestTask:t=>Y.get("/latest-task",{params:t}),getSummary:t=>Y.get("/summary",{params:t})}),N=n({prefix:"/alias-code/api/alias-code"}),Tt=s("AliasCodeServices",{getAliasCode:()=>N.get("/"),postAliasCode:t=>N.post("/",t),getAliasCodeList:t=>N.get(`/${t.object}/code-list`,{params:t})}),M=n({prefix:"/settings-attribute-go/v2/alias-code"}),bt=s("AliasCodeServicesGo",{getAliasCode:()=>M.get("/"),postAliasCode:t=>M.post("/",t),getAliasCodeList:t=>M.get(`/${t.object}/code-list`,{params:t})}),x=n({prefix:"/settings-attribute/v2/general-settings"}),Ot=s("GeneralSettingsServices",{getGeneralSettings:()=>x.get("/"),putUpdateGeneralSettings:t=>x.put("/",t)}),J=n({prefix:"/settings-attribute-go/v2/general-settings"}),Dt=s("GeneralSettingsServicesGo",{getGeneralSettings:()=>J.get("/"),putUpdateGeneralSettings:t=>J.put("/",t)}),L=n({prefix:"/settings-attribute/v2/custom-field"}),Rt=s("CustomFieldServices",{getCustomField:async t=>L.get("/",{params:t}),getOptions:async t=>L.get("/options",{params:t}),postCreateCustomField:async(t,e)=>L.post("/",e,{params:t}),putEditCustomField:async(t,e,r)=>L.put(`/${r}`,e,{params:t}),putChangeStatus:async(t,e)=>L.put("/bulk",e,{params:t}),deleteCustomField:async t=>L.delete("/bulk",{data:t})}),T=n({prefix:"/settings-attribute-go/v2/custom-field"}),Gt=s("CustomFieldServicesGo",{getCustomField:async t=>T.get("/",{params:t}),getOptions:async t=>T.get("/options",{params:t}),postCreateCustomField:async(t,e)=>T.post("/",e,{params:t}),putEditCustomField:async(t,e,r)=>T.put(`/${r}`,e,{params:t}),putChangeStatus:async(t,e)=>T.put("/bulk",e,{params:t}),deleteCustomField:async t=>T.delete("/bulk",{params:t})}),V=({headers:t={},params:e={}}={})=>{const r=C("APP_COUNTRY_STATE_API"),u=C("APP_COUNTRY_STATE_API_KEY");return B.create({baseURL:`${r}/v1`,headers:{"Content-type":"application/json","X-CSCAPI-KEY":u,...t},params:e})},_t=s("CountryStateServices",{getCountry:()=>V().get("/countries"),getState:t=>V().get(`/countries/${t}/states`),getCity:(t,e)=>V().get(`/countries/${t}/states/${e}/cities`)}),d=n({prefix:"/routine/v2"}),ht=s("ServiceCenterServices",{getList:t=>d.get("/service-center",{params:t}),postList:t=>d.post("/service-center",t),putList:(t,e)=>d.put(`/service-center/${t}`,e),putActivate:t=>d.put("/service-center/bulk",t),getDetailList:t=>d.get(`/service-center/${t}`),getListOptions:t=>d.get("/service-center/options",{params:t}),deleteList:t=>d.delete("/service-center",{params:t}),getActivities:t=>d.get("/service-activities",{params:t}),getActivityOptions:t=>d.get("/service-activities/options",{params:t}),getActivityDetail:t=>d.get(`/service-activities/${t}`),getActivityLog:t=>d.get(`/service-activities/${t}/activity-log`)}),X=n({prefix:"/settings-attribute/v2/brands"}),wt=s("BrandServices",{getDropdown:t=>X.get("/dropdown",{params:t})}),b=n({prefix:"/file-manager/v2"}),qt=s("FileManagerServices",{getStorageInformation:()=>b.get("/files/storage"),getFileManager:(t,e)=>b.get(`/${t}`,{params:e}),getFileManagerOption:(t,e)=>b.get(`/${t}/options`,{params:e}),recoverFiles:(t,e)=>b.put(`/${t}/recover`,e),deleteFiles:(t,e)=>b.delete(`/${t}`,{params:e}),deletePermanently:(t,e)=>b.delete(`/${t}/delete-permanent`,{params:e})}),O=n({prefix:"/utility/v2"}),Et=s("FileManagerServicesGo",{getStorageInformation:()=>O.get("/files/storage"),getFileManager:(t,e)=>O.get(`/${t}`,{params:e}),getFileManagerOption:(t,e)=>O.get(`/${t}/options`,{params:e}),recoverFiles:(t,e)=>O.put(`/${t}/recover`,e),deleteFiles:(t,e)=>O.delete(`/${t}`,{params:e}),deletePermanently:(t,e)=>O.delete(`/${t}/delete-permanent`,{params:e})}),S=n({prefix:"/iot/v2/reader"}),Bt=s("ReaderServices",{getData:t=>S.get("/",{params:t}),getDataOptions:t=>S.get("/options",{params:t}),getActivityLogData:t=>S.get("/activity-log",{params:t}),getActivityLogOptions:t=>S.get("/activity-log/options",{params:t}),getDataById:t=>S.get(`/${t}`),getChangeLog:t=>S.get(`/${t.id}/change-log`,{params:t}),getChangeLogOptions:t=>S.get(`/${t.id}/change-log/options`,{params:t}),putData:(t,e)=>S.put(`/${t}`,e)}),c=n({prefix:"/settings-user-role/v2"}),kt=s("RoleServices",{getTransactionRole:(t,e)=>c.get(`/transaction-roles/${t}/${e}`),putUpdateUsers:(t,e,r)=>c.put(`/transaction-roles/${t}/${e}/update-user`,r),putUpdateLevel:(t,e,r)=>c.put(`/transaction-roles/${t}/${e}/update-approval-level`,r),putUpdateGroupManage:(t,e,r)=>c.put(`/transaction-roles/${t}/${e}/update-manage-by-parent`,r),getUserAssignedSystemRole:t=>c.get(`/system-roles/user/${t}`),getAssignedUserAmounts:()=>c.get("/system-roles/amounts"),getPermissionUser:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return c.get(`/system-roles/total-control-read-only/${r}`,{params:e})}return c.get(`/system-roles/permission/${t}`,{params:e})},getPermissionUserOptions:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return c.get(`/system-roles/total-control-read-only/${r}/options`,{params:e})}return c.get(`/system-roles/permission/${t}/options`,{params:e})},getUserGroups:(t,e)=>c.get(`/system-roles/permission/${e}/groups`,{params:t}),postAssignUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return c.post(`/system-roles/total-control-read-only/${r}`,t)}return c.post(`/system-roles/permission/${e}`,t)},putEditUser:(t,e)=>c.put(`/system-roles/${e}`,t),putRoleSetActive:t=>c.put("/system-roles/set-active",t),deleteRemoveUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return c.delete(`/system-roles/total-control-read-only/${r}`,{data:t})}return c.delete("/system-roles",{data:t})}}),p=n({prefix:"/settings-user-role-go/v2"}),Ft=s("RoleServicesGo",{getTransactionRole:(t,e)=>p.get(`/transaction-roles/${t}/${e}`),getTransactionRoleTypes:(t,e)=>p.get(`/transaction-roles/${e}/types`,{params:{groupKeys:t}}),putUpdateUsers:(t,e,r)=>p.put(`/transaction-roles/${t}/${e}/update-user`,r),putUpdateLevel:(t,e,r)=>p.put(`/transaction-roles/${t}/${e}/update-approval-level`,r),putUpdateGroupManage:(t,e,r)=>p.put(`/transaction-roles/${t}/${e}/update-manage-by-parent`,r),getUserAssignedSystemRole:t=>p.get(`/system-roles/user/${t}`),getAssignedUserAmounts:()=>p.get("/system-roles/amounts"),getPermissionUser:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return p.get(`/system-roles/total-control-read-only/${r}`,{params:e})}return p.get(`/system-roles/permission/${t}`,{params:e})},getPermissionUserOptions:(t,e)=>{if(["totalControl","readOnly"].includes(t??"")){const r=t==="totalControl"?"total-control":"read-only";return p.get(`/system-roles/total-control-read-only/${r}/options`,{params:e})}return p.get(`/system-roles/permission/${t}/options`,{params:e})},getUserGroups:(t,e)=>p.get(`/system-roles/permission/${e}/groups`,{params:t}),postAssignUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return p.post(`/system-roles/total-control-read-only/${r}`,t)}return p.post(`/system-roles/permission/${e}`,t)},putEditUser:(t,e)=>p.put(`/system-roles/${e}`,t),deleteRemoveUser:(t,e)=>{if(["totalControl","readOnly"].includes(e??"")){const r=e==="totalControl"?"total-control":"read-only";return p.put(`/system-roles/total-control-read-only/${r}`,t)}return p.put("/system-roles",t)}}),_=n({prefix:"/settings-attribute/v2/open-api"}),Nt=s("OpenAPIServices",{getOpenAPIDocs:t=>_.get(`/${t.doc}`),putGenerateToken:()=>_.put("/generate"),getToken:()=>_.get(""),putRequestOpenAPI:()=>_.put("/request"),putCancelRequestOpenAPI:()=>_.put("/cancel-request")}),q=n({prefix:"/settings-attribute-go/v2/open-api"}),Mt=s("OpenAPIServicesGo",{putGenerateToken:()=>q.put("/generate"),getToken:()=>q.get(""),putRequestOpenAPI:()=>q.put("/request"),putCancelRequestOpenAPI:()=>q.put("/cancel-request")}),U=n({prefix:"/import/v2"}),Vt=s("ImportServices",{getImport:(t,e)=>U.get(`/${t}`,{params:e}),postImportTemporary:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return U.post(`/${t}/temporary`,e,{headers:r})},deleteImportTemporary:(t,e)=>U.delete(`/${t}/temporary`,{data:e}),postDuplicateImport:(t,e)=>U.post(`/${t}/duplicate`,e),putEditImport:(t,e)=>U.put(`/${t}`,e),postImport:(t,e,r)=>U.post(t,r,{signal:e.signal}),putImportCancelProgress:t=>U.put(`/${t}/cancel-progress`)}),I=n({prefix:"/import-go/v2"}),Ht=s("ImportServicesGo",{getImport:(t,e)=>I.get(`/${t}`,{params:e}),postImportTemporary:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return I.post(`/${t}/temporary`,e,{headers:r})},deleteImportTemporary:(t,e)=>I.delete(`/${t}/temporary`,{params:e}),postDuplicateImport:(t,e)=>I.post(`/${t}/duplicate`,e),putEditImport:(t,e)=>I.put(`/${t}`,e),postImport:(t,e,r)=>I.post(t,r,{signal:e.signal}),putImportCancelProgress:t=>I.put(`/${t}/cancel-progress`)}),D=n({prefix:"/settings-attribute/v2/asset-name"}),jt=s("AssetNameServices",{getDropdown:t=>D.get("/dropdown",{params:t}),getAssetNameDetail:t=>D.get(`/${t}`),getAssetsByAssetName:(t,e)=>D.get(`/${t}/list-asset`,{params:e}),getAssetNameList:t=>D.get("/",{params:t}),getUnpairedAssetName:t=>D.get("/unpaired",{params:t}),getOptions:t=>D.get("/options",{params:t})}),o=n({prefix:"/assignment/v2"}),Qt=s("AssignmentServices",{getPreListData:t=>o.get("/prelist",{params:t}),getPreListOptions:t=>o.get("/prelist/options",{params:t}),getRequestData:t=>o.get("/prelist/request",{params:t}),getDetailRequestData:(t,e)=>o.get(`/transaction/${t}/request`,{params:e}),getDetailRequestOption:(t,e)=>o.get(`/transaction/${e}/request/options`,{params:t}),getTransactionData:t=>o.get("/transaction",{params:t}),getTransactionOptions:t=>o.get("/transaction/options",{params:t}),getDetailTransactionData:t=>o.get(`/transaction/${t}`),getTransactionApprovals:t=>o.get(`/approval/transaction/${t}/transaction`),getDetailTransactionLog:t=>o.get(`/transaction/request/${t}/transaction-log`),getVerifyAsset:(t,e)=>o.get(`/transaction/${e}/request/scan`,{params:t}),putEditAssignedUser:(t,e)=>o.put(`/transaction/${t}/user`,e),putEditEmailConfirmation:(t,e)=>o.put(`/transaction/${t}/update-email-or-assigned-user`,e),postSendConfirmationEmail:t=>o.post(`/transaction/${t}/send-confirmation-email`),postTransaction:t=>o.post("/transaction",t),putTransaction:(t,e)=>o.put(`/transaction/${t}/request`,e),putCancelTransaction:t=>o.put("/transaction/cancel",t),putCancelAssignmentRequest:t=>o.put("/transaction/request/cancel",t),putVerifyRequest:(t,e)=>o.put(`/transaction/${e}/verify-requests`,t),putVerifyToken:t=>o.put("/transaction/verify-token",t),putHandoverConfirm:t=>o.put("/transaction/handover-confirmation",t),putAssignHandover:t=>o.put(`/transaction/${t}/handover`),deletePrelistData:t=>o.delete("/prelist",{params:t}),deleteRequestPrelistData:t=>o.delete("/prelist/request",{data:t}),getAssignedByAsset:t=>o.get("/transaction/request/assigned/by-asset",{params:t}),getAssignedByAssetOptions:t=>o.get("/transaction/request/assigned/by-asset/options",{params:t}),getAssignedByUser:t=>o.get("/transaction/request/assigned/by-user",{params:t}),getAssignedByUserOptions:t=>o.get("/transaction/request/assigned/by-user/options",{params:t}),postUnassignPrelistAsset:t=>o.post("/prelist",t),postUnassignPrelistUser:t=>o.post("/prelist/unassign/by-user",t),putUnassignRequest:t=>o.put("/transaction/request/unassign",t),putReportDone:(t,e)=>o.put(`/transaction/${t}/confirm-report-done`,e),getHistory:(t,e)=>{const r=t.split(" ").join("-").toLowerCase();return o.get(`/transaction/history/${r}`,{params:e})},getHistoryOptions:t=>o.get("/transaction/history/options",{params:t}),getHistoryByTransactionOptions:t=>o.get("/transaction/history/by-transaction/options",{params:t}),putCancelReport:t=>o.put("/transaction/request/cancel-report",t),getTaskAssignment:async t=>o.get("/transaction/my-asset/task",{params:t}),getTaskAssignmentOptions:async t=>o.get("/transaction/my-asset/task/options",{params:t}),getAssignedAsset:async t=>o.get("/transaction/my-asset/assigned-asset",{params:t}),getAssignedAssetOptions:async t=>o.get("/transaction/my-asset/assigned-asset/options",{params:t}),putCancelAssignment:async t=>o.put("/transaction/cancel",{id:t.id}),putCancelReportById:async t=>o.put(`/transaction/request/${t.id}/cancel-report`)}),f=n({prefix:"/assignment-go/v2"}),Yt=s("AssignmentServicesGo",{getTransactionData:t=>f.get("/transaction",{params:t}),getTransactionOptions:t=>f.get("/transaction/options",{params:t}),getDetailTransactionLog:t=>f.get(`/transaction/request/${t}/transaction-log`),postTransaction:t=>f.post("/transaction",t),putTransaction:t=>f.put("/transaction",t),putUnassignTransaction:t=>f.put("/transaction/unassign",t),putCancelReport:t=>f.put("/transaction/request/cancel-report",t)}),E=n({prefix:"/license/v2"}),xt=s("LicenseServices",{getGroupQuota:t=>E.get(`/${t}/allocation-quota`),getSubGroupQuota:t=>E.get(`/${t}/subgroup-quota`),editSubGroupQuota:(t,e)=>E.put(`/${t}/set-group-quota`,e),getTotalLicense:()=>E.get("/total-license")}),tt=n({prefix:"/repair/v2/damage"}),Jt=s("DamageServices",{putReportDamage:(t,e)=>{const r={"Content-Type":"multipart/form-data"};return tt.put(`/report-damage/${t}`,e,{headers:r})}}),$=n({prefix:"/borrowing/v2"}),Kt=s("BorrowServices",{getTaskBorrowing:async t=>$.get("/transaction/my-asset/task",{params:t}),getTaskBorrowingOptions:async t=>$.get("/transaction/my-asset/task/options",{params:t}),getBorrowedAsset:async t=>$.get("/transaction/my-asset/borrowed-asset",{params:t}),getBorrowedOptions:async t=>$.get("/transaction/my-asset/borrowed-asset/options",{params:t}),getHistory:async t=>$.get("/transaction/my-asset/history",{params:t}),getHistoryOptions:async t=>$.get("/transaction/my-asset/history/options",{params:t}),putCancelBorrowing:async t=>$.put("/transaction/cancel",{id:t.id}),putCancelExtensionRequest:async t=>$.put(`/transaction/${t.id}/cancel-extension`),putCancelRequestReport:async t=>$.put(`/transaction/request/${t.id}/cancel-report`),putDeclineExtensionRequest:async t=>$.put("transaction/request/decline",t),putUpdateRequestExtension:async t=>$.put("transaction/request/duration",t)}),K=n({prefix:"/assets/v2"}),Wt=s("MyAssetServices",{getHistory:async t=>K.get("/my-asset",{params:t}),getHistoryOptions:async t=>K.get("/my-asset/options",{params:t})})}}});
|
package/main.d.ts
CHANGED
|
@@ -40,3 +40,5 @@ export { default as AssignmentServices } from './src/services/oldAssignment.serv
|
|
|
40
40
|
export { default as AssignmentServicesGo } from './src/services/assignment.service';
|
|
41
41
|
export { default as LicenseServices } from './src/services/oldLicense.service';
|
|
42
42
|
export { default as DamageServices } from './src/services/oldDamage.service';
|
|
43
|
+
export { default as BorrowServices } from './src/services/oldBorrow.service';
|
|
44
|
+
export { default as MyAssetServices } from './src/services/oldMyAsset.service';
|
package/package.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { AxiosResponse } from 'axios';
|
|
2
|
+
import { HistoryFilterQueryParams, HistoryOptionsQueryParams } from '../dto/oldBorrowService.dto';
|
|
3
|
+
declare const MyAssetServices: {
|
|
4
|
+
getHistory: (params: HistoryFilterQueryParams) => Promise<AxiosResponse>;
|
|
5
|
+
getHistoryOptions: (params: HistoryOptionsQueryParams) => Promise<AxiosResponse>;
|
|
6
|
+
};
|
|
7
|
+
export default MyAssetServices;
|