@fctc/interface-logic 1.7.10 → 1.8.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.
Files changed (43) hide show
  1. package/dist/index.d.mts +1681 -0
  2. package/dist/index.d.ts +1681 -0
  3. package/dist/{hooks.js → index.js} +1208 -10
  4. package/dist/index.js.map +1 -0
  5. package/dist/{hooks.mjs → index.mjs} +1064 -5
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +1 -1
  8. package/dist/configs.d.mts +0 -15
  9. package/dist/configs.d.ts +0 -15
  10. package/dist/configs.js +0 -2383
  11. package/dist/configs.mjs +0 -2346
  12. package/dist/constants.d.mts +0 -131
  13. package/dist/constants.d.ts +0 -131
  14. package/dist/constants.js +0 -205
  15. package/dist/constants.mjs +0 -166
  16. package/dist/environment.d.mts +0 -55
  17. package/dist/environment.d.ts +0 -55
  18. package/dist/environment.js +0 -3091
  19. package/dist/environment.mjs +0 -3051
  20. package/dist/hooks.d.mts +0 -364
  21. package/dist/hooks.d.ts +0 -364
  22. package/dist/provider.d.mts +0 -15
  23. package/dist/provider.d.ts +0 -15
  24. package/dist/provider.js +0 -3600
  25. package/dist/provider.mjs +0 -3561
  26. package/dist/services.d.mts +0 -256
  27. package/dist/services.d.ts +0 -256
  28. package/dist/services.js +0 -4673
  29. package/dist/services.mjs +0 -4628
  30. package/dist/store.d.mts +0 -643
  31. package/dist/store.d.ts +0 -643
  32. package/dist/store.js +0 -814
  33. package/dist/store.mjs +0 -709
  34. package/dist/types.d.mts +0 -17
  35. package/dist/types.d.ts +0 -17
  36. package/dist/types.js +0 -18
  37. package/dist/types.mjs +0 -0
  38. package/dist/utils.d.mts +0 -93
  39. package/dist/utils.d.ts +0 -93
  40. package/dist/utils.js +0 -2962
  41. package/dist/utils.mjs +0 -2896
  42. package/dist/view-type-BGJfDe73.d.mts +0 -113
  43. package/dist/view-type-BGJfDe73.d.ts +0 -113
@@ -1,256 +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
- isValidActionToken(actionToken: string | null, path: string): Promise<any>;
55
- loginSocial({ db, state, access_token, }: {
56
- db: string;
57
- state: object;
58
- access_token: string;
59
- }): Promise<any>;
60
- getProviders(db?: string): Promise<any>;
61
- getAccessByCode(code: string): Promise<any>;
62
- logout(data: 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, path, }: 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(path?: string): 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: any): Promise<any>;
194
- getActionDetail(aid: number, context: any): Promise<any>;
195
- getResequence({ model, ids, context, offset, }: {
196
- model: string;
197
- ids: any;
198
- context: any;
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, device, location, }: {
211
- method: string;
212
- with_context: any;
213
- code: string;
214
- device: string;
215
- location: string;
216
- }): Promise<any>;
217
- signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
218
- redirect_uri: string;
219
- state: string;
220
- client_id: string;
221
- response_type: string;
222
- path: string;
223
- }): Promise<any>;
224
- grantAccess({ redirect_uri, state, client_id, scopes, }: {
225
- redirect_uri: string;
226
- state: string;
227
- client_id: string;
228
- scopes: string[];
229
- }): Promise<any>;
230
- getFieldsViewSecurity({ method, token, views, }: {
231
- method: string;
232
- token: string;
233
- views: any;
234
- }): Promise<any>;
235
- settingsWebRead2fa({ method, model, kwargs, token, }: {
236
- method: string;
237
- token: string;
238
- kwargs: any;
239
- model: string;
240
- }): Promise<any>;
241
- requestSetupTotp({ method, token }: {
242
- method: string;
243
- token: string;
244
- }): Promise<any>;
245
- verifyTotp({ method, action_token, code, }: {
246
- method: string;
247
- action_token: string;
248
- code: string;
249
- }): Promise<any>;
250
- removeTotpSetUp({ method, token }: {
251
- method: string;
252
- token: string;
253
- }): Promise<any>;
254
- };
255
-
256
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
@@ -1,256 +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
- isValidActionToken(actionToken: string | null, path: string): Promise<any>;
55
- loginSocial({ db, state, access_token, }: {
56
- db: string;
57
- state: object;
58
- access_token: string;
59
- }): Promise<any>;
60
- getProviders(db?: string): Promise<any>;
61
- getAccessByCode(code: string): Promise<any>;
62
- logout(data: 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, path, }: 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(path?: string): 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: any): Promise<any>;
194
- getActionDetail(aid: number, context: any): Promise<any>;
195
- getResequence({ model, ids, context, offset, }: {
196
- model: string;
197
- ids: any;
198
- context: any;
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, device, location, }: {
211
- method: string;
212
- with_context: any;
213
- code: string;
214
- device: string;
215
- location: string;
216
- }): Promise<any>;
217
- signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
218
- redirect_uri: string;
219
- state: string;
220
- client_id: string;
221
- response_type: string;
222
- path: string;
223
- }): Promise<any>;
224
- grantAccess({ redirect_uri, state, client_id, scopes, }: {
225
- redirect_uri: string;
226
- state: string;
227
- client_id: string;
228
- scopes: string[];
229
- }): Promise<any>;
230
- getFieldsViewSecurity({ method, token, views, }: {
231
- method: string;
232
- token: string;
233
- views: any;
234
- }): Promise<any>;
235
- settingsWebRead2fa({ method, model, kwargs, token, }: {
236
- method: string;
237
- token: string;
238
- kwargs: any;
239
- model: string;
240
- }): Promise<any>;
241
- requestSetupTotp({ method, token }: {
242
- method: string;
243
- token: string;
244
- }): Promise<any>;
245
- verifyTotp({ method, action_token, code, }: {
246
- method: string;
247
- action_token: string;
248
- code: string;
249
- }): Promise<any>;
250
- removeTotpSetUp({ method, token }: {
251
- method: string;
252
- token: string;
253
- }): Promise<any>;
254
- };
255
-
256
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };