@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
package/dist/hook.d.mts DELETED
@@ -1,340 +0,0 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, f as ViewData, C as ContextApi, c as GetViewParams } from './view-type-DodWYWDH.mjs';
3
- import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.mjs';
4
- import './environment.mjs';
5
- export { u as useGetSelection } from './use-get-selection-QZu1jKqa.mjs';
6
- import { C as Context } from './context-type-D5XefoL-.mjs';
7
- import '@reduxjs/toolkit';
8
- import './session-storage-CxkkEmQh.mjs';
9
-
10
- declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
11
-
12
- declare const useForgotPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
13
- email: string;
14
- with_context: any;
15
- method: string;
16
- }, unknown>;
17
-
18
- type ProviderPropsType = {
19
- db: string;
20
- };
21
- declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
22
-
23
- declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
24
-
25
- declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
26
-
27
- declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
28
-
29
- declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
30
-
31
- declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
32
- method: any;
33
- password: string;
34
- with_context: any;
35
- }, unknown>;
36
-
37
- declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
38
-
39
- declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
40
-
41
- declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
42
- code: string;
43
- }, unknown>;
44
-
45
- declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
46
-
47
- declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
48
-
49
- declare const useGetListCompany: (companyIDs?: number[]) => _tanstack_react_query.UseQueryResult<any, Error>;
50
-
51
- declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
52
- model: string;
53
- domain: any;
54
- ids: any;
55
- fields: any;
56
- type: any;
57
- importCompat: any;
58
- context: any;
59
- groupby: any;
60
- }, unknown>;
61
-
62
- declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
63
- ids: any;
64
- model: string;
65
- isShow?: boolean;
66
- parentField?: any;
67
- fieldType?: any;
68
- parentName?: any;
69
- prefix?: any;
70
- name?: any;
71
- context: any;
72
- importCompat?: any;
73
- }, unknown>;
74
-
75
- declare const useGetFileExcel: ({ model }: {
76
- model: string;
77
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
78
-
79
- declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
80
- id: any;
81
- selectedSheet: any;
82
- isHeader: boolean;
83
- context: any;
84
- }, unknown>;
85
-
86
- declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
87
- formData: any;
88
- }, unknown>;
89
-
90
- declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
91
- formData: any;
92
- }, unknown>;
93
-
94
- declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
95
- fields: any;
96
- columns: any;
97
- idFile: any;
98
- options: any;
99
- dryrun: any;
100
- context: any;
101
- }, unknown>;
102
-
103
- declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
104
- data: any;
105
- }, unknown>;
106
-
107
- declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
108
- data: any;
109
- }, unknown>;
110
-
111
- declare const useGetComment: ({ data, queryKey }: {
112
- data: any;
113
- queryKey: any;
114
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
115
-
116
- type TFormView = {
117
- model: string;
118
- id?: number | null;
119
- context?: any;
120
- };
121
- declare const useGetFormView: ({ data, queryKey, enabled, }: {
122
- data: TFormView;
123
- queryKey?: any;
124
- enabled?: any;
125
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
126
-
127
- declare const useGetImage: ({ data, queryKey, src, }: {
128
- data: any;
129
- queryKey: any;
130
- src: any;
131
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
132
-
133
- declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
134
- data: any;
135
- }, unknown>;
136
-
137
- declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
138
- data: any;
139
- }, unknown>;
140
-
141
- declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
142
- ids: any;
143
- model: string;
144
- }, unknown>;
145
-
146
- declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
147
-
148
- declare const useGetConversionRate: () => _tanstack_react_query.UseQueryResult<any, Error>;
149
-
150
- declare const useGetCurrency: () => _tanstack_react_query.UseQueryResult<any, Error>;
151
-
152
- declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
153
- model?: string;
154
- ids: any;
155
- specification?: any;
156
- context?: any;
157
- }, unknown>;
158
-
159
- declare const useGetFieldOnChange: ({ model }: {
160
- model: string;
161
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
162
-
163
- declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
164
- domain: any;
165
- spectification: any;
166
- model: string;
167
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
168
-
169
- declare const useModel: () => {
170
- initModel: (modelData: BaseModelInit) => BaseModel;
171
- };
172
-
173
- declare const useOdooDataTransform: () => {
174
- toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
175
- parseORM: (data: Record<string, any>) => Record<string, any>;
176
- };
177
-
178
- declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
179
- ids: any;
180
- model: string;
181
- specification: any;
182
- context: any;
183
- object: any;
184
- fieldChange?: any;
185
- }, unknown>;
186
-
187
- declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
188
- ids: any;
189
- model: string;
190
- data: any;
191
- specification?: any;
192
- context: any;
193
- path?: string;
194
- }, unknown>;
195
-
196
- declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
197
-
198
- declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
199
- id: any;
200
- context: ContextApi;
201
- }, unknown>;
202
-
203
- type SwitchUserLocaleParams = {
204
- data: {
205
- id: number;
206
- values: any;
207
- };
208
- };
209
- declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
210
-
211
- declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
212
- model: string;
213
- ids: Record<string, any>[] | any;
214
- context: ContextApi;
215
- method: any;
216
- }, unknown>;
217
-
218
- declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
219
- id: any;
220
- model: string;
221
- context: ContextApi;
222
- }, unknown>;
223
-
224
- declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
225
- aid: number;
226
- context: any;
227
- enabled: boolean;
228
- id?: number;
229
- model?: string;
230
- queryKey?: any;
231
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
232
-
233
- declare const useGetCalendar: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
234
-
235
- declare const useGetGroups: ({ model, width_context, }: {
236
- model: string;
237
- width_context: any;
238
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
239
-
240
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
241
-
242
- declare const useGetMenu: (context: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
243
-
244
- declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
245
- id: number;
246
- }, unknown>;
247
-
248
- declare const useGetProGressBar: ({ field, color, model, width_context, }: {
249
- field: any;
250
- color: any;
251
- model: string;
252
- width_context: string;
253
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
254
-
255
- declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
256
-
257
- declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
258
- idAction: any;
259
- context: ContextApi;
260
- }, unknown>;
261
-
262
- declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
263
-
264
- declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
265
- id: number;
266
- report: any;
267
- db: any;
268
- }, unknown>;
269
-
270
- declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
271
- model: string;
272
- ids: Record<string, any>[] | any;
273
- context: ContextApi;
274
- }, unknown>;
275
-
276
- declare const useGetResequence: (model: string, resIds: any, context: Context, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
277
-
278
- declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
279
- idAction: any;
280
- context: ContextApi;
281
- }, unknown>;
282
-
283
- declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
284
- redirect_uri: string;
285
- state: string;
286
- client_id: string;
287
- response_type: string;
288
- path: string;
289
- }, unknown>;
290
-
291
- declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<any, Error, {
292
- method: string;
293
- with_context: any;
294
- code: string;
295
- device: string;
296
- location: string;
297
- }, unknown>;
298
-
299
- declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<any, Error, {
300
- method: string;
301
- with_context: any;
302
- }, unknown>;
303
-
304
- declare const useGetFieldsViewSecurity: () => _tanstack_react_query.UseMutationResult<any, Error, {
305
- method: string;
306
- token: string;
307
- views: any;
308
- }, unknown>;
309
-
310
- declare const useGrantAccess: () => _tanstack_react_query.UseMutationResult<any, Error, {
311
- redirect_uri: string;
312
- state: string;
313
- client_id: string;
314
- scopes: string[];
315
- }, unknown>;
316
-
317
- declare const useRemoveTotpSetup: () => _tanstack_react_query.UseMutationResult<any, Error, {
318
- method: string;
319
- token: string;
320
- }, unknown>;
321
-
322
- declare const useRequestSetupTotp: () => _tanstack_react_query.UseMutationResult<any, Error, {
323
- method: string;
324
- token: string;
325
- }, unknown>;
326
-
327
- declare const useSettingsWebRead2fa: () => _tanstack_react_query.UseMutationResult<any, Error, {
328
- method: string;
329
- model: string;
330
- kwargs: any;
331
- token: string;
332
- }, unknown>;
333
-
334
- declare const useVerifyTotp: () => _tanstack_react_query.UseMutationResult<any, Error, {
335
- method: string;
336
- action_token: string;
337
- code: string;
338
- }, unknown>;
339
-
340
- export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp };
package/dist/hook.d.ts DELETED
@@ -1,340 +0,0 @@
1
- import * as _tanstack_react_query from '@tanstack/react-query';
2
- import { L as LoginCredentialBody, d as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, f as ViewData, C as ContextApi, c as GetViewParams } from './view-type-DodWYWDH.js';
3
- import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.js';
4
- import './environment.js';
5
- export { u as useGetSelection } from './use-get-selection-QZu1jKqa.js';
6
- import { C as Context } from './context-type-D5XefoL-.js';
7
- import '@reduxjs/toolkit';
8
- import './session-storage-CxkkEmQh.js';
9
-
10
- declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
11
-
12
- declare const useForgotPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
13
- email: string;
14
- with_context: any;
15
- method: string;
16
- }, unknown>;
17
-
18
- type ProviderPropsType = {
19
- db: string;
20
- };
21
- declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
22
-
23
- declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
24
-
25
- declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
26
-
27
- declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
28
-
29
- declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
30
-
31
- declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
32
- method: any;
33
- password: string;
34
- with_context: any;
35
- }, unknown>;
36
-
37
- declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
38
-
39
- declare const useLogout: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
40
-
41
- declare const useGetAccessByCode: () => _tanstack_react_query.UseMutationResult<any, Error, {
42
- code: string;
43
- }, unknown>;
44
-
45
- declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
46
-
47
- declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
48
-
49
- declare const useGetListCompany: (companyIDs?: number[]) => _tanstack_react_query.UseQueryResult<any, Error>;
50
-
51
- declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
52
- model: string;
53
- domain: any;
54
- ids: any;
55
- fields: any;
56
- type: any;
57
- importCompat: any;
58
- context: any;
59
- groupby: any;
60
- }, unknown>;
61
-
62
- declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
63
- ids: any;
64
- model: string;
65
- isShow?: boolean;
66
- parentField?: any;
67
- fieldType?: any;
68
- parentName?: any;
69
- prefix?: any;
70
- name?: any;
71
- context: any;
72
- importCompat?: any;
73
- }, unknown>;
74
-
75
- declare const useGetFileExcel: ({ model }: {
76
- model: string;
77
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
78
-
79
- declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
80
- id: any;
81
- selectedSheet: any;
82
- isHeader: boolean;
83
- context: any;
84
- }, unknown>;
85
-
86
- declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
87
- formData: any;
88
- }, unknown>;
89
-
90
- declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
91
- formData: any;
92
- }, unknown>;
93
-
94
- declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
95
- fields: any;
96
- columns: any;
97
- idFile: any;
98
- options: any;
99
- dryrun: any;
100
- context: any;
101
- }, unknown>;
102
-
103
- declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
104
- data: any;
105
- }, unknown>;
106
-
107
- declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
108
- data: any;
109
- }, unknown>;
110
-
111
- declare const useGetComment: ({ data, queryKey }: {
112
- data: any;
113
- queryKey: any;
114
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
115
-
116
- type TFormView = {
117
- model: string;
118
- id?: number | null;
119
- context?: any;
120
- };
121
- declare const useGetFormView: ({ data, queryKey, enabled, }: {
122
- data: TFormView;
123
- queryKey?: any;
124
- enabled?: any;
125
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
126
-
127
- declare const useGetImage: ({ data, queryKey, src, }: {
128
- data: any;
129
- queryKey: any;
130
- src: any;
131
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
132
-
133
- declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
134
- data: any;
135
- }, unknown>;
136
-
137
- declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
138
- data: any;
139
- }, unknown>;
140
-
141
- declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
142
- ids: any;
143
- model: string;
144
- }, unknown>;
145
-
146
- declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
147
-
148
- declare const useGetConversionRate: () => _tanstack_react_query.UseQueryResult<any, Error>;
149
-
150
- declare const useGetCurrency: () => _tanstack_react_query.UseQueryResult<any, Error>;
151
-
152
- declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
153
- model?: string;
154
- ids: any;
155
- specification?: any;
156
- context?: any;
157
- }, unknown>;
158
-
159
- declare const useGetFieldOnChange: ({ model }: {
160
- model: string;
161
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
162
-
163
- declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
164
- domain: any;
165
- spectification: any;
166
- model: string;
167
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
168
-
169
- declare const useModel: () => {
170
- initModel: (modelData: BaseModelInit) => BaseModel;
171
- };
172
-
173
- declare const useOdooDataTransform: () => {
174
- toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
175
- parseORM: (data: Record<string, any>) => Record<string, any>;
176
- };
177
-
178
- declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
179
- ids: any;
180
- model: string;
181
- specification: any;
182
- context: any;
183
- object: any;
184
- fieldChange?: any;
185
- }, unknown>;
186
-
187
- declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
188
- ids: any;
189
- model: string;
190
- data: any;
191
- specification?: any;
192
- context: any;
193
- path?: string;
194
- }, unknown>;
195
-
196
- declare const useGetProfile: (path?: string) => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
197
-
198
- declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
199
- id: any;
200
- context: ContextApi;
201
- }, unknown>;
202
-
203
- type SwitchUserLocaleParams = {
204
- data: {
205
- id: number;
206
- values: any;
207
- };
208
- };
209
- declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
210
-
211
- declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
212
- model: string;
213
- ids: Record<string, any>[] | any;
214
- context: ContextApi;
215
- method: any;
216
- }, unknown>;
217
-
218
- declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
219
- id: any;
220
- model: string;
221
- context: ContextApi;
222
- }, unknown>;
223
-
224
- declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
225
- aid: number;
226
- context: any;
227
- enabled: boolean;
228
- id?: number;
229
- model?: string;
230
- queryKey?: any;
231
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
232
-
233
- declare const useGetCalendar: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
234
-
235
- declare const useGetGroups: ({ model, width_context, }: {
236
- model: string;
237
- width_context: any;
238
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
239
-
240
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
241
-
242
- declare const useGetMenu: (context: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
243
-
244
- declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
245
- id: number;
246
- }, unknown>;
247
-
248
- declare const useGetProGressBar: ({ field, color, model, width_context, }: {
249
- field: any;
250
- color: any;
251
- model: string;
252
- width_context: string;
253
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
254
-
255
- declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
256
-
257
- declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
258
- idAction: any;
259
- context: ContextApi;
260
- }, unknown>;
261
-
262
- declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
263
-
264
- declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
265
- id: number;
266
- report: any;
267
- db: any;
268
- }, unknown>;
269
-
270
- declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
271
- model: string;
272
- ids: Record<string, any>[] | any;
273
- context: ContextApi;
274
- }, unknown>;
275
-
276
- declare const useGetResequence: (model: string, resIds: any, context: Context, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
277
-
278
- declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
279
- idAction: any;
280
- context: ContextApi;
281
- }, unknown>;
282
-
283
- declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
284
- redirect_uri: string;
285
- state: string;
286
- client_id: string;
287
- response_type: string;
288
- path: string;
289
- }, unknown>;
290
-
291
- declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<any, Error, {
292
- method: string;
293
- with_context: any;
294
- code: string;
295
- device: string;
296
- location: string;
297
- }, unknown>;
298
-
299
- declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<any, Error, {
300
- method: string;
301
- with_context: any;
302
- }, unknown>;
303
-
304
- declare const useGetFieldsViewSecurity: () => _tanstack_react_query.UseMutationResult<any, Error, {
305
- method: string;
306
- token: string;
307
- views: any;
308
- }, unknown>;
309
-
310
- declare const useGrantAccess: () => _tanstack_react_query.UseMutationResult<any, Error, {
311
- redirect_uri: string;
312
- state: string;
313
- client_id: string;
314
- scopes: string[];
315
- }, unknown>;
316
-
317
- declare const useRemoveTotpSetup: () => _tanstack_react_query.UseMutationResult<any, Error, {
318
- method: string;
319
- token: string;
320
- }, unknown>;
321
-
322
- declare const useRequestSetupTotp: () => _tanstack_react_query.UseMutationResult<any, Error, {
323
- method: string;
324
- token: string;
325
- }, unknown>;
326
-
327
- declare const useSettingsWebRead2fa: () => _tanstack_react_query.UseMutationResult<any, Error, {
328
- method: string;
329
- model: string;
330
- kwargs: any;
331
- token: string;
332
- }, unknown>;
333
-
334
- declare const useVerifyTotp: () => _tanstack_react_query.UseMutationResult<any, Error, {
335
- method: string;
336
- action_token: string;
337
- code: string;
338
- }, unknown>;
339
-
340
- export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetAccessByCode, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFieldsViewSecurity, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetUser, useGetView, useGrantAccess, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useLogout, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useRemoveTotpSetup, useRequestSetupTotp, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSettingsWebRead2fa, useSignInSSO, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, useVerifyTotp };