@seeka-labs/cli-apps 3.2.3 → 3.3.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/index.js +15094 -15091
- package/dist/index.js.map +4 -4
- package/dist/init-template/.gitlab-ci.yml +0 -1
- package/dist/init-template/app/browser/package.json +2 -2
- package/dist/init-template/app/lib/package.json +3 -3
- package/dist/init-template/app/lib/src/validation/index.ts +13 -13
- package/dist/init-template/app/server-azurefunc/package.json +6 -6
- package/dist/init-template/app/server-azurefunc/src/app/api/router.ts +13 -13
- package/dist/init-template/app/server-azurefunc/src/app/models/index.ts +12 -12
- package/dist/init-template/app/server-azurefunc/src/app/services/activites.ts +8 -8
- package/dist/init-template/app/server-azurefunc/src/functions/ui.ts +1 -1
- package/dist/init-template/app/ui/package.json +3 -3
- package/package.json +2 -2
- package/README.md +0 -1
- package/dist/init-template/app/ui/.env +0 -9
- /package/dist/init-template/app/server-azurefunc/{template.settings.json → local.settings.template.json} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@example-org-name/example-app-name-browser",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Seeka app browser plugin example-app-name",
|
|
5
5
|
"author": "Seeka company <support@seeka.co>",
|
|
6
6
|
"private": true,
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"watch": "yarn clean && node ./scripts/esbuild/build-browser-plugin.mjs seeka-browser-plugin ExampleAppAppConvergeSdkPlugin dev watch"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@example-org-name/example-app-name-lib": "
|
|
20
|
+
"@example-org-name/example-app-name-lib": "workspace:*",
|
|
21
21
|
"@seeka-labs/converge": "^1"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@example-org-name/example-app-name-lib",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Seeka app library for example-app-name",
|
|
5
5
|
"author": "Seeka <administrator@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"main": "./dist/lib/example-app-name-lib.module.js",
|
|
14
14
|
"module": "./dist/lib/example-app-name-lib.module.js",
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@seeka-labs/sdk-apps-core": "
|
|
17
|
-
"@seeka-labs/sdk-apps-server": "
|
|
16
|
+
"@seeka-labs/sdk-apps-core": "../../../workspace:* || ^3",
|
|
17
|
+
"@seeka-labs/sdk-apps-server": "../../../workspace:* || ^3",
|
|
18
18
|
"@types/lodash-es": "^4",
|
|
19
19
|
"@types/node": "^22",
|
|
20
20
|
"axios": "^1",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {Logger} from "winston";
|
|
2
|
-
import {ExampleAppAppInstallSettings} from "../models";
|
|
3
|
-
|
|
4
|
-
// TODO: Use Zod
|
|
5
|
-
export const validateInstallationSettings = async (installSettings: ExampleAppAppInstallSettings, logger: Logger): Promise<string | null> => {
|
|
6
|
-
// Returning an error message string here will block the installation request or settings update request by the user installing the app
|
|
7
|
-
|
|
8
|
-
if(!installSettings) return null;
|
|
9
|
-
|
|
10
|
-
if(installSettings.exampleInstallSetting2 && installSettings.exampleInstallSetting2 < 2) return 'Example install setting 2 must be greater than 2';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return null;
|
|
1
|
+
import type {Logger} from "winston";
|
|
2
|
+
import {ExampleAppAppInstallSettings} from "../models";
|
|
3
|
+
|
|
4
|
+
// TODO: Use Zod
|
|
5
|
+
export const validateInstallationSettings = async (installSettings: ExampleAppAppInstallSettings, logger: Logger): Promise<string | null> => {
|
|
6
|
+
// Returning an error message string here will block the installation request or settings update request by the user installing the app
|
|
7
|
+
|
|
8
|
+
if(!installSettings) return null;
|
|
9
|
+
|
|
10
|
+
if(installSettings.exampleInstallSetting2 && installSettings.exampleInstallSetting2 < 2) return 'Example install setting 2 must be greater than 2';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
return null;
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@example-org-name/example-app-name-server-azurefunc",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Seeka Azure Serverless function app example-app-name",
|
|
5
5
|
"author": "Seeka <administrator@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@opentelemetry/winston-transport": "^0",
|
|
41
41
|
"@redis/client": "^5",
|
|
42
42
|
"@redis/json": "^5",
|
|
43
|
-
"@seeka-labs/sdk-apps-core": "
|
|
44
|
-
"@seeka-labs/sdk-apps-server": "
|
|
45
|
-
"@seeka-labs/sdk-apps-server-host": "
|
|
46
|
-
"@seeka-labs/sdk-apps-server-telemetry-core": "
|
|
47
|
-
"@seeka-labs/sdk-apps-server-telemetry-logging": "
|
|
43
|
+
"@seeka-labs/sdk-apps-core": "../../../workspace:* || ^3",
|
|
44
|
+
"@seeka-labs/sdk-apps-server": "../../../workspace:* || ^3",
|
|
45
|
+
"@seeka-labs/sdk-apps-server-host": "../../../workspace:* || ^3",
|
|
46
|
+
"@seeka-labs/sdk-apps-server-telemetry-core": "../../../workspace:* || ^3",
|
|
47
|
+
"@seeka-labs/sdk-apps-server-telemetry-logging": "../../../workspace:* || ^3",
|
|
48
48
|
"axios": "^1",
|
|
49
49
|
"jsonwebtoken": "^9",
|
|
50
50
|
"lodash-es": "^4",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ExampleAppAppInstallState } from "@example-org-name/example-app-name-lib";
|
|
2
|
-
import {getInstallationSettings} from "./routes/getInstallationSettings";
|
|
3
|
-
import {setInstallationSettings} from "./routes/setInstallationSettings";
|
|
4
|
-
import { SeekaAppInstallContext } from "@seeka-labs/sdk-apps-core";
|
|
5
|
-
import { Logger } from "winston";
|
|
6
|
-
import { AppUiHttpRequestResponse, HttpMethod } from "@seeka-labs/sdk-apps-server-host";
|
|
7
|
-
import {HttpRequest, InvocationContext} from "@azure/functions";
|
|
8
|
-
|
|
9
|
-
export const apiRouteHandler = async (req: HttpRequest, context: InvocationContext, requestedPath: string, requestedMethod: HttpMethod, installation: SeekaAppInstallContext<ExampleAppAppInstallState>, logger: Logger ): Promise<AppUiHttpRequestResponse | null> => {
|
|
10
|
-
if (requestedPath === '/api/settings' && requestedMethod === 'GET') return await getInstallationSettings(installation, req, context, logger);
|
|
11
|
-
if (requestedPath === '/api/settings' && requestedMethod === 'POST') return await setInstallationSettings(installation, req, context, logger);
|
|
12
|
-
|
|
13
|
-
return null;
|
|
1
|
+
import { ExampleAppAppInstallState } from "@example-org-name/example-app-name-lib";
|
|
2
|
+
import {getInstallationSettings} from "./routes/getInstallationSettings";
|
|
3
|
+
import {setInstallationSettings} from "./routes/setInstallationSettings";
|
|
4
|
+
import { SeekaAppInstallContext } from "@seeka-labs/sdk-apps-core";
|
|
5
|
+
import { Logger } from "winston";
|
|
6
|
+
import { AppUiHttpRequestResponse, HttpMethod } from "@seeka-labs/sdk-apps-server-host";
|
|
7
|
+
import {HttpRequest, InvocationContext} from "@azure/functions";
|
|
8
|
+
|
|
9
|
+
export const apiRouteHandler = async (req: HttpRequest, context: InvocationContext, requestedPath: string, requestedMethod: HttpMethod, installation: SeekaAppInstallContext<ExampleAppAppInstallState>, logger: Logger ): Promise<AppUiHttpRequestResponse | null> => {
|
|
10
|
+
if (requestedPath === '/api/settings' && requestedMethod === 'GET') return await getInstallationSettings(installation, req, context, logger);
|
|
11
|
+
if (requestedPath === '/api/settings' && requestedMethod === 'POST') return await setInstallationSettings(installation, req, context, logger);
|
|
12
|
+
|
|
13
|
+
return null;
|
|
14
14
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {SeekaActivityAcceptedWebhookContent} from "@seeka-labs/sdk-apps-server";
|
|
3
|
-
import { BackgroundJobRequestContext } from "@seeka-labs/sdk-apps-server-host";
|
|
4
|
-
|
|
5
|
-
export type TrackExampleAppActivityQueueItem = BackgroundJobRequestContext<TrackSeekaExampleAppActivityPayload> & {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type TrackSeekaExampleAppActivityPayload = {
|
|
10
|
-
seekaActivity: SeekaActivityAcceptedWebhookContent
|
|
11
|
-
}
|
|
12
|
-
|
|
1
|
+
|
|
2
|
+
import {SeekaActivityAcceptedWebhookContent} from "@seeka-labs/sdk-apps-server";
|
|
3
|
+
import { BackgroundJobRequestContext } from "@seeka-labs/sdk-apps-server-host";
|
|
4
|
+
|
|
5
|
+
export type TrackExampleAppActivityQueueItem = BackgroundJobRequestContext<TrackSeekaExampleAppActivityPayload> & {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export type TrackSeekaExampleAppActivityPayload = {
|
|
10
|
+
seekaActivity: SeekaActivityAcceptedWebhookContent
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
import {Logger} from "winston";
|
|
3
|
-
import {TrackSeekaExampleAppActivityPayload} from "../models";
|
|
4
|
-
import {SeekaAppInstallContext} from "@seeka-labs/sdk-apps-core";
|
|
5
|
-
|
|
6
|
-
export const sendActivityToAnotherSoftware = async (payload: TrackSeekaExampleAppActivityPayload, installation: SeekaAppInstallContext<any>, causationId: string, correlationId: string, logger: Logger): Promise<void> => {
|
|
7
|
-
// Anything
|
|
8
|
-
}
|
|
1
|
+
|
|
2
|
+
import {Logger} from "winston";
|
|
3
|
+
import {TrackSeekaExampleAppActivityPayload} from "../models";
|
|
4
|
+
import {SeekaAppInstallContext} from "@seeka-labs/sdk-apps-core";
|
|
5
|
+
|
|
6
|
+
export const sendActivityToAnotherSoftware = async (payload: TrackSeekaExampleAppActivityPayload, installation: SeekaAppInstallContext<any>, causationId: string, correlationId: string, logger: Logger): Promise<void> => {
|
|
7
|
+
// Anything
|
|
8
|
+
}
|
|
@@ -38,7 +38,7 @@ export async function ui(req: HttpRequest, context: InvocationContext): Promise<
|
|
|
38
38
|
|
|
39
39
|
return {
|
|
40
40
|
status: res.status,
|
|
41
|
-
headers: res.headers,
|
|
41
|
+
headers: res.headers as HeadersInit,
|
|
42
42
|
cookies: res.cookies,
|
|
43
43
|
body: res.body as HttpResponseInit['body'],
|
|
44
44
|
jsonBody: res.jsonBody
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@example-org-name/example-app-name-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Seeka app UI for example-app-name",
|
|
5
5
|
"author": "Seeka <administrator@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@mui/system": "^7",
|
|
19
19
|
"@reduxjs/toolkit": "^2",
|
|
20
20
|
"@seeka-labs/converge": "^1",
|
|
21
|
-
"@seeka-labs/sdk-apps-core": "
|
|
22
|
-
"@seeka-labs/sdk-apps-react": "
|
|
21
|
+
"@seeka-labs/sdk-apps-core": "../../../workspace:* || ^3",
|
|
22
|
+
"@seeka-labs/sdk-apps-react": "../../../workspace:* || ^3",
|
|
23
23
|
"lodash-es": "^4",
|
|
24
24
|
"material-ui-confirm": "^4",
|
|
25
25
|
"notistack": "^3",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeka-labs/cli-apps",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"description": "Seeka - Apps CLI",
|
|
5
5
|
"author": "SEEKA <platform@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"ts-jest": "^29",
|
|
57
57
|
"typescript": "^5"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "7bdfa73d8fd888cf89d5469f161dd4109172f39a"
|
|
60
60
|
}
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Seeka Apps CLI
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
PORT=3000
|
|
2
|
-
EXTEND_ESLINT=TRUE
|
|
3
|
-
REACT_APP_RELEASE_TAG=dev
|
|
4
|
-
VITE_BASE_URL=/app/
|
|
5
|
-
VITE_URLS_SEEKA_API_CORE= https://api-localdev-env0-seeka.au.ngrok.io
|
|
6
|
-
VITE_URLS_SEEKA_APP_CORE_ORIGIN=https://localhost:4200
|
|
7
|
-
|
|
8
|
-
PROD_VITE_URLS_SEEKA_API_CORE=https://api.seeka.services
|
|
9
|
-
PROD_VITE_URLS_SEEKA_APP_CORE_ORIGIN=https://seeka.app
|
|
File without changes
|