@vention/machine-logic-ui-sdk 0.17.0 → 0.19.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vention/machine-logic-ui-sdk",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/VentionCo/machine-cloud.git"
@@ -1,6 +1,6 @@
1
1
  export declare enum MqttSandingTopics {
2
2
  SET_APP_STATE = "sandingMachineApp/setAppState",
3
- CALIBRATE = "sandingMachineApp/calibrate",
3
+ STATION_CALIBRATION_STATE = "sandingMachineApp/state/stationCalibration",
4
4
  STATE_APP = "sandingMachineApp/state/app",
5
5
  STATE_ROBOT = "sandingMachineApp/state/robot",
6
6
  STATE_STATION = "sandingMachineApp/state/station",
@@ -9,12 +9,18 @@ export declare enum MqttSandingTopics {
9
9
  GET_INITIAL_STATE = "sandingMachineApp/getInitialState",
10
10
  NOTIFICATION_MESSAGES = "sandingMachineApp/notification/messages"
11
11
  }
12
- export type SandingApplicationState = "STOP" | "START" | "HOME" | "FREEDRIVE" | "STOPPING" | "FAULT" | "CALIBRATING";
12
+ export type SandingApplicationState = "STOP" | "START" | "HOME" | "FREEDRIVE" | "STOPPING" | "FAULT" | "CALIBRATING_LASER" | "CALIBRATING_STATION";
13
13
  export type SandingRobotState = "FAULT" | "READY";
14
14
  type MqttSetAppStatePayload = {
15
15
  state: SandingApplicationState;
16
16
  };
17
- type MqttCalibratePayload = object;
17
+ export type StationCalibrationState = "completed" | "calibrating" | "incomplete";
18
+ export type MqttStationCalibrationStatePayload = {
19
+ station1: StationCalibrationState;
20
+ station2: StationCalibrationState;
21
+ station3: StationCalibrationState;
22
+ station4: StationCalibrationState;
23
+ };
18
24
  type MqttRobotStatePayload = {
19
25
  state: SandingRobotState;
20
26
  };
@@ -44,7 +50,7 @@ export type MqttNotificationPayload = {
44
50
  };
45
51
  type MqttPayloadMapping = {
46
52
  [MqttSandingTopics.SET_APP_STATE]: MqttSetAppStatePayload;
47
- [MqttSandingTopics.CALIBRATE]: MqttCalibratePayload;
53
+ [MqttSandingTopics.STATION_CALIBRATION_STATE]: MqttStationCalibrationStatePayload;
48
54
  [MqttSandingTopics.STATE_APP]: MqttSetAppStatePayload;
49
55
  [MqttSandingTopics.STATE_ROBOT]: MqttRobotStatePayload;
50
56
  [MqttSandingTopics.STATE_STATION]: MqttStationStatePayload;
@@ -5,3 +5,4 @@ export declare const getExecutionEngineHttpUrl: () => string;
5
5
  export declare const getMqttWsUrl: () => Promise<string>;
6
6
  export declare const connectToMqttAndGetClient: () => Promise<MqttClient>;
7
7
  export declare const getMachineCodeProcessHttpUrl: (processName: string) => string;
8
+ export declare const getMqttWsUrlGivenUiIframeUrl: (uiIframeUrl: string) => string;