@kuriousdesign/machine-sdk 1.0.47 → 1.0.48

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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initialApiOpcuaData = exports.initialApiOpcuaReqData = void 0;
3
+ exports.ApiReqRespStates = exports.initialApiOpcuaData = exports.initialApiOpcuaReqData = void 0;
4
4
  exports.apiReqRespStateToString = apiReqRespStateToString;
5
5
  const Actions_1 = require("./Actions");
6
6
  exports.initialApiOpcuaReqData = {
@@ -19,6 +19,18 @@ exports.initialApiOpcuaData = {
19
19
  internalReq: {},
20
20
  internalResp: {}
21
21
  };
22
+ var ApiReqRespStates;
23
+ (function (ApiReqRespStates) {
24
+ ApiReqRespStates[ApiReqRespStates["INACTIVE"] = 0] = "INACTIVE";
25
+ ApiReqRespStates[ApiReqRespStates["WRITING"] = 10] = "WRITING";
26
+ ApiReqRespStates[ApiReqRespStates["REQUEST_READY"] = 20] = "REQUEST_READY";
27
+ ApiReqRespStates[ApiReqRespStates["REJECTED_INVALID_CHECKSUM"] = 30] = "REJECTED_INVALID_CHECKSUM";
28
+ ApiReqRespStates[ApiReqRespStates["REJECTED_ACTION_NOT_ACCEPTED"] = 40] = "REJECTED_ACTION_NOT_ACCEPTED";
29
+ ApiReqRespStates[ApiReqRespStates["REJECTED_INVALID_SENDERID"] = 50] = "REJECTED_INVALID_SENDERID";
30
+ ApiReqRespStates[ApiReqRespStates["ACCEPTED"] = 1000] = "ACCEPTED";
31
+ // ERROR = 911,
32
+ // DONE = 1000
33
+ })(ApiReqRespStates || (exports.ApiReqRespStates = ApiReqRespStates = {}));
22
34
  function apiReqRespStateToString(state) {
23
35
  switch (state) {
24
36
  case ApiReqRespStates.INACTIVE:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kuriousdesign/machine-sdk",
3
- "version": "1.0.47",
3
+ "version": "1.0.48",
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",
@@ -37,7 +37,7 @@ export const initialApiOpcuaData: ApiOpcuaData = {
37
37
  };
38
38
 
39
39
 
40
- export declare enum ApiReqRespStates {
40
+ export enum ApiReqRespStates {
41
41
  INACTIVE = 0,
42
42
  WRITING = 10,
43
43
  REQUEST_READY = 20,