@kuriousdesign/machine-sdk 1.0.97 → 1.0.103
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/.github/workflows/publish.yml +6 -5
- package/dist/custom-types/Bridge.d.ts +6 -0
- package/dist/custom-types/Bridge.js +6 -1
- package/dist/plc-tags/mqtt.d.ts +1 -0
- package/dist/plc-tags/mqtt.js +1 -0
- package/package.json +10 -1
- package/src/custom-types/Bridge.ts +13 -1
- package/src/plc-tags/mqtt.ts +1 -0
|
@@ -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
|
-
|
|
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
|
+
};
|
package/dist/plc-tags/mqtt.d.ts
CHANGED
|
@@ -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";
|
package/dist/plc-tags/mqtt.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kuriousdesign/machine-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.103",
|
|
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",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc && copyfiles -u 1 \"styles/**/*\" dist/styles",
|
|
9
|
+
"prepublishOnly": "npm run build",
|
|
10
|
+
"publish:npm": "npm publish",
|
|
11
|
+
"release:patch": "npm version patch && npm publish",
|
|
12
|
+
"release:minor": "npm version minor && npm publish",
|
|
13
|
+
"release:major": "npm version major && npm publish",
|
|
9
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
15
|
},
|
|
11
16
|
"keywords": [
|
|
@@ -20,6 +25,10 @@
|
|
|
20
25
|
"copyfiles": "^2.4.1",
|
|
21
26
|
"typescript": "^5.9.3"
|
|
22
27
|
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public",
|
|
30
|
+
"registry": "https://registry.npmjs.org/"
|
|
31
|
+
},
|
|
23
32
|
"repository": {
|
|
24
33
|
"type": "git",
|
|
25
34
|
"url": "git+https://github.com/kuriousDesign/machine-sdk.git"
|
|
@@ -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
|
+
};
|
package/src/plc-tags/mqtt.ts
CHANGED