@fctc/interface-logic 1.0.0 → 1.0.2

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 (57) hide show
  1. package/dist/base-model-type-DvO53Lwi.d.mts +7 -0
  2. package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
  3. package/dist/config.d.mts +16 -0
  4. package/dist/config.d.ts +16 -0
  5. package/dist/config.js +2355 -0
  6. package/dist/config.mjs +2318 -0
  7. package/dist/constants.d.mts +128 -0
  8. package/dist/constants.d.ts +128 -0
  9. package/dist/constants.js +202 -0
  10. package/dist/constants.mjs +163 -0
  11. package/dist/context-type-D5XefoL-.d.mts +8 -0
  12. package/dist/context-type-D5XefoL-.d.ts +8 -0
  13. package/dist/environment.d.mts +41 -0
  14. package/dist/environment.d.ts +41 -0
  15. package/dist/environment.js +3061 -0
  16. package/dist/environment.mjs +3021 -0
  17. package/dist/hook.d.mts +292 -0
  18. package/dist/hook.d.ts +292 -0
  19. package/dist/hook.js +5683 -0
  20. package/dist/hook.mjs +5587 -0
  21. package/dist/index-C_nK1Mii.d.mts +19 -0
  22. package/dist/index-C_nK1Mii.d.ts +19 -0
  23. package/dist/index.d.mts +1 -1395
  24. package/dist/index.d.ts +1 -1395
  25. package/dist/index.js +0 -6870
  26. package/dist/index.mjs +0 -6641
  27. package/dist/model.d.mts +35 -0
  28. package/dist/model.d.ts +35 -0
  29. package/dist/model.js +3320 -0
  30. package/dist/model.mjs +3281 -0
  31. package/dist/provider.d.mts +15 -0
  32. package/dist/provider.d.ts +15 -0
  33. package/dist/provider.js +6566 -0
  34. package/dist/provider.mjs +6550 -0
  35. package/dist/services.d.mts +224 -0
  36. package/dist/services.d.ts +224 -0
  37. package/dist/services.js +4477 -0
  38. package/dist/services.mjs +4432 -0
  39. package/dist/session-storage-CxkkEmQh.d.mts +15 -0
  40. package/dist/session-storage-CxkkEmQh.d.ts +15 -0
  41. package/dist/store.d.mts +643 -0
  42. package/dist/store.d.ts +643 -0
  43. package/dist/store.js +814 -0
  44. package/dist/store.mjs +709 -0
  45. package/dist/types.d.mts +12 -0
  46. package/dist/types.d.ts +12 -0
  47. package/dist/types.js +18 -0
  48. package/dist/types.mjs +0 -0
  49. package/dist/use-get-selection-QZu1jKqa.d.mts +15 -0
  50. package/dist/use-get-selection-QZu1jKqa.d.ts +15 -0
  51. package/dist/utils.d.mts +87 -0
  52. package/dist/utils.d.ts +87 -0
  53. package/dist/utils.js +2947 -0
  54. package/dist/utils.mjs +2881 -0
  55. package/dist/view-type-y6vtF3wg.d.mts +106 -0
  56. package/dist/view-type-y6vtF3wg.d.ts +106 -0
  57. package/package.json +53 -12
@@ -0,0 +1,41 @@
1
+ import { EnhancedStore } from '@reduxjs/toolkit';
2
+ import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-CxkkEmQh.js';
3
+
4
+ declare global {
5
+ interface Global {
6
+ envStore?: EnvStore;
7
+ }
8
+ interface Window {
9
+ envStore?: EnvStore;
10
+ }
11
+ }
12
+ declare class EnvStore {
13
+ envStore: EnhancedStore | any;
14
+ baseUrl?: string;
15
+ requests?: any;
16
+ context?: any;
17
+ defaultCompany?: any;
18
+ config?: any;
19
+ companies?: any[];
20
+ user?: any;
21
+ db?: string;
22
+ localStorageUtils?: any;
23
+ sessionStorageUtils?: any;
24
+ constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
25
+ setup(): void;
26
+ setupEnv(envConfig: EnvStore): void;
27
+ setUid(uid: number): void;
28
+ setLang(lang: string): void;
29
+ setAllowCompanies(allowCompanies: number[]): void;
30
+ setCompanies(companies: any[]): void;
31
+ setDefaultCompany(company: any): void;
32
+ setUserInfo(userInfo: any): void;
33
+ }
34
+ declare let env: EnvStore | null;
35
+ declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
36
+ localStorageUtils?: LocalStorageUtilsType;
37
+ sessionStorageUtils?: SessionStorageUtilsType;
38
+ }): EnvStore;
39
+ declare function getEnv(): EnvStore;
40
+
41
+ export { EnvStore, env, getEnv, initEnv };