@seeka-labs/cli-apps 3.4.4 → 3.5.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.
@@ -0,0 +1,21 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8"/>
6
+ <link rel="icon" href="/app/favicon.ico"/>
7
+ <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
8
+ <title>Seeka ExampleApp</title>
9
+ <!-- Fonts to support Material Design -->
10
+ <link rel="preconnect" href="https://fonts.googleapis.com"/>
11
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin/>
12
+ <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet"/>
13
+ <script src="/app/config.js?c=20260114175956"></script>
14
+ <script type="module" crossorigin src="/app/assets/index-CnKYrwj-.js"></script>
15
+ </head>
16
+ <body>
17
+ <noscript>You need to enable JavaScript to run this app.</noscript>
18
+ <div id="root"></div>
19
+ </body>
20
+
21
+ </html>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@example-org-name/example-app-name-server-azurefunc",
3
- "version": "3.4.4",
3
+ "version": "3.5.1",
4
4
  "description": "Seeka Azure Serverless function app example-app-name",
5
5
  "author": "Seeka <administrator@seeka.co>",
6
6
  "license": "MIT",
@@ -13,9 +13,9 @@
13
13
  "lint": "eslint",
14
14
  "typecheck": "tsc --noEmit",
15
15
  "build": "tsc",
16
- "watch": "yarn clean && tsc -w",
16
+ "watch": "tsc -w",
17
17
  "clean": "rimraf dist",
18
- "prestart": "yarn clean && yarn build",
18
+ "prestart": "yarn build",
19
19
  "dev": "func start --port 7072",
20
20
  "tunnel": "ngrok http 7072 --hostname=seeka-app-example-app-name-localdev.au.ngrok.io --region au --log=stdout --log-format=term",
21
21
  "deploy": "func azure functionapp publish example-app-name --no-build --javascript",
@@ -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 {ExampleAppAppInstallContext, 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: ExampleAppAppInstallContext, 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
+ }
@@ -1,5 +1,9 @@
1
1
  import {app, HttpRequest, HttpResponseInit, InvocationContext} from '@azure/functions';
2
- import { ExampleAppAppInstallState, ExampleAppAppUiClientInitState } from "@example-org-name/example-app-name-lib";
2
+ import {
3
+ ExampleAppAppInstallContext,
4
+ ExampleAppAppInstallState,
5
+ ExampleAppAppUiClientInitState
6
+ } from "@example-org-name/example-app-name-lib";
3
7
  import { SeekaAppInstallContext } from "@seeka-labs/sdk-apps-core";
4
8
 
5
9
  import { generateAppUiHttpRequestResponse, HttpMethod} from '@seeka-labs/sdk-apps-server-host';
@@ -16,7 +20,7 @@ app.http('ui', {
16
20
 
17
21
  // Function to serve the React app under /app
18
22
  export async function ui(req: HttpRequest, context: InvocationContext): Promise<HttpResponseInit> {
19
- const createBrowserInitState = async (installation: SeekaAppInstallContext<ExampleAppAppInstallState>, logger: Logger ): Promise<ExampleAppAppUiClientInitState> => {
23
+ const createBrowserInitState = async (installation: ExampleAppAppInstallContext, logger: Logger ): Promise<ExampleAppAppUiClientInitState> => {
20
24
  // Under no circumstances should internal or private api keys be exposed to the client/browser via the below object
21
25
  // Below state will be passed in plain text to the UI app, important to be selective (no spread operators on installation state)
22
26
  // and not expose any internal or private api keys to the client/browser
@@ -0,0 +1,7 @@
1
+ PORT=3000
2
+ EXTEND_ESLINT=TRUE
3
+ REACT_APP_RELEASE_TAG=dev
4
+ VITE_BASE_URL=/app/
5
+
6
+ PROD_VITE_URLS_SEEKA_API_CORE=https://api.seeka.services
7
+ PROD_VITE_URLS_SEEKA_APP_CORE_ORIGIN=https://seeka.app
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@example-org-name/example-app-name-ui",
3
- "version": "3.4.4",
3
+ "version": "3.5.1",
4
4
  "description": "Seeka app UI for example-app-name",
5
5
  "author": "Seeka <administrator@seeka.co>",
6
6
  "license": "MIT",
@@ -5,31 +5,38 @@
5
5
  "app/*"
6
6
  ],
7
7
  "scripts": {
8
- "build": "yarn workspace @example-org-name/example-app-name-lib run build && yarn workspace @example-org-name/example-app-name-browser run build && yarn workspace @example-org-name/example-app-name-ui run build && yarn workspace @example-org-name/example-app-name-server run build",
8
+ "start:server": "yarn dev:lib && yarn start:server:parallel",
9
+ "start:server:parallel": "concurrently -k --names \"server,browser,watch-server,tunnel\" \"yarn dev:server\" \"yarn dev:browser\" \"yarn watch:server\" \"yarn tunnel\"",
10
+ "start:all": "yarn dev:lib && yarn start:all:parallel",
11
+ "start:all:parallel": "concurrently -k --names \"ui,server,browser,watch-server,tunnel\" \"yarn dev:ui\" \"yarn dev:server\" \"yarn dev:browser\" \"yarn watch:server\" \"yarn tunnel\"",
12
+ "build": "yarn workspace @example-org-name/example-app-name-lib run build && yarn workspace @example-org-name/example-app-name-browser run build && yarn workspace @example-org-name/example-app-name-ui run build && yarn workspace @example-org-name/example-app-name-server-azurefunc run build",
9
13
  "typecheck": "yarn workspaces foreach -pt --all run typecheck",
10
14
  "lint": "yarn workspaces foreach --all -pt run lint",
11
15
  "build:lib": "yarn workspace @example-org-name/example-app-name-lib run build",
12
16
  "build:browser": "yarn workspace @example-org-name/example-app-name-browser run build",
13
17
  "build:server:azurefunc": "yarn workspace @example-org-name/example-app-name-server-azurefunc run build",
14
18
  "build:ui:test": "VITE_BASE_URL=/app/ yarn workspace @example-org-name/example-app-name-ui run build",
15
- "dev": "yarn workspace @example-org-name/example-app-name-lib run dev && yarn workspace @example-org-name/example-app-name-server run build && yarn workspace @example-org-name/example-app-name-browser run watch",
16
- "dev:init": "yarn workspace @example-org-name/example-app-name-server run dev:queue:create",
19
+ "dev:lib": "yarn workspace @example-org-name/example-app-name-lib run dev",
20
+ "dev:browser": "yarn workspace @example-org-name/example-app-name-browser run watch",
21
+ "dev": "yarn workspace @example-org-name/example-app-name-lib run dev && yarn workspace @example-org-name/example-app-name-server-azurefunc run build && yarn workspace @example-org-name/example-app-name-browser run watch",
22
+ "dev:init": "yarn workspace @example-org-name/example-app-name-server-azurefunc run dev:queue:create",
17
23
  "dev:ui": "yarn workspace @example-org-name/example-app-name-ui run build:dev",
18
- "dev:server": "yarn workspace @example-org-name/example-app-name-server run build && yarn workspace @example-org-name/example-app-name-server run dev",
19
- "watch:server": "yarn workspace @example-org-name/example-app-name-server run build && yarn workspace @example-org-name/example-app-name-server run watch",
20
- "deploy": "yarn clean && VITE_RELEASE_TAG=localdevbuild VITE_BASE_URL=/example-app-name-app/ VITE_URLS_SEEKA_API_CORE=https://api.seeka.services VITE_URLS_SEEKA_APP_CORE_ORIGIN=https://seeka.app yarn build && yarn workspace @example-org-name/example-app-name-server run deploy",
21
- "tunnel": "yarn workspace @example-org-name/example-app-name-server run tunnel",
24
+ "dev:server": "yarn workspace @example-org-name/example-app-name-server-azurefunc run build && yarn workspace @example-org-name/example-app-name-server-azurefunc run dev",
25
+ "watch:server": "yarn workspace @example-org-name/example-app-name-server-azurefunc run build && yarn workspace @example-org-name/example-app-name-server-azurefunc run watch",
26
+ "deploy": "VITE_RELEASE_TAG=localdevbuild VITE_BASE_URL=/example-app-name-app/ VITE_URLS_SEEKA_API_CORE=https://api.seeka.services VITE_URLS_SEEKA_APP_CORE_ORIGIN=https://seeka.app yarn build && yarn workspace @example-org-name/example-app-name-server-azurefunc run deploy",
27
+ "tunnel": "yarn workspace @example-org-name/example-app-name-server-azurefunc run tunnel",
22
28
  "bump:patch": "yarn git:isclean && yarn workspaces foreach --all version patch --deferred && yarn bump:apply && yarn git:push",
23
29
  "bump:minor": "yarn git:isclean && yarn workspaces foreach --all version minor --deferred && yarn bump:apply && yarn git:push",
24
30
  "bump:major": "yarn git:isclean && yarn workspaces foreach --all version major --deferred && yarn bump:apply && yarn git:push",
25
31
  "bump:apply": "yarn version apply --all",
26
32
  "git:isclean": "bash -c 'if [ -n \"$(git status --porcelain)\" ]; then echo \"✖ Working directory not clean. Commit or stash your changes first.\"; exit 1; fi'",
27
33
  "git:push": "git add -A && git commit -m \"v$(node -p \"require('./package.json').version\")\" && git tag -a v$(node -p \"require('./package.json').version\") -m \"v$(node -p \"require('./package.json').version\")\"",
28
- "clean": "yarn workspaces foreach --all -pt run clean",
29
- "clean:all": "yarn clean && rimraf ./app/**/node_modules",
34
+ "clean": "yarn workspaces foreach --all -pt --include '@example-org-name/example-app-name-*' run clean",
35
+ "clean:all": "rimraf ./app/**/node_modules",
30
36
  "dev:kill": "taskkill /f /t /im node.exe"
31
37
  },
32
38
  "devDependencies": {
39
+ "concurrently": "^9",
33
40
  "rimraf": "^6"
34
41
  },
35
42
  "packageManager": "yarn@4.11.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seeka-labs/cli-apps",
3
- "version": "3.4.4",
3
+ "version": "3.5.1",
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": "7bdfa73d8fd888cf89d5469f161dd4109172f39a"
62
+ "gitHead": "5a9a6e8af1d1067bfc678a42b18f1fc25a86fe9d"
63
63
  }