edu-logic-lib 1.0.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/base-model-type-DvO53Lwi.d.mts +7 -0
- package/dist/base-model-type-DvO53Lwi.d.ts +7 -0
- package/dist/config.d.mts +15 -0
- package/dist/config.d.ts +15 -0
- package/dist/config.js +294 -0
- package/dist/config.mjs +257 -0
- package/dist/constants.d.mts +120 -0
- package/dist/constants.d.ts +120 -0
- package/dist/constants.js +191 -0
- package/dist/constants.mjs +153 -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 +910 -0
- package/dist/environment.mjs +870 -0
- package/dist/hooks.d.mts +216 -0
- package/dist/hooks.d.ts +216 -0
- package/dist/hooks.js +5094 -0
- package/dist/hooks.mjs +5013 -0
- package/dist/index-C_nK1Mii.d.mts +19 -0
- package/dist/index-C_nK1Mii.d.ts +19 -0
- package/dist/models.d.mts +35 -0
- package/dist/models.d.ts +35 -0
- package/dist/models.js +3288 -0
- package/dist/models.mjs +3249 -0
- package/dist/provider.d.mts +16 -0
- package/dist/provider.d.ts +16 -0
- package/dist/provider.js +3311 -0
- package/dist/provider.mjs +3272 -0
- package/dist/services.d.mts +160 -0
- package/dist/services.d.ts +160 -0
- package/dist/services.js +4113 -0
- package/dist/services.mjs +4069 -0
- package/dist/store.d.mts +505 -0
- package/dist/store.d.ts +505 -0
- package/dist/store.js +691 -0
- package/dist/store.mjs +603 -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-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 +2402 -0
- package/dist/utils.mjs +2361 -0
- package/dist/view-type-BTzRpkT7.d.mts +106 -0
- package/dist/view-type-BTzRpkT7.d.ts +106 -0
- package/package.json +89 -0
|
@@ -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,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,191 @@
|
|
|
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
|
+
WIDGETNOSTRING: () => WIDGETNOSTRING,
|
|
34
|
+
WIDGETSTATUS: () => WIDGETSTATUS
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(constants_exports);
|
|
37
|
+
|
|
38
|
+
// src/constants/api/key-constant.ts
|
|
39
|
+
var KeyConstants = /* @__PURE__ */ ((KeyConstants2) => {
|
|
40
|
+
KeyConstants2["PROFILE"] = "userinfo";
|
|
41
|
+
KeyConstants2["CURRENT_COMPANY"] = "current_company";
|
|
42
|
+
KeyConstants2["LIST_COMPANY"] = "list_company";
|
|
43
|
+
KeyConstants2["COMPANY_INFO"] = "company_info";
|
|
44
|
+
KeyConstants2["MENU"] = "menus";
|
|
45
|
+
KeyConstants2["GET_VIEW_BY_ACTION"] = "get_view_by_action";
|
|
46
|
+
KeyConstants2["ACTION_DETAIL"] = "action_detail";
|
|
47
|
+
KeyConstants2["GET_DATA_SELECTION"] = "get_data_select";
|
|
48
|
+
KeyConstants2["WEB_SAVE"] = "web_save";
|
|
49
|
+
KeyConstants2["WEB_READ"] = "web_read";
|
|
50
|
+
KeyConstants2["GET_PROVIDER"] = "get_provider";
|
|
51
|
+
return KeyConstants2;
|
|
52
|
+
})(KeyConstants || {});
|
|
53
|
+
|
|
54
|
+
// src/constants/api/method-constant.ts
|
|
55
|
+
var MethodConstants = /* @__PURE__ */ ((MethodConstants2) => {
|
|
56
|
+
MethodConstants2["WEB_SEARCH_READ"] = "web_search_read";
|
|
57
|
+
MethodConstants2["WEB_READ_GROUP"] = "web_read_group";
|
|
58
|
+
MethodConstants2["WEB_READ"] = "web_read";
|
|
59
|
+
MethodConstants2["WEB_SAVE"] = "web_save";
|
|
60
|
+
MethodConstants2["UNLINK"] = "unlink";
|
|
61
|
+
MethodConstants2["ONCHANGE"] = "onchange";
|
|
62
|
+
MethodConstants2["GET_ONCHANGE_FIELDS"] = "get_fields_onchange";
|
|
63
|
+
MethodConstants2["GET_FIELD_VIEW"] = "get_fields_view_v2";
|
|
64
|
+
return MethodConstants2;
|
|
65
|
+
})(MethodConstants || {});
|
|
66
|
+
|
|
67
|
+
// src/constants/api/uri-constant.ts
|
|
68
|
+
var UriConstants = /* @__PURE__ */ ((UriConstants2) => {
|
|
69
|
+
UriConstants2["AUTH_TOKEN_PATH"] = "/authentication/oauth2/token";
|
|
70
|
+
UriConstants2["GENTOKEN_SOCIAL"] = "/token/generate";
|
|
71
|
+
UriConstants2["CALL_PATH"] = "/call";
|
|
72
|
+
UriConstants2["COMPANY_PATH"] = "/company";
|
|
73
|
+
UriConstants2["PROFILE_PATH"] = "/userinfo";
|
|
74
|
+
UriConstants2["RESET_PASSWORD_PATH"] = "/reset_password";
|
|
75
|
+
UriConstants2["CHANGE_PASSWORD_PATH"] = "/change_password";
|
|
76
|
+
UriConstants2["UPDATE_PASSWORD_PATH"] = "/change_password_parent";
|
|
77
|
+
UriConstants2["LOAD_ACTION"] = `/load_action`;
|
|
78
|
+
UriConstants2["REPORT_PATH"] = `/report`;
|
|
79
|
+
UriConstants2["RUN_ACTION_PATH"] = `/run_action`;
|
|
80
|
+
UriConstants2["UPLOAD_FILE_PATH"] = `/upload/file`;
|
|
81
|
+
UriConstants2["GET_MESSAGE"] = `/chatter/thread/messages`;
|
|
82
|
+
UriConstants2["SENT_MESSAGE"] = `/chatter/message/post`;
|
|
83
|
+
UriConstants2["UPLOAD_IMAGE"] = `/mail/attachment/upload`;
|
|
84
|
+
UriConstants2["DELETE_MESSAGE"] = `/chatter/message/update_content`;
|
|
85
|
+
UriConstants2["IMAGE_PATH"] = `/web/image`;
|
|
86
|
+
UriConstants2["LOAD_MESSAGE"] = `/load_message_failures`;
|
|
87
|
+
UriConstants2["TOKEN"] = `/check_token`;
|
|
88
|
+
UriConstants2["CREATE_UPDATE_PATH"] = `/create_update`;
|
|
89
|
+
UriConstants2["TWOFA_METHOD_PATH"] = `/id/api/v2/call`;
|
|
90
|
+
UriConstants2["SIGNIN_SSO"] = `/signin-sso/oauth`;
|
|
91
|
+
return UriConstants2;
|
|
92
|
+
})(UriConstants || {});
|
|
93
|
+
|
|
94
|
+
// src/constants/field/field-type-constant.ts
|
|
95
|
+
var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
|
|
96
|
+
FieldTypeConstants2["CHAR"] = "char";
|
|
97
|
+
FieldTypeConstants2["TEXT"] = "text";
|
|
98
|
+
FieldTypeConstants2["INTEGER"] = "integer";
|
|
99
|
+
FieldTypeConstants2["FLOAT"] = "float";
|
|
100
|
+
FieldTypeConstants2["BOOLEAN"] = "boolean";
|
|
101
|
+
FieldTypeConstants2["DATE"] = "date";
|
|
102
|
+
FieldTypeConstants2["DATETIME"] = "datetime";
|
|
103
|
+
FieldTypeConstants2["BINARY"] = "binary";
|
|
104
|
+
FieldTypeConstants2["SELECTION"] = "selection";
|
|
105
|
+
FieldTypeConstants2["HTML"] = "html";
|
|
106
|
+
FieldTypeConstants2["MANY2ONE"] = "many2one";
|
|
107
|
+
FieldTypeConstants2["ONE2MANY"] = "one2many";
|
|
108
|
+
FieldTypeConstants2["MANY2MANY"] = "many2many";
|
|
109
|
+
FieldTypeConstants2["MONETARY"] = "monetary";
|
|
110
|
+
FieldTypeConstants2["REFERENCE"] = "reference";
|
|
111
|
+
FieldTypeConstants2["FUNCTION"] = "function";
|
|
112
|
+
FieldTypeConstants2["PROPERTY"] = "property";
|
|
113
|
+
return FieldTypeConstants2;
|
|
114
|
+
})(FieldTypeConstants || {});
|
|
115
|
+
|
|
116
|
+
// src/constants/method/method-type-constant.ts
|
|
117
|
+
var MethodType = /* @__PURE__ */ ((MethodType2) => {
|
|
118
|
+
MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
|
|
119
|
+
MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
|
|
120
|
+
MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
|
|
121
|
+
MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
|
|
122
|
+
MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
|
|
123
|
+
return MethodType2;
|
|
124
|
+
})(MethodType || {});
|
|
125
|
+
|
|
126
|
+
// src/constants/model/model-constant.ts
|
|
127
|
+
var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
|
|
128
|
+
ModelConstants2["MENU"] = "ir.ui.menu";
|
|
129
|
+
ModelConstants2["USER"] = "res.users";
|
|
130
|
+
ModelConstants2["COMPANY"] = "res.company";
|
|
131
|
+
ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
|
|
132
|
+
ModelConstants2["BASE_IMPORT"] = "base_import.import";
|
|
133
|
+
ModelConstants2["GET_IMPORT"] = "get_import_templates";
|
|
134
|
+
return ModelConstants2;
|
|
135
|
+
})(ModelConstants || {});
|
|
136
|
+
|
|
137
|
+
// src/constants/type/index.ts
|
|
138
|
+
var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
|
|
139
|
+
ComponentType2["TREE"] = "tree";
|
|
140
|
+
ComponentType2["GROUP"] = "group";
|
|
141
|
+
ComponentType2["LIST"] = "list";
|
|
142
|
+
ComponentType2["FORM"] = "form";
|
|
143
|
+
ComponentType2["FIELD"] = "field";
|
|
144
|
+
ComponentType2["DIV"] = "div";
|
|
145
|
+
ComponentType2["SPAN"] = "span";
|
|
146
|
+
return ComponentType2;
|
|
147
|
+
})(ComponentType || {});
|
|
148
|
+
var SearchType = {
|
|
149
|
+
FILTER: "filter_by",
|
|
150
|
+
SEARCH: "search_by",
|
|
151
|
+
GROUP: "group_by"
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// src/constants/widget/widget-avatar-constant.ts
|
|
155
|
+
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
|
156
|
+
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
|
157
|
+
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
|
158
|
+
return WIDGETAVATAR2;
|
|
159
|
+
})(WIDGETAVATAR || {});
|
|
160
|
+
|
|
161
|
+
// src/constants/widget/widget-color-constant.ts
|
|
162
|
+
var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
|
|
163
|
+
WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
|
|
164
|
+
WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
|
|
165
|
+
return WIDGETCOLOR2;
|
|
166
|
+
})(WIDGETCOLOR || {});
|
|
167
|
+
|
|
168
|
+
// src/constants/widget/widget-status-constant.ts
|
|
169
|
+
var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
|
|
170
|
+
WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
|
|
171
|
+
return WIDGETSTATUS2;
|
|
172
|
+
})(WIDGETSTATUS || {});
|
|
173
|
+
var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
|
174
|
+
WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
|
|
175
|
+
return WIDGETNOSTRING2;
|
|
176
|
+
})(WIDGETNOSTRING || {});
|
|
177
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
178
|
+
0 && (module.exports = {
|
|
179
|
+
ComponentType,
|
|
180
|
+
FieldTypeConstants,
|
|
181
|
+
KeyConstants,
|
|
182
|
+
MethodConstants,
|
|
183
|
+
MethodType,
|
|
184
|
+
ModelConstants,
|
|
185
|
+
SearchType,
|
|
186
|
+
UriConstants,
|
|
187
|
+
WIDGETAVATAR,
|
|
188
|
+
WIDGETCOLOR,
|
|
189
|
+
WIDGETNOSTRING,
|
|
190
|
+
WIDGETSTATUS
|
|
191
|
+
});
|
|
@@ -0,0 +1,153 @@
|
|
|
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["TREE"] = "tree";
|
|
103
|
+
ComponentType2["GROUP"] = "group";
|
|
104
|
+
ComponentType2["LIST"] = "list";
|
|
105
|
+
ComponentType2["FORM"] = "form";
|
|
106
|
+
ComponentType2["FIELD"] = "field";
|
|
107
|
+
ComponentType2["DIV"] = "div";
|
|
108
|
+
ComponentType2["SPAN"] = "span";
|
|
109
|
+
return ComponentType2;
|
|
110
|
+
})(ComponentType || {});
|
|
111
|
+
var SearchType = {
|
|
112
|
+
FILTER: "filter_by",
|
|
113
|
+
SEARCH: "search_by",
|
|
114
|
+
GROUP: "group_by"
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
// src/constants/widget/widget-avatar-constant.ts
|
|
118
|
+
var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
|
|
119
|
+
WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
|
|
120
|
+
WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
|
|
121
|
+
return WIDGETAVATAR2;
|
|
122
|
+
})(WIDGETAVATAR || {});
|
|
123
|
+
|
|
124
|
+
// src/constants/widget/widget-color-constant.ts
|
|
125
|
+
var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
|
|
126
|
+
WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
|
|
127
|
+
WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
|
|
128
|
+
return WIDGETCOLOR2;
|
|
129
|
+
})(WIDGETCOLOR || {});
|
|
130
|
+
|
|
131
|
+
// src/constants/widget/widget-status-constant.ts
|
|
132
|
+
var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
|
|
133
|
+
WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
|
|
134
|
+
return WIDGETSTATUS2;
|
|
135
|
+
})(WIDGETSTATUS || {});
|
|
136
|
+
var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
|
|
137
|
+
WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
|
|
138
|
+
return WIDGETNOSTRING2;
|
|
139
|
+
})(WIDGETNOSTRING || {});
|
|
140
|
+
export {
|
|
141
|
+
ComponentType,
|
|
142
|
+
FieldTypeConstants,
|
|
143
|
+
KeyConstants,
|
|
144
|
+
MethodConstants,
|
|
145
|
+
MethodType,
|
|
146
|
+
ModelConstants,
|
|
147
|
+
SearchType,
|
|
148
|
+
UriConstants,
|
|
149
|
+
WIDGETAVATAR,
|
|
150
|
+
WIDGETCOLOR,
|
|
151
|
+
WIDGETNOSTRING,
|
|
152
|
+
WIDGETSTATUS
|
|
153
|
+
};
|
|
@@ -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 };
|