@seeka-labs/cli-apps 3.5.8 → 3.6.2
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/init-template/app/browser/package.json +1 -1
- package/dist/init-template/app/lib/package.json +1 -1
- package/dist/init-template/app/lib/src/validation/index.ts +13 -13
- package/dist/init-template/app/server-azurefunc/local.settings.template.json +1 -1
- package/dist/init-template/app/server-azurefunc/package.json +1 -1
- package/dist/init-template/app/server-azurefunc/scripts/build.mjs +7 -2
- 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/ui/package.json +1 -1
- package/package.json +2 -2
- package/README.md +0 -1
- package/dist/init-template/app/ui/.env +0 -7
|
@@ -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
|
}
|
|
@@ -44,9 +44,14 @@ const buildOptions = {
|
|
|
44
44
|
'jsonwebtoken',
|
|
45
45
|
'lodash-es',
|
|
46
46
|
'yup',
|
|
47
|
+
'axios',
|
|
48
|
+
// Seeka packages - keep external to share state across functions
|
|
49
|
+
'@seeka-labs/sdk-apps-core',
|
|
50
|
+
'@seeka-labs/sdk-apps-server',
|
|
51
|
+
'@seeka-labs/sdk-apps-server-host',
|
|
52
|
+
'@seeka-labs/sdk-apps-server-telemetry-logging'
|
|
47
53
|
],
|
|
48
|
-
|
|
49
|
-
// This resolves the ESM/CJS interop issues
|
|
54
|
+
|
|
50
55
|
mainFields: ['module', 'main'],
|
|
51
56
|
conditions: ['import', 'require', 'node'],
|
|
52
57
|
logLevel: 'info',
|
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seeka-labs/cli-apps",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"description": "Seeka - Apps CLI",
|
|
5
5
|
"author": "SEEKA <platform@seeka.co>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"ts-jest": "^29",
|
|
60
60
|
"typescript": "^5"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "3aa0bd466970af3f74277e836751818e829ca77b"
|
|
63
63
|
}
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Seeka Apps CLI
|