@fctc/interface-logic 1.2.9 → 1.2.10

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 (47) hide show
  1. package/dist/{hook.js → hooks.js} +14 -16
  2. package/dist/{hook.mjs → hooks.mjs} +10 -12
  3. package/dist/index.d.mts +1709 -24
  4. package/dist/index.d.ts +1709 -24
  5. package/dist/index.js +14 -16
  6. package/dist/index.mjs +14 -16
  7. package/dist/model.js +2 -2
  8. package/dist/model.mjs +2 -2
  9. package/dist/provider.js +2 -2
  10. package/dist/provider.mjs +2 -2
  11. package/dist/services.js +6 -7
  12. package/dist/services.mjs +6 -7
  13. package/dist/store.js +4 -4
  14. package/dist/store.mjs +4 -4
  15. package/package.json +87 -87
  16. package/dist/base-model-type-DvO53Lwi.d.mts +0 -7
  17. package/dist/base-model-type-DvO53Lwi.d.ts +0 -7
  18. package/dist/config.d.mts +0 -16
  19. package/dist/config.d.ts +0 -16
  20. package/dist/constants.d.mts +0 -131
  21. package/dist/constants.d.ts +0 -131
  22. package/dist/context-type-D5XefoL-.d.mts +0 -8
  23. package/dist/context-type-D5XefoL-.d.ts +0 -8
  24. package/dist/environment.d.mts +0 -42
  25. package/dist/environment.d.ts +0 -42
  26. package/dist/hook.d.mts +0 -340
  27. package/dist/hook.d.ts +0 -340
  28. package/dist/index-C_nK1Mii.d.mts +0 -19
  29. package/dist/index-C_nK1Mii.d.ts +0 -19
  30. package/dist/model.d.mts +0 -35
  31. package/dist/model.d.ts +0 -35
  32. package/dist/provider.d.mts +0 -16
  33. package/dist/provider.d.ts +0 -16
  34. package/dist/services.d.mts +0 -258
  35. package/dist/services.d.ts +0 -258
  36. package/dist/session-storage-CxkkEmQh.d.mts +0 -15
  37. package/dist/session-storage-CxkkEmQh.d.ts +0 -15
  38. package/dist/store.d.mts +0 -643
  39. package/dist/store.d.ts +0 -643
  40. package/dist/types.d.mts +0 -12
  41. package/dist/types.d.ts +0 -12
  42. package/dist/use-get-selection-QZu1jKqa.d.mts +0 -15
  43. package/dist/use-get-selection-QZu1jKqa.d.ts +0 -15
  44. package/dist/utils.d.mts +0 -96
  45. package/dist/utils.d.ts +0 -96
  46. package/dist/view-type-DodWYWDH.d.mts +0 -107
  47. package/dist/view-type-DodWYWDH.d.ts +0 -107
@@ -1,131 +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
- GRANT_ACCESS = "/grant-access",
50
- TOKEN_BY_CODE = "/token",
51
- LOGOUT = "/logout"
52
- }
53
-
54
- declare enum FieldTypeConstants {
55
- CHAR = "char",
56
- TEXT = "text",
57
- INTEGER = "integer",
58
- FLOAT = "float",
59
- BOOLEAN = "boolean",
60
- DATE = "date",
61
- DATETIME = "datetime",
62
- BINARY = "binary",
63
- SELECTION = "selection",
64
- HTML = "html",
65
- MANY2ONE = "many2one",
66
- ONE2MANY = "one2many",
67
- MANY2MANY = "many2many",
68
- MONETARY = "monetary",
69
- REFERENCE = "reference",
70
- FUNCTION = "function",
71
- PROPERTY = "property"
72
- }
73
-
74
- declare enum MethodType {
75
- CREATE = 0,
76
- UPDATE = 1,
77
- DELETE = 2,
78
- UNLINK = 3,
79
- NO_CHANGE = 4
80
- }
81
-
82
- declare enum ModelConstants {
83
- MENU = "ir.ui.menu",
84
- USER = "res.users",
85
- COMPANY = "res.company",
86
- WINDOW_ACTION = "ir.actions.act_window",
87
- BASE_IMPORT = "base_import.import",
88
- GET_IMPORT = "get_import_templates"
89
- }
90
-
91
- declare enum ComponentType {
92
- GROUP = "group",
93
- FIELD = "field",
94
- TREE = "tree",
95
- DIV = "div",
96
- LIST = "list",
97
- FORM = "form",
98
- SETTINGS = "setting",
99
- SPAN = "span",
100
- KANBAN = "kanban",
101
- CALENDAR = "calendar",
102
- TYPE = "view-type"
103
- }
104
- declare const SearchType: {
105
- FILTER: string;
106
- SEARCH: string;
107
- GROUP: string;
108
- };
109
-
110
- declare enum WIDGETAVATAR {
111
- many2one_avatar_user = "many2one_avatar_user",
112
- many2many_avatar_user = "many2many_avatar_user"
113
- }
114
- declare enum WIDGETCURRENCY {
115
- many2one_avatar_user = "many2one_avatar_user",
116
- many2many_avatar_user = "many2many_avatar_user"
117
- }
118
-
119
- declare enum WIDGETCOLOR {
120
- many2many_tags = "many2many_tags",
121
- helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
122
- }
123
-
124
- declare enum WIDGETSTATUS {
125
- sla_status_ids = "sla_status_ids"
126
- }
127
- declare enum WIDGETNOSTRING {
128
- sla_status_ids = "sla_status_ids"
129
- }
130
-
131
- export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
@@ -1,131 +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
- GRANT_ACCESS = "/grant-access",
50
- TOKEN_BY_CODE = "/token",
51
- LOGOUT = "/logout"
52
- }
53
-
54
- declare enum FieldTypeConstants {
55
- CHAR = "char",
56
- TEXT = "text",
57
- INTEGER = "integer",
58
- FLOAT = "float",
59
- BOOLEAN = "boolean",
60
- DATE = "date",
61
- DATETIME = "datetime",
62
- BINARY = "binary",
63
- SELECTION = "selection",
64
- HTML = "html",
65
- MANY2ONE = "many2one",
66
- ONE2MANY = "one2many",
67
- MANY2MANY = "many2many",
68
- MONETARY = "monetary",
69
- REFERENCE = "reference",
70
- FUNCTION = "function",
71
- PROPERTY = "property"
72
- }
73
-
74
- declare enum MethodType {
75
- CREATE = 0,
76
- UPDATE = 1,
77
- DELETE = 2,
78
- UNLINK = 3,
79
- NO_CHANGE = 4
80
- }
81
-
82
- declare enum ModelConstants {
83
- MENU = "ir.ui.menu",
84
- USER = "res.users",
85
- COMPANY = "res.company",
86
- WINDOW_ACTION = "ir.actions.act_window",
87
- BASE_IMPORT = "base_import.import",
88
- GET_IMPORT = "get_import_templates"
89
- }
90
-
91
- declare enum ComponentType {
92
- GROUP = "group",
93
- FIELD = "field",
94
- TREE = "tree",
95
- DIV = "div",
96
- LIST = "list",
97
- FORM = "form",
98
- SETTINGS = "setting",
99
- SPAN = "span",
100
- KANBAN = "kanban",
101
- CALENDAR = "calendar",
102
- TYPE = "view-type"
103
- }
104
- declare const SearchType: {
105
- FILTER: string;
106
- SEARCH: string;
107
- GROUP: string;
108
- };
109
-
110
- declare enum WIDGETAVATAR {
111
- many2one_avatar_user = "many2one_avatar_user",
112
- many2many_avatar_user = "many2many_avatar_user"
113
- }
114
- declare enum WIDGETCURRENCY {
115
- many2one_avatar_user = "many2one_avatar_user",
116
- many2many_avatar_user = "many2many_avatar_user"
117
- }
118
-
119
- declare enum WIDGETCOLOR {
120
- many2many_tags = "many2many_tags",
121
- helpdesk_sla_many2many_tags = "helpdesk_sla_many2many_tags"
122
- }
123
-
124
- declare enum WIDGETSTATUS {
125
- sla_status_ids = "sla_status_ids"
126
- }
127
- declare enum WIDGETNOSTRING {
128
- sla_status_ids = "sla_status_ids"
129
- }
130
-
131
- export { ComponentType, FieldTypeConstants, KeyConstants, MethodConstants, MethodType, ModelConstants, SearchType, UriConstants, WIDGETAVATAR, WIDGETCOLOR, WIDGETCURRENCY, WIDGETNOSTRING, WIDGETSTATUS };
@@ -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,42 +0,0 @@
1
- import { EnhancedStore } from '@reduxjs/toolkit';
2
- import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-CxkkEmQh.mjs';
3
-
4
- declare global {
5
- interface Global {
6
- envStore?: EnvStore;
7
- }
8
- interface Window {
9
- envStore?: EnvStore;
10
- }
11
- }
12
- declare class EnvStore {
13
- envStore: EnhancedStore | any;
14
- baseUrl?: string;
15
- requests?: any;
16
- context?: any;
17
- defaultCompany?: any;
18
- config?: any;
19
- companies?: any[];
20
- user?: any;
21
- db?: string;
22
- localStorageUtils?: any;
23
- sessionStorageUtils?: any;
24
- refreshTokenEndpoint?: string;
25
- constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
26
- setup(): void;
27
- setupEnv(envConfig: EnvStore): void;
28
- setUid(uid: number): void;
29
- setLang(lang: string): void;
30
- setAllowCompanies(allowCompanies: number[]): void;
31
- setCompanies(companies: any[]): void;
32
- setDefaultCompany(company: any): void;
33
- setUserInfo(userInfo: any): void;
34
- }
35
- declare let env: EnvStore | null;
36
- declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
37
- localStorageUtils?: LocalStorageUtilsType;
38
- sessionStorageUtils?: SessionStorageUtilsType;
39
- }): EnvStore;
40
- declare function getEnv(): EnvStore;
41
-
42
- export { EnvStore, env, getEnv, initEnv };
@@ -1,42 +0,0 @@
1
- import { EnhancedStore } from '@reduxjs/toolkit';
2
- import { L as LocalStorageUtilsType, S as SessionStorageUtilsType } from './session-storage-CxkkEmQh.js';
3
-
4
- declare global {
5
- interface Global {
6
- envStore?: EnvStore;
7
- }
8
- interface Window {
9
- envStore?: EnvStore;
10
- }
11
- }
12
- declare class EnvStore {
13
- envStore: EnhancedStore | any;
14
- baseUrl?: string;
15
- requests?: any;
16
- context?: any;
17
- defaultCompany?: any;
18
- config?: any;
19
- companies?: any[];
20
- user?: any;
21
- db?: string;
22
- localStorageUtils?: any;
23
- sessionStorageUtils?: any;
24
- refreshTokenEndpoint?: string;
25
- constructor(envStore: EnhancedStore, localStorageUtils?: any, sessionStorageUtils?: any);
26
- setup(): void;
27
- setupEnv(envConfig: EnvStore): void;
28
- setUid(uid: number): void;
29
- setLang(lang: string): void;
30
- setAllowCompanies(allowCompanies: number[]): void;
31
- setCompanies(companies: any[]): void;
32
- setDefaultCompany(company: any): void;
33
- setUserInfo(userInfo: any): void;
34
- }
35
- declare let env: EnvStore | null;
36
- declare function initEnv({ localStorageUtils, sessionStorageUtils, }: {
37
- localStorageUtils?: LocalStorageUtilsType;
38
- sessionStorageUtils?: SessionStorageUtilsType;
39
- }): EnvStore;
40
- declare function getEnv(): EnvStore;
41
-
42
- export { EnvStore, env, getEnv, initEnv };