@fctc/edu-logic-lib 1.0.7 → 1.0.8
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.
- package/dist/base-model-type-DvO53Lwi.d.mts +7 -0
- package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
- package/dist/chunk-4K3QAEZ6.js +90 -0
- package/dist/chunk-6BLY7NZ6.mjs +120 -0
- package/dist/chunk-6QXB3XX7.mjs +256 -0
- package/dist/chunk-7JD5GMIZ.js +2 -0
- package/dist/chunk-AYUH66EE.mjs +62 -0
- package/dist/chunk-CZHZLKNA.mjs +585 -0
- package/dist/chunk-EK43MEN4.js +635 -0
- package/dist/chunk-ELARQVCE.mjs +2344 -0
- package/dist/chunk-FVGPSTJ7.js +122 -0
- package/dist/chunk-GGOFXFSX.js +2362 -0
- package/dist/chunk-IXDDYGKE.js +61 -0
- package/dist/chunk-MLJQPO4Q.mjs +57 -0
- package/dist/chunk-OADBRQ4A.js +32 -0
- package/dist/chunk-OBR6UTC5.mjs +1 -0
- package/dist/chunk-OFUXC2LA.mjs +86 -0
- package/dist/chunk-P2IGWJDZ.js +1068 -0
- package/dist/chunk-QLUONJPQ.mjs +519 -0
- package/dist/chunk-RWRHCIQI.mjs +1059 -0
- package/dist/chunk-RZBHZYXG.js +582 -0
- package/dist/chunk-S7B3VKMJ.mjs +85 -0
- package/dist/chunk-S7YF2I23.js +95 -0
- package/dist/chunk-UY6GNZNB.js +262 -0
- package/dist/chunk-XYVK476U.mjs +29 -0
- package/dist/chunk-YOV6KAT2.js +66 -0
- package/dist/config.d.mts +15 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +11 -0
- package/dist/config.mjs +2 -0
- package/dist/constants.d.mts +120 -0
- package/dist/constants.d.ts +120 -0
- package/dist/constants.js +55 -0
- package/dist/constants.mjs +2 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +37 -0
- package/dist/environment.d.ts +37 -0
- package/dist/environment.js +25 -0
- package/dist/environment.mjs +4 -0
- package/dist/hooks.d.mts +218 -0
- package/dist/hooks.d.ts +218 -0
- package/dist/hooks.js +194 -0
- package/dist/hooks.mjs +9 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +23 -1294
- package/dist/index.d.ts +23 -1294
- package/dist/index.js +626 -5320
- package/dist/index.mjs +12 -5165
- package/dist/models.d.mts +35 -0
- package/dist/models.d.ts +35 -0
- package/dist/models.js +26 -0
- package/dist/models.mjs +9 -0
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +16 -0
- package/dist/provider.js +25 -0
- package/dist/provider.mjs +8 -0
- package/dist/services.d.mts +160 -0
- package/dist/services.d.ts +160 -0
- package/dist/services.js +44 -0
- package/dist/services.mjs +7 -0
- package/dist/store.d.mts +505 -0
- package/dist/store.d.ts +505 -0
- package/dist/store.js +254 -0
- package/dist/store.mjs +1 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +4 -0
- package/dist/types.mjs +1 -0
- package/dist/use-get-selection-DFh6sc49.d.mts +26 -0
- package/dist/use-get-selection-DFh6sc49.d.ts +26 -0
- package/dist/utils.d.mts +52 -0
- package/dist/utils.d.ts +52 -0
- package/dist/utils.js +66 -0
- package/dist/utils.mjs +1 -0
- package/dist/view-type-BTzRpkT7.d.mts +106 -0
- package/dist/view-type-BTzRpkT7.d.ts +106 -0
- package/package.json +41 -41
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
declare enum KeyConstants {
|
|
2
|
+
PROFILE = "userinfo",
|
|
3
|
+
CURRENT_COMPANY = "current_company",
|
|
4
|
+
LIST_COMPANY = "list_company",
|
|
5
|
+
COMPANY_INFO = "company_info",
|
|
6
|
+
MENU = "menus",
|
|
7
|
+
GET_VIEW_BY_ACTION = "get_view_by_action",
|
|
8
|
+
ACTION_DETAIL = "action_detail",
|
|
9
|
+
GET_DATA_SELECTION = "get_data_select",
|
|
10
|
+
WEB_SAVE = "web_save",
|
|
11
|
+
WEB_READ = "web_read",
|
|
12
|
+
GET_PROVIDER = "get_provider"
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare enum MethodConstants {
|
|
16
|
+
WEB_SEARCH_READ = "web_search_read",
|
|
17
|
+
WEB_READ_GROUP = "web_read_group",
|
|
18
|
+
WEB_READ = "web_read",
|
|
19
|
+
WEB_SAVE = "web_save",
|
|
20
|
+
UNLINK = "unlink",
|
|
21
|
+
ONCHANGE = "onchange",
|
|
22
|
+
GET_ONCHANGE_FIELDS = "get_fields_onchange",
|
|
23
|
+
GET_FIELD_VIEW = "get_fields_view_v2"
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare enum UriConstants {
|
|
27
|
+
AUTH_TOKEN_PATH = "/authentication/oauth2/token",
|
|
28
|
+
GENTOKEN_SOCIAL = "/token/generate",
|
|
29
|
+
CALL_PATH = "/call",
|
|
30
|
+
COMPANY_PATH = "/company",
|
|
31
|
+
PROFILE_PATH = "/userinfo",
|
|
32
|
+
RESET_PASSWORD_PATH = "/reset_password",
|
|
33
|
+
CHANGE_PASSWORD_PATH = "/change_password",
|
|
34
|
+
UPDATE_PASSWORD_PATH = "/change_password_parent",
|
|
35
|
+
LOAD_ACTION = "/load_action",
|
|
36
|
+
REPORT_PATH = "/report",
|
|
37
|
+
RUN_ACTION_PATH = "/run_action",
|
|
38
|
+
UPLOAD_FILE_PATH = "/upload/file",
|
|
39
|
+
GET_MESSAGE = "/chatter/thread/messages",
|
|
40
|
+
SENT_MESSAGE = "/chatter/message/post",
|
|
41
|
+
UPLOAD_IMAGE = "/mail/attachment/upload",
|
|
42
|
+
DELETE_MESSAGE = "/chatter/message/update_content",
|
|
43
|
+
IMAGE_PATH = "/web/image",
|
|
44
|
+
LOAD_MESSAGE = "/load_message_failures",
|
|
45
|
+
TOKEN = "/check_token",
|
|
46
|
+
CREATE_UPDATE_PATH = "/create_update",
|
|
47
|
+
TWOFA_METHOD_PATH = "/id/api/v2/call",
|
|
48
|
+
SIGNIN_SSO = "/signin-sso/oauth"
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare enum FieldTypeConstants {
|
|
52
|
+
CHAR = "char",
|
|
53
|
+
TEXT = "text",
|
|
54
|
+
INTEGER = "integer",
|
|
55
|
+
FLOAT = "float",
|
|
56
|
+
BOOLEAN = "boolean",
|
|
57
|
+
DATE = "date",
|
|
58
|
+
DATETIME = "datetime",
|
|
59
|
+
BINARY = "binary",
|
|
60
|
+
SELECTION = "selection",
|
|
61
|
+
HTML = "html",
|
|
62
|
+
MANY2ONE = "many2one",
|
|
63
|
+
ONE2MANY = "one2many",
|
|
64
|
+
MANY2MANY = "many2many",
|
|
65
|
+
MONETARY = "monetary",
|
|
66
|
+
REFERENCE = "reference",
|
|
67
|
+
FUNCTION = "function",
|
|
68
|
+
PROPERTY = "property"
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare enum MethodType {
|
|
72
|
+
CREATE = 0,
|
|
73
|
+
UPDATE = 1,
|
|
74
|
+
DELETE = 2,
|
|
75
|
+
UNLINK = 3,
|
|
76
|
+
NO_CHANGE = 4
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
declare enum ModelConstants {
|
|
80
|
+
MENU = "ir.ui.menu",
|
|
81
|
+
USER = "res.users",
|
|
82
|
+
COMPANY = "res.company",
|
|
83
|
+
WINDOW_ACTION = "ir.actions.act_window",
|
|
84
|
+
BASE_IMPORT = "base_import.import",
|
|
85
|
+
GET_IMPORT = "get_import_templates"
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare enum ComponentType {
|
|
89
|
+
TREE = "tree",
|
|
90
|
+
GROUP = "group",
|
|
91
|
+
LIST = "list",
|
|
92
|
+
FORM = "form",
|
|
93
|
+
FIELD = "field",
|
|
94
|
+
DIV = "div",
|
|
95
|
+
SPAN = "span"
|
|
96
|
+
}
|
|
97
|
+
declare const SearchType: {
|
|
98
|
+
FILTER: string;
|
|
99
|
+
SEARCH: string;
|
|
100
|
+
GROUP: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
declare enum WIDGETAVATAR {
|
|
104
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
105
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
declare enum WIDGETCOLOR {
|
|
109
|
+
many2many_tags = "many2many_tags",
|
|
110
|
+
helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare enum WIDGETSTATUS {
|
|
114
|
+
sla_status_ids = "sla_status_ids"
|
|
115
|
+
}
|
|
116
|
+
declare enum WIDGETNOSTRING {
|
|
117
|
+
sla_status_ids = "sla_status_ids"
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETNOSTRING, WIDGETSTATUS };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkS7YF2I23_js = require('./chunk-S7YF2I23.js');
|
|
4
|
+
var chunkIXDDYGKE_js = require('./chunk-IXDDYGKE.js');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "ComponentType", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkS7YF2I23_js.ComponentType; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "FieldTypeConstants", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkS7YF2I23_js.FieldTypeConstants; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "MethodType", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkS7YF2I23_js.MethodType; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "ModelConstants", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkS7YF2I23_js.ModelConstants; }
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "SearchType", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return chunkS7YF2I23_js.SearchType; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "WIDGETAVATAR", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunkS7YF2I23_js.WIDGETAVATAR; }
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(exports, "WIDGETCOLOR", {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () { return chunkS7YF2I23_js.WIDGETCOLOR; }
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "WIDGETNOSTRING", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function () { return chunkS7YF2I23_js.WIDGETNOSTRING; }
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "WIDGETSTATUS", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () { return chunkS7YF2I23_js.WIDGETSTATUS; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "KeyConstants", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkIXDDYGKE_js.KeyConstants; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "MethodConstants", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkIXDDYGKE_js.MethodConstants; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "UriConstants", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkIXDDYGKE_js.UriConstants; }
|
|
55
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface Global {
|
|
5
|
+
envStore?: EnvStore;
|
|
6
|
+
}
|
|
7
|
+
interface Window {
|
|
8
|
+
envStore?: EnvStore;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare class EnvStore {
|
|
12
|
+
envStore: EnhancedStore | any;
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
requests?: any;
|
|
15
|
+
context?: any;
|
|
16
|
+
defaultCompany?: any;
|
|
17
|
+
config?: any;
|
|
18
|
+
companies?: any[];
|
|
19
|
+
user?: any;
|
|
20
|
+
db?: string;
|
|
21
|
+
localStorageUtils?: any;
|
|
22
|
+
sessionStorageUtils?: any;
|
|
23
|
+
constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
|
|
24
|
+
setup(): void;
|
|
25
|
+
setupEnv(envConfig: EnvStore): void;
|
|
26
|
+
setUid(uid: number): void;
|
|
27
|
+
setLang(lang: string): void;
|
|
28
|
+
setAllowCompanies(allowCompanies: number[]): void;
|
|
29
|
+
setCompanies(companies: any[]): void;
|
|
30
|
+
setDefaultCompany(company: any): void;
|
|
31
|
+
setUserInfo(userInfo: any): void;
|
|
32
|
+
}
|
|
33
|
+
declare let env: EnvStore | null;
|
|
34
|
+
declare function initEnv({}: {}): EnvStore;
|
|
35
|
+
declare function getEnv(): EnvStore;
|
|
36
|
+
|
|
37
|
+
export { EnvStore, env, getEnv, initEnv };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface Global {
|
|
5
|
+
envStore?: EnvStore;
|
|
6
|
+
}
|
|
7
|
+
interface Window {
|
|
8
|
+
envStore?: EnvStore;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
declare class EnvStore {
|
|
12
|
+
envStore: EnhancedStore | any;
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
requests?: any;
|
|
15
|
+
context?: any;
|
|
16
|
+
defaultCompany?: any;
|
|
17
|
+
config?: any;
|
|
18
|
+
companies?: any[];
|
|
19
|
+
user?: any;
|
|
20
|
+
db?: string;
|
|
21
|
+
localStorageUtils?: any;
|
|
22
|
+
sessionStorageUtils?: any;
|
|
23
|
+
constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
|
|
24
|
+
setup(): void;
|
|
25
|
+
setupEnv(envConfig: EnvStore): void;
|
|
26
|
+
setUid(uid: number): void;
|
|
27
|
+
setLang(lang: string): void;
|
|
28
|
+
setAllowCompanies(allowCompanies: number[]): void;
|
|
29
|
+
setCompanies(companies: any[]): void;
|
|
30
|
+
setDefaultCompany(company: any): void;
|
|
31
|
+
setUserInfo(userInfo: any): void;
|
|
32
|
+
}
|
|
33
|
+
declare let env: EnvStore | null;
|
|
34
|
+
declare function initEnv({}: {}): EnvStore;
|
|
35
|
+
declare function getEnv(): EnvStore;
|
|
36
|
+
|
|
37
|
+
export { EnvStore, env, getEnv, initEnv };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk4K3QAEZ6_js = require('./chunk-4K3QAEZ6.js');
|
|
4
|
+
require('./chunk-RZBHZYXG.js');
|
|
5
|
+
require('./chunk-UY6GNZNB.js');
|
|
6
|
+
require('./chunk-IXDDYGKE.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "EnvStore", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk4K3QAEZ6_js.EnvStore; }
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "env", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return chunk4K3QAEZ6_js.env; }
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "getEnv", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunk4K3QAEZ6_js.getEnv; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "initEnv", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunk4K3QAEZ6_js.initEnv; }
|
|
25
|
+
});
|
package/dist/hooks.d.mts
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
import { L as LoginCredentialBody, c as SocialTokenBody, F as ForgotPasswordBody, u as updatePasswordBody, V as ViewData, C as ContextApi, e as GetViewParams } from './view-type-BTzRpkT7.mjs';
|
|
3
|
+
export { u as useGetFormView, a as useGetSelection } from './use-get-selection-DFh6sc49.mjs';
|
|
4
|
+
import { a as BaseModelInit, B as BaseModel } from './index-C_nK1Mii.mjs';
|
|
5
|
+
import './environment.mjs';
|
|
6
|
+
import '@reduxjs/toolkit';
|
|
7
|
+
|
|
8
|
+
declare const useForgotPassword: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
9
|
+
|
|
10
|
+
type ProviderPropsType = {
|
|
11
|
+
db: string;
|
|
12
|
+
};
|
|
13
|
+
declare const useGetProvider: () => _tanstack_react_query.UseMutationResult<any, Error, ProviderPropsType, unknown>;
|
|
14
|
+
|
|
15
|
+
declare const useIsValidToken: () => _tanstack_react_query.UseMutationResult<any, Error, string, unknown>;
|
|
16
|
+
|
|
17
|
+
declare const useLoginCredential: () => _tanstack_react_query.UseMutationResult<any, Error, LoginCredentialBody, unknown>;
|
|
18
|
+
|
|
19
|
+
declare const useLoginSocial: () => _tanstack_react_query.UseMutationResult<any, Error, SocialTokenBody, unknown>;
|
|
20
|
+
|
|
21
|
+
declare const useResetPassword: () => _tanstack_react_query.UseMutationResult<any, Error, ForgotPasswordBody, unknown>;
|
|
22
|
+
|
|
23
|
+
declare const useUpdatePassword: () => _tanstack_react_query.UseMutationResult<any, Error, updatePasswordBody, unknown>;
|
|
24
|
+
|
|
25
|
+
declare const useField: (props: any) => {
|
|
26
|
+
invisible: boolean;
|
|
27
|
+
required: boolean;
|
|
28
|
+
readonly: boolean;
|
|
29
|
+
nameField: string | null;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare const useGetCompanyInfo: () => _tanstack_react_query.UseMutationResult<any, Error, number, unknown>;
|
|
33
|
+
|
|
34
|
+
declare const useGetCurrentCompany: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
35
|
+
|
|
36
|
+
declare const useChangeStatus: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
37
|
+
data: any;
|
|
38
|
+
}, unknown>;
|
|
39
|
+
|
|
40
|
+
declare const useDeleteComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
41
|
+
data: any;
|
|
42
|
+
}, unknown>;
|
|
43
|
+
|
|
44
|
+
declare const useGetComment: ({ data, queryKey }: {
|
|
45
|
+
data: any;
|
|
46
|
+
queryKey: any;
|
|
47
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
48
|
+
|
|
49
|
+
declare const useGetImage: ({ data, queryKey, src, }: {
|
|
50
|
+
data: any;
|
|
51
|
+
queryKey: any;
|
|
52
|
+
src: any;
|
|
53
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
54
|
+
|
|
55
|
+
declare const useSendComment: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
56
|
+
data: any;
|
|
57
|
+
}, unknown>;
|
|
58
|
+
|
|
59
|
+
declare const useUploadImage: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
60
|
+
data: any;
|
|
61
|
+
}, unknown>;
|
|
62
|
+
|
|
63
|
+
declare const useExportExcel: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
64
|
+
model: string;
|
|
65
|
+
domain: any;
|
|
66
|
+
ids: any;
|
|
67
|
+
fields: any;
|
|
68
|
+
type: any;
|
|
69
|
+
importCompat: any;
|
|
70
|
+
context: any;
|
|
71
|
+
groupby: any;
|
|
72
|
+
}, unknown>;
|
|
73
|
+
|
|
74
|
+
declare const useGetFieldExport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
75
|
+
ids: any;
|
|
76
|
+
model: string;
|
|
77
|
+
isShow?: boolean;
|
|
78
|
+
parentField?: any;
|
|
79
|
+
fieldType?: any;
|
|
80
|
+
parentName?: any;
|
|
81
|
+
prefix?: any;
|
|
82
|
+
name?: any;
|
|
83
|
+
context: any;
|
|
84
|
+
importCompat?: any;
|
|
85
|
+
}, unknown>;
|
|
86
|
+
|
|
87
|
+
declare const useGetFileExcel: ({ model, context, }: {
|
|
88
|
+
model: string;
|
|
89
|
+
context: any;
|
|
90
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
91
|
+
|
|
92
|
+
declare const useParsePreview: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
93
|
+
id: any;
|
|
94
|
+
selectedSheet: any;
|
|
95
|
+
isHeader: boolean;
|
|
96
|
+
context: any;
|
|
97
|
+
}, unknown>;
|
|
98
|
+
|
|
99
|
+
declare const useUploadFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
100
|
+
formData: any;
|
|
101
|
+
}, unknown>;
|
|
102
|
+
|
|
103
|
+
declare const useUploadIdFile: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
104
|
+
formData: any;
|
|
105
|
+
}, unknown>;
|
|
106
|
+
|
|
107
|
+
declare const useExecuteImport: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
108
|
+
fields: any;
|
|
109
|
+
columns: any;
|
|
110
|
+
idFile: any;
|
|
111
|
+
options: any;
|
|
112
|
+
dryrun: any;
|
|
113
|
+
context: any;
|
|
114
|
+
}, unknown>;
|
|
115
|
+
|
|
116
|
+
declare const useDelete: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
117
|
+
ids: any;
|
|
118
|
+
model: string;
|
|
119
|
+
}, unknown>;
|
|
120
|
+
|
|
121
|
+
declare const useGetAll: ({ data, queryKey, viewResponse }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
122
|
+
|
|
123
|
+
declare const useGetDetail: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
124
|
+
model?: string;
|
|
125
|
+
ids: any;
|
|
126
|
+
specification?: any;
|
|
127
|
+
context?: any;
|
|
128
|
+
}, unknown>;
|
|
129
|
+
|
|
130
|
+
declare const useGetFieldOnChange: ({ model }: {
|
|
131
|
+
model: string;
|
|
132
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
133
|
+
|
|
134
|
+
declare const useModel: () => {
|
|
135
|
+
initModel: (modelData: BaseModelInit) => BaseModel;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
declare const useOdooDataTransform: () => {
|
|
139
|
+
toDataJS: (data: Record<string, any>, viewData?: ViewData, model?: string) => Record<string, any>;
|
|
140
|
+
parseORM: (data: Record<string, any>) => Record<string, any>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
declare const useOnChangeForm: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
144
|
+
ids: any;
|
|
145
|
+
model: string;
|
|
146
|
+
specification: any;
|
|
147
|
+
context: any;
|
|
148
|
+
object: any;
|
|
149
|
+
fieldChange?: any;
|
|
150
|
+
}, unknown>;
|
|
151
|
+
|
|
152
|
+
declare const useSave: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
153
|
+
ids: any;
|
|
154
|
+
model: string;
|
|
155
|
+
data: any;
|
|
156
|
+
specification?: any;
|
|
157
|
+
context: any;
|
|
158
|
+
}, unknown>;
|
|
159
|
+
|
|
160
|
+
declare const useGetProfile: () => _tanstack_react_query.UseMutationResult<any, Error, void, unknown>;
|
|
161
|
+
|
|
162
|
+
declare const useGetUser: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
163
|
+
id: any;
|
|
164
|
+
context: ContextApi;
|
|
165
|
+
}, unknown>;
|
|
166
|
+
|
|
167
|
+
type SwitchUserLocaleParams = {
|
|
168
|
+
data: {
|
|
169
|
+
id: number;
|
|
170
|
+
values: any;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
declare const useSwitchLocale: () => _tanstack_react_query.UseMutationResult<any, Error, SwitchUserLocaleParams, unknown>;
|
|
174
|
+
|
|
175
|
+
declare const useButton: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
176
|
+
model: string;
|
|
177
|
+
ids: Record<string, any>[] | any;
|
|
178
|
+
context: ContextApi;
|
|
179
|
+
method: any;
|
|
180
|
+
}, unknown>;
|
|
181
|
+
|
|
182
|
+
declare const useDuplicateRecord: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
183
|
+
id: any;
|
|
184
|
+
model: string;
|
|
185
|
+
context: ContextApi;
|
|
186
|
+
}, unknown>;
|
|
187
|
+
|
|
188
|
+
declare const useGetListData: (listDataProps: any, queryKey?: any, enabled?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
189
|
+
|
|
190
|
+
interface UseGetMenuParams {
|
|
191
|
+
context: any;
|
|
192
|
+
enabled?: boolean;
|
|
193
|
+
queryKey?: any;
|
|
194
|
+
}
|
|
195
|
+
declare const useGetMenu: ({ context, enabled, queryKey }: UseGetMenuParams) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
196
|
+
|
|
197
|
+
declare const useGetView: (viewParams: GetViewParams, actData?: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
198
|
+
|
|
199
|
+
declare const useLoadAction: ({ idAction, context, }: {
|
|
200
|
+
idAction: any;
|
|
201
|
+
context: ContextApi;
|
|
202
|
+
}) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
203
|
+
|
|
204
|
+
declare const usePrint: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
205
|
+
id: number;
|
|
206
|
+
report: any;
|
|
207
|
+
db: any;
|
|
208
|
+
}, unknown>;
|
|
209
|
+
|
|
210
|
+
declare const useRemoveRow: () => _tanstack_react_query.UseMutationResult<any, Error, {
|
|
211
|
+
model: string;
|
|
212
|
+
ids: Record<string, any>[] | any;
|
|
213
|
+
context: ContextApi;
|
|
214
|
+
}, unknown>;
|
|
215
|
+
|
|
216
|
+
declare const useRunAction: ({ idAction, context }: any) => _tanstack_react_query.UseQueryResult<any, Error>;
|
|
217
|
+
|
|
218
|
+
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 };
|