@fctc/edu-logic-lib 1.0.3 → 1.0.5

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