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

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 (131) hide show
  1. package/README.md +232 -227
  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 +42 -7
  14. package/dist/model/Alert.js +76 -74
  15. package/dist/model/AlertDataInner.js +35 -35
  16. package/dist/model/AlertNotificationsInner.js +18 -18
  17. package/dist/model/AnalyticsEventsData.js +130 -0
  18. package/dist/model/AnalyticsEventsResponse.js +132 -0
  19. package/dist/model/AnalyticsRouteLogsData.js +140 -0
  20. package/dist/model/AnalyticsRouteLogsResponse.js +132 -0
  21. package/dist/model/AnalyticsSessionsData.js +140 -0
  22. package/dist/model/AnalyticsSessionsResponse.js +132 -0
  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 +126 -125
  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 +30 -29
  40. package/dist/model/DataSetField.js +19 -19
  41. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  42. package/dist/model/Device.js +102 -101
  43. package/dist/model/DeviceDfuHistory.js +20 -19
  44. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  45. package/dist/model/DeviceDfuStateMachine.js +25 -24
  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 +13 -12
  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 +69 -67
  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 +15 -14
  64. package/dist/model/GetBillingAccounts200Response.js +10 -9
  65. package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
  66. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  67. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  68. package/dist/model/GetDeviceLatest200Response.js +10 -9
  69. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  70. package/dist/model/GetDeviceSessions200Response.js +17 -16
  71. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  72. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  73. package/dist/model/GetProjectDevices200Response.js +17 -16
  74. package/dist/model/GetProjectEvents200Response.js +21 -20
  75. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  76. package/dist/model/GetProjectFleets200Response.js +12 -11
  77. package/dist/model/GetProjectMembers200Response.js +12 -11
  78. package/dist/model/GetProjectProducts200Response.js +10 -9
  79. package/dist/model/GetProjects200Response.js +10 -9
  80. package/dist/model/GetWebhooks200Response.js +10 -9
  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 +100 -99
  95. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  96. package/dist/model/Mqtt.js +66 -66
  97. package/dist/model/Note.js +10 -10
  98. package/dist/model/NotefileSchema.js +19 -18
  99. package/dist/model/NotehubRoute.js +36 -36
  100. package/dist/model/NotehubRouteSchema.js +45 -46
  101. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  102. package/dist/model/Product.js +26 -26
  103. package/dist/model/Project.js +34 -34
  104. package/dist/model/ProjectMember.js +22 -22
  105. package/dist/model/Proxy.js +24 -24
  106. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  107. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  108. package/dist/model/QuestionDataResponseMap.js +16 -16
  109. package/dist/model/Radresponder.js +25 -25
  110. package/dist/model/Repository.js +22 -22
  111. package/dist/model/Role.js +9 -9
  112. package/dist/model/RouteLog.js +38 -38
  113. package/dist/model/SchemaProperty.js +40 -38
  114. package/dist/model/SimUsage.js +50 -19
  115. package/dist/model/Slack.js +53 -53
  116. package/dist/model/SlackBearerNotification.js +25 -25
  117. package/dist/model/SlackWebHookNotification.js +20 -20
  118. package/dist/model/Snowflake.js +45 -45
  119. package/dist/model/SnowflakeTransform.js +12 -12
  120. package/dist/model/Thingworx.js +33 -33
  121. package/dist/model/TowerLocation.js +54 -54
  122. package/dist/model/Twilio.js +43 -43
  123. package/dist/model/UpdateFleetRequest.js +25 -25
  124. package/dist/model/UploadMetadata.js +59 -59
  125. package/dist/model/UserDbRoute.js +25 -25
  126. package/dist/model/UserDfuStateMachine.js +20 -20
  127. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  128. package/dist/model/UserFirmwareInfo.js +12 -12
  129. package/dist/model/WebhookSettings.js +15 -15
  130. package/package.json +3 -3
  131. package/dist/api/RepositoryApi.js +0 -605
@@ -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
29
+ * @version 1.0.37-beta.1
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
33
+ * @version 1.0.37-beta.1
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,22 +182,23 @@ var Monitor = /*#__PURE__*/function () {
182
182
  } finally {
183
183
  _iterator.f();
184
184
  }
185
+ ;
185
186
  }
186
187
  // ensure the json data is a string
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"]);
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']);
189
190
  }
190
191
  // ensure the json data is a string
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"]);
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']);
193
194
  }
194
195
  // ensure the json data is a string
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"]);
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']);
197
198
  }
198
199
  // ensure the json data is a string
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"]);
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']);
201
202
  }
202
203
  return true;
203
204
  }
@@ -206,116 +207,116 @@ var Monitor = /*#__PURE__*/function () {
206
207
  /**
207
208
  * @member {String} uid
208
209
  */
209
- Monitor.prototype["uid"] = undefined;
210
+ Monitor.prototype['uid'] = undefined;
210
211
 
211
212
  /**
212
213
  * @member {String} name
213
214
  */
214
- Monitor.prototype["name"] = undefined;
215
+ Monitor.prototype['name'] = undefined;
215
216
 
216
217
  /**
217
218
  * @member {String} description
218
219
  */
219
- Monitor.prototype["description"] = undefined;
220
+ Monitor.prototype['description'] = undefined;
220
221
 
221
222
  /**
222
223
  * The type of source to monitor. Currently only \"event\" is supported.
223
224
  * @member {module:model/Monitor.SourceTypeEnum} source_type
224
225
  */
225
- Monitor.prototype["source_type"] = undefined;
226
+ Monitor.prototype['source_type'] = undefined;
226
227
 
227
228
  /**
228
229
  * If true, the monitor will not be evaluated.
229
230
  * @member {Boolean} disabled
230
231
  */
231
- Monitor.prototype["disabled"] = undefined;
232
+ Monitor.prototype['disabled'] = undefined;
232
233
 
233
234
  /**
234
235
  * If true, the monitor is in alert state.
235
236
  * @member {Boolean} alert
236
237
  */
237
- Monitor.prototype["alert"] = undefined;
238
+ Monitor.prototype['alert'] = undefined;
238
239
 
239
240
  /**
240
241
  * @member {Array.<String>} notefile_filter
241
242
  */
242
- Monitor.prototype["notefile_filter"] = undefined;
243
+ Monitor.prototype['notefile_filter'] = undefined;
243
244
 
244
245
  /**
245
246
  * @member {Array.<String>} fleet_filter
246
247
  */
247
- Monitor.prototype["fleet_filter"] = undefined;
248
+ Monitor.prototype['fleet_filter'] = undefined;
248
249
 
249
250
  /**
250
251
  * A valid JSONata expression that selects the value to monitor from the source. | It should return a single, numeric value.
251
252
  * @member {String} source_selector
252
253
  */
253
- Monitor.prototype["source_selector"] = undefined;
254
+ Monitor.prototype['source_selector'] = undefined;
254
255
 
255
256
  /**
256
257
  * 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]
257
258
  * @member {module:model/Monitor.ConditionTypeEnum} condition_type
258
259
  */
259
- Monitor.prototype["condition_type"] = undefined;
260
+ Monitor.prototype['condition_type'] = undefined;
260
261
 
261
262
  /**
262
263
  * The type of condition to apply to the value selected by the source_selector
263
264
  * @member {Number} threshold
264
265
  */
265
- Monitor.prototype["threshold"] = undefined;
266
+ Monitor.prototype['threshold'] = undefined;
266
267
 
267
268
  /**
268
269
  * @member {Array.<module:model/MonitorAlertRoutesInner>} alert_routes
269
270
  */
270
- Monitor.prototype["alert_routes"] = undefined;
271
+ Monitor.prototype['alert_routes'] = undefined;
271
272
 
272
273
  /**
273
274
  * The last time the monitor was evaluated and routed.
274
275
  * @member {String} last_routed_at
275
276
  */
276
- Monitor.prototype["last_routed_at"] = undefined;
277
+ Monitor.prototype['last_routed_at'] = undefined;
277
278
 
278
279
  /**
279
280
  * If true, alerts will be created, but no notifications will be sent.
280
281
  * @member {Boolean} silenced
281
282
  */
282
- Monitor.prototype["silenced"] = undefined;
283
+ Monitor.prototype['silenced'] = undefined;
283
284
 
284
285
  /**
285
286
  * 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.
286
287
  * @member {String} routing_cooldown_period
287
288
  */
288
- Monitor.prototype["routing_cooldown_period"] = undefined;
289
+ Monitor.prototype['routing_cooldown_period'] = undefined;
289
290
 
290
291
  /**
291
292
  * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
292
293
  * @member {module:model/Monitor.AggregateFunctionEnum} aggregate_function
293
294
  */
294
- Monitor.prototype["aggregate_function"] = undefined;
295
+ Monitor.prototype['aggregate_function'] = undefined;
295
296
 
296
297
  /**
297
298
  * The time window to aggregate the selected values. It follows the format of a number followed by a time unit
298
299
  * @member {String} aggregate_window
299
300
  */
300
- Monitor.prototype["aggregate_window"] = undefined;
301
+ Monitor.prototype['aggregate_window'] = undefined;
301
302
 
302
303
  /**
303
304
  * 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.
304
305
  * @member {Boolean} per_device
305
306
  */
306
- Monitor.prototype["per_device"] = undefined;
307
+ Monitor.prototype['per_device'] = undefined;
307
308
 
308
309
  /**
309
310
  * Allowed values for the <code>source_type</code> property.
310
311
  * @enum {String}
311
312
  * @readonly
312
313
  */
313
- Monitor["SourceTypeEnum"] = {
314
+ Monitor['SourceTypeEnum'] = {
314
315
  /**
315
316
  * value: "event"
316
317
  * @const
317
318
  */
318
- event: "event"
319
+ "event": "event"
319
320
  };
320
321
 
321
322
  /**
@@ -323,37 +324,37 @@ Monitor["SourceTypeEnum"] = {
323
324
  * @enum {String}
324
325
  * @readonly
325
326
  */
326
- Monitor["ConditionTypeEnum"] = {
327
+ Monitor['ConditionTypeEnum'] = {
327
328
  /**
328
329
  * value: "greater_than"
329
330
  * @const
330
331
  */
331
- greater_than: "greater_than",
332
+ "greater_than": "greater_than",
332
333
  /**
333
334
  * value: "greater_than_or_equal_to"
334
335
  * @const
335
336
  */
336
- greater_than_or_equal_to: "greater_than_or_equal_to",
337
+ "greater_than_or_equal_to": "greater_than_or_equal_to",
337
338
  /**
338
339
  * value: "less_than"
339
340
  * @const
340
341
  */
341
- less_than: "less_than",
342
+ "less_than": "less_than",
342
343
  /**
343
344
  * value: "less_than_or_equal_to"
344
345
  * @const
345
346
  */
346
- less_than_or_equal_to: "less_than_or_equal_to",
347
+ "less_than_or_equal_to": "less_than_or_equal_to",
347
348
  /**
348
349
  * value: "equal_to"
349
350
  * @const
350
351
  */
351
- equal_to: "equal_to",
352
+ "equal_to": "equal_to",
352
353
  /**
353
354
  * value: "not_equal_to"
354
355
  * @const
355
356
  */
356
- not_equal_to: "not_equal_to"
357
+ "not_equal_to": "not_equal_to"
357
358
  };
358
359
 
359
360
  /**
@@ -361,31 +362,31 @@ Monitor["ConditionTypeEnum"] = {
361
362
  * @enum {String}
362
363
  * @readonly
363
364
  */
364
- Monitor["AggregateFunctionEnum"] = {
365
+ Monitor['AggregateFunctionEnum'] = {
365
366
  /**
366
367
  * value: "none"
367
368
  * @const
368
369
  */
369
- none: "none",
370
+ "none": "none",
370
371
  /**
371
372
  * value: "sum"
372
373
  * @const
373
374
  */
374
- sum: "sum",
375
+ "sum": "sum",
375
376
  /**
376
377
  * value: "average"
377
378
  * @const
378
379
  */
379
- average: "average",
380
+ "average": "average",
380
381
  /**
381
382
  * value: "max"
382
383
  * @const
383
384
  */
384
- max: "max",
385
+ "max": "max",
385
386
  /**
386
387
  * value: "min"
387
388
  * @const
388
389
  */
389
- min: "min"
390
+ "min": "min"
390
391
  };
391
392
  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
34
+ * @version 1.0.37-beta.1
35
35
  */
36
36
  var MonitorAlertRoutesInner = /*#__PURE__*/function () {
37
37
  /**
@@ -105,8 +105,7 @@ 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 {
109
- // only 1 match
108
+ } else {// only 1 match
110
109
  // the input is valid
111
110
  }
112
111
  }
@@ -158,36 +157,36 @@ _MonitorAlertRoutesInner = MonitorAlertRoutesInner;
158
157
  _defineProperty(MonitorAlertRoutesInner, "fromJSON", function (json_string) {
159
158
  return _MonitorAlertRoutesInner.constructFromObject(JSON.parse(json_string));
160
159
  });
161
- MonitorAlertRoutesInner.prototype["url"] = undefined;
160
+ MonitorAlertRoutesInner.prototype['url'] = undefined;
162
161
 
163
162
  /**
164
163
  * text or blocks
165
164
  * @member {module:model/MonitorAlertRoutesInner.MessageTypeEnum} message_type
166
165
  */
167
- MonitorAlertRoutesInner.prototype["message_type"] = undefined;
166
+ MonitorAlertRoutesInner.prototype['message_type'] = undefined;
168
167
 
169
168
  /**
170
169
  * The text of the message, or the blocks definition
171
170
  * @member {String} text
172
171
  */
173
- MonitorAlertRoutesInner.prototype["text"] = undefined;
172
+ MonitorAlertRoutesInner.prototype['text'] = undefined;
174
173
 
175
174
  /**
176
175
  * The bearer token for the Slack app.
177
176
  * @member {String} token
178
177
  */
179
- MonitorAlertRoutesInner.prototype["token"] = undefined;
178
+ MonitorAlertRoutesInner.prototype['token'] = undefined;
180
179
 
181
180
  /**
182
181
  * The channel to send the message to.
183
182
  * @member {String} channel
184
183
  */
185
- MonitorAlertRoutesInner.prototype["channel"] = undefined;
184
+ MonitorAlertRoutesInner.prototype['channel'] = undefined;
186
185
 
187
186
  /**
188
187
  * Email Address
189
188
  * @member {String} email
190
189
  */
191
- MonitorAlertRoutesInner.prototype["email"] = undefined;
190
+ MonitorAlertRoutesInner.prototype['email'] = undefined;
192
191
  MonitorAlertRoutesInner.OneOf = ["EmailNotification", "SlackBearerNotification", "SlackWebHookNotification"];
193
192
  var _default = exports["default"] = MonitorAlertRoutesInner;