@fctc/edu-logic-lib 1.1.8 → 1.1.10

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 (61) hide show
  1. package/dist/chunk-227GQM56.mjs +295 -0
  2. package/dist/chunk-2QWNSNZX.mjs +62 -0
  3. package/dist/chunk-3B6NWGPJ.js +303 -0
  4. package/dist/chunk-6BLY7NZ6.mjs +120 -0
  5. package/dist/chunk-7JD5GMIZ.js +2 -0
  6. package/dist/chunk-7L75ULY6.js +32 -0
  7. package/dist/chunk-ELARQVCE.mjs +2344 -0
  8. package/dist/chunk-FVGPSTJ7.js +122 -0
  9. package/dist/chunk-GGOFXFSX.js +2362 -0
  10. package/dist/chunk-IX7MI3OE.mjs +1059 -0
  11. package/dist/chunk-IXDDYGKE.js +61 -0
  12. package/dist/chunk-MLJQPO4Q.mjs +57 -0
  13. package/dist/chunk-OBR6UTC5.mjs +1 -0
  14. package/dist/chunk-ODQQQ7WA.js +94 -0
  15. package/dist/chunk-PG7J6HGQ.js +66 -0
  16. package/dist/chunk-QLUONJPQ.mjs +519 -0
  17. package/dist/chunk-QYYFZUNV.mjs +90 -0
  18. package/dist/chunk-RGJT5VWB.mjs +585 -0
  19. package/dist/chunk-RZBHZYXG.js +582 -0
  20. package/dist/chunk-S7B3VKMJ.mjs +85 -0
  21. package/dist/chunk-S7YF2I23.js +95 -0
  22. package/dist/chunk-SJSYRHBU.js +635 -0
  23. package/dist/chunk-YIQHTB3S.js +1068 -0
  24. package/dist/chunk-ZARZLSLP.mjs +29 -0
  25. package/dist/config.js +6 -257
  26. package/dist/config.mjs +2 -256
  27. package/dist/constants.js +53 -152
  28. package/dist/constants.mjs +2 -141
  29. package/dist/environment.d.mts +18 -1
  30. package/dist/environment.d.ts +18 -1
  31. package/dist/environment.js +16 -840
  32. package/dist/environment.mjs +4 -841
  33. package/dist/hooks.d.mts +207 -2
  34. package/dist/hooks.d.ts +207 -2
  35. package/dist/hooks.js +180 -3040
  36. package/dist/hooks.mjs +9 -3048
  37. package/dist/index-C_nK1Mii.d.mts +19 -0
  38. package/dist/index-C_nK1Mii.d.ts +19 -0
  39. package/dist/index.d.mts +8 -6
  40. package/dist/index.d.ts +8 -6
  41. package/dist/index.js +626 -4711
  42. package/dist/index.mjs +12 -4601
  43. package/dist/models.d.mts +4 -21
  44. package/dist/models.d.ts +4 -21
  45. package/dist/models.js +18 -3217
  46. package/dist/models.mjs +9 -3217
  47. package/dist/provider.js +17 -3224
  48. package/dist/provider.mjs +8 -3224
  49. package/dist/services.d.mts +2 -13
  50. package/dist/services.d.ts +2 -13
  51. package/dist/services.js +31 -4032
  52. package/dist/services.mjs +7 -4032
  53. package/dist/store.js +248 -576
  54. package/dist/store.mjs +1 -519
  55. package/dist/types.js +2 -0
  56. package/dist/types.mjs +1 -1
  57. package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
  58. package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
  59. package/dist/utils.js +61 -2355
  60. package/dist/utils.mjs +1 -2344
  61. package/package.json +1 -1
package/dist/hooks.d.mts CHANGED
@@ -1,7 +1,169 @@
1
- import './environment.mjs';
2
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';
3
6
  import '@reduxjs/toolkit';
4
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
+
5
167
  type SwitchUserLocaleParams = {
6
168
  data: {
7
169
  id: number;
@@ -10,4 +172,47 @@ type SwitchUserLocaleParams = {
10
172
  };
11
173
  declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
12
174
 
13
- export { useSwitchLocale };
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 CHANGED
@@ -1,7 +1,169 @@
1
- import './environment.js';
2
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';
3
6
  import '@reduxjs/toolkit';
4
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
+
5
167
  type SwitchUserLocaleParams = {
6
168
  data: {
7
169
  id: number;
@@ -10,4 +172,47 @@ type SwitchUserLocaleParams = {
10
172
  };
11
173
  declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
12
174
 
13
- export { useSwitchLocale };
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 };