@fctc/interface-logic 1.2.9 → 1.3.0

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/index.d.mts +1709 -24
  2. package/dist/index.d.ts +1709 -24
  3. package/dist/index.js +14 -16
  4. package/dist/index.mjs +14 -16
  5. package/package.json +87 -87
  6. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  7. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  8. package/dist/config.d.mts +0 -16
  9. package/dist/config.d.ts +0 -16
  10. package/dist/config.js +0 -2386
  11. package/dist/config.mjs +0 -2349
  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/context-type-D5XefoL-.d.mts +0 -8
  17. package/dist/context-type-D5XefoL-.d.ts +0 -8
  18. package/dist/environment.d.mts +0 -42
  19. package/dist/environment.d.ts +0 -42
  20. package/dist/environment.js +0 -3094
  21. package/dist/environment.mjs +0 -3054
  22. package/dist/hook.d.mts +0 -340
  23. package/dist/hook.d.ts +0 -340
  24. package/dist/hook.js +0 -6019
  25. package/dist/hook.mjs +0 -5915
  26. package/dist/index-C_nK1Mii.d.mts +0 -19
  27. package/dist/index-C_nK1Mii.d.ts +0 -19
  28. package/dist/model.d.mts +0 -35
  29. package/dist/model.d.ts +0 -35
  30. package/dist/model.js +0 -3356
  31. package/dist/model.mjs +0 -3317
  32. package/dist/provider.d.mts +0 -16
  33. package/dist/provider.d.ts +0 -16
  34. package/dist/provider.js +0 -3603
  35. package/dist/provider.mjs +0 -3564
  36. package/dist/services.d.mts +0 -258
  37. package/dist/services.d.ts +0 -258
  38. package/dist/services.js +0 -4662
  39. package/dist/services.mjs +0 -4617
  40. package/dist/session-storage-CxkkEmQh.d.mts +0 -15
  41. package/dist/session-storage-CxkkEmQh.d.ts +0 -15
  42. package/dist/store.d.mts +0 -643
  43. package/dist/store.d.ts +0 -643
  44. package/dist/store.js +0 -814
  45. package/dist/store.mjs +0 -709
  46. package/dist/types.d.mts +0 -12
  47. package/dist/types.d.ts +0 -12
  48. package/dist/types.js +0 -18
  49. package/dist/types.mjs +0 -0
  50. package/dist/use-get-selection-QZu1jKqa.d.mts +0 -15
  51. package/dist/use-get-selection-QZu1jKqa.d.ts +0 -15
  52. package/dist/utils.d.mts +0 -96
  53. package/dist/utils.d.ts +0 -96
  54. package/dist/utils.js +0 -3003
  55. package/dist/utils.mjs +0 -2935
  56. package/dist/view-type-DodWYWDH.d.mts +0 -107
  57. package/dist/view-type-DodWYWDH.d.ts +0 -107
@@ -1,107 +0,0 @@
1
- interface Specification {
2
- [key: string]: any;
3
- }
4
- interface ContextApi {
5
- [key: string]: any;
6
- }
7
- interface GetAllParams {
8
- model?: string;
9
- ids?: number[];
10
- specification: Specification;
11
- domain?: any[];
12
- offset?: number;
13
- sort: any;
14
- fields: any;
15
- groupby: any;
16
- context?: ContextApi;
17
- limit?: number;
18
- }
19
- interface GetListParams {
20
- model: string;
21
- ids?: number[];
22
- specification?: Specification;
23
- domain?: any[];
24
- offset?: number;
25
- order?: string;
26
- context?: ContextApi;
27
- limit?: number;
28
- }
29
- interface GetDetailParams {
30
- ids?: number[];
31
- model?: string;
32
- specification?: Specification;
33
- context?: ContextApi;
34
- }
35
- interface SaveParams {
36
- model: string;
37
- ids?: number[] | [];
38
- data?: Record<string, any>;
39
- specification?: Specification;
40
- context?: ContextApi;
41
- path?: string;
42
- }
43
- interface DeleteParams {
44
- ids?: number[];
45
- model: string;
46
- }
47
- interface OnChangeParams {
48
- ids?: number[];
49
- model: string;
50
- object?: Record<string, any>;
51
- specification: Specification;
52
- context?: ContextApi;
53
- fieldChange?: string[];
54
- }
55
- interface ViewData {
56
- models?: {
57
- [key: string]: {
58
- [key: string]: {
59
- type: string;
60
- relation?: string;
61
- };
62
- };
63
- };
64
- }
65
-
66
- interface LoginCredentialBody {
67
- email: string;
68
- password: string;
69
- path?: string;
70
- }
71
- interface ResetPasswordRequest {
72
- password: string;
73
- confirmPassword: string;
74
- }
75
- interface UpdatePasswordRequest {
76
- newPassword: string;
77
- oldPassword: string;
78
- }
79
- interface ForgotPasswordBody {
80
- data: ResetPasswordRequest;
81
- token: string | null;
82
- }
83
- interface updatePasswordBody {
84
- data: UpdatePasswordRequest;
85
- token: string | null;
86
- }
87
- interface SocialTokenBody {
88
- state: object;
89
- access_token: string;
90
- db: string;
91
- }
92
-
93
- type View = [number | boolean, string];
94
- type Option = {
95
- action_id?: number;
96
- load_filters?: boolean;
97
- toolbar?: boolean;
98
- };
99
- interface GetViewParams {
100
- model?: string;
101
- views?: View[];
102
- context?: Record<string, any>;
103
- options?: Option;
104
- aid?: number | string | null | boolean;
105
- }
106
-
107
- 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, View as V, GetDetailParams as a, GetListParams as b, GetViewParams as c, SocialTokenBody as d, Specification as e, ViewData as f, updatePasswordBody as u };
@@ -1,107 +0,0 @@
1
- interface Specification {
2
- [key: string]: any;
3
- }
4
- interface ContextApi {
5
- [key: string]: any;
6
- }
7
- interface GetAllParams {
8
- model?: string;
9
- ids?: number[];
10
- specification: Specification;
11
- domain?: any[];
12
- offset?: number;
13
- sort: any;
14
- fields: any;
15
- groupby: any;
16
- context?: ContextApi;
17
- limit?: number;
18
- }
19
- interface GetListParams {
20
- model: string;
21
- ids?: number[];
22
- specification?: Specification;
23
- domain?: any[];
24
- offset?: number;
25
- order?: string;
26
- context?: ContextApi;
27
- limit?: number;
28
- }
29
- interface GetDetailParams {
30
- ids?: number[];
31
- model?: string;
32
- specification?: Specification;
33
- context?: ContextApi;
34
- }
35
- interface SaveParams {
36
- model: string;
37
- ids?: number[] | [];
38
- data?: Record<string, any>;
39
- specification?: Specification;
40
- context?: ContextApi;
41
- path?: string;
42
- }
43
- interface DeleteParams {
44
- ids?: number[];
45
- model: string;
46
- }
47
- interface OnChangeParams {
48
- ids?: number[];
49
- model: string;
50
- object?: Record<string, any>;
51
- specification: Specification;
52
- context?: ContextApi;
53
- fieldChange?: string[];
54
- }
55
- interface ViewData {
56
- models?: {
57
- [key: string]: {
58
- [key: string]: {
59
- type: string;
60
- relation?: string;
61
- };
62
- };
63
- };
64
- }
65
-
66
- interface LoginCredentialBody {
67
- email: string;
68
- password: string;
69
- path?: string;
70
- }
71
- interface ResetPasswordRequest {
72
- password: string;
73
- confirmPassword: string;
74
- }
75
- interface UpdatePasswordRequest {
76
- newPassword: string;
77
- oldPassword: string;
78
- }
79
- interface ForgotPasswordBody {
80
- data: ResetPasswordRequest;
81
- token: string | null;
82
- }
83
- interface updatePasswordBody {
84
- data: UpdatePasswordRequest;
85
- token: string | null;
86
- }
87
- interface SocialTokenBody {
88
- state: object;
89
- access_token: string;
90
- db: string;
91
- }
92
-
93
- type View = [number | boolean, string];
94
- type Option = {
95
- action_id?: number;
96
- load_filters?: boolean;
97
- toolbar?: boolean;
98
- };
99
- interface GetViewParams {
100
- model?: string;
101
- views?: View[];
102
- context?: Record<string, any>;
103
- options?: Option;
104
- aid?: number | string | null | boolean;
105
- }
106
-
107
- 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, View as V, GetDetailParams as a, GetListParams as b, GetViewParams as c, SocialTokenBody as d, Specification as e, ViewData as f, updatePasswordBody as u };