@kuriousdesign/machine-sdk 1.0.72 → 1.0.74

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.
@@ -90,8 +90,8 @@ export interface Device {
90
90
  script: ProcessData;
91
91
  connectionStatus: boolean;
92
92
  apiOpcua: ApiOpcuaData;
93
- log: DeviceLogData;
94
- sts: unknown;
93
+ log?: DeviceLogData;
94
+ sts?: unknown;
95
95
  }
96
96
  export declare const initialSts: unknown;
97
97
  export declare const initialDevice: Device;
@@ -20,7 +20,6 @@ export declare const DeviceTags: {
20
20
  Is: string;
21
21
  Errors: string;
22
22
  Warnings: string;
23
- Log: string;
24
23
  ExecMethod: string;
25
24
  Task: string;
26
25
  Process: string;
@@ -28,6 +27,8 @@ export declare const DeviceTags: {
28
27
  Registration: string;
29
28
  ApiOpcuaHmiReq: string;
30
29
  ApiOpcuaHmiResp: string;
30
+ ApiOpcuaPlcReq: string;
31
+ ApiOpcuaPlcResp: string;
31
32
  };
32
33
  export * from "./opcua";
33
34
  export * from "./mqtt";
@@ -39,8 +39,6 @@ exports.DeviceTags = {
39
39
  Is: 'Is',
40
40
  Errors: 'Errors',
41
41
  Warnings: 'Warnings',
42
- Log: 'Log',
43
- //ConnectionStatus: 'ConnectionStatus',
44
42
  ExecMethod: 'ExecMethod',
45
43
  Task: 'Task',
46
44
  Process: 'Process',
@@ -48,6 +46,8 @@ exports.DeviceTags = {
48
46
  Registration: 'Registration',
49
47
  ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
50
48
  ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
49
+ ApiOpcuaPlcReq: 'ApiOpcua.InternalReq',
50
+ ApiOpcuaPlcResp: 'ApiOpcua.InternalResp',
51
51
  };
52
52
  __exportStar(require("./opcua"), exports);
53
53
  __exportStar(require("./mqtt"), exports);
@@ -6,4 +6,5 @@ export declare const MqttTopics: {
6
6
  readonly BRIDGE_STATUS: "bridge/status";
7
7
  readonly BRIDGE_CMD: "bridge/cmd";
8
8
  readonly DEVICE_MAP: "deviceMap";
9
+ readonly HMI_ACTION_REQ: "hmi/action_req";
9
10
  };
@@ -5,4 +5,5 @@ exports.MqttTopics = {
5
5
  BRIDGE_STATUS: 'bridge/status',
6
6
  BRIDGE_CMD: 'bridge/cmd',
7
7
  DEVICE_MAP: 'deviceMap',
8
+ HMI_ACTION_REQ: 'hmi/action_req',
8
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
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",
@@ -191,9 +191,9 @@ export interface Device {
191
191
 
192
192
  //ignore--instantsrequests: Array<DeviceActionRequestData>; //this can be written to outside of the device fb;
193
193
  apiOpcua: ApiOpcuaData;
194
- log: DeviceLogData;
194
+ log?: DeviceLogData; //this is taken from machine.deviceLogs[device.id]
195
195
  //ignore--instantsudp: UdpData;
196
- sts: unknown; // device specific status structure
196
+ sts?: unknown; // this is take from Machine.<MEM>Sts
197
197
  }
198
198
 
199
199
  export const initialSts: unknown = null;
@@ -24,8 +24,6 @@ export const DeviceTags = {
24
24
  Is: 'Is',
25
25
  Errors: 'Errors',
26
26
  Warnings: 'Warnings',
27
- Log: 'Log',
28
- //ConnectionStatus: 'ConnectionStatus',
29
27
  ExecMethod: 'ExecMethod',
30
28
  Task: 'Task',
31
29
  Process: 'Process',
@@ -33,6 +31,8 @@ export const DeviceTags = {
33
31
  Registration: 'Registration',
34
32
  ApiOpcuaHmiReq: 'ApiOpcua.HmiReq',
35
33
  ApiOpcuaHmiResp: 'ApiOpcua.HmiResp',
34
+ ApiOpcuaPlcReq: 'ApiOpcua.InternalReq',
35
+ ApiOpcuaPlcResp: 'ApiOpcua.InternalResp',
36
36
  }
37
37
 
38
38
  export * from "./opcua";
@@ -7,4 +7,5 @@ export const MqttTopics = {
7
7
  BRIDGE_STATUS: 'bridge/status',
8
8
  BRIDGE_CMD: 'bridge/cmd',
9
9
  DEVICE_MAP: 'deviceMap',
10
+ HMI_ACTION_REQ: 'hmi/action_req',
10
11
  } as const;