@blues-inc/notehub-js 1.0.37-beta.3 → 1.0.37-beta.31

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 +21 -16
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +64 -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 +28 -18
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/UsageApi.js +285 -0
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +106 -99
  15. package/dist/model/Alert.js +91 -91
  16. package/dist/model/AlertDataInner.js +10 -10
  17. package/dist/model/AlertNotificationsInner.js +10 -10
  18. package/dist/model/Aws.js +86 -86
  19. package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
  20. package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
  21. package/dist/model/Azure.js +51 -51
  22. package/dist/model/BillingAccount.js +19 -19
  23. package/dist/model/Body.js +1 -1
  24. package/dist/model/CloneProjectRequest.js +25 -25
  25. package/dist/model/Contact.js +19 -19
  26. package/dist/model/CreateFleetRequest.js +1 -1
  27. package/dist/model/CreateMonitor.js +186 -186
  28. package/dist/model/CreateProductRequest.js +30 -30
  29. package/dist/model/CreateProjectRequest.js +20 -20
  30. package/dist/model/CreateUpdateRepository.js +18 -18
  31. package/dist/model/CurrentFirmware.js +12 -12
  32. package/dist/model/DFUEnv.js +1 -1
  33. package/dist/model/DFUState.js +60 -60
  34. package/dist/model/DataField.js +1 -1
  35. package/dist/model/DataSetField.js +14 -14
  36. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  37. package/dist/model/Device.js +134 -134
  38. package/dist/model/DeviceDfuHistory.js +15 -15
  39. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
  40. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  41. package/dist/model/DeviceDfuStateMachine.js +14 -14
  42. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  43. package/dist/model/DeviceDfuStatus.js +15 -15
  44. package/dist/model/DeviceDfuStatusPage.js +1 -1
  45. package/dist/model/DeviceSession.js +278 -278
  46. package/dist/model/DeviceTowerInfo.js +15 -15
  47. package/dist/model/DeviceUsage.js +36 -36
  48. package/dist/model/DfuActionRequest.js +1 -1
  49. package/dist/model/EmailNotification.js +1 -1
  50. package/dist/model/EnvTreeJsonNode.js +76 -76
  51. package/dist/model/EnvVar.js +9 -9
  52. package/dist/model/EnvironmentVariables.js +1 -1
  53. package/dist/model/Error.js +38 -38
  54. package/dist/model/Event.js +340 -340
  55. package/dist/model/Firmware.js +45 -45
  56. package/dist/model/FirmwareInfo.js +71 -71
  57. package/dist/model/Fleet.js +31 -31
  58. package/dist/model/GetAlerts200Response.js +1 -1
  59. package/dist/model/GetBillingAccounts200Response.js +1 -1
  60. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
  61. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
  62. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  63. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  64. package/dist/model/GetDeviceLatest200Response.js +1 -1
  65. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  66. package/dist/model/GetDeviceSessions200Response.js +14 -14
  67. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  68. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  69. package/dist/model/GetProjectDevices200Response.js +1 -1
  70. package/dist/model/GetProjectEvents200Response.js +1 -1
  71. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  72. package/dist/model/GetProjectMembers200Response.js +1 -1
  73. package/dist/model/GetProjectProducts200Response.js +1 -1
  74. package/dist/model/GetProjects200Response.js +1 -1
  75. package/dist/model/GetWebhooks200Response.js +1 -1
  76. package/dist/model/Google.js +35 -35
  77. package/dist/model/HandleNoteChanges200Response.js +10 -10
  78. package/dist/model/HandleNoteGet200Response.js +1 -1
  79. package/dist/model/HandleNoteSignal200Response.js +1 -1
  80. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  81. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  82. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  83. package/dist/model/Http.js +43 -43
  84. package/dist/model/Location.js +38 -38
  85. package/dist/model/Login200Response.js +1 -1
  86. package/dist/model/LoginRequest.js +12 -12
  87. package/dist/model/Monitor.js +135 -135
  88. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  89. package/dist/model/Mqtt.js +91 -91
  90. package/dist/model/Note.js +1 -1
  91. package/dist/model/NotefileSchema.js +1 -1
  92. package/dist/model/NotehubRoute.js +30 -30
  93. package/dist/model/NotehubRouteSchema.js +80 -80
  94. package/dist/model/OAuth2Error.js +166 -0
  95. package/dist/model/OAuth2TokenResponse.js +154 -0
  96. package/dist/model/PersonalAccessToken.js +37 -37
  97. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  98. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  99. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  100. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  101. package/dist/model/Product.js +29 -29
  102. package/dist/model/Project.js +35 -35
  103. package/dist/model/ProjectMember.js +19 -19
  104. package/dist/model/Proxy.js +21 -21
  105. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  106. package/dist/model/Radresponder.js +28 -28
  107. package/dist/model/Repository.js +22 -22
  108. package/dist/model/RouteLog.js +28 -28
  109. package/dist/model/SchemaProperty.js +34 -36
  110. package/dist/model/SimUsage.js +19 -50
  111. package/dist/model/Slack.js +71 -71
  112. package/dist/model/SlackBearerNotification.js +14 -14
  113. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
  114. package/dist/model/SlackWebHookNotification.js +14 -14
  115. package/dist/model/Snowflake.js +57 -57
  116. package/dist/model/Thingworx.js +36 -36
  117. package/dist/model/TowerLocation.js +58 -58
  118. package/dist/model/Twilio.js +46 -46
  119. package/dist/model/UpdateFleetRequest.js +14 -14
  120. package/dist/model/UploadMetadata.js +77 -64
  121. package/dist/model/{AnalyticsEventsData.js → UsageData.js} +41 -35
  122. package/dist/model/{QuestionDataResponseMap.js → UsageEventsData.js} +51 -50
  123. package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +25 -25
  124. package/dist/model/{AnalyticsRouteLogsData.js → UsageRouteLogsData.js} +46 -32
  125. package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +25 -25
  126. package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +36 -32
  127. package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +25 -25
  128. package/dist/model/UserDbRoute.js +26 -26
  129. package/dist/model/UserDfuStateMachine.js +14 -14
  130. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  131. package/dist/model/UserFirmwareInfo.js +1 -1
  132. package/dist/model/WebhookSettings.js +1 -1
  133. package/package.json +26 -26
  134. package/dist/model/DataSet.js +0 -164
  135. package/dist/model/QuestionDataResponseLineChart.js +0 -204
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The UploadMetadata model module.
29
29
  * @module model/UploadMetadata
30
- * @version 1.0.37-beta.3
30
+ * @version 1.0.37-beta.31
31
31
  */
32
32
  var UploadMetadata = /*#__PURE__*/function () {
33
33
  /**
@@ -60,14 +60,8 @@ var UploadMetadata = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new UploadMetadata();
63
- if (data.hasOwnProperty('name')) {
64
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
65
- }
66
- if (data.hasOwnProperty('length')) {
67
- obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number');
68
- }
69
- if (data.hasOwnProperty('md5')) {
70
- obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
63
+ if (data.hasOwnProperty('contains')) {
64
+ obj['contains'] = _ApiClient["default"].convertToType(data['contains'], 'String');
71
65
  }
72
66
  if (data.hasOwnProperty('crc32')) {
73
67
  obj['crc32'] = _ApiClient["default"].convertToType(data['crc32'], 'Number');
@@ -75,29 +69,38 @@ var UploadMetadata = /*#__PURE__*/function () {
75
69
  if (data.hasOwnProperty('created')) {
76
70
  obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Number');
77
71
  }
72
+ if (data.hasOwnProperty('firmware')) {
73
+ obj['firmware'] = _Firmware["default"].constructFromObject(data['firmware']);
74
+ }
75
+ if (data.hasOwnProperty('found')) {
76
+ obj['found'] = _ApiClient["default"].convertToType(data['found'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('length')) {
79
+ obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number');
80
+ }
81
+ if (data.hasOwnProperty('md5')) {
82
+ obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
83
+ }
78
84
  if (data.hasOwnProperty('modified')) {
79
85
  obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'Number');
80
86
  }
81
- if (data.hasOwnProperty('source')) {
82
- obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
83
- }
84
- if (data.hasOwnProperty('contains')) {
85
- obj['contains'] = _ApiClient["default"].convertToType(data['contains'], 'String');
87
+ if (data.hasOwnProperty('name')) {
88
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
86
89
  }
87
- if (data.hasOwnProperty('found')) {
88
- obj['found'] = _ApiClient["default"].convertToType(data['found'], 'String');
90
+ if (data.hasOwnProperty('notes')) {
91
+ obj['notes'] = _ApiClient["default"].convertToType(data['notes'], 'String');
89
92
  }
90
- if (data.hasOwnProperty('type')) {
91
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
93
+ if (data.hasOwnProperty('source')) {
94
+ obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
92
95
  }
93
96
  if (data.hasOwnProperty('tags')) {
94
97
  obj['tags'] = _ApiClient["default"].convertToType(data['tags'], 'String');
95
98
  }
96
- if (data.hasOwnProperty('notes')) {
97
- obj['notes'] = _ApiClient["default"].convertToType(data['notes'], 'String');
99
+ if (data.hasOwnProperty('type')) {
100
+ obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
98
101
  }
99
- if (data.hasOwnProperty('firmware')) {
100
- obj['firmware'] = _Firmware["default"].constructFromObject(data['firmware']);
102
+ if (data.hasOwnProperty('version')) {
103
+ obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
101
104
  }
102
105
  } else if (data === null) {
103
106
  return null;
@@ -114,95 +117,104 @@ var UploadMetadata = /*#__PURE__*/function () {
114
117
  key: "validateJSON",
115
118
  value: function validateJSON(data) {
116
119
  // ensure the json data is a string
117
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
118
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
120
+ if (data['contains'] && !(typeof data['contains'] === 'string' || data['contains'] instanceof String)) {
121
+ throw new Error("Expected the field `contains` to be a primitive type in the JSON string but got " + data['contains']);
122
+ }
123
+ // validate the optional field `firmware`
124
+ if (data['firmware']) {
125
+ // data not null
126
+ _Firmware["default"].validateJSON(data['firmware']);
119
127
  }
120
128
  // ensure the json data is a string
121
- if (data['md5'] && !(typeof data['md5'] === 'string' || data['md5'] instanceof String)) {
122
- throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data['md5']);
129
+ if (data['found'] && !(typeof data['found'] === 'string' || data['found'] instanceof String)) {
130
+ throw new Error("Expected the field `found` to be a primitive type in the JSON string but got " + data['found']);
123
131
  }
124
132
  // ensure the json data is a string
125
- if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
126
- throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
133
+ if (data['md5'] && !(typeof data['md5'] === 'string' || data['md5'] instanceof String)) {
134
+ throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data['md5']);
127
135
  }
128
136
  // ensure the json data is a string
129
- if (data['contains'] && !(typeof data['contains'] === 'string' || data['contains'] instanceof String)) {
130
- throw new Error("Expected the field `contains` to be a primitive type in the JSON string but got " + data['contains']);
137
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
138
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
131
139
  }
132
140
  // ensure the json data is a string
133
- if (data['found'] && !(typeof data['found'] === 'string' || data['found'] instanceof String)) {
134
- throw new Error("Expected the field `found` to be a primitive type in the JSON string but got " + data['found']);
141
+ if (data['notes'] && !(typeof data['notes'] === 'string' || data['notes'] instanceof String)) {
142
+ throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data['notes']);
135
143
  }
136
144
  // ensure the json data is a string
137
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
138
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
145
+ if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
146
+ throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
139
147
  }
140
148
  // ensure the json data is a string
141
149
  if (data['tags'] && !(typeof data['tags'] === 'string' || data['tags'] instanceof String)) {
142
150
  throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data['tags']);
143
151
  }
144
152
  // ensure the json data is a string
145
- if (data['notes'] && !(typeof data['notes'] === 'string' || data['notes'] instanceof String)) {
146
- throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data['notes']);
153
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
154
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
147
155
  }
148
- // validate the optional field `firmware`
149
- if (data['firmware']) {
150
- // data not null
151
- _Firmware["default"].validateJSON(data['firmware']);
156
+ // ensure the json data is a string
157
+ if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
158
+ throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
152
159
  }
153
160
  return true;
154
161
  }
155
162
  }]);
156
163
  }();
157
164
  /**
158
- * @member {String} name
165
+ * @member {String} contains
159
166
  */
160
- UploadMetadata.prototype['name'] = undefined;
167
+ UploadMetadata.prototype['contains'] = undefined;
161
168
 
162
169
  /**
163
- * @member {Number} length
170
+ * @member {Number} crc32
164
171
  */
165
- UploadMetadata.prototype['length'] = undefined;
172
+ UploadMetadata.prototype['crc32'] = undefined;
166
173
 
167
174
  /**
168
- * @member {String} md5
175
+ * @member {Number} created
169
176
  */
170
- UploadMetadata.prototype['md5'] = undefined;
177
+ UploadMetadata.prototype['created'] = undefined;
171
178
 
172
179
  /**
173
- * @member {Number} crc32
180
+ * @member {module:model/Firmware} firmware
174
181
  */
175
- UploadMetadata.prototype['crc32'] = undefined;
182
+ UploadMetadata.prototype['firmware'] = undefined;
176
183
 
177
184
  /**
178
- * @member {Number} created
185
+ * @member {String} found
179
186
  */
180
- UploadMetadata.prototype['created'] = undefined;
187
+ UploadMetadata.prototype['found'] = undefined;
181
188
 
182
189
  /**
183
- * @member {Number} modified
190
+ * @member {Number} length
184
191
  */
185
- UploadMetadata.prototype['modified'] = undefined;
192
+ UploadMetadata.prototype['length'] = undefined;
186
193
 
187
194
  /**
188
- * @member {String} source
195
+ * @member {String} md5
189
196
  */
190
- UploadMetadata.prototype['source'] = undefined;
197
+ UploadMetadata.prototype['md5'] = undefined;
191
198
 
192
199
  /**
193
- * @member {String} contains
200
+ * @member {Number} modified
194
201
  */
195
- UploadMetadata.prototype['contains'] = undefined;
202
+ UploadMetadata.prototype['modified'] = undefined;
196
203
 
197
204
  /**
198
- * @member {String} found
205
+ * @member {String} name
199
206
  */
200
- UploadMetadata.prototype['found'] = undefined;
207
+ UploadMetadata.prototype['name'] = undefined;
201
208
 
202
209
  /**
203
- * @member {String} type
210
+ * @member {String} notes
204
211
  */
205
- UploadMetadata.prototype['type'] = undefined;
212
+ UploadMetadata.prototype['notes'] = undefined;
213
+
214
+ /**
215
+ * @member {String} source
216
+ */
217
+ UploadMetadata.prototype['source'] = undefined;
206
218
 
207
219
  /**
208
220
  * @member {String} tags
@@ -210,12 +222,13 @@ UploadMetadata.prototype['type'] = undefined;
210
222
  UploadMetadata.prototype['tags'] = undefined;
211
223
 
212
224
  /**
213
- * @member {String} notes
225
+ * @member {String} type
214
226
  */
215
- UploadMetadata.prototype['notes'] = undefined;
227
+ UploadMetadata.prototype['type'] = undefined;
216
228
 
217
229
  /**
218
- * @member {module:model/Firmware} firmware
230
+ * User-specified version string provided at time of upload
231
+ * @member {String} version
219
232
  */
220
- UploadMetadata.prototype['firmware'] = undefined;
233
+ UploadMetadata.prototype['version'] = undefined;
221
234
  var _default = exports["default"] = UploadMetadata;
@@ -27,21 +27,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * The AnalyticsEventsData model module.
31
- * @module model/AnalyticsEventsData
32
- * @version 1.0.37-beta.3
30
+ * The UsageData model module.
31
+ * @module model/UsageData
32
+ * @version 1.0.37-beta.31
33
33
  */
34
- var AnalyticsEventsData = /*#__PURE__*/function () {
34
+ var UsageData = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new <code>AnalyticsEventsData</code>.
37
- * @alias module:model/AnalyticsEventsData
36
+ * Constructs a new <code>UsageData</code>.
37
+ * @alias module:model/UsageData
38
38
  * @param period {Date}
39
- * @param events {Number}
40
- * @param platformEvents {Number}
39
+ * @param totalBytes {Number}
41
40
  */
42
- function AnalyticsEventsData(period, events, platformEvents) {
43
- _classCallCheck(this, AnalyticsEventsData);
44
- AnalyticsEventsData.initialize(this, period, events, platformEvents);
41
+ function UsageData(period, totalBytes) {
42
+ _classCallCheck(this, UsageData);
43
+ UsageData.initialize(this, period, totalBytes);
45
44
  }
46
45
 
47
46
  /**
@@ -49,34 +48,36 @@ var AnalyticsEventsData = /*#__PURE__*/function () {
49
48
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
49
  * Only for internal use.
51
50
  */
52
- return _createClass(AnalyticsEventsData, null, [{
51
+ return _createClass(UsageData, null, [{
53
52
  key: "initialize",
54
- value: function initialize(obj, period, events, platformEvents) {
53
+ value: function initialize(obj, period, totalBytes) {
55
54
  obj['period'] = period;
56
- obj['events'] = events;
57
- obj['platform_events'] = platformEvents;
55
+ obj['total_bytes'] = totalBytes;
58
56
  }
59
57
 
60
58
  /**
61
- * Constructs a <code>AnalyticsEventsData</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Constructs a <code>UsageData</code> from a plain JavaScript object, optionally creating a new instance.
62
60
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
61
  * @param {Object} data The plain JavaScript object bearing properties of interest.
64
- * @param {module:model/AnalyticsEventsData} obj Optional instance to populate.
65
- * @return {module:model/AnalyticsEventsData} The populated <code>AnalyticsEventsData</code> instance.
62
+ * @param {module:model/UsageData} obj Optional instance to populate.
63
+ * @return {module:model/UsageData} The populated <code>UsageData</code> instance.
66
64
  */
67
65
  }, {
68
66
  key: "constructFromObject",
69
67
  value: function constructFromObject(data, obj) {
70
68
  if (data) {
71
- obj = obj || new AnalyticsEventsData();
69
+ obj = obj || new UsageData();
70
+ if (data.hasOwnProperty('bytes_received')) {
71
+ obj['bytes_received'] = _ApiClient["default"].convertToType(data['bytes_received'], 'Number');
72
+ }
73
+ if (data.hasOwnProperty('bytes_sent')) {
74
+ obj['bytes_sent'] = _ApiClient["default"].convertToType(data['bytes_sent'], 'Number');
75
+ }
72
76
  if (data.hasOwnProperty('period')) {
73
77
  obj['period'] = _ApiClient["default"].convertToType(data['period'], 'Date');
74
78
  }
75
- if (data.hasOwnProperty('events')) {
76
- obj['events'] = _ApiClient["default"].convertToType(data['events'], 'Number');
77
- }
78
- if (data.hasOwnProperty('platform_events')) {
79
- obj['platform_events'] = _ApiClient["default"].convertToType(data['platform_events'], 'Number');
79
+ if (data.hasOwnProperty('total_bytes')) {
80
+ obj['total_bytes'] = _ApiClient["default"].convertToType(data['total_bytes'], 'Number');
80
81
  }
81
82
  } else if (data === null) {
82
83
  return null;
@@ -85,15 +86,15 @@ var AnalyticsEventsData = /*#__PURE__*/function () {
85
86
  }
86
87
 
87
88
  /**
88
- * Validates the JSON data with respect to <code>AnalyticsEventsData</code>.
89
+ * Validates the JSON data with respect to <code>UsageData</code>.
89
90
  * @param {Object} data The plain JavaScript object bearing properties of interest.
90
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>AnalyticsEventsData</code>.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UsageData</code>.
91
92
  */
92
93
  }, {
93
94
  key: "validateJSON",
94
95
  value: function validateJSON(data) {
95
96
  // check to make sure all required properties are present in the JSON string
96
- var _iterator = _createForOfIteratorHelper(AnalyticsEventsData.RequiredProperties),
97
+ var _iterator = _createForOfIteratorHelper(UsageData.RequiredProperties),
97
98
  _step;
98
99
  try {
99
100
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -111,20 +112,25 @@ var AnalyticsEventsData = /*#__PURE__*/function () {
111
112
  }
112
113
  }]);
113
114
  }();
114
- AnalyticsEventsData.RequiredProperties = ["period", "events", "platform_events"];
115
+ UsageData.RequiredProperties = ["period", "total_bytes"];
115
116
 
116
117
  /**
117
- * @member {Date} period
118
+ * @member {Number} bytes_received
118
119
  */
119
- AnalyticsEventsData.prototype['period'] = undefined;
120
+ UsageData.prototype['bytes_received'] = undefined;
120
121
 
121
122
  /**
122
- * @member {Number} events
123
+ * @member {Number} bytes_sent
124
+ */
125
+ UsageData.prototype['bytes_sent'] = undefined;
126
+
127
+ /**
128
+ * @member {Date} period
123
129
  */
124
- AnalyticsEventsData.prototype['events'] = undefined;
130
+ UsageData.prototype['period'] = undefined;
125
131
 
126
132
  /**
127
- * @member {Number} platform_events
133
+ * @member {Number} total_bytes
128
134
  */
129
- AnalyticsEventsData.prototype['platform_events'] = undefined;
130
- var _default = exports["default"] = AnalyticsEventsData;
135
+ UsageData.prototype['total_bytes'] = undefined;
136
+ var _default = exports["default"] = UsageData;
@@ -27,20 +27,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * The QuestionDataResponseMap model module.
31
- * @module model/QuestionDataResponseMap
32
- * @version 1.0.37-beta.3
30
+ * The UsageEventsData model module.
31
+ * @module model/UsageEventsData
32
+ * @version 1.0.37-beta.31
33
33
  */
34
- var QuestionDataResponseMap = /*#__PURE__*/function () {
34
+ var UsageEventsData = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new <code>QuestionDataResponseMap</code>.
37
- * @alias module:model/QuestionDataResponseMap
38
- * @param type {module:model/QuestionDataResponseMap.TypeEnum} Graph type must be 'map' for a map visualization.
39
- * @param title {String} Title of the map.
36
+ * Constructs a new <code>UsageEventsData</code>.
37
+ * @alias module:model/UsageEventsData
38
+ * @param device {String}
39
+ * @param period {Date}
40
+ * @param platformEvents {Number}
41
+ * @param totalEvents {Number}
40
42
  */
41
- function QuestionDataResponseMap(type, title) {
42
- _classCallCheck(this, QuestionDataResponseMap);
43
- QuestionDataResponseMap.initialize(this, type, title);
43
+ function UsageEventsData(device, period, platformEvents, totalEvents) {
44
+ _classCallCheck(this, UsageEventsData);
45
+ UsageEventsData.initialize(this, device, period, platformEvents, totalEvents);
44
46
  }
45
47
 
46
48
  /**
@@ -48,30 +50,38 @@ var QuestionDataResponseMap = /*#__PURE__*/function () {
48
50
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
51
  * Only for internal use.
50
52
  */
51
- return _createClass(QuestionDataResponseMap, null, [{
53
+ return _createClass(UsageEventsData, null, [{
52
54
  key: "initialize",
53
- value: function initialize(obj, type, title) {
54
- obj['type'] = type;
55
- obj['title'] = title;
55
+ value: function initialize(obj, device, period, platformEvents, totalEvents) {
56
+ obj['device'] = device;
57
+ obj['period'] = period;
58
+ obj['platform_events'] = platformEvents;
59
+ obj['total_events'] = totalEvents;
56
60
  }
57
61
 
58
62
  /**
59
- * Constructs a <code>QuestionDataResponseMap</code> from a plain JavaScript object, optionally creating a new instance.
63
+ * Constructs a <code>UsageEventsData</code> from a plain JavaScript object, optionally creating a new instance.
60
64
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
65
  * @param {Object} data The plain JavaScript object bearing properties of interest.
62
- * @param {module:model/QuestionDataResponseMap} obj Optional instance to populate.
63
- * @return {module:model/QuestionDataResponseMap} The populated <code>QuestionDataResponseMap</code> instance.
66
+ * @param {module:model/UsageEventsData} obj Optional instance to populate.
67
+ * @return {module:model/UsageEventsData} The populated <code>UsageEventsData</code> instance.
64
68
  */
65
69
  }, {
66
70
  key: "constructFromObject",
67
71
  value: function constructFromObject(data, obj) {
68
72
  if (data) {
69
- obj = obj || new QuestionDataResponseMap();
70
- if (data.hasOwnProperty('type')) {
71
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
73
+ obj = obj || new UsageEventsData();
74
+ if (data.hasOwnProperty('device')) {
75
+ obj['device'] = _ApiClient["default"].convertToType(data['device'], 'String');
72
76
  }
73
- if (data.hasOwnProperty('title')) {
74
- obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String');
77
+ if (data.hasOwnProperty('period')) {
78
+ obj['period'] = _ApiClient["default"].convertToType(data['period'], 'Date');
79
+ }
80
+ if (data.hasOwnProperty('platform_events')) {
81
+ obj['platform_events'] = _ApiClient["default"].convertToType(data['platform_events'], 'Number');
82
+ }
83
+ if (data.hasOwnProperty('total_events')) {
84
+ obj['total_events'] = _ApiClient["default"].convertToType(data['total_events'], 'Number');
75
85
  }
76
86
  } else if (data === null) {
77
87
  return null;
@@ -80,15 +90,15 @@ var QuestionDataResponseMap = /*#__PURE__*/function () {
80
90
  }
81
91
 
82
92
  /**
83
- * Validates the JSON data with respect to <code>QuestionDataResponseMap</code>.
93
+ * Validates the JSON data with respect to <code>UsageEventsData</code>.
84
94
  * @param {Object} data The plain JavaScript object bearing properties of interest.
85
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>QuestionDataResponseMap</code>.
95
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>UsageEventsData</code>.
86
96
  */
87
97
  }, {
88
98
  key: "validateJSON",
89
99
  value: function validateJSON(data) {
90
100
  // check to make sure all required properties are present in the JSON string
91
- var _iterator = _createForOfIteratorHelper(QuestionDataResponseMap.RequiredProperties),
101
+ var _iterator = _createForOfIteratorHelper(UsageEventsData.RequiredProperties),
92
102
  _step;
93
103
  try {
94
104
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -103,41 +113,32 @@ var QuestionDataResponseMap = /*#__PURE__*/function () {
103
113
  } finally {
104
114
  _iterator.f();
105
115
  }
106
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
107
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
108
- }
109
- // ensure the json data is a string
110
- if (data['title'] && !(typeof data['title'] === 'string' || data['title'] instanceof String)) {
111
- throw new Error("Expected the field `title` to be a primitive type in the JSON string but got " + data['title']);
116
+ if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) {
117
+ throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']);
112
118
  }
113
119
  return true;
114
120
  }
115
121
  }]);
116
122
  }();
117
- QuestionDataResponseMap.RequiredProperties = ["type", "title"];
123
+ UsageEventsData.RequiredProperties = ["device", "period", "platform_events", "total_events"];
118
124
 
119
125
  /**
120
- * Graph type must be 'map' for a map visualization.
121
- * @member {module:model/QuestionDataResponseMap.TypeEnum} type
126
+ * @member {String} device
122
127
  */
123
- QuestionDataResponseMap.prototype['type'] = undefined;
128
+ UsageEventsData.prototype['device'] = undefined;
124
129
 
125
130
  /**
126
- * Title of the map.
127
- * @member {String} title
131
+ * @member {Date} period
128
132
  */
129
- QuestionDataResponseMap.prototype['title'] = undefined;
133
+ UsageEventsData.prototype['period'] = undefined;
130
134
 
131
135
  /**
132
- * Allowed values for the <code>type</code> property.
133
- * @enum {String}
134
- * @readonly
136
+ * @member {Number} platform_events
135
137
  */
136
- QuestionDataResponseMap['TypeEnum'] = {
137
- /**
138
- * value: "map"
139
- * @const
140
- */
141
- "map": "map"
142
- };
143
- var _default = exports["default"] = QuestionDataResponseMap;
138
+ UsageEventsData.prototype['platform_events'] = undefined;
139
+
140
+ /**
141
+ * @member {Number} total_events
142
+ */
143
+ UsageEventsData.prototype['total_events'] = undefined;
144
+ var _default = exports["default"] = UsageEventsData;