@fctc/interface-logic 1.2.8 → 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.
package/dist/index.js CHANGED
@@ -3911,6 +3911,10 @@ var selectSearch = (state) => state.search;
3911
3911
  var selectSearchMap = (state) => state.search.searchMap;
3912
3912
  var search_slice_default = searchSlice.reducer;
3913
3913
 
3914
+ // src/store/index.ts
3915
+ var useAppDispatch = import_react_redux.useDispatch;
3916
+ var useAppSelector = import_react_redux.useSelector;
3917
+
3914
3918
  // src/store/store.ts
3915
3919
  var import_toolkit11 = require("@reduxjs/toolkit");
3916
3920
 
@@ -4103,10 +4107,6 @@ var envStore = (0, import_toolkit11.configureStore)({
4103
4107
  })
4104
4108
  });
4105
4109
 
4106
- // src/store/index.ts
4107
- var useAppDispatch = import_react_redux.useDispatch;
4108
- var useAppSelector = import_react_redux.useSelector;
4109
-
4110
4110
  // src/environment/EnvStore.ts
4111
4111
  var EnvStore = class {
4112
4112
  envStore;
package/dist/index.mjs CHANGED
@@ -3664,6 +3664,10 @@ var selectSearch = (state) => state.search;
3664
3664
  var selectSearchMap = (state) => state.search.searchMap;
3665
3665
  var search_slice_default = searchSlice.reducer;
3666
3666
 
3667
+ // src/store/index.ts
3668
+ var useAppDispatch = useDispatch;
3669
+ var useAppSelector = useSelector;
3670
+
3667
3671
  // src/store/store.ts
3668
3672
  import { configureStore } from "@reduxjs/toolkit";
3669
3673
 
@@ -3856,10 +3860,6 @@ var envStore = configureStore({
3856
3860
  })
3857
3861
  });
3858
3862
 
3859
- // src/store/index.ts
3860
- var useAppDispatch = useDispatch;
3861
- var useAppSelector = useSelector;
3862
-
3863
3863
  // src/environment/EnvStore.ts
3864
3864
  var EnvStore = class {
3865
3865
  envStore;
package/dist/store.js CHANGED
@@ -535,6 +535,10 @@ var selectSearch = (state) => state.search;
535
535
  var selectSearchMap = (state) => state.search.searchMap;
536
536
  var search_slice_default = searchSlice.reducer;
537
537
 
538
+ // src/store/index.ts
539
+ var useAppDispatch = import_react_redux.useDispatch;
540
+ var useAppSelector = import_react_redux.useSelector;
541
+
538
542
  // src/store/store.ts
539
543
  var import_toolkit11 = require("@reduxjs/toolkit");
540
544
 
@@ -726,10 +730,6 @@ var envStore = (0, import_toolkit11.configureStore)({
726
730
  serializableCheck: false
727
731
  })
728
732
  });
729
-
730
- // src/store/index.ts
731
- var useAppDispatch = import_react_redux.useDispatch;
732
- var useAppSelector = import_react_redux.useSelector;
733
733
  // Annotate the CommonJS export names for ESM import in node:
734
734
  0 && (module.exports = {
735
735
  breadcrumbsSlice,
package/dist/store.mjs CHANGED
@@ -431,6 +431,10 @@ var selectSearch = (state) => state.search;
431
431
  var selectSearchMap = (state) => state.search.searchMap;
432
432
  var search_slice_default = searchSlice.reducer;
433
433
 
434
+ // src/store/index.ts
435
+ var useAppDispatch = useDispatch;
436
+ var useAppSelector = useSelector;
437
+
434
438
  // src/store/store.ts
435
439
  import { configureStore } from "@reduxjs/toolkit";
436
440
 
@@ -622,10 +626,6 @@ var envStore = configureStore({
622
626
  serializableCheck: false
623
627
  })
624
628
  });
625
-
626
- // src/store/index.ts
627
- var useAppDispatch = useDispatch;
628
- var useAppSelector = useSelector;
629
629
  export {
630
630
  breadcrumbsSlice,
631
631
  clearSearchMap,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/interface-logic",
3
- "version": "1.2.8",
3
+ "version": "1.2.10",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,7 +0,0 @@
1
- interface BaseModelInit {
2
- name: string;
3
- view: Record<string, any>;
4
- actContext?: Record<string, any>;
5
- }
6
-
7
- export type { BaseModelInit as B };
@@ -1,7 +0,0 @@
1
- interface BaseModelInit {
2
- name: string;
3
- view: Record<string, any>;
4
- actContext?: Record<string, any>;
5
- }
6
-
7
- export type { BaseModelInit as B };
package/dist/config.d.mts DELETED
@@ -1,16 +0,0 @@
1
- import { EnvStore } from './environment.mjs';
2
- import '@reduxjs/toolkit';
3
- import './session-storage-CxkkEmQh.mjs';
4
-
5
- declare const axiosClient: {
6
- init(config: EnvStore): {
7
- get: (url: string, headers: any) => Promise<any>;
8
- post: (url: string, body: any, headers: any) => Promise<any>;
9
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
10
- put: (url: string, body: any, headers: any) => Promise<any>;
11
- patch: (url: string, body: any) => Promise<any>;
12
- delete: (url: string, body: any) => Promise<any>;
13
- };
14
- };
15
-
16
- export { axiosClient };
package/dist/config.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import { EnvStore } from './environment.js';
2
- import '@reduxjs/toolkit';
3
- import './session-storage-CxkkEmQh.js';
4
-
5
- declare const axiosClient: {
6
- init(config: EnvStore): {
7
- get: (url: string, headers: any) => Promise<any>;
8
- post: (url: string, body: any, headers: any) => Promise<any>;
9
- post_excel: (url: string, body: any, headers: any) => Promise<any>;
10
- put: (url: string, body: any, headers: any) => Promise<any>;
11
- patch: (url: string, body: any) => Promise<any>;
12
- delete: (url: string, body: any) => Promise<any>;
13
- };
14
- };
15
-
16
- export { axiosClient };
@@ -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 };