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