@fctc/edu-logic-lib 1.0.3 → 1.0.5
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/index.d.mts +1294 -23
- package/dist/index.d.ts +1294 -23
- package/package.json +96 -96
- package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
- package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
- package/dist/config.d.mts +0 -15
- package/dist/config.d.ts +0 -15
- package/dist/config.js +0 -262
- package/dist/config.mjs +0 -256
- package/dist/constants.d.mts +0 -120
- package/dist/constants.d.ts +0 -120
- package/dist/constants.js +0 -154
- package/dist/constants.mjs +0 -141
- package/dist/context-type-D5XefoL-.d.mts +0 -8
- package/dist/context-type-D5XefoL-.d.ts +0 -8
- package/dist/environment.d.mts +0 -37
- package/dist/environment.d.ts +0 -37
- package/dist/environment.js +0 -849
- package/dist/environment.mjs +0 -841
- package/dist/hooks.d.mts +0 -218
- package/dist/hooks.d.ts +0 -218
- package/dist/hooks.js +0 -4865
- package/dist/hooks.mjs +0 -4814
- package/dist/index-C_nK1Mii.d.mts +0 -19
- package/dist/index-C_nK1Mii.d.ts +0 -19
- package/dist/models.d.mts +0 -35
- package/dist/models.d.ts +0 -35
- package/dist/models.js +0 -3225
- package/dist/models.mjs +0 -3217
- package/dist/provider.d.mts +0 -16
- package/dist/provider.d.ts +0 -16
- package/dist/provider.js +0 -3232
- package/dist/provider.mjs +0 -3224
- package/dist/services.d.mts +0 -160
- package/dist/services.d.ts +0 -160
- package/dist/services.js +0 -4045
- package/dist/services.mjs +0 -4032
- package/dist/store.d.mts +0 -505
- package/dist/store.d.ts +0 -505
- package/dist/store.js +0 -582
- package/dist/store.mjs +0 -519
- package/dist/types.d.mts +0 -12
- package/dist/types.d.ts +0 -12
- package/dist/types.js +0 -2
- package/dist/types.mjs +0 -1
- package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
- package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
- package/dist/utils.d.mts +0 -52
- package/dist/utils.d.ts +0 -52
- package/dist/utils.js +0 -2360
- package/dist/utils.mjs +0 -2344
- package/dist/view-type-BTzRpkT7.d.mts +0 -106
- package/dist/view-type-BTzRpkT7.d.ts +0 -106
package/dist/constants.mjs
DELETED
|
@@ -1,141 +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
|
-
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
|
-
|
|
141
|
-
export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETNOSTRING, WIDGETSTATUS };
|
package/dist/environment.d.mts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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 };
|
package/dist/environment.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
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 };
|