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