@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
@@ -1,160 +0,0 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
2
- import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.mjs';
3
- import { C as Context } from './context-type-D5XefoL-.mjs';
4
- import '@tanstack/react-query';
5
-
6
- declare const ActionService: {
7
- loadAction({ idAction, context, }: {
8
- idAction: number;
9
- context: ContextApi;
10
- }): Promise<any>;
11
- callButton({ model, ids, context, method, }: {
12
- model: string;
13
- ids: Record<string, any>[] | any;
14
- context: ContextApi;
15
- method: any;
16
- }): Promise<any>;
17
- removeRows({ model, ids, context, }: {
18
- model: string;
19
- ids: Record<string, any>[] | any;
20
- context: ContextApi;
21
- }): Promise<any>;
22
- duplicateRecord({ model, id, context, }: {
23
- model: string;
24
- id: any;
25
- context: ContextApi;
26
- }): Promise<any>;
27
- print({ id, report, db }: {
28
- id: number;
29
- report: any;
30
- db: any;
31
- }): Promise<any>;
32
- runAction({ idAction, context, }: {
33
- idAction: number;
34
- context: ContextApi;
35
- }): Promise<any>;
36
- };
37
-
38
- declare const AuthService: {
39
- login(body: LoginCredentialBody): Promise<any>;
40
- forgotPassword(email: string): Promise<any>;
41
- resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
42
- updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
43
- isValidToken(token: string | null): Promise<any>;
44
- loginSocial({ state, access_token, }: {
45
- state: object;
46
- access_token: string;
47
- }): Promise<any>;
48
- getProviders(db?: string): Promise<any>;
49
- };
50
-
51
- declare const CompanyService: {
52
- getCurrentCompany(): Promise<any>;
53
- getInfoCompany(id: number): Promise<any>;
54
- };
55
-
56
- declare const ExcelService: {
57
- uploadFile({ formData }: {
58
- formData: any;
59
- }): Promise<any>;
60
- uploadIdFile({ formData }: {
61
- formData: any;
62
- }): Promise<any>;
63
- parsePreview({ id, selectedSheet, isHeader, context, }: {
64
- id: any;
65
- selectedSheet: any;
66
- isHeader: boolean;
67
- context: any;
68
- }): Promise<any>;
69
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
70
- columns: any;
71
- fields: any;
72
- idFile: any;
73
- options: any;
74
- dryrun: any;
75
- context: any;
76
- }): Promise<any>;
77
- getFileExcel({ model, context }: {
78
- model: string;
79
- context: any;
80
- }): Promise<any>;
81
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
82
- ids: any;
83
- model: string;
84
- isShow?: boolean;
85
- parentField?: any;
86
- fieldType?: any;
87
- parentName?: any;
88
- prefix?: any;
89
- name?: any;
90
- context: any;
91
- importCompat?: any;
92
- }): Promise<any>;
93
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
94
- model: string;
95
- domain: any;
96
- ids: any;
97
- fields: any;
98
- type: any;
99
- importCompat: any;
100
- context: any;
101
- groupby: any;
102
- }): Promise<any>;
103
- };
104
-
105
- declare const FormService: {
106
- getComment({ data }: {
107
- data: any;
108
- }): Promise<any>;
109
- sentComment({ data }: any): Promise<any>;
110
- deleteComment({ data }: {
111
- data: any;
112
- }): Promise<any>;
113
- getImage({ data }: {
114
- data: any;
115
- }): Promise<any>;
116
- uploadImage({ data }: {
117
- data: any;
118
- }): Promise<any>;
119
- getFormView({ data }: {
120
- data: TFormView;
121
- }): Promise<any>;
122
- changeStatus({ data }: any): Promise<any>;
123
- };
124
-
125
- declare const ModelService: {
126
- getAll({ data }: {
127
- data: any;
128
- }): Promise<any>;
129
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
130
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
131
- save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
132
- delete({ ids, model }: DeleteParams): Promise<any>;
133
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
134
- getListFieldsOnchange({ model }: {
135
- model: string;
136
- }): Promise<any>;
137
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
138
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
139
- };
140
-
141
- declare const UserService: {
142
- getProfile(): Promise<any>;
143
- getUser({ context, id }: {
144
- context: any;
145
- id: any;
146
- }): Promise<any>;
147
- switchUserLocale: ({ id, values }: any) => Promise<any>;
148
- };
149
-
150
- declare const ViewService: {
151
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
152
- getMenu(context: Context): Promise<any>;
153
- getSelectionItem({ data }: {
154
- data: GetSelectionType;
155
- }): Promise<any>;
156
- loadMessages(): Promise<any>;
157
- getVersion(): Promise<any>;
158
- };
159
-
160
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, ModelService, UserService, ViewService };
@@ -1,160 +0,0 @@
1
- import { C as ContextApi, L as LoginCredentialBody, R as ResetPasswordRequest, U as UpdatePasswordRequest, b as GetListParams, a as GetDetailParams, S as SaveParams, D as DeleteParams, O as OnChangeParams, V as ViewData, e as GetViewParams } from './view-type-BTzRpkT7.js';
2
- import { T as TFormView, G as GetSelectionType } from './use-get-selection-DFh6sc49.js';
3
- import { C as Context } from './context-type-D5XefoL-.js';
4
- import '@tanstack/react-query';
5
-
6
- declare const ActionService: {
7
- loadAction({ idAction, context, }: {
8
- idAction: number;
9
- context: ContextApi;
10
- }): Promise<any>;
11
- callButton({ model, ids, context, method, }: {
12
- model: string;
13
- ids: Record<string, any>[] | any;
14
- context: ContextApi;
15
- method: any;
16
- }): Promise<any>;
17
- removeRows({ model, ids, context, }: {
18
- model: string;
19
- ids: Record<string, any>[] | any;
20
- context: ContextApi;
21
- }): Promise<any>;
22
- duplicateRecord({ model, id, context, }: {
23
- model: string;
24
- id: any;
25
- context: ContextApi;
26
- }): Promise<any>;
27
- print({ id, report, db }: {
28
- id: number;
29
- report: any;
30
- db: any;
31
- }): Promise<any>;
32
- runAction({ idAction, context, }: {
33
- idAction: number;
34
- context: ContextApi;
35
- }): Promise<any>;
36
- };
37
-
38
- declare const AuthService: {
39
- login(body: LoginCredentialBody): Promise<any>;
40
- forgotPassword(email: string): Promise<any>;
41
- resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
42
- updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
43
- isValidToken(token: string | null): Promise<any>;
44
- loginSocial({ state, access_token, }: {
45
- state: object;
46
- access_token: string;
47
- }): Promise<any>;
48
- getProviders(db?: string): Promise<any>;
49
- };
50
-
51
- declare const CompanyService: {
52
- getCurrentCompany(): Promise<any>;
53
- getInfoCompany(id: number): Promise<any>;
54
- };
55
-
56
- declare const ExcelService: {
57
- uploadFile({ formData }: {
58
- formData: any;
59
- }): Promise<any>;
60
- uploadIdFile({ formData }: {
61
- formData: any;
62
- }): Promise<any>;
63
- parsePreview({ id, selectedSheet, isHeader, context, }: {
64
- id: any;
65
- selectedSheet: any;
66
- isHeader: boolean;
67
- context: any;
68
- }): Promise<any>;
69
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
70
- columns: any;
71
- fields: any;
72
- idFile: any;
73
- options: any;
74
- dryrun: any;
75
- context: any;
76
- }): Promise<any>;
77
- getFileExcel({ model, context }: {
78
- model: string;
79
- context: any;
80
- }): Promise<any>;
81
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
82
- ids: any;
83
- model: string;
84
- isShow?: boolean;
85
- parentField?: any;
86
- fieldType?: any;
87
- parentName?: any;
88
- prefix?: any;
89
- name?: any;
90
- context: any;
91
- importCompat?: any;
92
- }): Promise<any>;
93
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
94
- model: string;
95
- domain: any;
96
- ids: any;
97
- fields: any;
98
- type: any;
99
- importCompat: any;
100
- context: any;
101
- groupby: any;
102
- }): Promise<any>;
103
- };
104
-
105
- declare const FormService: {
106
- getComment({ data }: {
107
- data: any;
108
- }): Promise<any>;
109
- sentComment({ data }: any): Promise<any>;
110
- deleteComment({ data }: {
111
- data: any;
112
- }): Promise<any>;
113
- getImage({ data }: {
114
- data: any;
115
- }): Promise<any>;
116
- uploadImage({ data }: {
117
- data: any;
118
- }): Promise<any>;
119
- getFormView({ data }: {
120
- data: TFormView;
121
- }): Promise<any>;
122
- changeStatus({ data }: any): Promise<any>;
123
- };
124
-
125
- declare const ModelService: {
126
- getAll({ data }: {
127
- data: any;
128
- }): Promise<any>;
129
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
130
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
131
- save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
132
- delete({ ids, model }: DeleteParams): Promise<any>;
133
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
134
- getListFieldsOnchange({ model }: {
135
- model: string;
136
- }): Promise<any>;
137
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
138
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
139
- };
140
-
141
- declare const UserService: {
142
- getProfile(): Promise<any>;
143
- getUser({ context, id }: {
144
- context: any;
145
- id: any;
146
- }): Promise<any>;
147
- switchUserLocale: ({ id, values }: any) => Promise<any>;
148
- };
149
-
150
- declare const ViewService: {
151
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
152
- getMenu(context: Context): Promise<any>;
153
- getSelectionItem({ data }: {
154
- data: GetSelectionType;
155
- }): Promise<any>;
156
- loadMessages(): Promise<any>;
157
- getVersion(): Promise<any>;
158
- };
159
-
160
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, ModelService, UserService, ViewService };