@fctc/interface-logic 1.0.1 → 1.0.3

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 +55 -13
package/dist/index.d.mts CHANGED
@@ -1,1390 +1,2 @@
1
- import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
- import { EnhancedStore, PayloadAction } from '@reduxjs/toolkit';
3
- import { TypedUseSelectorHook } from 'react-redux';
4
- import * as redux_thunk from 'redux-thunk';
5
- import * as redux from 'redux';
6
- import * as immer from 'immer';
7
- import * as _tanstack_react_query from '@tanstack/react-query';
8
- import * as react_jsx_runtime from 'react/jsx-runtime';
9
- import { ReactNode } from 'react';
10
1
 
11
- declare class WesapError extends Error {
12
- code: number;
13
- constructor(message: string, code: number);
14
- }
15
- declare function handleError(error: Error, env: {
16
- services: {
17
- notification: {
18
- error: (message: string) => void;
19
- };
20
- };
21
- }): void;
22
-
23
- declare const formatCurrency: (amount: number, currency?: string) => string;
24
- declare const formatDate: (date: string | Date, locale?: string) => string;
25
- declare const validateAndParseDate: (input: string, isDateTime?: boolean) => string | null;
26
-
27
- interface Specification {
28
- [key: string]: any;
29
- }
30
- interface ContextApi {
31
- [key: string]: any;
32
- }
33
- interface GetAllParams {
34
- model?: string;
35
- ids?: number[];
36
- specification: Specification;
37
- domain?: any[];
38
- offset?: number;
39
- sort: any;
40
- fields: any;
41
- groupby: any;
42
- context?: ContextApi;
43
- limit?: number;
44
- }
45
- interface GetListParams {
46
- model: string;
47
- ids?: number[];
48
- specification?: Specification;
49
- domain?: any[];
50
- offset?: number;
51
- order?: string;
52
- context?: ContextApi;
53
- limit?: number;
54
- }
55
- interface GetDetailParams {
56
- ids?: number[];
57
- model?: string;
58
- specification?: Specification;
59
- context?: ContextApi;
60
- }
61
- interface SaveParams {
62
- model: string;
63
- ids?: number[] | [];
64
- data?: Record<string, any>;
65
- specification?: Specification;
66
- context?: ContextApi;
67
- }
68
- interface DeleteParams {
69
- ids?: number[];
70
- model: string;
71
- }
72
- interface OnChangeParams {
73
- ids?: number[];
74
- model: string;
75
- object?: Record<string, any>;
76
- specification: Specification;
77
- context?: ContextApi;
78
- fieldChange?: string[];
79
- }
80
- interface ViewData {
81
- models?: {
82
- [key: string]: {
83
- [key: string]: {
84
- type: string;
85
- relation?: string;
86
- };
87
- };
88
- };
89
- }
90
-
91
- interface LoginCredentialBody {
92
- email: string;
93
- password: string;
94
- path?: string;
95
- }
96
- interface ResetPasswordRequest {
97
- password: string;
98
- confirmPassword: string;
99
- }
100
- interface UpdatePasswordRequest {
101
- newPassword: string;
102
- oldPassword: string;
103
- }
104
- interface ForgotPasswordBody {
105
- data: ResetPasswordRequest;
106
- token: string | null;
107
- }
108
- interface updatePasswordBody {
109
- data: UpdatePasswordRequest;
110
- token: string | null;
111
- }
112
- interface SocialTokenBody {
113
- state: object;
114
- access_token: string;
115
- db: string;
116
- }
117
-
118
- interface BaseModelInit$1 {
119
- name: string;
120
- view: Record<string, any>;
121
- actContext?: Record<string, any>;
122
- }
123
-
124
- interface Config {
125
- baseUrl: string;
126
- grantType: string;
127
- clientId: string;
128
- clientSecret: string;
129
- }
130
-
131
- interface Context {
132
- uid: number;
133
- lang: string;
134
- allowCompanys: number[];
135
- [key: string]: any;
136
- }
137
-
138
- type View = [number | boolean, string];
139
- type Option = {
140
- action_id?: number;
141
- load_filters?: boolean;
142
- toolbar?: boolean;
143
- };
144
- interface GetViewParams {
145
- model?: string;
146
- views?: View[];
147
- context?: Record<string, any>;
148
- options?: Option;
149
- aid?: number | string | null | boolean;
150
- }
151
-
152
- type AST = {
153
- type: number;
154
- value: any;
155
- };
156
- type Condition = [string | 0 | 1, string, any];
157
- type DomainListRepr = ('&' | '|' | '!' | Condition)[];
158
- type DomainRepr = DomainListRepr | string | Domain;
159
- declare class Domain {
160
- ast: AST;
161
- static TRUE: Domain;
162
- static FALSE: Domain;
163
- static combine(domains: DomainRepr[], operator: 'AND' | 'OR'): Domain;
164
- static and(domains: DomainRepr[]): Domain;
165
- static or(domains: DomainRepr[]): Domain;
166
- static not(domain: DomainRepr): Domain;
167
- static removeDomainLeaves(domain: DomainRepr, keysToRemove: string[]): Domain;
168
- constructor(descr?: DomainRepr);
169
- contains(record: any): boolean;
170
- toString(): string;
171
- toList(context: Record<string, any>): DomainListRepr;
172
- toJson(): DomainListRepr | string;
173
- }
174
-
175
- declare const evalJSONContext: (_context: any, context?: {}) => Context | null;
176
- declare const evalJSONDomain: (domain: any, context: any) => any;
177
- declare const formatSortingString: (input: string | null | undefined) => string | null;
178
- declare const domainHelper: {
179
- checkDomain: (context: any, domain: any) => boolean;
180
- matchDomains: (context: any, domains: any) => boolean;
181
- Domain: typeof Domain;
182
- };
183
- declare const toQueryString: (params: Record<string, string | number | boolean>) => string;
184
- declare const convertFloatToTime: (floatValue: number) => string;
185
- declare const convertTimeToFloat: (timeString: string) => number;
186
- declare const stringToColor: (name: string, id: number) => string;
187
- declare const getFieldsOnChange: (fields: any) => any;
188
- declare const filterFieldDirty: ({ id, viewData, formValues, dirtyFields, model, defaultData, }: {
189
- id?: any;
190
- viewData?: any;
191
- formValues?: any;
192
- dirtyFields?: any;
193
- model?: any;
194
- defaultData?: any;
195
- }) => any;
196
- type MergeableObject = {
197
- [key: string]: any;
198
- } | null | undefined;
199
- declare const mergeObjects: <T extends MergeableObject, U extends MergeableObject>(object1: T, object2: U) => (T & U) | undefined;
200
- declare const formatUrlPath: ({ viewType, aid, model, id, actionPath, }: {
201
- viewType: "list" | "form" | "kanban" | any;
202
- actionPath: string;
203
- aid: string | number;
204
- model: string;
205
- id?: string | number;
206
- }) => string;
207
- declare const removeUndefinedFields: <T extends Record<string, any>>(obj: T) => Partial<T>;
208
- declare const useTabModel: (viewData: any, onchangeData: any) => any;
209
- declare const isBase64File: (str: any) => boolean;
210
- declare const isBase64Image: (str: any) => boolean;
211
- declare const checkIsImageLink: (url: any) => boolean;
212
- declare const formatFileSize: (size: any) => string;
213
- declare const getSubdomain: (url?: string) => string | null;
214
- declare const resequence: (arr: any, start: any, end: any) => any;
215
- declare const getOffSet: (arr: any, start: any, end: any) => any;
216
- declare const copyTextToClipboard: (text: string) => Promise<void>;
217
- declare const isObjectEmpty: (obj: object) => boolean;
218
-
219
- declare const localStorageUtils: () => {
220
- setToken: (access_token: string) => Promise<void>;
221
- setRefreshToken: (refresh_token: string) => Promise<void>;
222
- getAccessToken: () => Promise<string | null>;
223
- getRefreshToken: () => Promise<string | null>;
224
- clearToken: () => Promise<void>;
225
- };
226
- type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
227
-
228
- declare const sessionStorageUtils: () => {
229
- getBrowserSession: () => Promise<string | null>;
230
- };
231
- type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
232
-
233
- declare global {
234
- interface Global {
235
- envStore?: EnvStore;
236
- }
237
- interface Window {
238
- envStore?: EnvStore;
239
- }
240
- }
241
- declare class EnvStore {
242
- envStore: EnhancedStore | any;
243
- baseUrl?: string;
244
- requests?: any;
245
- context?: any;
246
- defaultCompany?: any;
247
- config?: any;
248
- companies?: any[];
249
- user?: any;
250
- db?: string;
251
- localStorageUtils?: any;
252
- sessionStorageUtils?: any;
253
- constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
254
- setup(): void;
255
- setupEnv(envConfig: EnvStore): void;
256
- setUid(uid: number): void;
257
- setLang(lang: string): void;
258
- setAllowCompanies(allowCompanies: number[]): void;
259
- setCompanies(companies: any[]): void;
260
- setDefaultCompany(company: any): void;
261
- setUserInfo(userInfo: any): void;
262
- }
263
- declare let env: EnvStore | null;
264
- declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
265
- localStorageUtils?: LocalStorageUtilsType;
266
- sessionStorageUtils?: SessionStorageUtilsType;
267
- }): EnvStore;
268
- declare function getEnv(): EnvStore;
269
-
270
- declare enum KeyConstants {
271
- PROFILE = "userinfo",
272
- CURRENT_COMPANY = "current_company",
273
- LIST_COMPANY = "list_company",
274
- COMPANY_INFO = "company_info",
275
- MENU = "menus",
276
- GET_VIEW_BY_ACTION = "get_view_by_action",
277
- ACTION_DETAIL = "action_detail",
278
- GET_DATA_SELECTION = "get_data_select",
279
- WEB_SAVE = "web_save",
280
- WEB_READ = "web_read",
281
- GET_PROVIDER = "get_provider"
282
- }
283
-
284
- declare enum MethodConstants {
285
- WEB_SEARCH_READ = "web_search_read",
286
- WEB_READ_GROUP = "web_read_group",
287
- WEB_READ = "web_read",
288
- WEB_SAVE = "web_save",
289
- UNLINK = "unlink",
290
- ONCHANGE = "onchange",
291
- GET_ONCHANGE_FIELDS = "get_fields_onchange",
292
- GET_FIELD_VIEW = "get_fields_view_v2"
293
- }
294
-
295
- declare enum UriConstants {
296
- AUTH_TOKEN_PATH = "/authentication/oauth2/token",
297
- GENTOKEN_SOCIAL = "/token/generate",
298
- CALL_PATH = "/call",
299
- COMPANY_PATH = "/company",
300
- PROFILE_PATH = "/userinfo",
301
- RESET_PASSWORD_PATH = "/reset_password",
302
- CHANGE_PASSWORD_PATH = "/change_password",
303
- UPDATE_PASSWORD_PATH = "/change_password_parent",
304
- LOAD_ACTION = "/load_action",
305
- REPORT_PATH = "/report",
306
- RUN_ACTION_PATH = "/run_action",
307
- UPLOAD_FILE_PATH = "/upload/file",
308
- GET_MESSAGE = "/chatter/thread/messages",
309
- SENT_MESSAGE = "/chatter/message/post",
310
- UPLOAD_IMAGE = "/mail/attachment/upload",
311
- DELETE_MESSAGE = "/chatter/message/update_content",
312
- IMAGE_PATH = "/web/image",
313
- LOAD_MESSAGE = "/load_message_failures",
314
- TOKEN = "/check_token",
315
- CREATE_UPDATE_PATH = "/create_update",
316
- TWOFA_METHOD_PATH = "/id/api/v2/call",
317
- SIGNIN_SSO = "/signin-sso/oauth"
318
- }
319
-
320
- declare enum FieldTypeConstants {
321
- CHAR = "char",
322
- TEXT = "text",
323
- INTEGER = "integer",
324
- FLOAT = "float",
325
- BOOLEAN = "boolean",
326
- DATE = "date",
327
- DATETIME = "datetime",
328
- BINARY = "binary",
329
- SELECTION = "selection",
330
- HTML = "html",
331
- MANY2ONE = "many2one",
332
- ONE2MANY = "one2many",
333
- MANY2MANY = "many2many",
334
- MONETARY = "monetary",
335
- REFERENCE = "reference",
336
- FUNCTION = "function",
337
- PROPERTY = "property"
338
- }
339
-
340
- declare enum MethodType {
341
- CREATE = 0,
342
- UPDATE = 1,
343
- DELETE = 2,
344
- UNLINK = 3,
345
- NO_CHANGE = 4
346
- }
347
-
348
- declare enum ModelConstants {
349
- MENU = "ir.ui.menu",
350
- USER = "res.users",
351
- COMPANY = "res.company",
352
- WINDOW_ACTION = "ir.actions.act_window",
353
- BASE_IMPORT = "base_import.import",
354
- GET_IMPORT = "get_import_templates"
355
- }
356
-
357
- declare enum ComponentType {
358
- GROUP = "group",
359
- FIELD = "field",
360
- TREE = "tree",
361
- DIV = "div",
362
- LIST = "list",
363
- FORM = "form",
364
- SETTINGS = "setting",
365
- SPAN = "span",
366
- KANBAN = "kanban",
367
- CALENDAR = "calendar",
368
- TYPE = "view-type"
369
- }
370
- declare const SearchType: {
371
- FILTER: string;
372
- SEARCH: string;
373
- GROUP: string;
374
- };
375
-
376
- declare enum WIDGETAVATAR {
377
- many2one_avatar_user = "many2one_avatar_user",
378
- many2many_avatar_user = "many2many_avatar_user"
379
- }
380
- declare enum WIDGETCURRENCY {
381
- many2one_avatar_user = "many2one_avatar_user",
382
- many2many_avatar_user = "many2many_avatar_user"
383
- }
384
-
385
- declare enum WIDGETCOLOR {
386
- many2many_tags = "many2many_tags",
387
- helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
388
- }
389
-
390
- declare enum WIDGETSTATUS {
391
- sla_status_ids = "sla_status_ids"
392
- }
393
- declare enum WIDGETNOSTRING {
394
- sla_status_ids = "sla_status_ids"
395
- }
396
-
397
- interface UserInfor {
398
- address?: {
399
- country?: boolean;
400
- formatted?: string;
401
- locality?: boolean;
402
- postal_code?: boolean;
403
- region?: boolean;
404
- street_address?: boolean;
405
- };
406
- email?: string;
407
- locale?: string;
408
- name?: string;
409
- partner_id?: {
410
- id?: number;
411
- stud_id?: boolean;
412
- };
413
- phone_number?: boolean;
414
- sub?: number;
415
- updated_at?: string;
416
- username?: string;
417
- website?: boolean;
418
- zoneinfo?: string;
419
- image?: string;
420
- }
421
- interface ProfileStateType {
422
- profile: UserInfor;
423
- }
424
- declare const profileSlice: _reduxjs_toolkit.Slice<ProfileStateType, {
425
- setProfile: (state: immer.WritableDraft<ProfileStateType>, action: {
426
- payload: any;
427
- type: string;
428
- }) => void;
429
- }, "profile", "profile", _reduxjs_toolkit.SliceSelectors<ProfileStateType>>;
430
- declare const setProfile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "profile/setProfile">;
431
- declare const selectProfile: (state: RootState) => ProfileStateType;
432
-
433
- interface ExcelState {
434
- dataParse: any | null;
435
- idFile: any | null;
436
- isFileLoaded: boolean;
437
- loadingImport: any;
438
- selectedFile: any;
439
- errorData: any;
440
- }
441
- declare const excelSlice: _reduxjs_toolkit.Slice<ExcelState, {
442
- setDataParse: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
443
- setIdFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
444
- setIsFileLoaded: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
445
- setLoadingImport: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
446
- setSelectedFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
447
- setErrorData: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
448
- }, "excel", "excel", _reduxjs_toolkit.SliceSelectors<ExcelState>>;
449
- declare const setDataParse: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setDataParse">;
450
- declare const setIdFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIdFile">;
451
- declare const setIsFileLoaded: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIsFileLoaded">;
452
- declare const setLoadingImport: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setLoadingImport">;
453
- declare const setSelectedFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setSelectedFile">;
454
- declare const setErrorData: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setErrorData">;
455
- declare const selectExcel: (state: RootState) => ExcelState;
456
-
457
- interface LoginStateType {
458
- db: string;
459
- redirectTo: string;
460
- forgotPasswordUrl: string;
461
- }
462
- declare const loginSlice: _reduxjs_toolkit.Slice<LoginStateType, {
463
- setDb: (state: immer.WritableDraft<LoginStateType>, action: PayloadAction<string>) => void;
464
- setRedirectTo: (state: immer.WritableDraft<LoginStateType>, action: PayloadAction<string>) => void;
465
- setForgotPasswordUrl: (state: immer.WritableDraft<LoginStateType>, action: PayloadAction<string>) => void;
466
- }, "login", "login", _reduxjs_toolkit.SliceSelectors<LoginStateType>>;
467
- declare const setDb: _reduxjs_toolkit.ActionCreatorWithPayload<string, "login/setDb">;
468
- declare const setRedirectTo: _reduxjs_toolkit.ActionCreatorWithPayload<string, "login/setRedirectTo">;
469
- declare const setForgotPasswordUrl: _reduxjs_toolkit.ActionCreatorWithPayload<string, "login/setForgotPasswordUrl">;
470
- declare const selectLogin: (state: RootState) => LoginStateType;
471
-
472
- interface Breadcrumb {
473
- title?: string;
474
- path?: string;
475
- view: 'list' | 'detail' | 'edit' | 'tree';
476
- aid: string | number;
477
- model: string;
478
- id: string | number;
479
- }
480
- interface BreadcrumbsState {
481
- breadCrumbs: Breadcrumb[];
482
- }
483
- declare const breadcrumbsSlice: _reduxjs_toolkit.Slice<BreadcrumbsState, {
484
- setBreadCrumbs: (state: BreadcrumbsState, action: PayloadAction<Breadcrumb>) => void;
485
- }, "breadcrumbs", "breadcrumbs", _reduxjs_toolkit.SliceSelectors<BreadcrumbsState>>;
486
- declare const setBreadCrumbs: _reduxjs_toolkit.ActionCreatorWithPayload<Breadcrumb, "breadcrumbs/setBreadCrumbs">;
487
- declare const selectBreadCrumbs: (state: RootState) => BreadcrumbsState;
488
-
489
- interface ViewDataStore {
490
- [key: string]: any;
491
- }
492
- interface FormState {
493
- viewDataStore: ViewDataStore;
494
- isShowingModalDetail: boolean;
495
- isShowModalTranslate: boolean;
496
- formSubmitComponent: Record<string, React.ReactNode>;
497
- fieldTranslation: any;
498
- listSubject: any;
499
- dataUser: any;
500
- }
501
- declare const formSlice: _reduxjs_toolkit.Slice<FormState, {
502
- setViewDataStore: (state: FormState, action: PayloadAction<ViewDataStore>) => void;
503
- setIsShowingModalDetail: (state: FormState, action: PayloadAction<boolean>) => void;
504
- setIsShowModalTranslate: (state: FormState, action: PayloadAction<boolean>) => void;
505
- setFormSubmitComponent: (state: immer.WritableDraft<FormState>, action: PayloadAction<{
506
- key: string;
507
- component: any;
508
- }>) => void;
509
- setFieldTranslate: (state: FormState, action: PayloadAction<any>) => void;
510
- setListSubject: (state: FormState, action: PayloadAction<any>) => void;
511
- setDataUser: (state: FormState, action: PayloadAction<any>) => void;
512
- }, "form", "form", _reduxjs_toolkit.SliceSelectors<FormState>>;
513
- declare const setViewDataStore: _reduxjs_toolkit.ActionCreatorWithPayload<ViewDataStore, "form/setViewDataStore">;
514
- declare const setIsShowingModalDetail: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowingModalDetail">;
515
- declare const setIsShowModalTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowModalTranslate">;
516
- declare const setFormSubmitComponent: _reduxjs_toolkit.ActionCreatorWithPayload<{
517
- key: string;
518
- component: any;
519
- }, "form/setFormSubmitComponent">;
520
- declare const setFieldTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setFieldTranslate">;
521
- declare const setListSubject: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setListSubject">;
522
- declare const setDataUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setDataUser">;
523
- declare const selectForm: (state: RootState) => FormState;
524
-
525
- interface SearchState {
526
- groupByDomain: any;
527
- searchBy: any;
528
- searchString: string;
529
- hoveredIndexSearchList: any;
530
- selectedTags: [];
531
- firstDomain: any;
532
- searchMap: Record<string, any[]>;
533
- filterBy: any;
534
- groupBy: any;
535
- }
536
- declare const searchSlice: _reduxjs_toolkit.Slice<SearchState, {
537
- setGroupByDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string | null>) => void;
538
- setSearchBy: (state: immer.WritableDraft<SearchState>, action: any) => void;
539
- setSearchString: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
540
- setHoveredIndexSearchList: (state: immer.WritableDraft<SearchState>, action: PayloadAction<number | null>) => void;
541
- setSelectedTags: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
542
- setFirstDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
543
- setFilterBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
544
- setGroupBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
545
- setSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<Record<string, any>>) => void;
546
- updateSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
547
- key: string;
548
- value: any;
549
- }>) => void;
550
- removeKeyFromSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
551
- key: string;
552
- item?: any;
553
- }>) => void;
554
- clearSearchMap: (state: immer.WritableDraft<SearchState>) => void;
555
- }, "search", "search", _reduxjs_toolkit.SliceSelectors<SearchState>>;
556
- declare const setGroupByDomain: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "search/setGroupByDomain">;
557
- declare const setSelectedTags: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setSelectedTags">;
558
- declare const setSearchString: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setSearchString">;
559
- declare const setHoveredIndexSearchList: _reduxjs_toolkit.ActionCreatorWithPayload<number | null, "search/setHoveredIndexSearchList">;
560
- declare const setFirstDomain: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFirstDomain">;
561
- declare const setSearchBy: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"search/setSearchBy"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/setSearchBy">;
562
- declare const setFilterBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFilterBy">;
563
- declare const setSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "search/setSearchMap">;
564
- declare const updateSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
565
- key: string;
566
- value: any;
567
- }, "search/updateSearchMap">;
568
- declare const removeKeyFromSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
569
- key: string;
570
- item?: any;
571
- }, "search/removeKeyFromSearchMap">;
572
- declare const setGroupBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setGroupBy">;
573
- declare const clearSearchMap: _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/clearSearchMap">;
574
- declare const selectSearch: (state: RootState) => SearchState;
575
- declare const selectSearchMap: (state: RootState) => Record<string, any[]>;
576
-
577
- interface ListState {
578
- pageLimit: number;
579
- fields: Record<string, any>;
580
- order: string | null;
581
- selectedRowKeys: number[];
582
- selectedRadioKey: any;
583
- indexRowTableModal: number;
584
- isUpdateTableModal: boolean;
585
- footerGroupTable: Record<string, any>;
586
- page: number;
587
- transferDetail?: any;
588
- domainTable?: any;
589
- }
590
- declare const listSlice: _reduxjs_toolkit.Slice<ListState, {
591
- setPageLimit: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
592
- setFields: (state: immer.WritableDraft<ListState>, action: PayloadAction<Record<string, any>>) => void;
593
- setOrder: (state: immer.WritableDraft<ListState>, action: PayloadAction<string | null>) => void;
594
- setSelectedRowKeys: (state: immer.WritableDraft<ListState>, action: PayloadAction<number[]>) => void;
595
- setSelectedRadioKey: (state: immer.WritableDraft<ListState>, action: any) => void;
596
- setIndexRowTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
597
- setTransferDetail: (state: immer.WritableDraft<ListState>, action: any) => void;
598
- setIsUpdateTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<boolean>) => void;
599
- setPage: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
600
- setDomainTable: (state: immer.WritableDraft<ListState>, action: PayloadAction<any[]>) => void;
601
- }, "list", "list", _reduxjs_toolkit.SliceSelectors<ListState>>;
602
- declare const setPageLimit: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPageLimit">;
603
- declare const setFields: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "list/setFields">;
604
- declare const setOrder: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "list/setOrder">;
605
- declare const setSelectedRowKeys: _reduxjs_toolkit.ActionCreatorWithPayload<number[], "list/setSelectedRowKeys">;
606
- declare const setIndexRowTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setIndexRowTableModal">;
607
- declare const setIsUpdateTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "list/setIsUpdateTableModal">;
608
- declare const setPage: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPage">;
609
- declare const setSelectedRadioKey: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"list/setSelectedRadioKey"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"list/setSelectedRadioKey">;
610
- declare const setTransferDetail: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"list/setTransferDetail"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"list/setTransferDetail">;
611
- declare const setDomainTable: _reduxjs_toolkit.ActionCreatorWithPayload<any[], "list/setDomainTable">;
612
- declare const selectList: (state: RootState) => ListState;
613
-
614
- interface NavbarStateType {
615
- menuFocus: any;
616
- menuAction: any;
617
- navbarWidth: number;
618
- menuList: any;
619
- }
620
- declare const navbarSlice: _reduxjs_toolkit.Slice<NavbarStateType, {
621
- setMenuFocus: (state: immer.WritableDraft<NavbarStateType>, action: {
622
- payload: any;
623
- type: string;
624
- }) => void;
625
- setMenuFocusAction: (state: immer.WritableDraft<NavbarStateType>, action: {
626
- payload: any;
627
- type: string;
628
- }) => void;
629
- setNavbarWidth: (state: immer.WritableDraft<NavbarStateType>, action: {
630
- payload: any;
631
- type: string;
632
- }) => void;
633
- setMenuList: (state: immer.WritableDraft<NavbarStateType>, action: {
634
- payload: any;
635
- type: string;
636
- }) => void;
637
- }, "navbar", "navbar", _reduxjs_toolkit.SliceSelectors<NavbarStateType>>;
638
- declare const setMenuFocus: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuFocus">;
639
- declare const setMenuFocusAction: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuFocusAction">;
640
- declare const setNavbarWidth: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setNavbarWidth">;
641
- declare const setMenuList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuList">;
642
- declare const selectNavbar: (state: RootState) => NavbarStateType;
643
-
644
- declare const envStore: _reduxjs_toolkit.EnhancedStore<{
645
- env: {
646
- baseUrl: string;
647
- requests: null;
648
- companies: never[];
649
- user: {};
650
- config: null;
651
- envFile: null;
652
- defaultCompany: {
653
- id: null;
654
- logo: string;
655
- secondary_color: string;
656
- primary_color: string;
657
- };
658
- context: {
659
- uid: null;
660
- allowed_company_ids: never[];
661
- lang: string;
662
- tz: string;
663
- };
664
- };
665
- header: {
666
- value: {
667
- allowedCompanyIds: never[];
668
- };
669
- };
670
- navbar: NavbarStateType;
671
- list: ListState;
672
- search: SearchState;
673
- form: FormState;
674
- breadcrumbs: BreadcrumbsState;
675
- login: LoginStateType;
676
- excel: ExcelState;
677
- profile: ProfileStateType;
678
- }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
679
- dispatch: redux_thunk.ThunkDispatch<{
680
- env: {
681
- baseUrl: string;
682
- requests: null;
683
- companies: never[];
684
- user: {};
685
- config: null;
686
- envFile: null;
687
- defaultCompany: {
688
- id: null;
689
- logo: string;
690
- secondary_color: string;
691
- primary_color: string;
692
- };
693
- context: {
694
- uid: null;
695
- allowed_company_ids: never[];
696
- lang: string;
697
- tz: string;
698
- };
699
- };
700
- header: {
701
- value: {
702
- allowedCompanyIds: never[];
703
- };
704
- };
705
- navbar: NavbarStateType;
706
- list: ListState;
707
- search: SearchState;
708
- form: FormState;
709
- breadcrumbs: BreadcrumbsState;
710
- login: LoginStateType;
711
- excel: ExcelState;
712
- profile: ProfileStateType;
713
- }, undefined, redux.UnknownAction>;
714
- }>, redux.StoreEnhancer]>>;
715
-
716
- declare const envSlice: _reduxjs_toolkit.Slice<{
717
- baseUrl: string;
718
- requests: null;
719
- companies: never[];
720
- user: {};
721
- config: null;
722
- envFile: null;
723
- defaultCompany: {
724
- id: null;
725
- logo: string;
726
- secondary_color: string;
727
- primary_color: string;
728
- };
729
- context: {
730
- uid: null;
731
- allowed_company_ids: never[];
732
- lang: string;
733
- tz: string;
734
- };
735
- }, {
736
- setEnv: (state: immer.WritableDraft<{
737
- baseUrl: string;
738
- requests: null;
739
- companies: never[];
740
- user: {};
741
- config: null;
742
- envFile: null;
743
- defaultCompany: {
744
- id: null;
745
- logo: string;
746
- secondary_color: string;
747
- primary_color: string;
748
- };
749
- context: {
750
- uid: null;
751
- allowed_company_ids: never[];
752
- lang: string;
753
- tz: string;
754
- };
755
- }>, action: {
756
- payload: any;
757
- type: string;
758
- }) => void;
759
- setUid: (state: immer.WritableDraft<{
760
- baseUrl: string;
761
- requests: null;
762
- companies: never[];
763
- user: {};
764
- config: null;
765
- envFile: null;
766
- defaultCompany: {
767
- id: null;
768
- logo: string;
769
- secondary_color: string;
770
- primary_color: string;
771
- };
772
- context: {
773
- uid: null;
774
- allowed_company_ids: never[];
775
- lang: string;
776
- tz: string;
777
- };
778
- }>, action: {
779
- payload: any;
780
- type: string;
781
- }) => void;
782
- setAllowCompanies: (state: immer.WritableDraft<{
783
- baseUrl: string;
784
- requests: null;
785
- companies: never[];
786
- user: {};
787
- config: null;
788
- envFile: null;
789
- defaultCompany: {
790
- id: null;
791
- logo: string;
792
- secondary_color: string;
793
- primary_color: string;
794
- };
795
- context: {
796
- uid: null;
797
- allowed_company_ids: never[];
798
- lang: string;
799
- tz: string;
800
- };
801
- }>, action: {
802
- payload: any;
803
- type: string;
804
- }) => void;
805
- setCompanies: (state: immer.WritableDraft<{
806
- baseUrl: string;
807
- requests: null;
808
- companies: never[];
809
- user: {};
810
- config: null;
811
- envFile: null;
812
- defaultCompany: {
813
- id: null;
814
- logo: string;
815
- secondary_color: string;
816
- primary_color: string;
817
- };
818
- context: {
819
- uid: null;
820
- allowed_company_ids: never[];
821
- lang: string;
822
- tz: string;
823
- };
824
- }>, action: {
825
- payload: any;
826
- type: string;
827
- }) => void;
828
- setDefaultCompany: (state: immer.WritableDraft<{
829
- baseUrl: string;
830
- requests: null;
831
- companies: never[];
832
- user: {};
833
- config: null;
834
- envFile: null;
835
- defaultCompany: {
836
- id: null;
837
- logo: string;
838
- secondary_color: string;
839
- primary_color: string;
840
- };
841
- context: {
842
- uid: null;
843
- allowed_company_ids: never[];
844
- lang: string;
845
- tz: string;
846
- };
847
- }>, action: {
848
- payload: any;
849
- type: string;
850
- }) => void;
851
- setLang: (state: immer.WritableDraft<{
852
- baseUrl: string;
853
- requests: null;
854
- companies: never[];
855
- user: {};
856
- config: null;
857
- envFile: null;
858
- defaultCompany: {
859
- id: null;
860
- logo: string;
861
- secondary_color: string;
862
- primary_color: string;
863
- };
864
- context: {
865
- uid: null;
866
- allowed_company_ids: never[];
867
- lang: string;
868
- tz: string;
869
- };
870
- }>, action: {
871
- payload: any;
872
- type: string;
873
- }) => void;
874
- setUser: (state: immer.WritableDraft<{
875
- baseUrl: string;
876
- requests: null;
877
- companies: never[];
878
- user: {};
879
- config: null;
880
- envFile: null;
881
- defaultCompany: {
882
- id: null;
883
- logo: string;
884
- secondary_color: string;
885
- primary_color: string;
886
- };
887
- context: {
888
- uid: null;
889
- allowed_company_ids: never[];
890
- lang: string;
891
- tz: string;
892
- };
893
- }>, action: {
894
- payload: any;
895
- type: string;
896
- }) => void;
897
- setConfig: (state: immer.WritableDraft<{
898
- baseUrl: string;
899
- requests: null;
900
- companies: never[];
901
- user: {};
902
- config: null;
903
- envFile: null;
904
- defaultCompany: {
905
- id: null;
906
- logo: string;
907
- secondary_color: string;
908
- primary_color: string;
909
- };
910
- context: {
911
- uid: null;
912
- allowed_company_ids: never[];
913
- lang: string;
914
- tz: string;
915
- };
916
- }>, action: {
917
- payload: any;
918
- type: string;
919
- }) => void;
920
- setEnvFile: (state: immer.WritableDraft<{
921
- baseUrl: string;
922
- requests: null;
923
- companies: never[];
924
- user: {};
925
- config: null;
926
- envFile: null;
927
- defaultCompany: {
928
- id: null;
929
- logo: string;
930
- secondary_color: string;
931
- primary_color: string;
932
- };
933
- context: {
934
- uid: null;
935
- allowed_company_ids: never[];
936
- lang: string;
937
- tz: string;
938
- };
939
- }>, action: {
940
- payload: any;
941
- type: string;
942
- }) => void;
943
- }, "env", "env", _reduxjs_toolkit.SliceSelectors<{
944
- baseUrl: string;
945
- requests: null;
946
- companies: never[];
947
- user: {};
948
- config: null;
949
- envFile: null;
950
- defaultCompany: {
951
- id: null;
952
- logo: string;
953
- secondary_color: string;
954
- primary_color: string;
955
- };
956
- context: {
957
- uid: null;
958
- allowed_company_ids: never[];
959
- lang: string;
960
- tz: string;
961
- };
962
- }>>;
963
- declare const setEnv: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnv">;
964
- declare const setUid: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUid">;
965
- declare const setLang: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setLang">;
966
- declare const setAllowCompanies: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setAllowCompanies">;
967
- declare const setCompanies: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setCompanies">;
968
- declare const setDefaultCompany: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setDefaultCompany">;
969
- declare const setUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUser">;
970
- declare const setConfig: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setConfig">;
971
- declare const setEnvFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnvFile">;
972
- declare const selectEnv: (state: RootState) => {
973
- baseUrl: string;
974
- requests: null;
975
- companies: never[];
976
- user: {};
977
- config: null;
978
- envFile: null;
979
- defaultCompany: {
980
- id: null;
981
- logo: string;
982
- secondary_color: string;
983
- primary_color: string;
984
- };
985
- context: {
986
- uid: null;
987
- allowed_company_ids: never[];
988
- lang: string;
989
- tz: string;
990
- };
991
- };
992
-
993
- declare const headerSlice: _reduxjs_toolkit.Slice<{
994
- value: {
995
- allowedCompanyIds: never[];
996
- };
997
- }, {
998
- setHeader: (state: immer.WritableDraft<{
999
- value: {
1000
- allowedCompanyIds: never[];
1001
- };
1002
- }>, action: {
1003
- payload: any;
1004
- type: string;
1005
- }) => void;
1006
- setAllowedCompanyIds: (state: immer.WritableDraft<{
1007
- value: {
1008
- allowedCompanyIds: never[];
1009
- };
1010
- }>, action: {
1011
- payload: any;
1012
- type: string;
1013
- }) => void;
1014
- }, "header", "header", _reduxjs_toolkit.SliceSelectors<{
1015
- value: {
1016
- allowedCompanyIds: never[];
1017
- };
1018
- }>>;
1019
- declare const setAllowedCompanyIds: _reduxjs_toolkit.ActionCreatorWithPayload<any, "header/setAllowedCompanyIds">;
1020
- declare const setHeader: _reduxjs_toolkit.ActionCreatorWithPayload<any, "header/setHeader">;
1021
- declare const selectHeader: (state: RootState) => {
1022
- value: {
1023
- allowedCompanyIds: never[];
1024
- };
1025
- };
1026
-
1027
- type RootState = ReturnType<typeof envStore.getState>;
1028
- type AppDispatch = typeof envStore.dispatch;
1029
- declare const useAppDispatch: () => AppDispatch;
1030
- declare const useAppSelector: TypedUseSelectorHook<RootState>;
1031
-
1032
- interface BaseModelInit {
1033
- name: string;
1034
- view: Record<string, any>;
1035
- actContext?: Record<string, any>;
1036
- fields?: any;
1037
- }
1038
- declare class BaseModel {
1039
- name: string;
1040
- view: Record<string, any>;
1041
- actContext?: Record<string, any>;
1042
- fields?: any;
1043
- constructor(init: BaseModelInit);
1044
- private getSpecificationByFields;
1045
- getTreeProps(): Record<string, any>;
1046
- getTreeFields(): Record<string, any>[];
1047
- getSpecification(): Record<string, any>;
1048
- }
1049
-
1050
- interface CompanyData {
1051
- id?: number;
1052
- name?: string;
1053
- [key: string]: any;
1054
- }
1055
- interface CompanyResponse {
1056
- data: CompanyData;
1057
- status: number;
1058
- [key: string]: any;
1059
- }
1060
- declare class CompanyModel extends BaseModel {
1061
- constructor(init: BaseModelInit$1);
1062
- getCurrentCompany(): Promise<CompanyResponse>;
1063
- getUserCompany(id: number): Promise<CompanyResponse>;
1064
- }
1065
-
1066
- interface UserData {
1067
- id?: number;
1068
- name?: string;
1069
- [key: string]: any;
1070
- }
1071
- interface UserResponse {
1072
- data: UserData;
1073
- status: number;
1074
- [key: string]: any;
1075
- }
1076
- declare class UserModel extends BaseModel {
1077
- constructor(init: BaseModelInit$1);
1078
- getProfile(): Promise<UserResponse>;
1079
- }
1080
-
1081
- declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
1082
-
1083
- declare const useForgotPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
1084
- email: string;
1085
- with_context: any;
1086
- method: string;
1087
- }, unknown>;
1088
-
1089
- type ProviderPropsType = {
1090
- db: string;
1091
- };
1092
- declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
1093
-
1094
- declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
1095
-
1096
- declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
1097
-
1098
- declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
1099
-
1100
- declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
1101
-
1102
- declare const useResetPasswordSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
1103
- method: any;
1104
- password: string;
1105
- with_context: any;
1106
- }, unknown>;
1107
-
1108
- declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
1109
-
1110
- declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
1111
-
1112
- declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
1113
-
1114
- declare const useGetListCompany: (companyIDs?: number[]) => _tanstack_react_query.UseQueryResult<any, Error>;
1115
-
1116
- declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
1117
- model: string;
1118
- domain: any;
1119
- ids: any;
1120
- fields: any;
1121
- type: any;
1122
- importCompat: any;
1123
- context: any;
1124
- groupby: any;
1125
- }, unknown>;
1126
-
1127
- declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
1128
- ids: any;
1129
- model: string;
1130
- isShow?: boolean;
1131
- parentField?: any;
1132
- fieldType?: any;
1133
- parentName?: any;
1134
- prefix?: any;
1135
- name?: any;
1136
- context: any;
1137
- importCompat?: any;
1138
- }, unknown>;
1139
-
1140
- declare const useGetFileExcel: ({ model }: {
1141
- model: string;
1142
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1143
-
1144
- declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
1145
- id: any;
1146
- selectedSheet: any;
1147
- isHeader: boolean;
1148
- context: any;
1149
- }, unknown>;
1150
-
1151
- declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
1152
- formData: any;
1153
- }, unknown>;
1154
-
1155
- declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
1156
- formData: any;
1157
- }, unknown>;
1158
-
1159
- declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
1160
- fields: any;
1161
- columns: any;
1162
- idFile: any;
1163
- options: any;
1164
- dryrun: any;
1165
- context: any;
1166
- }, unknown>;
1167
-
1168
- declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
1169
- data: any;
1170
- }, unknown>;
1171
-
1172
- declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
1173
- data: any;
1174
- }, unknown>;
1175
-
1176
- declare const useGetComment: ({ data, queryKey }: {
1177
- data: any;
1178
- queryKey: any;
1179
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1180
-
1181
- type TFormView = {
1182
- model: string;
1183
- id?: number | null;
1184
- context?: any;
1185
- };
1186
- declare const useGetFormView: ({ data, queryKey, enabled, }: {
1187
- data: TFormView;
1188
- queryKey?: any;
1189
- enabled?: any;
1190
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1191
-
1192
- declare const useGetImage: ({ data, queryKey, src, }: {
1193
- data: any;
1194
- queryKey: any;
1195
- src: any;
1196
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1197
-
1198
- declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
1199
- data: any;
1200
- }, unknown>;
1201
-
1202
- declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
1203
- data: any;
1204
- }, unknown>;
1205
-
1206
- declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
1207
- ids: any;
1208
- model: string;
1209
- }, unknown>;
1210
-
1211
- declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
1212
-
1213
- declare const useGetConversionRate: () => _tanstack_react_query.UseQueryResult<any, Error>;
1214
-
1215
- declare const useGetCurrency: () => _tanstack_react_query.UseQueryResult<any, Error>;
1216
-
1217
- declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
1218
- model?: string;
1219
- ids: any;
1220
- specification?: any;
1221
- context?: any;
1222
- }, unknown>;
1223
-
1224
- declare const useGetFieldOnChange: ({ model }: {
1225
- model: string;
1226
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1227
-
1228
- declare const useGetListMyBankAccount: ({ domain, spectification, model, }: {
1229
- domain: any;
1230
- spectification: any;
1231
- model: string;
1232
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1233
-
1234
- declare const useModel: () => {
1235
- initModel: (modelData: BaseModelInit) => BaseModel;
1236
- };
1237
-
1238
- declare const useOdooDataTransform: () => {
1239
- toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
1240
- parseORM: (data: Record<string, any>) => Record<string, any>;
1241
- };
1242
-
1243
- declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
1244
- ids: any;
1245
- model: string;
1246
- specification: any;
1247
- context: any;
1248
- object: any;
1249
- fieldChange?: any;
1250
- }, unknown>;
1251
-
1252
- declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
1253
- ids: any;
1254
- model: string;
1255
- data: any;
1256
- specification?: any;
1257
- context: any;
1258
- }, unknown>;
1259
-
1260
- declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
1261
-
1262
- declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
1263
- id: any;
1264
- context: ContextApi;
1265
- }, unknown>;
1266
-
1267
- type SwitchUserLocaleParams = {
1268
- data: {
1269
- id: number;
1270
- values: any;
1271
- };
1272
- };
1273
- declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
1274
-
1275
- declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
1276
- model: string;
1277
- ids: Record<string, any>[] | any;
1278
- context: ContextApi;
1279
- method: any;
1280
- }, unknown>;
1281
-
1282
- declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
1283
- id: any;
1284
- model: string;
1285
- context: ContextApi;
1286
- }, unknown>;
1287
-
1288
- declare const useGetActionDetail: ({ aid, context, enabled, id, model, queryKey, }: {
1289
- aid: number;
1290
- context: any;
1291
- enabled: boolean;
1292
- id?: number;
1293
- model?: string;
1294
- queryKey?: any;
1295
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1296
-
1297
- declare const useGetCalendar: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
1298
-
1299
- declare const useGetGroups: ({ model, width_context, }: {
1300
- model: string;
1301
- width_context: any;
1302
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1303
-
1304
- declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
1305
-
1306
- declare const useGetMenu: (context: any, enabled?: boolean) => _tanstack_react_query.UseQueryResult<any, Error>;
1307
-
1308
- declare const useGetPrintReport: () => _tanstack_react_query.UseMutationResult<any, Error, {
1309
- id: number;
1310
- }, unknown>;
1311
-
1312
- declare const useGetProGressBar: ({ field, color, model, width_context, }: {
1313
- field: any;
1314
- color: any;
1315
- model: string;
1316
- width_context: string;
1317
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1318
-
1319
- type GetSelectionType = {
1320
- domain: any;
1321
- context: any;
1322
- model: string;
1323
- specification?: any;
1324
- };
1325
- declare const useGetSelection: ({ data, queryKey, enabled, }: {
1326
- data: GetSelectionType;
1327
- queryKey: any[];
1328
- enabled?: boolean;
1329
- }) => _tanstack_react_query.UseQueryResult<any, Error>;
1330
-
1331
- declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
1332
-
1333
- declare const useLoadAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
1334
- idAction: any;
1335
- context: ContextApi;
1336
- }, unknown>;
1337
-
1338
- declare const useLoadMessage: () => _tanstack_react_query.UseQueryResult<any, Error>;
1339
-
1340
- declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
1341
- id: number;
1342
- report: any;
1343
- db: any;
1344
- }, unknown>;
1345
-
1346
- declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
1347
- model: string;
1348
- ids: Record<string, any>[] | any;
1349
- context: ContextApi;
1350
- }, unknown>;
1351
-
1352
- declare const useGetResequence: (model: string, resIds: any, context: Context, offset: any) => _tanstack_react_query.UseQueryResult<any, Error>;
1353
-
1354
- declare const useRunAction: () => _tanstack_react_query.UseMutationResult<any, Error, {
1355
- idAction: any;
1356
- context: ContextApi;
1357
- }, unknown>;
1358
-
1359
- declare const useSignInSSO: () => _tanstack_react_query.UseMutationResult<any, Error, {
1360
- redirect_uri: string;
1361
- state: string;
1362
- client_id: string;
1363
- response_type: string;
1364
- path: string;
1365
- }, unknown>;
1366
-
1367
- declare const useVerify2FA: () => _tanstack_react_query.UseMutationResult<any, Error, {
1368
- method: string;
1369
- with_context: any;
1370
- code: string;
1371
- }, unknown>;
1372
-
1373
- declare const useGet2FAMethods: () => _tanstack_react_query.UseMutationResult<any, Error, {
1374
- method: string;
1375
- with_context: any;
1376
- }, unknown>;
1377
-
1378
- declare const MainProvider: ({ children }: {
1379
- children: ReactNode;
1380
- }) => react_jsx_runtime.JSX.Element;
1381
-
1382
- declare const ReactQueryProvider: ({ children }: {
1383
- children: ReactNode;
1384
- }) => react_jsx_runtime.JSX.Element;
1385
-
1386
- declare const VersionGate: ({ children }: {
1387
- children: ReactNode;
1388
- }) => react_jsx_runtime.JSX.Element | null;
1389
-
1390
- export { type AppDispatch, BaseModel, type BaseModelInit$1 as BaseModelInit, CompanyModel, ComponentType, type Config, type Context, type ContextApi, type DeleteParams, EnvStore, FieldTypeConstants, type ForgotPasswordBody, type GetAllParams, type GetDetailParams, type GetListParams, type GetViewParams, KeyConstants, type LocalStorageUtilsType, type LoginCredentialBody, MainProvider, MethodConstants, MethodType, ModelConstants, type OnChangeParams, ReactQueryProvider, type ResetPasswordRequest, type RootState, type SaveParams, SearchType, type SessionStorageUtilsType, type SocialTokenBody, type Specification, UriConstants, UserModel, VersionGate, type View, type ViewData, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS, WesapError, breadcrumbsSlice, checkIsImageLink, clearSearchMap, convertFloatToTime, convertTimeToFloat, copyTextToClipboard, domainHelper, env, envSlice, envStore, evalJSONContext, evalJSONDomain, excelSlice, filterFieldDirty, formSlice, formatCurrency, formatDate, formatFileSize, formatSortingString, formatUrlPath, getEnv, getFieldsOnChange, getOffSet, getSubdomain, handleError, headerSlice, initEnv, isBase64File, isBase64Image, isObjectEmpty, listSlice, localStorageUtils, loginSlice, mergeObjects, navbarSlice, profileSlice, removeKeyFromSearchMap, removeUndefinedFields, resequence, searchSlice, selectBreadCrumbs, selectEnv, selectExcel, selectForm, selectHeader, selectList, selectLogin, selectNavbar, selectProfile, selectSearch, selectSearchMap, sessionStorageUtils, setAllowCompanies, setAllowedCompanyIds, setBreadCrumbs, setCompanies, setConfig, setDataParse, setDataUser, setDb, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setForgotPasswordUrl, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHeader, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setIsUpdateTableModal, setLang, setListSubject, setLoadingImport, setMenuFocus, setMenuFocusAction, setMenuList, setNavbarWidth, setOrder, setPage, setPageLimit, setProfile, setRedirectTo, setSearchBy, setSearchMap, setSearchString, setSelectedFile, setSelectedRadioKey, setSelectedRowKeys, setSelectedTags, setTransferDetail, setUid, setUser, setViewDataStore, stringToColor, toQueryString, updateSearchMap, useAppDispatch, useAppSelector, useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useForgotPassword, useForgotPasswordSSO, useGet2FAMethods, useGetActionDetail, useGetAll, useGetCalendar, useGetComment, useGetCompanyInfo, useGetConversionRate, useGetCurrency, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetFormView, useGetGroups, useGetImage, useGetListCompany, useGetListData, useGetListMyBankAccount, useGetMenu, useGetPrintReport, useGetProGressBar, useGetProfile, useGetProvider, useGetResequence, useGetSelection, useGetUser, useGetView, useIsValidToken, useLoadAction, useLoadMessage, useLoginCredential, useLoginSocial, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useResetPassword, useResetPasswordSSO, useRunAction, useSave, useSendComment, useSignInSSO, useSwitchLocale, useTabModel, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage, useVerify2FA, validateAndParseDate };
2
+ export { }