@fctc/edu-logic-lib 1.0.2 → 1.0.4

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 (69) hide show
  1. package/dist/{store.d.ts → index.d.mts} +574 -3
  2. package/dist/{store.d.mts → index.d.ts} +574 -3
  3. package/dist/index.js +4709 -0
  4. package/dist/index.mjs +4596 -0
  5. package/package.json +1 -1
  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/chunk-6BLY7NZ6.mjs +0 -124
  9. package/dist/chunk-6QXB3XX7.mjs +0 -258
  10. package/dist/chunk-ELARQVCE.mjs +0 -2364
  11. package/dist/chunk-FVGPSTJ7.js +0 -124
  12. package/dist/chunk-GGOFXFSX.js +0 -2364
  13. package/dist/chunk-IXDDYGKE.js +0 -61
  14. package/dist/chunk-MJLXGYQ4.mjs +0 -102
  15. package/dist/chunk-MLJQPO4Q.mjs +0 -61
  16. package/dist/chunk-QLUONJPQ.mjs +0 -604
  17. package/dist/chunk-RZBHZYXG.js +0 -604
  18. package/dist/chunk-S7B3VKMJ.mjs +0 -95
  19. package/dist/chunk-S7YF2I23.js +0 -95
  20. package/dist/chunk-U4CC2BBB.js +0 -1074
  21. package/dist/chunk-UY6GNZNB.js +0 -258
  22. package/dist/chunk-W4W2L2NA.js +0 -102
  23. package/dist/chunk-WYXAE5LI.mjs +0 -1074
  24. package/dist/config.d.mts +0 -15
  25. package/dist/config.d.ts +0 -15
  26. package/dist/config.js +0 -7
  27. package/dist/config.mjs +0 -7
  28. package/dist/constants.d.mts +0 -120
  29. package/dist/constants.d.ts +0 -120
  30. package/dist/constants.js +0 -30
  31. package/dist/constants.mjs +0 -30
  32. package/dist/context-type-D5XefoL-.d.mts +0 -8
  33. package/dist/context-type-D5XefoL-.d.ts +0 -8
  34. package/dist/environment.d.mts +0 -37
  35. package/dist/environment.d.ts +0 -37
  36. package/dist/environment.js +0 -15
  37. package/dist/environment.mjs +0 -15
  38. package/dist/hooks.d.mts +0 -216
  39. package/dist/hooks.d.ts +0 -216
  40. package/dist/hooks.js +0 -776
  41. package/dist/hooks.mjs +0 -776
  42. package/dist/index-C_nK1Mii.d.mts +0 -19
  43. package/dist/index-C_nK1Mii.d.ts +0 -19
  44. package/dist/models.d.mts +0 -35
  45. package/dist/models.d.ts +0 -35
  46. package/dist/models.js +0 -43
  47. package/dist/models.mjs +0 -43
  48. package/dist/provider.d.mts +0 -16
  49. package/dist/provider.d.ts +0 -16
  50. package/dist/provider.js +0 -86
  51. package/dist/provider.mjs +0 -86
  52. package/dist/services.d.mts +0 -160
  53. package/dist/services.d.ts +0 -160
  54. package/dist/services.js +0 -26
  55. package/dist/services.mjs +0 -26
  56. package/dist/store.js +0 -128
  57. package/dist/store.mjs +0 -128
  58. package/dist/types.d.mts +0 -12
  59. package/dist/types.d.ts +0 -12
  60. package/dist/types.js +0 -1
  61. package/dist/types.mjs +0 -0
  62. package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
  63. package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
  64. package/dist/utils.d.mts +0 -52
  65. package/dist/utils.d.ts +0 -52
  66. package/dist/utils.js +0 -34
  67. package/dist/utils.mjs +0 -34
  68. package/dist/view-type-BTzRpkT7.d.mts +0 -106
  69. package/dist/view-type-BTzRpkT7.d.ts +0 -106
package/dist/hooks.d.mts DELETED
@@ -1,216 +0,0 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, c as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
3
- export { u as useGetFormView, a as useGetSelection } from './use-get-selection-DFh6sc49.mjs';
4
- import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.mjs';
5
-
6
- declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
7
-
8
- type ProviderPropsType = {
9
- db: string;
10
- };
11
- declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
12
-
13
- declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
14
-
15
- declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
16
-
17
- declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
18
-
19
- declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
20
-
21
- declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
22
-
23
- declare const useField: (props: any) => {
24
- invisible: boolean;
25
- required: boolean;
26
- readonly: boolean;
27
- nameField: string | null;
28
- };
29
-
30
- declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
31
-
32
- declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
33
-
34
- declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
35
- data: any;
36
- }, unknown>;
37
-
38
- declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
39
- data: any;
40
- }, unknown>;
41
-
42
- declare const useGetComment: ({ data, queryKey }: {
43
- data: any;
44
- queryKey: any;
45
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
46
-
47
- declare const useGetImage: ({ data, queryKey, src, }: {
48
- data: any;
49
- queryKey: any;
50
- src: any;
51
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
52
-
53
- declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
54
- data: any;
55
- }, unknown>;
56
-
57
- declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
58
- data: any;
59
- }, unknown>;
60
-
61
- declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
62
- model: string;
63
- domain: any;
64
- ids: any;
65
- fields: any;
66
- type: any;
67
- importCompat: any;
68
- context: any;
69
- groupby: any;
70
- }, unknown>;
71
-
72
- declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
73
- ids: any;
74
- model: string;
75
- isShow?: boolean;
76
- parentField?: any;
77
- fieldType?: any;
78
- parentName?: any;
79
- prefix?: any;
80
- name?: any;
81
- context: any;
82
- importCompat?: any;
83
- }, unknown>;
84
-
85
- declare const useGetFileExcel: ({ model, context, }: {
86
- model: string;
87
- context: any;
88
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
89
-
90
- declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
91
- id: any;
92
- selectedSheet: any;
93
- isHeader: boolean;
94
- context: any;
95
- }, unknown>;
96
-
97
- declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
98
- formData: any;
99
- }, unknown>;
100
-
101
- declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
102
- formData: any;
103
- }, unknown>;
104
-
105
- declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
106
- fields: any;
107
- columns: any;
108
- idFile: any;
109
- options: any;
110
- dryrun: any;
111
- context: any;
112
- }, unknown>;
113
-
114
- declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
115
- ids: any;
116
- model: string;
117
- }, unknown>;
118
-
119
- declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
120
-
121
- declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
122
- model?: string;
123
- ids: any;
124
- specification?: any;
125
- context?: any;
126
- }, unknown>;
127
-
128
- declare const useGetFieldOnChange: ({ model }: {
129
- model: string;
130
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
131
-
132
- declare const useModel: () => {
133
- initModel: (modelData: BaseModelInit) => BaseModel;
134
- };
135
-
136
- declare const useOdooDataTransform: () => {
137
- toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
138
- parseORM: (data: Record<string, any>) => Record<string, any>;
139
- };
140
-
141
- declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
142
- ids: any;
143
- model: string;
144
- specification: any;
145
- context: any;
146
- object: any;
147
- fieldChange?: any;
148
- }, unknown>;
149
-
150
- declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
151
- ids: any;
152
- model: string;
153
- data: any;
154
- specification?: any;
155
- context: any;
156
- }, unknown>;
157
-
158
- declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
159
-
160
- declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
161
- id: any;
162
- context: ContextApi;
163
- }, unknown>;
164
-
165
- type SwitchUserLocaleParams = {
166
- data: {
167
- id: number;
168
- values: any;
169
- };
170
- };
171
- declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
172
-
173
- declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
174
- model: string;
175
- ids: Record<string, any>[] | any;
176
- context: ContextApi;
177
- method: any;
178
- }, unknown>;
179
-
180
- declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
181
- id: any;
182
- model: string;
183
- context: ContextApi;
184
- }, unknown>;
185
-
186
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
187
-
188
- interface UseGetMenuParams {
189
- context: any;
190
- enabled?: boolean;
191
- queryKey?: any;
192
- }
193
- declare const useGetMenu: ({ context, enabled, queryKey }: UseGetMenuParams) => _tanstack_react_query.UseQueryResult<any, Error>;
194
-
195
- declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
196
-
197
- declare const useLoadAction: ({ idAction, context, }: {
198
- idAction: any;
199
- context: ContextApi;
200
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
201
-
202
- declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
203
- id: number;
204
- report: any;
205
- db: any;
206
- }, unknown>;
207
-
208
- declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
209
- model: string;
210
- ids: Record<string, any>[] | any;
211
- context: ContextApi;
212
- }, unknown>;
213
-
214
- declare const useRunAction: ({ idAction, context }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
215
-
216
- export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useField, useForgotPassword, useGetAll, useGetComment, useGetCompanyInfo, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetImage, useGetListData, useGetMenu, useGetProfile, useGetProvider, useGetUser, useGetView, useIsValidToken, useLoadAction, useLoginCredential, useLoginSocial, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useResetPassword, useRunAction, useSave, useSendComment, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage };
package/dist/hooks.d.ts DELETED
@@ -1,216 +0,0 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, c as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, e as GetViewParams } from './view-type-BTzRpkT7.js';
3
- export { u as useGetFormView, a as useGetSelection } from './use-get-selection-DFh6sc49.js';
4
- import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.js';
5
-
6
- declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
7
-
8
- type ProviderPropsType = {
9
- db: string;
10
- };
11
- declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
12
-
13
- declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
14
-
15
- declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
16
-
17
- declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
18
-
19
- declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
20
-
21
- declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
22
-
23
- declare const useField: (props: any) => {
24
- invisible: boolean;
25
- required: boolean;
26
- readonly: boolean;
27
- nameField: string | null;
28
- };
29
-
30
- declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
31
-
32
- declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
33
-
34
- declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
35
- data: any;
36
- }, unknown>;
37
-
38
- declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
39
- data: any;
40
- }, unknown>;
41
-
42
- declare const useGetComment: ({ data, queryKey }: {
43
- data: any;
44
- queryKey: any;
45
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
46
-
47
- declare const useGetImage: ({ data, queryKey, src, }: {
48
- data: any;
49
- queryKey: any;
50
- src: any;
51
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
52
-
53
- declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
54
- data: any;
55
- }, unknown>;
56
-
57
- declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
58
- data: any;
59
- }, unknown>;
60
-
61
- declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
62
- model: string;
63
- domain: any;
64
- ids: any;
65
- fields: any;
66
- type: any;
67
- importCompat: any;
68
- context: any;
69
- groupby: any;
70
- }, unknown>;
71
-
72
- declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
73
- ids: any;
74
- model: string;
75
- isShow?: boolean;
76
- parentField?: any;
77
- fieldType?: any;
78
- parentName?: any;
79
- prefix?: any;
80
- name?: any;
81
- context: any;
82
- importCompat?: any;
83
- }, unknown>;
84
-
85
- declare const useGetFileExcel: ({ model, context, }: {
86
- model: string;
87
- context: any;
88
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
89
-
90
- declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
91
- id: any;
92
- selectedSheet: any;
93
- isHeader: boolean;
94
- context: any;
95
- }, unknown>;
96
-
97
- declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
98
- formData: any;
99
- }, unknown>;
100
-
101
- declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
102
- formData: any;
103
- }, unknown>;
104
-
105
- declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
106
- fields: any;
107
- columns: any;
108
- idFile: any;
109
- options: any;
110
- dryrun: any;
111
- context: any;
112
- }, unknown>;
113
-
114
- declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
115
- ids: any;
116
- model: string;
117
- }, unknown>;
118
-
119
- declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
120
-
121
- declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
122
- model?: string;
123
- ids: any;
124
- specification?: any;
125
- context?: any;
126
- }, unknown>;
127
-
128
- declare const useGetFieldOnChange: ({ model }: {
129
- model: string;
130
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
131
-
132
- declare const useModel: () => {
133
- initModel: (modelData: BaseModelInit) => BaseModel;
134
- };
135
-
136
- declare const useOdooDataTransform: () => {
137
- toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
138
- parseORM: (data: Record<string, any>) => Record<string, any>;
139
- };
140
-
141
- declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
142
- ids: any;
143
- model: string;
144
- specification: any;
145
- context: any;
146
- object: any;
147
- fieldChange?: any;
148
- }, unknown>;
149
-
150
- declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
151
- ids: any;
152
- model: string;
153
- data: any;
154
- specification?: any;
155
- context: any;
156
- }, unknown>;
157
-
158
- declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
159
-
160
- declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
161
- id: any;
162
- context: ContextApi;
163
- }, unknown>;
164
-
165
- type SwitchUserLocaleParams = {
166
- data: {
167
- id: number;
168
- values: any;
169
- };
170
- };
171
- declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
172
-
173
- declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
174
- model: string;
175
- ids: Record<string, any>[] | any;
176
- context: ContextApi;
177
- method: any;
178
- }, unknown>;
179
-
180
- declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
181
- id: any;
182
- model: string;
183
- context: ContextApi;
184
- }, unknown>;
185
-
186
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
187
-
188
- interface UseGetMenuParams {
189
- context: any;
190
- enabled?: boolean;
191
- queryKey?: any;
192
- }
193
- declare const useGetMenu: ({ context, enabled, queryKey }: UseGetMenuParams) => _tanstack_react_query.UseQueryResult<any, Error>;
194
-
195
- declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
196
-
197
- declare const useLoadAction: ({ idAction, context, }: {
198
- idAction: any;
199
- context: ContextApi;
200
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
201
-
202
- declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
203
- id: number;
204
- report: any;
205
- db: any;
206
- }, unknown>;
207
-
208
- declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
209
- model: string;
210
- ids: Record<string, any>[] | any;
211
- context: ContextApi;
212
- }, unknown>;
213
-
214
- declare const useRunAction: ({ idAction, context }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
215
-
216
- export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useField, useForgotPassword, useGetAll, useGetComment, useGetCompanyInfo, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetImage, useGetListData, useGetMenu, useGetProfile, useGetProvider, useGetUser, useGetView, useIsValidToken, useLoadAction, useLoginCredential, useLoginSocial, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useResetPassword, useRunAction, useSave, useSendComment, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage };