@fctc/interface-logic 5.2.5 → 5.2.6
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/dist/chunk-CCTDGAMA.js +48 -47
- package/dist/chunk-COC7NGXP.js +19 -19
- package/dist/chunk-F2VAAEVB.mjs +12 -3
- package/dist/chunk-F4RE57FT.mjs +1235 -326
- package/dist/chunk-FWBYTZIV.js +23 -18
- package/dist/chunk-GGNOJ77I.js +1 -2
- package/dist/chunk-HQVNK2EW.mjs +23 -1
- package/dist/chunk-Q3Y6RCJ4.mjs +18 -1
- package/dist/chunk-U2COUTK5.js +1498 -762
- package/dist/chunk-U4Q3MW45.js +67 -62
- package/dist/chunk-VBVNP77T.mjs +6 -2
- package/dist/chunk-WAXGOBY2.mjs +0 -1
- package/dist/chunk-WTPKTZQC.js +33 -31
- package/dist/chunk-ZDXEWQQD.mjs +10 -3
- package/dist/configs.js +3 -7
- package/dist/configs.mjs +7 -2
- package/dist/constants.js +36 -70
- package/dist/constants.mjs +36 -1
- package/dist/environment.js +6 -14
- package/dist/environment.mjs +12 -3
- package/dist/hooks.js +304 -610
- package/dist/hooks.mjs +312 -5
- package/dist/index.js +433 -848
- package/dist/index.mjs +433 -7
- package/dist/models.js +3 -7
- package/dist/models.mjs +7 -2
- package/dist/provider.js +18 -38
- package/dist/provider.mjs +26 -5
- package/dist/services.js +22 -46
- package/dist/services.mjs +30 -5
- package/dist/types.js +1 -4
- package/dist/types.mjs +1 -1
- package/dist/utils.js +36 -70
- package/dist/utils.mjs +36 -1
- package/package.json +1 -1
package/dist/chunk-CCTDGAMA.js
CHANGED
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var chunkU4Q3MW45_js = require('./chunk-U4Q3MW45.js');
|
|
4
|
-
var axios = require('axios');
|
|
5
3
|
|
|
6
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
4
|
|
|
8
|
-
var
|
|
5
|
+
var _chunkU4Q3MW45js = require('./chunk-U4Q3MW45.js');
|
|
9
6
|
|
|
7
|
+
// src/configs/axios-client.ts
|
|
8
|
+
var _axios = require('axios'); var _axios2 = _interopRequireDefault(_axios);
|
|
10
9
|
function removeLanguages(acceptLang, removeList) {
|
|
11
|
-
return acceptLang.split(",").map((x) => x.trim()).filter((item) => !removeList
|
|
10
|
+
return acceptLang.split(",").map((x) => x.trim()).filter((item) => !_optionalChain([removeList, 'optionalAccess', _2 => _2.some, 'call', _3 => _3((lang) => _optionalChain([item, 'optionalAccess', _4 => _4.startsWith, 'call', _5 => _5(lang)]))])).join(",");
|
|
12
11
|
}
|
|
13
12
|
var axiosClient = {
|
|
14
13
|
init(config) {
|
|
15
|
-
const localStorage = config
|
|
16
|
-
const sessionStorage = config
|
|
17
|
-
const db = config
|
|
18
|
-
const database = config
|
|
19
|
-
const isSupabaseMode = config
|
|
14
|
+
const localStorage = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _6 => _6.localStorageUtils]), () => ( _chunkU4Q3MW45js.localStorageUtils.call(void 0, )));
|
|
15
|
+
const sessionStorage = _nullishCoalesce(_optionalChain([config, 'optionalAccess', _7 => _7.sessionStorageUtils]), () => ( _chunkU4Q3MW45js.sessionStorageUtils));
|
|
16
|
+
const db = _optionalChain([config, 'optionalAccess', _8 => _8.db]);
|
|
17
|
+
const database = _optionalChain([config, 'optionalAccess', _9 => _9.config, 'optionalAccess', _10 => _10.database]);
|
|
18
|
+
const isSupabaseMode = _optionalChain([config, 'optionalAccess', _11 => _11.isSupaMode]);
|
|
20
19
|
let isRefreshing = false;
|
|
21
20
|
let failedQueue = [];
|
|
22
21
|
const processQueue = (error, token = null) => {
|
|
23
|
-
failedQueue
|
|
22
|
+
_optionalChain([failedQueue, 'optionalAccess', _12 => _12.forEach, 'call', _13 => _13((prom) => {
|
|
24
23
|
if (error) {
|
|
25
24
|
prom.reject(error);
|
|
26
25
|
} else {
|
|
27
26
|
prom.resolve(token);
|
|
28
27
|
}
|
|
29
|
-
});
|
|
28
|
+
})]);
|
|
30
29
|
failedQueue = [];
|
|
31
30
|
};
|
|
32
|
-
const instance =
|
|
33
|
-
adapter:
|
|
34
|
-
baseURL: config
|
|
31
|
+
const instance = _axios2.default.create({
|
|
32
|
+
adapter: _axios2.default.defaults.adapter,
|
|
33
|
+
baseURL: _optionalChain([config, 'optionalAccess', _14 => _14.baseUrl]),
|
|
35
34
|
timeout: 5e4,
|
|
36
35
|
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
37
36
|
});
|
|
38
37
|
instance.interceptors.request.use(async (configReq) => {
|
|
39
|
-
const rawLang = navigator.languages
|
|
38
|
+
const rawLang = _optionalChain([navigator, 'access', _15 => _15.languages, 'optionalAccess', _16 => _16.join, 'call', _17 => _17(",")]) || navigator.language;
|
|
40
39
|
const useRefreshToken = configReq.headers["X-Use-Refresh-Token"] === "true";
|
|
41
40
|
const useActionToken = configReq.headers["X-Use-Action-Token"] === "true";
|
|
42
41
|
const actionToken = configReq.headers["X-Action-Token"];
|
|
43
|
-
const cleaned = removeLanguages(rawLang, config
|
|
42
|
+
const cleaned = removeLanguages(rawLang, _optionalChain([config, 'optionalAccess', _18 => _18.excludeLanguages]));
|
|
44
43
|
let token = null;
|
|
45
44
|
if (useActionToken && actionToken) {
|
|
46
45
|
token = actionToken;
|
|
47
46
|
} else {
|
|
48
47
|
const getToken = useRefreshToken ? localStorage.getRefreshToken : localStorage.getAccessToken;
|
|
49
|
-
token = await getToken
|
|
48
|
+
token = await _optionalChain([getToken, 'optionalCall', _19 => _19()]);
|
|
50
49
|
}
|
|
51
50
|
if (token) {
|
|
52
51
|
configReq.headers["Authorization"] = `Bearer ${token}`;
|
|
@@ -59,11 +58,11 @@ var axiosClient = {
|
|
|
59
58
|
}, Promise.reject);
|
|
60
59
|
const buildRefreshUrl = () => {
|
|
61
60
|
if (!config.refreshTokenEndpoint) {
|
|
62
|
-
return `${getBaseUrl(config
|
|
61
|
+
return `${getBaseUrl(_optionalChain([config, 'optionalAccess', _20 => _20.baseUrl]))}${"/authentication/oauth2/token" /* AUTH_TOKEN_PATH */}`;
|
|
63
62
|
}
|
|
64
63
|
const ep = String(config.refreshTokenEndpoint);
|
|
65
64
|
if (/^https?:\/\//i.test(ep)) return ep;
|
|
66
|
-
const cleanBase = String(config
|
|
65
|
+
const cleanBase = String(_optionalChain([config, 'optionalAccess', _21 => _21.baseUrl]) || "").replace(/\/$/, "");
|
|
67
66
|
const cleanEp = ep.startsWith("/") ? ep : `/${ep}`;
|
|
68
67
|
return `${cleanBase}${cleanEp}`;
|
|
69
68
|
};
|
|
@@ -73,13 +72,13 @@ var axiosClient = {
|
|
|
73
72
|
const handleError = async (err) => {
|
|
74
73
|
if (!err.response) return err;
|
|
75
74
|
const { data } = err.response;
|
|
76
|
-
if (data && data.code === 400 && ["invalid_grant"].includes(data.data
|
|
75
|
+
if (data && data.code === 400 && ["invalid_grant"].includes(_optionalChain([data, 'access', _22 => _22.data, 'optionalAccess', _23 => _23.error]))) {
|
|
77
76
|
await clearAuthToken();
|
|
78
77
|
}
|
|
79
78
|
return data;
|
|
80
79
|
};
|
|
81
80
|
const originalRequest = error.config;
|
|
82
|
-
if ((error.response
|
|
81
|
+
if ((_optionalChain([error, 'access', _24 => _24.response, 'optionalAccess', _25 => _25.status]) === 403 || _optionalChain([error, 'access', _26 => _26.response, 'optionalAccess', _27 => _27.status]) === 401 || _optionalChain([error, 'access', _28 => _28.response, 'optionalAccess', _29 => _29.status]) === 404) && ["TOKEN_EXPIRED", "AUTHEN_FAIL", 401, "ERR_2FA_006"].includes(
|
|
83
82
|
error.response.data.code
|
|
84
83
|
)) {
|
|
85
84
|
if (isRefreshing) {
|
|
@@ -87,13 +86,13 @@ var axiosClient = {
|
|
|
87
86
|
failedQueue.push({ resolve, reject });
|
|
88
87
|
}).then((newToken) => {
|
|
89
88
|
originalRequest.headers["Authorization"] = "Bearer " + newToken;
|
|
90
|
-
originalRequest.data =
|
|
89
|
+
originalRequest.data = _chunkU4Q3MW45js.updateTokenParamInOriginalRequest.call(void 0,
|
|
91
90
|
originalRequest,
|
|
92
91
|
newToken
|
|
93
92
|
);
|
|
94
93
|
return instance.request(originalRequest);
|
|
95
94
|
}).catch(async (err) => {
|
|
96
|
-
if ((err.response
|
|
95
|
+
if ((_optionalChain([err, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.status]) === 400 || _optionalChain([err, 'access', _32 => _32.response, 'optionalAccess', _33 => _33.status]) === 401) && ["invalid_grant"].includes(err.response.data.error)) {
|
|
97
96
|
await clearAuthToken();
|
|
98
97
|
}
|
|
99
98
|
});
|
|
@@ -115,7 +114,7 @@ var axiosClient = {
|
|
|
115
114
|
);
|
|
116
115
|
const refreshUrl = buildRefreshUrl();
|
|
117
116
|
return new Promise(function(resolve) {
|
|
118
|
-
|
|
117
|
+
_axios2.default.post(refreshUrl, payload, {
|
|
119
118
|
headers: {
|
|
120
119
|
"Content-Type": config.refreshTokenEndpoint ? "application/x-www-form-urlencoded" : "multipart/form-data",
|
|
121
120
|
Authorization: `Bearer ${accessTokenExp}`
|
|
@@ -124,20 +123,20 @@ var axiosClient = {
|
|
|
124
123
|
const data = res.data;
|
|
125
124
|
await localStorage.setToken(data.access_token);
|
|
126
125
|
await localStorage.setRefreshToken(data.refresh_token);
|
|
127
|
-
|
|
126
|
+
_axios2.default.defaults.headers.common["Authorization"] = "Bearer " + data.access_token;
|
|
128
127
|
originalRequest.headers["Authorization"] = "Bearer " + data.access_token;
|
|
129
|
-
originalRequest.data =
|
|
128
|
+
originalRequest.data = _chunkU4Q3MW45js.updateTokenParamInOriginalRequest.call(void 0,
|
|
130
129
|
originalRequest,
|
|
131
130
|
data.access_token
|
|
132
131
|
);
|
|
133
132
|
processQueue(null, data.access_token);
|
|
134
133
|
resolve(instance.request(originalRequest));
|
|
135
134
|
}).catch(async (err) => {
|
|
136
|
-
if (err && (err
|
|
135
|
+
if (err && (_optionalChain([err, 'optionalAccess', _34 => _34.error_code]) === "AUTHEN_FAIL" || _optionalChain([err, 'optionalAccess', _35 => _35.error_code]) === "TOKEN_EXPIRED" || _optionalChain([err, 'optionalAccess', _36 => _36.error_code]) === "TOKEN_INCORRECT" || _optionalChain([err, 'optionalAccess', _37 => _37.code]) === "ERR_2FA_006")) {
|
|
137
136
|
await clearAuthToken();
|
|
138
137
|
}
|
|
139
138
|
if (err && err.response) {
|
|
140
|
-
const { error_code } = err.response
|
|
139
|
+
const { error_code } = _optionalChain([err, 'access', _38 => _38.response, 'optionalAccess', _39 => _39.data]) || {};
|
|
141
140
|
const { code } = err;
|
|
142
141
|
if (error_code === "AUTHEN_FAIL" || code === "ERR_2FA_006") {
|
|
143
142
|
await clearAuthToken();
|
|
@@ -163,13 +162,13 @@ var axiosClient = {
|
|
|
163
162
|
return error2;
|
|
164
163
|
}
|
|
165
164
|
const { data } = error2.response;
|
|
166
|
-
if (data && data.code === 400 && ["invalid_grant"].includes(data.data
|
|
165
|
+
if (data && data.code === 400 && ["invalid_grant"].includes(_optionalChain([data, 'access', _40 => _40.data, 'optionalAccess', _41 => _41.error]))) {
|
|
167
166
|
await clearAuthToken();
|
|
168
167
|
}
|
|
169
168
|
return data;
|
|
170
169
|
};
|
|
171
170
|
const originalRequest = error.config;
|
|
172
|
-
if ((error.response
|
|
171
|
+
if ((_optionalChain([error, 'access', _42 => _42.response, 'optionalAccess', _43 => _43.status]) === 403 || _optionalChain([error, 'access', _44 => _44.response, 'optionalAccess', _45 => _45.status]) === 401 || _optionalChain([error, 'access', _46 => _46.response, 'optionalAccess', _47 => _47.status]) === 404) && ["TOKEN_EXPIRED", "AUTHEN_FAIL", 401, "ERR_2FA_006"].includes(
|
|
173
172
|
error.response.data.code
|
|
174
173
|
)) {
|
|
175
174
|
if (isRefreshing) {
|
|
@@ -177,13 +176,13 @@ var axiosClient = {
|
|
|
177
176
|
failedQueue.push({ resolve, reject });
|
|
178
177
|
}).then((token) => {
|
|
179
178
|
originalRequest.headers["Authorization"] = "Bearer " + token;
|
|
180
|
-
originalRequest.data =
|
|
179
|
+
originalRequest.data = _chunkU4Q3MW45js.updateTokenParamInOriginalRequest.call(void 0,
|
|
181
180
|
originalRequest,
|
|
182
181
|
token
|
|
183
182
|
);
|
|
184
183
|
return instance.request(originalRequest);
|
|
185
184
|
}).catch(async (err) => {
|
|
186
|
-
if ((err.response
|
|
185
|
+
if ((_optionalChain([err, 'access', _48 => _48.response, 'optionalAccess', _49 => _49.status]) === 400 || _optionalChain([err, 'access', _50 => _50.response, 'optionalAccess', _51 => _51.status]) === 401) && ["invalid_grant"].includes(err.response.data.error)) {
|
|
187
186
|
await clearAuthToken();
|
|
188
187
|
}
|
|
189
188
|
});
|
|
@@ -204,8 +203,8 @@ var axiosClient = {
|
|
|
204
203
|
}).filter(([_, value]) => !!value)
|
|
205
204
|
);
|
|
206
205
|
return new Promise(function(resolve) {
|
|
207
|
-
|
|
208
|
-
`${config
|
|
206
|
+
_axios2.default.post(
|
|
207
|
+
`${_optionalChain([config, 'optionalAccess', _52 => _52.baseUrl])}${_nullishCoalesce(config.refreshTokenEndpoint, () => ( "/authentication/oauth2/token")) /* AUTH_TOKEN_PATH */}`,
|
|
209
208
|
payload,
|
|
210
209
|
{
|
|
211
210
|
headers: {
|
|
@@ -217,9 +216,9 @@ var axiosClient = {
|
|
|
217
216
|
const data = res.data;
|
|
218
217
|
await localStorage.setToken(data.access_token);
|
|
219
218
|
await localStorage.setRefreshToken(data.refresh_token);
|
|
220
|
-
|
|
219
|
+
_axios2.default.defaults.headers.common["Authorization"] = "Bearer " + data.access_token;
|
|
221
220
|
originalRequest.headers["Authorization"] = "Bearer " + data.access_token;
|
|
222
|
-
originalRequest.data =
|
|
221
|
+
originalRequest.data = _chunkU4Q3MW45js.updateTokenParamInOriginalRequest.call(void 0,
|
|
223
222
|
originalRequest,
|
|
224
223
|
data.access_token
|
|
225
224
|
);
|
|
@@ -227,13 +226,13 @@ var axiosClient = {
|
|
|
227
226
|
resolve(instance.request(originalRequest));
|
|
228
227
|
}).catch(async (err) => {
|
|
229
228
|
console.log("catch error: ", err);
|
|
230
|
-
if (err && (err
|
|
229
|
+
if (err && (_optionalChain([err, 'optionalAccess', _53 => _53.error_code]) === "AUTHEN_FAIL" || _optionalChain([err, 'optionalAccess', _54 => _54.error_code]) === "TOKEN_EXPIRED" || _optionalChain([err, 'optionalAccess', _55 => _55.error_code]) === "TOKEN_INCORRECT" || _optionalChain([err, 'optionalAccess', _56 => _56.code]) === "ERR_2FA_006")) {
|
|
231
230
|
await clearAuthToken();
|
|
232
231
|
}
|
|
233
232
|
if (err && err.response) {
|
|
234
233
|
console.log("err response code: ", err);
|
|
235
234
|
console.log("err response: ", err.response);
|
|
236
|
-
const { error_code } = err.response
|
|
235
|
+
const { error_code } = _optionalChain([err, 'access', _57 => _57.response, 'optionalAccess', _58 => _58.data]) || {};
|
|
237
236
|
const { code } = err;
|
|
238
237
|
if (error_code === "AUTHEN_FAIL" || code === "ERR_2FA_006") {
|
|
239
238
|
await clearAuthToken();
|
|
@@ -265,7 +264,7 @@ var axiosClient = {
|
|
|
265
264
|
return url + (db2 ? "?db=" + db2 : "");
|
|
266
265
|
}
|
|
267
266
|
const getBaseUrl = (baseUrl, hardService) => {
|
|
268
|
-
return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage.getMenuFocus().service || config
|
|
267
|
+
return isSupabaseMode ? "" : `${baseUrl.replace(/\/$/, "")}/${hardService || sessionStorage.getMenuFocus().service || _optionalChain([config, 'optionalAccess', _59 => _59.default_service])}/api/v2`;
|
|
269
268
|
};
|
|
270
269
|
const getHeaders = (header) => {
|
|
271
270
|
const headers = {
|
|
@@ -279,16 +278,16 @@ var axiosClient = {
|
|
|
279
278
|
const responseBody = (response) => response;
|
|
280
279
|
const requests = {
|
|
281
280
|
get: (url, headers, hardService) => instance.get(
|
|
282
|
-
formatUrl(getBaseUrl(config
|
|
281
|
+
formatUrl(getBaseUrl(_optionalChain([config, 'optionalAccess', _60 => _60.baseUrl]), hardService) + url, db),
|
|
283
282
|
getHeaders(headers)
|
|
284
283
|
).then(responseBody),
|
|
285
284
|
post: async (url, body, headers, hardService) => instance.post(
|
|
286
|
-
formatUrl(getBaseUrl(config
|
|
285
|
+
formatUrl(getBaseUrl(_optionalChain([config, 'optionalAccess', _61 => _61.baseUrl]), hardService) + url, db),
|
|
287
286
|
body,
|
|
288
287
|
getHeaders(headers)
|
|
289
288
|
).then(responseBody),
|
|
290
289
|
post_excel: (url, body, headers, hardService) => instance.post(
|
|
291
|
-
formatUrl(getBaseUrl(config
|
|
290
|
+
formatUrl(getBaseUrl(_optionalChain([config, 'optionalAccess', _62 => _62.baseUrl]), hardService) + url, db),
|
|
292
291
|
body,
|
|
293
292
|
{
|
|
294
293
|
responseType: "arraybuffer",
|
|
@@ -301,17 +300,17 @@ var axiosClient = {
|
|
|
301
300
|
}
|
|
302
301
|
).then(responseBody),
|
|
303
302
|
put: (url, body, headers, hardService) => instance.put(
|
|
304
|
-
formatUrl(getBaseUrl(config
|
|
303
|
+
formatUrl(getBaseUrl(_optionalChain([config, 'optionalAccess', _63 => _63.baseUrl]), hardService) + url, db),
|
|
305
304
|
body,
|
|
306
305
|
getHeaders(headers)
|
|
307
306
|
).then(responseBody),
|
|
308
307
|
patch: (url, body, headers, hardService) => instance.patch(
|
|
309
|
-
formatUrl(getBaseUrl(config
|
|
308
|
+
formatUrl(getBaseUrl(_optionalChain([config, 'optionalAccess', _64 => _64.baseUrl]), hardService) + url, db),
|
|
310
309
|
body,
|
|
311
310
|
getHeaders(headers)
|
|
312
311
|
).then(responseBody),
|
|
313
312
|
delete: (url, headers, hardService) => instance.delete(
|
|
314
|
-
formatUrl(getBaseUrl(config
|
|
313
|
+
formatUrl(getBaseUrl(_optionalChain([config, 'optionalAccess', _65 => _65.baseUrl]), hardService) + url, db),
|
|
315
314
|
getHeaders(headers)
|
|
316
315
|
).then(responseBody)
|
|
317
316
|
};
|
|
@@ -319,4 +318,6 @@ var axiosClient = {
|
|
|
319
318
|
}
|
|
320
319
|
};
|
|
321
320
|
|
|
321
|
+
|
|
322
|
+
|
|
322
323
|
exports.axiosClient = axiosClient;
|
package/dist/chunk-COC7NGXP.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// src/constants/api/key-constant.ts
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/constants/api/key-constant.ts
|
|
4
2
|
var KeyConstants = /* @__PURE__ */ ((KeyConstants2) => {
|
|
5
3
|
KeyConstants2["PROFILE"] = "userinfo";
|
|
6
4
|
KeyConstants2["CURRENT_COMPANY"] = "current_company";
|
|
@@ -303,19 +301,21 @@ var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
|
|
303
301
|
return WIDGETNOSTRING2;
|
|
304
302
|
})(WIDGETNOSTRING || {});
|
|
305
303
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
exports.KeyConstants = KeyConstants; exports.MethodConstants = MethodConstants; exports.UriConstants = UriConstants; exports.FieldTypeConstants = FieldTypeConstants; exports.MethodType = MethodType; exports.ModelConstants = ModelConstants; exports.LoadDataModel = LoadDataModel; exports.LoadDataModelSupa = LoadDataModelSupa; exports.MODEL_TO_TABLE = MODEL_TO_TABLE; exports.ComponentType = ComponentType; exports.SearchType = SearchType; exports.WIDGETAVATAR = WIDGETAVATAR; exports.WIDGETCURRENCY = WIDGETCURRENCY; exports.WIDGETCOLOR = WIDGETCOLOR; exports.WIDGETSTATUS = WIDGETSTATUS; exports.WIDGETNOSTRING = WIDGETNOSTRING;
|
package/dist/chunk-F2VAAEVB.mjs
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import {
|
|
2
|
+
axiosClient
|
|
3
|
+
} from "./chunk-ZDXEWQQD.mjs";
|
|
4
|
+
import {
|
|
5
|
+
localStorageUtils,
|
|
6
|
+
sessionStorageUtils
|
|
7
|
+
} from "./chunk-HQVNK2EW.mjs";
|
|
3
8
|
|
|
4
9
|
// src/environment/EnvStore.ts
|
|
5
10
|
var EventEmitter = class {
|
|
@@ -124,4 +129,8 @@ function getEnv() {
|
|
|
124
129
|
return env?.getEnv();
|
|
125
130
|
}
|
|
126
131
|
|
|
127
|
-
export {
|
|
132
|
+
export {
|
|
133
|
+
EnvStore,
|
|
134
|
+
initEnv,
|
|
135
|
+
getEnv
|
|
136
|
+
};
|