@qelos/plugin-play 3.8.3 → 3.9.0
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/LICENSE +11 -22
- package/dist/handlers.d.ts +7 -6
- package/dist/handlers.js.map +1 -1
- package/dist/micro-frontends.d.ts +2 -3
- package/dist/micro-frontends.js.map +1 -1
- package/dist/sdk.d.ts +3 -2
- package/dist/sdk.js.map +1 -1
- package/package.json +8 -6
- package/src/handlers.ts +11 -5
- package/src/micro-frontends.ts +3 -4
- package/src/sdk.ts +10 -8
package/LICENSE
CHANGED
|
@@ -1,31 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
Polyform Shield License 1.0.0
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) [שנת הפרסום] Qelos LTD
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Your use of this software is governed by the Polyform Shield License 1.0.0.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
- **Distribute** copies of the software or modified versions.
|
|
7
|
+
You may obtain a copy of the License at:
|
|
8
|
+
https://polyformproject.org/licenses/shield/1.0.0
|
|
10
9
|
|
|
11
|
-
|
|
12
|
-
- You are not required to share modifications you make.
|
|
13
|
-
- You may use this software internally, including within commercial settings, without any restrictions.
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
11
|
|
|
15
|
-
|
|
12
|
+
Additional Terms – Exception Notice:
|
|
16
13
|
|
|
17
|
-
|
|
14
|
+
The author of this software grants additional permissions beyond the Polyform Shield License 1.0.0:
|
|
18
15
|
|
|
19
|
-
|
|
16
|
+
✅ All uses of the software are permitted — including modification, distribution, commercial use, and sublicensing — as long as the software is not used to create, offer, or operate any product or service that competes directly with Qelos (https://qelos.io), a no-code platform for building AI-assisted SaaS applications.
|
|
20
17
|
|
|
21
|
-
|
|
22
|
-
- You **may not** sell, offer, or commercialize this software as a managed service, SaaS, or any similar hosted service.
|
|
18
|
+
❌ "Direct competition" includes platforms, tools, or services that enable users to visually or programmatically create SaaS applications with the assistance of artificial intelligence.
|
|
23
19
|
|
|
24
|
-
|
|
25
|
-
If you wish to offer a managed or commercial version of this software, you must obtain a **commercial license** from Velocitech LTD. Please contact us at [support@qelos.io](mailto:support@qelos.io) for details.
|
|
26
|
-
|
|
27
|
-
## Additional Notes
|
|
28
|
-
|
|
29
|
-
This license ensures the software remains free for personal use and community development, while protecting Velocitech LTD’s right to control the commercialization of managed services based on the software.
|
|
30
|
-
|
|
31
|
-
For any questions regarding the license, feel free to reach out at [support@qelos.io].
|
|
20
|
+
This exception does not modify the terms of the original Polyform Shield License for other users and applies only by explicit permission of the licensor.
|
package/dist/handlers.d.ts
CHANGED
|
@@ -19,14 +19,15 @@ export type FrontendAuthorizationPayload = {
|
|
|
19
19
|
code: string | number;
|
|
20
20
|
token: string;
|
|
21
21
|
};
|
|
22
|
+
export type NewTenantParams = {
|
|
23
|
+
username: string;
|
|
24
|
+
password: string;
|
|
25
|
+
appUrl: string;
|
|
26
|
+
};
|
|
22
27
|
export type RefreshTokenHandler<T> = (tokenPayload: T & StandardPayload, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>;
|
|
23
|
-
export type NewTenantHandler<T> = (
|
|
24
|
-
username: any;
|
|
25
|
-
password: any;
|
|
26
|
-
appUrl: any;
|
|
27
|
-
}, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>;
|
|
28
|
+
export type NewTenantHandler<T> = (params: NewTenantParams, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>;
|
|
28
29
|
export type FrontendAuthorizationHandler = ({ returnUrl, user, tenant }: {
|
|
29
|
-
returnUrl:
|
|
30
|
+
returnUrl: string;
|
|
30
31
|
user: any;
|
|
31
32
|
tenant: any;
|
|
32
33
|
}, request: FastifyRequest) => void | FrontendAuthorizationPayload | Promise<void | FrontendAuthorizationPayload>;
|
package/dist/handlers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,EAAE;IAChB,cAAc,EAAE,EAAE;CACnB,CAAA;
|
|
1
|
+
{"version":3,"file":"handlers.js","sourceRoot":"","sources":["../src/handlers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,YAAY,EAAE,EAAE;IAChB,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,EAAE;IACb,QAAQ,EAAE,EAAE;IACZ,YAAY,EAAE,EAAE;IAChB,cAAc,EAAE,EAAE;CACnB,CAAA;AA2BD,MAAM,UAAU,cAAc,CAAU,OAA+B;IACrE,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,WAAW,CAAU,OAA4B;IAC/D,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAAyC;IAClE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAO;IACjC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACnC,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,OAG+E;IACxG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,OAAqC;IAC3E,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACtC,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,OAAuC;IAC/E,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AACxC,CAAC;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"micro-frontends.js","sourceRoot":"","sources":["../src/micro-frontends.ts"],"names":[],"mappings":"AAAA,OAAO,QAAyB,MAAM,YAAY,CAAC;AAYnD,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,mCAAiB,CAAA;IACjB,iDAA+B,CAAA;AACjC,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;
|
|
1
|
+
{"version":3,"file":"micro-frontends.js","sourceRoot":"","sources":["../src/micro-frontends.ts"],"names":[],"mappings":"AAAA,OAAO,QAAyB,MAAM,YAAY,CAAC;AAYnD,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,mCAAiB,CAAA;IACjB,iDAA+B,CAAA;AACjC,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAoCD,MAAM,UAAU,gBAAgB,CAAC,GAAyB;IACxD,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAkB,EAAE,QAA6D;IACxH,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAClC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACrB,IAAI,GAAG,EAAE;YACP,gBAAgB,CAAC,EAAE,GAAG,GAAG,EAAE,KAAK,EAAE,EAAE,GAAG,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;SACxE;IACH,CAAC,CAAC,CAAA;AACJ,CAAC"}
|
package/dist/sdk.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare function authenticate(): Promise<{
|
|
|
6
6
|
refreshToken: string;
|
|
7
7
|
};
|
|
8
8
|
}>;
|
|
9
|
-
export
|
|
9
|
+
export interface GetSdkForUrlOptions {
|
|
10
10
|
appUrl: string;
|
|
11
11
|
refreshToken?: string;
|
|
12
12
|
accessToken?: string;
|
|
@@ -16,7 +16,8 @@ export declare function getSdkForUrl<T = any>({ appUrl, refreshToken, accessToke
|
|
|
16
16
|
refreshToken: string;
|
|
17
17
|
token: string;
|
|
18
18
|
}) => void;
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
|
+
export declare function getSdkForUrl<T = any>({ appUrl, refreshToken, accessToken, username, password, onRefresh }: GetSdkForUrlOptions): QelosAdministratorSDK;
|
|
20
21
|
export declare function getSdk(): QelosAdministratorSDK;
|
|
21
22
|
export declare function getSdkForTenant(tenantPayload: StandardPayload): Promise<QelosAdministratorSDK | null>;
|
|
22
23
|
export declare function getEncryptedDataForTenant(tenantPayload: StandardPayload, encryptedId?: string): Promise<any>;
|
package/dist/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAElE,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,IAAI,QAA4D,CAAC;AAEjE,MAAM,UAAU,YAAY;IAC1B,OAAO,QAAQ,CAAC,cAAc,CAAC,WAAW,CAAC;QACzC,QAAQ,EAAE,MAAM,CAAC,aAAa;QAC9B,QAAQ,EAAE,MAAM,CAAC,aAAa;KAC/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EAAE,IAAI,CAAC,CAAC;AAC/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qelos/plugin-play",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Play a plugin for Qelos!",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"create-certs": "node create-cert.js",
|
|
8
|
-
"
|
|
8
|
+
"type-check": "tsc --noEmit",
|
|
9
|
+
"build": "npm run type-check && tsc",
|
|
9
10
|
"test": "tsx --test test/**/*.test.ts",
|
|
10
11
|
"test:e2e": "tsx --test test/e2e/*.e2e.test.ts"
|
|
11
12
|
},
|
|
@@ -17,9 +18,10 @@
|
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"@fastify/cookie": "^8.3.0",
|
|
19
20
|
"@fastify/static": "^6.12.0",
|
|
20
|
-
"@qelos/cache-manager": "^3.
|
|
21
|
-
"@qelos/
|
|
22
|
-
"@qelos/
|
|
21
|
+
"@qelos/cache-manager": "^3.9.0",
|
|
22
|
+
"@qelos/global-types": "^3.9.0",
|
|
23
|
+
"@qelos/sdk": "^3.9.0",
|
|
24
|
+
"@qelos/web-sdk": "^3.9.0",
|
|
23
25
|
"fastify": "~4.15.0",
|
|
24
26
|
"jsonwebtoken": "^9.0.2",
|
|
25
27
|
"undici": "^6.20.1"
|
|
@@ -28,5 +30,5 @@
|
|
|
28
30
|
"tsx": "^4.7.0",
|
|
29
31
|
"typescript": "^4.9.5"
|
|
30
32
|
},
|
|
31
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "13468bc51557291935b96b1aeaa837b8b52861e8"
|
|
32
34
|
}
|
package/src/handlers.ts
CHANGED
|
@@ -15,17 +15,23 @@ export type DataWithPayload<T> = { payload: T & StandardPayload };
|
|
|
15
15
|
|
|
16
16
|
export type FrontendAuthorizationPayload = { code: string | number, token: string }
|
|
17
17
|
|
|
18
|
+
export type NewTenantParams = {
|
|
19
|
+
username: string;
|
|
20
|
+
password: string;
|
|
21
|
+
appUrl: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
export type RefreshTokenHandler<T> = (tokenPayload: T & StandardPayload, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>
|
|
19
|
-
export type NewTenantHandler<T> = (
|
|
20
|
-
username,
|
|
21
|
-
password,
|
|
22
|
-
appUrl
|
|
23
|
-
}, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>
|
|
25
|
+
export type NewTenantHandler<T> = (params: NewTenantParams, request: FastifyRequest) => void | DataWithPayload<T> | Promise<void | DataWithPayload<T>>
|
|
24
26
|
|
|
25
27
|
export type FrontendAuthorizationHandler = ({
|
|
26
28
|
returnUrl,
|
|
27
29
|
user,
|
|
28
30
|
tenant
|
|
31
|
+
}: {
|
|
32
|
+
returnUrl: string;
|
|
33
|
+
user: any;
|
|
34
|
+
tenant: any;
|
|
29
35
|
}, request: FastifyRequest) => void | FrontendAuthorizationPayload | Promise<void | FrontendAuthorizationPayload>;
|
|
30
36
|
export type FrontendUnAuthorizationHandler = ({ user, tenant }) => any;
|
|
31
37
|
|
package/src/micro-frontends.ts
CHANGED
|
@@ -37,10 +37,9 @@ export interface GlobalMicroFrontend {
|
|
|
37
37
|
iconName?: string;
|
|
38
38
|
iconSvg?: string;
|
|
39
39
|
};
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
},
|
|
40
|
+
global?: {
|
|
41
|
+
position: string;
|
|
42
|
+
}
|
|
44
43
|
modal?: {
|
|
45
44
|
name: string;
|
|
46
45
|
params: string[] | Record<string, string>; // schema / hints for props
|
package/src/sdk.ts
CHANGED
|
@@ -28,6 +28,15 @@ async function bootstrapAuthenticate() {
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export interface GetSdkForUrlOptions {
|
|
32
|
+
appUrl: string;
|
|
33
|
+
refreshToken?: string;
|
|
34
|
+
accessToken?: string;
|
|
35
|
+
username?: string;
|
|
36
|
+
password?: string;
|
|
37
|
+
onRefresh?: ({ refreshToken, token }: { refreshToken: string, token: string }) => void
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
export function getSdkForUrl<T = any>({
|
|
32
41
|
appUrl,
|
|
33
42
|
refreshToken,
|
|
@@ -35,14 +44,7 @@ export function getSdkForUrl<T = any>({
|
|
|
35
44
|
username,
|
|
36
45
|
password,
|
|
37
46
|
onRefresh
|
|
38
|
-
}: {
|
|
39
|
-
appUrl: string;
|
|
40
|
-
refreshToken?: string;
|
|
41
|
-
accessToken?: string;
|
|
42
|
-
username?: string;
|
|
43
|
-
password?: string;
|
|
44
|
-
onRefresh?: ({ refreshToken, token }: { refreshToken: string, token: string }) => void
|
|
45
|
-
}): QelosAdministratorSDK {
|
|
47
|
+
}: GetSdkForUrlOptions): QelosAdministratorSDK {
|
|
46
48
|
let sdk: QelosAdministratorSDK;
|
|
47
49
|
const options: QelosSDKOptions = {
|
|
48
50
|
appUrl,
|