@qelos/plugin-play 3.1.35 → 3.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/config.d.ts +1 -1
- package/dist/handlers.d.ts +7 -7
- package/dist/manifest.d.ts +2 -2
- package/dist/micro-frontends.d.ts +2 -2
- package/package.json +5 -5
package/dist/config.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ declare const config: {
|
|
|
16
16
|
prefix: string;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type ConfigOptions = Partial<typeof config>;
|
|
20
20
|
export declare function setConfig(appConfig: ConfigOptions): void;
|
|
21
21
|
export default config;
|
package/dist/handlers.d.ts
CHANGED
|
@@ -8,29 +8,29 @@ export declare const handlers: {
|
|
|
8
8
|
frontendAuth: any[];
|
|
9
9
|
frontendUnAuth: any[];
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type StandardPayload = {
|
|
12
12
|
sub: string;
|
|
13
13
|
identifier: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type DataWithPayload<T> = {
|
|
16
16
|
payload: T & StandardPayload;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type FrontendAuthorizationPayload = {
|
|
19
19
|
code: string | number;
|
|
20
20
|
token: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
23
|
-
export
|
|
22
|
+
export type RefreshTokenHandler<T> = (tokenPayload: T & StandardPayload, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>;
|
|
23
|
+
export type NewTenantHandler<T> = ({ email, password, appUrl }: {
|
|
24
24
|
email: any;
|
|
25
25
|
password: any;
|
|
26
26
|
appUrl: any;
|
|
27
27
|
}, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>;
|
|
28
|
-
export
|
|
28
|
+
export type FrontendAuthorizationHandler = ({ returnUrl, user, tenant }: {
|
|
29
29
|
returnUrl: any;
|
|
30
30
|
user: any;
|
|
31
31
|
tenant: any;
|
|
32
32
|
}, request: FastifyRequest) => void | FrontendAuthorizationPayload | Promise<void | FrontendAuthorizationPayload>;
|
|
33
|
-
export
|
|
33
|
+
export type FrontendUnAuthorizationHandler = ({ user, tenant }: {
|
|
34
34
|
user: any;
|
|
35
35
|
tenant: any;
|
|
36
36
|
}) => any;
|
package/dist/manifest.d.ts
CHANGED
|
@@ -20,14 +20,14 @@ export declare const manifest: {
|
|
|
20
20
|
accessTokenKey: string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type NavBarGroup = {
|
|
24
24
|
key: string;
|
|
25
25
|
name: string;
|
|
26
26
|
iconName?: string;
|
|
27
27
|
iconSvg?: string;
|
|
28
28
|
priority?: number;
|
|
29
29
|
};
|
|
30
|
-
export
|
|
30
|
+
export type ManifestOptions = Partial<typeof manifest> & {
|
|
31
31
|
appUrl?: string;
|
|
32
32
|
navBarGroups?: NavBarGroup[];
|
|
33
33
|
};
|
|
@@ -32,8 +32,8 @@ export interface GlobalMicroFrontend {
|
|
|
32
32
|
size: 'sm' | 'md' | 'lg' | 'full';
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
export
|
|
36
|
-
export
|
|
35
|
+
export type MicroFrontendOptions = IframeMicroFrontend | PreDesignedMicroFrontendOptions;
|
|
36
|
+
export type MicroFrontend = IframeMicroFrontend | PreDesignedMicroFrontend;
|
|
37
37
|
export declare function addMicroFrontend(mfe: MicroFrontendOptions): void;
|
|
38
38
|
export declare function addGroupedMicroFrontends(group: NavBarGroup, mfeArray: MicroFrontendOptions[]): void;
|
|
39
39
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qelos/plugin-play",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Play a plugin for Qelos!",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@fastify/cookie": "^8.3.0",
|
|
17
17
|
"@fastify/static": "^6.5.0",
|
|
18
|
-
"@qelos/cache-manager": "^3.1
|
|
19
|
-
"@qelos/sdk": "^3.
|
|
20
|
-
"@qelos/web-sdk": "^3.
|
|
18
|
+
"@qelos/cache-manager": "^3.2.1",
|
|
19
|
+
"@qelos/sdk": "^3.2.0",
|
|
20
|
+
"@qelos/web-sdk": "^3.2.0",
|
|
21
21
|
"fastify": "^4.3.0",
|
|
22
22
|
"jsonwebtoken": "^9.0.0",
|
|
23
23
|
"undici": "^5.8.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"typescript": "^4.
|
|
26
|
+
"typescript": "^4.9.5"
|
|
27
27
|
}
|
|
28
28
|
}
|