@fctc/interface-logic 1.7.10 → 1.8.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 (43) hide show
  1. package/dist/index.d.mts +1681 -0
  2. package/dist/index.d.ts +1681 -0
  3. package/dist/{hooks.js → index.js} +1208 -10
  4. package/dist/index.js.map +1 -0
  5. package/dist/{hooks.mjs → index.mjs} +1064 -5
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +1 -1
  8. package/dist/configs.d.mts +0 -15
  9. package/dist/configs.d.ts +0 -15
  10. package/dist/configs.js +0 -2383
  11. package/dist/configs.mjs +0 -2346
  12. package/dist/constants.d.mts +0 -131
  13. package/dist/constants.d.ts +0 -131
  14. package/dist/constants.js +0 -205
  15. package/dist/constants.mjs +0 -166
  16. package/dist/environment.d.mts +0 -55
  17. package/dist/environment.d.ts +0 -55
  18. package/dist/environment.js +0 -3091
  19. package/dist/environment.mjs +0 -3051
  20. package/dist/hooks.d.mts +0 -364
  21. package/dist/hooks.d.ts +0 -364
  22. package/dist/provider.d.mts +0 -15
  23. package/dist/provider.d.ts +0 -15
  24. package/dist/provider.js +0 -3600
  25. package/dist/provider.mjs +0 -3561
  26. package/dist/services.d.mts +0 -256
  27. package/dist/services.d.ts +0 -256
  28. package/dist/services.js +0 -4673
  29. package/dist/services.mjs +0 -4628
  30. package/dist/store.d.mts +0 -643
  31. package/dist/store.d.ts +0 -643
  32. package/dist/store.js +0 -814
  33. package/dist/store.mjs +0 -709
  34. package/dist/types.d.mts +0 -17
  35. package/dist/types.d.ts +0 -17
  36. package/dist/types.js +0 -18
  37. package/dist/types.mjs +0 -0
  38. package/dist/utils.d.mts +0 -93
  39. package/dist/utils.d.ts +0 -93
  40. package/dist/utils.js +0 -2962
  41. package/dist/utils.mjs +0 -2896
  42. package/dist/view-type-BGJfDe73.d.mts +0 -113
  43. package/dist/view-type-BGJfDe73.d.ts +0 -113
@@ -1,113 +0,0 @@
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 GetAllParams {
35
- model?: string;
36
- ids?: number[];
37
- specification: Specification;
38
- domain?: any[];
39
- offset?: number;
40
- sort: any;
41
- fields: any;
42
- groupby: any;
43
- context?: ContextApi;
44
- limit?: number;
45
- }
46
- interface GetListParams {
47
- model: string;
48
- ids?: number[];
49
- specification?: Specification;
50
- domain?: any[];
51
- offset?: number;
52
- order?: string;
53
- context?: ContextApi;
54
- limit?: number;
55
- }
56
- interface GetDetailParams {
57
- ids?: number[];
58
- model?: string;
59
- specification?: Specification;
60
- context?: ContextApi;
61
- }
62
- interface SaveParams {
63
- model: string;
64
- ids?: number[] | [];
65
- data?: Record<string, any>;
66
- specification?: Specification;
67
- context?: ContextApi;
68
- path?: string;
69
- }
70
- interface DeleteParams {
71
- ids?: number[];
72
- model: string;
73
- }
74
- interface OnChangeParams {
75
- ids?: number[];
76
- model: string;
77
- object?: Record<string, any>;
78
- specification: Specification;
79
- context?: ContextApi;
80
- fieldChange?: string[];
81
- }
82
- interface ViewData {
83
- models?: {
84
- [key: string]: {
85
- [key: string]: {
86
- type: string;
87
- relation?: string;
88
- };
89
- };
90
- };
91
- }
92
- type GetSelectionType = {
93
- domain: any;
94
- context: any;
95
- model: string;
96
- specification?: any;
97
- };
98
-
99
- type View = [number | boolean, string];
100
- type Option = {
101
- action_id?: number;
102
- load_filters?: boolean;
103
- toolbar?: boolean;
104
- };
105
- interface GetViewParams {
106
- model?: string;
107
- views?: View[];
108
- context?: Record<string, any>;
109
- options?: Option;
110
- aid?: number | string | null | boolean;
111
- }
112
-
113
- export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };
@@ -1,113 +0,0 @@
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 GetAllParams {
35
- model?: string;
36
- ids?: number[];
37
- specification: Specification;
38
- domain?: any[];
39
- offset?: number;
40
- sort: any;
41
- fields: any;
42
- groupby: any;
43
- context?: ContextApi;
44
- limit?: number;
45
- }
46
- interface GetListParams {
47
- model: string;
48
- ids?: number[];
49
- specification?: Specification;
50
- domain?: any[];
51
- offset?: number;
52
- order?: string;
53
- context?: ContextApi;
54
- limit?: number;
55
- }
56
- interface GetDetailParams {
57
- ids?: number[];
58
- model?: string;
59
- specification?: Specification;
60
- context?: ContextApi;
61
- }
62
- interface SaveParams {
63
- model: string;
64
- ids?: number[] | [];
65
- data?: Record<string, any>;
66
- specification?: Specification;
67
- context?: ContextApi;
68
- path?: string;
69
- }
70
- interface DeleteParams {
71
- ids?: number[];
72
- model: string;
73
- }
74
- interface OnChangeParams {
75
- ids?: number[];
76
- model: string;
77
- object?: Record<string, any>;
78
- specification: Specification;
79
- context?: ContextApi;
80
- fieldChange?: string[];
81
- }
82
- interface ViewData {
83
- models?: {
84
- [key: string]: {
85
- [key: string]: {
86
- type: string;
87
- relation?: string;
88
- };
89
- };
90
- };
91
- }
92
- type GetSelectionType = {
93
- domain: any;
94
- context: any;
95
- model: string;
96
- specification?: any;
97
- };
98
-
99
- type View = [number | boolean, string];
100
- type Option = {
101
- action_id?: number;
102
- load_filters?: boolean;
103
- toolbar?: boolean;
104
- };
105
- interface GetViewParams {
106
- model?: string;
107
- views?: View[];
108
- context?: Record<string, any>;
109
- options?: Option;
110
- aid?: number | string | null | boolean;
111
- }
112
-
113
- export type { ContextApi as C, DeleteParams as D, ForgotPasswordBody as F, GetAllParams as G, LoginCredentialBody as L, OnChangeParams as O, ResetPasswordRequest as R, SaveParams as S, UpdatePasswordRequest as U, ViewData as V, GetDetailParams as a, GetListParams as b, GetSelectionType as c, SocialTokenBody as d, Specification as e, GetViewParams as f, View as g, updatePasswordBody as u };