@fctc/interface-logic 1.0.1 → 1.0.2
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/config.d.mts +16 -0
- package/dist/config.d.ts +16 -0
- package/dist/config.js +2355 -0
- package/dist/config.mjs +2318 -0
- package/dist/constants.d.mts +128 -0
- package/dist/constants.d.ts +128 -0
- package/dist/constants.js +202 -0
- package/dist/constants.mjs +163 -0
- package/dist/context-type-D5XefoL-.d.mts +8 -0
- package/dist/context-type-D5XefoL-.d.ts +8 -0
- package/dist/environment.d.mts +41 -0
- package/dist/environment.d.ts +41 -0
- package/dist/environment.js +3061 -0
- package/dist/environment.mjs +3021 -0
- package/dist/hook.d.mts +292 -0
- package/dist/hook.d.ts +292 -0
- package/dist/hook.js +5683 -0
- package/dist/hook.mjs +5587 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/index.d.mts +1 -1389
- package/dist/index.d.ts +1 -1389
- package/dist/index.js +0 -6856
- package/dist/index.mjs +0 -6629
- package/dist/model.d.mts +35 -0
- package/dist/model.d.ts +35 -0
- package/dist/model.js +3320 -0
- package/dist/model.mjs +3281 -0
- package/dist/provider.d.mts +15 -0
- package/dist/provider.d.ts +15 -0
- package/dist/provider.js +6566 -0
- package/dist/provider.mjs +6550 -0
- package/dist/services.d.mts +224 -0
- package/dist/services.d.ts +224 -0
- package/dist/services.js +4477 -0
- package/dist/services.mjs +4432 -0
- package/dist/session-storage-CxkkEmQh.d.mts +15 -0
- package/dist/session-storage-CxkkEmQh.d.ts +15 -0
- package/dist/store.d.mts +643 -0
- package/dist/store.d.ts +643 -0
- package/dist/store.js +814 -0
- package/dist/store.mjs +709 -0
- package/dist/types.d.mts +12 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +0 -0
- package/dist/use-get-selection-QZu1jKqa.d.mts +15 -0
- package/dist/use-get-selection-QZu1jKqa.d.ts +15 -0
- package/dist/utils.d.mts +87 -0
- package/dist/utils.d.ts +87 -0
- package/dist/utils.js +2947 -0
- package/dist/utils.mjs +2881 -0
- package/dist/view-type-y6vtF3wg.d.mts +106 -0
- package/dist/view-type-y6vtF3wg.d.ts +106 -0
- package/package.json +53 -12
@@ -0,0 +1,128 @@
|
|
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
|
+
GROUP = "group",
|
90
|
+
FIELD = "field",
|
91
|
+
TREE = "tree",
|
92
|
+
DIV = "div",
|
93
|
+
LIST = "list",
|
94
|
+
FORM = "form",
|
95
|
+
SETTINGS = "setting",
|
96
|
+
SPAN = "span",
|
97
|
+
KANBAN = "kanban",
|
98
|
+
CALENDAR = "calendar",
|
99
|
+
TYPE = "view-type"
|
100
|
+
}
|
101
|
+
declare const SearchType: {
|
102
|
+
FILTER: string;
|
103
|
+
SEARCH: string;
|
104
|
+
GROUP: string;
|
105
|
+
};
|
106
|
+
|
107
|
+
declare enum WIDGETAVATAR {
|
108
|
+
many2one_avatar_user = "many2one_avatar_user",
|
109
|
+
many2many_avatar_user = "many2many_avatar_user"
|
110
|
+
}
|
111
|
+
declare enum WIDGETCURRENCY {
|
112
|
+
many2one_avatar_user = "many2one_avatar_user",
|
113
|
+
many2many_avatar_user = "many2many_avatar_user"
|
114
|
+
}
|
115
|
+
|
116
|
+
declare enum WIDGETCOLOR {
|
117
|
+
many2many_tags = "many2many_tags",
|
118
|
+
helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
|
119
|
+
}
|
120
|
+
|
121
|
+
declare enum WIDGETSTATUS {
|
122
|
+
sla_status_ids = "sla_status_ids"
|
123
|
+
}
|
124
|
+
declare enum WIDGETNOSTRING {
|
125
|
+
sla_status_ids = "sla_status_ids"
|
126
|
+
}
|
127
|
+
|
128
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
|
@@ -0,0 +1,128 @@
|
|
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
|
+
GROUP = "group",
|
90
|
+
FIELD = "field",
|
91
|
+
TREE = "tree",
|
92
|
+
DIV = "div",
|
93
|
+
LIST = "list",
|
94
|
+
FORM = "form",
|
95
|
+
SETTINGS = "setting",
|
96
|
+
SPAN = "span",
|
97
|
+
KANBAN = "kanban",
|
98
|
+
CALENDAR = "calendar",
|
99
|
+
TYPE = "view-type"
|
100
|
+
}
|
101
|
+
declare const SearchType: {
|
102
|
+
FILTER: string;
|
103
|
+
SEARCH: string;
|
104
|
+
GROUP: string;
|
105
|
+
};
|
106
|
+
|
107
|
+
declare enum WIDGETAVATAR {
|
108
|
+
many2one_avatar_user = "many2one_avatar_user",
|
109
|
+
many2many_avatar_user = "many2many_avatar_user"
|
110
|
+
}
|
111
|
+
declare enum WIDGETCURRENCY {
|
112
|
+
many2one_avatar_user = "many2one_avatar_user",
|
113
|
+
many2many_avatar_user = "many2many_avatar_user"
|
114
|
+
}
|
115
|
+
|
116
|
+
declare enum WIDGETCOLOR {
|
117
|
+
many2many_tags = "many2many_tags",
|
118
|
+
helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
|
119
|
+
}
|
120
|
+
|
121
|
+
declare enum WIDGETSTATUS {
|
122
|
+
sla_status_ids = "sla_status_ids"
|
123
|
+
}
|
124
|
+
declare enum WIDGETNOSTRING {
|
125
|
+
sla_status_ids = "sla_status_ids"
|
126
|
+
}
|
127
|
+
|
128
|
+
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
|
@@ -0,0 +1,202 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// src/constants.ts
|
21
|
+
var constants_exports = {};
|
22
|
+
__export(constants_exports, {
|
23
|
+
ComponentType: () => ComponentType,
|
24
|
+
FieldTypeConstants: () => FieldTypeConstants,
|
25
|
+
KeyConstants: () => KeyConstants,
|
26
|
+
MethodConstants: () => MethodConstants,
|
27
|
+
MethodType: () => MethodType,
|
28
|
+
ModelConstants: () => ModelConstants,
|
29
|
+
SearchType: () => SearchType,
|
30
|
+
UriConstants: () => UriConstants,
|
31
|
+
WIDGETAVATAR: () => WIDGETAVATAR,
|
32
|
+
WIDGETCOLOR: () => WIDGETCOLOR,
|
33
|
+
WIDGETCURRENCY: () => WIDGETCURRENCY,
|
34
|
+
WIDGETNOSTRING: () => WIDGETNOSTRING,
|
35
|
+
WIDGETSTATUS: () => WIDGETSTATUS
|
36
|
+
});
|
37
|
+
module.exports = __toCommonJS(constants_exports);
|
38
|
+
|
39
|
+
// src/constants/api/key-constant.ts
|
40
|
+
var KeyConstants = /* @__PURE__ */ ((KeyConstants2) => {
|
41
|
+
KeyConstants2["PROFILE"] = "userinfo";
|
42
|
+
KeyConstants2["CURRENT_COMPANY"] = "current_company";
|
43
|
+
KeyConstants2["LIST_COMPANY"] = "list_company";
|
44
|
+
KeyConstants2["COMPANY_INFO"] = "company_info";
|
45
|
+
KeyConstants2["MENU"] = "menus";
|
46
|
+
KeyConstants2["GET_VIEW_BY_ACTION"] = "get_view_by_action";
|
47
|
+
KeyConstants2["ACTION_DETAIL"] = "action_detail";
|
48
|
+
KeyConstants2["GET_DATA_SELECTION"] = "get_data_select";
|
49
|
+
KeyConstants2["WEB_SAVE"] = "web_save";
|
50
|
+
KeyConstants2["WEB_READ"] = "web_read";
|
51
|
+
KeyConstants2["GET_PROVIDER"] = "get_provider";
|
52
|
+
return KeyConstants2;
|
53
|
+
})(KeyConstants || {});
|
54
|
+
|
55
|
+
// src/constants/api/method-constant.ts
|
56
|
+
var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
57
|
+
MethodConstants2["WEB_SEARCH_READ"] = "web_search_read";
|
58
|
+
MethodConstants2["WEB_READ_GROUP"] = "web_read_group";
|
59
|
+
MethodConstants2["WEB_READ"] = "web_read";
|
60
|
+
MethodConstants2["WEB_SAVE"] = "web_save";
|
61
|
+
MethodConstants2["UNLINK"] = "unlink";
|
62
|
+
MethodConstants2["ONCHANGE"] = "onchange";
|
63
|
+
MethodConstants2["GET_ONCHANGE_FIELDS"] = "get_fields_onchange";
|
64
|
+
MethodConstants2["GET_FIELD_VIEW"] = "get_fields_view_v2";
|
65
|
+
return MethodConstants2;
|
66
|
+
})(MethodConstants || {});
|
67
|
+
|
68
|
+
// src/constants/api/uri-constant.ts
|
69
|
+
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
70
|
+
UriConstants2["AUTH_TOKEN_PATH"] = "/authentication/oauth2/token";
|
71
|
+
UriConstants2["GENTOKEN_SOCIAL"] = "/token/generate";
|
72
|
+
UriConstants2["CALL_PATH"] = "/call";
|
73
|
+
UriConstants2["COMPANY_PATH"] = "/company";
|
74
|
+
UriConstants2["PROFILE_PATH"] = "/userinfo";
|
75
|
+
UriConstants2["RESET_PASSWORD_PATH"] = "/reset_password";
|
76
|
+
UriConstants2["CHANGE_PASSWORD_PATH"] = "/change_password";
|
77
|
+
UriConstants2["UPDATE_PASSWORD_PATH"] = "/change_password_parent";
|
78
|
+
UriConstants2["LOAD_ACTION"] = `/load_action`;
|
79
|
+
UriConstants2["REPORT_PATH"] = `/report`;
|
80
|
+
UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
|
81
|
+
UriConstants2["UPLOAD_FILE_PATH"] = `/upload/file`;
|
82
|
+
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
83
|
+
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
84
|
+
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
85
|
+
UriConstants2["DELETE_MESSAGE"] = `/chatter/message/update_content`;
|
86
|
+
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
87
|
+
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
88
|
+
UriConstants2["TOKEN"] = `/check_token`;
|
89
|
+
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
90
|
+
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
91
|
+
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
92
|
+
return UriConstants2;
|
93
|
+
})(UriConstants || {});
|
94
|
+
|
95
|
+
// src/constants/field/field-type-constant.ts
|
96
|
+
var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
|
97
|
+
FieldTypeConstants2["CHAR"] = "char";
|
98
|
+
FieldTypeConstants2["TEXT"] = "text";
|
99
|
+
FieldTypeConstants2["INTEGER"] = "integer";
|
100
|
+
FieldTypeConstants2["FLOAT"] = "float";
|
101
|
+
FieldTypeConstants2["BOOLEAN"] = "boolean";
|
102
|
+
FieldTypeConstants2["DATE"] = "date";
|
103
|
+
FieldTypeConstants2["DATETIME"] = "datetime";
|
104
|
+
FieldTypeConstants2["BINARY"] = "binary";
|
105
|
+
FieldTypeConstants2["SELECTION"] = "selection";
|
106
|
+
FieldTypeConstants2["HTML"] = "html";
|
107
|
+
FieldTypeConstants2["MANY2ONE"] = "many2one";
|
108
|
+
FieldTypeConstants2["ONE2MANY"] = "one2many";
|
109
|
+
FieldTypeConstants2["MANY2MANY"] = "many2many";
|
110
|
+
FieldTypeConstants2["MONETARY"] = "monetary";
|
111
|
+
FieldTypeConstants2["REFERENCE"] = "reference";
|
112
|
+
FieldTypeConstants2["FUNCTION"] = "function";
|
113
|
+
FieldTypeConstants2["PROPERTY"] = "property";
|
114
|
+
return FieldTypeConstants2;
|
115
|
+
})(FieldTypeConstants || {});
|
116
|
+
|
117
|
+
// src/constants/method/method-type-constant.ts
|
118
|
+
var MethodType = /* @__PURE__ */ ((MethodType2) => {
|
119
|
+
MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
|
120
|
+
MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
|
121
|
+
MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
|
122
|
+
MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
|
123
|
+
MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
|
124
|
+
return MethodType2;
|
125
|
+
})(MethodType || {});
|
126
|
+
|
127
|
+
// src/constants/model/model-constant.ts
|
128
|
+
var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
|
129
|
+
ModelConstants2["MENU"] = "ir.ui.menu";
|
130
|
+
ModelConstants2["USER"] = "res.users";
|
131
|
+
ModelConstants2["COMPANY"] = "res.company";
|
132
|
+
ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
|
133
|
+
ModelConstants2["BASE_IMPORT"] = "base_import.import";
|
134
|
+
ModelConstants2["GET_IMPORT"] = "get_import_templates";
|
135
|
+
return ModelConstants2;
|
136
|
+
})(ModelConstants || {});
|
137
|
+
|
138
|
+
// src/constants/type/index.ts
|
139
|
+
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
140
|
+
ComponentType2["GROUP"] = "group";
|
141
|
+
ComponentType2["FIELD"] = "field";
|
142
|
+
ComponentType2["TREE"] = "tree";
|
143
|
+
ComponentType2["DIV"] = "div";
|
144
|
+
ComponentType2["LIST"] = "list";
|
145
|
+
ComponentType2["FORM"] = "form";
|
146
|
+
ComponentType2["SETTINGS"] = "setting";
|
147
|
+
ComponentType2["SPAN"] = "span";
|
148
|
+
ComponentType2["KANBAN"] = "kanban";
|
149
|
+
ComponentType2["CALENDAR"] = "calendar";
|
150
|
+
ComponentType2["TYPE"] = "view-type";
|
151
|
+
return ComponentType2;
|
152
|
+
})(ComponentType || {});
|
153
|
+
var SearchType = {
|
154
|
+
FILTER: "filter_by",
|
155
|
+
SEARCH: "search_by",
|
156
|
+
GROUP: "group_by"
|
157
|
+
};
|
158
|
+
|
159
|
+
// src/constants/widget/widget-avatar-constant.ts
|
160
|
+
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
161
|
+
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
162
|
+
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
163
|
+
return WIDGETAVATAR2;
|
164
|
+
})(WIDGETAVATAR || {});
|
165
|
+
var WIDGETCURRENCY = /* @__PURE__ */ ((WIDGETCURRENCY2) => {
|
166
|
+
WIDGETCURRENCY2["many2one_avatar_user"] = "many2one_avatar_user";
|
167
|
+
WIDGETCURRENCY2["many2many_avatar_user"] = "many2many_avatar_user";
|
168
|
+
return WIDGETCURRENCY2;
|
169
|
+
})(WIDGETCURRENCY || {});
|
170
|
+
|
171
|
+
// src/constants/widget/widget-color-constant.ts
|
172
|
+
var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
|
173
|
+
WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
|
174
|
+
WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
|
175
|
+
return WIDGETCOLOR2;
|
176
|
+
})(WIDGETCOLOR || {});
|
177
|
+
|
178
|
+
// src/constants/widget/widget-status-constant.ts
|
179
|
+
var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
|
180
|
+
WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
|
181
|
+
return WIDGETSTATUS2;
|
182
|
+
})(WIDGETSTATUS || {});
|
183
|
+
var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
184
|
+
WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
|
185
|
+
return WIDGETNOSTRING2;
|
186
|
+
})(WIDGETNOSTRING || {});
|
187
|
+
// Annotate the CommonJS export names for ESM import in node:
|
188
|
+
0 && (module.exports = {
|
189
|
+
ComponentType,
|
190
|
+
FieldTypeConstants,
|
191
|
+
KeyConstants,
|
192
|
+
MethodConstants,
|
193
|
+
MethodType,
|
194
|
+
ModelConstants,
|
195
|
+
SearchType,
|
196
|
+
UriConstants,
|
197
|
+
WIDGETAVATAR,
|
198
|
+
WIDGETCOLOR,
|
199
|
+
WIDGETCURRENCY,
|
200
|
+
WIDGETNOSTRING,
|
201
|
+
WIDGETSTATUS
|
202
|
+
});
|
@@ -0,0 +1,163 @@
|
|
1
|
+
// src/constants/api/key-constant.ts
|
2
|
+
var KeyConstants = /* @__PURE__ */ ((KeyConstants2) => {
|
3
|
+
KeyConstants2["PROFILE"] = "userinfo";
|
4
|
+
KeyConstants2["CURRENT_COMPANY"] = "current_company";
|
5
|
+
KeyConstants2["LIST_COMPANY"] = "list_company";
|
6
|
+
KeyConstants2["COMPANY_INFO"] = "company_info";
|
7
|
+
KeyConstants2["MENU"] = "menus";
|
8
|
+
KeyConstants2["GET_VIEW_BY_ACTION"] = "get_view_by_action";
|
9
|
+
KeyConstants2["ACTION_DETAIL"] = "action_detail";
|
10
|
+
KeyConstants2["GET_DATA_SELECTION"] = "get_data_select";
|
11
|
+
KeyConstants2["WEB_SAVE"] = "web_save";
|
12
|
+
KeyConstants2["WEB_READ"] = "web_read";
|
13
|
+
KeyConstants2["GET_PROVIDER"] = "get_provider";
|
14
|
+
return KeyConstants2;
|
15
|
+
})(KeyConstants || {});
|
16
|
+
|
17
|
+
// src/constants/api/method-constant.ts
|
18
|
+
var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
19
|
+
MethodConstants2["WEB_SEARCH_READ"] = "web_search_read";
|
20
|
+
MethodConstants2["WEB_READ_GROUP"] = "web_read_group";
|
21
|
+
MethodConstants2["WEB_READ"] = "web_read";
|
22
|
+
MethodConstants2["WEB_SAVE"] = "web_save";
|
23
|
+
MethodConstants2["UNLINK"] = "unlink";
|
24
|
+
MethodConstants2["ONCHANGE"] = "onchange";
|
25
|
+
MethodConstants2["GET_ONCHANGE_FIELDS"] = "get_fields_onchange";
|
26
|
+
MethodConstants2["GET_FIELD_VIEW"] = "get_fields_view_v2";
|
27
|
+
return MethodConstants2;
|
28
|
+
})(MethodConstants || {});
|
29
|
+
|
30
|
+
// src/constants/api/uri-constant.ts
|
31
|
+
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
32
|
+
UriConstants2["AUTH_TOKEN_PATH"] = "/authentication/oauth2/token";
|
33
|
+
UriConstants2["GENTOKEN_SOCIAL"] = "/token/generate";
|
34
|
+
UriConstants2["CALL_PATH"] = "/call";
|
35
|
+
UriConstants2["COMPANY_PATH"] = "/company";
|
36
|
+
UriConstants2["PROFILE_PATH"] = "/userinfo";
|
37
|
+
UriConstants2["RESET_PASSWORD_PATH"] = "/reset_password";
|
38
|
+
UriConstants2["CHANGE_PASSWORD_PATH"] = "/change_password";
|
39
|
+
UriConstants2["UPDATE_PASSWORD_PATH"] = "/change_password_parent";
|
40
|
+
UriConstants2["LOAD_ACTION"] = `/load_action`;
|
41
|
+
UriConstants2["REPORT_PATH"] = `/report`;
|
42
|
+
UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
|
43
|
+
UriConstants2["UPLOAD_FILE_PATH"] = `/upload/file`;
|
44
|
+
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
45
|
+
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
46
|
+
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
47
|
+
UriConstants2["DELETE_MESSAGE"] = `/chatter/message/update_content`;
|
48
|
+
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
49
|
+
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
50
|
+
UriConstants2["TOKEN"] = `/check_token`;
|
51
|
+
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
52
|
+
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
53
|
+
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
54
|
+
return UriConstants2;
|
55
|
+
})(UriConstants || {});
|
56
|
+
|
57
|
+
// src/constants/field/field-type-constant.ts
|
58
|
+
var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
|
59
|
+
FieldTypeConstants2["CHAR"] = "char";
|
60
|
+
FieldTypeConstants2["TEXT"] = "text";
|
61
|
+
FieldTypeConstants2["INTEGER"] = "integer";
|
62
|
+
FieldTypeConstants2["FLOAT"] = "float";
|
63
|
+
FieldTypeConstants2["BOOLEAN"] = "boolean";
|
64
|
+
FieldTypeConstants2["DATE"] = "date";
|
65
|
+
FieldTypeConstants2["DATETIME"] = "datetime";
|
66
|
+
FieldTypeConstants2["BINARY"] = "binary";
|
67
|
+
FieldTypeConstants2["SELECTION"] = "selection";
|
68
|
+
FieldTypeConstants2["HTML"] = "html";
|
69
|
+
FieldTypeConstants2["MANY2ONE"] = "many2one";
|
70
|
+
FieldTypeConstants2["ONE2MANY"] = "one2many";
|
71
|
+
FieldTypeConstants2["MANY2MANY"] = "many2many";
|
72
|
+
FieldTypeConstants2["MONETARY"] = "monetary";
|
73
|
+
FieldTypeConstants2["REFERENCE"] = "reference";
|
74
|
+
FieldTypeConstants2["FUNCTION"] = "function";
|
75
|
+
FieldTypeConstants2["PROPERTY"] = "property";
|
76
|
+
return FieldTypeConstants2;
|
77
|
+
})(FieldTypeConstants || {});
|
78
|
+
|
79
|
+
// src/constants/method/method-type-constant.ts
|
80
|
+
var MethodType = /* @__PURE__ */ ((MethodType2) => {
|
81
|
+
MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
|
82
|
+
MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
|
83
|
+
MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
|
84
|
+
MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
|
85
|
+
MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
|
86
|
+
return MethodType2;
|
87
|
+
})(MethodType || {});
|
88
|
+
|
89
|
+
// src/constants/model/model-constant.ts
|
90
|
+
var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
|
91
|
+
ModelConstants2["MENU"] = "ir.ui.menu";
|
92
|
+
ModelConstants2["USER"] = "res.users";
|
93
|
+
ModelConstants2["COMPANY"] = "res.company";
|
94
|
+
ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
|
95
|
+
ModelConstants2["BASE_IMPORT"] = "base_import.import";
|
96
|
+
ModelConstants2["GET_IMPORT"] = "get_import_templates";
|
97
|
+
return ModelConstants2;
|
98
|
+
})(ModelConstants || {});
|
99
|
+
|
100
|
+
// src/constants/type/index.ts
|
101
|
+
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
102
|
+
ComponentType2["GROUP"] = "group";
|
103
|
+
ComponentType2["FIELD"] = "field";
|
104
|
+
ComponentType2["TREE"] = "tree";
|
105
|
+
ComponentType2["DIV"] = "div";
|
106
|
+
ComponentType2["LIST"] = "list";
|
107
|
+
ComponentType2["FORM"] = "form";
|
108
|
+
ComponentType2["SETTINGS"] = "setting";
|
109
|
+
ComponentType2["SPAN"] = "span";
|
110
|
+
ComponentType2["KANBAN"] = "kanban";
|
111
|
+
ComponentType2["CALENDAR"] = "calendar";
|
112
|
+
ComponentType2["TYPE"] = "view-type";
|
113
|
+
return ComponentType2;
|
114
|
+
})(ComponentType || {});
|
115
|
+
var SearchType = {
|
116
|
+
FILTER: "filter_by",
|
117
|
+
SEARCH: "search_by",
|
118
|
+
GROUP: "group_by"
|
119
|
+
};
|
120
|
+
|
121
|
+
// src/constants/widget/widget-avatar-constant.ts
|
122
|
+
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
123
|
+
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
124
|
+
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
125
|
+
return WIDGETAVATAR2;
|
126
|
+
})(WIDGETAVATAR || {});
|
127
|
+
var WIDGETCURRENCY = /* @__PURE__ */ ((WIDGETCURRENCY2) => {
|
128
|
+
WIDGETCURRENCY2["many2one_avatar_user"] = "many2one_avatar_user";
|
129
|
+
WIDGETCURRENCY2["many2many_avatar_user"] = "many2many_avatar_user";
|
130
|
+
return WIDGETCURRENCY2;
|
131
|
+
})(WIDGETCURRENCY || {});
|
132
|
+
|
133
|
+
// src/constants/widget/widget-color-constant.ts
|
134
|
+
var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
|
135
|
+
WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
|
136
|
+
WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
|
137
|
+
return WIDGETCOLOR2;
|
138
|
+
})(WIDGETCOLOR || {});
|
139
|
+
|
140
|
+
// src/constants/widget/widget-status-constant.ts
|
141
|
+
var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
|
142
|
+
WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
|
143
|
+
return WIDGETSTATUS2;
|
144
|
+
})(WIDGETSTATUS || {});
|
145
|
+
var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
146
|
+
WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
|
147
|
+
return WIDGETNOSTRING2;
|
148
|
+
})(WIDGETNOSTRING || {});
|
149
|
+
export {
|
150
|
+
ComponentType,
|
151
|
+
FieldTypeConstants,
|
152
|
+
KeyConstants,
|
153
|
+
MethodConstants,
|
154
|
+
MethodType,
|
155
|
+
ModelConstants,
|
156
|
+
SearchType,
|
157
|
+
UriConstants,
|
158
|
+
WIDGETAVATAR,
|
159
|
+
WIDGETCOLOR,
|
160
|
+
WIDGETCURRENCY,
|
161
|
+
WIDGETNOSTRING,
|
162
|
+
WIDGETSTATUS
|
163
|
+
};
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { EnhancedStore } from '@reduxjs/toolkit';
|
2
|
+
import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-CxkkEmQh.mjs';
|
3
|
+
|
4
|
+
declare global {
|
5
|
+
interface Global {
|
6
|
+
envStore?: EnvStore;
|
7
|
+
}
|
8
|
+
interface Window {
|
9
|
+
envStore?: EnvStore;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
declare class EnvStore {
|
13
|
+
envStore: EnhancedStore | any;
|
14
|
+
baseUrl?: string;
|
15
|
+
requests?: any;
|
16
|
+
context?: any;
|
17
|
+
defaultCompany?: any;
|
18
|
+
config?: any;
|
19
|
+
companies?: any[];
|
20
|
+
user?: any;
|
21
|
+
db?: string;
|
22
|
+
localStorageUtils?: any;
|
23
|
+
sessionStorageUtils?: any;
|
24
|
+
constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
|
25
|
+
setup(): void;
|
26
|
+
setupEnv(envConfig: EnvStore): void;
|
27
|
+
setUid(uid: number): void;
|
28
|
+
setLang(lang: string): void;
|
29
|
+
setAllowCompanies(allowCompanies: number[]): void;
|
30
|
+
setCompanies(companies: any[]): void;
|
31
|
+
setDefaultCompany(company: any): void;
|
32
|
+
setUserInfo(userInfo: any): void;
|
33
|
+
}
|
34
|
+
declare let env: EnvStore | null;
|
35
|
+
declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
|
36
|
+
localStorageUtils?: LocalStorageUtilsType;
|
37
|
+
sessionStorageUtils?: SessionStorageUtilsType;
|
38
|
+
}): EnvStore;
|
39
|
+
declare function getEnv(): EnvStore;
|
40
|
+
|
41
|
+
export { EnvStore, env, getEnv, initEnv };
|