@fctc/interface-logic 1.3.0 → 1.3.1

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 (47) hide show
  1. package/dist/configs.d.mts +15 -0
  2. package/dist/configs.d.ts +15 -0
  3. package/dist/configs.js +2386 -0
  4. package/dist/configs.mjs +2349 -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 +3094 -0
  12. package/dist/environment.mjs +3054 -0
  13. package/dist/hooks.d.mts +340 -0
  14. package/dist/hooks.d.ts +340 -0
  15. package/dist/{index.js → hooks.js} +10 -1242
  16. package/dist/{index.mjs → hooks.mjs} +5 -1093
  17. package/dist/index-C_nK1Mii.d.mts +19 -0
  18. package/dist/index-C_nK1Mii.d.ts +19 -0
  19. package/dist/models.d.mts +34 -0
  20. package/dist/models.d.ts +34 -0
  21. package/dist/models.js +3352 -0
  22. package/dist/models.mjs +3314 -0
  23. package/dist/provider.d.mts +15 -0
  24. package/dist/provider.d.ts +15 -0
  25. package/dist/provider.js +3603 -0
  26. package/dist/provider.mjs +3564 -0
  27. package/dist/services.d.mts +255 -0
  28. package/dist/services.d.ts +255 -0
  29. package/dist/services.js +4661 -0
  30. package/dist/services.mjs +4616 -0
  31. package/dist/store.d.mts +643 -0
  32. package/dist/store.d.ts +643 -0
  33. package/dist/store.js +814 -0
  34. package/dist/store.mjs +709 -0
  35. package/dist/types.d.mts +2 -0
  36. package/dist/types.d.ts +2 -0
  37. package/dist/types.js +18 -0
  38. package/dist/types.mjs +0 -0
  39. package/dist/utils.d.mts +93 -0
  40. package/dist/utils.d.ts +93 -0
  41. package/dist/utils.js +2962 -0
  42. package/dist/utils.mjs +2896 -0
  43. package/dist/view-type-mROO2TFx.d.mts +100 -0
  44. package/dist/view-type-mROO2TFx.d.ts +100 -0
  45. package/package.json +10 -11
  46. package/dist/index.d.mts +0 -1709
  47. package/dist/index.d.ts +0 -1709
@@ -0,0 +1,100 @@
1
+ interface LoginCredentialBody {
2
+ email: string;
3
+ password: string;
4
+ path?: string;
5
+ }
6
+ interface ResetPasswordRequest {
7
+ password: string;
8
+ confirmPassword: string;
9
+ }
10
+ interface UpdatePasswordRequest {
11
+ newPassword: string;
12
+ oldPassword: string;
13
+ }
14
+ interface ForgotPasswordBody {
15
+ data: ResetPasswordRequest;
16
+ token: string | null;
17
+ }
18
+ interface updatePasswordBody {
19
+ data: UpdatePasswordRequest;
20
+ token: string | null;
21
+ }
22
+ interface SocialTokenBody {
23
+ state: object;
24
+ access_token: string;
25
+ db: string;
26
+ }
27
+
28
+ interface Specification {
29
+ [key: string]: any;
30
+ }
31
+ interface ContextApi {
32
+ [key: string]: any;
33
+ }
34
+ interface GetListParams {
35
+ model: string;
36
+ ids?: number[];
37
+ specification?: Specification;
38
+ domain?: any[];
39
+ offset?: number;
40
+ order?: string;
41
+ context?: ContextApi;
42
+ limit?: number;
43
+ }
44
+ interface GetDetailParams {
45
+ ids?: number[];
46
+ model?: string;
47
+ specification?: Specification;
48
+ context?: ContextApi;
49
+ }
50
+ interface SaveParams {
51
+ model: string;
52
+ ids?: number[] | [];
53
+ data?: Record<string, any>;
54
+ specification?: Specification;
55
+ context?: ContextApi;
56
+ }
57
+ interface DeleteParams {
58
+ ids?: number[];
59
+ model: string;
60
+ }
61
+ interface OnChangeParams {
62
+ ids?: number[];
63
+ model: string;
64
+ object?: Record<string, any>;
65
+ specification: Specification;
66
+ context?: ContextApi;
67
+ fieldChange?: string[];
68
+ }
69
+ interface ViewData {
70
+ models?: {
71
+ [key: string]: {
72
+ [key: string]: {
73
+ type: string;
74
+ relation?: string;
75
+ };
76
+ };
77
+ };
78
+ }
79
+ type GetSelectionType = {
80
+ domain: any;
81
+ context: any;
82
+ model: string;
83
+ specification?: any;
84
+ };
85
+
86
+ type View = [number | boolean, string];
87
+ type Option = {
88
+ action_id?: number;
89
+ load_filters?: boolean;
90
+ toolbar?: boolean;
91
+ };
92
+ interface GetViewParams {
93
+ model?: string;
94
+ views?: View[];
95
+ context?: Record<string, any>;
96
+ options?: Option;
97
+ aid?: number | string | null | boolean;
98
+ }
99
+
100
+ export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetViewParams as b, GetSelectionType as c, SocialTokenBody as d, updatePasswordBody as u };
@@ -0,0 +1,100 @@
1
+ interface LoginCredentialBody {
2
+ email: string;
3
+ password: string;
4
+ path?: string;
5
+ }
6
+ interface ResetPasswordRequest {
7
+ password: string;
8
+ confirmPassword: string;
9
+ }
10
+ interface UpdatePasswordRequest {
11
+ newPassword: string;
12
+ oldPassword: string;
13
+ }
14
+ interface ForgotPasswordBody {
15
+ data: ResetPasswordRequest;
16
+ token: string | null;
17
+ }
18
+ interface updatePasswordBody {
19
+ data: UpdatePasswordRequest;
20
+ token: string | null;
21
+ }
22
+ interface SocialTokenBody {
23
+ state: object;
24
+ access_token: string;
25
+ db: string;
26
+ }
27
+
28
+ interface Specification {
29
+ [key: string]: any;
30
+ }
31
+ interface ContextApi {
32
+ [key: string]: any;
33
+ }
34
+ interface GetListParams {
35
+ model: string;
36
+ ids?: number[];
37
+ specification?: Specification;
38
+ domain?: any[];
39
+ offset?: number;
40
+ order?: string;
41
+ context?: ContextApi;
42
+ limit?: number;
43
+ }
44
+ interface GetDetailParams {
45
+ ids?: number[];
46
+ model?: string;
47
+ specification?: Specification;
48
+ context?: ContextApi;
49
+ }
50
+ interface SaveParams {
51
+ model: string;
52
+ ids?: number[] | [];
53
+ data?: Record<string, any>;
54
+ specification?: Specification;
55
+ context?: ContextApi;
56
+ }
57
+ interface DeleteParams {
58
+ ids?: number[];
59
+ model: string;
60
+ }
61
+ interface OnChangeParams {
62
+ ids?: number[];
63
+ model: string;
64
+ object?: Record<string, any>;
65
+ specification: Specification;
66
+ context?: ContextApi;
67
+ fieldChange?: string[];
68
+ }
69
+ interface ViewData {
70
+ models?: {
71
+ [key: string]: {
72
+ [key: string]: {
73
+ type: string;
74
+ relation?: string;
75
+ };
76
+ };
77
+ };
78
+ }
79
+ type GetSelectionType = {
80
+ domain: any;
81
+ context: any;
82
+ model: string;
83
+ specification?: any;
84
+ };
85
+
86
+ type View = [number | boolean, string];
87
+ type Option = {
88
+ action_id?: number;
89
+ load_filters?: boolean;
90
+ toolbar?: boolean;
91
+ };
92
+ interface GetViewParams {
93
+ model?: string;
94
+ views?: View[];
95
+ context?: Record<string, any>;
96
+ options?: Option;
97
+ aid?: number | string | null | boolean;
98
+ }
99
+
100
+ export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetListParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetViewParams as b, GetSelectionType as c, SocialTokenBody as d, updatePasswordBody as u };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "types": "dist/index.d.ts",
5
- "main": "dist/index.js",
5
+ "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
7
  "exports": {
8
8
  ".": {
@@ -10,10 +10,10 @@
10
10
  "import": "./dist/index.mjs",
11
11
  "require": "./dist/index.cjs"
12
12
  },
13
- "./config": {
14
- "types": "./dist/index.d.ts",
15
- "import": "./dist/config.mjs",
16
- "require": "./dist/config.cjs"
13
+ "./configs": {
14
+ "types": "./dist/configs.d.ts",
15
+ "import": "./dist/configs.mjs",
16
+ "require": "./dist/configs.cjs"
17
17
  },
18
18
  "./constants": {
19
19
  "types": "./dist/constants.d.ts",
@@ -30,10 +30,10 @@
30
30
  "import": "./dist/hooks.mjs",
31
31
  "require": "./dist/hooks.cjs"
32
32
  },
33
- "./model": {
34
- "types": "./dist/model.d.ts",
35
- "import": "./dist/model.mjs",
36
- "require": "./dist/model.cjs"
33
+ "./models": {
34
+ "types": "./dist/models.d.ts",
35
+ "import": "./dist/models.mjs",
36
+ "require": "./dist/models.cjs"
37
37
  },
38
38
  "./provider": {
39
39
  "types": "./dist/provider.d.ts",
@@ -61,7 +61,6 @@
61
61
  "require": "./dist/utils.cjs"
62
62
  }
63
63
  },
64
- "imports": {},
65
64
  "files": [
66
65
  "dist"
67
66
  ],