edu-logic-lib 1.0.1
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.
- package/dist/base-model-type-DvO53Lwi.d.mts +7 -0
- package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
- package/dist/config.d.mts +15 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +294 -0
- package/dist/config.mjs +257 -0
- package/dist/constants.d.mts +120 -0
- package/dist/constants.d.ts +120 -0
- package/dist/constants.js +191 -0
- package/dist/constants.mjs +153 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +37 -0
- package/dist/environment.d.ts +37 -0
- package/dist/environment.js +910 -0
- package/dist/environment.mjs +870 -0
- package/dist/hooks.d.mts +216 -0
- package/dist/hooks.d.ts +216 -0
- package/dist/hooks.js +5094 -0
- package/dist/hooks.mjs +5013 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/models.d.mts +35 -0
- package/dist/models.d.ts +35 -0
- package/dist/models.js +3288 -0
- package/dist/models.mjs +3249 -0
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +16 -0
- package/dist/provider.js +3311 -0
- package/dist/provider.mjs +3272 -0
- package/dist/services.d.mts +160 -0
- package/dist/services.d.ts +160 -0
- package/dist/services.js +4113 -0
- package/dist/services.mjs +4069 -0
- package/dist/store.d.mts +505 -0
- package/dist/store.d.ts +505 -0
- package/dist/store.js +691 -0
- package/dist/store.mjs +603 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +0 -0
- package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
- package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
- package/dist/utils.d.mts +52 -0
- package/dist/utils.d.ts +52 -0
- package/dist/utils.js +2402 -0
- package/dist/utils.mjs +2361 -0
- package/dist/view-type-BTzRpkT7.d.mts +106 -0
- package/dist/view-type-BTzRpkT7.d.ts +106 -0
- package/package.json +89 -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 };
|