@fctc/interface-logic 1.8.3 → 1.8.5
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/configs.d.mts +1 -4
- package/dist/configs.d.ts +1 -4
- package/dist/configs.js +15 -12
- package/dist/configs.mjs +15 -12
- package/dist/environment.d.mts +16 -31
- package/dist/environment.d.ts +16 -31
- package/dist/environment.js +81 -92
- package/dist/environment.mjs +81 -90
- package/dist/hooks.d.mts +2 -7
- package/dist/hooks.d.ts +2 -7
- package/dist/hooks.js +192 -229
- package/dist/hooks.mjs +152 -188
- package/dist/provider.d.mts +48 -4
- package/dist/provider.d.ts +48 -4
- package/dist/provider.js +214 -90
- package/dist/provider.mjs +211 -89
- package/dist/services.d.mts +1 -2
- package/dist/services.d.ts +1 -2
- package/dist/services.js +82 -103
- package/dist/services.mjs +82 -103
- package/dist/session-storage-ARp_lhTD.d.mts +15 -0
- package/dist/session-storage-ARp_lhTD.d.ts +15 -0
- package/dist/store.d.mts +14 -280
- package/dist/store.d.ts +14 -280
- package/dist/store.js +4 -4
- package/dist/store.mjs +4 -4
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/{view-type-BGJfDe73.d.mts → view-type-D8ukwj_2.d.mts} +1 -1
- package/dist/{view-type-BGJfDe73.d.ts → view-type-D8ukwj_2.d.ts} +1 -1
- package/package.json +1 -1
package/dist/services.mjs
CHANGED
|
@@ -2207,9 +2207,9 @@ var sessionStorageUtils = () => {
|
|
|
2207
2207
|
// src/configs/axios-client.ts
|
|
2208
2208
|
var axiosClient = {
|
|
2209
2209
|
init(config) {
|
|
2210
|
-
const localStorage2 = config
|
|
2211
|
-
const sessionStorage2 = config
|
|
2212
|
-
const db = config
|
|
2210
|
+
const localStorage2 = config?.localStorageUtils ?? localStorageUtils();
|
|
2211
|
+
const sessionStorage2 = config?.sessionStorageUtils ?? sessionStorageUtils();
|
|
2212
|
+
const db = config?.db;
|
|
2213
2213
|
let isRefreshing = false;
|
|
2214
2214
|
let failedQueue = [];
|
|
2215
2215
|
const processQueue = (error, token = null) => {
|
|
@@ -2228,16 +2228,19 @@ var axiosClient = {
|
|
|
2228
2228
|
timeout: 5e4,
|
|
2229
2229
|
paramsSerializer: (params) => new URLSearchParams(params).toString()
|
|
2230
2230
|
});
|
|
2231
|
-
instance.interceptors.request.use(
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2231
|
+
instance.interceptors.request.use(
|
|
2232
|
+
async (config2) => {
|
|
2233
|
+
const useRefreshToken = config2.useRefreshToken;
|
|
2234
|
+
const token = useRefreshToken ? await localStorage2.getRefreshToken() : await localStorage2.getAccessToken();
|
|
2235
|
+
if (token) {
|
|
2236
|
+
config2.headers["Authorization"] = "Bearer " + token;
|
|
2237
|
+
}
|
|
2238
|
+
return config2;
|
|
2239
|
+
},
|
|
2240
|
+
(error) => {
|
|
2241
|
+
Promise.reject(error);
|
|
2242
|
+
}
|
|
2243
|
+
);
|
|
2241
2244
|
instance.interceptors.response.use(
|
|
2242
2245
|
(response) => {
|
|
2243
2246
|
return handleResponse(response);
|
|
@@ -2992,83 +2995,73 @@ var envStore = configureStore({
|
|
|
2992
2995
|
});
|
|
2993
2996
|
|
|
2994
2997
|
// src/environment/EnvStore.ts
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
setup() {
|
|
3015
|
-
const env2 = this.envStore.getState().env;
|
|
3016
|
-
this.baseUrl = env2?.baseUrl;
|
|
3017
|
-
this.requests = env2?.requests;
|
|
3018
|
-
this.context = env2?.context;
|
|
3019
|
-
this.defaultCompany = env2?.defaultCompany;
|
|
3020
|
-
this.config = env2?.config;
|
|
3021
|
-
this.companies = env2?.companies || [];
|
|
3022
|
-
this.user = env2?.user;
|
|
3023
|
-
this.db = env2?.db;
|
|
3024
|
-
this.refreshTokenEndpoint = env2?.refreshTokenEndpoint;
|
|
3025
|
-
}
|
|
3026
|
-
setupEnv(envConfig) {
|
|
3027
|
-
const dispatch = this.envStore.dispatch;
|
|
3028
|
-
const env2 = {
|
|
2998
|
+
function createEnvStore(store, localStorageUtil, sessionStorageUtil) {
|
|
2999
|
+
const getEnvState = () => store.getState().env;
|
|
3000
|
+
const setupEnvConfig = () => {
|
|
3001
|
+
const env2 = getEnvState();
|
|
3002
|
+
return {
|
|
3003
|
+
baseUrl: env2?.baseUrl,
|
|
3004
|
+
requests: env2?.requests,
|
|
3005
|
+
context: env2?.context,
|
|
3006
|
+
defaultCompany: env2?.defaultCompany,
|
|
3007
|
+
config: env2?.config,
|
|
3008
|
+
companies: env2?.companies || [],
|
|
3009
|
+
user: env2?.user,
|
|
3010
|
+
db: env2?.db,
|
|
3011
|
+
refreshTokenEndpoint: env2?.refreshTokenEndpoint
|
|
3012
|
+
};
|
|
3013
|
+
};
|
|
3014
|
+
const setupEnv = (envConfig) => {
|
|
3015
|
+
const dispatch = store.dispatch;
|
|
3016
|
+
const updatedEnv = {
|
|
3029
3017
|
...envConfig,
|
|
3030
|
-
localStorageUtils:
|
|
3031
|
-
sessionStorageUtils:
|
|
3018
|
+
localStorageUtils: localStorageUtil,
|
|
3019
|
+
sessionStorageUtils: sessionStorageUtil
|
|
3032
3020
|
};
|
|
3033
|
-
const requests = axiosClient.init(
|
|
3034
|
-
dispatch(setEnv({ ...
|
|
3035
|
-
|
|
3036
|
-
}
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
dispatch(
|
|
3055
|
-
|
|
3056
|
-
}
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3021
|
+
const requests = axiosClient.init(updatedEnv);
|
|
3022
|
+
dispatch(setEnv({ ...updatedEnv, requests }));
|
|
3023
|
+
return setupEnvConfig();
|
|
3024
|
+
};
|
|
3025
|
+
const setupUid = (uid) => {
|
|
3026
|
+
store.dispatch(setUid(uid));
|
|
3027
|
+
return setupEnvConfig();
|
|
3028
|
+
};
|
|
3029
|
+
const setupLang = (lang) => {
|
|
3030
|
+
store.dispatch(setLang(lang));
|
|
3031
|
+
return setupEnvConfig();
|
|
3032
|
+
};
|
|
3033
|
+
const setupAllowCompanies = (allowCompanies) => {
|
|
3034
|
+
store.dispatch(setAllowCompanies(allowCompanies));
|
|
3035
|
+
return setupEnvConfig();
|
|
3036
|
+
};
|
|
3037
|
+
const setupCompanies = (companies) => {
|
|
3038
|
+
store.dispatch(setCompanies(companies));
|
|
3039
|
+
return setupEnvConfig();
|
|
3040
|
+
};
|
|
3041
|
+
const setupDefaultCompany = (company) => {
|
|
3042
|
+
store.dispatch(setDefaultCompany(company));
|
|
3043
|
+
return setupEnvConfig();
|
|
3044
|
+
};
|
|
3045
|
+
const setUserInfo = (userInfo) => {
|
|
3046
|
+
store.dispatch(setUser(userInfo));
|
|
3047
|
+
return setupEnvConfig();
|
|
3048
|
+
};
|
|
3049
|
+
return {
|
|
3050
|
+
getEnvConfig: setupEnvConfig,
|
|
3051
|
+
setupEnv,
|
|
3052
|
+
setUid: setupUid,
|
|
3053
|
+
setLang: setupLang,
|
|
3054
|
+
setAllowCompanies: setupAllowCompanies,
|
|
3055
|
+
setCompanies: setupCompanies,
|
|
3056
|
+
setDefaultCompany: setupDefaultCompany,
|
|
3057
|
+
setUserInfo
|
|
3058
|
+
};
|
|
3059
|
+
}
|
|
3068
3060
|
var env = null;
|
|
3069
3061
|
function getEnv() {
|
|
3070
|
-
if (!env)
|
|
3071
|
-
env =
|
|
3062
|
+
if (!env) {
|
|
3063
|
+
env = createEnvStore(envStore, localStorageUtils(), sessionStorageUtils());
|
|
3064
|
+
}
|
|
3072
3065
|
return env;
|
|
3073
3066
|
}
|
|
3074
3067
|
|
|
@@ -3334,20 +3327,6 @@ var AuthService = {
|
|
|
3334
3327
|
}
|
|
3335
3328
|
});
|
|
3336
3329
|
},
|
|
3337
|
-
async isValidActionToken(actionToken, path) {
|
|
3338
|
-
const env2 = getEnv();
|
|
3339
|
-
return env2?.requests?.post(
|
|
3340
|
-
path,
|
|
3341
|
-
{},
|
|
3342
|
-
{
|
|
3343
|
-
headers: {
|
|
3344
|
-
"Content-Type": "application/json"
|
|
3345
|
-
},
|
|
3346
|
-
useActionToken: true,
|
|
3347
|
-
actionToken
|
|
3348
|
-
}
|
|
3349
|
-
);
|
|
3350
|
-
},
|
|
3351
3330
|
async loginSocial({
|
|
3352
3331
|
db,
|
|
3353
3332
|
state,
|
|
@@ -4112,7 +4091,7 @@ var model_service_default = ModelService;
|
|
|
4112
4091
|
var UserService = {
|
|
4113
4092
|
async getProfile(path) {
|
|
4114
4093
|
const env2 = getEnv();
|
|
4115
|
-
return env2
|
|
4094
|
+
return env2.requests.get(path ?? "/userinfo" /* PROFILE_PATH */, {
|
|
4116
4095
|
headers: {
|
|
4117
4096
|
"Content-Type": "application/x-www-form-urlencoded"
|
|
4118
4097
|
}
|
|
@@ -4431,8 +4410,8 @@ var ViewService = {
|
|
|
4431
4410
|
},
|
|
4432
4411
|
async getVersion() {
|
|
4433
4412
|
const env2 = getEnv();
|
|
4434
|
-
console.log("env", env2);
|
|
4435
|
-
return env2?.requests
|
|
4413
|
+
console.log("env?.requests", env2, env2?.requests);
|
|
4414
|
+
return env2?.requests?.get("", {
|
|
4436
4415
|
headers: {
|
|
4437
4416
|
"Content-Type": "application/json"
|
|
4438
4417
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const localStorageUtils: () => {
|
|
2
|
+
setToken: (access_token: string) => Promise<void>;
|
|
3
|
+
setRefreshToken: (refresh_token: string) => Promise<void>;
|
|
4
|
+
getAccessToken: () => Promise<string | null>;
|
|
5
|
+
getRefreshToken: () => Promise<string | null>;
|
|
6
|
+
clearToken: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
|
|
9
|
+
|
|
10
|
+
declare const sessionStorageUtils: () => {
|
|
11
|
+
getBrowserSession: () => Promise<string | null>;
|
|
12
|
+
};
|
|
13
|
+
type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
|
|
14
|
+
|
|
15
|
+
export type { LocalStorageUtilsType as L, SessionStorageUtilsType as S };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const localStorageUtils: () => {
|
|
2
|
+
setToken: (access_token: string) => Promise<void>;
|
|
3
|
+
setRefreshToken: (refresh_token: string) => Promise<void>;
|
|
4
|
+
getAccessToken: () => Promise<string | null>;
|
|
5
|
+
getRefreshToken: () => Promise<string | null>;
|
|
6
|
+
clearToken: () => Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
|
|
9
|
+
|
|
10
|
+
declare const sessionStorageUtils: () => {
|
|
11
|
+
getBrowserSession: () => Promise<string | null>;
|
|
12
|
+
};
|
|
13
|
+
type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
|
|
14
|
+
|
|
15
|
+
export type { LocalStorageUtilsType as L, SessionStorageUtilsType as S };
|
package/dist/store.d.mts
CHANGED
|
@@ -253,26 +253,7 @@ declare const setMenuList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navba
|
|
|
253
253
|
declare const selectNavbar: (state: RootState) => NavbarStateType;
|
|
254
254
|
|
|
255
255
|
declare const envStore: _reduxjs_toolkit.EnhancedStore<{
|
|
256
|
-
env:
|
|
257
|
-
baseUrl: string;
|
|
258
|
-
requests: null;
|
|
259
|
-
companies: never[];
|
|
260
|
-
user: {};
|
|
261
|
-
config: null;
|
|
262
|
-
envFile: null;
|
|
263
|
-
defaultCompany: {
|
|
264
|
-
id: null;
|
|
265
|
-
logo: string;
|
|
266
|
-
secondary_color: string;
|
|
267
|
-
primary_color: string;
|
|
268
|
-
};
|
|
269
|
-
context: {
|
|
270
|
-
uid: null;
|
|
271
|
-
allowed_company_ids: never[];
|
|
272
|
-
lang: string;
|
|
273
|
-
tz: string;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
256
|
+
env: any;
|
|
276
257
|
header: {
|
|
277
258
|
value: {
|
|
278
259
|
allowedCompanyIds: never[];
|
|
@@ -288,26 +269,7 @@ declare const envStore: _reduxjs_toolkit.EnhancedStore<{
|
|
|
288
269
|
profile: ProfileStateType;
|
|
289
270
|
}, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
|
|
290
271
|
dispatch: redux_thunk.ThunkDispatch<{
|
|
291
|
-
env:
|
|
292
|
-
baseUrl: string;
|
|
293
|
-
requests: null;
|
|
294
|
-
companies: never[];
|
|
295
|
-
user: {};
|
|
296
|
-
config: null;
|
|
297
|
-
envFile: null;
|
|
298
|
-
defaultCompany: {
|
|
299
|
-
id: null;
|
|
300
|
-
logo: string;
|
|
301
|
-
secondary_color: string;
|
|
302
|
-
primary_color: string;
|
|
303
|
-
};
|
|
304
|
-
context: {
|
|
305
|
-
uid: null;
|
|
306
|
-
allowed_company_ids: never[];
|
|
307
|
-
lang: string;
|
|
308
|
-
tz: string;
|
|
309
|
-
};
|
|
310
|
-
};
|
|
272
|
+
env: any;
|
|
311
273
|
header: {
|
|
312
274
|
value: {
|
|
313
275
|
allowedCompanyIds: never[];
|
|
@@ -324,253 +286,44 @@ declare const envStore: _reduxjs_toolkit.EnhancedStore<{
|
|
|
324
286
|
}, undefined, redux.UnknownAction>;
|
|
325
287
|
}>, redux.StoreEnhancer]>>;
|
|
326
288
|
|
|
327
|
-
declare const envSlice: _reduxjs_toolkit.Slice<{
|
|
328
|
-
|
|
329
|
-
requests: null;
|
|
330
|
-
companies: never[];
|
|
331
|
-
user: {};
|
|
332
|
-
config: null;
|
|
333
|
-
envFile: null;
|
|
334
|
-
defaultCompany: {
|
|
335
|
-
id: null;
|
|
336
|
-
logo: string;
|
|
337
|
-
secondary_color: string;
|
|
338
|
-
primary_color: string;
|
|
339
|
-
};
|
|
340
|
-
context: {
|
|
341
|
-
uid: null;
|
|
342
|
-
allowed_company_ids: never[];
|
|
343
|
-
lang: string;
|
|
344
|
-
tz: string;
|
|
345
|
-
};
|
|
346
|
-
}, {
|
|
347
|
-
setEnv: (state: immer.WritableDraft<{
|
|
348
|
-
baseUrl: string;
|
|
349
|
-
requests: null;
|
|
350
|
-
companies: never[];
|
|
351
|
-
user: {};
|
|
352
|
-
config: null;
|
|
353
|
-
envFile: null;
|
|
354
|
-
defaultCompany: {
|
|
355
|
-
id: null;
|
|
356
|
-
logo: string;
|
|
357
|
-
secondary_color: string;
|
|
358
|
-
primary_color: string;
|
|
359
|
-
};
|
|
360
|
-
context: {
|
|
361
|
-
uid: null;
|
|
362
|
-
allowed_company_ids: never[];
|
|
363
|
-
lang: string;
|
|
364
|
-
tz: string;
|
|
365
|
-
};
|
|
366
|
-
}>, action: {
|
|
289
|
+
declare const envSlice: _reduxjs_toolkit.Slice<any, {
|
|
290
|
+
setEnv: (state: any, action: {
|
|
367
291
|
payload: any;
|
|
368
292
|
type: string;
|
|
369
293
|
}) => void;
|
|
370
|
-
setUid: (state:
|
|
371
|
-
baseUrl: string;
|
|
372
|
-
requests: null;
|
|
373
|
-
companies: never[];
|
|
374
|
-
user: {};
|
|
375
|
-
config: null;
|
|
376
|
-
envFile: null;
|
|
377
|
-
defaultCompany: {
|
|
378
|
-
id: null;
|
|
379
|
-
logo: string;
|
|
380
|
-
secondary_color: string;
|
|
381
|
-
primary_color: string;
|
|
382
|
-
};
|
|
383
|
-
context: {
|
|
384
|
-
uid: null;
|
|
385
|
-
allowed_company_ids: never[];
|
|
386
|
-
lang: string;
|
|
387
|
-
tz: string;
|
|
388
|
-
};
|
|
389
|
-
}>, action: {
|
|
294
|
+
setUid: (state: any, action: {
|
|
390
295
|
payload: any;
|
|
391
296
|
type: string;
|
|
392
297
|
}) => void;
|
|
393
|
-
setAllowCompanies: (state:
|
|
394
|
-
baseUrl: string;
|
|
395
|
-
requests: null;
|
|
396
|
-
companies: never[];
|
|
397
|
-
user: {};
|
|
398
|
-
config: null;
|
|
399
|
-
envFile: null;
|
|
400
|
-
defaultCompany: {
|
|
401
|
-
id: null;
|
|
402
|
-
logo: string;
|
|
403
|
-
secondary_color: string;
|
|
404
|
-
primary_color: string;
|
|
405
|
-
};
|
|
406
|
-
context: {
|
|
407
|
-
uid: null;
|
|
408
|
-
allowed_company_ids: never[];
|
|
409
|
-
lang: string;
|
|
410
|
-
tz: string;
|
|
411
|
-
};
|
|
412
|
-
}>, action: {
|
|
298
|
+
setAllowCompanies: (state: any, action: {
|
|
413
299
|
payload: any;
|
|
414
300
|
type: string;
|
|
415
301
|
}) => void;
|
|
416
|
-
setCompanies: (state:
|
|
417
|
-
baseUrl: string;
|
|
418
|
-
requests: null;
|
|
419
|
-
companies: never[];
|
|
420
|
-
user: {};
|
|
421
|
-
config: null;
|
|
422
|
-
envFile: null;
|
|
423
|
-
defaultCompany: {
|
|
424
|
-
id: null;
|
|
425
|
-
logo: string;
|
|
426
|
-
secondary_color: string;
|
|
427
|
-
primary_color: string;
|
|
428
|
-
};
|
|
429
|
-
context: {
|
|
430
|
-
uid: null;
|
|
431
|
-
allowed_company_ids: never[];
|
|
432
|
-
lang: string;
|
|
433
|
-
tz: string;
|
|
434
|
-
};
|
|
435
|
-
}>, action: {
|
|
302
|
+
setCompanies: (state: any, action: {
|
|
436
303
|
payload: any;
|
|
437
304
|
type: string;
|
|
438
305
|
}) => void;
|
|
439
|
-
setDefaultCompany: (state:
|
|
440
|
-
baseUrl: string;
|
|
441
|
-
requests: null;
|
|
442
|
-
companies: never[];
|
|
443
|
-
user: {};
|
|
444
|
-
config: null;
|
|
445
|
-
envFile: null;
|
|
446
|
-
defaultCompany: {
|
|
447
|
-
id: null;
|
|
448
|
-
logo: string;
|
|
449
|
-
secondary_color: string;
|
|
450
|
-
primary_color: string;
|
|
451
|
-
};
|
|
452
|
-
context: {
|
|
453
|
-
uid: null;
|
|
454
|
-
allowed_company_ids: never[];
|
|
455
|
-
lang: string;
|
|
456
|
-
tz: string;
|
|
457
|
-
};
|
|
458
|
-
}>, action: {
|
|
306
|
+
setDefaultCompany: (state: any, action: {
|
|
459
307
|
payload: any;
|
|
460
308
|
type: string;
|
|
461
309
|
}) => void;
|
|
462
|
-
setLang: (state:
|
|
463
|
-
baseUrl: string;
|
|
464
|
-
requests: null;
|
|
465
|
-
companies: never[];
|
|
466
|
-
user: {};
|
|
467
|
-
config: null;
|
|
468
|
-
envFile: null;
|
|
469
|
-
defaultCompany: {
|
|
470
|
-
id: null;
|
|
471
|
-
logo: string;
|
|
472
|
-
secondary_color: string;
|
|
473
|
-
primary_color: string;
|
|
474
|
-
};
|
|
475
|
-
context: {
|
|
476
|
-
uid: null;
|
|
477
|
-
allowed_company_ids: never[];
|
|
478
|
-
lang: string;
|
|
479
|
-
tz: string;
|
|
480
|
-
};
|
|
481
|
-
}>, action: {
|
|
310
|
+
setLang: (state: any, action: {
|
|
482
311
|
payload: any;
|
|
483
312
|
type: string;
|
|
484
313
|
}) => void;
|
|
485
|
-
setUser: (state:
|
|
486
|
-
baseUrl: string;
|
|
487
|
-
requests: null;
|
|
488
|
-
companies: never[];
|
|
489
|
-
user: {};
|
|
490
|
-
config: null;
|
|
491
|
-
envFile: null;
|
|
492
|
-
defaultCompany: {
|
|
493
|
-
id: null;
|
|
494
|
-
logo: string;
|
|
495
|
-
secondary_color: string;
|
|
496
|
-
primary_color: string;
|
|
497
|
-
};
|
|
498
|
-
context: {
|
|
499
|
-
uid: null;
|
|
500
|
-
allowed_company_ids: never[];
|
|
501
|
-
lang: string;
|
|
502
|
-
tz: string;
|
|
503
|
-
};
|
|
504
|
-
}>, action: {
|
|
314
|
+
setUser: (state: any, action: {
|
|
505
315
|
payload: any;
|
|
506
316
|
type: string;
|
|
507
317
|
}) => void;
|
|
508
|
-
setConfig: (state:
|
|
509
|
-
baseUrl: string;
|
|
510
|
-
requests: null;
|
|
511
|
-
companies: never[];
|
|
512
|
-
user: {};
|
|
513
|
-
config: null;
|
|
514
|
-
envFile: null;
|
|
515
|
-
defaultCompany: {
|
|
516
|
-
id: null;
|
|
517
|
-
logo: string;
|
|
518
|
-
secondary_color: string;
|
|
519
|
-
primary_color: string;
|
|
520
|
-
};
|
|
521
|
-
context: {
|
|
522
|
-
uid: null;
|
|
523
|
-
allowed_company_ids: never[];
|
|
524
|
-
lang: string;
|
|
525
|
-
tz: string;
|
|
526
|
-
};
|
|
527
|
-
}>, action: {
|
|
318
|
+
setConfig: (state: any, action: {
|
|
528
319
|
payload: any;
|
|
529
320
|
type: string;
|
|
530
321
|
}) => void;
|
|
531
|
-
setEnvFile: (state:
|
|
532
|
-
baseUrl: string;
|
|
533
|
-
requests: null;
|
|
534
|
-
companies: never[];
|
|
535
|
-
user: {};
|
|
536
|
-
config: null;
|
|
537
|
-
envFile: null;
|
|
538
|
-
defaultCompany: {
|
|
539
|
-
id: null;
|
|
540
|
-
logo: string;
|
|
541
|
-
secondary_color: string;
|
|
542
|
-
primary_color: string;
|
|
543
|
-
};
|
|
544
|
-
context: {
|
|
545
|
-
uid: null;
|
|
546
|
-
allowed_company_ids: never[];
|
|
547
|
-
lang: string;
|
|
548
|
-
tz: string;
|
|
549
|
-
};
|
|
550
|
-
}>, action: {
|
|
322
|
+
setEnvFile: (state: any, action: {
|
|
551
323
|
payload: any;
|
|
552
324
|
type: string;
|
|
553
325
|
}) => void;
|
|
554
|
-
}, "env", "env", _reduxjs_toolkit.SliceSelectors<
|
|
555
|
-
baseUrl: string;
|
|
556
|
-
requests: null;
|
|
557
|
-
companies: never[];
|
|
558
|
-
user: {};
|
|
559
|
-
config: null;
|
|
560
|
-
envFile: null;
|
|
561
|
-
defaultCompany: {
|
|
562
|
-
id: null;
|
|
563
|
-
logo: string;
|
|
564
|
-
secondary_color: string;
|
|
565
|
-
primary_color: string;
|
|
566
|
-
};
|
|
567
|
-
context: {
|
|
568
|
-
uid: null;
|
|
569
|
-
allowed_company_ids: never[];
|
|
570
|
-
lang: string;
|
|
571
|
-
tz: string;
|
|
572
|
-
};
|
|
573
|
-
}>>;
|
|
326
|
+
}, "env", "env", _reduxjs_toolkit.SliceSelectors<any>>;
|
|
574
327
|
declare const setEnv: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnv">;
|
|
575
328
|
declare const setUid: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUid">;
|
|
576
329
|
declare const setLang: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setLang">;
|
|
@@ -580,26 +333,7 @@ declare const setDefaultCompany: _reduxjs_toolkit.ActionCreatorWithPayload<any,
|
|
|
580
333
|
declare const setUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUser">;
|
|
581
334
|
declare const setConfig: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setConfig">;
|
|
582
335
|
declare const setEnvFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnvFile">;
|
|
583
|
-
declare const selectEnv: (state: RootState) =>
|
|
584
|
-
baseUrl: string;
|
|
585
|
-
requests: null;
|
|
586
|
-
companies: never[];
|
|
587
|
-
user: {};
|
|
588
|
-
config: null;
|
|
589
|
-
envFile: null;
|
|
590
|
-
defaultCompany: {
|
|
591
|
-
id: null;
|
|
592
|
-
logo: string;
|
|
593
|
-
secondary_color: string;
|
|
594
|
-
primary_color: string;
|
|
595
|
-
};
|
|
596
|
-
context: {
|
|
597
|
-
uid: null;
|
|
598
|
-
allowed_company_ids: never[];
|
|
599
|
-
lang: string;
|
|
600
|
-
tz: string;
|
|
601
|
-
};
|
|
602
|
-
};
|
|
336
|
+
declare const selectEnv: (state: RootState) => any;
|
|
603
337
|
|
|
604
338
|
declare const headerSlice: _reduxjs_toolkit.Slice<{
|
|
605
339
|
value: {
|