@blues-inc/notehub-js 1.0.10 → 1.0.12

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.
Files changed (83) hide show
  1. package/README.md +175 -180
  2. package/dist/ApiClient.js +155 -155
  3. package/dist/api/AuthorizationApi.js +15 -15
  4. package/dist/api/BillingAccountApi.js +13 -13
  5. package/dist/api/DeviceApi.js +157 -157
  6. package/dist/api/DevicesApi.js +58 -58
  7. package/dist/api/EnvironmentVariablesApi.js +110 -110
  8. package/dist/api/EventApi.js +94 -94
  9. package/dist/api/FilesApi.js +42 -42
  10. package/dist/api/FleetApi.js +160 -160
  11. package/dist/api/NotesApi.js +105 -105
  12. package/dist/api/ProductApi.js +29 -29
  13. package/dist/api/ProjectApi.js +137 -137
  14. package/dist/api/RouteApi.js +51 -51
  15. package/dist/index.js +14 -0
  16. package/dist/model/Aws.js +64 -64
  17. package/dist/model/Azure.js +42 -42
  18. package/dist/model/BillingAccount.js +20 -20
  19. package/dist/model/Body.js +4 -4
  20. package/dist/model/Contact.js +21 -21
  21. package/dist/model/CreateFleetRequest.js +6 -6
  22. package/dist/model/CreateProductRequest.js +21 -21
  23. package/dist/model/CreateProjectRequest.js +13 -13
  24. package/dist/model/DFUEnv.js +11 -11
  25. package/dist/model/DFUState.js +64 -64
  26. package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
  27. package/dist/model/Device.js +82 -82
  28. package/dist/model/DeviceSession.js +181 -181
  29. package/dist/model/DeviceTowerInfo.js +13 -13
  30. package/dist/model/DeviceUsage.js +31 -31
  31. package/dist/model/Edgeimpulse.js +214 -0
  32. package/dist/model/EdgeimpulseSensorsInner.js +106 -0
  33. package/dist/model/EnvironmentVariables.js +7 -7
  34. package/dist/model/Error.js +30 -30
  35. package/dist/model/Event.js +222 -222
  36. package/dist/model/Fleet.js +20 -20
  37. package/dist/model/GetBillingAccounts200Response.js +8 -9
  38. package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
  39. package/dist/model/GetDeviceHealthLog200Response.js +10 -11
  40. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
  41. package/dist/model/GetDeviceLatest200Response.js +8 -9
  42. package/dist/model/GetDevicePublicKey200Response.js +15 -15
  43. package/dist/model/GetDeviceSessions200Response.js +15 -16
  44. package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
  45. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
  46. package/dist/model/GetProjectDevices200Response.js +15 -16
  47. package/dist/model/GetProjectEvents200Response.js +20 -21
  48. package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
  49. package/dist/model/GetProjectFleets200Response.js +10 -11
  50. package/dist/model/GetProjectMembers200Response.js +10 -11
  51. package/dist/model/GetProjectProducts200Response.js +8 -9
  52. package/dist/model/GetProjects200Response.js +8 -9
  53. package/dist/model/Google.js +27 -27
  54. package/dist/model/HandleNoteChanges200Response.js +10 -10
  55. package/dist/model/HandleNoteGet200Response.js +12 -12
  56. package/dist/model/HandleNoteSignal200Response.js +4 -4
  57. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  58. package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
  59. package/dist/model/HandleNotefileDeleteRequest.js +6 -6
  60. package/dist/model/Http.js +34 -34
  61. package/dist/model/HttpFilter.js +18 -18
  62. package/dist/model/HttpTransform.js +19 -19
  63. package/dist/model/Location.js +39 -39
  64. package/dist/model/Login200Response.js +6 -6
  65. package/dist/model/LoginRequest.js +11 -11
  66. package/dist/model/Mqtt.js +65 -65
  67. package/dist/model/Note.js +9 -9
  68. package/dist/model/Product.js +25 -25
  69. package/dist/model/Project.js +33 -33
  70. package/dist/model/ProjectMember.js +21 -21
  71. package/dist/model/Proxy.js +23 -23
  72. package/dist/model/PutDeviceFleetsRequest.js +7 -7
  73. package/dist/model/Radresponder.js +24 -24
  74. package/dist/model/Route.js +40 -35
  75. package/dist/model/RouteSchema.js +39 -38
  76. package/dist/model/Snowflake.js +44 -44
  77. package/dist/model/SnowflakeTransform.js +11 -11
  78. package/dist/model/Thingworx.js +32 -32
  79. package/dist/model/TowerLocation.js +51 -51
  80. package/dist/model/Twilio.js +42 -42
  81. package/dist/model/UpdateFleetRequest.js +16 -16
  82. package/dist/model/UserDbRoute.js +24 -24
  83. package/package.json +3 -3
@@ -19,15 +19,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The ProjectMember model module.
21
21
  * @module model/ProjectMember
22
- * @version 1.0.10
22
+ * @version 1.0.12
23
23
  */
24
24
  var ProjectMember = /*#__PURE__*/function () {
25
25
  /**
26
26
  * Constructs a new <code>ProjectMember</code>.
27
27
  * @alias module:model/ProjectMember
28
- * @param name {String}
29
- * @param email {String} The email address of the project member. This property will only be populated if the viewer is an owner of the project.
30
- * @param role {module:model/Role}
28
+ * @param name {String}
29
+ * @param email {String} The email address of the project member. This property will only be populated if the viewer is an owner of the project.
30
+ * @param role {module:model/Role}
31
31
  */
32
32
  function ProjectMember(name, email, role) {
33
33
  _classCallCheck(this, ProjectMember);
@@ -42,9 +42,9 @@ var ProjectMember = /*#__PURE__*/function () {
42
42
  _createClass(ProjectMember, null, [{
43
43
  key: "initialize",
44
44
  value: function initialize(obj, name, email, role) {
45
- obj['name'] = name;
46
- obj['email'] = email;
47
- obj['role'] = role;
45
+ obj["name"] = name;
46
+ obj["email"] = email;
47
+ obj["role"] = role;
48
48
  }
49
49
 
50
50
  /**
@@ -59,14 +59,14 @@ var ProjectMember = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new ProjectMember();
62
- if (data.hasOwnProperty('name')) {
63
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
62
+ if (data.hasOwnProperty("name")) {
63
+ obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
64
64
  }
65
- if (data.hasOwnProperty('email')) {
66
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
65
+ if (data.hasOwnProperty("email")) {
66
+ obj["email"] = _ApiClient["default"].convertToType(data["email"], "String");
67
67
  }
68
- if (data.hasOwnProperty('role')) {
69
- obj['role'] = _Role["default"].constructFromObject(data['role']);
68
+ if (data.hasOwnProperty("role")) {
69
+ obj["role"] = _Role["default"].constructFromObject(data["role"]);
70
70
  }
71
71
  } else if (data === null) {
72
72
  return null;
@@ -98,12 +98,12 @@ var ProjectMember = /*#__PURE__*/function () {
98
98
  } finally {
99
99
  _iterator.f();
100
100
  }
101
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
102
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
101
+ if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
102
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
103
103
  }
104
104
  // ensure the json data is a string
105
- if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
106
- throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
105
+ if (data["email"] && !(typeof data["email"] === "string" || data["email"] instanceof String)) {
106
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data["email"]);
107
107
  }
108
108
  return true;
109
109
  }
@@ -115,17 +115,17 @@ ProjectMember.RequiredProperties = ["name", "email", "role"];
115
115
  /**
116
116
  * @member {String} name
117
117
  */
118
- ProjectMember.prototype['name'] = undefined;
118
+ ProjectMember.prototype["name"] = undefined;
119
119
 
120
120
  /**
121
- * The email address of the project member. This property will only be populated if the viewer is an owner of the project.
121
+ * The email address of the project member. This property will only be populated if the viewer is an owner of the project.
122
122
  * @member {String} email
123
123
  */
124
- ProjectMember.prototype['email'] = undefined;
124
+ ProjectMember.prototype["email"] = undefined;
125
125
 
126
126
  /**
127
127
  * @member {module:model/Role} role
128
128
  */
129
- ProjectMember.prototype['role'] = undefined;
129
+ ProjectMember.prototype["role"] = undefined;
130
130
  var _default = ProjectMember;
131
131
  exports["default"] = _default;
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Proxy model module.
17
17
  * @module model/Proxy
18
- * @version 1.0.10
18
+ * @version 1.0.12
19
19
  */
20
20
  var Proxy = /*#__PURE__*/function () {
21
21
  /**
@@ -49,22 +49,22 @@ var Proxy = /*#__PURE__*/function () {
49
49
  value: function constructFromObject(data, obj) {
50
50
  if (data) {
51
51
  obj = obj || new Proxy();
52
- if (data.hasOwnProperty('fleets')) {
53
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
52
+ if (data.hasOwnProperty("fleets")) {
53
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
54
54
  }
55
- if (data.hasOwnProperty('url')) {
56
- obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
55
+ if (data.hasOwnProperty("url")) {
56
+ obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
57
57
  }
58
- if (data.hasOwnProperty('alias')) {
59
- obj['alias'] = _ApiClient["default"].convertToType(data['alias'], 'String');
58
+ if (data.hasOwnProperty("alias")) {
59
+ obj["alias"] = _ApiClient["default"].convertToType(data["alias"], "String");
60
60
  }
61
- if (data.hasOwnProperty('http_headers')) {
62
- obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
63
- 'String': 'String'
61
+ if (data.hasOwnProperty("http_headers")) {
62
+ obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
63
+ String: "String"
64
64
  });
65
65
  }
66
- if (data.hasOwnProperty('timeout')) {
67
- obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
66
+ if (data.hasOwnProperty("timeout")) {
67
+ obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
68
68
  }
69
69
  } else if (data === null) {
70
70
  return null;
@@ -81,16 +81,16 @@ var Proxy = /*#__PURE__*/function () {
81
81
  key: "validateJSON",
82
82
  value: function validateJSON(data) {
83
83
  // ensure the json data is an array
84
- if (!Array.isArray(data['fleets'])) {
85
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
84
+ if (!Array.isArray(data["fleets"])) {
85
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
86
86
  }
87
87
  // ensure the json data is a string
88
- if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
89
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
88
+ if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
89
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
90
90
  }
91
91
  // ensure the json data is a string
92
- if (data['alias'] && !(typeof data['alias'] === 'string' || data['alias'] instanceof String)) {
93
- throw new Error("Expected the field `alias` to be a primitive type in the JSON string but got " + data['alias']);
92
+ if (data["alias"] && !(typeof data["alias"] === "string" || data["alias"] instanceof String)) {
93
+ throw new Error("Expected the field `alias` to be a primitive type in the JSON string but got " + data["alias"]);
94
94
  }
95
95
  return true;
96
96
  }
@@ -101,28 +101,28 @@ var Proxy = /*#__PURE__*/function () {
101
101
  * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
102
102
  * @member {Array.<String>} fleets
103
103
  */
104
- Proxy.prototype['fleets'] = undefined;
104
+ Proxy.prototype["fleets"] = undefined;
105
105
 
106
106
  /**
107
107
  * @member {String} url
108
108
  */
109
- Proxy.prototype['url'] = undefined;
109
+ Proxy.prototype["url"] = undefined;
110
110
 
111
111
  /**
112
112
  * @member {String} alias
113
113
  */
114
- Proxy.prototype['alias'] = undefined;
114
+ Proxy.prototype["alias"] = undefined;
115
115
 
116
116
  /**
117
117
  * @member {Object.<String, String>} http_headers
118
118
  */
119
- Proxy.prototype['http_headers'] = undefined;
119
+ Proxy.prototype["http_headers"] = undefined;
120
120
 
121
121
  /**
122
122
  * Timeout in seconds for each request
123
123
  * @member {Number} timeout
124
124
  * @default 15
125
125
  */
126
- Proxy.prototype['timeout'] = 15;
126
+ Proxy.prototype["timeout"] = 15;
127
127
  var _default = Proxy;
128
128
  exports["default"] = _default;
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The PutDeviceFleetsRequest model module.
20
20
  * @module model/PutDeviceFleetsRequest
21
- * @version 1.0.10
21
+ * @version 1.0.12
22
22
  */
23
23
  var PutDeviceFleetsRequest = /*#__PURE__*/function () {
24
24
  /**
@@ -39,7 +39,7 @@ var PutDeviceFleetsRequest = /*#__PURE__*/function () {
39
39
  _createClass(PutDeviceFleetsRequest, null, [{
40
40
  key: "initialize",
41
41
  value: function initialize(obj, fleetUids) {
42
- obj['fleet_uids'] = fleetUids;
42
+ obj["fleet_uids"] = fleetUids;
43
43
  }
44
44
 
45
45
  /**
@@ -54,8 +54,8 @@ var PutDeviceFleetsRequest = /*#__PURE__*/function () {
54
54
  value: function constructFromObject(data, obj) {
55
55
  if (data) {
56
56
  obj = obj || new PutDeviceFleetsRequest();
57
- if (data.hasOwnProperty('fleet_uids')) {
58
- obj['fleet_uids'] = _ApiClient["default"].convertToType(data['fleet_uids'], ['String']);
57
+ if (data.hasOwnProperty("fleet_uids")) {
58
+ obj["fleet_uids"] = _ApiClient["default"].convertToType(data["fleet_uids"], ["String"]);
59
59
  }
60
60
  } else if (data === null) {
61
61
  return null;
@@ -87,8 +87,8 @@ var PutDeviceFleetsRequest = /*#__PURE__*/function () {
87
87
  } finally {
88
88
  _iterator.f();
89
89
  }
90
- if (!Array.isArray(data['fleet_uids'])) {
91
- throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data['fleet_uids']);
90
+ if (!Array.isArray(data["fleet_uids"])) {
91
+ throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
92
92
  }
93
93
  return true;
94
94
  }
@@ -101,6 +101,6 @@ PutDeviceFleetsRequest.RequiredProperties = ["fleet_uids"];
101
101
  * The fleetUIDs to add to the device.
102
102
  * @member {Array.<String>} fleet_uids
103
103
  */
104
- PutDeviceFleetsRequest.prototype['fleet_uids'] = undefined;
104
+ PutDeviceFleetsRequest.prototype["fleet_uids"] = undefined;
105
105
  var _default = PutDeviceFleetsRequest;
106
106
  exports["default"] = _default;
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Radresponder model module.
17
17
  * @module model/Radresponder
18
- * @version 1.0.10
18
+ * @version 1.0.12
19
19
  */
20
20
  var Radresponder = /*#__PURE__*/function () {
21
21
  /**
@@ -49,20 +49,20 @@ var Radresponder = /*#__PURE__*/function () {
49
49
  value: function constructFromObject(data, obj) {
50
50
  if (data) {
51
51
  obj = obj || new Radresponder();
52
- if (data.hasOwnProperty('fleets')) {
53
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
52
+ if (data.hasOwnProperty("fleets")) {
53
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
54
54
  }
55
- if (data.hasOwnProperty('test_api')) {
56
- obj['test_api'] = _ApiClient["default"].convertToType(data['test_api'], 'Boolean');
55
+ if (data.hasOwnProperty("test_api")) {
56
+ obj["test_api"] = _ApiClient["default"].convertToType(data["test_api"], "Boolean");
57
57
  }
58
- if (data.hasOwnProperty('data_feed_key')) {
59
- obj['data_feed_key'] = _ApiClient["default"].convertToType(data['data_feed_key'], 'String');
58
+ if (data.hasOwnProperty("data_feed_key")) {
59
+ obj["data_feed_key"] = _ApiClient["default"].convertToType(data["data_feed_key"], "String");
60
60
  }
61
- if (data.hasOwnProperty('client_id')) {
62
- obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String');
61
+ if (data.hasOwnProperty("client_id")) {
62
+ obj["client_id"] = _ApiClient["default"].convertToType(data["client_id"], "String");
63
63
  }
64
- if (data.hasOwnProperty('client_secret')) {
65
- obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String');
64
+ if (data.hasOwnProperty("client_secret")) {
65
+ obj["client_secret"] = _ApiClient["default"].convertToType(data["client_secret"], "String");
66
66
  }
67
67
  } else if (data === null) {
68
68
  return null;
@@ -79,20 +79,20 @@ var Radresponder = /*#__PURE__*/function () {
79
79
  key: "validateJSON",
80
80
  value: function validateJSON(data) {
81
81
  // ensure the json data is an array
82
- if (!Array.isArray(data['fleets'])) {
83
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
82
+ if (!Array.isArray(data["fleets"])) {
83
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
84
84
  }
85
85
  // ensure the json data is a string
86
- if (data['data_feed_key'] && !(typeof data['data_feed_key'] === 'string' || data['data_feed_key'] instanceof String)) {
87
- throw new Error("Expected the field `data_feed_key` to be a primitive type in the JSON string but got " + data['data_feed_key']);
86
+ if (data["data_feed_key"] && !(typeof data["data_feed_key"] === "string" || data["data_feed_key"] instanceof String)) {
87
+ throw new Error("Expected the field `data_feed_key` to be a primitive type in the JSON string but got " + data["data_feed_key"]);
88
88
  }
89
89
  // ensure the json data is a string
90
- if (data['client_id'] && !(typeof data['client_id'] === 'string' || data['client_id'] instanceof String)) {
91
- throw new Error("Expected the field `client_id` to be a primitive type in the JSON string but got " + data['client_id']);
90
+ if (data["client_id"] && !(typeof data["client_id"] === "string" || data["client_id"] instanceof String)) {
91
+ throw new Error("Expected the field `client_id` to be a primitive type in the JSON string but got " + data["client_id"]);
92
92
  }
93
93
  // ensure the json data is a string
94
- if (data['client_secret'] && !(typeof data['client_secret'] === 'string' || data['client_secret'] instanceof String)) {
95
- throw new Error("Expected the field `client_secret` to be a primitive type in the JSON string but got " + data['client_secret']);
94
+ if (data["client_secret"] && !(typeof data["client_secret"] === "string" || data["client_secret"] instanceof String)) {
95
+ throw new Error("Expected the field `client_secret` to be a primitive type in the JSON string but got " + data["client_secret"]);
96
96
  }
97
97
  return true;
98
98
  }
@@ -103,28 +103,28 @@ var Radresponder = /*#__PURE__*/function () {
103
103
  * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
104
104
  * @member {Array.<String>} fleets
105
105
  */
106
- Radresponder.prototype['fleets'] = undefined;
106
+ Radresponder.prototype["fleets"] = undefined;
107
107
 
108
108
  /**
109
109
  * @member {Boolean} test_api
110
110
  * @default false
111
111
  */
112
- Radresponder.prototype['test_api'] = false;
112
+ Radresponder.prototype["test_api"] = false;
113
113
 
114
114
  /**
115
115
  * @member {String} data_feed_key
116
116
  */
117
- Radresponder.prototype['data_feed_key'] = undefined;
117
+ Radresponder.prototype["data_feed_key"] = undefined;
118
118
 
119
119
  /**
120
120
  * @member {String} client_id
121
121
  */
122
- Radresponder.prototype['client_id'] = undefined;
122
+ Radresponder.prototype["client_id"] = undefined;
123
123
 
124
124
  /**
125
125
  * This value is input-only and will be omitted from the response and replaced with a placeholder
126
126
  * @member {String} client_secret
127
127
  */
128
- Radresponder.prototype['client_secret'] = undefined;
128
+ Radresponder.prototype["client_secret"] = undefined;
129
129
  var _default = Radresponder;
130
130
  exports["default"] = _default;
@@ -16,7 +16,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
16
16
  /**
17
17
  * The Route model module.
18
18
  * @module model/Route
19
- * @version 1.0.10
19
+ * @version 1.0.12
20
20
  */
21
21
  var Route = /*#__PURE__*/function () {
22
22
  /**
@@ -49,23 +49,23 @@ var Route = /*#__PURE__*/function () {
49
49
  value: function constructFromObject(data, obj) {
50
50
  if (data) {
51
51
  obj = obj || new Route();
52
- if (data.hasOwnProperty('uid')) {
53
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
52
+ if (data.hasOwnProperty("uid")) {
53
+ obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
54
54
  }
55
- if (data.hasOwnProperty('label')) {
56
- obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
55
+ if (data.hasOwnProperty("label")) {
56
+ obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
57
57
  }
58
- if (data.hasOwnProperty('route_type')) {
59
- obj['route_type'] = _ApiClient["default"].convertToType(data['route_type'], 'String');
58
+ if (data.hasOwnProperty("route_type")) {
59
+ obj["route_type"] = _ApiClient["default"].convertToType(data["route_type"], "String");
60
60
  }
61
- if (data.hasOwnProperty('modified')) {
62
- obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'String');
61
+ if (data.hasOwnProperty("modified")) {
62
+ obj["modified"] = _ApiClient["default"].convertToType(data["modified"], "String");
63
63
  }
64
- if (data.hasOwnProperty('disabled')) {
65
- obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
64
+ if (data.hasOwnProperty("disabled")) {
65
+ obj["disabled"] = _ApiClient["default"].convertToType(data["disabled"], "Boolean");
66
66
  }
67
- if (data.hasOwnProperty('schema')) {
68
- obj['schema'] = _RouteSchema["default"].constructFromObject(data['schema']);
67
+ if (data.hasOwnProperty("schema")) {
68
+ obj["schema"] = _RouteSchema["default"].constructFromObject(data["schema"]);
69
69
  }
70
70
  } else if (data === null) {
71
71
  return null;
@@ -82,25 +82,25 @@ var Route = /*#__PURE__*/function () {
82
82
  key: "validateJSON",
83
83
  value: function validateJSON(data) {
84
84
  // ensure the json data is a string
85
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
86
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
85
+ if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
86
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
87
87
  }
88
88
  // ensure the json data is a string
89
- if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
90
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
89
+ if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
90
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
91
91
  }
92
92
  // ensure the json data is a string
93
- if (data['route_type'] && !(typeof data['route_type'] === 'string' || data['route_type'] instanceof String)) {
94
- throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data['route_type']);
93
+ if (data["route_type"] && !(typeof data["route_type"] === "string" || data["route_type"] instanceof String)) {
94
+ throw new Error("Expected the field `route_type` to be a primitive type in the JSON string but got " + data["route_type"]);
95
95
  }
96
96
  // ensure the json data is a string
97
- if (data['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
98
- throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
97
+ if (data["modified"] && !(typeof data["modified"] === "string" || data["modified"] instanceof String)) {
98
+ throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data["modified"]);
99
99
  }
100
100
  // validate the optional field `schema`
101
- if (data['schema']) {
101
+ if (data["schema"]) {
102
102
  // data not null
103
- _RouteSchema["default"].validateJSON(data['schema']);
103
+ _RouteSchema["default"].validateJSON(data["schema"]);
104
104
  }
105
105
  return true;
106
106
  }
@@ -111,55 +111,55 @@ var Route = /*#__PURE__*/function () {
111
111
  * Route UID
112
112
  * @member {String} uid
113
113
  */
114
- Route.prototype['uid'] = undefined;
114
+ Route.prototype["uid"] = undefined;
115
115
 
116
116
  /**
117
117
  * Route Label
118
118
  * @member {String} label
119
119
  */
120
- Route.prototype['label'] = undefined;
120
+ Route.prototype["label"] = undefined;
121
121
 
122
122
  /**
123
123
  * Type of route.
124
124
  * @member {module:model/Route.RouteTypeEnum} route_type
125
125
  * @default 'http'
126
126
  */
127
- Route.prototype['route_type'] = 'http';
127
+ Route.prototype["route_type"] = "http";
128
128
 
129
129
  /**
130
130
  * Last Modified
131
131
  * @member {String} modified
132
132
  */
133
- Route.prototype['modified'] = undefined;
133
+ Route.prototype["modified"] = undefined;
134
134
 
135
135
  /**
136
136
  * Is route disabled?
137
137
  * @member {Boolean} disabled
138
138
  * @default false
139
139
  */
140
- Route.prototype['disabled'] = false;
140
+ Route.prototype["disabled"] = false;
141
141
 
142
142
  /**
143
143
  * @member {module:model/RouteSchema} schema
144
144
  */
145
- Route.prototype['schema'] = undefined;
145
+ Route.prototype["schema"] = undefined;
146
146
 
147
147
  /**
148
148
  * Allowed values for the <code>route_type</code> property.
149
149
  * @enum {String}
150
150
  * @readonly
151
151
  */
152
- Route['RouteTypeEnum'] = {
152
+ Route["RouteTypeEnum"] = {
153
153
  /**
154
154
  * value: "http"
155
155
  * @const
156
156
  */
157
- "http": "http",
157
+ http: "http",
158
158
  /**
159
159
  * value: "proxy"
160
160
  * @const
161
161
  */
162
- "proxy": "proxy",
162
+ proxy: "proxy",
163
163
  /**
164
164
  * value: "google-function"
165
165
  * @const
@@ -169,7 +169,7 @@ Route['RouteTypeEnum'] = {
169
169
  * value: "mqtt"
170
170
  * @const
171
171
  */
172
- "mqtt": "mqtt",
172
+ mqtt: "mqtt",
173
173
  /**
174
174
  * value: "aws-lambda"
175
175
  * @const
@@ -234,12 +234,17 @@ Route['RouteTypeEnum'] = {
234
234
  * value: "thingworx"
235
235
  * @const
236
236
  */
237
- "thingworx": "thingworx",
237
+ thingworx: "thingworx",
238
238
  /**
239
239
  * value: "snowflake"
240
240
  * @const
241
241
  */
242
- "snowflake": "snowflake"
242
+ snowflake: "snowflake",
243
+ /**
244
+ * value: "edgeimpulse"
245
+ * @const
246
+ */
247
+ edgeimpulse: "edgeimpulse"
243
248
  };
244
249
  var _default = Route;
245
250
  exports["default"] = _default;