@inceptionbg/main 4.0.23 → 4.0.24

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.
@@ -1,147 +1,147 @@
1
1
  import { AxiosInstance } from 'axios';
2
2
 
3
- declare const moduleIds = [
4
- 'DASHBOARD',
5
- 'ADMIN',
6
- 'EARCHIVE',
7
- 'ERDS',
8
- 'EINVOICE',
9
- 'EFORMS',
10
- 'EDMS',
11
- 'ESIGN',
12
- 'EVALIDATION',
13
- 'EPROCUREMENT',
14
- 'EREGISTER',
15
- 'PAM',
16
- 'DISPATCH_ADVICE',
17
- 'TELEGRAM_MNGMNT',
18
- 'VAT_EVIDENCE',
19
- 'VEOSP',
20
- 'QC_REGISTRATION',
21
- // ERP
22
- 'ERP_CASH_REGISTER',
23
- 'ERP_FIXED_ASSETS',
24
- 'ERP_RIF',
25
- 'ERP_MAT_ACC',
26
- 'ERP_SMALL_INVENTORY',
27
- 'ERP_WMS',
28
- 'ERP_HR',
29
- // PRIVATE
30
- 'JISUSZ_BACKOFFICE',
31
- 'MONITORING',
32
-
33
- // 'ERP',
34
- // 'FINANCES',
35
- // 'CONTRACTS',
36
- // 'IDM',
37
- // 'REGISTRATION',
38
- // 'SETTINGS',
3
+ declare const moduleIds = [
4
+ 'DASHBOARD',
5
+ 'ADMIN',
6
+ 'EARCHIVE',
7
+ 'ERDS',
8
+ 'EINVOICE',
9
+ 'EFORMS',
10
+ 'EDMS',
11
+ 'ESIGN',
12
+ 'EVALIDATION',
13
+ 'EPROCUREMENT',
14
+ 'EREGISTER',
15
+ 'PAM',
16
+ 'DISPATCH_ADVICE',
17
+ 'TELEGRAM_MNGMNT',
18
+ 'VAT_EVIDENCE',
19
+ 'VEOSP',
20
+ 'QC_REGISTRATION',
21
+ // ERP
22
+ 'ERP_CASH_REGISTER',
23
+ 'ERP_FIXED_ASSETS',
24
+ 'ERP_RIF',
25
+ 'ERP_MAT_ACC',
26
+ 'ERP_SMALL_INVENTORY',
27
+ 'ERP_WMS',
28
+ 'ERP_HR',
29
+ // PRIVATE
30
+ 'JISUSZ_BACKOFFICE',
31
+ 'MONITORING',
32
+
33
+ // 'ERP',
34
+ // 'FINANCES',
35
+ // 'CONTRACTS',
36
+ // 'IDM',
37
+ // 'REGISTRATION',
38
+ // 'SETTINGS',
39
39
  ] as const;
40
40
 
41
41
  type IModuleId = (typeof moduleIds)[number];
42
42
 
43
- type IEnv =
44
- | 'DEV'
45
- | 'TEST'
46
- | 'PROD'
47
- | 'LOCAL'
48
- | 'UAT'
49
- | 'TEST_PPLCG'
50
- | 'PROD_PPLCG'
51
- | 'TEST_MSP'
52
- | 'PROD_MSP'
53
- | 'DEV_MSP'
54
- | 'LOCAL_MSP'
55
- | 'TEST_LOCAL_MSP'
56
- | 'TEST_PTT'
57
- | 'PROD_PTT'
58
- | 'MNEPOST_TEST';
59
-
60
- type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
61
-
62
- type IOptionalServiceApi =
63
- | 'codebook'
64
- | 'auditLog'
65
- | 'notifications'
66
- | 'indexData'
67
- | 'reportTemplates'
68
- | 'approvalProcess'
69
- | 'procurement'
70
- | 'archive'
71
- | 'invoice'
72
- | 'delivery'
73
- | 'edms'
74
- | 'rif'
75
- | 'cashRegister'
76
- | 'jisuszProxy'
77
- | 'fosterCare'
78
- | 'article'
79
- | 'approval'
80
- | 'messenger'
81
- | 'veosp'
82
- | 'fixedAssets'
83
- | 'dispatchAdvice'
84
- | 'tasks'
85
- | 'nbs'
86
- | 'organization'
87
- | 'widgets';
88
-
43
+ type IEnv =
44
+ | 'DEV'
45
+ | 'TEST'
46
+ | 'PROD'
47
+ | 'LOCAL'
48
+ | 'UAT'
49
+ | 'TEST_PPLCG'
50
+ | 'PROD_PPLCG'
51
+ | 'TEST_MSP'
52
+ | 'PROD_MSP'
53
+ | 'DEV_MSP'
54
+ | 'LOCAL_MSP'
55
+ | 'TEST_LOCAL_MSP'
56
+ | 'TEST_PTT'
57
+ | 'PROD_PTT'
58
+ | 'MNEPOST_TEST';
59
+
60
+ type IRequiredServiceApi = 'auth' | 'idm' | 'registration' | 'userSettings';
61
+
62
+ type IOptionalServiceApi =
63
+ | 'codebook'
64
+ | 'auditLog'
65
+ | 'notifications'
66
+ | 'indexData'
67
+ | 'reportTemplates'
68
+ | 'approvalProcess'
69
+ | 'procurement'
70
+ | 'archive'
71
+ | 'invoice'
72
+ | 'delivery'
73
+ | 'edms'
74
+ | 'rif'
75
+ | 'cashRegister'
76
+ | 'jisuszProxy'
77
+ | 'fosterCare'
78
+ | 'article'
79
+ | 'approval'
80
+ | 'messenger'
81
+ | 'veosp'
82
+ | 'fixedAssets'
83
+ | 'dispatchAdvice'
84
+ | 'tasks'
85
+ | 'nbs'
86
+ | 'organization'
87
+ | 'widgets';
88
+
89
89
  type IServiceApi = IRequiredServiceApi | IOptionalServiceApi;
90
90
 
91
- declare module 'axios' {
92
- interface AxiosRequestConfig {
93
- public?: boolean;
94
- service?: IServiceApi;
95
- token?: string;
96
- noToast?: boolean;
97
- noErrors?: boolean;
98
- }
91
+ declare module 'axios' {
92
+ interface AxiosRequestConfig {
93
+ public?: boolean;
94
+ service?: IServiceApi;
95
+ token?: string;
96
+ noToast?: boolean;
97
+ noErrors?: boolean;
98
+ }
99
+ }
100
+
101
+ declare module '*.scss' {
102
+ const classes: { readonly [key: string]: string };
103
+ export { classes };
104
+ }
105
+ declare module '*.png' {
106
+ const src: string;
107
+ export { src };
108
+ }
109
+
110
+ declare module '*.svg' {
111
+ const src: string;
112
+ export { src };
113
+ }
114
+
115
+ declare module '*.json' {
116
+ const data: any;
117
+ export { data };
99
118
  }
100
119
 
101
- declare module '*.scss' {
102
- const classes: { readonly [key: string]: string };
103
- export { classes };
104
- }
105
- declare module '*.png' {
106
- const src: string;
107
- export { src };
108
- }
109
-
110
- declare module '*.svg' {
111
- const src: string;
112
- export { src };
113
- }
114
-
115
- declare module '*.json' {
116
- const data: any;
117
- export { data };
118
- }
119
-
120
- declare module '*.mp3' {
121
- const src: string;
122
- export { src };
120
+ declare module '*.mp3' {
121
+ const src: string;
122
+ export { src };
123
123
  }
124
124
 
125
- declare global {
126
- var environment: IEnv;
127
- var moduleId: IModuleId | null;
128
- var moduleUrls: {
129
- [id in IModuleId]?: string;
130
- };
131
- var axiosInstance: AxiosInstance;
132
- var appVersion: string | undefined;
133
- var api: {
134
- apiUrl: string;
135
- clientId: string;
136
- authScope?: string;
137
- additionalScopes?: string[];
138
- redirectUrl?: string;
139
- };
140
- var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
141
- var zE: {
142
- show: () => void;
143
- hide: () => void;
144
- activate: () => void;
145
- setLocale: (locale: string) => void;
146
- };
125
+ declare global {
126
+ var environment: IEnv;
127
+ var moduleId: IModuleId | null;
128
+ var moduleUrls: {
129
+ [id in IModuleId]?: string;
130
+ };
131
+ var axiosInstance: AxiosInstance;
132
+ var appVersion: string | undefined;
133
+ var api: {
134
+ apiUrl: string;
135
+ clientId: string;
136
+ authScope?: string;
137
+ additionalScopes?: string[];
138
+ redirectUrl?: string;
139
+ };
140
+ var serviceApiUrls: Partial<Record<IServiceApi, string>> | undefined;
141
+ var zE: {
142
+ show: () => void;
143
+ hide: () => void;
144
+ activate: () => void;
145
+ setLocale: (locale: string) => void;
146
+ };
147
147
  }
package/package.json CHANGED
@@ -1,58 +1,58 @@
1
- {
2
- "name": "@inceptionbg/main",
3
- "version": "4.0.23",
4
- "description": "Main app wrapper for Inception ecosystem",
5
- "type": "module",
6
- "files": [
7
- "dist"
8
- ],
9
- "main": "dist/index.js",
10
- "types": "dist/index.d.ts",
11
- "publishConfig": {
12
- "tag": "next"
13
- },
14
- "scripts": {
15
- "build": "rollup -c",
16
- "tsc": "tsc --noEmit",
17
- "lint": "eslint --max-warnings=0 src",
18
- "link-i": "npm link @inceptionbg/iui",
19
- "update-i": "npm i @inceptionbg/iui@next",
20
- "update-ic": "npm i @inceptionbg/icons@next",
21
- "release": "npm version patch && npm run build && npm publish --tag next"
22
- },
23
- "author": "Aleksandar Sadzak",
24
- "license": "ISC",
25
- "dependencies": {
26
- "axios": "^1.13.5",
27
- "crypto-js": "^4.2.0",
28
- "jwt-decode": "^4.0.0"
29
- },
30
- "devDependencies": {
31
- "@rollup/plugin-commonjs": "^29.0.0",
32
- "@rollup/plugin-image": "^3.0.3",
33
- "@rollup/plugin-terser": "^1.0.0",
34
- "@rollup/plugin-typescript": "^12.3.0",
35
- "@rollup/plugin-url": "^8.0.2",
36
- "@types/crypto-js": "^4.2.2",
37
- "@types/react": "^19.2.14",
38
- "@types/react-dom": "^19.2.3",
39
- "rollup": "^4.57.1",
40
- "rollup-plugin-delete": "^3.0.2",
41
- "rollup-plugin-dts": "^6.3.0",
42
- "rollup-plugin-postcss": "^4.0.2",
43
- "tslib": "^2.8.1"
44
- },
45
- "peerDependencies": {
46
- "@fortawesome/fontawesome-svg-core": ">=7.2.0",
47
- "@inceptionbg/icons": "^1.0.15",
48
- "@inceptionbg/iui": "^3.0.17",
49
- "@tanstack/react-query": ">=5.90.21",
50
- "i18next": ">=26.3.0",
51
- "react": ">=19.2.4 <20",
52
- "react-dom": ">=19.2.4 <20",
53
- "react-i18next": ">=17.0.8",
54
- "react-router": ">=7.17.0",
55
- "sass": ">=1.97.3",
56
- "zustand": ">=5.0.12"
57
- }
58
- }
1
+ {
2
+ "name": "@inceptionbg/main",
3
+ "version": "4.0.24",
4
+ "description": "Main app wrapper for Inception ecosystem",
5
+ "type": "module",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "publishConfig": {
12
+ "tag": "next"
13
+ },
14
+ "scripts": {
15
+ "build": "rollup -c",
16
+ "tsc": "tsc --noEmit",
17
+ "lint": "eslint --max-warnings=0 src",
18
+ "link-i": "npm link @inceptionbg/iui",
19
+ "update-i": "npm i @inceptionbg/iui@next",
20
+ "update-ic": "npm i @inceptionbg/icons@next",
21
+ "release": "npm version patch && npm run build && npm publish --tag next"
22
+ },
23
+ "author": "Aleksandar Sadzak",
24
+ "license": "ISC",
25
+ "dependencies": {
26
+ "axios": "^1.13.5",
27
+ "crypto-js": "^4.2.0",
28
+ "jwt-decode": "^4.0.0"
29
+ },
30
+ "devDependencies": {
31
+ "@rollup/plugin-commonjs": "^29.0.0",
32
+ "@rollup/plugin-image": "^3.0.3",
33
+ "@rollup/plugin-terser": "^1.0.0",
34
+ "@rollup/plugin-typescript": "^12.3.0",
35
+ "@rollup/plugin-url": "^8.0.2",
36
+ "@types/crypto-js": "^4.2.2",
37
+ "@types/react": "^19.2.14",
38
+ "@types/react-dom": "^19.2.3",
39
+ "rollup": "^4.57.1",
40
+ "rollup-plugin-delete": "^3.0.2",
41
+ "rollup-plugin-dts": "^6.3.0",
42
+ "rollup-plugin-postcss": "^4.0.2",
43
+ "tslib": "^2.8.1"
44
+ },
45
+ "peerDependencies": {
46
+ "@fortawesome/fontawesome-svg-core": ">=7.2.0",
47
+ "@inceptionbg/icons": "^1.0.15",
48
+ "@inceptionbg/iui": "^3.0.17",
49
+ "@tanstack/react-query": ">=5.90.21",
50
+ "i18next": ">=26.3.0",
51
+ "react": ">=19.2.4 <20",
52
+ "react-dom": ">=19.2.4 <20",
53
+ "react-i18next": ">=17.0.8",
54
+ "react-router": ">=7.17.0",
55
+ "sass": ">=1.97.3",
56
+ "zustand": ">=5.0.12"
57
+ }
58
+ }