@fctc/edu-logic-lib 1.0.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 (51) hide show
  1. package/dist/base-model-type-DvO53Lwi.d.mts +7 -0
  2. package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
  3. package/dist/config.d.mts +15 -0
  4. package/dist/config.d.ts +15 -0
  5. package/dist/config.js +294 -0
  6. package/dist/config.mjs +257 -0
  7. package/dist/constants.d.mts +120 -0
  8. package/dist/constants.d.ts +120 -0
  9. package/dist/constants.js +191 -0
  10. package/dist/constants.mjs +153 -0
  11. package/dist/context-type-D5XefoL-.d.mts +8 -0
  12. package/dist/context-type-D5XefoL-.d.ts +8 -0
  13. package/dist/environment.d.mts +37 -0
  14. package/dist/environment.d.ts +37 -0
  15. package/dist/environment.js +910 -0
  16. package/dist/environment.mjs +870 -0
  17. package/dist/hooks.d.mts +216 -0
  18. package/dist/hooks.d.ts +216 -0
  19. package/dist/hooks.js +5094 -0
  20. package/dist/hooks.mjs +5013 -0
  21. package/dist/index-C_nK1Mii.d.mts +19 -0
  22. package/dist/index-C_nK1Mii.d.ts +19 -0
  23. package/dist/models.d.mts +35 -0
  24. package/dist/models.d.ts +35 -0
  25. package/dist/models.js +3288 -0
  26. package/dist/models.mjs +3249 -0
  27. package/dist/provider.d.mts +16 -0
  28. package/dist/provider.d.ts +16 -0
  29. package/dist/provider.js +3311 -0
  30. package/dist/provider.mjs +3272 -0
  31. package/dist/services.d.mts +160 -0
  32. package/dist/services.d.ts +160 -0
  33. package/dist/services.js +4113 -0
  34. package/dist/services.mjs +4069 -0
  35. package/dist/store.d.mts +505 -0
  36. package/dist/store.d.ts +505 -0
  37. package/dist/store.js +691 -0
  38. package/dist/store.mjs +603 -0
  39. package/dist/types.d.mts +12 -0
  40. package/dist/types.d.ts +12 -0
  41. package/dist/types.js +18 -0
  42. package/dist/types.mjs +0 -0
  43. package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
  44. package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
  45. package/dist/utils.d.mts +52 -0
  46. package/dist/utils.d.ts +52 -0
  47. package/dist/utils.js +2402 -0
  48. package/dist/utils.mjs +2361 -0
  49. package/dist/view-type-BTzRpkT7.d.mts +106 -0
  50. package/dist/view-type-BTzRpkT7.d.ts +106 -0
  51. package/package.json +93 -0
@@ -0,0 +1,160 @@
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 };
@@ -0,0 +1,160 @@
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 };