@fctc/interface-logic 1.4.2 → 1.4.4

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.
@@ -1,255 +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, f as GetViewParams, c as GetSelectionType } from './view-type-BGJfDe73.mjs';
2
-
3
- declare const ActionService: {
4
- loadAction({ idAction, context, }: {
5
- idAction: number;
6
- context: ContextApi;
7
- }): Promise<any>;
8
- callButton({ model, ids, context, method, }: {
9
- model: string;
10
- ids: Record<string, any>[] | any;
11
- context: ContextApi;
12
- method: any;
13
- }): Promise<any>;
14
- removeRows({ model, ids, context, }: {
15
- model: string;
16
- ids: Record<string, any>[] | any;
17
- context: ContextApi;
18
- }): Promise<any>;
19
- duplicateRecord({ model, id, context, }: {
20
- model: string;
21
- id: any;
22
- context: ContextApi;
23
- }): Promise<any>;
24
- getPrintReportName({ id }: {
25
- id: number;
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
- forgotPasswordSSO({ email, with_context, method, }: {
42
- email: string;
43
- with_context: any;
44
- method: string;
45
- }): Promise<any>;
46
- resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
47
- resetPasswordSSO({ method, password, with_context, }: {
48
- method: any;
49
- password: string;
50
- with_context: any;
51
- }): Promise<any>;
52
- updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
53
- isValidToken(token: string | null): Promise<any>;
54
- loginSocial({ db, state, access_token, }: {
55
- db: string;
56
- state: object;
57
- access_token: string;
58
- }): Promise<any>;
59
- getProviders(db?: string): Promise<any>;
60
- getAccessByCode(code: string): Promise<any>;
61
- logout(data: string): Promise<any>;
62
- };
63
-
64
- declare const CompanyService: {
65
- getCurrentCompany(): Promise<any>;
66
- getInfoCompany(id: number): Promise<any>;
67
- };
68
-
69
- declare const ExcelService: {
70
- uploadFile({ formData }: {
71
- formData: any;
72
- }): Promise<any>;
73
- uploadIdFile({ formData }: {
74
- formData: any;
75
- }): Promise<any>;
76
- parsePreview({ id, selectedSheet, isHeader, context, }: {
77
- id: any;
78
- selectedSheet: any;
79
- isHeader: boolean;
80
- context: any;
81
- }): Promise<any>;
82
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
83
- columns: any;
84
- fields: any;
85
- idFile: any;
86
- options: any;
87
- dryrun: any;
88
- context: any;
89
- }): Promise<any>;
90
- getFileExcel({ model }: {
91
- model: string;
92
- }): Promise<any>;
93
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
94
- ids: any;
95
- model: string;
96
- isShow?: boolean;
97
- parentField?: any;
98
- fieldType?: any;
99
- parentName?: any;
100
- prefix?: any;
101
- name?: any;
102
- context: any;
103
- importCompat?: any;
104
- }): Promise<any>;
105
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
106
- model: string;
107
- domain: any;
108
- ids: any;
109
- fields: any;
110
- type: any;
111
- importCompat: any;
112
- context: any;
113
- groupby: any;
114
- }): Promise<any>;
115
- };
116
-
117
- type TFormView = {
118
- model: string;
119
- id?: number | null;
120
- context?: any;
121
- };
122
- declare const FormService: {
123
- getComment({ data }: {
124
- data: any;
125
- }): Promise<any>;
126
- sentComment({ data }: any): Promise<any>;
127
- deleteComment({ data }: {
128
- data: any;
129
- }): Promise<any>;
130
- getImage({ data }: {
131
- data: any;
132
- }): Promise<any>;
133
- uploadImage({ data }: {
134
- data: any;
135
- }): Promise<any>;
136
- getFormView({ data }: {
137
- data: TFormView;
138
- }): Promise<any>;
139
- changeStatus({ data }: any): Promise<any>;
140
- };
141
-
142
- declare const KanbanServices: {
143
- getGroups({ model, width_context, }: {
144
- model: string;
145
- width_context: any;
146
- }): Promise<any>;
147
- getProgressBar({ field, color, model, width_context, }: {
148
- field: any;
149
- color: any;
150
- model: string;
151
- width_context: string;
152
- }): Promise<any>;
153
- };
154
-
155
- declare const ModelService: {
156
- getListMyBankAccount({ domain, spectification, model, }: {
157
- domain: any;
158
- spectification: any;
159
- model: string;
160
- }): Promise<any>;
161
- getCurrency(): Promise<any>;
162
- getConversionRate(): Promise<any>;
163
- getAll({ data }: {
164
- data: any;
165
- }): Promise<any>;
166
- getListCalendar({ data }: {
167
- data: any;
168
- }): Promise<any>;
169
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
170
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
171
- save({ model, ids, data, specification, context, path, }: SaveParams): Promise<any>;
172
- delete({ ids, model }: DeleteParams): Promise<any>;
173
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
174
- getListFieldsOnchange({ model }: {
175
- model: string;
176
- }): Promise<any>;
177
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
178
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
179
- };
180
-
181
- declare const UserService: {
182
- getProfile(path?: string): Promise<any>;
183
- getUser({ context, id }: {
184
- context: any;
185
- id: any;
186
- }): Promise<any>;
187
- switchUserLocale: ({ id, values }: any) => Promise<any>;
188
- };
189
-
190
- declare const ViewService: {
191
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
192
- getMenu(context: any): Promise<any>;
193
- getActionDetail(aid: number, context: any): Promise<any>;
194
- getResequence({ model, ids, context, offset, }: {
195
- model: string;
196
- ids: any;
197
- context: any;
198
- offset: any;
199
- }): Promise<any>;
200
- getSelectionItem({ data }: {
201
- data: GetSelectionType;
202
- }): Promise<any>;
203
- loadMessages(): Promise<any>;
204
- getVersion(): Promise<any>;
205
- get2FAMethods({ method, with_context, }: {
206
- method: string;
207
- with_context: any;
208
- }): Promise<any>;
209
- verify2FA({ method, with_context, code, device, location, }: {
210
- method: string;
211
- with_context: any;
212
- code: string;
213
- device: string;
214
- location: string;
215
- }): Promise<any>;
216
- signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
217
- redirect_uri: string;
218
- state: string;
219
- client_id: string;
220
- response_type: string;
221
- path: string;
222
- }): Promise<any>;
223
- grantAccess({ redirect_uri, state, client_id, scopes, }: {
224
- redirect_uri: string;
225
- state: string;
226
- client_id: string;
227
- scopes: string[];
228
- }): Promise<any>;
229
- getFieldsViewSecurity({ method, token, views, }: {
230
- method: string;
231
- token: string;
232
- views: any;
233
- }): Promise<any>;
234
- settingsWebRead2fa({ method, model, kwargs, token, }: {
235
- method: string;
236
- token: string;
237
- kwargs: any;
238
- model: string;
239
- }): Promise<any>;
240
- requestSetupTotp({ method, token }: {
241
- method: string;
242
- token: string;
243
- }): Promise<any>;
244
- verifyTotp({ method, action_token, code, }: {
245
- method: string;
246
- action_token: string;
247
- code: string;
248
- }): Promise<any>;
249
- removeTotpSetUp({ method, token }: {
250
- method: string;
251
- token: string;
252
- }): Promise<any>;
253
- };
254
-
255
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
@@ -1,255 +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, f as GetViewParams, c as GetSelectionType } from './view-type-BGJfDe73.js';
2
-
3
- declare const ActionService: {
4
- loadAction({ idAction, context, }: {
5
- idAction: number;
6
- context: ContextApi;
7
- }): Promise<any>;
8
- callButton({ model, ids, context, method, }: {
9
- model: string;
10
- ids: Record<string, any>[] | any;
11
- context: ContextApi;
12
- method: any;
13
- }): Promise<any>;
14
- removeRows({ model, ids, context, }: {
15
- model: string;
16
- ids: Record<string, any>[] | any;
17
- context: ContextApi;
18
- }): Promise<any>;
19
- duplicateRecord({ model, id, context, }: {
20
- model: string;
21
- id: any;
22
- context: ContextApi;
23
- }): Promise<any>;
24
- getPrintReportName({ id }: {
25
- id: number;
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
- forgotPasswordSSO({ email, with_context, method, }: {
42
- email: string;
43
- with_context: any;
44
- method: string;
45
- }): Promise<any>;
46
- resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
47
- resetPasswordSSO({ method, password, with_context, }: {
48
- method: any;
49
- password: string;
50
- with_context: any;
51
- }): Promise<any>;
52
- updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
53
- isValidToken(token: string | null): Promise<any>;
54
- loginSocial({ db, state, access_token, }: {
55
- db: string;
56
- state: object;
57
- access_token: string;
58
- }): Promise<any>;
59
- getProviders(db?: string): Promise<any>;
60
- getAccessByCode(code: string): Promise<any>;
61
- logout(data: string): Promise<any>;
62
- };
63
-
64
- declare const CompanyService: {
65
- getCurrentCompany(): Promise<any>;
66
- getInfoCompany(id: number): Promise<any>;
67
- };
68
-
69
- declare const ExcelService: {
70
- uploadFile({ formData }: {
71
- formData: any;
72
- }): Promise<any>;
73
- uploadIdFile({ formData }: {
74
- formData: any;
75
- }): Promise<any>;
76
- parsePreview({ id, selectedSheet, isHeader, context, }: {
77
- id: any;
78
- selectedSheet: any;
79
- isHeader: boolean;
80
- context: any;
81
- }): Promise<any>;
82
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
83
- columns: any;
84
- fields: any;
85
- idFile: any;
86
- options: any;
87
- dryrun: any;
88
- context: any;
89
- }): Promise<any>;
90
- getFileExcel({ model }: {
91
- model: string;
92
- }): Promise<any>;
93
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
94
- ids: any;
95
- model: string;
96
- isShow?: boolean;
97
- parentField?: any;
98
- fieldType?: any;
99
- parentName?: any;
100
- prefix?: any;
101
- name?: any;
102
- context: any;
103
- importCompat?: any;
104
- }): Promise<any>;
105
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
106
- model: string;
107
- domain: any;
108
- ids: any;
109
- fields: any;
110
- type: any;
111
- importCompat: any;
112
- context: any;
113
- groupby: any;
114
- }): Promise<any>;
115
- };
116
-
117
- type TFormView = {
118
- model: string;
119
- id?: number | null;
120
- context?: any;
121
- };
122
- declare const FormService: {
123
- getComment({ data }: {
124
- data: any;
125
- }): Promise<any>;
126
- sentComment({ data }: any): Promise<any>;
127
- deleteComment({ data }: {
128
- data: any;
129
- }): Promise<any>;
130
- getImage({ data }: {
131
- data: any;
132
- }): Promise<any>;
133
- uploadImage({ data }: {
134
- data: any;
135
- }): Promise<any>;
136
- getFormView({ data }: {
137
- data: TFormView;
138
- }): Promise<any>;
139
- changeStatus({ data }: any): Promise<any>;
140
- };
141
-
142
- declare const KanbanServices: {
143
- getGroups({ model, width_context, }: {
144
- model: string;
145
- width_context: any;
146
- }): Promise<any>;
147
- getProgressBar({ field, color, model, width_context, }: {
148
- field: any;
149
- color: any;
150
- model: string;
151
- width_context: string;
152
- }): Promise<any>;
153
- };
154
-
155
- declare const ModelService: {
156
- getListMyBankAccount({ domain, spectification, model, }: {
157
- domain: any;
158
- spectification: any;
159
- model: string;
160
- }): Promise<any>;
161
- getCurrency(): Promise<any>;
162
- getConversionRate(): Promise<any>;
163
- getAll({ data }: {
164
- data: any;
165
- }): Promise<any>;
166
- getListCalendar({ data }: {
167
- data: any;
168
- }): Promise<any>;
169
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
170
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
171
- save({ model, ids, data, specification, context, path, }: SaveParams): Promise<any>;
172
- delete({ ids, model }: DeleteParams): Promise<any>;
173
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
174
- getListFieldsOnchange({ model }: {
175
- model: string;
176
- }): Promise<any>;
177
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
178
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
179
- };
180
-
181
- declare const UserService: {
182
- getProfile(path?: string): Promise<any>;
183
- getUser({ context, id }: {
184
- context: any;
185
- id: any;
186
- }): Promise<any>;
187
- switchUserLocale: ({ id, values }: any) => Promise<any>;
188
- };
189
-
190
- declare const ViewService: {
191
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
192
- getMenu(context: any): Promise<any>;
193
- getActionDetail(aid: number, context: any): Promise<any>;
194
- getResequence({ model, ids, context, offset, }: {
195
- model: string;
196
- ids: any;
197
- context: any;
198
- offset: any;
199
- }): Promise<any>;
200
- getSelectionItem({ data }: {
201
- data: GetSelectionType;
202
- }): Promise<any>;
203
- loadMessages(): Promise<any>;
204
- getVersion(): Promise<any>;
205
- get2FAMethods({ method, with_context, }: {
206
- method: string;
207
- with_context: any;
208
- }): Promise<any>;
209
- verify2FA({ method, with_context, code, device, location, }: {
210
- method: string;
211
- with_context: any;
212
- code: string;
213
- device: string;
214
- location: string;
215
- }): Promise<any>;
216
- signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
217
- redirect_uri: string;
218
- state: string;
219
- client_id: string;
220
- response_type: string;
221
- path: string;
222
- }): Promise<any>;
223
- grantAccess({ redirect_uri, state, client_id, scopes, }: {
224
- redirect_uri: string;
225
- state: string;
226
- client_id: string;
227
- scopes: string[];
228
- }): Promise<any>;
229
- getFieldsViewSecurity({ method, token, views, }: {
230
- method: string;
231
- token: string;
232
- views: any;
233
- }): Promise<any>;
234
- settingsWebRead2fa({ method, model, kwargs, token, }: {
235
- method: string;
236
- token: string;
237
- kwargs: any;
238
- model: string;
239
- }): Promise<any>;
240
- requestSetupTotp({ method, token }: {
241
- method: string;
242
- token: string;
243
- }): Promise<any>;
244
- verifyTotp({ method, action_token, code, }: {
245
- method: string;
246
- action_token: string;
247
- code: string;
248
- }): Promise<any>;
249
- removeTotpSetUp({ method, token }: {
250
- method: string;
251
- token: string;
252
- }): Promise<any>;
253
- };
254
-
255
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };