@fctc/interface-logic 1.0.1 → 1.0.2

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/base-model-type-DvO53Lwi.d.mts +7 -0
  2. package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
  3. package/dist/config.d.mts +16 -0
  4. package/dist/config.d.ts +16 -0
  5. package/dist/config.js +2355 -0
  6. package/dist/config.mjs +2318 -0
  7. package/dist/constants.d.mts +128 -0
  8. package/dist/constants.d.ts +128 -0
  9. package/dist/constants.js +202 -0
  10. package/dist/constants.mjs +163 -0
  11. package/dist/context-type-D5XefoL-.d.mts +8 -0
  12. package/dist/context-type-D5XefoL-.d.ts +8 -0
  13. package/dist/environment.d.mts +41 -0
  14. package/dist/environment.d.ts +41 -0
  15. package/dist/environment.js +3061 -0
  16. package/dist/environment.mjs +3021 -0
  17. package/dist/hook.d.mts +292 -0
  18. package/dist/hook.d.ts +292 -0
  19. package/dist/hook.js +5683 -0
  20. package/dist/hook.mjs +5587 -0
  21. package/dist/index-C_nK1Mii.d.mts +19 -0
  22. package/dist/index-C_nK1Mii.d.ts +19 -0
  23. package/dist/index.d.mts +1 -1389
  24. package/dist/index.d.ts +1 -1389
  25. package/dist/index.js +0 -6856
  26. package/dist/index.mjs +0 -6629
  27. package/dist/model.d.mts +35 -0
  28. package/dist/model.d.ts +35 -0
  29. package/dist/model.js +3320 -0
  30. package/dist/model.mjs +3281 -0
  31. package/dist/provider.d.mts +15 -0
  32. package/dist/provider.d.ts +15 -0
  33. package/dist/provider.js +6566 -0
  34. package/dist/provider.mjs +6550 -0
  35. package/dist/services.d.mts +224 -0
  36. package/dist/services.d.ts +224 -0
  37. package/dist/services.js +4477 -0
  38. package/dist/services.mjs +4432 -0
  39. package/dist/session-storage-CxkkEmQh.d.mts +15 -0
  40. package/dist/session-storage-CxkkEmQh.d.ts +15 -0
  41. package/dist/store.d.mts +643 -0
  42. package/dist/store.d.ts +643 -0
  43. package/dist/store.js +814 -0
  44. package/dist/store.mjs +709 -0
  45. package/dist/types.d.mts +12 -0
  46. package/dist/types.d.ts +12 -0
  47. package/dist/types.js +18 -0
  48. package/dist/types.mjs +0 -0
  49. package/dist/use-get-selection-QZu1jKqa.d.mts +15 -0
  50. package/dist/use-get-selection-QZu1jKqa.d.ts +15 -0
  51. package/dist/utils.d.mts +87 -0
  52. package/dist/utils.d.ts +87 -0
  53. package/dist/utils.js +2947 -0
  54. package/dist/utils.mjs +2881 -0
  55. package/dist/view-type-y6vtF3wg.d.mts +106 -0
  56. package/dist/view-type-y6vtF3wg.d.ts +106 -0
  57. package/package.json +53 -12
@@ -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 };