@kuriousdesign/machine-sdk 1.0.58 → 1.0.60

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.
@@ -18,7 +18,7 @@ export interface DeviceRegistration {
18
18
  childIdArray: number[];
19
19
  parentId: number;
20
20
  deviceType: DeviceTypes;
21
- devicePath?: string;
21
+ devicePath?: string[];
22
22
  }
23
23
  export declare const initialDeviceRegistration: DeviceRegistration;
24
24
  export interface DeviceCfg {
@@ -21,7 +21,7 @@ exports.initialDeviceRegistration = {
21
21
  childIdArray: [],
22
22
  parentId: 0,
23
23
  deviceType: DeviceTypes_1.DeviceTypes.Base, // Assuming Unknown exists in DeviceTypes enum
24
- devicePath: ''
24
+ devicePath: []
25
25
  };
26
26
  exports.initialDeviceCfg = {
27
27
  safetyZoneId: 0,
@@ -1,10 +0,0 @@
1
- export declare enum ConMethods {
2
- NONE = 0,
3
- UDPATE_PART = 1,
4
- TRANSFER_PART = 2,
5
- CONFIRM_PARTS_LOADED = 3,
6
- CONFIRM_PARTS_UNLOADED = 4,
7
- CLEAR_ALL_FIXTURE_PARTS = 5,
8
- LOAD_ALL_FIXTURE_PARTS_RAW = 6
9
- }
10
- export declare function conMethodToString(method: ConMethods): string;
@@ -12,36 +12,3 @@
12
12
  // LOAD_ALL_FIXTURE_PARTS_RAW :=6
13
13
  // );
14
14
  // END_TYPE
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ConMethods = void 0;
17
- exports.conMethodToString = conMethodToString;
18
- var ConMethods;
19
- (function (ConMethods) {
20
- ConMethods[ConMethods["NONE"] = 0] = "NONE";
21
- ConMethods[ConMethods["UDPATE_PART"] = 1] = "UDPATE_PART";
22
- ConMethods[ConMethods["TRANSFER_PART"] = 2] = "TRANSFER_PART";
23
- ConMethods[ConMethods["CONFIRM_PARTS_LOADED"] = 3] = "CONFIRM_PARTS_LOADED";
24
- ConMethods[ConMethods["CONFIRM_PARTS_UNLOADED"] = 4] = "CONFIRM_PARTS_UNLOADED";
25
- ConMethods[ConMethods["CLEAR_ALL_FIXTURE_PARTS"] = 5] = "CLEAR_ALL_FIXTURE_PARTS";
26
- ConMethods[ConMethods["LOAD_ALL_FIXTURE_PARTS_RAW"] = 6] = "LOAD_ALL_FIXTURE_PARTS_RAW";
27
- })(ConMethods || (exports.ConMethods = ConMethods = {}));
28
- function conMethodToString(method) {
29
- switch (method) {
30
- case ConMethods.NONE:
31
- return "NONE";
32
- case ConMethods.UDPATE_PART:
33
- return "UPDATE_PART";
34
- case ConMethods.TRANSFER_PART:
35
- return "TRANSFER_PART";
36
- case ConMethods.CONFIRM_PARTS_LOADED:
37
- return "CONFIRM_PARTS_LOADED";
38
- case ConMethods.CONFIRM_PARTS_UNLOADED:
39
- return "CONFIRM_PARTS_UNLOADED";
40
- case ConMethods.CLEAR_ALL_FIXTURE_PARTS:
41
- return "CLEAR_ALL_FIXTURE_PARTS";
42
- case ConMethods.LOAD_ALL_FIXTURE_PARTS_RAW:
43
- return "LOAD_ALL_FIXTURE_PARTS_RAW";
44
- default:
45
- return "UNKNOWN_METHOD";
46
- }
47
- }
@@ -8,6 +8,7 @@ export declare enum DeviceTypes {
8
8
  Machine = 7,
9
9
  Robot = 8,
10
10
  Vision = 10,
11
- TwoPos = 11
11
+ TwoPos = 11,
12
+ TwoPosGantry = 12
12
13
  }
13
14
  export declare function deviceTypeToString(deviceType: DeviceTypes): string;
@@ -31,6 +31,7 @@ var DeviceTypes;
31
31
  DeviceTypes[DeviceTypes["Robot"] = 8] = "Robot";
32
32
  DeviceTypes[DeviceTypes["Vision"] = 10] = "Vision";
33
33
  DeviceTypes[DeviceTypes["TwoPos"] = 11] = "TwoPos";
34
+ DeviceTypes[DeviceTypes["TwoPosGantry"] = 12] = "TwoPosGantry";
34
35
  })(DeviceTypes || (exports.DeviceTypes = DeviceTypes = {}));
35
36
  function deviceTypeToString(deviceType) {
36
37
  switch (deviceType) {
@@ -54,6 +55,7 @@ function deviceTypeToString(deviceType) {
54
55
  return 'Vision';
55
56
  case DeviceTypes.TwoPos:
56
57
  return 'Two Position';
58
+ case DeviceTypes.TwoPosGantry:
57
59
  default:
58
60
  return 'Unknown';
59
61
  }
@@ -1,6 +1,5 @@
1
1
  export * from "./Axis";
2
2
  export * from "../BaseDevice/Device";
3
3
  export * from "./DeviceTypes";
4
- export * from "./Conductor";
5
4
  export * from "./Robot";
6
5
  export * from "./Pot";
@@ -17,6 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Axis"), exports);
18
18
  __exportStar(require("../BaseDevice/Device"), exports);
19
19
  __exportStar(require("./DeviceTypes"), exports);
20
- __exportStar(require("./Conductor"), exports);
21
20
  __exportStar(require("./Robot"), exports);
22
21
  __exportStar(require("./Pot"), exports);
@@ -13,6 +13,7 @@ export declare const MachineTags: {
13
13
  taskQueue: string;
14
14
  machineLog: string;
15
15
  deviceLogs: string;
16
+ recipeStore: string;
16
17
  };
17
18
  export declare const DeviceTags: {
18
19
  Cfg: string;
@@ -32,6 +32,7 @@ exports.MachineTags = {
32
32
  //deviceLogs: 'DeviceLogs',
33
33
  machineLog: 'MachineLog',
34
34
  deviceLogs: 'DeviceLogs',
35
+ recipeStore: 'RecipeStore',
35
36
  };
36
37
  exports.DeviceTags = {
37
38
  Cfg: 'Cfg',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.58",
3
+ "version": "1.0.60",
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",
@@ -35,7 +35,7 @@ export interface DeviceRegistration {
35
35
  childIdArray: number[]; // array of child device ids
36
36
  parentId: number; // this is the parent id
37
37
  deviceType: DeviceTypes; // type of the device
38
- devicePath?: string; // full path of the device in the machine hierarchy
38
+ devicePath?: string[]; // full path of the device in the machine hierarchy
39
39
  };
40
40
 
41
41
 
@@ -46,7 +46,7 @@ export const initialDeviceRegistration: DeviceRegistration = {
46
46
  childIdArray: [],
47
47
  parentId: 0,
48
48
  deviceType: DeviceTypes.Base, // Assuming Unknown exists in DeviceTypes enum
49
- devicePath: ''
49
+ devicePath: []
50
50
  };
51
51
 
52
52
  export interface DeviceCfg {
@@ -12,33 +12,3 @@
12
12
  // );
13
13
  // END_TYPE
14
14
 
15
- export enum ConMethods {
16
- NONE = 0,
17
- UDPATE_PART = 1,
18
- TRANSFER_PART = 2,
19
- CONFIRM_PARTS_LOADED = 3,
20
- CONFIRM_PARTS_UNLOADED = 4,
21
- CLEAR_ALL_FIXTURE_PARTS = 5,
22
- LOAD_ALL_FIXTURE_PARTS_RAW = 6,
23
- }
24
-
25
- export function conMethodToString(method: ConMethods): string {
26
- switch (method) {
27
- case ConMethods.NONE:
28
- return "NONE";
29
- case ConMethods.UDPATE_PART:
30
- return "UPDATE_PART";
31
- case ConMethods.TRANSFER_PART:
32
- return "TRANSFER_PART";
33
- case ConMethods.CONFIRM_PARTS_LOADED:
34
- return "CONFIRM_PARTS_LOADED";
35
- case ConMethods.CONFIRM_PARTS_UNLOADED:
36
- return "CONFIRM_PARTS_UNLOADED";
37
- case ConMethods.CLEAR_ALL_FIXTURE_PARTS:
38
- return "CLEAR_ALL_FIXTURE_PARTS";
39
- case ConMethods.LOAD_ALL_FIXTURE_PARTS_RAW:
40
- return "LOAD_ALL_FIXTURE_PARTS_RAW";
41
- default:
42
- return "UNKNOWN_METHOD";
43
- }
44
- }
@@ -28,7 +28,8 @@ export enum DeviceTypes {
28
28
  Machine = 7,
29
29
  Robot = 8,
30
30
  Vision = 10,
31
- TwoPos = 11
31
+ TwoPos = 11,
32
+ TwoPosGantry = 12
32
33
  }
33
34
 
34
35
  export function deviceTypeToString(deviceType: DeviceTypes): string {
@@ -53,6 +54,7 @@ export function deviceTypeToString(deviceType: DeviceTypes): string {
53
54
  return 'Vision';
54
55
  case DeviceTypes.TwoPos:
55
56
  return 'Two Position';
57
+ case DeviceTypes.TwoPosGantry:
56
58
  default:
57
59
  return 'Unknown';
58
60
  }
@@ -1,6 +1,5 @@
1
1
  export * from "./Axis";
2
2
  export * from "../BaseDevice/Device";
3
3
  export * from "./DeviceTypes";
4
- export * from "./Conductor";
5
4
  export * from "./Robot";
6
5
  export * from "./Pot";
@@ -16,6 +16,7 @@ export const MachineTags = {
16
16
  //deviceLogs: 'DeviceLogs',
17
17
  machineLog: 'MachineLog',
18
18
  deviceLogs: 'DeviceLogs',
19
+ recipeStore: 'RecipeStore',
19
20
  }
20
21
 
21
22
  export const DeviceTags = {