@blues-inc/notehub-js 1.0.37-beta.6 → 1.0.37-beta.8

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 (132) hide show
  1. package/README.md +7 -10
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/WebhookApi.js +1 -1
  13. package/dist/index.js +38 -59
  14. package/dist/model/Alert.js +91 -91
  15. package/dist/model/AlertDataInner.js +10 -10
  16. package/dist/model/AlertNotificationsInner.js +10 -10
  17. package/dist/model/AnalyticsEventsData.js +14 -14
  18. package/dist/model/AnalyticsEventsResponse.js +1 -1
  19. package/dist/model/AnalyticsRouteLogsData.js +15 -15
  20. package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
  21. package/dist/model/AnalyticsSessionsData.js +14 -14
  22. package/dist/model/AnalyticsSessionsResponse.js +1 -1
  23. package/dist/model/Aws.js +86 -86
  24. package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
  25. package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
  26. package/dist/model/Azure.js +51 -51
  27. package/dist/model/BillingAccount.js +19 -19
  28. package/dist/model/Body.js +1 -1
  29. package/dist/model/CloneProjectRequest.js +25 -25
  30. package/dist/model/Contact.js +19 -19
  31. package/dist/model/CreateFleetRequest.js +1 -1
  32. package/dist/model/CreateMonitor.js +186 -186
  33. package/dist/model/CreateProductRequest.js +30 -30
  34. package/dist/model/CreateProjectRequest.js +20 -20
  35. package/dist/model/CreateUpdateRepository.js +18 -18
  36. package/dist/model/CurrentFirmware.js +12 -12
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +60 -60
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSetField.js +14 -14
  41. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  42. package/dist/model/Device.js +134 -134
  43. package/dist/model/DeviceDfuHistory.js +15 -15
  44. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
  45. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  46. package/dist/model/DeviceDfuStateMachine.js +14 -14
  47. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  48. package/dist/model/DeviceDfuStatus.js +15 -15
  49. package/dist/model/DeviceDfuStatusPage.js +1 -1
  50. package/dist/model/DeviceSession.js +278 -278
  51. package/dist/model/DeviceTowerInfo.js +15 -15
  52. package/dist/model/DeviceUsage.js +36 -36
  53. package/dist/model/DfuActionRequest.js +1 -1
  54. package/dist/model/EmailNotification.js +1 -1
  55. package/dist/model/EnvTreeJsonNode.js +76 -76
  56. package/dist/model/EnvVar.js +9 -9
  57. package/dist/model/EnvironmentVariables.js +1 -1
  58. package/dist/model/Error.js +38 -38
  59. package/dist/model/Event.js +340 -340
  60. package/dist/model/Firmware.js +45 -45
  61. package/dist/model/FirmwareInfo.js +71 -71
  62. package/dist/model/Fleet.js +31 -31
  63. package/dist/model/GetAlerts200Response.js +1 -1
  64. package/dist/model/GetBillingAccounts200Response.js +1 -1
  65. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
  66. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
  67. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  68. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  69. package/dist/model/GetDeviceLatest200Response.js +1 -1
  70. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  71. package/dist/model/GetDeviceSessions200Response.js +14 -14
  72. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  73. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  74. package/dist/model/GetProjectDevices200Response.js +1 -1
  75. package/dist/model/GetProjectEvents200Response.js +1 -1
  76. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  77. package/dist/model/GetProjectMembers200Response.js +1 -1
  78. package/dist/model/GetProjectProducts200Response.js +1 -1
  79. package/dist/model/GetProjects200Response.js +1 -1
  80. package/dist/model/GetWebhooks200Response.js +1 -1
  81. package/dist/model/Google.js +35 -35
  82. package/dist/model/HandleNoteChanges200Response.js +10 -10
  83. package/dist/model/HandleNoteGet200Response.js +1 -1
  84. package/dist/model/HandleNoteSignal200Response.js +1 -1
  85. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  86. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  87. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  88. package/dist/model/Http.js +43 -43
  89. package/dist/model/Location.js +38 -38
  90. package/dist/model/Login200Response.js +1 -1
  91. package/dist/model/LoginRequest.js +12 -12
  92. package/dist/model/Monitor.js +135 -135
  93. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  94. package/dist/model/Mqtt.js +91 -91
  95. package/dist/model/Note.js +1 -1
  96. package/dist/model/NotefileSchema.js +1 -1
  97. package/dist/model/NotehubRoute.js +30 -30
  98. package/dist/model/NotehubRouteSchema.js +80 -80
  99. package/dist/model/PersonalAccessToken.js +37 -37
  100. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  101. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  102. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  103. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  104. package/dist/model/Product.js +29 -29
  105. package/dist/model/Project.js +35 -35
  106. package/dist/model/ProjectMember.js +19 -19
  107. package/dist/model/Proxy.js +21 -21
  108. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  109. package/dist/model/Radresponder.js +28 -28
  110. package/dist/model/Repository.js +22 -22
  111. package/dist/model/RouteLog.js +28 -28
  112. package/dist/model/SchemaProperty.js +34 -36
  113. package/dist/model/SimUsage.js +19 -72
  114. package/dist/model/Slack.js +71 -71
  115. package/dist/model/SlackBearerNotification.js +14 -14
  116. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
  117. package/dist/model/SlackWebHookNotification.js +14 -14
  118. package/dist/model/Snowflake.js +57 -57
  119. package/dist/model/Thingworx.js +36 -36
  120. package/dist/model/TowerLocation.js +58 -58
  121. package/dist/model/Twilio.js +46 -46
  122. package/dist/model/UpdateFleetRequest.js +14 -14
  123. package/dist/model/UploadMetadata.js +68 -68
  124. package/dist/model/UserDbRoute.js +26 -26
  125. package/dist/model/UserDfuStateMachine.js +14 -14
  126. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  127. package/dist/model/UserFirmwareInfo.js +1 -1
  128. package/dist/model/WebhookSettings.js +1 -1
  129. package/package.json +1 -1
  130. package/dist/model/DataSet.js +0 -164
  131. package/dist/model/QuestionDataResponseLineChart.js +0 -204
  132. package/dist/model/QuestionDataResponseMap.js +0 -143
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 1.0.37-beta.6
34
+ * @version 1.0.37-beta.8
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -64,47 +64,47 @@ var Alert = /*#__PURE__*/function () {
64
64
  value: function constructFromObject(data, obj) {
65
65
  if (data) {
66
66
  obj = obj || new Alert();
67
- if (data.hasOwnProperty('uid')) {
68
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
67
+ if (data.hasOwnProperty('alert_source')) {
68
+ obj['alert_source'] = _ApiClient["default"].convertToType(data['alert_source'], 'String');
69
69
  }
70
- if (data.hasOwnProperty('monitor_uid')) {
71
- obj['monitor_uid'] = _ApiClient["default"].convertToType(data['monitor_uid'], 'String');
70
+ if (data.hasOwnProperty('created_at')) {
71
+ obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number');
72
72
  }
73
- if (data.hasOwnProperty('monitor_name')) {
74
- obj['monitor_name'] = _ApiClient["default"].convertToType(data['monitor_name'], 'String');
73
+ if (data.hasOwnProperty('data')) {
74
+ obj['data'] = _ApiClient["default"].convertToType(data['data'], [_AlertDataInner["default"]]);
75
75
  }
76
76
  if (data.hasOwnProperty('device_uid')) {
77
77
  obj['device_uid'] = _ApiClient["default"].convertToType(data['device_uid'], 'String');
78
78
  }
79
- if (data.hasOwnProperty('created_at')) {
80
- obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number');
79
+ if (data.hasOwnProperty('field_name')) {
80
+ obj['field_name'] = _ApiClient["default"].convertToType(data['field_name'], 'String');
81
81
  }
82
- if (data.hasOwnProperty('value')) {
83
- obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
82
+ if (data.hasOwnProperty('monitor_name')) {
83
+ obj['monitor_name'] = _ApiClient["default"].convertToType(data['monitor_name'], 'String');
84
84
  }
85
- if (data.hasOwnProperty('resolved')) {
86
- obj['resolved'] = _ApiClient["default"].convertToType(data['resolved'], 'Boolean');
85
+ if (data.hasOwnProperty('monitor_type')) {
86
+ obj['monitor_type'] = _ApiClient["default"].convertToType(data['monitor_type'], 'String');
87
87
  }
88
- if (data.hasOwnProperty('version')) {
89
- obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number');
88
+ if (data.hasOwnProperty('monitor_uid')) {
89
+ obj['monitor_uid'] = _ApiClient["default"].convertToType(data['monitor_uid'], 'String');
90
90
  }
91
- if (data.hasOwnProperty('alert_source')) {
92
- obj['alert_source'] = _ApiClient["default"].convertToType(data['alert_source'], 'String');
91
+ if (data.hasOwnProperty('notifications')) {
92
+ obj['notifications'] = _ApiClient["default"].convertToType(data['notifications'], [_AlertNotificationsInner["default"]]);
93
+ }
94
+ if (data.hasOwnProperty('resolved')) {
95
+ obj['resolved'] = _ApiClient["default"].convertToType(data['resolved'], 'Boolean');
93
96
  }
94
97
  if (data.hasOwnProperty('source')) {
95
98
  obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
96
99
  }
97
- if (data.hasOwnProperty('monitor_type')) {
98
- obj['monitor_type'] = _ApiClient["default"].convertToType(data['monitor_type'], 'String');
99
- }
100
- if (data.hasOwnProperty('field_name')) {
101
- obj['field_name'] = _ApiClient["default"].convertToType(data['field_name'], 'String');
100
+ if (data.hasOwnProperty('uid')) {
101
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
102
102
  }
103
- if (data.hasOwnProperty('data')) {
104
- obj['data'] = _ApiClient["default"].convertToType(data['data'], [_AlertDataInner["default"]]);
103
+ if (data.hasOwnProperty('value')) {
104
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
105
105
  }
106
- if (data.hasOwnProperty('notifications')) {
107
- obj['notifications'] = _ApiClient["default"].convertToType(data['notifications'], [_AlertNotificationsInner["default"]]);
106
+ if (data.hasOwnProperty('version')) {
107
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'Number');
108
108
  }
109
109
  } else if (data === null) {
110
110
  return null;
@@ -120,38 +120,10 @@ var Alert = /*#__PURE__*/function () {
120
120
  }, {
121
121
  key: "validateJSON",
122
122
  value: function validateJSON(data) {
123
- // ensure the json data is a string
124
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
125
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
126
- }
127
- // ensure the json data is a string
128
- if (data['monitor_uid'] && !(typeof data['monitor_uid'] === 'string' || data['monitor_uid'] instanceof String)) {
129
- throw new Error("Expected the field `monitor_uid` to be a primitive type in the JSON string but got " + data['monitor_uid']);
130
- }
131
- // ensure the json data is a string
132
- if (data['monitor_name'] && !(typeof data['monitor_name'] === 'string' || data['monitor_name'] instanceof String)) {
133
- throw new Error("Expected the field `monitor_name` to be a primitive type in the JSON string but got " + data['monitor_name']);
134
- }
135
- // ensure the json data is a string
136
- if (data['device_uid'] && !(typeof data['device_uid'] === 'string' || data['device_uid'] instanceof String)) {
137
- throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data['device_uid']);
138
- }
139
123
  // ensure the json data is a string
140
124
  if (data['alert_source'] && !(typeof data['alert_source'] === 'string' || data['alert_source'] instanceof String)) {
141
125
  throw new Error("Expected the field `alert_source` to be a primitive type in the JSON string but got " + data['alert_source']);
142
126
  }
143
- // ensure the json data is a string
144
- if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
145
- throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
146
- }
147
- // ensure the json data is a string
148
- if (data['monitor_type'] && !(typeof data['monitor_type'] === 'string' || data['monitor_type'] instanceof String)) {
149
- throw new Error("Expected the field `monitor_type` to be a primitive type in the JSON string but got " + data['monitor_type']);
150
- }
151
- // ensure the json data is a string
152
- if (data['field_name'] && !(typeof data['field_name'] === 'string' || data['field_name'] instanceof String)) {
153
- throw new Error("Expected the field `field_name` to be a primitive type in the JSON string but got " + data['field_name']);
154
- }
155
127
  if (data['data']) {
156
128
  // data not null
157
129
  // ensure the json data is an array
@@ -173,6 +145,26 @@ var Alert = /*#__PURE__*/function () {
173
145
  }
174
146
  ;
175
147
  }
148
+ // ensure the json data is a string
149
+ if (data['device_uid'] && !(typeof data['device_uid'] === 'string' || data['device_uid'] instanceof String)) {
150
+ throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data['device_uid']);
151
+ }
152
+ // ensure the json data is a string
153
+ if (data['field_name'] && !(typeof data['field_name'] === 'string' || data['field_name'] instanceof String)) {
154
+ throw new Error("Expected the field `field_name` to be a primitive type in the JSON string but got " + data['field_name']);
155
+ }
156
+ // ensure the json data is a string
157
+ if (data['monitor_name'] && !(typeof data['monitor_name'] === 'string' || data['monitor_name'] instanceof String)) {
158
+ throw new Error("Expected the field `monitor_name` to be a primitive type in the JSON string but got " + data['monitor_name']);
159
+ }
160
+ // ensure the json data is a string
161
+ if (data['monitor_type'] && !(typeof data['monitor_type'] === 'string' || data['monitor_type'] instanceof String)) {
162
+ throw new Error("Expected the field `monitor_type` to be a primitive type in the JSON string but got " + data['monitor_type']);
163
+ }
164
+ // ensure the json data is a string
165
+ if (data['monitor_uid'] && !(typeof data['monitor_uid'] === 'string' || data['monitor_uid'] instanceof String)) {
166
+ throw new Error("Expected the field `monitor_uid` to be a primitive type in the JSON string but got " + data['monitor_uid']);
167
+ }
176
168
  if (data['notifications']) {
177
169
  // data not null
178
170
  // ensure the json data is an array
@@ -194,27 +186,34 @@ var Alert = /*#__PURE__*/function () {
194
186
  }
195
187
  ;
196
188
  }
189
+ // ensure the json data is a string
190
+ if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
191
+ throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
192
+ }
193
+ // ensure the json data is a string
194
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
195
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
196
+ }
197
197
  return true;
198
198
  }
199
199
  }]);
200
200
  }();
201
201
  /**
202
- * Alert UID
203
- * @member {String} uid
202
+ * The source of the alert
203
+ * @member {module:model/Alert.AlertSourceEnum} alert_source
204
204
  */
205
- Alert.prototype['uid'] = undefined;
205
+ Alert.prototype['alert_source'] = undefined;
206
206
 
207
207
  /**
208
- * Monitor UID
209
- * @member {String} monitor_uid
208
+ * The time the alert was created
209
+ * @member {Number} created_at
210
210
  */
211
- Alert.prototype['monitor_uid'] = undefined;
211
+ Alert.prototype['created_at'] = undefined;
212
212
 
213
213
  /**
214
- * Monitor Name
215
- * @member {String} monitor_name
214
+ * @member {Array.<module:model/AlertDataInner>} data
216
215
  */
217
- Alert.prototype['monitor_name'] = undefined;
216
+ Alert.prototype['data'] = undefined;
218
217
 
219
218
  /**
220
219
  * Device UID
@@ -223,62 +222,63 @@ Alert.prototype['monitor_name'] = undefined;
223
222
  Alert.prototype['device_uid'] = undefined;
224
223
 
225
224
  /**
226
- * The time the alert was created
227
- * @member {Number} created_at
225
+ * The field name that triggered the alert
226
+ * @member {String} field_name
228
227
  */
229
- Alert.prototype['created_at'] = undefined;
228
+ Alert.prototype['field_name'] = undefined;
230
229
 
231
230
  /**
232
- * The value that triggered the alert
233
- * @member {Number} value
231
+ * Monitor Name
232
+ * @member {String} monitor_name
234
233
  */
235
- Alert.prototype['value'] = undefined;
234
+ Alert.prototype['monitor_name'] = undefined;
236
235
 
237
236
  /**
238
- * If true, the alert has been resolved
239
- * @member {Boolean} resolved
237
+ * The type of monitor that triggered the alert
238
+ * @member {module:model/Alert.MonitorTypeEnum} monitor_type
240
239
  */
241
- Alert.prototype['resolved'] = undefined;
240
+ Alert.prototype['monitor_type'] = undefined;
242
241
 
243
242
  /**
244
- * The version of the alert
245
- * @member {Number} version
243
+ * Monitor UID
244
+ * @member {String} monitor_uid
246
245
  */
247
- Alert.prototype['version'] = undefined;
246
+ Alert.prototype['monitor_uid'] = undefined;
248
247
 
249
248
  /**
250
- * The source of the alert
251
- * @member {module:model/Alert.AlertSourceEnum} alert_source
249
+ * @member {Array.<module:model/AlertNotificationsInner>} notifications
252
250
  */
253
- Alert.prototype['alert_source'] = undefined;
251
+ Alert.prototype['notifications'] = undefined;
254
252
 
255
253
  /**
256
- * The UID of the source of the alert
257
- * @member {String} source
254
+ * If true, the alert has been resolved
255
+ * @member {Boolean} resolved
258
256
  */
259
- Alert.prototype['source'] = undefined;
257
+ Alert.prototype['resolved'] = undefined;
260
258
 
261
259
  /**
262
- * The type of monitor that triggered the alert
263
- * @member {module:model/Alert.MonitorTypeEnum} monitor_type
260
+ * The UID of the source of the alert
261
+ * @member {String} source
264
262
  */
265
- Alert.prototype['monitor_type'] = undefined;
263
+ Alert.prototype['source'] = undefined;
266
264
 
267
265
  /**
268
- * The field name that triggered the alert
269
- * @member {String} field_name
266
+ * Alert UID
267
+ * @member {String} uid
270
268
  */
271
- Alert.prototype['field_name'] = undefined;
269
+ Alert.prototype['uid'] = undefined;
272
270
 
273
271
  /**
274
- * @member {Array.<module:model/AlertDataInner>} data
272
+ * The value that triggered the alert
273
+ * @member {Number} value
275
274
  */
276
- Alert.prototype['data'] = undefined;
275
+ Alert.prototype['value'] = undefined;
277
276
 
278
277
  /**
279
- * @member {Array.<module:model/AlertNotificationsInner>} notifications
278
+ * The version of the alert
279
+ * @member {Number} version
280
280
  */
281
- Alert.prototype['notifications'] = undefined;
281
+ Alert.prototype['version'] = undefined;
282
282
 
283
283
  /**
284
284
  * Allowed values for the <code>alert_source</code> property.
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 1.0.37-beta.6
29
+ * @version 1.0.37-beta.8
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**
@@ -68,12 +68,12 @@ var AlertDataInner = /*#__PURE__*/function () {
68
68
  if (data.hasOwnProperty('source_type')) {
69
69
  obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
70
70
  }
71
- if (data.hasOwnProperty('value')) {
72
- obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
73
- }
74
71
  if (data.hasOwnProperty('source_uid')) {
75
72
  obj['source_uid'] = _ApiClient["default"].convertToType(data['source_uid'], 'String');
76
73
  }
74
+ if (data.hasOwnProperty('value')) {
75
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
76
+ }
77
77
  if (data.hasOwnProperty('when')) {
78
78
  obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
79
79
  }
@@ -133,18 +133,18 @@ AlertDataInner.prototype['source'] = undefined;
133
133
  */
134
134
  AlertDataInner.prototype['source_type'] = undefined;
135
135
 
136
- /**
137
- * The value that triggered the alert
138
- * @member {Number} value
139
- */
140
- AlertDataInner.prototype['value'] = undefined;
141
-
142
136
  /**
143
137
  * The UID of the source of the alert
144
138
  * @member {String} source_uid
145
139
  */
146
140
  AlertDataInner.prototype['source_uid'] = undefined;
147
141
 
142
+ /**
143
+ * The value that triggered the alert
144
+ * @member {Number} value
145
+ */
146
+ AlertDataInner.prototype['value'] = undefined;
147
+
148
148
  /**
149
149
  * The time the alert was created
150
150
  * @member {String} when
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertNotificationsInner model module.
28
28
  * @module model/AlertNotificationsInner
29
- * @version 1.0.37-beta.6
29
+ * @version 1.0.37-beta.8
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -62,12 +62,12 @@ var AlertNotificationsInner = /*#__PURE__*/function () {
62
62
  if (data.hasOwnProperty('notification_type')) {
63
63
  obj['notification_type'] = _ApiClient["default"].convertToType(data['notification_type'], 'String');
64
64
  }
65
- if (data.hasOwnProperty('status')) {
66
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number');
67
- }
68
65
  if (data.hasOwnProperty('recipients')) {
69
66
  obj['recipients'] = _ApiClient["default"].convertToType(data['recipients'], 'String');
70
67
  }
68
+ if (data.hasOwnProperty('status')) {
69
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number');
70
+ }
71
71
  } else if (data === null) {
72
72
  return null;
73
73
  }
@@ -100,18 +100,18 @@ var AlertNotificationsInner = /*#__PURE__*/function () {
100
100
  */
101
101
  AlertNotificationsInner.prototype['notification_type'] = undefined;
102
102
 
103
- /**
104
- * The status of the notification
105
- * @member {Number} status
106
- */
107
- AlertNotificationsInner.prototype['status'] = undefined;
108
-
109
103
  /**
110
104
  * The recipients of the notification
111
105
  * @member {String} recipients
112
106
  */
113
107
  AlertNotificationsInner.prototype['recipients'] = undefined;
114
108
 
109
+ /**
110
+ * The status of the notification
111
+ * @member {Number} status
112
+ */
113
+ AlertNotificationsInner.prototype['status'] = undefined;
114
+
115
115
  /**
116
116
  * Allowed values for the <code>notification_type</code> property.
117
117
  * @enum {String}
@@ -29,19 +29,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AnalyticsEventsData model module.
31
31
  * @module model/AnalyticsEventsData
32
- * @version 1.0.37-beta.6
32
+ * @version 1.0.37-beta.8
33
33
  */
34
34
  var AnalyticsEventsData = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>AnalyticsEventsData</code>.
37
37
  * @alias module:model/AnalyticsEventsData
38
- * @param period {Date}
39
38
  * @param events {Number}
39
+ * @param period {Date}
40
40
  * @param platformEvents {Number}
41
41
  */
42
- function AnalyticsEventsData(period, events, platformEvents) {
42
+ function AnalyticsEventsData(events, period, platformEvents) {
43
43
  _classCallCheck(this, AnalyticsEventsData);
44
- AnalyticsEventsData.initialize(this, period, events, platformEvents);
44
+ AnalyticsEventsData.initialize(this, events, period, platformEvents);
45
45
  }
46
46
 
47
47
  /**
@@ -51,9 +51,9 @@ var AnalyticsEventsData = /*#__PURE__*/function () {
51
51
  */
52
52
  return _createClass(AnalyticsEventsData, null, [{
53
53
  key: "initialize",
54
- value: function initialize(obj, period, events, platformEvents) {
55
- obj['period'] = period;
54
+ value: function initialize(obj, events, period, platformEvents) {
56
55
  obj['events'] = events;
56
+ obj['period'] = period;
57
57
  obj['platform_events'] = platformEvents;
58
58
  }
59
59
 
@@ -69,12 +69,12 @@ var AnalyticsEventsData = /*#__PURE__*/function () {
69
69
  value: function constructFromObject(data, obj) {
70
70
  if (data) {
71
71
  obj = obj || new AnalyticsEventsData();
72
- if (data.hasOwnProperty('period')) {
73
- obj['period'] = _ApiClient["default"].convertToType(data['period'], 'Date');
74
- }
75
72
  if (data.hasOwnProperty('events')) {
76
73
  obj['events'] = _ApiClient["default"].convertToType(data['events'], 'Number');
77
74
  }
75
+ if (data.hasOwnProperty('period')) {
76
+ obj['period'] = _ApiClient["default"].convertToType(data['period'], 'Date');
77
+ }
78
78
  if (data.hasOwnProperty('platform_events')) {
79
79
  obj['platform_events'] = _ApiClient["default"].convertToType(data['platform_events'], 'Number');
80
80
  }
@@ -111,17 +111,17 @@ var AnalyticsEventsData = /*#__PURE__*/function () {
111
111
  }
112
112
  }]);
113
113
  }();
114
- AnalyticsEventsData.RequiredProperties = ["period", "events", "platform_events"];
114
+ AnalyticsEventsData.RequiredProperties = ["events", "period", "platform_events"];
115
115
 
116
116
  /**
117
- * @member {Date} period
117
+ * @member {Number} events
118
118
  */
119
- AnalyticsEventsData.prototype['period'] = undefined;
119
+ AnalyticsEventsData.prototype['events'] = undefined;
120
120
 
121
121
  /**
122
- * @member {Number} events
122
+ * @member {Date} period
123
123
  */
124
- AnalyticsEventsData.prototype['events'] = undefined;
124
+ AnalyticsEventsData.prototype['period'] = undefined;
125
125
 
126
126
  /**
127
127
  * @member {Number} platform_events
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The AnalyticsEventsResponse model module.
32
32
  * @module model/AnalyticsEventsResponse
33
- * @version 1.0.37-beta.6
33
+ * @version 1.0.37-beta.8
34
34
  */
35
35
  var AnalyticsEventsResponse = /*#__PURE__*/function () {
36
36
  /**
@@ -29,20 +29,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AnalyticsRouteLogsData model module.
31
31
  * @module model/AnalyticsRouteLogsData
32
- * @version 1.0.37-beta.6
32
+ * @version 1.0.37-beta.8
33
33
  */
34
34
  var AnalyticsRouteLogsData = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>AnalyticsRouteLogsData</code>.
37
37
  * @alias module:model/AnalyticsRouteLogsData
38
+ * @param failedRoutes {Number}
38
39
  * @param period {Date}
39
40
  * @param successfulRoutes {Number}
40
- * @param failedRoutes {Number}
41
41
  * @param totalRoutes {Number}
42
42
  */
43
- function AnalyticsRouteLogsData(period, successfulRoutes, failedRoutes, totalRoutes) {
43
+ function AnalyticsRouteLogsData(failedRoutes, period, successfulRoutes, totalRoutes) {
44
44
  _classCallCheck(this, AnalyticsRouteLogsData);
45
- AnalyticsRouteLogsData.initialize(this, period, successfulRoutes, failedRoutes, totalRoutes);
45
+ AnalyticsRouteLogsData.initialize(this, failedRoutes, period, successfulRoutes, totalRoutes);
46
46
  }
47
47
 
48
48
  /**
@@ -52,10 +52,10 @@ var AnalyticsRouteLogsData = /*#__PURE__*/function () {
52
52
  */
53
53
  return _createClass(AnalyticsRouteLogsData, null, [{
54
54
  key: "initialize",
55
- value: function initialize(obj, period, successfulRoutes, failedRoutes, totalRoutes) {
55
+ value: function initialize(obj, failedRoutes, period, successfulRoutes, totalRoutes) {
56
+ obj['failed_routes'] = failedRoutes;
56
57
  obj['period'] = period;
57
58
  obj['successful_routes'] = successfulRoutes;
58
- obj['failed_routes'] = failedRoutes;
59
59
  obj['total_routes'] = totalRoutes;
60
60
  }
61
61
 
@@ -71,15 +71,15 @@ var AnalyticsRouteLogsData = /*#__PURE__*/function () {
71
71
  value: function constructFromObject(data, obj) {
72
72
  if (data) {
73
73
  obj = obj || new AnalyticsRouteLogsData();
74
+ if (data.hasOwnProperty('failed_routes')) {
75
+ obj['failed_routes'] = _ApiClient["default"].convertToType(data['failed_routes'], 'Number');
76
+ }
74
77
  if (data.hasOwnProperty('period')) {
75
78
  obj['period'] = _ApiClient["default"].convertToType(data['period'], 'Date');
76
79
  }
77
80
  if (data.hasOwnProperty('successful_routes')) {
78
81
  obj['successful_routes'] = _ApiClient["default"].convertToType(data['successful_routes'], 'Number');
79
82
  }
80
- if (data.hasOwnProperty('failed_routes')) {
81
- obj['failed_routes'] = _ApiClient["default"].convertToType(data['failed_routes'], 'Number');
82
- }
83
83
  if (data.hasOwnProperty('total_routes')) {
84
84
  obj['total_routes'] = _ApiClient["default"].convertToType(data['total_routes'], 'Number');
85
85
  }
@@ -116,7 +116,12 @@ var AnalyticsRouteLogsData = /*#__PURE__*/function () {
116
116
  }
117
117
  }]);
118
118
  }();
119
- AnalyticsRouteLogsData.RequiredProperties = ["period", "successful_routes", "failed_routes", "total_routes"];
119
+ AnalyticsRouteLogsData.RequiredProperties = ["failed_routes", "period", "successful_routes", "total_routes"];
120
+
121
+ /**
122
+ * @member {Number} failed_routes
123
+ */
124
+ AnalyticsRouteLogsData.prototype['failed_routes'] = undefined;
120
125
 
121
126
  /**
122
127
  * @member {Date} period
@@ -128,11 +133,6 @@ AnalyticsRouteLogsData.prototype['period'] = undefined;
128
133
  */
129
134
  AnalyticsRouteLogsData.prototype['successful_routes'] = undefined;
130
135
 
131
- /**
132
- * @member {Number} failed_routes
133
- */
134
- AnalyticsRouteLogsData.prototype['failed_routes'] = undefined;
135
-
136
136
  /**
137
137
  * @member {Number} total_routes
138
138
  */
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The AnalyticsRouteLogsResponse model module.
32
32
  * @module model/AnalyticsRouteLogsResponse
33
- * @version 1.0.37-beta.6
33
+ * @version 1.0.37-beta.8
34
34
  */
35
35
  var AnalyticsRouteLogsResponse = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AnalyticsSessionsData model module.
31
31
  * @module model/AnalyticsSessionsData
32
- * @version 1.0.37-beta.6
32
+ * @version 1.0.37-beta.8
33
33
  */
34
34
  var AnalyticsSessionsData = /*#__PURE__*/function () {
35
35
  /**
@@ -37,12 +37,12 @@ var AnalyticsSessionsData = /*#__PURE__*/function () {
37
37
  * @alias module:model/AnalyticsSessionsData
38
38
  * @param period {Date}
39
39
  * @param sessions {Number}
40
- * @param uniqueDevices {Number}
41
40
  * @param totalBytes {Number}
41
+ * @param uniqueDevices {Number}
42
42
  */
43
- function AnalyticsSessionsData(period, sessions, uniqueDevices, totalBytes) {
43
+ function AnalyticsSessionsData(period, sessions, totalBytes, uniqueDevices) {
44
44
  _classCallCheck(this, AnalyticsSessionsData);
45
- AnalyticsSessionsData.initialize(this, period, sessions, uniqueDevices, totalBytes);
45
+ AnalyticsSessionsData.initialize(this, period, sessions, totalBytes, uniqueDevices);
46
46
  }
47
47
 
48
48
  /**
@@ -52,11 +52,11 @@ var AnalyticsSessionsData = /*#__PURE__*/function () {
52
52
  */
53
53
  return _createClass(AnalyticsSessionsData, null, [{
54
54
  key: "initialize",
55
- value: function initialize(obj, period, sessions, uniqueDevices, totalBytes) {
55
+ value: function initialize(obj, period, sessions, totalBytes, uniqueDevices) {
56
56
  obj['period'] = period;
57
57
  obj['sessions'] = sessions;
58
- obj['unique_devices'] = uniqueDevices;
59
58
  obj['total_bytes'] = totalBytes;
59
+ obj['unique_devices'] = uniqueDevices;
60
60
  }
61
61
 
62
62
  /**
@@ -77,12 +77,12 @@ var AnalyticsSessionsData = /*#__PURE__*/function () {
77
77
  if (data.hasOwnProperty('sessions')) {
78
78
  obj['sessions'] = _ApiClient["default"].convertToType(data['sessions'], 'Number');
79
79
  }
80
- if (data.hasOwnProperty('unique_devices')) {
81
- obj['unique_devices'] = _ApiClient["default"].convertToType(data['unique_devices'], 'Number');
82
- }
83
80
  if (data.hasOwnProperty('total_bytes')) {
84
81
  obj['total_bytes'] = _ApiClient["default"].convertToType(data['total_bytes'], 'Number');
85
82
  }
83
+ if (data.hasOwnProperty('unique_devices')) {
84
+ obj['unique_devices'] = _ApiClient["default"].convertToType(data['unique_devices'], 'Number');
85
+ }
86
86
  } else if (data === null) {
87
87
  return null;
88
88
  }
@@ -116,7 +116,7 @@ var AnalyticsSessionsData = /*#__PURE__*/function () {
116
116
  }
117
117
  }]);
118
118
  }();
119
- AnalyticsSessionsData.RequiredProperties = ["period", "sessions", "unique_devices", "total_bytes"];
119
+ AnalyticsSessionsData.RequiredProperties = ["period", "sessions", "total_bytes", "unique_devices"];
120
120
 
121
121
  /**
122
122
  * @member {Date} period
@@ -129,12 +129,12 @@ AnalyticsSessionsData.prototype['period'] = undefined;
129
129
  AnalyticsSessionsData.prototype['sessions'] = undefined;
130
130
 
131
131
  /**
132
- * @member {Number} unique_devices
132
+ * @member {Number} total_bytes
133
133
  */
134
- AnalyticsSessionsData.prototype['unique_devices'] = undefined;
134
+ AnalyticsSessionsData.prototype['total_bytes'] = undefined;
135
135
 
136
136
  /**
137
- * @member {Number} total_bytes
137
+ * @member {Number} unique_devices
138
138
  */
139
- AnalyticsSessionsData.prototype['total_bytes'] = undefined;
139
+ AnalyticsSessionsData.prototype['unique_devices'] = undefined;
140
140
  var _default = exports["default"] = AnalyticsSessionsData;
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The AnalyticsSessionsResponse model module.
32
32
  * @module model/AnalyticsSessionsResponse
33
- * @version 1.0.37-beta.6
33
+ * @version 1.0.37-beta.8
34
34
  */
35
35
  var AnalyticsSessionsResponse = /*#__PURE__*/function () {
36
36
  /**