@fctc/interface-logic 1.2.10 → 1.3.0

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/constants.js DELETED
@@ -1,205 +0,0 @@
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
- UriConstants2["GRANT_ACCESS"] = "/grant-access";
93
- UriConstants2["TOKEN_BY_CODE"] = "/token";
94
- UriConstants2["LOGOUT"] = "/logout";
95
- return UriConstants2;
96
- })(UriConstants || {});
97
-
98
- // src/constants/field/field-type-constant.ts
99
- var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
100
- FieldTypeConstants2["CHAR"] = "char";
101
- FieldTypeConstants2["TEXT"] = "text";
102
- FieldTypeConstants2["INTEGER"] = "integer";
103
- FieldTypeConstants2["FLOAT"] = "float";
104
- FieldTypeConstants2["BOOLEAN"] = "boolean";
105
- FieldTypeConstants2["DATE"] = "date";
106
- FieldTypeConstants2["DATETIME"] = "datetime";
107
- FieldTypeConstants2["BINARY"] = "binary";
108
- FieldTypeConstants2["SELECTION"] = "selection";
109
- FieldTypeConstants2["HTML"] = "html";
110
- FieldTypeConstants2["MANY2ONE"] = "many2one";
111
- FieldTypeConstants2["ONE2MANY"] = "one2many";
112
- FieldTypeConstants2["MANY2MANY"] = "many2many";
113
- FieldTypeConstants2["MONETARY"] = "monetary";
114
- FieldTypeConstants2["REFERENCE"] = "reference";
115
- FieldTypeConstants2["FUNCTION"] = "function";
116
- FieldTypeConstants2["PROPERTY"] = "property";
117
- return FieldTypeConstants2;
118
- })(FieldTypeConstants || {});
119
-
120
- // src/constants/method/method-type-constant.ts
121
- var MethodType = /* @__PURE__ */ ((MethodType2) => {
122
- MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
123
- MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
124
- MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
125
- MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
126
- MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
127
- return MethodType2;
128
- })(MethodType || {});
129
-
130
- // src/constants/model/model-constant.ts
131
- var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
132
- ModelConstants2["MENU"] = "ir.ui.menu";
133
- ModelConstants2["USER"] = "res.users";
134
- ModelConstants2["COMPANY"] = "res.company";
135
- ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
136
- ModelConstants2["BASE_IMPORT"] = "base_import.import";
137
- ModelConstants2["GET_IMPORT"] = "get_import_templates";
138
- return ModelConstants2;
139
- })(ModelConstants || {});
140
-
141
- // src/constants/type/index.ts
142
- var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
143
- ComponentType2["GROUP"] = "group";
144
- ComponentType2["FIELD"] = "field";
145
- ComponentType2["TREE"] = "tree";
146
- ComponentType2["DIV"] = "div";
147
- ComponentType2["LIST"] = "list";
148
- ComponentType2["FORM"] = "form";
149
- ComponentType2["SETTINGS"] = "setting";
150
- ComponentType2["SPAN"] = "span";
151
- ComponentType2["KANBAN"] = "kanban";
152
- ComponentType2["CALENDAR"] = "calendar";
153
- ComponentType2["TYPE"] = "view-type";
154
- return ComponentType2;
155
- })(ComponentType || {});
156
- var SearchType = {
157
- FILTER: "filter_by",
158
- SEARCH: "search_by",
159
- GROUP: "group_by"
160
- };
161
-
162
- // src/constants/widget/widget-avatar-constant.ts
163
- var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
164
- WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
165
- WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
166
- return WIDGETAVATAR2;
167
- })(WIDGETAVATAR || {});
168
- var WIDGETCURRENCY = /* @__PURE__ */ ((WIDGETCURRENCY2) => {
169
- WIDGETCURRENCY2["many2one_avatar_user"] = "many2one_avatar_user";
170
- WIDGETCURRENCY2["many2many_avatar_user"] = "many2many_avatar_user";
171
- return WIDGETCURRENCY2;
172
- })(WIDGETCURRENCY || {});
173
-
174
- // src/constants/widget/widget-color-constant.ts
175
- var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
176
- WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
177
- WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
178
- return WIDGETCOLOR2;
179
- })(WIDGETCOLOR || {});
180
-
181
- // src/constants/widget/widget-status-constant.ts
182
- var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
183
- WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
184
- return WIDGETSTATUS2;
185
- })(WIDGETSTATUS || {});
186
- var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
187
- WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
188
- return WIDGETNOSTRING2;
189
- })(WIDGETNOSTRING || {});
190
- // Annotate the CommonJS export names for ESM import in node:
191
- 0 && (module.exports = {
192
- ComponentType,
193
- FieldTypeConstants,
194
- KeyConstants,
195
- MethodConstants,
196
- MethodType,
197
- ModelConstants,
198
- SearchType,
199
- UriConstants,
200
- WIDGETAVATAR,
201
- WIDGETCOLOR,
202
- WIDGETCURRENCY,
203
- WIDGETNOSTRING,
204
- WIDGETSTATUS
205
- });
@@ -1,166 +0,0 @@
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
- UriConstants2["GRANT_ACCESS"] = "/grant-access";
55
- UriConstants2["TOKEN_BY_CODE"] = "/token";
56
- UriConstants2["LOGOUT"] = "/logout";
57
- return UriConstants2;
58
- })(UriConstants || {});
59
-
60
- // src/constants/field/field-type-constant.ts
61
- var FieldTypeConstants = /* @__PURE__ */ ((FieldTypeConstants2) => {
62
- FieldTypeConstants2["CHAR"] = "char";
63
- FieldTypeConstants2["TEXT"] = "text";
64
- FieldTypeConstants2["INTEGER"] = "integer";
65
- FieldTypeConstants2["FLOAT"] = "float";
66
- FieldTypeConstants2["BOOLEAN"] = "boolean";
67
- FieldTypeConstants2["DATE"] = "date";
68
- FieldTypeConstants2["DATETIME"] = "datetime";
69
- FieldTypeConstants2["BINARY"] = "binary";
70
- FieldTypeConstants2["SELECTION"] = "selection";
71
- FieldTypeConstants2["HTML"] = "html";
72
- FieldTypeConstants2["MANY2ONE"] = "many2one";
73
- FieldTypeConstants2["ONE2MANY"] = "one2many";
74
- FieldTypeConstants2["MANY2MANY"] = "many2many";
75
- FieldTypeConstants2["MONETARY"] = "monetary";
76
- FieldTypeConstants2["REFERENCE"] = "reference";
77
- FieldTypeConstants2["FUNCTION"] = "function";
78
- FieldTypeConstants2["PROPERTY"] = "property";
79
- return FieldTypeConstants2;
80
- })(FieldTypeConstants || {});
81
-
82
- // src/constants/method/method-type-constant.ts
83
- var MethodType = /* @__PURE__ */ ((MethodType2) => {
84
- MethodType2[MethodType2["CREATE"] = 0] = "CREATE";
85
- MethodType2[MethodType2["UPDATE"] = 1] = "UPDATE";
86
- MethodType2[MethodType2["DELETE"] = 2] = "DELETE";
87
- MethodType2[MethodType2["UNLINK"] = 3] = "UNLINK";
88
- MethodType2[MethodType2["NO_CHANGE"] = 4] = "NO_CHANGE";
89
- return MethodType2;
90
- })(MethodType || {});
91
-
92
- // src/constants/model/model-constant.ts
93
- var ModelConstants = /* @__PURE__ */ ((ModelConstants2) => {
94
- ModelConstants2["MENU"] = "ir.ui.menu";
95
- ModelConstants2["USER"] = "res.users";
96
- ModelConstants2["COMPANY"] = "res.company";
97
- ModelConstants2["WINDOW_ACTION"] = "ir.actions.act_window";
98
- ModelConstants2["BASE_IMPORT"] = "base_import.import";
99
- ModelConstants2["GET_IMPORT"] = "get_import_templates";
100
- return ModelConstants2;
101
- })(ModelConstants || {});
102
-
103
- // src/constants/type/index.ts
104
- var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
105
- ComponentType2["GROUP"] = "group";
106
- ComponentType2["FIELD"] = "field";
107
- ComponentType2["TREE"] = "tree";
108
- ComponentType2["DIV"] = "div";
109
- ComponentType2["LIST"] = "list";
110
- ComponentType2["FORM"] = "form";
111
- ComponentType2["SETTINGS"] = "setting";
112
- ComponentType2["SPAN"] = "span";
113
- ComponentType2["KANBAN"] = "kanban";
114
- ComponentType2["CALENDAR"] = "calendar";
115
- ComponentType2["TYPE"] = "view-type";
116
- return ComponentType2;
117
- })(ComponentType || {});
118
- var SearchType = {
119
- FILTER: "filter_by",
120
- SEARCH: "search_by",
121
- GROUP: "group_by"
122
- };
123
-
124
- // src/constants/widget/widget-avatar-constant.ts
125
- var WIDGETAVATAR = /* @__PURE__ */ ((WIDGETAVATAR2) => {
126
- WIDGETAVATAR2["many2one_avatar_user"] = "many2one_avatar_user";
127
- WIDGETAVATAR2["many2many_avatar_user"] = "many2many_avatar_user";
128
- return WIDGETAVATAR2;
129
- })(WIDGETAVATAR || {});
130
- var WIDGETCURRENCY = /* @__PURE__ */ ((WIDGETCURRENCY2) => {
131
- WIDGETCURRENCY2["many2one_avatar_user"] = "many2one_avatar_user";
132
- WIDGETCURRENCY2["many2many_avatar_user"] = "many2many_avatar_user";
133
- return WIDGETCURRENCY2;
134
- })(WIDGETCURRENCY || {});
135
-
136
- // src/constants/widget/widget-color-constant.ts
137
- var WIDGETCOLOR = /* @__PURE__ */ ((WIDGETCOLOR2) => {
138
- WIDGETCOLOR2["many2many_tags"] = "many2many_tags";
139
- WIDGETCOLOR2["helpdesk_sla_many2many_tags"] = "helpdesk_sla_many2many_tags";
140
- return WIDGETCOLOR2;
141
- })(WIDGETCOLOR || {});
142
-
143
- // src/constants/widget/widget-status-constant.ts
144
- var WIDGETSTATUS = /* @__PURE__ */ ((WIDGETSTATUS2) => {
145
- WIDGETSTATUS2["sla_status_ids"] = "sla_status_ids";
146
- return WIDGETSTATUS2;
147
- })(WIDGETSTATUS || {});
148
- var WIDGETNOSTRING = /* @__PURE__ */ ((WIDGETNOSTRING2) => {
149
- WIDGETNOSTRING2["sla_status_ids"] = "sla_status_ids";
150
- return WIDGETNOSTRING2;
151
- })(WIDGETNOSTRING || {});
152
- export {
153
- ComponentType,
154
- FieldTypeConstants,
155
- KeyConstants,
156
- MethodConstants,
157
- MethodType,
158
- ModelConstants,
159
- SearchType,
160
- UriConstants,
161
- WIDGETAVATAR,
162
- WIDGETCOLOR,
163
- WIDGETCURRENCY,
164
- WIDGETNOSTRING,
165
- WIDGETSTATUS
166
- };