@fctc/interface-logic 1.2.9 → 1.3.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 (57) hide show
  1. package/dist/index.d.mts +1709 -24
  2. package/dist/index.d.ts +1709 -24
  3. package/dist/index.js +14 -16
  4. package/dist/index.mjs +14 -16
  5. package/package.json +87 -87
  6. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  7. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  8. package/dist/config.d.mts +0 -16
  9. package/dist/config.d.ts +0 -16
  10. package/dist/config.js +0 -2386
  11. package/dist/config.mjs +0 -2349
  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/context-type-D5XefoL-.d.mts +0 -8
  17. package/dist/context-type-D5XefoL-.d.ts +0 -8
  18. package/dist/environment.d.mts +0 -42
  19. package/dist/environment.d.ts +0 -42
  20. package/dist/environment.js +0 -3094
  21. package/dist/environment.mjs +0 -3054
  22. package/dist/hook.d.mts +0 -340
  23. package/dist/hook.d.ts +0 -340
  24. package/dist/hook.js +0 -6019
  25. package/dist/hook.mjs +0 -5915
  26. package/dist/index-C_nK1Mii.d.mts +0 -19
  27. package/dist/index-C_nK1Mii.d.ts +0 -19
  28. package/dist/model.d.mts +0 -35
  29. package/dist/model.d.ts +0 -35
  30. package/dist/model.js +0 -3356
  31. package/dist/model.mjs +0 -3317
  32. package/dist/provider.d.mts +0 -16
  33. package/dist/provider.d.ts +0 -16
  34. package/dist/provider.js +0 -3603
  35. package/dist/provider.mjs +0 -3564
  36. package/dist/services.d.mts +0 -258
  37. package/dist/services.d.ts +0 -258
  38. package/dist/services.js +0 -4662
  39. package/dist/services.mjs +0 -4617
  40. package/dist/session-storage-CxkkEmQh.d.mts +0 -15
  41. package/dist/session-storage-CxkkEmQh.d.ts +0 -15
  42. package/dist/store.d.mts +0 -643
  43. package/dist/store.d.ts +0 -643
  44. package/dist/store.js +0 -814
  45. package/dist/store.mjs +0 -709
  46. package/dist/types.d.mts +0 -12
  47. package/dist/types.d.ts +0 -12
  48. package/dist/types.js +0 -18
  49. package/dist/types.mjs +0 -0
  50. package/dist/use-get-selection-QZu1jKqa.d.mts +0 -15
  51. package/dist/use-get-selection-QZu1jKqa.d.ts +0 -15
  52. package/dist/utils.d.mts +0 -96
  53. package/dist/utils.d.ts +0 -96
  54. package/dist/utils.js +0 -3003
  55. package/dist/utils.mjs +0 -2935
  56. package/dist/view-type-DodWYWDH.d.mts +0 -107
  57. package/dist/view-type-DodWYWDH.d.ts +0 -107
@@ -1,258 +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, f as ViewData, c as GetViewParams } from './view-type-DodWYWDH.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
- getAccessByCode(code: string): Promise<any>;
64
- logout(data: string): Promise<any>;
65
- };
66
-
67
- declare const CompanyService: {
68
- getCurrentCompany(): Promise<any>;
69
- getInfoCompany(id: number): Promise<any>;
70
- };
71
-
72
- declare const ExcelService: {
73
- uploadFile({ formData }: {
74
- formData: any;
75
- }): Promise<any>;
76
- uploadIdFile({ formData }: {
77
- formData: any;
78
- }): Promise<any>;
79
- parsePreview({ id, selectedSheet, isHeader, context, }: {
80
- id: any;
81
- selectedSheet: any;
82
- isHeader: boolean;
83
- context: any;
84
- }): Promise<any>;
85
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
86
- columns: any;
87
- fields: any;
88
- idFile: any;
89
- options: any;
90
- dryrun: any;
91
- context: any;
92
- }): Promise<any>;
93
- getFileExcel({ model }: {
94
- model: string;
95
- }): Promise<any>;
96
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
97
- ids: any;
98
- model: string;
99
- isShow?: boolean;
100
- parentField?: any;
101
- fieldType?: any;
102
- parentName?: any;
103
- prefix?: any;
104
- name?: any;
105
- context: any;
106
- importCompat?: any;
107
- }): Promise<any>;
108
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
109
- model: string;
110
- domain: any;
111
- ids: any;
112
- fields: any;
113
- type: any;
114
- importCompat: any;
115
- context: any;
116
- groupby: any;
117
- }): Promise<any>;
118
- };
119
-
120
- type TFormView = {
121
- model: string;
122
- id?: number | null;
123
- context?: any;
124
- };
125
- declare const FormService: {
126
- getComment({ data }: {
127
- data: any;
128
- }): Promise<any>;
129
- sentComment({ data }: any): Promise<any>;
130
- deleteComment({ data }: {
131
- data: any;
132
- }): Promise<any>;
133
- getImage({ data }: {
134
- data: any;
135
- }): Promise<any>;
136
- uploadImage({ data }: {
137
- data: any;
138
- }): Promise<any>;
139
- getFormView({ data }: {
140
- data: TFormView;
141
- }): Promise<any>;
142
- changeStatus({ data }: any): Promise<any>;
143
- };
144
-
145
- declare const KanbanServices: {
146
- getGroups({ model, width_context, }: {
147
- model: string;
148
- width_context: any;
149
- }): Promise<any>;
150
- getProgressBar({ field, color, model, width_context, }: {
151
- field: any;
152
- color: any;
153
- model: string;
154
- width_context: string;
155
- }): Promise<any>;
156
- };
157
-
158
- declare const ModelService: {
159
- getListMyBankAccount({ domain, spectification, model, }: {
160
- domain: any;
161
- spectification: any;
162
- model: string;
163
- }): Promise<any>;
164
- getCurrency(): Promise<any>;
165
- getConversionRate(): Promise<any>;
166
- getAll({ data }: {
167
- data: any;
168
- }): Promise<any>;
169
- getListCalendar({ data }: {
170
- data: any;
171
- }): Promise<any>;
172
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
173
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
174
- save({ model, ids, data, specification, context, path, }: SaveParams): Promise<any>;
175
- delete({ ids, model }: DeleteParams): Promise<any>;
176
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
177
- getListFieldsOnchange({ model }: {
178
- model: string;
179
- }): Promise<any>;
180
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
181
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
182
- };
183
-
184
- declare const UserService: {
185
- getProfile(path?: string): Promise<any>;
186
- getUser({ context, id }: {
187
- context: any;
188
- id: any;
189
- }): Promise<any>;
190
- switchUserLocale: ({ id, values }: any) => Promise<any>;
191
- };
192
-
193
- declare const ViewService: {
194
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
195
- getMenu(context: Context): Promise<any>;
196
- getActionDetail(aid: number, context: Context): Promise<any>;
197
- getResequence({ model, ids, context, offset, }: {
198
- model: string;
199
- ids: any;
200
- context: Context;
201
- offset: any;
202
- }): Promise<any>;
203
- getSelectionItem({ data }: {
204
- data: GetSelectionType;
205
- }): Promise<any>;
206
- loadMessages(): Promise<any>;
207
- getVersion(): Promise<any>;
208
- get2FAMethods({ method, with_context, }: {
209
- method: string;
210
- with_context: any;
211
- }): Promise<any>;
212
- verify2FA({ method, with_context, code, device, location, }: {
213
- method: string;
214
- with_context: any;
215
- code: string;
216
- device: string;
217
- location: string;
218
- }): Promise<any>;
219
- signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
220
- redirect_uri: string;
221
- state: string;
222
- client_id: string;
223
- response_type: string;
224
- path: string;
225
- }): Promise<any>;
226
- grantAccess({ redirect_uri, state, client_id, scopes, }: {
227
- redirect_uri: string;
228
- state: string;
229
- client_id: string;
230
- scopes: string[];
231
- }): Promise<any>;
232
- getFieldsViewSecurity({ method, token, views, }: {
233
- method: string;
234
- token: string;
235
- views: any;
236
- }): Promise<any>;
237
- settingsWebRead2fa({ method, model, kwargs, token, }: {
238
- method: string;
239
- token: string;
240
- kwargs: any;
241
- model: string;
242
- }): Promise<any>;
243
- requestSetupTotp({ method, token }: {
244
- method: string;
245
- token: string;
246
- }): Promise<any>;
247
- verifyTotp({ method, action_token, code, }: {
248
- method: string;
249
- action_token: string;
250
- code: string;
251
- }): Promise<any>;
252
- removeTotpSetUp({ method, token }: {
253
- method: string;
254
- token: string;
255
- }): Promise<any>;
256
- };
257
-
258
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };
@@ -1,258 +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, f as ViewData, c as GetViewParams } from './view-type-DodWYWDH.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
- getAccessByCode(code: string): Promise<any>;
64
- logout(data: string): Promise<any>;
65
- };
66
-
67
- declare const CompanyService: {
68
- getCurrentCompany(): Promise<any>;
69
- getInfoCompany(id: number): Promise<any>;
70
- };
71
-
72
- declare const ExcelService: {
73
- uploadFile({ formData }: {
74
- formData: any;
75
- }): Promise<any>;
76
- uploadIdFile({ formData }: {
77
- formData: any;
78
- }): Promise<any>;
79
- parsePreview({ id, selectedSheet, isHeader, context, }: {
80
- id: any;
81
- selectedSheet: any;
82
- isHeader: boolean;
83
- context: any;
84
- }): Promise<any>;
85
- executeImport({ columns, fields, idFile, options, dryrun, context, }: {
86
- columns: any;
87
- fields: any;
88
- idFile: any;
89
- options: any;
90
- dryrun: any;
91
- context: any;
92
- }): Promise<any>;
93
- getFileExcel({ model }: {
94
- model: string;
95
- }): Promise<any>;
96
- getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
97
- ids: any;
98
- model: string;
99
- isShow?: boolean;
100
- parentField?: any;
101
- fieldType?: any;
102
- parentName?: any;
103
- prefix?: any;
104
- name?: any;
105
- context: any;
106
- importCompat?: any;
107
- }): Promise<any>;
108
- exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
109
- model: string;
110
- domain: any;
111
- ids: any;
112
- fields: any;
113
- type: any;
114
- importCompat: any;
115
- context: any;
116
- groupby: any;
117
- }): Promise<any>;
118
- };
119
-
120
- type TFormView = {
121
- model: string;
122
- id?: number | null;
123
- context?: any;
124
- };
125
- declare const FormService: {
126
- getComment({ data }: {
127
- data: any;
128
- }): Promise<any>;
129
- sentComment({ data }: any): Promise<any>;
130
- deleteComment({ data }: {
131
- data: any;
132
- }): Promise<any>;
133
- getImage({ data }: {
134
- data: any;
135
- }): Promise<any>;
136
- uploadImage({ data }: {
137
- data: any;
138
- }): Promise<any>;
139
- getFormView({ data }: {
140
- data: TFormView;
141
- }): Promise<any>;
142
- changeStatus({ data }: any): Promise<any>;
143
- };
144
-
145
- declare const KanbanServices: {
146
- getGroups({ model, width_context, }: {
147
- model: string;
148
- width_context: any;
149
- }): Promise<any>;
150
- getProgressBar({ field, color, model, width_context, }: {
151
- field: any;
152
- color: any;
153
- model: string;
154
- width_context: string;
155
- }): Promise<any>;
156
- };
157
-
158
- declare const ModelService: {
159
- getListMyBankAccount({ domain, spectification, model, }: {
160
- domain: any;
161
- spectification: any;
162
- model: string;
163
- }): Promise<any>;
164
- getCurrency(): Promise<any>;
165
- getConversionRate(): Promise<any>;
166
- getAll({ data }: {
167
- data: any;
168
- }): Promise<any>;
169
- getListCalendar({ data }: {
170
- data: any;
171
- }): Promise<any>;
172
- getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
173
- getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
174
- save({ model, ids, data, specification, context, path, }: SaveParams): Promise<any>;
175
- delete({ ids, model }: DeleteParams): Promise<any>;
176
- onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
177
- getListFieldsOnchange({ model }: {
178
- model: string;
179
- }): Promise<any>;
180
- parseORMOdoo(data: Record<string, any>): Record<string, any>;
181
- toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
182
- };
183
-
184
- declare const UserService: {
185
- getProfile(path?: string): Promise<any>;
186
- getUser({ context, id }: {
187
- context: any;
188
- id: any;
189
- }): Promise<any>;
190
- switchUserLocale: ({ id, values }: any) => Promise<any>;
191
- };
192
-
193
- declare const ViewService: {
194
- getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
195
- getMenu(context: Context): Promise<any>;
196
- getActionDetail(aid: number, context: Context): Promise<any>;
197
- getResequence({ model, ids, context, offset, }: {
198
- model: string;
199
- ids: any;
200
- context: Context;
201
- offset: any;
202
- }): Promise<any>;
203
- getSelectionItem({ data }: {
204
- data: GetSelectionType;
205
- }): Promise<any>;
206
- loadMessages(): Promise<any>;
207
- getVersion(): Promise<any>;
208
- get2FAMethods({ method, with_context, }: {
209
- method: string;
210
- with_context: any;
211
- }): Promise<any>;
212
- verify2FA({ method, with_context, code, device, location, }: {
213
- method: string;
214
- with_context: any;
215
- code: string;
216
- device: string;
217
- location: string;
218
- }): Promise<any>;
219
- signInSSO({ redirect_uri, state, client_id, response_type, path, }: {
220
- redirect_uri: string;
221
- state: string;
222
- client_id: string;
223
- response_type: string;
224
- path: string;
225
- }): Promise<any>;
226
- grantAccess({ redirect_uri, state, client_id, scopes, }: {
227
- redirect_uri: string;
228
- state: string;
229
- client_id: string;
230
- scopes: string[];
231
- }): Promise<any>;
232
- getFieldsViewSecurity({ method, token, views, }: {
233
- method: string;
234
- token: string;
235
- views: any;
236
- }): Promise<any>;
237
- settingsWebRead2fa({ method, model, kwargs, token, }: {
238
- method: string;
239
- token: string;
240
- kwargs: any;
241
- model: string;
242
- }): Promise<any>;
243
- requestSetupTotp({ method, token }: {
244
- method: string;
245
- token: string;
246
- }): Promise<any>;
247
- verifyTotp({ method, action_token, code, }: {
248
- method: string;
249
- action_token: string;
250
- code: string;
251
- }): Promise<any>;
252
- removeTotpSetUp({ method, token }: {
253
- method: string;
254
- token: string;
255
- }): Promise<any>;
256
- };
257
-
258
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, KanbanServices as KanbanService, ModelService, UserService, ViewService };