@fctc/edu-logic-lib 1.0.2 → 1.0.4

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.
Files changed (69) hide show
  1. package/dist/{store.d.ts → index.d.mts} +574 -3
  2. package/dist/{store.d.mts → index.d.ts} +574 -3
  3. package/dist/index.js +4709 -0
  4. package/dist/index.mjs +4596 -0
  5. package/package.json +1 -1
  6. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  7. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  8. package/dist/chunk-6BLY7NZ6.mjs +0 -124
  9. package/dist/chunk-6QXB3XX7.mjs +0 -258
  10. package/dist/chunk-ELARQVCE.mjs +0 -2364
  11. package/dist/chunk-FVGPSTJ7.js +0 -124
  12. package/dist/chunk-GGOFXFSX.js +0 -2364
  13. package/dist/chunk-IXDDYGKE.js +0 -61
  14. package/dist/chunk-MJLXGYQ4.mjs +0 -102
  15. package/dist/chunk-MLJQPO4Q.mjs +0 -61
  16. package/dist/chunk-QLUONJPQ.mjs +0 -604
  17. package/dist/chunk-RZBHZYXG.js +0 -604
  18. package/dist/chunk-S7B3VKMJ.mjs +0 -95
  19. package/dist/chunk-S7YF2I23.js +0 -95
  20. package/dist/chunk-U4CC2BBB.js +0 -1074
  21. package/dist/chunk-UY6GNZNB.js +0 -258
  22. package/dist/chunk-W4W2L2NA.js +0 -102
  23. package/dist/chunk-WYXAE5LI.mjs +0 -1074
  24. package/dist/config.d.mts +0 -15
  25. package/dist/config.d.ts +0 -15
  26. package/dist/config.js +0 -7
  27. package/dist/config.mjs +0 -7
  28. package/dist/constants.d.mts +0 -120
  29. package/dist/constants.d.ts +0 -120
  30. package/dist/constants.js +0 -30
  31. package/dist/constants.mjs +0 -30
  32. package/dist/context-type-D5XefoL-.d.mts +0 -8
  33. package/dist/context-type-D5XefoL-.d.ts +0 -8
  34. package/dist/environment.d.mts +0 -37
  35. package/dist/environment.d.ts +0 -37
  36. package/dist/environment.js +0 -15
  37. package/dist/environment.mjs +0 -15
  38. package/dist/hooks.d.mts +0 -216
  39. package/dist/hooks.d.ts +0 -216
  40. package/dist/hooks.js +0 -776
  41. package/dist/hooks.mjs +0 -776
  42. package/dist/index-C_nK1Mii.d.mts +0 -19
  43. package/dist/index-C_nK1Mii.d.ts +0 -19
  44. package/dist/models.d.mts +0 -35
  45. package/dist/models.d.ts +0 -35
  46. package/dist/models.js +0 -43
  47. package/dist/models.mjs +0 -43
  48. package/dist/provider.d.mts +0 -16
  49. package/dist/provider.d.ts +0 -16
  50. package/dist/provider.js +0 -86
  51. package/dist/provider.mjs +0 -86
  52. package/dist/services.d.mts +0 -160
  53. package/dist/services.d.ts +0 -160
  54. package/dist/services.js +0 -26
  55. package/dist/services.mjs +0 -26
  56. package/dist/store.js +0 -128
  57. package/dist/store.mjs +0 -128
  58. package/dist/types.d.mts +0 -12
  59. package/dist/types.d.ts +0 -12
  60. package/dist/types.js +0 -1
  61. package/dist/types.mjs +0 -0
  62. package/dist/use-get-selection-DFh6sc49.d.mts +0 -26
  63. package/dist/use-get-selection-DFh6sc49.d.ts +0 -26
  64. package/dist/utils.d.mts +0 -52
  65. package/dist/utils.d.ts +0 -52
  66. package/dist/utils.js +0 -34
  67. package/dist/utils.mjs +0 -34
  68. package/dist/view-type-BTzRpkT7.d.mts +0 -106
  69. package/dist/view-type-BTzRpkT7.d.ts +0 -106
package/dist/config.d.mts DELETED
@@ -1,15 +0,0 @@
1
- import { EnvStore } from './environment.mjs';
2
- import '@reduxjs/toolkit';
3
-
4
- declare const axiosClient: {
5
- init(config: EnvStore): {
6
- get: (url: string, headers: any) => Promise<any>;
7
- post: (url: string, body: any, headers: any) => Promise<any>;
8
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
9
- put: (url: string, body: any, headers: any) => Promise<any>;
10
- patch: (url: string, body: any) => Promise<any>;
11
- delete: (url: string, body: any) => Promise<any>;
12
- };
13
- };
14
-
15
- export { axiosClient };
package/dist/config.d.ts DELETED
@@ -1,15 +0,0 @@
1
- import { EnvStore } from './environment.js';
2
- import '@reduxjs/toolkit';
3
-
4
- declare const axiosClient: {
5
- init(config: EnvStore): {
6
- get: (url: string, headers: any) => Promise<any>;
7
- post: (url: string, body: any, headers: any) => Promise<any>;
8
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
9
- put: (url: string, body: any, headers: any) => Promise<any>;
10
- patch: (url: string, body: any) => Promise<any>;
11
- delete: (url: string, body: any) => Promise<any>;
12
- };
13
- };
14
-
15
- export { axiosClient };
package/dist/config.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkUY6GNZNBjs = require('./chunk-UY6GNZNB.js');
4
- require('./chunk-IXDDYGKE.js');
5
-
6
-
7
- exports.axiosClient = _chunkUY6GNZNBjs.axiosClient;
package/dist/config.mjs DELETED
@@ -1,7 +0,0 @@
1
- import {
2
- axiosClient
3
- } from "./chunk-6QXB3XX7.mjs";
4
- import "./chunk-MLJQPO4Q.mjs";
5
- export {
6
- axiosClient
7
- };
@@ -1,120 +0,0 @@
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 };
@@ -1,120 +0,0 @@
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 };
package/dist/constants.js DELETED
@@ -1,30 +0,0 @@
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,30 +0,0 @@
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";
17
- export {
18
- ComponentType,
19
- FieldTypeConstants,
20
- KeyConstants,
21
- MethodConstants,
22
- MethodType,
23
- ModelConstants,
24
- SearchType,
25
- UriConstants,
26
- WIDGETAVATAR,
27
- WIDGETCOLOR,
28
- WIDGETNOSTRING,
29
- WIDGETSTATUS
30
- };
@@ -1,8 +0,0 @@
1
- interface Context {
2
- uid: number;
3
- lang: string;
4
- allowCompanys: number[];
5
- [key: string]: any;
6
- }
7
-
8
- export type { Context as C };
@@ -1,8 +0,0 @@
1
- interface Context {
2
- uid: number;
3
- lang: string;
4
- allowCompanys: number[];
5
- [key: string]: any;
6
- }
7
-
8
- export type { Context as C };
@@ -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 };
@@ -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 };
@@ -1,15 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
- var _chunkW4W2L2NAjs = require('./chunk-W4W2L2NA.js');
7
- require('./chunk-UY6GNZNB.js');
8
- require('./chunk-IXDDYGKE.js');
9
- require('./chunk-RZBHZYXG.js');
10
-
11
-
12
-
13
-
14
-
15
- exports.EnvStore = _chunkW4W2L2NAjs.EnvStore; exports.env = _chunkW4W2L2NAjs.env; exports.getEnv = _chunkW4W2L2NAjs.getEnv; exports.initEnv = _chunkW4W2L2NAjs.initEnv;
@@ -1,15 +0,0 @@
1
- import {
2
- EnvStore,
3
- env,
4
- getEnv,
5
- initEnv
6
- } from "./chunk-MJLXGYQ4.mjs";
7
- import "./chunk-6QXB3XX7.mjs";
8
- import "./chunk-MLJQPO4Q.mjs";
9
- import "./chunk-QLUONJPQ.mjs";
10
- export {
11
- EnvStore,
12
- env,
13
- getEnv,
14
- initEnv
15
- };