@blues-inc/notehub-js 1.0.36-beta.9 → 1.0.37

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 (135) hide show
  1. package/README.md +227 -241
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +362 -362
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +370 -370
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/WebhookApi.js +51 -51
  13. package/dist/index.js +0 -7
  14. package/dist/model/Alert.js +74 -76
  15. package/dist/model/AlertDataInner.js +35 -35
  16. package/dist/model/AlertNotificationsInner.js +18 -18
  17. package/dist/model/AnalyticsEventsData.js +17 -17
  18. package/dist/model/AnalyticsEventsResponse.js +11 -12
  19. package/dist/model/AnalyticsRouteLogsData.js +22 -22
  20. package/dist/model/AnalyticsRouteLogsResponse.js +11 -12
  21. package/dist/model/AnalyticsSessionsData.js +22 -22
  22. package/dist/model/AnalyticsSessionsResponse.js +11 -12
  23. package/dist/model/Aws.js +65 -65
  24. package/dist/model/Azure.js +43 -43
  25. package/dist/model/BillingAccount.js +21 -21
  26. package/dist/model/BillingAccountRole.js +9 -9
  27. package/dist/model/Body.js +5 -5
  28. package/dist/model/CloneProjectRequest.js +20 -20
  29. package/dist/model/Contact.js +22 -22
  30. package/dist/model/CreateFleetRequest.js +12 -12
  31. package/dist/model/CreateMonitor.js +125 -126
  32. package/dist/model/CreateProductRequest.js +22 -22
  33. package/dist/model/CreateProjectRequest.js +16 -16
  34. package/dist/model/CreateUpdateRepository.js +17 -17
  35. package/dist/model/CurrentFirmware.js +12 -12
  36. package/dist/model/DFUEnv.js +12 -12
  37. package/dist/model/DFUState.js +65 -65
  38. package/dist/model/DataField.js +7 -7
  39. package/dist/model/DataSet.js +29 -30
  40. package/dist/model/DataSetField.js +19 -19
  41. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  42. package/dist/model/Device.js +101 -102
  43. package/dist/model/DeviceDfuHistory.js +19 -20
  44. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  45. package/dist/model/DeviceDfuStateMachine.js +24 -25
  46. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  47. package/dist/model/DeviceDfuStatus.js +20 -20
  48. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  49. package/dist/model/DeviceDfuStatusPage.js +12 -13
  50. package/dist/model/DeviceSession.js +221 -221
  51. package/dist/model/DeviceTowerInfo.js +14 -14
  52. package/dist/model/DeviceUsage.js +32 -32
  53. package/dist/model/DfuActionRequest.js +7 -7
  54. package/dist/model/EmailNotification.js +7 -7
  55. package/dist/model/EnvTreeJsonNode.js +67 -69
  56. package/dist/model/EnvVar.js +18 -18
  57. package/dist/model/EnvironmentVariables.js +8 -8
  58. package/dist/model/Error.js +31 -31
  59. package/dist/model/Event.js +248 -248
  60. package/dist/model/Firmware.js +49 -49
  61. package/dist/model/FirmwareInfo.js +60 -60
  62. package/dist/model/Fleet.js +30 -30
  63. package/dist/model/GetAlerts200Response.js +14 -15
  64. package/dist/model/GetBillingAccounts200Response.js +9 -10
  65. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  66. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  67. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  68. package/dist/model/GetDeviceLatest200Response.js +9 -10
  69. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  70. package/dist/model/GetDeviceSessions200Response.js +16 -17
  71. package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
  72. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  73. package/dist/model/GetProjectDevices200Response.js +16 -17
  74. package/dist/model/GetProjectEvents200Response.js +20 -21
  75. package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
  76. package/dist/model/GetProjectFleets200Response.js +11 -12
  77. package/dist/model/GetProjectMembers200Response.js +11 -12
  78. package/dist/model/GetProjectProducts200Response.js +9 -10
  79. package/dist/model/GetProjects200Response.js +9 -10
  80. package/dist/model/GetWebhooks200Response.js +9 -10
  81. package/dist/model/Google.js +33 -33
  82. package/dist/model/HandleNoteChanges200Response.js +11 -11
  83. package/dist/model/HandleNoteGet200Response.js +13 -13
  84. package/dist/model/HandleNoteSignal200Response.js +5 -5
  85. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  86. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  87. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  88. package/dist/model/Http.js +35 -35
  89. package/dist/model/HttpFilter.js +19 -19
  90. package/dist/model/HttpTransform.js +20 -20
  91. package/dist/model/Location.js +40 -40
  92. package/dist/model/Login200Response.js +7 -7
  93. package/dist/model/LoginRequest.js +12 -12
  94. package/dist/model/Monitor.js +99 -100
  95. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  96. package/dist/model/Mqtt.js +66 -66
  97. package/dist/model/Note.js +10 -10
  98. package/dist/model/NotefileSchema.js +18 -19
  99. package/dist/model/NotehubRoute.js +36 -36
  100. package/dist/model/NotehubRouteSchema.js +46 -45
  101. package/dist/model/PersonalAccessToken.js +40 -31
  102. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  103. package/dist/model/PersonalAccessTokenInfo.js +24 -15
  104. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  105. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  106. package/dist/model/Product.js +26 -26
  107. package/dist/model/Project.js +34 -34
  108. package/dist/model/ProjectMember.js +22 -22
  109. package/dist/model/Proxy.js +24 -24
  110. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  111. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  112. package/dist/model/QuestionDataResponseMap.js +16 -16
  113. package/dist/model/Radresponder.js +25 -25
  114. package/dist/model/Repository.js +22 -22
  115. package/dist/model/Role.js +9 -9
  116. package/dist/model/RouteLog.js +38 -38
  117. package/dist/model/SchemaProperty.js +38 -40
  118. package/dist/model/SimUsage.js +19 -19
  119. package/dist/model/Slack.js +53 -53
  120. package/dist/model/SlackBearerNotification.js +25 -25
  121. package/dist/model/SlackWebHookNotification.js +20 -20
  122. package/dist/model/Snowflake.js +45 -45
  123. package/dist/model/SnowflakeTransform.js +12 -12
  124. package/dist/model/Thingworx.js +33 -33
  125. package/dist/model/TowerLocation.js +54 -54
  126. package/dist/model/Twilio.js +43 -43
  127. package/dist/model/UpdateFleetRequest.js +25 -25
  128. package/dist/model/UploadMetadata.js +59 -59
  129. package/dist/model/UserDbRoute.js +25 -25
  130. package/dist/model/UserDfuStateMachine.js +20 -20
  131. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  132. package/dist/model/UserFirmwareInfo.js +12 -12
  133. package/dist/model/WebhookSettings.js +15 -15
  134. package/package.json +3 -3
  135. package/dist/api/ApiAccessApi.js +0 -238
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The LoginRequest model module.
28
28
  * @module model/LoginRequest
29
- * @version 1.0.36-beta.9
29
+ * @version 1.0.37
30
30
  */
31
31
  var LoginRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -59,11 +59,11 @@ var LoginRequest = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new LoginRequest();
62
- if (data.hasOwnProperty('username')) {
63
- obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
62
+ if (data.hasOwnProperty("username")) {
63
+ obj["username"] = _ApiClient["default"].convertToType(data["username"], "String");
64
64
  }
65
- if (data.hasOwnProperty('password')) {
66
- obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
65
+ if (data.hasOwnProperty("password")) {
66
+ obj["password"] = _ApiClient["default"].convertToType(data["password"], "String");
67
67
  }
68
68
  } else if (data === null) {
69
69
  return null;
@@ -80,12 +80,12 @@ var LoginRequest = /*#__PURE__*/function () {
80
80
  key: "validateJSON",
81
81
  value: function validateJSON(data) {
82
82
  // ensure the json data is a string
83
- if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
84
- throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
83
+ if (data["username"] && !(typeof data["username"] === "string" || data["username"] instanceof String)) {
84
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data["username"]);
85
85
  }
86
86
  // ensure the json data is a string
87
- if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
88
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
87
+ if (data["password"] && !(typeof data["password"] === "string" || data["password"] instanceof String)) {
88
+ throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data["password"]);
89
89
  }
90
90
  return true;
91
91
  }
@@ -94,10 +94,10 @@ var LoginRequest = /*#__PURE__*/function () {
94
94
  /**
95
95
  * @member {String} username
96
96
  */
97
- LoginRequest.prototype['username'] = undefined;
97
+ LoginRequest.prototype["username"] = undefined;
98
98
 
99
99
  /**
100
100
  * @member {String} password
101
101
  */
102
- LoginRequest.prototype['password'] = undefined;
102
+ LoginRequest.prototype["password"] = undefined;
103
103
  var _default = exports["default"] = LoginRequest;
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
18
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
19
19
  * Notehub API
20
- * The OpenAPI definition for the Notehub.io API.
20
+ * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
22
  * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The Monitor model module.
32
32
  * @module model/Monitor
33
- * @version 1.0.36-beta.9
33
+ * @version 1.0.37
34
34
  */
35
35
  var Monitor = /*#__PURE__*/function () {
36
36
  /**
@@ -63,59 +63,59 @@ var Monitor = /*#__PURE__*/function () {
63
63
  value: function constructFromObject(data, obj) {
64
64
  if (data) {
65
65
  obj = obj || new Monitor();
66
- if (data.hasOwnProperty('uid')) {
67
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
66
+ if (data.hasOwnProperty("uid")) {
67
+ obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
68
68
  }
69
- if (data.hasOwnProperty('name')) {
70
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
69
+ if (data.hasOwnProperty("name")) {
70
+ obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
71
71
  }
72
- if (data.hasOwnProperty('description')) {
73
- obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String');
72
+ if (data.hasOwnProperty("description")) {
73
+ obj["description"] = _ApiClient["default"].convertToType(data["description"], "String");
74
74
  }
75
- if (data.hasOwnProperty('source_type')) {
76
- obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
75
+ if (data.hasOwnProperty("source_type")) {
76
+ obj["source_type"] = _ApiClient["default"].convertToType(data["source_type"], "String");
77
77
  }
78
- if (data.hasOwnProperty('disabled')) {
79
- obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
78
+ if (data.hasOwnProperty("disabled")) {
79
+ obj["disabled"] = _ApiClient["default"].convertToType(data["disabled"], "Boolean");
80
80
  }
81
- if (data.hasOwnProperty('alert')) {
82
- obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
81
+ if (data.hasOwnProperty("alert")) {
82
+ obj["alert"] = _ApiClient["default"].convertToType(data["alert"], "Boolean");
83
83
  }
84
- if (data.hasOwnProperty('notefile_filter')) {
85
- obj['notefile_filter'] = _ApiClient["default"].convertToType(data['notefile_filter'], ['String']);
84
+ if (data.hasOwnProperty("notefile_filter")) {
85
+ obj["notefile_filter"] = _ApiClient["default"].convertToType(data["notefile_filter"], ["String"]);
86
86
  }
87
- if (data.hasOwnProperty('fleet_filter')) {
88
- obj['fleet_filter'] = _ApiClient["default"].convertToType(data['fleet_filter'], ['String']);
87
+ if (data.hasOwnProperty("fleet_filter")) {
88
+ obj["fleet_filter"] = _ApiClient["default"].convertToType(data["fleet_filter"], ["String"]);
89
89
  }
90
- if (data.hasOwnProperty('source_selector')) {
91
- obj['source_selector'] = _ApiClient["default"].convertToType(data['source_selector'], 'String');
90
+ if (data.hasOwnProperty("source_selector")) {
91
+ obj["source_selector"] = _ApiClient["default"].convertToType(data["source_selector"], "String");
92
92
  }
93
- if (data.hasOwnProperty('condition_type')) {
94
- obj['condition_type'] = _ApiClient["default"].convertToType(data['condition_type'], 'String');
93
+ if (data.hasOwnProperty("condition_type")) {
94
+ obj["condition_type"] = _ApiClient["default"].convertToType(data["condition_type"], "String");
95
95
  }
96
- if (data.hasOwnProperty('threshold')) {
97
- obj['threshold'] = _ApiClient["default"].convertToType(data['threshold'], 'Number');
96
+ if (data.hasOwnProperty("threshold")) {
97
+ obj["threshold"] = _ApiClient["default"].convertToType(data["threshold"], "Number");
98
98
  }
99
- if (data.hasOwnProperty('alert_routes')) {
100
- obj['alert_routes'] = _ApiClient["default"].convertToType(data['alert_routes'], [_MonitorAlertRoutesInner["default"]]);
99
+ if (data.hasOwnProperty("alert_routes")) {
100
+ obj["alert_routes"] = _ApiClient["default"].convertToType(data["alert_routes"], [_MonitorAlertRoutesInner["default"]]);
101
101
  }
102
- if (data.hasOwnProperty('last_routed_at')) {
103
- obj['last_routed_at'] = _ApiClient["default"].convertToType(data['last_routed_at'], 'String');
102
+ if (data.hasOwnProperty("last_routed_at")) {
103
+ obj["last_routed_at"] = _ApiClient["default"].convertToType(data["last_routed_at"], "String");
104
104
  }
105
- if (data.hasOwnProperty('silenced')) {
106
- obj['silenced'] = _ApiClient["default"].convertToType(data['silenced'], 'Boolean');
105
+ if (data.hasOwnProperty("silenced")) {
106
+ obj["silenced"] = _ApiClient["default"].convertToType(data["silenced"], "Boolean");
107
107
  }
108
- if (data.hasOwnProperty('routing_cooldown_period')) {
109
- obj['routing_cooldown_period'] = _ApiClient["default"].convertToType(data['routing_cooldown_period'], 'String');
108
+ if (data.hasOwnProperty("routing_cooldown_period")) {
109
+ obj["routing_cooldown_period"] = _ApiClient["default"].convertToType(data["routing_cooldown_period"], "String");
110
110
  }
111
- if (data.hasOwnProperty('aggregate_function')) {
112
- obj['aggregate_function'] = _ApiClient["default"].convertToType(data['aggregate_function'], 'String');
111
+ if (data.hasOwnProperty("aggregate_function")) {
112
+ obj["aggregate_function"] = _ApiClient["default"].convertToType(data["aggregate_function"], "String");
113
113
  }
114
- if (data.hasOwnProperty('aggregate_window')) {
115
- obj['aggregate_window'] = _ApiClient["default"].convertToType(data['aggregate_window'], 'String');
114
+ if (data.hasOwnProperty("aggregate_window")) {
115
+ obj["aggregate_window"] = _ApiClient["default"].convertToType(data["aggregate_window"], "String");
116
116
  }
117
- if (data.hasOwnProperty('per_device')) {
118
- obj['per_device'] = _ApiClient["default"].convertToType(data['per_device'], 'Boolean');
117
+ if (data.hasOwnProperty("per_device")) {
118
+ obj["per_device"] = _ApiClient["default"].convertToType(data["per_device"], "Boolean");
119
119
  }
120
120
  } else if (data === null) {
121
121
  return null;
@@ -132,45 +132,45 @@ var Monitor = /*#__PURE__*/function () {
132
132
  key: "validateJSON",
133
133
  value: function validateJSON(data) {
134
134
  // ensure the json data is a string
135
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
136
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
135
+ if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
136
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
137
137
  }
138
138
  // ensure the json data is a string
139
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
140
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
139
+ if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
140
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
141
141
  }
142
142
  // ensure the json data is a string
143
- if (data['description'] && !(typeof data['description'] === 'string' || data['description'] instanceof String)) {
144
- throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data['description']);
143
+ if (data["description"] && !(typeof data["description"] === "string" || data["description"] instanceof String)) {
144
+ throw new Error("Expected the field `description` to be a primitive type in the JSON string but got " + data["description"]);
145
145
  }
146
146
  // ensure the json data is a string
147
- if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
148
- throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
147
+ if (data["source_type"] && !(typeof data["source_type"] === "string" || data["source_type"] instanceof String)) {
148
+ throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data["source_type"]);
149
149
  }
150
150
  // ensure the json data is an array
151
- if (!Array.isArray(data['notefile_filter'])) {
152
- throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data['notefile_filter']);
151
+ if (!Array.isArray(data["notefile_filter"])) {
152
+ throw new Error("Expected the field `notefile_filter` to be an array in the JSON data but got " + data["notefile_filter"]);
153
153
  }
154
154
  // ensure the json data is an array
155
- if (!Array.isArray(data['fleet_filter'])) {
156
- throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data['fleet_filter']);
155
+ if (!Array.isArray(data["fleet_filter"])) {
156
+ throw new Error("Expected the field `fleet_filter` to be an array in the JSON data but got " + data["fleet_filter"]);
157
157
  }
158
158
  // ensure the json data is a string
159
- if (data['source_selector'] && !(typeof data['source_selector'] === 'string' || data['source_selector'] instanceof String)) {
160
- throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data['source_selector']);
159
+ if (data["source_selector"] && !(typeof data["source_selector"] === "string" || data["source_selector"] instanceof String)) {
160
+ throw new Error("Expected the field `source_selector` to be a primitive type in the JSON string but got " + data["source_selector"]);
161
161
  }
162
162
  // ensure the json data is a string
163
- if (data['condition_type'] && !(typeof data['condition_type'] === 'string' || data['condition_type'] instanceof String)) {
164
- throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data['condition_type']);
163
+ if (data["condition_type"] && !(typeof data["condition_type"] === "string" || data["condition_type"] instanceof String)) {
164
+ throw new Error("Expected the field `condition_type` to be a primitive type in the JSON string but got " + data["condition_type"]);
165
165
  }
166
- if (data['alert_routes']) {
166
+ if (data["alert_routes"]) {
167
167
  // data not null
168
168
  // ensure the json data is an array
169
- if (!Array.isArray(data['alert_routes'])) {
170
- throw new Error("Expected the field `alert_routes` to be an array in the JSON data but got " + data['alert_routes']);
169
+ if (!Array.isArray(data["alert_routes"])) {
170
+ throw new Error("Expected the field `alert_routes` to be an array in the JSON data but got " + data["alert_routes"]);
171
171
  }
172
172
  // validate the optional field `alert_routes` (array)
173
- var _iterator = _createForOfIteratorHelper(data['alert_routes']),
173
+ var _iterator = _createForOfIteratorHelper(data["alert_routes"]),
174
174
  _step;
175
175
  try {
176
176
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -182,23 +182,22 @@ var Monitor = /*#__PURE__*/function () {
182
182
  } finally {
183
183
  _iterator.f();
184
184
  }
185
- ;
186
185
  }
187
186
  // ensure the json data is a string
188
- if (data['last_routed_at'] && !(typeof data['last_routed_at'] === 'string' || data['last_routed_at'] instanceof String)) {
189
- throw new Error("Expected the field `last_routed_at` to be a primitive type in the JSON string but got " + data['last_routed_at']);
187
+ if (data["last_routed_at"] && !(typeof data["last_routed_at"] === "string" || data["last_routed_at"] instanceof String)) {
188
+ throw new Error("Expected the field `last_routed_at` to be a primitive type in the JSON string but got " + data["last_routed_at"]);
190
189
  }
191
190
  // ensure the json data is a string
192
- if (data['routing_cooldown_period'] && !(typeof data['routing_cooldown_period'] === 'string' || data['routing_cooldown_period'] instanceof String)) {
193
- throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data['routing_cooldown_period']);
191
+ if (data["routing_cooldown_period"] && !(typeof data["routing_cooldown_period"] === "string" || data["routing_cooldown_period"] instanceof String)) {
192
+ throw new Error("Expected the field `routing_cooldown_period` to be a primitive type in the JSON string but got " + data["routing_cooldown_period"]);
194
193
  }
195
194
  // ensure the json data is a string
196
- if (data['aggregate_function'] && !(typeof data['aggregate_function'] === 'string' || data['aggregate_function'] instanceof String)) {
197
- throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data['aggregate_function']);
195
+ if (data["aggregate_function"] && !(typeof data["aggregate_function"] === "string" || data["aggregate_function"] instanceof String)) {
196
+ throw new Error("Expected the field `aggregate_function` to be a primitive type in the JSON string but got " + data["aggregate_function"]);
198
197
  }
199
198
  // ensure the json data is a string
200
- if (data['aggregate_window'] && !(typeof data['aggregate_window'] === 'string' || data['aggregate_window'] instanceof String)) {
201
- throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data['aggregate_window']);
199
+ if (data["aggregate_window"] && !(typeof data["aggregate_window"] === "string" || data["aggregate_window"] instanceof String)) {
200
+ throw new Error("Expected the field `aggregate_window` to be a primitive type in the JSON string but got " + data["aggregate_window"]);
202
201
  }
203
202
  return true;
204
203
  }
@@ -207,116 +206,116 @@ var Monitor = /*#__PURE__*/function () {
207
206
  /**
208
207
  * @member {String} uid
209
208
  */
210
- Monitor.prototype['uid'] = undefined;
209
+ Monitor.prototype["uid"] = undefined;
211
210
 
212
211
  /**
213
212
  * @member {String} name
214
213
  */
215
- Monitor.prototype['name'] = undefined;
214
+ Monitor.prototype["name"] = undefined;
216
215
 
217
216
  /**
218
217
  * @member {String} description
219
218
  */
220
- Monitor.prototype['description'] = undefined;
219
+ Monitor.prototype["description"] = undefined;
221
220
 
222
221
  /**
223
222
  * The type of source to monitor. Currently only \"event\" is supported.
224
223
  * @member {module:model/Monitor.SourceTypeEnum} source_type
225
224
  */
226
- Monitor.prototype['source_type'] = undefined;
225
+ Monitor.prototype["source_type"] = undefined;
227
226
 
228
227
  /**
229
228
  * If true, the monitor will not be evaluated.
230
229
  * @member {Boolean} disabled
231
230
  */
232
- Monitor.prototype['disabled'] = undefined;
231
+ Monitor.prototype["disabled"] = undefined;
233
232
 
234
233
  /**
235
234
  * If true, the monitor is in alert state.
236
235
  * @member {Boolean} alert
237
236
  */
238
- Monitor.prototype['alert'] = undefined;
237
+ Monitor.prototype["alert"] = undefined;
239
238
 
240
239
  /**
241
240
  * @member {Array.<String>} notefile_filter
242
241
  */
243
- Monitor.prototype['notefile_filter'] = undefined;
242
+ Monitor.prototype["notefile_filter"] = undefined;
244
243
 
245
244
  /**
246
245
  * @member {Array.<String>} fleet_filter
247
246
  */
248
- Monitor.prototype['fleet_filter'] = undefined;
247
+ Monitor.prototype["fleet_filter"] = undefined;
249
248
 
250
249
  /**
251
250
  * A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
252
251
  * @member {String} source_selector
253
252
  */
254
- Monitor.prototype['source_selector'] = undefined;
253
+ Monitor.prototype["source_selector"] = undefined;
255
254
 
256
255
  /**
257
256
  * A comparison operation to apply to the value selected by the source_selector [greater_than, greater_than_or_equal_to, less_than, less_than_or_equal_to, equal_to, not_equal_to]
258
257
  * @member {module:model/Monitor.ConditionTypeEnum} condition_type
259
258
  */
260
- Monitor.prototype['condition_type'] = undefined;
259
+ Monitor.prototype["condition_type"] = undefined;
261
260
 
262
261
  /**
263
262
  * The type of condition to apply to the value selected by the source_selector
264
263
  * @member {Number} threshold
265
264
  */
266
- Monitor.prototype['threshold'] = undefined;
265
+ Monitor.prototype["threshold"] = undefined;
267
266
 
268
267
  /**
269
268
  * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
270
269
  */
271
- Monitor.prototype['alert_routes'] = undefined;
270
+ Monitor.prototype["alert_routes"] = undefined;
272
271
 
273
272
  /**
274
273
  * The last time the monitor was evaluated and routed.
275
274
  * @member {String} last_routed_at
276
275
  */
277
- Monitor.prototype['last_routed_at'] = undefined;
276
+ Monitor.prototype["last_routed_at"] = undefined;
278
277
 
279
278
  /**
280
279
  * If true, alerts will be created, but no notifications will be sent.
281
280
  * @member {Boolean} silenced
282
281
  */
283
- Monitor.prototype['silenced'] = undefined;
282
+ Monitor.prototype["silenced"] = undefined;
284
283
 
285
284
  /**
286
285
  * The time period to wait before routing another event after the monitor | has been triggered. It follows the format of a number followed by a time unit.
287
286
  * @member {String} routing_cooldown_period
288
287
  */
289
- Monitor.prototype['routing_cooldown_period'] = undefined;
288
+ Monitor.prototype["routing_cooldown_period"] = undefined;
290
289
 
291
290
  /**
292
291
  * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
293
292
  * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
294
293
  */
295
- Monitor.prototype['aggregate_function'] = undefined;
294
+ Monitor.prototype["aggregate_function"] = undefined;
296
295
 
297
296
  /**
298
297
  * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
299
298
  * @member {String} aggregate_window
300
299
  */
301
- Monitor.prototype['aggregate_window'] = undefined;
300
+ Monitor.prototype["aggregate_window"] = undefined;
302
301
 
303
302
  /**
304
303
  * Only relevant when using an aggregate_function. If true, the monitor will be evaluated per device, | rather than across the set of selected devices. If true then if a single device matches the specified criteria, | and alert will be created, otherwise the aggregate function will be applied across all devices.
305
304
  * @member {Boolean} per_device
306
305
  */
307
- Monitor.prototype['per_device'] = undefined;
306
+ Monitor.prototype["per_device"] = undefined;
308
307
 
309
308
  /**
310
309
  * Allowed values for the <code>source_type</code> property.
311
310
  * @enum {String}
312
311
  * @readonly
313
312
  */
314
- Monitor['SourceTypeEnum'] = {
313
+ Monitor["SourceTypeEnum"] = {
315
314
  /**
316
315
  * value: "event"
317
316
  * @const
318
317
  */
319
- "event": "event"
318
+ event: "event"
320
319
  };
321
320
 
322
321
  /**
@@ -324,37 +323,37 @@ Monitor['SourceTypeEnum'] = {
324
323
  * @enum {String}
325
324
  * @readonly
326
325
  */
327
- Monitor['ConditionTypeEnum'] = {
326
+ Monitor["ConditionTypeEnum"] = {
328
327
  /**
329
328
  * value: "greater_than"
330
329
  * @const
331
330
  */
332
- "greater_than": "greater_than",
331
+ greater_than: "greater_than",
333
332
  /**
334
333
  * value: "greater_than_or_equal_to"
335
334
  * @const
336
335
  */
337
- "greater_than_or_equal_to": "greater_than_or_equal_to",
336
+ greater_than_or_equal_to: "greater_than_or_equal_to",
338
337
  /**
339
338
  * value: "less_than"
340
339
  * @const
341
340
  */
342
- "less_than": "less_than",
341
+ less_than: "less_than",
343
342
  /**
344
343
  * value: "less_than_or_equal_to"
345
344
  * @const
346
345
  */
347
- "less_than_or_equal_to": "less_than_or_equal_to",
346
+ less_than_or_equal_to: "less_than_or_equal_to",
348
347
  /**
349
348
  * value: "equal_to"
350
349
  * @const
351
350
  */
352
- "equal_to": "equal_to",
351
+ equal_to: "equal_to",
353
352
  /**
354
353
  * value: "not_equal_to"
355
354
  * @const
356
355
  */
357
- "not_equal_to": "not_equal_to"
356
+ not_equal_to: "not_equal_to"
358
357
  };
359
358
 
360
359
  /**
@@ -362,31 +361,31 @@ Monitor['ConditionTypeEnum'] = {
362
361
  * @enum {String}
363
362
  * @readonly
364
363
  */
365
- Monitor['AggregateFunctionEnum'] = {
364
+ Monitor["AggregateFunctionEnum"] = {
366
365
  /**
367
366
  * value: "none"
368
367
  * @const
369
368
  */
370
- "none": "none",
369
+ none: "none",
371
370
  /**
372
371
  * value: "sum"
373
372
  * @const
374
373
  */
375
- "sum": "sum",
374
+ sum: "sum",
376
375
  /**
377
376
  * value: "average"
378
377
  * @const
379
378
  */
380
- "average": "average",
379
+ average: "average",
381
380
  /**
382
381
  * value: "max"
383
382
  * @const
384
383
  */
385
- "max": "max",
384
+ max: "max",
386
385
  /**
387
386
  * value: "min"
388
387
  * @const
389
388
  */
390
- "min": "min"
389
+ min: "min"
391
390
  };
392
391
  var _default = exports["default"] = Monitor;
@@ -18,7 +18,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
18
18
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
19
19
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
20
20
  * Notehub API
21
- * The OpenAPI definition for the Notehub.io API.
21
+ * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
23
  * The version of the OpenAPI document: 1.2.0
24
24
  * Contact: engineering@blues.io
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The MonitorAlertRoutesInner model module.
33
33
  * @module model/MonitorAlertRoutesInner
34
- * @version 1.0.36-beta.9
34
+ * @version 1.0.37
35
35
  */
36
36
  var MonitorAlertRoutesInner = /*#__PURE__*/function () {
37
37
  /**
@@ -105,7 +105,8 @@ var MonitorAlertRoutesInner = /*#__PURE__*/function () {
105
105
  } else if (match === 0) {
106
106
  this.actualInstance = null; // clear the actual instance in case there are multiple matches
107
107
  throw new Error("No match found constructing `MonitorAlertRoutesInner` with oneOf schemas EmailNotification, SlackBearerNotification, SlackWebHookNotification. Details: " + errorMessages.join(", "));
108
- } else {// only 1 match
108
+ } else {
109
+ // only 1 match
109
110
  // the input is valid
110
111
  }
111
112
  }
@@ -157,36 +158,36 @@ _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
157
158
  _defineProperty(MonitorAlertRoutesInner, "fromJSON", function (json_string) {
158
159
  return _MonitorAlertRoutesInner.constructFromObject(JSON.parse(json_string));
159
160
  });
160
- MonitorAlertRoutesInner.prototype['url'] = undefined;
161
+ MonitorAlertRoutesInner.prototype["url"] = undefined;
161
162
 
162
163
  /**
163
164
  * text or blocks
164
165
  * @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
165
166
  */
166
- MonitorAlertRoutesInner.prototype['message_type'] = undefined;
167
+ MonitorAlertRoutesInner.prototype["message_type"] = undefined;
167
168
 
168
169
  /**
169
170
  * The text of the message, or the blocks definition
170
171
  * @member {String} text
171
172
  */
172
- MonitorAlertRoutesInner.prototype['text'] = undefined;
173
+ MonitorAlertRoutesInner.prototype["text"] = undefined;
173
174
 
174
175
  /**
175
176
  * The bearer token for the Slack app.
176
177
  * @member {String} token
177
178
  */
178
- MonitorAlertRoutesInner.prototype['token'] = undefined;
179
+ MonitorAlertRoutesInner.prototype["token"] = undefined;
179
180
 
180
181
  /**
181
182
  * The channel to send the message to.
182
183
  * @member {String} channel
183
184
  */
184
- MonitorAlertRoutesInner.prototype['channel'] = undefined;
185
+ MonitorAlertRoutesInner.prototype["channel"] = undefined;
185
186
 
186
187
  /**
187
188
  * Email Address
188
189
  * @member {String} email
189
190
  */
190
- MonitorAlertRoutesInner.prototype['email'] = undefined;
191
+ MonitorAlertRoutesInner.prototype["email"] = undefined;
191
192
  MonitorAlertRoutesInner.OneOf = ["EmailNotification", "SlackBearerNotification", "SlackWebHookNotification"];
192
193
  var _default = exports["default"] = MonitorAlertRoutesInner;