@actdim/dynstruct 1.1.7 → 1.2.1
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/appDomain/appContracts.d.ts +31 -25
- package/dist/appDomain/appContracts.d.ts.map +1 -1
- package/dist/appDomain/appContracts.es.js +10 -9
- package/dist/appDomain/appContracts.es.js.map +1 -1
- package/dist/appDomain/security/securityContracts.d.ts +18 -18
- package/dist/appDomain/security/securityContracts.d.ts.map +1 -1
- package/dist/appDomain/security/securityContracts.es.js +10 -10
- package/dist/appDomain/security/securityContracts.es.js.map +1 -1
- package/dist/appDomain/security/securityProvider.d.ts +8 -8
- package/dist/appDomain/security/securityProvider.d.ts.map +1 -1
- package/dist/appDomain/security/securityProvider.es.js +55 -54
- package/dist/appDomain/security/securityProvider.es.js.map +1 -1
- package/dist/componentModel/adapters.d.ts +1 -1
- package/dist/componentModel/adapters.es.js.map +1 -1
- package/dist/componentModel/react.d.ts +2 -2
- package/dist/componentModel/react.d.ts.map +1 -1
- package/dist/componentModel/react.es.js +37 -37
- package/dist/componentModel/react.es.js.map +1 -1
- package/dist/net/client.d.ts.map +1 -1
- package/dist/net/client.es.js +14 -12
- package/dist/net/client.es.js.map +1 -1
- package/dist/services/StorageService.d.ts.map +1 -1
- package/dist/services/StorageService.es.js +11 -10
- package/dist/services/StorageService.es.js.map +1 -1
- package/dist/services/react/NavService.d.ts +4 -3
- package/dist/services/react/NavService.d.ts.map +1 -1
- package/dist/services/react/NavService.es.js +5 -5
- package/dist/services/react/NavService.es.js.map +1 -1
- package/dist/services/react/StorageService.d.ts +2 -2
- package/dist/services/react/StorageService.d.ts.map +1 -1
- package/dist/services/react/StorageService.es.js +3 -3
- package/dist/services/react/StorageService.es.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,17 +4,17 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
import { KeysOf } from '@actdim/utico/typeCore';
|
|
5
5
|
import { BaseContext } from '../componentModel/contracts';
|
|
6
6
|
import { StoreItem } from '@actdim/utico/store/storeContracts';
|
|
7
|
-
export declare const $NAV_GOTO = "APP
|
|
8
|
-
export declare const $
|
|
9
|
-
export declare const $NAV_CONTEXT_CHANGED = "APP
|
|
10
|
-
export declare const $
|
|
11
|
-
export declare const $NOTICE = "APP
|
|
12
|
-
export declare const $CONFIG_GET = "APP
|
|
13
|
-
export declare const $
|
|
14
|
-
export declare const $
|
|
15
|
-
export declare const $
|
|
16
|
-
export declare const $
|
|
17
|
-
export
|
|
7
|
+
export declare const $NAV_GOTO = "APP.NAV.GOTO";
|
|
8
|
+
export declare const $NAV_CONTEXT_GET = "APP.NAV.CONTEXT.GET";
|
|
9
|
+
export declare const $NAV_CONTEXT_CHANGED = "APP.NAV.CONTEXT.CHANGED";
|
|
10
|
+
export declare const $NAV_HISTORY_READ = "APP.NAV.HISTORY.READ";
|
|
11
|
+
export declare const $NOTICE = "APP.NOTICE";
|
|
12
|
+
export declare const $CONFIG_GET = "APP.CONFIG.GET";
|
|
13
|
+
export declare const $ERROR = "APP.ERROR";
|
|
14
|
+
export declare const $FETCH = "APP.FETCH";
|
|
15
|
+
export declare const $STORE_GET = "APP.STORE.GET";
|
|
16
|
+
export declare const $STORE_SET = "APP.STORE.SET";
|
|
17
|
+
export declare const $STORE_REMOVE = "APP.STORE.REMOVE";
|
|
18
18
|
export type NavPath = {
|
|
19
19
|
pathname: string;
|
|
20
20
|
search: string;
|
|
@@ -46,24 +46,26 @@ export type NavContext = {
|
|
|
46
46
|
navType?: NavAction;
|
|
47
47
|
};
|
|
48
48
|
export type NavHistory = Array<NavContext>;
|
|
49
|
-
export type AppError
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
title?: string;
|
|
49
|
+
export type AppError = {
|
|
50
|
+
type?: string;
|
|
51
|
+
name?: string;
|
|
53
52
|
source?: any;
|
|
54
|
-
|
|
53
|
+
detail?: string;
|
|
55
54
|
timestamp?: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
reason?: string;
|
|
55
|
+
message: string;
|
|
56
|
+
properties?: Record<string | number, any>;
|
|
59
57
|
};
|
|
60
58
|
export type BaseApiMsgStruct = BaseSecurityMsgStruct & MsgStructFactory<{}>;
|
|
59
|
+
export type Importance = "critical" | "high" | "normal" | "low" | undefined;
|
|
60
|
+
export type Severity = 'emergency' | 'alert' | 'error' | 'warn' | 'notice' | 'info' | 'success' | 'hint' | 'debug' | undefined;
|
|
61
61
|
export type BaseAppMsgStruct<TNavRoutes extends NavRoutes = NavRoutes> = BaseApiMsgStruct & MsgStructFactory<{
|
|
62
62
|
[$NOTICE]: {
|
|
63
63
|
in: {
|
|
64
64
|
text: string;
|
|
65
65
|
title?: string;
|
|
66
|
-
|
|
66
|
+
detail?: string;
|
|
67
|
+
severity?: Severity;
|
|
68
|
+
properties?: Record<string | number, any>;
|
|
67
69
|
};
|
|
68
70
|
out: void;
|
|
69
71
|
};
|
|
@@ -76,7 +78,7 @@ export type BaseAppMsgStruct<TNavRoutes extends NavRoutes = NavRoutes> = BaseApi
|
|
|
76
78
|
ex: NavRouteStruct<TNavRoutes>;
|
|
77
79
|
out: void;
|
|
78
80
|
};
|
|
79
|
-
[$
|
|
81
|
+
[$NAV_CONTEXT_GET]: {
|
|
80
82
|
in: void;
|
|
81
83
|
out: NavContext;
|
|
82
84
|
};
|
|
@@ -84,10 +86,14 @@ export type BaseAppMsgStruct<TNavRoutes extends NavRoutes = NavRoutes> = BaseApi
|
|
|
84
86
|
in: NavContext;
|
|
85
87
|
out: void;
|
|
86
88
|
};
|
|
87
|
-
[$
|
|
89
|
+
[$NAV_HISTORY_READ]: {
|
|
88
90
|
in: number;
|
|
89
91
|
out: NavContext;
|
|
90
92
|
};
|
|
93
|
+
[$ERROR]: {
|
|
94
|
+
in: AppError;
|
|
95
|
+
out: boolean;
|
|
96
|
+
};
|
|
91
97
|
[$FETCH]: {
|
|
92
98
|
in: {
|
|
93
99
|
url: string;
|
|
@@ -95,14 +101,14 @@ export type BaseAppMsgStruct<TNavRoutes extends NavRoutes = NavRoutes> = BaseApi
|
|
|
95
101
|
};
|
|
96
102
|
out: Response;
|
|
97
103
|
};
|
|
98
|
-
[$
|
|
104
|
+
[$STORE_GET]: {
|
|
99
105
|
in: {
|
|
100
106
|
key: string;
|
|
101
107
|
useEncryption?: boolean;
|
|
102
108
|
};
|
|
103
109
|
out: StoreItem;
|
|
104
110
|
};
|
|
105
|
-
[$
|
|
111
|
+
[$STORE_SET]: {
|
|
106
112
|
in: {
|
|
107
113
|
key: string;
|
|
108
114
|
value: any;
|
|
@@ -110,7 +116,7 @@ export type BaseAppMsgStruct<TNavRoutes extends NavRoutes = NavRoutes> = BaseApi
|
|
|
110
116
|
};
|
|
111
117
|
out: void;
|
|
112
118
|
};
|
|
113
|
-
[$
|
|
119
|
+
[$STORE_REMOVE]: {
|
|
114
120
|
in: {
|
|
115
121
|
key: string;
|
|
116
122
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appContracts.d.ts","sourceRoot":"","sources":["../../src/appDomain/appContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,wBAAwB,IAAI,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACrI,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"appContracts.d.ts","sourceRoot":"","sources":["../../src/appDomain/appContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,wBAAwB,IAAI,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AACrI,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,O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AAC,GAAG,EAE9G,CAAC"}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
const E = "APP
|
|
1
|
+
const E = "APP.NAV.GOTO", T = "APP.NAV.CONTEXT.GET", O = "APP.NAV.CONTEXT.CHANGED", A = "APP.NAV.HISTORY.READ", P = "APP.NOTICE", N = "APP.CONFIG.GET", R = "APP.ERROR", o = "APP.FETCH", t = "APP.STORE.GET", C = "APP.STORE.SET", G = "APP.STORE.REMOVE";
|
|
2
2
|
export {
|
|
3
3
|
N as $CONFIG_GET,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
A as $NAV_CONTEXT_CHANGED,
|
|
9
|
-
T as $NAV_GET_CONTEXT,
|
|
4
|
+
R as $ERROR,
|
|
5
|
+
o as $FETCH,
|
|
6
|
+
O as $NAV_CONTEXT_CHANGED,
|
|
7
|
+
T as $NAV_CONTEXT_GET,
|
|
10
8
|
E as $NAV_GOTO,
|
|
11
|
-
|
|
12
|
-
P as $NOTICE
|
|
9
|
+
A as $NAV_HISTORY_READ,
|
|
10
|
+
P as $NOTICE,
|
|
11
|
+
t as $STORE_GET,
|
|
12
|
+
G as $STORE_REMOVE,
|
|
13
|
+
C as $STORE_SET
|
|
13
14
|
};
|
|
14
15
|
//# sourceMappingURL=appContracts.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appContracts.es.js","sources":["../../src/appDomain/appContracts.ts"],"sourcesContent":["import { MsgStructBase, MsgStructFactory } from \"@actdim/msgmesh/contracts\";\r\nimport { BaseSecurityDomainConfig as BaseSecurityDomainConfig, BaseSecurityMsgStruct } from \"@/appDomain/security/securityContracts\";\r\nimport { ReactNode } from \"react\";\r\nimport { KeysOf } from \"@actdim/utico/typeCore\";\r\nimport { BaseContext
|
|
1
|
+
{"version":3,"file":"appContracts.es.js","sources":["../../src/appDomain/appContracts.ts"],"sourcesContent":["import { MsgStructBase, MsgStructFactory } from \"@actdim/msgmesh/contracts\";\r\nimport { BaseSecurityDomainConfig as BaseSecurityDomainConfig, BaseSecurityMsgStruct } from \"@/appDomain/security/securityContracts\";\r\nimport { ReactNode } from \"react\";\r\nimport { KeysOf } from \"@actdim/utico/typeCore\";\r\nimport { BaseContext } from \"@/componentModel/contracts\";\r\nimport { StoreItem } from \"@actdim/utico/store/storeContracts\";\r\n\r\nexport const $NAV_GOTO = \"APP.NAV.GOTO\";\r\nexport const $NAV_CONTEXT_GET = \"APP.NAV.CONTEXT.GET\";\r\nexport const $NAV_CONTEXT_CHANGED = \"APP.NAV.CONTEXT.CHANGED\";\r\nexport const $NAV_HISTORY_READ = \"APP.NAV.HISTORY.READ\";\r\n\r\nexport const $NOTICE = \"APP.NOTICE\";\r\nexport const $CONFIG_GET = \"APP.CONFIG.GET\";\r\n\r\nexport const $ERROR = \"APP.ERROR\";\r\nexport const $FETCH = \"APP.FETCH\";\r\n\r\nexport const $STORE_GET = \"APP.STORE.GET\";\r\nexport const $STORE_SET = \"APP.STORE.SET\";\r\nexport const $STORE_REMOVE = \"APP.STORE.REMOVE\";\r\n// TODO: HAS, CLEAR\r\n\r\nexport type NavPath = {\r\n /**\r\n * A URL pathname, beginning with a /.\r\n */\r\n pathname: string;\r\n /**\r\n * A URL search string, beginning with a ?.\r\n */\r\n search: string;\r\n /**\r\n * A URL fragment identifier, beginning with a #.\r\n */\r\n hash: string;\r\n};\r\n\r\nexport type NavLocation<State = any> = NavPath & {\r\n /**\r\n * A value of arbitrary data associated with this location.\r\n */\r\n state: State;\r\n /**\r\n * A unique string associated with this location. May be used to safely store\r\n * and retrieve data in some other storage API, like `localStorage`.\r\n *\r\n * Note: This value is always \"default\" on the initial location.\r\n */\r\n key: string;\r\n};\r\n\r\nexport type NavAction =\r\n /**\r\n * A POP indicates a change to an arbitrary index in the history stack, such\r\n * as a back or forward navigation. It does not describe the direction of the\r\n * navigation, only that the current index changed.\r\n *\r\n * Note: This is the default action for newly created history objects.\r\n */\r\n | \"POP\"\r\n /**\r\n * A PUSH indicates a new entry being added to the history stack, such as when\r\n * a link is clicked and a new page loads. When this happens, all subsequent\r\n * entries in the stack are lost.\r\n */\r\n | \"PUSH\"\r\n /**\r\n * A REPLACE indicates the entry at the current index in the history stack\r\n * being replaced by a new one.\r\n */\r\n | \"REPLACE\";\r\n\r\n// AppRouteParams\r\nexport type NavRouteParams = Record<string, string | undefined>;\r\n\r\n// AppRoute\r\nexport type NavRoute<TParams extends NavRouteParams = NavRouteParams> = {\r\n path(params?: TParams): string;\r\n match(path: string): TParams;\r\n element: ReactNode;\r\n defaultParams?: TParams;\r\n};\r\n\r\nexport type NavRoutes = Record<string, NavRoute>;\r\n\r\ntype NavRouteStruct<TNavRoutes extends NavRoutes> = {\r\n [K in keyof TNavRoutes]: {\r\n route: K;\r\n params?: TNavRoutes[K][\"defaultParams\"];\r\n };\r\n}[keyof TNavRoutes];\r\n\r\nexport type NavContext = {\r\n // route?: NavRoute;\r\n location?: NavLocation;\r\n searchParams?: URLSearchParams;\r\n params?: NavRouteParams;\r\n navType?: NavAction;\r\n};\r\n\r\nexport type NavHistory = Array<NavContext>;\r\n\r\n// OperationContext?\r\nexport type AppError = {\r\n // code?: string;\r\n type?: string;\r\n name?: string;\r\n source?: any;\r\n // module: string;\r\n // description\r\n detail?: string;\r\n timestamp?: string;\r\n // errors: AppError[];\r\n // traceId?: string; \r\n message: string;\r\n // reason?: string;\r\n // propertyBag/context\r\n properties?: Record<string | number, any>;\r\n};\r\n\r\n// Base(App)ApiMsgStruct\r\nexport type BaseApiMsgStruct = BaseSecurityMsgStruct &\r\n MsgStructFactory<{\r\n // \"GET-VERSION\"?: {\r\n // in: any;\r\n // };\r\n }>;\r\n\r\nexport type Importance =\r\n | \"critical\"\r\n | \"high\"\r\n | \"normal\"\r\n | \"low\"\r\n | undefined\r\n\r\n// Intent\r\nexport type Severity =\r\n // critical/high\r\n | 'emergency'\r\n | 'alert' // danger\r\n | 'error' // failure\r\n | 'warn' // caution\r\n // normal\r\n | 'notice' // notification\r\n | 'info' // default\r\n | 'success' // confirmation\r\n // low\r\n | 'hint' // note\r\n | 'debug' // trace\r\n | undefined;\r\n\r\n// BaseAppMsgStruct\r\nexport type BaseAppMsgStruct<TNavRoutes extends NavRoutes = NavRoutes> = BaseApiMsgStruct &\r\n MsgStructFactory<\r\n {\r\n [$NOTICE]: {\r\n in: {\r\n text: string;\r\n title?: string;\r\n detail?: string;\r\n severity?: Severity;\r\n // propertyBag/context\r\n properties?: Record<string | number, any>;\r\n };\r\n out: void;\r\n };\r\n [$CONFIG_GET]: {\r\n in: void;\r\n out: BaseAppDomainConfig;\r\n };\r\n [$NAV_GOTO]: {\r\n in: string | number;\r\n ex: NavRouteStruct<TNavRoutes>;\r\n out: void;\r\n };\r\n [$NAV_CONTEXT_GET]: {\r\n in: void;\r\n out: NavContext;\r\n };\r\n [$NAV_CONTEXT_CHANGED]: {\r\n in: NavContext;\r\n out: void;\r\n };\r\n [$NAV_HISTORY_READ]: {\r\n in: number;\r\n out: NavContext;\r\n };\r\n [$ERROR]: {\r\n in: AppError;\r\n out: boolean;\r\n };\r\n [$FETCH]: {\r\n in: {\r\n url: string;\r\n params: RequestInit;\r\n };\r\n out: Response;\r\n };\r\n [$STORE_GET]: {\r\n in: {\r\n key: string;\r\n useEncryption?: boolean;\r\n };\r\n out: StoreItem;\r\n };\r\n [$STORE_SET]: {\r\n in: {\r\n key: string;\r\n value: any;\r\n useEncryption?: boolean;\r\n };\r\n out: void;\r\n };\r\n [$STORE_REMOVE]: {\r\n in: {\r\n key: string;\r\n };\r\n out: void;\r\n };\r\n } & MsgStructBase\r\n >;\r\n\r\nexport type BaseApiConfig = {\r\n url?: string;\r\n versions?: string[];\r\n};\r\n\r\n// BaseApp(Domain)Config\r\nexport type BaseAppDomainConfig<\r\n TSecurityDomainConfig extends BaseSecurityDomainConfig = BaseSecurityDomainConfig,\r\n TApiConfig extends BaseApiConfig = BaseApiConfig\r\n> = {\r\n id: string;\r\n name?: string;\r\n baseUrl: string;\r\n security: TSecurityDomainConfig;\r\n defaultApi?: string;\r\n apis: Record<string, TApiConfig>;\r\n // HATEOAS? (React Admin)\r\n};\r\n\r\nexport type BaseAppMsgChannels<TChannel extends keyof BaseAppMsgStruct | Array<keyof BaseAppMsgStruct>> = KeysOf<BaseAppMsgStruct, TChannel>;\r\n\r\nexport type BaseAppContext<TMsgStruct extends BaseAppMsgStruct = BaseAppMsgStruct> = BaseContext<TMsgStruct> & {\r\n // securityProvider: SecurityProvider;\r\n};"],"names":["$NAV_GOTO","$NAV_CONTEXT_GET","$NAV_CONTEXT_CHANGED","$NAV_HISTORY_READ","$NOTICE","$CONFIG_GET","$ERROR","$FETCH","$STORE_GET","$STORE_SET","$STORE_REMOVE"],"mappings":"AAOO,MAAMA,IAAY,gBACZC,IAAmB,uBACnBC,IAAuB,2BACvBC,IAAoB,wBAEpBC,IAAU,cACVC,IAAc,kBAEdC,IAAS,aACTC,IAAS,aAETC,IAAa,iBACbC,IAAa,iBACbC,IAAgB;"}
|
|
@@ -16,55 +16,55 @@ export type UserCredentials = {
|
|
|
16
16
|
export type IAccessDescriptor = {
|
|
17
17
|
[P in AccessLevel]?: string;
|
|
18
18
|
};
|
|
19
|
-
export declare const $
|
|
20
|
-
export declare const $
|
|
21
|
-
export declare const $
|
|
22
|
-
export declare const $
|
|
23
|
-
export declare const $
|
|
24
|
-
export declare const $
|
|
25
|
-
export declare const $
|
|
26
|
-
export declare const $
|
|
27
|
-
export declare const $
|
|
19
|
+
export declare const $AUTH_SIGNIN: "APP.SECURITY.AUTH.SIGNIN";
|
|
20
|
+
export declare const $AUTH_SIGNIN_REQUEST: "APP.SECURITY.AUTH.SIGNIN.REQUEST";
|
|
21
|
+
export declare const $AUTH_SIGNOUT: "APP.SECURITY.AUTH.SIGNOUT";
|
|
22
|
+
export declare const $AUTH_SIGNOUT_REQUEST: "APP.SECURITY.AUTH.SIGNOUT.REQUEST";
|
|
23
|
+
export declare const $AUTH_REFRESH: "APP.SECURITY.AUTH.REFRESH";
|
|
24
|
+
export declare const $AUTH_ENSURE: "APP.SECURITY.AUTH.ENSURE";
|
|
25
|
+
export declare const $ACL_GET: "APP.SECURITY.ACL.GET";
|
|
26
|
+
export declare const $CONTEXT_GET: "APP.SECURITY.CONTEXT.GET";
|
|
27
|
+
export declare const $CONFIG_GET: "APP.SECURITY.CONFIG.GET";
|
|
28
28
|
export type SecurityTokens = {
|
|
29
29
|
accessToken?: string;
|
|
30
30
|
refreshToken?: string;
|
|
31
31
|
};
|
|
32
32
|
export type BaseSecurityMsgStruct = RequireExtends<{
|
|
33
|
-
[$
|
|
33
|
+
[$AUTH_SIGNIN]: {
|
|
34
34
|
in: UserCredentials;
|
|
35
35
|
out: SecurityContext;
|
|
36
36
|
};
|
|
37
|
-
[$
|
|
37
|
+
[$AUTH_SIGNIN_REQUEST]: {
|
|
38
38
|
in: {
|
|
39
39
|
callbackUrl: string;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
[$
|
|
42
|
+
[$AUTH_SIGNOUT]: {
|
|
43
43
|
in: void;
|
|
44
44
|
out: void;
|
|
45
45
|
};
|
|
46
|
-
[$
|
|
46
|
+
[$AUTH_SIGNOUT_REQUEST]: {
|
|
47
47
|
in: {
|
|
48
48
|
callbackUrl: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
[$
|
|
51
|
+
[$AUTH_REFRESH]: {
|
|
52
52
|
in: Skip<SecurityTokens, "accessToken">;
|
|
53
53
|
out: SecurityContext;
|
|
54
54
|
};
|
|
55
|
-
[$
|
|
55
|
+
[$AUTH_ENSURE]: {
|
|
56
56
|
in: void;
|
|
57
57
|
out: void;
|
|
58
58
|
};
|
|
59
|
-
[$
|
|
59
|
+
[$ACL_GET]: {
|
|
60
60
|
in: ISecurable;
|
|
61
61
|
out: IAccessDescriptor;
|
|
62
62
|
};
|
|
63
|
-
[$
|
|
63
|
+
[$CONTEXT_GET]: {
|
|
64
64
|
in: void;
|
|
65
65
|
out: SecurityContext;
|
|
66
66
|
};
|
|
67
|
-
[$
|
|
67
|
+
[$CONFIG_GET]: {
|
|
68
68
|
in: void;
|
|
69
69
|
out: BaseSecurityDomainConfig;
|
|
70
70
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityContracts.d.ts","sourceRoot":"","sources":["../../../src/appDomain/security/securityContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9D,oBAAY,WAAW;IACnB,IAAI,IAAI;IACR,SAAS,IAAS;IAClB,QAAQ,IAAS;IACjB,MAAM,IAAS;IACf,QAAQ,IAAS;IACjB,QAAQ,KAAS;IACjB,IAAI,KAAa;CACpB;AAGD,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;KAE3B,CAAC,IAAI,WAAW,CAAC,CAAC,EAAE,MAAM;CAC9B,CAAC;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"securityContracts.d.ts","sourceRoot":"","sources":["../../../src/appDomain/security/securityContracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,SAAS,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9D,oBAAY,WAAW;IACnB,IAAI,IAAI;IACR,SAAS,IAAS;IAClB,QAAQ,IAAS;IACjB,MAAM,IAAS;IACf,QAAQ,IAAS;IACjB,QAAQ,KAAS;IACjB,IAAI,KAAa;CACpB;AAGD,MAAM,MAAM,eAAe,GAAG;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,i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AC;QACT,GAAG,EAAE,IAAI,CAAC;KACb,CAAC;IACF,CAAC,QAAQ,CAAC,EAAE;QACR,EAAE,EAAE,UAAU,CAAC;QACf,GAAG,EAAE,iBAAiB,CAAC;KAC1B,CAAC;IACF,CAAC,YAAY,CAAC,EAAE;QACZ,EAAE,EAAE,IAAI,CAAC;QACT,GAAG,EAAE,eAAe,CAAC;KACxB,CAAC;IACF,CAAC,WAAW,CAAC,EAAE;QACX,EAAE,EAAE,IAAI,CAAC;QACT,GAAG,EAAE,wBAAwB,CAAC;KACjC,CAAC;CACL,GAAG,aAAa,EACjB,SAAS,CACZ,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;CACd,CAAC;AAGF,MAAM,MAAM,eAAe,CAAC,SAAS,GAAG,GAAG,IAAI;IAG3C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IAGrB,QAAQ,EAAE,SAAS,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IAEf,cAAc,EAAE,MAAM,CAAC;CAE1B,CAAC;AAGF,MAAM,MAAM,wBAAwB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE;QACJ,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,WAAW,EAAE,MAAM,CAAC;QAGpB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;CACL,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
var E = /* @__PURE__ */ ((T) => (T[T.None = 0] = "None", T[T.Inherited = 1] = "Inherited", T[T.NoRender = 2] = "NoRender", T[T.Hidden = 4] = "Hidden", T[T.Disabled = 8] = "Disabled", T[T.ReadOnly = 16] = "ReadOnly", T[T.Full = 31] = "Full", T))(E || {});
|
|
2
|
-
const U = "APP
|
|
2
|
+
const U = "APP.SECURITY.AUTH.SIGNIN", I = "APP.SECURITY.AUTH.SIGNIN.REQUEST", S = "APP.SECURITY.AUTH.SIGNOUT", R = "APP.SECURITY.AUTH.SIGNOUT.REQUEST", N = "APP.SECURITY.AUTH.REFRESH", n = "APP.SECURITY.AUTH.ENSURE", P = "APP.SECURITY.ACL.GET", G = "APP.SECURITY.CONTEXT.GET", H = "APP.SECURITY.CONFIG.GET";
|
|
3
3
|
export {
|
|
4
|
-
P as $
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
R as $
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
P as $ACL_GET,
|
|
5
|
+
n as $AUTH_ENSURE,
|
|
6
|
+
N as $AUTH_REFRESH,
|
|
7
|
+
U as $AUTH_SIGNIN,
|
|
8
|
+
I as $AUTH_SIGNIN_REQUEST,
|
|
9
|
+
S as $AUTH_SIGNOUT,
|
|
10
|
+
R as $AUTH_SIGNOUT_REQUEST,
|
|
11
|
+
H as $CONFIG_GET,
|
|
12
|
+
G as $CONTEXT_GET,
|
|
13
13
|
E as AccessLevel
|
|
14
14
|
};
|
|
15
15
|
//# sourceMappingURL=securityContracts.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityContracts.es.js","sources":["../../../src/appDomain/security/securityContracts.ts"],"sourcesContent":["import { MsgBus, MsgStruct, MsgStructBase } from \"@actdim/msgmesh/contracts\";\r\nimport { RequireExtends, Skip } from \"@actdim/utico/typeCore\";\r\n// abstract\r\nexport enum AccessLevel {\r\n None = 0,\r\n Inherited = 1 << 0, // Unset\r\n NoRender = 1 << 1,\r\n Hidden = 1 << 2,\r\n Disabled = 1 << 3,\r\n ReadOnly = 1 << 4, // View\r\n Full = ~(~0 << 5) // Unrestricted\r\n}\r\n\r\n// HTTP RFC 7231\r\nexport type UserCredentials = {\r\n username: string;\r\n password: string;\r\n};\r\n\r\nexport type IAccessDescriptor = {\r\n // deny/grant reason(s)\r\n [P in AccessLevel]?: string;\r\n};\r\n\r\nexport const $
|
|
1
|
+
{"version":3,"file":"securityContracts.es.js","sources":["../../../src/appDomain/security/securityContracts.ts"],"sourcesContent":["import { MsgBus, MsgStruct, MsgStructBase } from \"@actdim/msgmesh/contracts\";\r\nimport { RequireExtends, Skip } from \"@actdim/utico/typeCore\";\r\n// abstract\r\nexport enum AccessLevel {\r\n None = 0,\r\n Inherited = 1 << 0, // Unset\r\n NoRender = 1 << 1,\r\n Hidden = 1 << 2,\r\n Disabled = 1 << 3,\r\n ReadOnly = 1 << 4, // View\r\n Full = ~(~0 << 5) // Unrestricted\r\n}\r\n\r\n// HTTP RFC 7231\r\nexport type UserCredentials = {\r\n username: string;\r\n password: string;\r\n};\r\n\r\nexport type IAccessDescriptor = {\r\n // deny/grant reason(s)\r\n [P in AccessLevel]?: string;\r\n};\r\n\r\nexport const $AUTH_SIGNIN = \"APP.SECURITY.AUTH.SIGNIN\" as const;\r\nexport const $AUTH_SIGNIN_REQUEST = \"APP.SECURITY.AUTH.SIGNIN.REQUEST\" as const;\r\nexport const $AUTH_SIGNOUT = \"APP.SECURITY.AUTH.SIGNOUT\" as const;\r\nexport const $AUTH_SIGNOUT_REQUEST = \"APP.SECURITY.AUTH.SIGNOUT.REQUEST\" as const;\r\nexport const $AUTH_REFRESH = \"APP.SECURITY.AUTH.REFRESH\" as const;\r\n// require\r\nexport const $AUTH_ENSURE = \"APP.SECURITY.AUTH.ENSURE\" as const;\r\nexport const $ACL_GET = \"APP.SECURITY.ACL.GET\" as const;\r\nexport const $CONTEXT_GET = \"APP.SECURITY.CONTEXT.GET\" as const;\r\nexport const $CONFIG_GET = \"APP.SECURITY.CONFIG.GET\" as const;\r\n\r\nexport type SecurityTokens = {\r\n accessToken?: string;\r\n refreshToken?: string;\r\n};\r\n\r\n// Base(App)SecurityMsgStruct\r\nexport type BaseSecurityMsgStruct = RequireExtends<\r\n {\r\n [$AUTH_SIGNIN]: {\r\n in: UserCredentials;\r\n out: SecurityContext;\r\n };\r\n [$AUTH_SIGNIN_REQUEST]: {\r\n in: {\r\n callbackUrl: string;\r\n };\r\n // out: void;\r\n };\r\n [$AUTH_SIGNOUT]: {\r\n in: void;\r\n out: void;\r\n };\r\n [$AUTH_SIGNOUT_REQUEST]: {\r\n in: {\r\n callbackUrl: string;\r\n };\r\n // out: void;\r\n };\r\n [$AUTH_REFRESH]: {\r\n in: Skip<SecurityTokens, \"accessToken\">;\r\n out: SecurityContext;\r\n };\r\n [$AUTH_ENSURE]: {\r\n in: void;\r\n out: void;\r\n };\r\n [$ACL_GET]: {\r\n in: ISecurable;\r\n out: IAccessDescriptor;\r\n };\r\n [$CONTEXT_GET]: {\r\n in: void;\r\n out: SecurityContext;\r\n };\r\n [$CONFIG_GET]: {\r\n in: void;\r\n out: BaseSecurityDomainConfig;\r\n };\r\n } & MsgStructBase,\r\n MsgStruct\r\n>;\r\n\r\nexport type ISecurable = {\r\n id: string;\r\n};\r\n\r\n// AppSecurityContext\r\nexport type SecurityContext<TUserInfo = any> = {\r\n // isAuthenticated: boolean;\r\n // isExpired: boolean;\r\n accessToken: string;\r\n refreshToken: string;\r\n // sessionToken: string;\r\n // sid: string; // SID is an acronym for \"security identity\", grant recipient\r\n userInfo: TUserInfo;\r\n // authority: string;\r\n authProvider: string; // authSource\r\n domain: string; // protection space, scope of protection\r\n // authExpiresAt\r\n tokenExpiresAt: string;\r\n // acl: any;\r\n};\r\n\r\n// Base(App)Security(Domain)Config\r\nexport type BaseSecurityDomainConfig = {\r\n id: string;\r\n name?: string;\r\n authType: string;\r\n // endpoints\r\n routes: {\r\n authSignIn: string;\r\n authSignOut: string;\r\n authRefresh: string;\r\n // RFC 8414 (OIDC) — \"OAuth 2.0 Authorization Server Metadata\"\r\n // https://datatracker.ietf.org/doc/html/rfc8414 \r\n authService: string;\r\n };\r\n};\r\n"],"names":["AccessLevel","$AUTH_SIGNIN","$AUTH_SIGNIN_REQUEST","$AUTH_SIGNOUT","$AUTH_SIGNOUT_REQUEST","$AUTH_REFRESH","$AUTH_ENSURE","$ACL_GET","$CONTEXT_GET","$CONFIG_GET"],"mappings":"AAGO,IAAKA,sBAAAA,OACRA,EAAAA,EAAA,OAAO,CAAA,IAAP,QACAA,EAAAA,EAAA,YAAY,CAAA,IAAZ,aACAA,EAAAA,EAAA,WAAW,CAAA,IAAX,YACAA,EAAAA,EAAA,SAAS,CAAA,IAAT,UACAA,EAAAA,EAAA,WAAW,CAAA,IAAX,YACAA,EAAAA,EAAA,WAAW,EAAA,IAAX,YACAA,EAAAA,EAAA,OAAO,EAAA,IAAP,QAPQA,IAAAA,KAAA,CAAA,CAAA;AAqBL,MAAMC,IAAe,4BACfC,IAAuB,oCACvBC,IAAgB,6BAChBC,IAAwB,qCACxBC,IAAgB,6BAEhBC,IAAe,4BACfC,IAAW,wBACXC,IAAe,4BACfC,IAAc;"}
|
|
@@ -16,15 +16,15 @@ export declare class SecurityProvider<TUserInfo = any> {
|
|
|
16
16
|
private init;
|
|
17
17
|
constructor(msgBus: MsgBus<BaseAppMsgStruct>);
|
|
18
18
|
getContext(): SecurityContext;
|
|
19
|
-
private
|
|
20
|
-
|
|
19
|
+
private updateConfig;
|
|
20
|
+
restoreData(): Promise<void>;
|
|
21
21
|
get domain(): string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
clearSavedData(): Promise<void>;
|
|
23
|
+
ensureAuth(): Promise<void>;
|
|
24
|
+
signIn(credentials: UserCredentials): Promise<SecurityContext>;
|
|
25
|
+
saveData(): Promise<void>;
|
|
26
|
+
signOut(): Promise<void>;
|
|
27
|
+
refreshAuth(): Promise<SecurityContext>;
|
|
28
28
|
getAcl<T extends ISecurable>(obj: T): Promise<IAccessDescriptor>;
|
|
29
29
|
verifyAccess<T extends ISecurable>(obj: T, accessLevel?: AccessLevel): Promise<boolean>;
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"securityProvider.d.ts","sourceRoot":"","sources":["../../../src/appDomain/security/securityProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,iBAAiB,EACjB,UAAU,EAEV,eAAe,EAEf,eAAe,
|
|
1
|
+
{"version":3,"file":"securityProvider.d.ts","sourceRoot":"","sources":["../../../src/appDomain/security/securityProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,WAAW,EACX,iBAAiB,EACjB,UAAU,EAEV,eAAe,EAEf,eAAe,EASlB,MAAM,qBAAqB,CAAC;AAK7B,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAsD,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAiChH,qBAAa,gBAAgB,CAAC,SAAS,GAAG,GAAG;IAKzC,OAAO,CAAC,MAAM,CAA2B;IAEzC,OAAO,CAAC,YAAY,CAA2B;IAE/C,OAAO,CAAC,WAAW,CAAqB;IAExC,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,eAAe,CAAkB;IAEzC,OAAO,CAAC,QAAQ,CAAY;IAG5B,OAAO,CAAC,YAAY,CAAS;IAE7B,OAAO,CAAC,cAAc,CAAS;IAG/B,OAAO,CAAC,GAAG,CAAM;IAEjB,OAAO,CAAC,OAAO,CAA8E;IAE7F,OAAO,CAAC,IAAI,CAAe;gBAEf,MAAM,EAAE,MAAM,CAAC,gBAAgB,CAAC;IA8DrC,UAAU,IAAI,eAAe;YAWtB,YAAY;IAUpB,WAAW;IA+CjB,IAAW,MAAM,IAAI,MAAM,CAE1B;IAaK,cAAc;IA+Bd,UAAU;IA0BV,MAAM,CAAC,WAAW,EAAE,eAAe;IA0CnC,QAAQ;IA+BR,OAAO;IAgCP,WAAW;IA6CX,MAAM,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC;IASnC,YAAY,CAAC,CAAC,SAAS,UAAU,EAAE,GAAG,EAAE,CAAC,EAAE,WAAW,cAAmB;CAOlF"}
|