@fctc/interface-logic 1.2.10 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/configs.d.mts +15 -0
- package/dist/configs.d.ts +15 -0
- package/dist/{config.js → configs.js} +4 -4
- package/dist/constants.d.mts +131 -0
- package/dist/constants.d.ts +131 -0
- package/dist/environment.d.mts +55 -0
- package/dist/environment.d.ts +55 -0
- package/dist/hooks.d.mts +340 -0
- package/dist/hooks.d.ts +340 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/models.d.mts +34 -0
- package/dist/models.d.ts +34 -0
- package/dist/{model.js → models.js} +124 -128
- package/dist/{model.mjs → models.mjs} +120 -123
- package/dist/provider.d.mts +15 -0
- package/dist/provider.d.ts +15 -0
- package/dist/services.d.mts +255 -0
- package/dist/services.d.ts +255 -0
- package/dist/store.d.mts +643 -0
- package/dist/store.d.ts +643 -0
- package/dist/types.d.mts +2 -0
- package/dist/types.d.ts +2 -0
- package/dist/utils.d.mts +93 -0
- package/dist/utils.d.ts +93 -0
- package/dist/utils.js +0 -41
- package/dist/utils.mjs +0 -39
- package/dist/view-type-mROO2TFx.d.mts +100 -0
- package/dist/view-type-mROO2TFx.d.ts +100 -0
- package/package.json +10 -11
- package/dist/index.d.mts +0 -1709
- package/dist/index.d.ts +0 -1709
- package/dist/index.js +0 -7249
- package/dist/index.mjs +0 -7001
- /package/dist/{config.mjs → configs.mjs} +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnvStore } from './environment.mjs';
|
|
2
|
+
import '@reduxjs/toolkit';
|
|
3
|
+
|
|
4
|
+
declare const axiosClient: {
|
|
5
|
+
init(config: EnvStore): {
|
|
6
|
+
get: (url: string, headers: any) => Promise<any>;
|
|
7
|
+
post: (url: string, body: any, headers: any) => Promise<any>;
|
|
8
|
+
post_excel: (url: string, body: any, headers: any) => Promise<any>;
|
|
9
|
+
put: (url: string, body: any, headers: any) => Promise<any>;
|
|
10
|
+
patch: (url: string, body: any) => Promise<any>;
|
|
11
|
+
delete: (url: string, body: any) => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { axiosClient };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EnvStore } from './environment.js';
|
|
2
|
+
import '@reduxjs/toolkit';
|
|
3
|
+
|
|
4
|
+
declare const axiosClient: {
|
|
5
|
+
init(config: EnvStore): {
|
|
6
|
+
get: (url: string, headers: any) => Promise<any>;
|
|
7
|
+
post: (url: string, body: any, headers: any) => Promise<any>;
|
|
8
|
+
post_excel: (url: string, body: any, headers: any) => Promise<any>;
|
|
9
|
+
put: (url: string, body: any, headers: any) => Promise<any>;
|
|
10
|
+
patch: (url: string, body: any) => Promise<any>;
|
|
11
|
+
delete: (url: string, body: any) => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { axiosClient };
|
|
@@ -27,12 +27,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// src/
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
30
|
+
// src/configs.ts
|
|
31
|
+
var configs_exports = {};
|
|
32
|
+
__export(configs_exports, {
|
|
33
33
|
axiosClient: () => axiosClient
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(configs_exports);
|
|
36
36
|
|
|
37
37
|
// src/configs/axios-client.ts
|
|
38
38
|
var import_axios = __toESM(require("axios"));
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
GRANT_ACCESS = "/grant-access",
|
|
50
|
+
TOKEN_BY_CODE = "/token",
|
|
51
|
+
LOGOUT = "/logout"
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare enum FieldTypeConstants {
|
|
55
|
+
CHAR = "char",
|
|
56
|
+
TEXT = "text",
|
|
57
|
+
INTEGER = "integer",
|
|
58
|
+
FLOAT = "float",
|
|
59
|
+
BOOLEAN = "boolean",
|
|
60
|
+
DATE = "date",
|
|
61
|
+
DATETIME = "datetime",
|
|
62
|
+
BINARY = "binary",
|
|
63
|
+
SELECTION = "selection",
|
|
64
|
+
HTML = "html",
|
|
65
|
+
MANY2ONE = "many2one",
|
|
66
|
+
ONE2MANY = "one2many",
|
|
67
|
+
MANY2MANY = "many2many",
|
|
68
|
+
MONETARY = "monetary",
|
|
69
|
+
REFERENCE = "reference",
|
|
70
|
+
FUNCTION = "function",
|
|
71
|
+
PROPERTY = "property"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare enum MethodType {
|
|
75
|
+
CREATE = 0,
|
|
76
|
+
UPDATE = 1,
|
|
77
|
+
DELETE = 2,
|
|
78
|
+
UNLINK = 3,
|
|
79
|
+
NO_CHANGE = 4
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare enum ModelConstants {
|
|
83
|
+
MENU = "ir.ui.menu",
|
|
84
|
+
USER = "res.users",
|
|
85
|
+
COMPANY = "res.company",
|
|
86
|
+
WINDOW_ACTION = "ir.actions.act_window",
|
|
87
|
+
BASE_IMPORT = "base_import.import",
|
|
88
|
+
GET_IMPORT = "get_import_templates"
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare enum ComponentType {
|
|
92
|
+
GROUP = "group",
|
|
93
|
+
FIELD = "field",
|
|
94
|
+
TREE = "tree",
|
|
95
|
+
DIV = "div",
|
|
96
|
+
LIST = "list",
|
|
97
|
+
FORM = "form",
|
|
98
|
+
SETTINGS = "setting",
|
|
99
|
+
SPAN = "span",
|
|
100
|
+
KANBAN = "kanban",
|
|
101
|
+
CALENDAR = "calendar",
|
|
102
|
+
TYPE = "view-type"
|
|
103
|
+
}
|
|
104
|
+
declare const SearchType: {
|
|
105
|
+
FILTER: string;
|
|
106
|
+
SEARCH: string;
|
|
107
|
+
GROUP: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
declare enum WIDGETAVATAR {
|
|
111
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
112
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
113
|
+
}
|
|
114
|
+
declare enum WIDGETCURRENCY {
|
|
115
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
116
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare enum WIDGETCOLOR {
|
|
120
|
+
many2many_tags = "many2many_tags",
|
|
121
|
+
helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare enum WIDGETSTATUS {
|
|
125
|
+
sla_status_ids = "sla_status_ids"
|
|
126
|
+
}
|
|
127
|
+
declare enum WIDGETNOSTRING {
|
|
128
|
+
sla_status_ids = "sla_status_ids"
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
|
|
@@ -0,0 +1,131 @@
|
|
|
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
|
+
GRANT_ACCESS = "/grant-access",
|
|
50
|
+
TOKEN_BY_CODE = "/token",
|
|
51
|
+
LOGOUT = "/logout"
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare enum FieldTypeConstants {
|
|
55
|
+
CHAR = "char",
|
|
56
|
+
TEXT = "text",
|
|
57
|
+
INTEGER = "integer",
|
|
58
|
+
FLOAT = "float",
|
|
59
|
+
BOOLEAN = "boolean",
|
|
60
|
+
DATE = "date",
|
|
61
|
+
DATETIME = "datetime",
|
|
62
|
+
BINARY = "binary",
|
|
63
|
+
SELECTION = "selection",
|
|
64
|
+
HTML = "html",
|
|
65
|
+
MANY2ONE = "many2one",
|
|
66
|
+
ONE2MANY = "one2many",
|
|
67
|
+
MANY2MANY = "many2many",
|
|
68
|
+
MONETARY = "monetary",
|
|
69
|
+
REFERENCE = "reference",
|
|
70
|
+
FUNCTION = "function",
|
|
71
|
+
PROPERTY = "property"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare enum MethodType {
|
|
75
|
+
CREATE = 0,
|
|
76
|
+
UPDATE = 1,
|
|
77
|
+
DELETE = 2,
|
|
78
|
+
UNLINK = 3,
|
|
79
|
+
NO_CHANGE = 4
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
declare enum ModelConstants {
|
|
83
|
+
MENU = "ir.ui.menu",
|
|
84
|
+
USER = "res.users",
|
|
85
|
+
COMPANY = "res.company",
|
|
86
|
+
WINDOW_ACTION = "ir.actions.act_window",
|
|
87
|
+
BASE_IMPORT = "base_import.import",
|
|
88
|
+
GET_IMPORT = "get_import_templates"
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare enum ComponentType {
|
|
92
|
+
GROUP = "group",
|
|
93
|
+
FIELD = "field",
|
|
94
|
+
TREE = "tree",
|
|
95
|
+
DIV = "div",
|
|
96
|
+
LIST = "list",
|
|
97
|
+
FORM = "form",
|
|
98
|
+
SETTINGS = "setting",
|
|
99
|
+
SPAN = "span",
|
|
100
|
+
KANBAN = "kanban",
|
|
101
|
+
CALENDAR = "calendar",
|
|
102
|
+
TYPE = "view-type"
|
|
103
|
+
}
|
|
104
|
+
declare const SearchType: {
|
|
105
|
+
FILTER: string;
|
|
106
|
+
SEARCH: string;
|
|
107
|
+
GROUP: string;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
declare enum WIDGETAVATAR {
|
|
111
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
112
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
113
|
+
}
|
|
114
|
+
declare enum WIDGETCURRENCY {
|
|
115
|
+
many2one_avatar_user = "many2one_avatar_user",
|
|
116
|
+
many2many_avatar_user = "many2many_avatar_user"
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare enum WIDGETCOLOR {
|
|
120
|
+
many2many_tags = "many2many_tags",
|
|
121
|
+
helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare enum WIDGETSTATUS {
|
|
125
|
+
sla_status_ids = "sla_status_ids"
|
|
126
|
+
}
|
|
127
|
+
declare enum WIDGETNOSTRING {
|
|
128
|
+
sla_status_ids = "sla_status_ids"
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
declare const localStorageUtils: () => {
|
|
4
|
+
setToken: (access_token: string) => Promise<void>;
|
|
5
|
+
setRefreshToken: (refresh_token: string) => Promise<void>;
|
|
6
|
+
getAccessToken: () => Promise<string | null>;
|
|
7
|
+
getRefreshToken: () => Promise<string | null>;
|
|
8
|
+
clearToken: () => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
|
|
11
|
+
|
|
12
|
+
declare const sessionStorageUtils: () => {
|
|
13
|
+
getBrowserSession: () => Promise<string | null>;
|
|
14
|
+
};
|
|
15
|
+
type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
|
|
16
|
+
|
|
17
|
+
declare global {
|
|
18
|
+
interface Global {
|
|
19
|
+
envStore?: EnvStore;
|
|
20
|
+
}
|
|
21
|
+
interface Window {
|
|
22
|
+
envStore?: EnvStore;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
declare class EnvStore {
|
|
26
|
+
envStore: EnhancedStore | any;
|
|
27
|
+
baseUrl?: string;
|
|
28
|
+
requests?: any;
|
|
29
|
+
context?: any;
|
|
30
|
+
defaultCompany?: any;
|
|
31
|
+
config?: any;
|
|
32
|
+
companies?: any[];
|
|
33
|
+
user?: any;
|
|
34
|
+
db?: string;
|
|
35
|
+
localStorageUtils?: any;
|
|
36
|
+
sessionStorageUtils?: any;
|
|
37
|
+
refreshTokenEndpoint?: string;
|
|
38
|
+
constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
|
|
39
|
+
setup(): void;
|
|
40
|
+
setupEnv(envConfig: EnvStore): void;
|
|
41
|
+
setUid(uid: number): void;
|
|
42
|
+
setLang(lang: string): void;
|
|
43
|
+
setAllowCompanies(allowCompanies: number[]): void;
|
|
44
|
+
setCompanies(companies: any[]): void;
|
|
45
|
+
setDefaultCompany(company: any): void;
|
|
46
|
+
setUserInfo(userInfo: any): void;
|
|
47
|
+
}
|
|
48
|
+
declare let env: EnvStore | null;
|
|
49
|
+
declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
|
|
50
|
+
localStorageUtils?: LocalStorageUtilsType;
|
|
51
|
+
sessionStorageUtils?: SessionStorageUtilsType;
|
|
52
|
+
}): EnvStore;
|
|
53
|
+
declare function getEnv(): EnvStore;
|
|
54
|
+
|
|
55
|
+
export { EnvStore, env, getEnv, initEnv };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { EnhancedStore } from '@reduxjs/toolkit';
|
|
2
|
+
|
|
3
|
+
declare const localStorageUtils: () => {
|
|
4
|
+
setToken: (access_token: string) => Promise<void>;
|
|
5
|
+
setRefreshToken: (refresh_token: string) => Promise<void>;
|
|
6
|
+
getAccessToken: () => Promise<string | null>;
|
|
7
|
+
getRefreshToken: () => Promise<string | null>;
|
|
8
|
+
clearToken: () => Promise<void>;
|
|
9
|
+
};
|
|
10
|
+
type LocalStorageUtilsType = ReturnType<typeof localStorageUtils>;
|
|
11
|
+
|
|
12
|
+
declare const sessionStorageUtils: () => {
|
|
13
|
+
getBrowserSession: () => Promise<string | null>;
|
|
14
|
+
};
|
|
15
|
+
type SessionStorageUtilsType = ReturnType<typeof sessionStorageUtils>;
|
|
16
|
+
|
|
17
|
+
declare global {
|
|
18
|
+
interface Global {
|
|
19
|
+
envStore?: EnvStore;
|
|
20
|
+
}
|
|
21
|
+
interface Window {
|
|
22
|
+
envStore?: EnvStore;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
declare class EnvStore {
|
|
26
|
+
envStore: EnhancedStore | any;
|
|
27
|
+
baseUrl?: string;
|
|
28
|
+
requests?: any;
|
|
29
|
+
context?: any;
|
|
30
|
+
defaultCompany?: any;
|
|
31
|
+
config?: any;
|
|
32
|
+
companies?: any[];
|
|
33
|
+
user?: any;
|
|
34
|
+
db?: string;
|
|
35
|
+
localStorageUtils?: any;
|
|
36
|
+
sessionStorageUtils?: any;
|
|
37
|
+
refreshTokenEndpoint?: string;
|
|
38
|
+
constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
|
|
39
|
+
setup(): void;
|
|
40
|
+
setupEnv(envConfig: EnvStore): void;
|
|
41
|
+
setUid(uid: number): void;
|
|
42
|
+
setLang(lang: string): void;
|
|
43
|
+
setAllowCompanies(allowCompanies: number[]): void;
|
|
44
|
+
setCompanies(companies: any[]): void;
|
|
45
|
+
setDefaultCompany(company: any): void;
|
|
46
|
+
setUserInfo(userInfo: any): void;
|
|
47
|
+
}
|
|
48
|
+
declare let env: EnvStore | null;
|
|
49
|
+
declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
|
|
50
|
+
localStorageUtils?: LocalStorageUtilsType;
|
|
51
|
+
sessionStorageUtils?: SessionStorageUtilsType;
|
|
52
|
+
}): EnvStore;
|
|
53
|
+
declare function getEnv(): EnvStore;
|
|
54
|
+
|
|
55
|
+
export { EnvStore, env, getEnv, initEnv };
|