@fctc/edu-logic-lib 1.0.0 → 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/constants.js CHANGED
@@ -1,191 +1,30 @@
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
- });
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+ var _chunkS7YF2I23js = require('./chunk-S7YF2I23.js');
12
+
13
+
14
+
15
+
16
+ var _chunkIXDDYGKEjs = require('./chunk-IXDDYGKE.js');
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+ exports.ComponentType = _chunkS7YF2I23js.ComponentType; exports.FieldTypeConstants = _chunkS7YF2I23js.FieldTypeConstants; exports.KeyConstants = _chunkIXDDYGKEjs.KeyConstants; exports.MethodConstants = _chunkIXDDYGKEjs.MethodConstants; exports.MethodType = _chunkS7YF2I23js.MethodType; exports.ModelConstants = _chunkS7YF2I23js.ModelConstants; exports.SearchType = _chunkS7YF2I23js.SearchType; exports.UriConstants = _chunkIXDDYGKEjs.UriConstants; exports.WIDGETAVATAR = _chunkS7YF2I23js.WIDGETAVATAR; exports.WIDGETCOLOR = _chunkS7YF2I23js.WIDGETCOLOR; exports.WIDGETNOSTRING = _chunkS7YF2I23js.WIDGETNOSTRING; exports.WIDGETSTATUS = _chunkS7YF2I23js.WIDGETSTATUS;
@@ -1,142 +1,19 @@
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 || {});
1
+ import {
2
+ ComponentType,
3
+ FieldTypeConstants,
4
+ MethodType,
5
+ ModelConstants,
6
+ SearchType,
7
+ WIDGETAVATAR,
8
+ WIDGETCOLOR,
9
+ WIDGETNOSTRING,
10
+ WIDGETSTATUS
11
+ } from "./chunk-S7B3VKMJ.mjs";
12
+ import {
13
+ KeyConstants,
14
+ MethodConstants,
15
+ UriConstants
16
+ } from "./chunk-MLJQPO4Q.mjs";
140
17
  export {
141
18
  ComponentType,
142
19
  FieldTypeConstants,