@blues-inc/notehub-js 5.0.0 → 6.0.0-beta.10

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 (147) hide show
  1. package/README.md +250 -244
  2. package/dist/ApiClient.js +150 -150
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +341 -433
  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 +478 -383
  11. package/dist/api/RouteApi.js +83 -83
  12. package/dist/api/UsageApi.js +75 -63
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +7 -0
  15. package/dist/model/AWSRoleConfig.js +131 -0
  16. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  17. package/dist/model/Alert.js +76 -74
  18. package/dist/model/AlertDataInner.js +36 -36
  19. package/dist/model/AlertNotificationsInner.js +18 -18
  20. package/dist/model/AwsRoute.js +78 -65
  21. package/dist/model/AzureRoute.js +43 -43
  22. package/dist/model/BillingAccount.js +21 -21
  23. package/dist/model/BillingAccountRole.js +9 -9
  24. package/dist/model/BlynkRoute.js +28 -28
  25. package/dist/model/Body.js +5 -5
  26. package/dist/model/CellularPlan.js +34 -34
  27. package/dist/model/CloneProjectRequest.js +20 -20
  28. package/dist/model/Contact.js +22 -22
  29. package/dist/model/CreateFleetRequest.js +20 -20
  30. package/dist/model/CreateMonitor.js +132 -126
  31. package/dist/model/CreateProductRequest.js +22 -22
  32. package/dist/model/CreateProjectRequest.js +16 -16
  33. package/dist/model/CreateUpdateRepository.js +17 -17
  34. package/dist/model/CurrentFirmware.js +12 -12
  35. package/dist/model/DFUEnv.js +12 -12
  36. package/dist/model/DFUState.js +65 -65
  37. package/dist/model/DataField.js +7 -7
  38. package/dist/model/DataSetField.js +19 -19
  39. package/dist/model/DataUsage.js +14 -14
  40. package/dist/model/DatacakeRoute.js +35 -35
  41. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  42. package/dist/model/DeleteNotefilesRequest.js +7 -7
  43. package/dist/model/Device.js +107 -106
  44. package/dist/model/DeviceDfuHistory.js +20 -19
  45. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  46. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  47. package/dist/model/DeviceDfuStateMachine.js +25 -24
  48. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  49. package/dist/model/DeviceDfuStatus.js +20 -20
  50. package/dist/model/DeviceDfuStatusPage.js +13 -12
  51. package/dist/model/DeviceSession.js +221 -221
  52. package/dist/model/DeviceTowerInfo.js +14 -14
  53. package/dist/model/DeviceUsage.js +32 -32
  54. package/dist/model/DfuActionRequest.js +7 -7
  55. package/dist/model/EmailNotification.js +7 -7
  56. package/dist/model/EnvTreeJsonNode.js +69 -67
  57. package/dist/model/EnvVar.js +18 -18
  58. package/dist/model/EnvironmentVariables.js +8 -8
  59. package/dist/model/Error.js +31 -31
  60. package/dist/model/Event.js +248 -248
  61. package/dist/model/Filter.js +16 -16
  62. package/dist/model/Firmware.js +49 -49
  63. package/dist/model/FirmwareInfo.js +60 -60
  64. package/dist/model/Fleet.js +38 -38
  65. package/dist/model/FleetConnectivityAssurance.js +5 -5
  66. package/dist/model/GetAlerts200Response.js +15 -14
  67. package/dist/model/GetBillingAccounts200Response.js +10 -9
  68. package/dist/model/GetDataUsage200Response.js +19 -9
  69. package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
  70. package/dist/model/GetDbNote200Response.js +13 -13
  71. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  72. package/dist/model/GetDeviceFleets200Response.js +12 -11
  73. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  74. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  75. package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
  76. package/dist/model/GetDevicePlans200Response.js +10 -9
  77. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  78. package/dist/model/GetDevicePublicKeys200Response.js +17 -16
  79. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  80. package/dist/model/GetDeviceSessions200Response.js +17 -16
  81. package/dist/model/GetDevices200Response.js +17 -16
  82. package/dist/model/GetEvents200Response.js +21 -20
  83. package/dist/model/GetEventsByCursor200Response.js +24 -23
  84. package/dist/model/GetNotefile200Response.js +11 -11
  85. package/dist/model/GetProducts200Response.js +10 -9
  86. package/dist/model/GetProjectMembers200Response.js +12 -11
  87. package/dist/model/GetProjects200Response.js +10 -9
  88. package/dist/model/GetRouteLogsUsage200Response.js +21 -11
  89. package/dist/model/GetSessionsUsage200Response.js +27 -15
  90. package/dist/model/GetWebhooks200Response.js +10 -9
  91. package/dist/model/GoogleRoute.js +33 -33
  92. package/dist/model/HttpRoute.js +35 -35
  93. package/dist/model/Location.js +40 -40
  94. package/dist/model/Login200Response.js +7 -7
  95. package/dist/model/LoginRequest.js +12 -12
  96. package/dist/model/Monitor.js +106 -100
  97. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  98. package/dist/model/MqttRoute.js +68 -68
  99. package/dist/model/Note.js +31 -31
  100. package/dist/model/NoteInput.js +9 -9
  101. package/dist/model/Notefile.js +23 -22
  102. package/dist/model/NotefileSchema.js +19 -18
  103. package/dist/model/NotehubRoute.js +103 -103
  104. package/dist/model/NotehubRouteSummary.js +23 -23
  105. package/dist/model/OAuth2Error.js +20 -20
  106. package/dist/model/OAuth2TokenResponse.js +23 -23
  107. package/dist/model/PersonalAccessToken.js +34 -34
  108. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  109. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  110. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  111. package/dist/model/Product.js +26 -26
  112. package/dist/model/Project.js +34 -34
  113. package/dist/model/ProjectMember.js +22 -22
  114. package/dist/model/ProvisionDeviceRequest.js +18 -18
  115. package/dist/model/ProxyRoute.js +29 -29
  116. package/dist/model/QubitroRoute.js +33 -33
  117. package/dist/model/RadRoute.js +31 -31
  118. package/dist/model/Repository.js +22 -22
  119. package/dist/model/Role.js +9 -9
  120. package/dist/model/RouteLog.js +38 -38
  121. package/dist/model/RouteTransformSettings.js +18 -18
  122. package/dist/model/S3ArchiveRoute.js +79 -79
  123. package/dist/model/SatelliteDataUsage.js +18 -18
  124. package/dist/model/SatellitePlan.js +29 -29
  125. package/dist/model/SchemaProperty.js +38 -36
  126. package/dist/model/SignalDevice200Response.js +5 -5
  127. package/dist/model/SimUsage.js +19 -19
  128. package/dist/model/SlackBearerNotification.js +25 -25
  129. package/dist/model/SlackRoute.js +48 -48
  130. package/dist/model/SlackWebHookNotification.js +20 -20
  131. package/dist/model/SnowflakeRoute.js +45 -45
  132. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  133. package/dist/model/ThingworxRoute.js +33 -33
  134. package/dist/model/TowerLocation.js +54 -54
  135. package/dist/model/TwilioRoute.js +43 -43
  136. package/dist/model/UpdateFleetRequest.js +33 -33
  137. package/dist/model/UploadMetadata.js +64 -64
  138. package/dist/model/UsageData.js +47 -47
  139. package/dist/model/UsageEventsData.js +55 -37
  140. package/dist/model/UsageEventsResponse.js +21 -11
  141. package/dist/model/UsageRouteLogsData.js +27 -27
  142. package/dist/model/UsageSessionsData.js +32 -32
  143. package/dist/model/UserDfuStateMachine.js +20 -20
  144. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  145. package/dist/model/UserFirmwareInfo.js +12 -12
  146. package/dist/model/WebhookSettings.js +15 -15
  147. package/package.json +3 -3
@@ -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
@@ -28,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  *
29
29
  */
30
30
  /**
31
- * Route service.
32
- * @module api/RouteApi
33
- * @version 5.0.0
34
- */
31
+ * Route service.
32
+ * @module api/RouteApi
33
+ * @version 6.0.0-beta.10
34
+ */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
37
- * Constructs a new RouteApi.
38
- * @alias module:api/RouteApi
39
- * @class
40
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
- * default to {@link module:ApiClient#instance} if unspecified.
42
- */
37
+ * Constructs a new RouteApi.
38
+ * @alias module:api/RouteApi
39
+ * @class
40
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
41
+ * default to {@link module:ApiClient#instance} if unspecified.
42
+ */
43
43
  function RouteApi(apiClient) {
44
44
  _classCallCheck(this, RouteApi);
45
45
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -47,7 +47,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
47
47
 
48
48
  /**
49
49
  * Create Route within a Project
50
- * @param {String} projectOrProductUID
50
+ * @param {String} projectOrProductUID
51
51
  * @param {module:model/NotehubRoute} notehubRoute Route to be created
52
52
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
53
53
  */
@@ -64,21 +64,21 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
64
64
  throw new _Error["default"]("Missing the required parameter 'notehubRoute' when calling createRoute");
65
65
  }
66
66
  var pathParams = {
67
- projectOrProductUID: projectOrProductUID
67
+ 'projectOrProductUID': projectOrProductUID
68
68
  };
69
69
  var queryParams = {};
70
70
  var headerParams = {};
71
71
  var formParams = {};
72
- var authNames = ["personalAccessToken"];
73
- var contentTypes = ["application/json"];
74
- var accepts = ["application/json"];
72
+ var authNames = ['personalAccessToken'];
73
+ var contentTypes = ['application/json'];
74
+ var accepts = ['application/json'];
75
75
  var returnType = _NotehubRoute["default"];
76
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
76
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
77
77
  }
78
78
 
79
79
  /**
80
80
  * Create Route within a Project
81
- * @param {String} projectOrProductUID
81
+ * @param {String} projectOrProductUID
82
82
  * @param {module:model/NotehubRoute} notehubRoute Route to be created
83
83
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
84
84
  */
@@ -92,8 +92,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
92
92
 
93
93
  /**
94
94
  * Delete single route within a project
95
- * @param {String} projectOrProductUID
96
- * @param {String} routeUID
95
+ * @param {String} projectOrProductUID
96
+ * @param {String} routeUID
97
97
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
98
98
  */
99
99
  }, {
@@ -109,23 +109,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
109
109
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling deleteRoute");
110
110
  }
111
111
  var pathParams = {
112
- projectOrProductUID: projectOrProductUID,
113
- routeUID: routeUID
112
+ 'projectOrProductUID': projectOrProductUID,
113
+ 'routeUID': routeUID
114
114
  };
115
115
  var queryParams = {};
116
116
  var headerParams = {};
117
117
  var formParams = {};
118
- var authNames = ["personalAccessToken"];
118
+ var authNames = ['personalAccessToken'];
119
119
  var contentTypes = [];
120
- var accepts = ["application/json"];
120
+ var accepts = ['application/json'];
121
121
  var returnType = null;
122
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
122
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
123
123
  }
124
124
 
125
125
  /**
126
126
  * Delete single route within a project
127
- * @param {String} projectOrProductUID
128
- * @param {String} routeUID
127
+ * @param {String} projectOrProductUID
128
+ * @param {String} routeUID
129
129
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
130
130
  */
131
131
  }, {
@@ -138,8 +138,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
138
138
 
139
139
  /**
140
140
  * Get single route within a project
141
- * @param {String} projectOrProductUID
142
- * @param {String} routeUID
141
+ * @param {String} projectOrProductUID
142
+ * @param {String} routeUID
143
143
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
144
144
  */
145
145
  }, {
@@ -155,23 +155,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
155
155
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRoute");
156
156
  }
157
157
  var pathParams = {
158
- projectOrProductUID: projectOrProductUID,
159
- routeUID: routeUID
158
+ 'projectOrProductUID': projectOrProductUID,
159
+ 'routeUID': routeUID
160
160
  };
161
161
  var queryParams = {};
162
162
  var headerParams = {};
163
163
  var formParams = {};
164
- var authNames = ["personalAccessToken"];
164
+ var authNames = ['personalAccessToken'];
165
165
  var contentTypes = [];
166
- var accepts = ["application/json"];
166
+ var accepts = ['application/json'];
167
167
  var returnType = _NotehubRoute["default"];
168
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
168
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
169
169
  }
170
170
 
171
171
  /**
172
172
  * Get single route within a project
173
- * @param {String} projectOrProductUID
174
- * @param {String} routeUID
173
+ * @param {String} projectOrProductUID
174
+ * @param {String} routeUID
175
175
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
176
176
  */
177
177
  }, {
@@ -184,8 +184,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
184
184
 
185
185
  /**
186
186
  * Get Route Logs by Route UID
187
- * @param {String} projectOrProductUID
188
- * @param {String} routeUID
187
+ * @param {String} projectOrProductUID
188
+ * @param {String} routeUID
189
189
  * @param {Object} opts Optional parameters
190
190
  * @param {Number} opts.pageSize (default to 50)
191
191
  * @param {Number} opts.pageNum (default to 1)
@@ -194,11 +194,11 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
194
194
  * @param {module:model/String} opts.sortOrder (default to 'desc')
195
195
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
196
196
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
197
- * @param {Boolean} opts.systemFilesOnly
198
- * @param {Boolean} opts.mostRecentOnly
199
- * @param {String} opts.files
200
- * @param {Array.<module:model/String>} opts.routingStatus
201
- * @param {Array.<String>} opts.responseStatus
197
+ * @param {Boolean} opts.systemFilesOnly
198
+ * @param {Boolean} opts.mostRecentOnly
199
+ * @param {String} opts.files
200
+ * @param {Array.<module:model/String>} opts.routingStatus
201
+ * @param {Array.<String>} opts.responseStatus
202
202
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
203
203
  */
204
204
  }, {
@@ -215,36 +215,36 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
215
215
  throw new _Error["default"]("Missing the required parameter 'routeUID' when calling getRouteLogsByRoute");
216
216
  }
217
217
  var pathParams = {
218
- projectOrProductUID: projectOrProductUID,
219
- routeUID: routeUID
218
+ 'projectOrProductUID': projectOrProductUID,
219
+ 'routeUID': routeUID
220
220
  };
221
221
  var queryParams = {
222
- pageSize: opts["pageSize"],
223
- pageNum: opts["pageNum"],
224
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
225
- sortBy: opts["sortBy"],
226
- sortOrder: opts["sortOrder"],
227
- startDate: opts["startDate"],
228
- endDate: opts["endDate"],
229
- systemFilesOnly: opts["systemFilesOnly"],
230
- mostRecentOnly: opts["mostRecentOnly"],
231
- files: opts["files"],
232
- routingStatus: this.apiClient.buildCollectionParam(opts["routingStatus"], "multi"),
233
- responseStatus: this.apiClient.buildCollectionParam(opts["responseStatus"], "multi")
222
+ 'pageSize': opts['pageSize'],
223
+ 'pageNum': opts['pageNum'],
224
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
225
+ 'sortBy': opts['sortBy'],
226
+ 'sortOrder': opts['sortOrder'],
227
+ 'startDate': opts['startDate'],
228
+ 'endDate': opts['endDate'],
229
+ 'systemFilesOnly': opts['systemFilesOnly'],
230
+ 'mostRecentOnly': opts['mostRecentOnly'],
231
+ 'files': opts['files'],
232
+ 'routingStatus': this.apiClient.buildCollectionParam(opts['routingStatus'], 'multi'),
233
+ 'responseStatus': this.apiClient.buildCollectionParam(opts['responseStatus'], 'multi')
234
234
  };
235
235
  var headerParams = {};
236
236
  var formParams = {};
237
- var authNames = ["personalAccessToken"];
237
+ var authNames = ['personalAccessToken'];
238
238
  var contentTypes = [];
239
- var accepts = ["application/json"];
239
+ var accepts = ['application/json'];
240
240
  var returnType = [_RouteLog["default"]];
241
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
241
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
242
242
  }
243
243
 
244
244
  /**
245
245
  * Get Route Logs by Route UID
246
- * @param {String} projectOrProductUID
247
- * @param {String} routeUID
246
+ * @param {String} projectOrProductUID
247
+ * @param {String} routeUID
248
248
  * @param {Object} opts Optional parameters
249
249
  * @param {Number} opts.pageSize (default to 50)
250
250
  * @param {Number} opts.pageNum (default to 1)
@@ -253,11 +253,11 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
253
253
  * @param {module:model/String} opts.sortOrder (default to 'desc')
254
254
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
255
255
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
256
- * @param {Boolean} opts.systemFilesOnly
257
- * @param {Boolean} opts.mostRecentOnly
258
- * @param {String} opts.files
259
- * @param {Array.<module:model/String>} opts.routingStatus
260
- * @param {Array.<String>} opts.responseStatus
256
+ * @param {Boolean} opts.systemFilesOnly
257
+ * @param {Boolean} opts.mostRecentOnly
258
+ * @param {String} opts.files
259
+ * @param {Array.<module:model/String>} opts.routingStatus
260
+ * @param {Array.<String>} opts.responseStatus
261
261
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
262
262
  */
263
263
  }, {
@@ -270,7 +270,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
270
270
 
271
271
  /**
272
272
  * Get all Routes within a Project
273
- * @param {String} projectOrProductUID
273
+ * @param {String} projectOrProductUID
274
274
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
275
275
  */
276
276
  }, {
@@ -282,21 +282,21 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
282
282
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getRoutes");
283
283
  }
284
284
  var pathParams = {
285
- projectOrProductUID: projectOrProductUID
285
+ 'projectOrProductUID': projectOrProductUID
286
286
  };
287
287
  var queryParams = {};
288
288
  var headerParams = {};
289
289
  var formParams = {};
290
- var authNames = ["personalAccessToken"];
290
+ var authNames = ['personalAccessToken'];
291
291
  var contentTypes = [];
292
- var accepts = ["application/json"];
292
+ var accepts = ['application/json'];
293
293
  var returnType = [_NotehubRouteSummary["default"]];
294
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
294
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
295
295
  }
296
296
 
297
297
  /**
298
298
  * Get all Routes within a Project
299
- * @param {String} projectOrProductUID
299
+ * @param {String} projectOrProductUID
300
300
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
301
301
  */
302
302
  }, {
@@ -309,8 +309,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
309
309
 
310
310
  /**
311
311
  * Update route by UID
312
- * @param {String} projectOrProductUID
313
- * @param {String} routeUID
312
+ * @param {String} projectOrProductUID
313
+ * @param {String} routeUID
314
314
  * @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
315
315
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
316
316
  */
@@ -331,23 +331,23 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
331
331
  throw new _Error["default"]("Missing the required parameter 'notehubRoute' when calling updateRoute");
332
332
  }
333
333
  var pathParams = {
334
- projectOrProductUID: projectOrProductUID,
335
- routeUID: routeUID
334
+ 'projectOrProductUID': projectOrProductUID,
335
+ 'routeUID': routeUID
336
336
  };
337
337
  var queryParams = {};
338
338
  var headerParams = {};
339
339
  var formParams = {};
340
- var authNames = ["personalAccessToken"];
341
- var contentTypes = ["application/json"];
342
- var accepts = ["application/json"];
340
+ var authNames = ['personalAccessToken'];
341
+ var contentTypes = ['application/json'];
342
+ var accepts = ['application/json'];
343
343
  var returnType = _NotehubRoute["default"];
344
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/routes/{routeUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
344
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
345
345
  }
346
346
 
347
347
  /**
348
348
  * Update route by UID
349
- * @param {String} projectOrProductUID
350
- * @param {String} routeUID
349
+ * @param {String} projectOrProductUID
350
+ * @param {String} routeUID
351
351
  * @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
352
352
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
353
353
  */
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
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
@@ -29,18 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  *
30
30
  */
31
31
  /**
32
- * Usage service.
33
- * @module api/UsageApi
34
- * @version 5.0.0
35
- */
32
+ * Usage service.
33
+ * @module api/UsageApi
34
+ * @version 6.0.0-beta.10
35
+ */
36
36
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
38
- * Constructs a new UsageApi.
39
- * @alias module:api/UsageApi
40
- * @class
41
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
42
- * default to {@link module:ApiClient#instance} if unspecified.
43
- */
38
+ * Constructs a new UsageApi.
39
+ * @alias module:api/UsageApi
40
+ * @class
41
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
42
+ * default to {@link module:ApiClient#instance} if unspecified.
43
+ */
44
44
  function UsageApi(apiClient) {
45
45
  _classCallCheck(this, UsageApi);
46
46
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -48,13 +48,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
48
48
 
49
49
  /**
50
50
  * Get data usage in bytes for a project with time range and period aggregation
51
- * @param {String} projectOrProductUID
51
+ * @param {String} projectOrProductUID
52
52
  * @param {module:model/String} period Period type for aggregation
53
53
  * @param {Object} opts Optional parameters
54
54
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
55
55
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
56
56
  * @param {Array.<String>} opts.deviceUID A Device UID.
57
57
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
58
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
58
59
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
59
60
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDataUsage200Response} and HTTP response
60
61
  */
@@ -72,34 +73,36 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
72
73
  throw new _Error["default"]("Missing the required parameter 'period' when calling getDataUsage");
73
74
  }
74
75
  var pathParams = {
75
- projectOrProductUID: projectOrProductUID
76
+ 'projectOrProductUID': projectOrProductUID
76
77
  };
77
78
  var queryParams = {
78
- startDate: opts["startDate"],
79
- endDate: opts["endDate"],
80
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
81
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
82
- period: period,
83
- aggregate: opts["aggregate"]
79
+ 'startDate': opts['startDate'],
80
+ 'endDate': opts['endDate'],
81
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
82
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
83
+ 'limit': opts['limit'],
84
+ 'period': period,
85
+ 'aggregate': opts['aggregate']
84
86
  };
85
87
  var headerParams = {};
86
88
  var formParams = {};
87
- var authNames = ["personalAccessToken"];
89
+ var authNames = ['personalAccessToken'];
88
90
  var contentTypes = [];
89
- var accepts = ["application/json"];
91
+ var accepts = ['application/json'];
90
92
  var returnType = _GetDataUsage200Response["default"];
91
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/usage/data", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
93
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/data', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
92
94
  }
93
95
 
94
96
  /**
95
97
  * Get data usage in bytes for a project with time range and period aggregation
96
- * @param {String} projectOrProductUID
98
+ * @param {String} projectOrProductUID
97
99
  * @param {module:model/String} period Period type for aggregation
98
100
  * @param {Object} opts Optional parameters
99
101
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
100
102
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
101
103
  * @param {Array.<String>} opts.deviceUID A Device UID.
102
104
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
105
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
103
106
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
104
107
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDataUsage200Response}
105
108
  */
@@ -113,13 +116,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
113
116
 
114
117
  /**
115
118
  * Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
116
- * @param {String} projectOrProductUID
119
+ * @param {String} projectOrProductUID
117
120
  * @param {module:model/String} period Period type for aggregation
118
121
  * @param {Object} opts Optional parameters
119
122
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
120
123
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
121
124
  * @param {Array.<String>} opts.deviceUID A Device UID.
122
125
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
126
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
123
127
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
124
128
  * @param {Array.<String>} opts.notefile Filter to specific notefiles
125
129
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
@@ -140,37 +144,39 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
140
144
  throw new _Error["default"]("Missing the required parameter 'period' when calling getEventsUsage");
141
145
  }
142
146
  var pathParams = {
143
- projectOrProductUID: projectOrProductUID
147
+ 'projectOrProductUID': projectOrProductUID
144
148
  };
145
149
  var queryParams = {
146
- startDate: opts["startDate"],
147
- endDate: opts["endDate"],
148
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
149
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
150
- period: period,
151
- aggregate: opts["aggregate"],
152
- notefile: this.apiClient.buildCollectionParam(opts["notefile"], "multi"),
153
- skipRecentData: opts["skipRecentData"],
154
- includeNotefiles: opts["includeNotefiles"]
150
+ 'startDate': opts['startDate'],
151
+ 'endDate': opts['endDate'],
152
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
153
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
154
+ 'limit': opts['limit'],
155
+ 'period': period,
156
+ 'aggregate': opts['aggregate'],
157
+ 'notefile': this.apiClient.buildCollectionParam(opts['notefile'], 'multi'),
158
+ 'skipRecentData': opts['skipRecentData'],
159
+ 'includeNotefiles': opts['includeNotefiles']
155
160
  };
156
161
  var headerParams = {};
157
162
  var formParams = {};
158
- var authNames = ["personalAccessToken"];
163
+ var authNames = ['personalAccessToken'];
159
164
  var contentTypes = [];
160
- var accepts = ["application/json"];
165
+ var accepts = ['application/json'];
161
166
  var returnType = _UsageEventsResponse["default"];
162
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/usage/events", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
167
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/events', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
163
168
  }
164
169
 
165
170
  /**
166
171
  * Get events usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
167
- * @param {String} projectOrProductUID
172
+ * @param {String} projectOrProductUID
168
173
  * @param {module:model/String} period Period type for aggregation
169
174
  * @param {Object} opts Optional parameters
170
175
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
171
176
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
172
177
  * @param {Array.<String>} opts.deviceUID A Device UID.
173
178
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
179
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
174
180
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
175
181
  * @param {Array.<String>} opts.notefile Filter to specific notefiles
176
182
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
@@ -187,12 +193,13 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
187
193
 
188
194
  /**
189
195
  * Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
190
- * @param {String} projectOrProductUID
196
+ * @param {String} projectOrProductUID
191
197
  * @param {module:model/String} period Period type for aggregation
192
198
  * @param {Object} opts Optional parameters
193
199
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
194
200
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
195
201
  * @param {Array.<String>} opts.routeUID A Route UID.
202
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
196
203
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
197
204
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
198
205
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRouteLogsUsage200Response} and HTTP response
@@ -211,33 +218,35 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
211
218
  throw new _Error["default"]("Missing the required parameter 'period' when calling getRouteLogsUsage");
212
219
  }
213
220
  var pathParams = {
214
- projectOrProductUID: projectOrProductUID
221
+ 'projectOrProductUID': projectOrProductUID
215
222
  };
216
223
  var queryParams = {
217
- startDate: opts["startDate"],
218
- endDate: opts["endDate"],
219
- routeUID: this.apiClient.buildCollectionParam(opts["routeUID"], "multi"),
220
- period: period,
221
- aggregate: opts["aggregate"],
222
- skipRecentData: opts["skipRecentData"]
224
+ 'startDate': opts['startDate'],
225
+ 'endDate': opts['endDate'],
226
+ 'routeUID': this.apiClient.buildCollectionParam(opts['routeUID'], 'multi'),
227
+ 'limit': opts['limit'],
228
+ 'period': period,
229
+ 'aggregate': opts['aggregate'],
230
+ 'skipRecentData': opts['skipRecentData']
223
231
  };
224
232
  var headerParams = {};
225
233
  var formParams = {};
226
- var authNames = ["personalAccessToken"];
234
+ var authNames = ['personalAccessToken'];
227
235
  var contentTypes = [];
228
- var accepts = ["application/json"];
236
+ var accepts = ['application/json'];
229
237
  var returnType = _GetRouteLogsUsage200Response["default"];
230
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/usage/route-logs", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
238
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/route-logs', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
231
239
  }
232
240
 
233
241
  /**
234
242
  * Get route logs usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
235
- * @param {String} projectOrProductUID
243
+ * @param {String} projectOrProductUID
236
244
  * @param {module:model/String} period Period type for aggregation
237
245
  * @param {Object} opts Optional parameters
238
246
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
239
247
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
240
248
  * @param {Array.<String>} opts.routeUID A Route UID.
249
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
241
250
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'route')
242
251
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
243
252
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRouteLogsUsage200Response}
@@ -252,13 +261,14 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
252
261
 
253
262
  /**
254
263
  * Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
255
- * @param {String} projectOrProductUID
264
+ * @param {String} projectOrProductUID
256
265
  * @param {module:model/String} period Period type for aggregation
257
266
  * @param {Object} opts Optional parameters
258
267
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
259
268
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
260
269
  * @param {Array.<String>} opts.deviceUID A Device UID.
261
270
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
271
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
262
272
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
263
273
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
264
274
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetSessionsUsage200Response} and HTTP response
@@ -277,35 +287,37 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
277
287
  throw new _Error["default"]("Missing the required parameter 'period' when calling getSessionsUsage");
278
288
  }
279
289
  var pathParams = {
280
- projectOrProductUID: projectOrProductUID
290
+ 'projectOrProductUID': projectOrProductUID
281
291
  };
282
292
  var queryParams = {
283
- startDate: opts["startDate"],
284
- endDate: opts["endDate"],
285
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
286
- fleetUID: this.apiClient.buildCollectionParam(opts["fleetUID"], "multi"),
287
- period: period,
288
- aggregate: opts["aggregate"],
289
- skipRecentData: opts["skipRecentData"]
293
+ 'startDate': opts['startDate'],
294
+ 'endDate': opts['endDate'],
295
+ 'deviceUID': this.apiClient.buildCollectionParam(opts['deviceUID'], 'multi'),
296
+ 'fleetUID': this.apiClient.buildCollectionParam(opts['fleetUID'], 'multi'),
297
+ 'limit': opts['limit'],
298
+ 'period': period,
299
+ 'aggregate': opts['aggregate'],
300
+ 'skipRecentData': opts['skipRecentData']
290
301
  };
291
302
  var headerParams = {};
292
303
  var formParams = {};
293
- var authNames = ["personalAccessToken"];
304
+ var authNames = ['personalAccessToken'];
294
305
  var contentTypes = [];
295
- var accepts = ["application/json"];
306
+ var accepts = ['application/json'];
296
307
  var returnType = _GetSessionsUsage200Response["default"];
297
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/usage/sessions", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
308
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/usage/sessions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
298
309
  }
299
310
 
300
311
  /**
301
312
  * Get sessions usage for a project with time range and period aggregation, when endDate is 0 or unspecified the current time is implied
302
- * @param {String} projectOrProductUID
313
+ * @param {String} projectOrProductUID
303
314
  * @param {module:model/String} period Period type for aggregation
304
315
  * @param {Object} opts Optional parameters
305
316
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
306
317
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
307
318
  * @param {Array.<String>} opts.deviceUID A Device UID.
308
319
  * @param {Array.<String>} opts.fleetUID Filter by Fleet UID
320
+ * @param {Number} opts.limit Limit the number of data points returned (default to 200000)
309
321
  * @param {module:model/String} opts.aggregate Aggregation level for results (default to 'device')
310
322
  * @param {Boolean} opts.skipRecentData When true, skips fetching recent data from raw event tables and only returns data from summary tables. Use this for better performance on large projects. (default to false)
311
323
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetSessionsUsage200Response}