@fctc/edu-logic-lib 1.0.3 → 1.0.4

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 (55) hide show
  1. package/dist/index.d.mts +1076 -23
  2. package/dist/index.d.ts +1076 -23
  3. package/dist/index.js +4 -618
  4. package/dist/index.mjs +3 -572
  5. package/package.json +1 -1
  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 -15
  9. package/dist/config.d.ts +0 -15
  10. package/dist/config.js +0 -262
  11. package/dist/config.mjs +0 -256
  12. package/dist/constants.d.mts +0 -120
  13. package/dist/constants.d.ts +0 -120
  14. package/dist/constants.js +0 -154
  15. package/dist/constants.mjs +0 -141
  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 -37
  19. package/dist/environment.d.ts +0 -37
  20. package/dist/environment.js +0 -849
  21. package/dist/environment.mjs +0 -841
  22. package/dist/hooks.d.mts +0 -218
  23. package/dist/hooks.d.ts +0 -218
  24. package/dist/hooks.js +0 -4865
  25. package/dist/hooks.mjs +0 -4814
  26. package/dist/index-C_nK1Mii.d.mts +0 -19
  27. package/dist/index-C_nK1Mii.d.ts +0 -19
  28. package/dist/models.d.mts +0 -35
  29. package/dist/models.d.ts +0 -35
  30. package/dist/models.js +0 -3225
  31. package/dist/models.mjs +0 -3217
  32. package/dist/provider.d.mts +0 -16
  33. package/dist/provider.d.ts +0 -16
  34. package/dist/provider.js +0 -3232
  35. package/dist/provider.mjs +0 -3224
  36. package/dist/services.d.mts +0 -160
  37. package/dist/services.d.ts +0 -160
  38. package/dist/services.js +0 -4045
  39. package/dist/services.mjs +0 -4032
  40. package/dist/store.d.mts +0 -505
  41. package/dist/store.d.ts +0 -505
  42. package/dist/store.js +0 -582
  43. package/dist/store.mjs +0 -519
  44. package/dist/types.d.mts +0 -12
  45. package/dist/types.d.ts +0 -12
  46. package/dist/types.js +0 -2
  47. package/dist/types.mjs +0 -1
  48. package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
  49. package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
  50. package/dist/utils.d.mts +0 -52
  51. package/dist/utils.d.ts +0 -52
  52. package/dist/utils.js +0 -2360
  53. package/dist/utils.mjs +0 -2344
  54. package/dist/view-type-BTzRpkT7.d.mts +0 -106
  55. package/dist/view-type-BTzRpkT7.d.ts +0 -106
package/dist/index.d.mts CHANGED
@@ -1,23 +1,1076 @@
1
- export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETNOSTRING, WIDGETSTATUS } from './constants.mjs';
2
- export { EnvStore, env, getEnv, initEnv } from './environment.mjs';
3
- export { useButton, useChangeStatus, useDelete, useDeleteComment, useDuplicateRecord, useExecuteImport, useExportExcel, useField, useForgotPassword, useGetAll, useGetComment, useGetCompanyInfo, useGetCurrentCompany, useGetDetail, useGetFieldExport, useGetFieldOnChange, useGetFileExcel, useGetImage, useGetListData, useGetMenu, useGetProfile, useGetProvider, useGetUser, useGetView, useIsValidToken, useLoadAction, useLoginCredential, useLoginSocial, useModel, useOdooDataTransform, useOnChangeForm, useParsePreview, usePrint, useRemoveRow, useResetPassword, useRunAction, useSave, useSendComment, useSwitchLocale, useUpdatePassword, useUploadFile, useUploadIdFile, useUploadImage } from './hooks.mjs';
4
- export { u as useGetFormView, a as useGetSelection } from './use-get-selection-DFh6sc49.mjs';
5
- export { MainProvider, ReactQueryProvider, VersionGate } from './provider.mjs';
6
- export { ActionService, AuthService, CompanyService, ExcelService, FormService, ModelService, UserService, ViewService } from './services.mjs';
7
- export { AppDispatch, RootState, clearSearchMap, envSlice, envStore, excelSlice, formSlice, listSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, searchSlice, selectEnv, selectExcel, selectForm, selectList, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setCompanies, setDataParse, setDataUser, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setLang, setListSubject, setLoadingImport, setMenuList, setModelSearch, setOrder, setPage, setPageLimit, setProfile, setSearchMap, setSearchString, setSelectedFile, setSelectedRowKeys, setSelectedTags, setTableHead, setTypeFieldsSearch, setUid, setUser, setViewDataStore, updateSearchMap, useAppDispatch, useAppSelector } from './store.mjs';
8
- export { checkIsImageLink, domainHelper, evalJSONContext, evalJSONDomain, formatFileSize, formatSortingString, formatUrlPath, getFieldsOnChange, getSubdomain, isBase64File, isBase64Image, removeUndefinedFields, stringToColor, toQueryString, useTabModel } from './utils.mjs';
9
- export { C as ContextApi, D as DeleteParams, F as ForgotPasswordBody, G as GetAllParams, a as GetDetailParams, b as GetListParams, e as GetViewParams, L as LoginCredentialBody, O as OnChangeParams, R as ResetPasswordRequest, S as SaveParams, c as SocialTokenBody, d as Specification, U as UpdatePasswordRequest, f as View, V as ViewData, u as updatePasswordBody } from './view-type-BTzRpkT7.mjs';
10
- export { B as BaseModelInit } from './base-model-type-DvO53Lwi.mjs';
11
- export { Config } from './types.mjs';
12
- export { C as Context } from './context-type-D5XefoL-.mjs';
13
- export { B as BaseModel } from './index-C_nK1Mii.mjs';
14
- export { CompanyModel, UserModel } from './models.mjs';
15
- export { axiosClient } from './config.mjs';
16
- import '@reduxjs/toolkit';
17
- import '@tanstack/react-query';
18
- import 'react/jsx-runtime';
19
- import 'react';
20
- import 'react-redux';
21
- import 'redux-thunk';
22
- import 'redux';
23
- import 'immer';
1
+ import * as _reduxjs_toolkit from '@reduxjs/toolkit';
2
+ import { EnhancedStore, PayloadAction } from '@reduxjs/toolkit';
3
+ import * as _tanstack_react_query from '@tanstack/react-query';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import { ReactNode } from 'react';
6
+ import { TypedUseSelectorHook } from 'react-redux';
7
+ import * as redux_thunk from 'redux-thunk';
8
+ import * as redux from 'redux';
9
+ import * as immer from 'immer';
10
+
11
+ declare enum KeyConstants {
12
+ PROFILE = "userinfo",
13
+ CURRENT_COMPANY = "current_company",
14
+ LIST_COMPANY = "list_company",
15
+ COMPANY_INFO = "company_info",
16
+ MENU = "menus",
17
+ GET_VIEW_BY_ACTION = "get_view_by_action",
18
+ ACTION_DETAIL = "action_detail",
19
+ GET_DATA_SELECTION = "get_data_select",
20
+ WEB_SAVE = "web_save",
21
+ WEB_READ = "web_read",
22
+ GET_PROVIDER = "get_provider"
23
+ }
24
+
25
+ declare enum MethodConstants {
26
+ WEB_SEARCH_READ = "web_search_read",
27
+ WEB_READ_GROUP = "web_read_group",
28
+ WEB_READ = "web_read",
29
+ WEB_SAVE = "web_save",
30
+ UNLINK = "unlink",
31
+ ONCHANGE = "onchange",
32
+ GET_ONCHANGE_FIELDS = "get_fields_onchange",
33
+ GET_FIELD_VIEW = "get_fields_view_v2"
34
+ }
35
+
36
+ declare enum UriConstants {
37
+ AUTH_TOKEN_PATH = "/authentication/oauth2/token",
38
+ GENTOKEN_SOCIAL = "/token/generate",
39
+ CALL_PATH = "/call",
40
+ COMPANY_PATH = "/company",
41
+ PROFILE_PATH = "/userinfo",
42
+ RESET_PASSWORD_PATH = "/reset_password",
43
+ CHANGE_PASSWORD_PATH = "/change_password",
44
+ UPDATE_PASSWORD_PATH = "/change_password_parent",
45
+ LOAD_ACTION = "/load_action",
46
+ REPORT_PATH = "/report",
47
+ RUN_ACTION_PATH = "/run_action",
48
+ UPLOAD_FILE_PATH = "/upload/file",
49
+ GET_MESSAGE = "/chatter/thread/messages",
50
+ SENT_MESSAGE = "/chatter/message/post",
51
+ UPLOAD_IMAGE = "/mail/attachment/upload",
52
+ DELETE_MESSAGE = "/chatter/message/update_content",
53
+ IMAGE_PATH = "/web/image",
54
+ LOAD_MESSAGE = "/load_message_failures",
55
+ TOKEN = "/check_token",
56
+ CREATE_UPDATE_PATH = "/create_update",
57
+ TWOFA_METHOD_PATH = "/id/api/v2/call",
58
+ SIGNIN_SSO = "/signin-sso/oauth"
59
+ }
60
+
61
+ declare enum FieldTypeConstants {
62
+ CHAR = "char",
63
+ TEXT = "text",
64
+ INTEGER = "integer",
65
+ FLOAT = "float",
66
+ BOOLEAN = "boolean",
67
+ DATE = "date",
68
+ DATETIME = "datetime",
69
+ BINARY = "binary",
70
+ SELECTION = "selection",
71
+ HTML = "html",
72
+ MANY2ONE = "many2one",
73
+ ONE2MANY = "one2many",
74
+ MANY2MANY = "many2many",
75
+ MONETARY = "monetary",
76
+ REFERENCE = "reference",
77
+ FUNCTION = "function",
78
+ PROPERTY = "property"
79
+ }
80
+
81
+ declare enum MethodType {
82
+ CREATE = 0,
83
+ UPDATE = 1,
84
+ DELETE = 2,
85
+ UNLINK = 3,
86
+ NO_CHANGE = 4
87
+ }
88
+
89
+ declare enum ModelConstants {
90
+ MENU = "ir.ui.menu",
91
+ USER = "res.users",
92
+ COMPANY = "res.company",
93
+ WINDOW_ACTION = "ir.actions.act_window",
94
+ BASE_IMPORT = "base_import.import",
95
+ GET_IMPORT = "get_import_templates"
96
+ }
97
+
98
+ declare enum ComponentType {
99
+ TREE = "tree",
100
+ GROUP = "group",
101
+ LIST = "list",
102
+ FORM = "form",
103
+ FIELD = "field",
104
+ DIV = "div",
105
+ SPAN = "span"
106
+ }
107
+ declare const SearchType: {
108
+ FILTER: string;
109
+ SEARCH: string;
110
+ GROUP: string;
111
+ };
112
+
113
+ declare enum WIDGETAVATAR {
114
+ many2one_avatar_user = "many2one_avatar_user",
115
+ many2many_avatar_user = "many2many_avatar_user"
116
+ }
117
+
118
+ declare enum WIDGETCOLOR {
119
+ many2many_tags = "many2many_tags",
120
+ helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
121
+ }
122
+
123
+ declare enum WIDGETSTATUS {
124
+ sla_status_ids = "sla_status_ids"
125
+ }
126
+ declare enum WIDGETNOSTRING {
127
+ sla_status_ids = "sla_status_ids"
128
+ }
129
+
130
+ declare global {
131
+ interface Global {
132
+ envStore?: EnvStore;
133
+ }
134
+ interface Window {
135
+ envStore?: EnvStore;
136
+ }
137
+ }
138
+ declare class EnvStore {
139
+ envStore: EnhancedStore | any;
140
+ baseUrl?: string;
141
+ requests?: any;
142
+ context?: any;
143
+ defaultCompany?: any;
144
+ config?: any;
145
+ companies?: any[];
146
+ user?: any;
147
+ db?: string;
148
+ localStorageUtils?: any;
149
+ sessionStorageUtils?: any;
150
+ constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
151
+ setup(): void;
152
+ setupEnv(envConfig: EnvStore): void;
153
+ setUid(uid: number): void;
154
+ setLang(lang: string): void;
155
+ setAllowCompanies(allowCompanies: number[]): void;
156
+ setCompanies(companies: any[]): void;
157
+ setDefaultCompany(company: any): void;
158
+ setUserInfo(userInfo: any): void;
159
+ }
160
+ declare let env: EnvStore | null;
161
+ declare function initEnv({}: {}): EnvStore;
162
+ declare function getEnv(): EnvStore;
163
+
164
+ declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
165
+
166
+ interface Specification {
167
+ [key: string]: any;
168
+ }
169
+ interface ContextApi {
170
+ [key: string]: any;
171
+ }
172
+ interface GetAllParams {
173
+ model?: string;
174
+ ids?: number[];
175
+ specification: Specification;
176
+ domain?: any[];
177
+ offset?: number;
178
+ sort: any;
179
+ fields: any;
180
+ groupby: any;
181
+ context?: ContextApi;
182
+ limit?: number;
183
+ }
184
+ interface GetListParams {
185
+ model: string;
186
+ ids?: number[];
187
+ specification?: Specification;
188
+ domain?: any[];
189
+ offset?: number;
190
+ order?: string;
191
+ context?: ContextApi;
192
+ limit?: number;
193
+ }
194
+ interface GetDetailParams {
195
+ ids?: number[];
196
+ model?: string;
197
+ specification?: Specification;
198
+ context?: ContextApi;
199
+ }
200
+ interface SaveParams {
201
+ model: string;
202
+ ids?: number[] | [];
203
+ data?: Record<string, any>;
204
+ specification?: Specification;
205
+ context?: ContextApi;
206
+ }
207
+ interface DeleteParams {
208
+ ids?: number[];
209
+ model: string;
210
+ }
211
+ interface OnChangeParams {
212
+ ids?: number[];
213
+ model: string;
214
+ object?: Record<string, any>;
215
+ specification: Specification;
216
+ context?: ContextApi;
217
+ fieldChange?: string[];
218
+ }
219
+ interface ViewData {
220
+ models?: {
221
+ [key: string]: {
222
+ [key: string]: {
223
+ type: string;
224
+ relation?: string;
225
+ };
226
+ };
227
+ };
228
+ }
229
+
230
+ interface LoginCredentialBody {
231
+ email: string;
232
+ password: string;
233
+ path?: string;
234
+ }
235
+ interface ResetPasswordRequest {
236
+ password: string;
237
+ confirmPassword: string;
238
+ }
239
+ interface UpdatePasswordRequest {
240
+ newPassword: string;
241
+ oldPassword: string;
242
+ }
243
+ interface ForgotPasswordBody {
244
+ data: ResetPasswordRequest;
245
+ token: string | null;
246
+ }
247
+ interface updatePasswordBody {
248
+ data: UpdatePasswordRequest;
249
+ token: string | null;
250
+ }
251
+ interface SocialTokenBody {
252
+ state: object;
253
+ access_token: string;
254
+ db: string;
255
+ }
256
+
257
+ interface BaseModelInit$1 {
258
+ name: string;
259
+ view: Record<string, any>;
260
+ actContext?: Record<string, any>;
261
+ }
262
+
263
+ interface Config {
264
+ baseUrl: string;
265
+ grantType: string;
266
+ clientId: string;
267
+ clientSecret: string;
268
+ }
269
+
270
+ interface Context {
271
+ uid: number;
272
+ lang: string;
273
+ allowCompanys: number[];
274
+ [key: string]: any;
275
+ }
276
+
277
+ type View = [number | boolean, string];
278
+ type Option = {
279
+ action_id?: number;
280
+ load_filters?: boolean;
281
+ toolbar?: boolean;
282
+ };
283
+ interface GetViewParams {
284
+ model?: string;
285
+ views?: View[];
286
+ context?: Record<string, any>;
287
+ options?: Option;
288
+ aid?: number | string | null | boolean;
289
+ }
290
+
291
+ type TFormView = {
292
+ model: string;
293
+ id?: number | null;
294
+ context?: any;
295
+ };
296
+
297
+ interface BaseModelInit {
298
+ name: string;
299
+ view: Record<string, any>;
300
+ actContext?: Record<string, any>;
301
+ fields?: any;
302
+ }
303
+ declare class BaseModel {
304
+ name: string;
305
+ view: Record<string, any>;
306
+ actContext?: Record<string, any>;
307
+ fields?: any;
308
+ constructor(init: BaseModelInit);
309
+ private getSpecificationByFields;
310
+ getTreeProps(): Record<string, any>;
311
+ getTreeFields(): Record<string, any>[];
312
+ getSpecification(): Record<string, any>;
313
+ }
314
+
315
+ type GetSelectionType = {
316
+ domain: any;
317
+ context: any;
318
+ model: string;
319
+ specification?: any;
320
+ };
321
+
322
+ declare const MainProvider: ({ children }: {
323
+ children: ReactNode;
324
+ }) => react_jsx_runtime.JSX.Element;
325
+
326
+ declare const ReactQueryProvider: ({ children }: {
327
+ children: ReactNode;
328
+ }) => react_jsx_runtime.JSX.Element;
329
+
330
+ declare const VersionGate: ({ children }: {
331
+ children: ReactNode;
332
+ }) => react_jsx_runtime.JSX.Element | null;
333
+
334
+ declare const ActionService: {
335
+ loadAction({ idAction, context, }: {
336
+ idAction: number;
337
+ context: ContextApi;
338
+ }): Promise<any>;
339
+ callButton({ model, ids, context, method, }: {
340
+ model: string;
341
+ ids: Record<string, any>[] | any;
342
+ context: ContextApi;
343
+ method: any;
344
+ }): Promise<any>;
345
+ removeRows({ model, ids, context, }: {
346
+ model: string;
347
+ ids: Record<string, any>[] | any;
348
+ context: ContextApi;
349
+ }): Promise<any>;
350
+ duplicateRecord({ model, id, context, }: {
351
+ model: string;
352
+ id: any;
353
+ context: ContextApi;
354
+ }): Promise<any>;
355
+ print({ id, report, db }: {
356
+ id: number;
357
+ report: any;
358
+ db: any;
359
+ }): Promise<any>;
360
+ runAction({ idAction, context, }: {
361
+ idAction: number;
362
+ context: ContextApi;
363
+ }): Promise<any>;
364
+ };
365
+
366
+ declare const AuthService: {
367
+ login(body: LoginCredentialBody): Promise<any>;
368
+ forgotPassword(email: string): Promise<any>;
369
+ resetPassword(data: ResetPasswordRequest, token: string | null): Promise<any>;
370
+ updatePassword(data: UpdatePasswordRequest, token: string | null): Promise<any>;
371
+ isValidToken(token: string | null): Promise<any>;
372
+ loginSocial({ state, access_token, }: {
373
+ state: object;
374
+ access_token: string;
375
+ }): Promise<any>;
376
+ getProviders(db?: string): Promise<any>;
377
+ };
378
+
379
+ declare const CompanyService: {
380
+ getCurrentCompany(): Promise<any>;
381
+ getInfoCompany(id: number): Promise<any>;
382
+ };
383
+
384
+ declare const ExcelService: {
385
+ uploadFile({ formData }: {
386
+ formData: any;
387
+ }): Promise<any>;
388
+ uploadIdFile({ formData }: {
389
+ formData: any;
390
+ }): Promise<any>;
391
+ parsePreview({ id, selectedSheet, isHeader, context, }: {
392
+ id: any;
393
+ selectedSheet: any;
394
+ isHeader: boolean;
395
+ context: any;
396
+ }): Promise<any>;
397
+ executeImport({ columns, fields, idFile, options, dryrun, context, }: {
398
+ columns: any;
399
+ fields: any;
400
+ idFile: any;
401
+ options: any;
402
+ dryrun: any;
403
+ context: any;
404
+ }): Promise<any>;
405
+ getFileExcel({ model, context }: {
406
+ model: string;
407
+ context: any;
408
+ }): Promise<any>;
409
+ getFieldExport({ ids, model, isShow, parentField, fieldType, parentName, prefix, name, context, importCompat, }: {
410
+ ids: any;
411
+ model: string;
412
+ isShow?: boolean;
413
+ parentField?: any;
414
+ fieldType?: any;
415
+ parentName?: any;
416
+ prefix?: any;
417
+ name?: any;
418
+ context: any;
419
+ importCompat?: any;
420
+ }): Promise<any>;
421
+ exportExcel({ model, domain, ids, fields, type, importCompat, context, groupby, }: {
422
+ model: string;
423
+ domain: any;
424
+ ids: any;
425
+ fields: any;
426
+ type: any;
427
+ importCompat: any;
428
+ context: any;
429
+ groupby: any;
430
+ }): Promise<any>;
431
+ };
432
+
433
+ declare const FormService: {
434
+ getComment({ data }: {
435
+ data: any;
436
+ }): Promise<any>;
437
+ sentComment({ data }: any): Promise<any>;
438
+ deleteComment({ data }: {
439
+ data: any;
440
+ }): Promise<any>;
441
+ getImage({ data }: {
442
+ data: any;
443
+ }): Promise<any>;
444
+ uploadImage({ data }: {
445
+ data: any;
446
+ }): Promise<any>;
447
+ getFormView({ data }: {
448
+ data: TFormView;
449
+ }): Promise<any>;
450
+ changeStatus({ data }: any): Promise<any>;
451
+ };
452
+
453
+ declare const ModelService: {
454
+ getAll({ data }: {
455
+ data: any;
456
+ }): Promise<any>;
457
+ getList({ model, ids, specification, domain, offset, order, context, limit, }: GetListParams): Promise<any>;
458
+ getDetail({ ids, model, specification, context, }: GetDetailParams): Promise<any>;
459
+ save({ model, ids, data, specification, context, }: SaveParams): Promise<any>;
460
+ delete({ ids, model }: DeleteParams): Promise<any>;
461
+ onChange({ ids, model, object, specification, context, fieldChange, }: OnChangeParams): Promise<any>;
462
+ getListFieldsOnchange({ model }: {
463
+ model: string;
464
+ }): Promise<any>;
465
+ parseORMOdoo(data: Record<string, any>): Record<string, any>;
466
+ toDataJS(data: Record<string, any>, viewData?: ViewData, model?: string): Record<string, any>;
467
+ };
468
+
469
+ declare const UserService: {
470
+ getProfile(): Promise<any>;
471
+ getUser({ context, id }: {
472
+ context: any;
473
+ id: any;
474
+ }): Promise<any>;
475
+ switchUserLocale: ({ id, values }: any) => Promise<any>;
476
+ };
477
+
478
+ declare const ViewService: {
479
+ getView({ model, views, context, options, aid, }: GetViewParams): Promise<any>;
480
+ getMenu(context: Context): Promise<any>;
481
+ getSelectionItem({ data }: {
482
+ data: GetSelectionType;
483
+ }): Promise<any>;
484
+ loadMessages(): Promise<any>;
485
+ getVersion(): Promise<any>;
486
+ };
487
+
488
+ interface UserInfor {
489
+ address?: {
490
+ country?: boolean;
491
+ formatted?: string;
492
+ locality?: boolean;
493
+ postal_code?: boolean;
494
+ region?: boolean;
495
+ street_address?: boolean;
496
+ };
497
+ email?: string;
498
+ locale?: string;
499
+ name?: string;
500
+ partner_id?: {
501
+ id?: number;
502
+ stud_id?: boolean;
503
+ };
504
+ phone_number?: boolean;
505
+ sub?: number;
506
+ updated_at?: string;
507
+ username?: string;
508
+ website?: boolean;
509
+ zoneinfo?: string;
510
+ image?: string;
511
+ }
512
+ interface ProfileStateType {
513
+ profile: UserInfor;
514
+ }
515
+ declare const profileSlice: _reduxjs_toolkit.Slice<ProfileStateType, {
516
+ setProfile: (state: immer.WritableDraft<ProfileStateType>, action: {
517
+ payload: any;
518
+ type: string;
519
+ }) => void;
520
+ }, "profile", "profile", _reduxjs_toolkit.SliceSelectors<ProfileStateType>>;
521
+ declare const setProfile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "profile/setProfile">;
522
+ declare const selectProfile: (state: RootState) => ProfileStateType;
523
+
524
+ interface ExcelState {
525
+ dataParse: any | null;
526
+ idFile: any | null;
527
+ isFileLoaded: boolean;
528
+ loadingImport: any;
529
+ selectedFile: any;
530
+ errorData: any;
531
+ }
532
+ declare const excelSlice: _reduxjs_toolkit.Slice<ExcelState, {
533
+ setDataParse: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
534
+ setIdFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
535
+ setIsFileLoaded: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
536
+ setLoadingImport: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
537
+ setSelectedFile: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
538
+ setErrorData: (state: immer.WritableDraft<ExcelState>, action: PayloadAction<any>) => void;
539
+ }, "excel", "excel", _reduxjs_toolkit.SliceSelectors<ExcelState>>;
540
+ declare const setDataParse: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setDataParse">;
541
+ declare const setIdFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIdFile">;
542
+ declare const setIsFileLoaded: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setIsFileLoaded">;
543
+ declare const setLoadingImport: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setLoadingImport">;
544
+ declare const setSelectedFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setSelectedFile">;
545
+ declare const setErrorData: _reduxjs_toolkit.ActionCreatorWithPayload<any, "excel/setErrorData">;
546
+ declare const selectExcel: (state: RootState) => ExcelState;
547
+
548
+ interface ViewDataStore {
549
+ [key: string]: any;
550
+ }
551
+ interface FormState {
552
+ viewDataStore: ViewDataStore;
553
+ isShowingModalDetail: boolean;
554
+ isShowModalTranslate: boolean;
555
+ formSubmitComponent: Record<string, React.ReactNode>;
556
+ fieldTranslation: any;
557
+ listSubject: any;
558
+ dataUser: any;
559
+ }
560
+ declare const formSlice: _reduxjs_toolkit.Slice<FormState, {
561
+ setViewDataStore: (state: FormState, action: PayloadAction<ViewDataStore>) => void;
562
+ setIsShowingModalDetail: (state: FormState, action: PayloadAction<boolean>) => void;
563
+ setIsShowModalTranslate: (state: FormState, action: PayloadAction<boolean>) => void;
564
+ setFormSubmitComponent: (state: immer.WritableDraft<FormState>, action: PayloadAction<{
565
+ key: string;
566
+ component: any;
567
+ }>) => void;
568
+ setFieldTranslate: (state: FormState, action: PayloadAction<any>) => void;
569
+ setListSubject: (state: FormState, action: PayloadAction<any>) => void;
570
+ setDataUser: (state: FormState, action: PayloadAction<any>) => void;
571
+ }, "form", "form", _reduxjs_toolkit.SliceSelectors<FormState>>;
572
+ declare const setViewDataStore: _reduxjs_toolkit.ActionCreatorWithPayload<ViewDataStore, "form/setViewDataStore">;
573
+ declare const setIsShowingModalDetail: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowingModalDetail">;
574
+ declare const setIsShowModalTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<boolean, "form/setIsShowModalTranslate">;
575
+ declare const setFormSubmitComponent: _reduxjs_toolkit.ActionCreatorWithPayload<{
576
+ key: string;
577
+ component: any;
578
+ }, "form/setFormSubmitComponent">;
579
+ declare const setFieldTranslate: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setFieldTranslate">;
580
+ declare const setListSubject: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setListSubject">;
581
+ declare const setDataUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "form/setDataUser">;
582
+ declare const selectForm: (state: RootState) => FormState;
583
+
584
+ interface SearchState {
585
+ groupByDomain: any;
586
+ tableHead: any;
587
+ searchString: string;
588
+ hoveredIndexSearchList: any;
589
+ selectedTags: [];
590
+ firstDomain: any;
591
+ searchMap: Record<string, any[]>;
592
+ typeFieldsSearch: string;
593
+ modelSearch: string;
594
+ filterBy: any;
595
+ groupBy: any;
596
+ }
597
+ declare const searchSlice: _reduxjs_toolkit.Slice<SearchState, {
598
+ setGroupByDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string | null>) => void;
599
+ setTableHead: (state: immer.WritableDraft<SearchState>, action: any) => void;
600
+ setSearchString: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
601
+ setHoveredIndexSearchList: (state: immer.WritableDraft<SearchState>, action: PayloadAction<number | null>) => void;
602
+ setSelectedTags: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
603
+ setFirstDomain: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
604
+ setTypeFieldsSearch: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
605
+ setModelSearch: (state: immer.WritableDraft<SearchState>, action: PayloadAction<string>) => void;
606
+ setFilterBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
607
+ setGroupBy: (state: immer.WritableDraft<SearchState>, action: PayloadAction<any>) => void;
608
+ setSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<Record<string, any>>) => void;
609
+ updateSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
610
+ key: string;
611
+ value: any;
612
+ }>) => void;
613
+ removeKeyFromSearchMap: (state: immer.WritableDraft<SearchState>, action: PayloadAction<{
614
+ key: string;
615
+ item?: any;
616
+ }>) => void;
617
+ clearSearchMap: (state: immer.WritableDraft<SearchState>) => void;
618
+ }, "search", "search", _reduxjs_toolkit.SliceSelectors<SearchState>>;
619
+ declare const setGroupByDomain: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "search/setGroupByDomain">;
620
+ declare const setSelectedTags: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setSelectedTags">;
621
+ declare const setSearchString: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setSearchString">;
622
+ declare const setHoveredIndexSearchList: _reduxjs_toolkit.ActionCreatorWithPayload<number | null, "search/setHoveredIndexSearchList">;
623
+ declare const setFirstDomain: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFirstDomain">;
624
+ declare const setTableHead: _reduxjs_toolkit.ActionCreatorWithNonInferrablePayload<"search/setTableHead"> | _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/setTableHead">;
625
+ declare const setFilterBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setFilterBy">;
626
+ declare const setTypeFieldsSearch: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setTypeFieldsSearch">;
627
+ declare const setModelSearch: _reduxjs_toolkit.ActionCreatorWithPayload<string, "search/setModelSearch">;
628
+ declare const setSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "search/setSearchMap">;
629
+ declare const updateSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
630
+ key: string;
631
+ value: any;
632
+ }, "search/updateSearchMap">;
633
+ declare const removeKeyFromSearchMap: _reduxjs_toolkit.ActionCreatorWithPayload<{
634
+ key: string;
635
+ item?: any;
636
+ }, "search/removeKeyFromSearchMap">;
637
+ declare const setGroupBy: _reduxjs_toolkit.ActionCreatorWithPayload<any, "search/setGroupBy">;
638
+ declare const clearSearchMap: _reduxjs_toolkit.ActionCreatorWithoutPayload<"search/clearSearchMap">;
639
+ declare const selectSearch: (state: RootState) => SearchState;
640
+ declare const selectSearchMap: (state: RootState) => Record<string, any[]>;
641
+
642
+ interface ListState {
643
+ pageLimit: number;
644
+ fields: Record<string, any>;
645
+ order: string | null;
646
+ selectedRowKeys: number[];
647
+ indexRowTableModal: number;
648
+ footerGroupTable: Record<string, any>;
649
+ page: number;
650
+ domainTable?: any;
651
+ }
652
+ declare const listSlice: _reduxjs_toolkit.Slice<ListState, {
653
+ setPageLimit: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
654
+ setFields: (state: immer.WritableDraft<ListState>, action: PayloadAction<Record<string, any>>) => void;
655
+ setOrder: (state: immer.WritableDraft<ListState>, action: PayloadAction<string | null>) => void;
656
+ setSelectedRowKeys: (state: immer.WritableDraft<ListState>, action: PayloadAction<number[]>) => void;
657
+ setIndexRowTableModal: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
658
+ setPage: (state: immer.WritableDraft<ListState>, action: PayloadAction<number>) => void;
659
+ setDomainTable: (state: immer.WritableDraft<ListState>, action: PayloadAction<any[]>) => void;
660
+ }, "list", "list", _reduxjs_toolkit.SliceSelectors<ListState>>;
661
+ declare const setPageLimit: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPageLimit">;
662
+ declare const setFields: _reduxjs_toolkit.ActionCreatorWithPayload<Record<string, any>, "list/setFields">;
663
+ declare const setOrder: _reduxjs_toolkit.ActionCreatorWithPayload<string | null, "list/setOrder">;
664
+ declare const setSelectedRowKeys: _reduxjs_toolkit.ActionCreatorWithPayload<number[], "list/setSelectedRowKeys">;
665
+ declare const setIndexRowTableModal: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setIndexRowTableModal">;
666
+ declare const setPage: _reduxjs_toolkit.ActionCreatorWithPayload<number, "list/setPage">;
667
+ declare const setDomainTable: _reduxjs_toolkit.ActionCreatorWithPayload<any[], "list/setDomainTable">;
668
+ declare const selectList: (state: RootState) => ListState;
669
+
670
+ interface NavbarStateType {
671
+ menuList: any;
672
+ }
673
+ declare const navbarSlice: _reduxjs_toolkit.Slice<NavbarStateType, {
674
+ setMenuList: (state: immer.WritableDraft<NavbarStateType>, action: {
675
+ payload: any;
676
+ type: string;
677
+ }) => void;
678
+ }, "navbar", "navbar", _reduxjs_toolkit.SliceSelectors<NavbarStateType>>;
679
+ declare const setMenuList: _reduxjs_toolkit.ActionCreatorWithPayload<any, "navbar/setMenuList">;
680
+ declare const selectNavbar: (state: RootState) => NavbarStateType;
681
+
682
+ declare const envStore: _reduxjs_toolkit.EnhancedStore<{
683
+ env: {
684
+ baseUrl: string;
685
+ requests: null;
686
+ companies: never[];
687
+ user: {};
688
+ envFile: null;
689
+ defaultCompany: {
690
+ id: null;
691
+ logo: string;
692
+ secondary_color: string;
693
+ primary_color: string;
694
+ };
695
+ context: {
696
+ uid: null;
697
+ allowed_company_ids: never[];
698
+ lang: string;
699
+ tz: string;
700
+ };
701
+ };
702
+ navbar: NavbarStateType;
703
+ list: ListState;
704
+ search: SearchState;
705
+ form: FormState;
706
+ excel: ExcelState;
707
+ profile: ProfileStateType;
708
+ }, redux.UnknownAction, _reduxjs_toolkit.Tuple<[redux.StoreEnhancer<{
709
+ dispatch: redux_thunk.ThunkDispatch<{
710
+ env: {
711
+ baseUrl: string;
712
+ requests: null;
713
+ companies: never[];
714
+ user: {};
715
+ envFile: null;
716
+ defaultCompany: {
717
+ id: null;
718
+ logo: string;
719
+ secondary_color: string;
720
+ primary_color: string;
721
+ };
722
+ context: {
723
+ uid: null;
724
+ allowed_company_ids: never[];
725
+ lang: string;
726
+ tz: string;
727
+ };
728
+ };
729
+ navbar: NavbarStateType;
730
+ list: ListState;
731
+ search: SearchState;
732
+ form: FormState;
733
+ excel: ExcelState;
734
+ profile: ProfileStateType;
735
+ }, undefined, redux.UnknownAction>;
736
+ }>, redux.StoreEnhancer]>>;
737
+
738
+ declare const envSlice: _reduxjs_toolkit.Slice<{
739
+ baseUrl: string;
740
+ requests: null;
741
+ companies: never[];
742
+ user: {};
743
+ envFile: null;
744
+ defaultCompany: {
745
+ id: null;
746
+ logo: string;
747
+ secondary_color: string;
748
+ primary_color: string;
749
+ };
750
+ context: {
751
+ uid: null;
752
+ allowed_company_ids: never[];
753
+ lang: string;
754
+ tz: string;
755
+ };
756
+ }, {
757
+ setEnv: (state: immer.WritableDraft<{
758
+ baseUrl: string;
759
+ requests: null;
760
+ companies: never[];
761
+ user: {};
762
+ envFile: null;
763
+ defaultCompany: {
764
+ id: null;
765
+ logo: string;
766
+ secondary_color: string;
767
+ primary_color: string;
768
+ };
769
+ context: {
770
+ uid: null;
771
+ allowed_company_ids: never[];
772
+ lang: string;
773
+ tz: string;
774
+ };
775
+ }>, action: {
776
+ payload: any;
777
+ type: string;
778
+ }) => void;
779
+ setUid: (state: immer.WritableDraft<{
780
+ baseUrl: string;
781
+ requests: null;
782
+ companies: never[];
783
+ user: {};
784
+ envFile: null;
785
+ defaultCompany: {
786
+ id: null;
787
+ logo: string;
788
+ secondary_color: string;
789
+ primary_color: string;
790
+ };
791
+ context: {
792
+ uid: null;
793
+ allowed_company_ids: never[];
794
+ lang: string;
795
+ tz: string;
796
+ };
797
+ }>, action: {
798
+ payload: any;
799
+ type: string;
800
+ }) => void;
801
+ setAllowCompanies: (state: immer.WritableDraft<{
802
+ baseUrl: string;
803
+ requests: null;
804
+ companies: never[];
805
+ user: {};
806
+ envFile: null;
807
+ defaultCompany: {
808
+ id: null;
809
+ logo: string;
810
+ secondary_color: string;
811
+ primary_color: string;
812
+ };
813
+ context: {
814
+ uid: null;
815
+ allowed_company_ids: never[];
816
+ lang: string;
817
+ tz: string;
818
+ };
819
+ }>, action: {
820
+ payload: any;
821
+ type: string;
822
+ }) => void;
823
+ setCompanies: (state: immer.WritableDraft<{
824
+ baseUrl: string;
825
+ requests: null;
826
+ companies: never[];
827
+ user: {};
828
+ envFile: null;
829
+ defaultCompany: {
830
+ id: null;
831
+ logo: string;
832
+ secondary_color: string;
833
+ primary_color: string;
834
+ };
835
+ context: {
836
+ uid: null;
837
+ allowed_company_ids: never[];
838
+ lang: string;
839
+ tz: string;
840
+ };
841
+ }>, action: {
842
+ payload: any;
843
+ type: string;
844
+ }) => void;
845
+ setDefaultCompany: (state: immer.WritableDraft<{
846
+ baseUrl: string;
847
+ requests: null;
848
+ companies: never[];
849
+ user: {};
850
+ envFile: null;
851
+ defaultCompany: {
852
+ id: null;
853
+ logo: string;
854
+ secondary_color: string;
855
+ primary_color: string;
856
+ };
857
+ context: {
858
+ uid: null;
859
+ allowed_company_ids: never[];
860
+ lang: string;
861
+ tz: string;
862
+ };
863
+ }>, action: {
864
+ payload: any;
865
+ type: string;
866
+ }) => void;
867
+ setLang: (state: immer.WritableDraft<{
868
+ baseUrl: string;
869
+ requests: null;
870
+ companies: never[];
871
+ user: {};
872
+ envFile: null;
873
+ defaultCompany: {
874
+ id: null;
875
+ logo: string;
876
+ secondary_color: string;
877
+ primary_color: string;
878
+ };
879
+ context: {
880
+ uid: null;
881
+ allowed_company_ids: never[];
882
+ lang: string;
883
+ tz: string;
884
+ };
885
+ }>, action: {
886
+ payload: any;
887
+ type: string;
888
+ }) => void;
889
+ setUser: (state: immer.WritableDraft<{
890
+ baseUrl: string;
891
+ requests: null;
892
+ companies: never[];
893
+ user: {};
894
+ envFile: null;
895
+ defaultCompany: {
896
+ id: null;
897
+ logo: string;
898
+ secondary_color: string;
899
+ primary_color: string;
900
+ };
901
+ context: {
902
+ uid: null;
903
+ allowed_company_ids: never[];
904
+ lang: string;
905
+ tz: string;
906
+ };
907
+ }>, action: {
908
+ payload: any;
909
+ type: string;
910
+ }) => void;
911
+ setEnvFile: (state: immer.WritableDraft<{
912
+ baseUrl: string;
913
+ requests: null;
914
+ companies: never[];
915
+ user: {};
916
+ envFile: null;
917
+ defaultCompany: {
918
+ id: null;
919
+ logo: string;
920
+ secondary_color: string;
921
+ primary_color: string;
922
+ };
923
+ context: {
924
+ uid: null;
925
+ allowed_company_ids: never[];
926
+ lang: string;
927
+ tz: string;
928
+ };
929
+ }>, action: {
930
+ payload: any;
931
+ type: string;
932
+ }) => void;
933
+ }, "env", "env", _reduxjs_toolkit.SliceSelectors<{
934
+ baseUrl: string;
935
+ requests: null;
936
+ companies: never[];
937
+ user: {};
938
+ envFile: null;
939
+ defaultCompany: {
940
+ id: null;
941
+ logo: string;
942
+ secondary_color: string;
943
+ primary_color: string;
944
+ };
945
+ context: {
946
+ uid: null;
947
+ allowed_company_ids: never[];
948
+ lang: string;
949
+ tz: string;
950
+ };
951
+ }>>;
952
+ declare const setEnv: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnv">;
953
+ declare const setUid: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUid">;
954
+ declare const setLang: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setLang">;
955
+ declare const setAllowCompanies: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setAllowCompanies">;
956
+ declare const setCompanies: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setCompanies">;
957
+ declare const setDefaultCompany: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setDefaultCompany">;
958
+ declare const setUser: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setUser">;
959
+ declare const setEnvFile: _reduxjs_toolkit.ActionCreatorWithPayload<any, "env/setEnvFile">;
960
+ declare const selectEnv: (state: RootState) => {
961
+ baseUrl: string;
962
+ requests: null;
963
+ companies: never[];
964
+ user: {};
965
+ envFile: null;
966
+ defaultCompany: {
967
+ id: null;
968
+ logo: string;
969
+ secondary_color: string;
970
+ primary_color: string;
971
+ };
972
+ context: {
973
+ uid: null;
974
+ allowed_company_ids: never[];
975
+ lang: string;
976
+ tz: string;
977
+ };
978
+ };
979
+
980
+ type RootState = ReturnType<typeof envStore.getState>;
981
+ type AppDispatch = typeof envStore.dispatch;
982
+ declare const useAppDispatch: () => AppDispatch;
983
+ declare const useAppSelector: TypedUseSelectorHook<RootState>;
984
+
985
+ type AST = {
986
+ type: number;
987
+ value: any;
988
+ };
989
+ type Condition = [string | 0 | 1, string, any];
990
+ type DomainListRepr = ('&' | '|' | '!' | Condition)[];
991
+ type DomainRepr = DomainListRepr | string | Domain;
992
+ declare class Domain {
993
+ ast: AST;
994
+ static TRUE: Domain;
995
+ static FALSE: Domain;
996
+ static combine(domains: DomainRepr[], operator: 'AND' | 'OR'): Domain;
997
+ static and(domains: DomainRepr[]): Domain;
998
+ static or(domains: DomainRepr[]): Domain;
999
+ static not(domain: DomainRepr): Domain;
1000
+ static removeDomainLeaves(domain: DomainRepr, keysToRemove: string[]): Domain;
1001
+ constructor(descr?: DomainRepr);
1002
+ contains(record: any): boolean;
1003
+ toString(): string;
1004
+ toList(context: Record<string, any>): DomainListRepr;
1005
+ toJson(): DomainListRepr | string;
1006
+ }
1007
+
1008
+ declare const evalJSONContext: (_context: any, context?: {}) => Context | null;
1009
+ declare const evalJSONDomain: (domain: any, context: any) => any;
1010
+ declare const formatSortingString: (input: string | null | undefined) => string | null;
1011
+ declare const domainHelper: {
1012
+ checkDomain: (context: any, domain: any) => boolean;
1013
+ matchDomains: (context: any, domains: any) => boolean;
1014
+ Domain: typeof Domain;
1015
+ };
1016
+ declare const toQueryString: (params: Record<string, string | number | boolean>) => string;
1017
+ declare const stringToColor: (name: string, id: number) => string;
1018
+ declare const getFieldsOnChange: (fields: any) => any;
1019
+ declare const formatUrlPath: ({ viewType, aid, model, id, actionPath, }: {
1020
+ viewType: "list" | "form" | "kanban" | any;
1021
+ actionPath: string;
1022
+ aid: string | number;
1023
+ model: string;
1024
+ id?: string | number;
1025
+ }) => string;
1026
+ declare const removeUndefinedFields: <T extends Record<string, any>>(obj: T) => Partial<T>;
1027
+ declare const useTabModel: (viewData: any, onchangeData: any) => any;
1028
+ declare const isBase64File: (str: any) => boolean;
1029
+ declare const isBase64Image: (str: any) => boolean;
1030
+ declare const checkIsImageLink: (url: any) => boolean;
1031
+ declare const formatFileSize: (size: any) => string;
1032
+ declare const getSubdomain: (url?: string) => string | null;
1033
+
1034
+ interface CompanyData {
1035
+ id?: number;
1036
+ name?: string;
1037
+ [key: string]: any;
1038
+ }
1039
+ interface CompanyResponse {
1040
+ data: CompanyData;
1041
+ status: number;
1042
+ [key: string]: any;
1043
+ }
1044
+ declare class CompanyModel extends BaseModel {
1045
+ constructor(init: BaseModelInit$1);
1046
+ getCurrentCompany(): Promise<CompanyResponse>;
1047
+ getUserCompany(id: number): Promise<CompanyResponse>;
1048
+ }
1049
+
1050
+ interface UserData {
1051
+ id?: number;
1052
+ name?: string;
1053
+ [key: string]: any;
1054
+ }
1055
+ interface UserResponse {
1056
+ data: UserData;
1057
+ status: number;
1058
+ [key: string]: any;
1059
+ }
1060
+ declare class UserModel extends BaseModel {
1061
+ constructor(init: BaseModelInit$1);
1062
+ getProfile(): Promise<UserResponse>;
1063
+ }
1064
+
1065
+ declare const axiosClient: {
1066
+ init(config: EnvStore): {
1067
+ get: (url: string, headers: any) => Promise<any>;
1068
+ post: (url: string, body: any, headers: any) => Promise<any>;
1069
+ post_excel: (url: string, body: any, headers: any) => Promise<any>;
1070
+ put: (url: string, body: any, headers: any) => Promise<any>;
1071
+ patch: (url: string, body: any) => Promise<any>;
1072
+ delete: (url: string, body: any) => Promise<any>;
1073
+ };
1074
+ };
1075
+
1076
+ export { ActionService, type AppDispatch, AuthService, BaseModel, type BaseModelInit$1 as BaseModelInit, CompanyModel, CompanyService, ComponentType, type Config, type Context, type ContextApi, type DeleteParams, EnvStore, ExcelService, FieldTypeConstants, type ForgotPasswordBody, FormService, type GetAllParams, type GetDetailParams, type GetListParams, type GetViewParams, KeyConstants, type LoginCredentialBody, MainProvider, MethodConstants, MethodType, ModelConstants, ModelService, type OnChangeParams, ReactQueryProvider, type ResetPasswordRequest, type RootState, type SaveParams, SearchType, type SocialTokenBody, type Specification, type UpdatePasswordRequest, UriConstants, UserModel, UserService, VersionGate, type View, type ViewData, ViewService, WIDGETAVATAR, WIDGETCOLOR, WIDGETNOSTRING, WIDGETSTATUS, axiosClient, checkIsImageLink, clearSearchMap, domainHelper, env, envSlice, envStore, evalJSONContext, evalJSONDomain, excelSlice, formSlice, formatFileSize, formatSortingString, formatUrlPath, getEnv, getFieldsOnChange, getSubdomain, initEnv, isBase64File, isBase64Image, listSlice, navbarSlice, profileSlice, removeKeyFromSearchMap, removeUndefinedFields, searchSlice, selectEnv, selectExcel, selectForm, selectList, selectNavbar, selectProfile, selectSearch, selectSearchMap, setAllowCompanies, setCompanies, setDataParse, setDataUser, setDefaultCompany, setDomainTable, setEnv, setEnvFile, setErrorData, setFieldTranslate, setFields, setFilterBy, setFirstDomain, setFormSubmitComponent, setGroupBy, setGroupByDomain, setHoveredIndexSearchList, setIdFile, setIndexRowTableModal, setIsFileLoaded, setIsShowModalTranslate, setIsShowingModalDetail, setLang, setListSubject, setLoadingImport, setMenuList, setModelSearch, setOrder, setPage, setPageLimit, setProfile, setSearchMap, setSearchString, setSelectedFile, setSelectedRowKeys, setSelectedTags, setTableHead, setTypeFieldsSearch, setUid, setUser, setViewDataStore, stringToColor, toQueryString, type updatePasswordBody, updateSearchMap, useAppDispatch, useAppSelector, useForgotPassword, useTabModel };