@fctc/interface-logic 1.8.2 → 1.8.3

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.
Files changed (43) hide show
  1. package/dist/configs.d.mts +15 -0
  2. package/dist/configs.d.ts +15 -0
  3. package/dist/configs.js +2383 -0
  4. package/dist/configs.mjs +2346 -0
  5. package/dist/constants.d.mts +131 -0
  6. package/dist/constants.d.ts +131 -0
  7. package/dist/constants.js +205 -0
  8. package/dist/constants.mjs +166 -0
  9. package/dist/environment.d.mts +55 -0
  10. package/dist/environment.d.ts +55 -0
  11. package/dist/environment.js +3091 -0
  12. package/dist/environment.mjs +3051 -0
  13. package/dist/hooks.d.mts +364 -0
  14. package/dist/hooks.d.ts +364 -0
  15. package/dist/{index.js → hooks.js} +10 -1208
  16. package/dist/{index.mjs → hooks.mjs} +5 -1064
  17. package/dist/provider.d.mts +15 -0
  18. package/dist/provider.d.ts +15 -0
  19. package/dist/provider.js +3601 -0
  20. package/dist/provider.mjs +3562 -0
  21. package/dist/services.d.mts +256 -0
  22. package/dist/services.d.ts +256 -0
  23. package/dist/services.js +4674 -0
  24. package/dist/services.mjs +4629 -0
  25. package/dist/store.d.mts +643 -0
  26. package/dist/store.d.ts +643 -0
  27. package/dist/store.js +814 -0
  28. package/dist/store.mjs +709 -0
  29. package/dist/types.d.mts +17 -0
  30. package/dist/types.d.ts +17 -0
  31. package/dist/types.js +18 -0
  32. package/dist/types.mjs +0 -0
  33. package/dist/utils.d.mts +93 -0
  34. package/dist/utils.d.ts +93 -0
  35. package/dist/utils.js +2962 -0
  36. package/dist/utils.mjs +2896 -0
  37. package/dist/view-type-BGJfDe73.d.mts +113 -0
  38. package/dist/view-type-BGJfDe73.d.ts +113 -0
  39. package/package.json +1 -1
  40. package/dist/index.d.mts +0 -1681
  41. package/dist/index.d.ts +0 -1681
  42. package/dist/index.js.map +0 -1
  43. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,55 @@
1
+ import { EnhancedStore } from '@reduxjs/toolkit';
2
+
3
+ declare const localStorageUtils: () => {
4
+ setToken: (access_token: string) => Promise<void>;
5
+ setRefreshToken: (refresh_token: string) => Promise<void>;
6
+ getAccessToken: () => Promise<string | null>;
7
+ getRefreshToken: () => Promise<string | null>;
8
+ clearToken: () => Promise<void>;
9
+ };
10
+ type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
11
+
12
+ declare const sessionStorageUtils: () => {
13
+ getBrowserSession: () => Promise<string | null>;
14
+ };
15
+ type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
16
+
17
+ declare global {
18
+ interface Global {
19
+ envStore?: EnvStore;
20
+ }
21
+ interface Window {
22
+ envStore?: EnvStore;
23
+ }
24
+ }
25
+ declare class EnvStore {
26
+ envStore: EnhancedStore | any;
27
+ baseUrl?: string;
28
+ requests?: any;
29
+ context?: any;
30
+ defaultCompany?: any;
31
+ config?: any;
32
+ companies?: any[];
33
+ user?: any;
34
+ db?: string;
35
+ localStorageUtils?: any;
36
+ sessionStorageUtils?: any;
37
+ refreshTokenEndpoint?: string;
38
+ constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
39
+ setup(): void;
40
+ setupEnv(envConfig: EnvStore): void;
41
+ setUid(uid: number): void;
42
+ setLang(lang: string): void;
43
+ setAllowCompanies(allowCompanies: number[]): void;
44
+ setCompanies(companies: any[]): void;
45
+ setDefaultCompany(company: any): void;
46
+ setUserInfo(userInfo: any): void;
47
+ }
48
+ declare let env: EnvStore | null;
49
+ declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
50
+ localStorageUtils?: LocalStorageUtilsType;
51
+ sessionStorageUtils?: SessionStorageUtilsType;
52
+ }): EnvStore;
53
+ declare function getEnv(): EnvStore;
54
+
55
+ export { EnvStore, env, getEnv, initEnv };