@fctc/interface-logic 1.0.1 → 1.0.3
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 +16 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +2355 -0
- package/dist/config.mjs +2318 -0
- package/dist/constants.d.mts +128 -0
- package/dist/constants.d.ts +128 -0
- package/dist/constants.js +202 -0
- package/dist/constants.mjs +163 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +41 -0
- package/dist/environment.d.ts +41 -0
- package/dist/environment.js +3061 -0
- package/dist/environment.mjs +3021 -0
- package/dist/hook.d.mts +292 -0
- package/dist/hook.d.ts +292 -0
- package/dist/hook.js +5683 -0
- package/dist/hook.mjs +5587 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +1 -1389
- package/dist/index.d.ts +1 -1389
- package/dist/index.js +0 -6856
- package/dist/index.mjs +0 -6629
- package/dist/model.d.mts +35 -0
- package/dist/model.d.ts +35 -0
- package/dist/model.js +3320 -0
- package/dist/model.mjs +3281 -0
- package/dist/provider.d.mts +15 -0
- package/dist/provider.d.ts +15 -0
- package/dist/provider.js +6566 -0
- package/dist/provider.mjs +6550 -0
- package/dist/services.d.mts +224 -0
- package/dist/services.d.ts +224 -0
- package/dist/services.js +4477 -0
- package/dist/services.mjs +4432 -0
- package/dist/session-storage-CxkkEmQh.d.mts +15 -0
- package/dist/session-storage-CxkkEmQh.d.ts +15 -0
- package/dist/store.d.mts +643 -0
- package/dist/store.d.ts +643 -0
- package/dist/store.js +814 -0
- package/dist/store.mjs +709 -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-QZu1jKqa.d.mts +15 -0
- package/dist/use-get-selection-QZu1jKqa.d.ts +15 -0
- package/dist/utils.d.mts +87 -0
- package/dist/utils.d.ts +87 -0
- package/dist/utils.js +2947 -0
- package/dist/utils.mjs +2881 -0
- package/dist/view-type-y6vtF3wg.d.mts +106 -0
- package/dist/view-type-y6vtF3wg.d.ts +106 -0
- package/package.json +55 -13
@@ -0,0 +1,224 @@
|
|
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, f as ViewData, c as GetViewParams } from './view-type-y6vtF3wg.mjs';
|
2
|
+
import { G as GetSelectionType } from './use-get-selection-QZu1jKqa.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
|
+
getPrintReportName({ id }: {
|
28
|
+
id: number;
|
29
|
+
}): Promise<any>;
|
30
|
+
print({ id, report, db }: {
|
31
|
+
id: number;
|
32
|
+
report: any;
|
33
|
+
db: any;
|
34
|
+
}): Promise<any>;
|
35
|
+
runAction({ idAction, context, }: {
|
36
|
+
idAction: number;
|
37
|
+
context: ContextApi;
|
38
|
+
}): Promise<any>;
|
39
|
+
};
|
40
|
+
|
41
|
+
declare const AuthService: {
|
42
|
+
login(body: LoginCredentialBody): Promise<any>;
|
43
|
+
forgotPassword(email: string): Promise<any>;
|
44
|
+
forgotPasswordSSO({ email, with_context, method, }: {
|
45
|
+
email: string;
|
46
|
+
with_context: any;
|
47
|
+
method: string;
|
48
|
+
}): Promise<any>;
|
49
|
+
resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
|
50
|
+
resetPasswordSSO({ method, password, with_context, }: {
|
51
|
+
method: any;
|
52
|
+
password: string;
|
53
|
+
with_context: any;
|
54
|
+
}): Promise<any>;
|
55
|
+
updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
|
56
|
+
isValidToken(token: string | null): Promise<any>;
|
57
|
+
loginSocial({ db, state, access_token, }: {
|
58
|
+
db: string;
|
59
|
+
state: object;
|
60
|
+
access_token: string;
|
61
|
+
}): Promise<any>;
|
62
|
+
getProviders(db?: string): Promise<any>;
|
63
|
+
};
|
64
|
+
|
65
|
+
declare const CompanyService: {
|
66
|
+
getCurrentCompany(): Promise<any>;
|
67
|
+
getInfoCompany(id: number): Promise<any>;
|
68
|
+
};
|
69
|
+
|
70
|
+
declare const ExcelService: {
|
71
|
+
uploadFile({ formData }: {
|
72
|
+
formData: any;
|
73
|
+
}): Promise<any>;
|
74
|
+
uploadIdFile({ formData }: {
|
75
|
+
formData: any;
|
76
|
+
}): Promise<any>;
|
77
|
+
parsePreview({ id, selectedSheet, isHeader, context, }: {
|
78
|
+
id: any;
|
79
|
+
selectedSheet: any;
|
80
|
+
isHeader: boolean;
|
81
|
+
context: any;
|
82
|
+
}): Promise<any>;
|
83
|
+
executeImport({ columns, fields, idFile, options, dryrun, context, }: {
|
84
|
+
columns: any;
|
85
|
+
fields: any;
|
86
|
+
idFile: any;
|
87
|
+
options: any;
|
88
|
+
dryrun: any;
|
89
|
+
context: any;
|
90
|
+
}): Promise<any>;
|
91
|
+
getFileExcel({ model }: {
|
92
|
+
model: string;
|
93
|
+
}): Promise<any>;
|
94
|
+
getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
|
95
|
+
ids: any;
|
96
|
+
model: string;
|
97
|
+
isShow?: boolean;
|
98
|
+
parentField?: any;
|
99
|
+
fieldType?: any;
|
100
|
+
parentName?: any;
|
101
|
+
prefix?: any;
|
102
|
+
name?: any;
|
103
|
+
context: any;
|
104
|
+
importCompat?: any;
|
105
|
+
}): Promise<any>;
|
106
|
+
exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
|
107
|
+
model: string;
|
108
|
+
domain: any;
|
109
|
+
ids: any;
|
110
|
+
fields: any;
|
111
|
+
type: any;
|
112
|
+
importCompat: any;
|
113
|
+
context: any;
|
114
|
+
groupby: any;
|
115
|
+
}): Promise<any>;
|
116
|
+
};
|
117
|
+
|
118
|
+
type TFormView = {
|
119
|
+
model: string;
|
120
|
+
id?: number | null;
|
121
|
+
context?: any;
|
122
|
+
};
|
123
|
+
declare const FormService: {
|
124
|
+
getComment({ data }: {
|
125
|
+
data: any;
|
126
|
+
}): Promise<any>;
|
127
|
+
sentComment({ data }: any): Promise<any>;
|
128
|
+
deleteComment({ data }: {
|
129
|
+
data: any;
|
130
|
+
}): Promise<any>;
|
131
|
+
getImage({ data }: {
|
132
|
+
data: any;
|
133
|
+
}): Promise<any>;
|
134
|
+
uploadImage({ data }: {
|
135
|
+
data: any;
|
136
|
+
}): Promise<any>;
|
137
|
+
getFormView({ data }: {
|
138
|
+
data: TFormView;
|
139
|
+
}): Promise<any>;
|
140
|
+
changeStatus({ data }: any): Promise<any>;
|
141
|
+
};
|
142
|
+
|
143
|
+
declare const KanbanServices: {
|
144
|
+
getGroups({ model, width_context, }: {
|
145
|
+
model: string;
|
146
|
+
width_context: any;
|
147
|
+
}): Promise<any>;
|
148
|
+
getProgressBar({ field, color, model, width_context, }: {
|
149
|
+
field: any;
|
150
|
+
color: any;
|
151
|
+
model: string;
|
152
|
+
width_context: string;
|
153
|
+
}): Promise<any>;
|
154
|
+
};
|
155
|
+
|
156
|
+
declare const ModelService: {
|
157
|
+
getListMyBankAccount({ domain, spectification, model, }: {
|
158
|
+
domain: any;
|
159
|
+
spectification: any;
|
160
|
+
model: string;
|
161
|
+
}): Promise<any>;
|
162
|
+
getCurrency(): Promise<any>;
|
163
|
+
getConversionRate(): Promise<any>;
|
164
|
+
getAll({ data }: {
|
165
|
+
data: any;
|
166
|
+
}): Promise<any>;
|
167
|
+
getListCalendar({ data }: {
|
168
|
+
data: any;
|
169
|
+
}): Promise<any>;
|
170
|
+
getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
|
171
|
+
getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
|
172
|
+
save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
|
173
|
+
delete({ ids, model }: DeleteParams): Promise<any>;
|
174
|
+
onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
|
175
|
+
getListFieldsOnchange({ model }: {
|
176
|
+
model: string;
|
177
|
+
}): Promise<any>;
|
178
|
+
parseORMOdoo(data: Record<string, any>): Record<string, any>;
|
179
|
+
toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
|
180
|
+
};
|
181
|
+
|
182
|
+
declare const UserService: {
|
183
|
+
getProfile(): Promise<any>;
|
184
|
+
getUser({ context, id }: {
|
185
|
+
context: any;
|
186
|
+
id: any;
|
187
|
+
}): Promise<any>;
|
188
|
+
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
189
|
+
};
|
190
|
+
|
191
|
+
declare const ViewService: {
|
192
|
+
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
193
|
+
getMenu(context: Context): Promise<any>;
|
194
|
+
getActionDetail(aid: number, context: Context): Promise<any>;
|
195
|
+
getResequence({ model, ids, context, offset, }: {
|
196
|
+
model: string;
|
197
|
+
ids: any;
|
198
|
+
context: Context;
|
199
|
+
offset: any;
|
200
|
+
}): Promise<any>;
|
201
|
+
getSelectionItem({ data }: {
|
202
|
+
data: GetSelectionType;
|
203
|
+
}): Promise<any>;
|
204
|
+
loadMessages(): Promise<any>;
|
205
|
+
getVersion(): Promise<any>;
|
206
|
+
get2FAMethods({ method, with_context, }: {
|
207
|
+
method: string;
|
208
|
+
with_context: any;
|
209
|
+
}): Promise<any>;
|
210
|
+
verify2FA({ method, with_context, code, }: {
|
211
|
+
method: string;
|
212
|
+
with_context: any;
|
213
|
+
code: string;
|
214
|
+
}): Promise<any>;
|
215
|
+
signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
|
216
|
+
redirect_uri: string;
|
217
|
+
state: string;
|
218
|
+
client_id: string;
|
219
|
+
response_type: string;
|
220
|
+
path: string;
|
221
|
+
}): Promise<any>;
|
222
|
+
};
|
223
|
+
|
224
|
+
export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
|
@@ -0,0 +1,224 @@
|
|
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, f as ViewData, c as GetViewParams } from './view-type-y6vtF3wg.js';
|
2
|
+
import { G as GetSelectionType } from './use-get-selection-QZu1jKqa.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
|
+
getPrintReportName({ id }: {
|
28
|
+
id: number;
|
29
|
+
}): Promise<any>;
|
30
|
+
print({ id, report, db }: {
|
31
|
+
id: number;
|
32
|
+
report: any;
|
33
|
+
db: any;
|
34
|
+
}): Promise<any>;
|
35
|
+
runAction({ idAction, context, }: {
|
36
|
+
idAction: number;
|
37
|
+
context: ContextApi;
|
38
|
+
}): Promise<any>;
|
39
|
+
};
|
40
|
+
|
41
|
+
declare const AuthService: {
|
42
|
+
login(body: LoginCredentialBody): Promise<any>;
|
43
|
+
forgotPassword(email: string): Promise<any>;
|
44
|
+
forgotPasswordSSO({ email, with_context, method, }: {
|
45
|
+
email: string;
|
46
|
+
with_context: any;
|
47
|
+
method: string;
|
48
|
+
}): Promise<any>;
|
49
|
+
resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
|
50
|
+
resetPasswordSSO({ method, password, with_context, }: {
|
51
|
+
method: any;
|
52
|
+
password: string;
|
53
|
+
with_context: any;
|
54
|
+
}): Promise<any>;
|
55
|
+
updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
|
56
|
+
isValidToken(token: string | null): Promise<any>;
|
57
|
+
loginSocial({ db, state, access_token, }: {
|
58
|
+
db: string;
|
59
|
+
state: object;
|
60
|
+
access_token: string;
|
61
|
+
}): Promise<any>;
|
62
|
+
getProviders(db?: string): Promise<any>;
|
63
|
+
};
|
64
|
+
|
65
|
+
declare const CompanyService: {
|
66
|
+
getCurrentCompany(): Promise<any>;
|
67
|
+
getInfoCompany(id: number): Promise<any>;
|
68
|
+
};
|
69
|
+
|
70
|
+
declare const ExcelService: {
|
71
|
+
uploadFile({ formData }: {
|
72
|
+
formData: any;
|
73
|
+
}): Promise<any>;
|
74
|
+
uploadIdFile({ formData }: {
|
75
|
+
formData: any;
|
76
|
+
}): Promise<any>;
|
77
|
+
parsePreview({ id, selectedSheet, isHeader, context, }: {
|
78
|
+
id: any;
|
79
|
+
selectedSheet: any;
|
80
|
+
isHeader: boolean;
|
81
|
+
context: any;
|
82
|
+
}): Promise<any>;
|
83
|
+
executeImport({ columns, fields, idFile, options, dryrun, context, }: {
|
84
|
+
columns: any;
|
85
|
+
fields: any;
|
86
|
+
idFile: any;
|
87
|
+
options: any;
|
88
|
+
dryrun: any;
|
89
|
+
context: any;
|
90
|
+
}): Promise<any>;
|
91
|
+
getFileExcel({ model }: {
|
92
|
+
model: string;
|
93
|
+
}): Promise<any>;
|
94
|
+
getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
|
95
|
+
ids: any;
|
96
|
+
model: string;
|
97
|
+
isShow?: boolean;
|
98
|
+
parentField?: any;
|
99
|
+
fieldType?: any;
|
100
|
+
parentName?: any;
|
101
|
+
prefix?: any;
|
102
|
+
name?: any;
|
103
|
+
context: any;
|
104
|
+
importCompat?: any;
|
105
|
+
}): Promise<any>;
|
106
|
+
exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
|
107
|
+
model: string;
|
108
|
+
domain: any;
|
109
|
+
ids: any;
|
110
|
+
fields: any;
|
111
|
+
type: any;
|
112
|
+
importCompat: any;
|
113
|
+
context: any;
|
114
|
+
groupby: any;
|
115
|
+
}): Promise<any>;
|
116
|
+
};
|
117
|
+
|
118
|
+
type TFormView = {
|
119
|
+
model: string;
|
120
|
+
id?: number | null;
|
121
|
+
context?: any;
|
122
|
+
};
|
123
|
+
declare const FormService: {
|
124
|
+
getComment({ data }: {
|
125
|
+
data: any;
|
126
|
+
}): Promise<any>;
|
127
|
+
sentComment({ data }: any): Promise<any>;
|
128
|
+
deleteComment({ data }: {
|
129
|
+
data: any;
|
130
|
+
}): Promise<any>;
|
131
|
+
getImage({ data }: {
|
132
|
+
data: any;
|
133
|
+
}): Promise<any>;
|
134
|
+
uploadImage({ data }: {
|
135
|
+
data: any;
|
136
|
+
}): Promise<any>;
|
137
|
+
getFormView({ data }: {
|
138
|
+
data: TFormView;
|
139
|
+
}): Promise<any>;
|
140
|
+
changeStatus({ data }: any): Promise<any>;
|
141
|
+
};
|
142
|
+
|
143
|
+
declare const KanbanServices: {
|
144
|
+
getGroups({ model, width_context, }: {
|
145
|
+
model: string;
|
146
|
+
width_context: any;
|
147
|
+
}): Promise<any>;
|
148
|
+
getProgressBar({ field, color, model, width_context, }: {
|
149
|
+
field: any;
|
150
|
+
color: any;
|
151
|
+
model: string;
|
152
|
+
width_context: string;
|
153
|
+
}): Promise<any>;
|
154
|
+
};
|
155
|
+
|
156
|
+
declare const ModelService: {
|
157
|
+
getListMyBankAccount({ domain, spectification, model, }: {
|
158
|
+
domain: any;
|
159
|
+
spectification: any;
|
160
|
+
model: string;
|
161
|
+
}): Promise<any>;
|
162
|
+
getCurrency(): Promise<any>;
|
163
|
+
getConversionRate(): Promise<any>;
|
164
|
+
getAll({ data }: {
|
165
|
+
data: any;
|
166
|
+
}): Promise<any>;
|
167
|
+
getListCalendar({ data }: {
|
168
|
+
data: any;
|
169
|
+
}): Promise<any>;
|
170
|
+
getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
|
171
|
+
getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
|
172
|
+
save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
|
173
|
+
delete({ ids, model }: DeleteParams): Promise<any>;
|
174
|
+
onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
|
175
|
+
getListFieldsOnchange({ model }: {
|
176
|
+
model: string;
|
177
|
+
}): Promise<any>;
|
178
|
+
parseORMOdoo(data: Record<string, any>): Record<string, any>;
|
179
|
+
toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
|
180
|
+
};
|
181
|
+
|
182
|
+
declare const UserService: {
|
183
|
+
getProfile(): Promise<any>;
|
184
|
+
getUser({ context, id }: {
|
185
|
+
context: any;
|
186
|
+
id: any;
|
187
|
+
}): Promise<any>;
|
188
|
+
switchUserLocale: ({ id, values }: any) => Promise<any>;
|
189
|
+
};
|
190
|
+
|
191
|
+
declare const ViewService: {
|
192
|
+
getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
|
193
|
+
getMenu(context: Context): Promise<any>;
|
194
|
+
getActionDetail(aid: number, context: Context): Promise<any>;
|
195
|
+
getResequence({ model, ids, context, offset, }: {
|
196
|
+
model: string;
|
197
|
+
ids: any;
|
198
|
+
context: Context;
|
199
|
+
offset: any;
|
200
|
+
}): Promise<any>;
|
201
|
+
getSelectionItem({ data }: {
|
202
|
+
data: GetSelectionType;
|
203
|
+
}): Promise<any>;
|
204
|
+
loadMessages(): Promise<any>;
|
205
|
+
getVersion(): Promise<any>;
|
206
|
+
get2FAMethods({ method, with_context, }: {
|
207
|
+
method: string;
|
208
|
+
with_context: any;
|
209
|
+
}): Promise<any>;
|
210
|
+
verify2FA({ method, with_context, code, }: {
|
211
|
+
method: string;
|
212
|
+
with_context: any;
|
213
|
+
code: string;
|
214
|
+
}): Promise<any>;
|
215
|
+
signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
|
216
|
+
redirect_uri: string;
|
217
|
+
state: string;
|
218
|
+
client_id: string;
|
219
|
+
response_type: string;
|
220
|
+
path: string;
|
221
|
+
}): Promise<any>;
|
222
|
+
};
|
223
|
+
|
224
|
+
export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
|