@kuriousdesign/machine-sdk 1.0.97 → 1.0.102

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.
@@ -1,3 +1,4 @@
1
+ # .github/workflows/publish.yml
1
2
  name: Publish Package
2
3
 
3
4
  on:
@@ -6,7 +7,6 @@ on:
6
7
  - master
7
8
 
8
9
  permissions:
9
- id-token: write # Required for OIDC
10
10
  contents: read
11
11
 
12
12
  jobs:
@@ -20,9 +20,10 @@ jobs:
20
20
  node-version: '22'
21
21
  registry-url: 'https://registry.npmjs.org'
22
22
 
23
- # Ensure npm 11.5.1 or later is installed
24
- - name: Update npm
25
- run: npm install -g npm@latest
26
23
  - run: npm ci
27
24
  - run: npm run build --if-present
28
- - run: npm publish
25
+
26
+ - name: Publish
27
+ run: npm publish --access public
28
+ env:
29
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -6,3 +6,9 @@ export declare enum BridgeCmds {
6
6
  export interface BridgeData {
7
7
  connectedClients: number[];
8
8
  }
9
+ export interface KioskControlData {
10
+ controlMode?: string;
11
+ isControlled?: boolean;
12
+ allowedKioskIds?: string[];
13
+ }
14
+ export declare const initialKioskControlData: KioskControlData;
@@ -1,9 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BridgeCmds = void 0;
3
+ exports.initialKioskControlData = exports.BridgeCmds = void 0;
4
4
  var BridgeCmds;
5
5
  (function (BridgeCmds) {
6
6
  BridgeCmds[BridgeCmds["NONE"] = 1] = "NONE";
7
7
  BridgeCmds[BridgeCmds["CONNECT"] = 2] = "CONNECT";
8
8
  BridgeCmds[BridgeCmds["DISCONNECT"] = 3] = "DISCONNECT";
9
9
  })(BridgeCmds || (exports.BridgeCmds = BridgeCmds = {}));
10
+ exports.initialKioskControlData = {
11
+ controlMode: "kiosk",
12
+ isControlled: false,
13
+ allowedKioskIds: [],
14
+ };
@@ -5,6 +5,7 @@ export interface TopicData {
5
5
  export declare const MqttTopics: {
6
6
  readonly BRIDGE_STATUS: "bridge/status";
7
7
  readonly BRIDGE_CMD: "bridge/cmd";
8
+ readonly KIOSK_CONTROL: "bridge/control";
8
9
  readonly DEVICE_MAP: "deviceMap";
9
10
  readonly HMI_ACTION_REQ: "hmi/action_req";
10
11
  readonly EXT_SERVICE: "ext_service";
@@ -4,6 +4,7 @@ exports.MqttTopics = void 0;
4
4
  exports.MqttTopics = {
5
5
  BRIDGE_STATUS: 'bridge/status',
6
6
  BRIDGE_CMD: 'bridge/cmd',
7
+ KIOSK_CONTROL: 'bridge/control',
7
8
  DEVICE_MAP: 'deviceMap',
8
9
  HMI_ACTION_REQ: 'hmi/action_req',
9
10
  EXT_SERVICE: 'ext_service',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.97",
3
+ "version": "1.0.102",
4
4
  "description": "Shared data types and helpers for machine-related repositories",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6,4 +6,16 @@ export enum BridgeCmds {
6
6
 
7
7
  export interface BridgeData {
8
8
  connectedClients: number[];
9
- }
9
+ }
10
+
11
+ export interface KioskControlData {
12
+ controlMode?: string;
13
+ isControlled?: boolean;
14
+ allowedKioskIds?: string[];
15
+ }
16
+
17
+ export const initialKioskControlData: KioskControlData = {
18
+ controlMode: "kiosk",
19
+ isControlled: false,
20
+ allowedKioskIds: [],
21
+ };
@@ -6,6 +6,7 @@ export interface TopicData {
6
6
  export const MqttTopics = {
7
7
  BRIDGE_STATUS: 'bridge/status',
8
8
  BRIDGE_CMD: 'bridge/cmd',
9
+ KIOSK_CONTROL: 'bridge/control',
9
10
  DEVICE_MAP: 'deviceMap',
10
11
  HMI_ACTION_REQ: 'hmi/action_req',
11
12
  EXT_SERVICE: 'ext_service',