@adminide-stack/core 7.0.4-alpha.48 → 7.0.4-alpha.68
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.
@@ -0,0 +1,13 @@
|
|
1
|
+
export interface ApplicationErrorState {
|
2
|
+
type: string;
|
3
|
+
payload: Record<string, any> | Error;
|
4
|
+
displayable?: boolean;
|
5
|
+
date: Date;
|
6
|
+
/**
|
7
|
+
* pluginName will be utilized in ApplicationErrorHandler on frontend
|
8
|
+
* It will be used to filter against the list of plugins
|
9
|
+
* to check if Fill related to this specific error is registered
|
10
|
+
* or not.
|
11
|
+
*/
|
12
|
+
pluginName?: string;
|
13
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { IUserState as IUser } from './generated/generated-models';
|
2
|
+
import { ApplicationErrorState } from './error-state';
|
3
|
+
import { IPlatformState } from './platform';
|
4
|
+
interface Route {
|
5
|
+
path: string;
|
6
|
+
params: {
|
7
|
+
orgName?: string;
|
8
|
+
teamName?: string;
|
9
|
+
[key: string]: any;
|
10
|
+
};
|
11
|
+
[key: string]: any;
|
12
|
+
}
|
13
|
+
export interface LocationChangeAction {
|
14
|
+
type: string;
|
15
|
+
payload: {
|
16
|
+
currentRoute?: Route;
|
17
|
+
location?: Location;
|
18
|
+
[key: string]: any;
|
19
|
+
};
|
20
|
+
}
|
21
|
+
export declare namespace Store {
|
22
|
+
type Auth = {
|
23
|
+
user: IUser;
|
24
|
+
};
|
25
|
+
type Platform = {
|
26
|
+
platform: IPlatformState;
|
27
|
+
};
|
28
|
+
type Error = {
|
29
|
+
applicationErrors: ApplicationErrorState;
|
30
|
+
};
|
31
|
+
type Router = {
|
32
|
+
router: {
|
33
|
+
action?: any;
|
34
|
+
location?: {
|
35
|
+
currentRoute?: Route;
|
36
|
+
pathname: string;
|
37
|
+
[key: string]: any;
|
38
|
+
};
|
39
|
+
};
|
40
|
+
};
|
41
|
+
}
|
42
|
+
export {};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@adminide-stack/core",
|
3
|
-
"version": "7.0.4-alpha.
|
3
|
+
"version": "7.0.4-alpha.68",
|
4
4
|
"description": "AdminIDE core for higher packages to depend on",
|
5
5
|
"license": "ISC",
|
6
6
|
"author": "CDMBase LLC",
|
@@ -36,5 +36,5 @@
|
|
36
36
|
"typescript": {
|
37
37
|
"definition": "lib/index.d.ts"
|
38
38
|
},
|
39
|
-
"gitHead": "
|
39
|
+
"gitHead": "01e1433c60c1dc6a8b82e92db045ff71ad316480"
|
40
40
|
}
|