@blues-inc/notehub-js 6.6.0 → 6.7.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 (191) hide show
  1. package/README.md +142 -149
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +5 -2
  4. package/dist/api/AuthorizationApi.js +2 -2
  5. package/dist/api/DescriptionApi.js +2 -2
  6. package/dist/api/DeviceApi.js +15 -3
  7. package/dist/api/EventApi.js +8 -147
  8. package/dist/api/ExternalDevicesApi.js +2 -2
  9. package/dist/api/JobsApi.js +2 -2
  10. package/dist/api/MonitorApi.js +2 -2
  11. package/dist/api/OrganizationApi.js +10 -10
  12. package/dist/api/ProjectApi.js +12 -6
  13. package/dist/api/RouteApi.js +5 -2
  14. package/dist/api/UsageApi.js +67 -7
  15. package/dist/api/WebhookApi.js +2 -2
  16. package/dist/index.js +38 -73
  17. package/dist/model/AWSRoleConfig.js +2 -2
  18. package/dist/model/AddDeviceToFleetsRequest.js +2 -2
  19. package/dist/model/Alert.js +2 -2
  20. package/dist/model/AlertDataInner.js +2 -2
  21. package/dist/model/AlertNotificationsInner.js +2 -2
  22. package/dist/model/ArchiveStats.js +2 -2
  23. package/dist/model/AwsRoute.js +2 -2
  24. package/dist/model/AzureRoute.js +2 -2
  25. package/dist/model/BatchJobNoteRequest.js +2 -2
  26. package/dist/model/BatchJobRequests.js +2 -2
  27. package/dist/model/BillingAccount.js +2 -2
  28. package/dist/model/BillingAccountRole.js +1 -1
  29. package/dist/model/BlynkRoute.js +2 -2
  30. package/dist/model/Body.js +2 -2
  31. package/dist/model/CancelJobRun200Response.js +2 -2
  32. package/dist/model/CellularPlan.js +2 -2
  33. package/dist/model/CloneProjectRequest.js +2 -2
  34. package/dist/model/Contact.js +2 -2
  35. package/dist/model/CreateFleetRequest.js +2 -2
  36. package/dist/model/CreateJob201Response.js +2 -2
  37. package/dist/model/CreateMonitor.js +2 -2
  38. package/dist/model/CreateProductRequest.js +2 -2
  39. package/dist/model/CreateProjectRequest.js +2 -2
  40. package/dist/model/CreateProjectSecretRequest.js +2 -2
  41. package/dist/model/CreateUpdateRepository.js +2 -2
  42. package/dist/model/CreatedRepository.js +3 -3
  43. package/dist/model/CurrentFirmware.js +2 -2
  44. package/dist/model/DFUEnv.js +2 -2
  45. package/dist/model/DFUState.js +2 -2
  46. package/dist/model/DataField.js +2 -2
  47. package/dist/model/DataSet.js +50 -2
  48. package/dist/model/DataSetField.js +2 -2
  49. package/dist/model/DataUsage.js +2 -2
  50. package/dist/model/DatacakeRoute.js +2 -2
  51. package/dist/model/DatasetReloadProgress.js +2 -2
  52. package/dist/model/DeleteDeviceFromFleetsRequest.js +2 -2
  53. package/dist/model/DeleteJob200Response.js +2 -2
  54. package/dist/model/DeleteNotefilesRequest.js +2 -2
  55. package/dist/model/DescriptionRecord.js +2 -2
  56. package/dist/model/DescriptionRecordList.js +2 -2
  57. package/dist/model/Device.js +11 -2
  58. package/dist/model/DeviceDfuHistory.js +11 -2
  59. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  60. package/dist/model/DeviceDfuHistoryPage.js +15 -2
  61. package/dist/model/DeviceDfuStateMachine.js +2 -2
  62. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  63. package/dist/model/DeviceDfuStatus.js +11 -2
  64. package/dist/model/DeviceDfuStatusPage.js +15 -2
  65. package/dist/model/DeviceSensor.js +2 -2
  66. package/dist/model/DeviceSession.js +2 -2
  67. package/dist/model/DeviceTowerInfo.js +2 -2
  68. package/dist/model/DeviceUsage.js +2 -2
  69. package/dist/model/DfuActionRequest.js +2 -2
  70. package/dist/model/EmailNotification.js +2 -2
  71. package/dist/model/EnvTreeJsonNode.js +2 -2
  72. package/dist/model/EnvVar.js +2 -2
  73. package/dist/model/EnvironmentVariables.js +2 -2
  74. package/dist/model/Error.js +2 -2
  75. package/dist/model/Event.js +20 -2
  76. package/dist/model/Filter.js +2 -2
  77. package/dist/model/Firmware.js +2 -2
  78. package/dist/model/FirmwareInfo.js +2 -2
  79. package/dist/model/Fleet.js +2 -2
  80. package/dist/model/FleetConnectivityAssurance.js +2 -2
  81. package/dist/model/GetAlerts200Response.js +15 -2
  82. package/dist/model/{GetEventsByCursor200Response.js → GetApiUsage200Response.js} +39 -56
  83. package/dist/model/GetDataUsage200Response.js +2 -2
  84. package/dist/model/GetDataUsage200ResponseDataInner.js +2 -2
  85. package/dist/model/GetDbNote200Response.js +2 -2
  86. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  87. package/dist/model/GetDeviceFleets200Response.js +2 -2
  88. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  89. package/dist/model/GetDeviceJourney200Response.js +2 -2
  90. package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
  91. package/dist/model/GetDeviceJourneys200Response.js +2 -2
  92. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +2 -2
  93. package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
  94. package/dist/model/GetDevicePlans200Response.js +2 -2
  95. package/dist/model/GetDevicePublicKey200Response.js +2 -2
  96. package/dist/model/GetDevicePublicKeys200Response.js +15 -2
  97. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -2
  98. package/dist/model/GetDeviceSessions200Response.js +15 -2
  99. package/dist/model/GetDevices200Response.js +15 -2
  100. package/dist/model/GetEvents200Response.js +15 -2
  101. package/dist/model/GetJobRuns200Response.js +2 -2
  102. package/dist/model/GetJobs200Response.js +2 -2
  103. package/dist/model/GetNotefile200Response.js +2 -2
  104. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +29 -29
  105. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +25 -25
  106. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +23 -23
  107. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +23 -23
  108. package/dist/model/GetOrganizations200Response.js +2 -2
  109. package/dist/model/GetProducts200Response.js +2 -2
  110. package/dist/model/GetProjectMembers200Response.js +2 -2
  111. package/dist/model/GetProjectSecretsResponse.js +2 -2
  112. package/dist/model/GetProjects200Response.js +2 -2
  113. package/dist/model/GetRouteLogsUsage200Response.js +2 -2
  114. package/dist/model/GetSessionsUsage200Response.js +2 -2
  115. package/dist/model/GetWebhooks200Response.js +2 -2
  116. package/dist/model/GoogleRoute.js +2 -2
  117. package/dist/model/HealthLog.js +2 -2
  118. package/dist/model/HttpRoute.js +2 -2
  119. package/dist/model/Job.js +2 -2
  120. package/dist/model/JobDefinition.js +2 -2
  121. package/dist/model/JobDefinitionReportOptions.js +2 -2
  122. package/dist/model/JobDefinitionSelect.js +2 -2
  123. package/dist/model/JobDetail.js +2 -2
  124. package/dist/model/JobDetailAllOf.js +2 -2
  125. package/dist/model/JobRun.js +2 -2
  126. package/dist/model/Location.js +2 -2
  127. package/dist/model/Login200Response.js +2 -2
  128. package/dist/model/LoginRequest.js +2 -2
  129. package/dist/model/Monitor.js +2 -2
  130. package/dist/model/MonitorAlertRoutesInner.js +2 -2
  131. package/dist/model/MqttRoute.js +2 -2
  132. package/dist/model/Note.js +2 -2
  133. package/dist/model/NoteInput.js +2 -2
  134. package/dist/model/Notefile.js +2 -2
  135. package/dist/model/NotefileSchema.js +2 -2
  136. package/dist/model/NotehubRoute.js +2 -2
  137. package/dist/model/NotehubRouteSummary.js +2 -2
  138. package/dist/model/OAuth2Error.js +2 -2
  139. package/dist/model/OAuth2TokenResponse.js +2 -2
  140. package/dist/model/Organization.js +2 -2
  141. package/dist/model/OrganizationRole.js +1 -1
  142. package/dist/model/Product.js +2 -2
  143. package/dist/model/Project.js +2 -2
  144. package/dist/model/ProjectMember.js +2 -2
  145. package/dist/model/ProjectSecret.js +2 -2
  146. package/dist/model/ProvisionDeviceRequest.js +2 -2
  147. package/dist/model/ProxyRoute.js +2 -2
  148. package/dist/model/QubitroRoute.js +2 -2
  149. package/dist/model/RadRoute.js +2 -2
  150. package/dist/model/Repository.js +2 -2
  151. package/dist/model/RepositoryListResponse.js +2 -2
  152. package/dist/model/RepositoryTokenRequest.js +3 -3
  153. package/dist/model/RepositoryTokenResponse.js +2 -2
  154. package/dist/model/Role.js +1 -1
  155. package/dist/model/RouteLog.js +2 -2
  156. package/dist/model/RouteTransformSettings.js +2 -2
  157. package/dist/model/RunJob200Response.js +2 -2
  158. package/dist/model/S3ArchiveRoute.js +2 -2
  159. package/dist/model/SatelliteDataUsage.js +2 -2
  160. package/dist/model/SatellitePlan.js +2 -2
  161. package/dist/model/SchemaProperty.js +2 -2
  162. package/dist/model/SignalDevice200Response.js +2 -2
  163. package/dist/model/SimUsage.js +2 -2
  164. package/dist/model/SlackBearerNotification.js +2 -2
  165. package/dist/model/SlackRoute.js +2 -2
  166. package/dist/model/SlackWebHookNotification.js +2 -2
  167. package/dist/model/SnowflakeRoute.js +2 -2
  168. package/dist/model/SnowpipeStreamingRoute.js +2 -2
  169. package/dist/model/ThingworxRoute.js +2 -2
  170. package/dist/model/TowerLocation.js +2 -2
  171. package/dist/model/TwilioRoute.js +2 -2
  172. package/dist/model/UpdateFleetRequest.js +2 -2
  173. package/dist/model/UpdateHostFirmwareRequest.js +2 -2
  174. package/dist/model/UpdateProjectSecretRequest.js +2 -2
  175. package/dist/model/UploadMetadata.js +2 -2
  176. package/dist/model/{GetBillingAccounts200Response.js → UsageApiData.js} +77 -41
  177. package/dist/model/UsageData.js +2 -2
  178. package/dist/model/UsageEventsData.js +2 -2
  179. package/dist/model/UsageEventsResponse.js +2 -2
  180. package/dist/model/UsageRouteLogsData.js +2 -2
  181. package/dist/model/UsageSessionsData.js +2 -2
  182. package/dist/model/UserDfuStateMachine.js +2 -2
  183. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  184. package/dist/model/UserFirmwareInfo.js +2 -2
  185. package/dist/model/WebhookSettings.js +2 -2
  186. package/package.json +1 -1
  187. package/dist/api/BillingAccountApi.js +0 -167
  188. package/dist/model/PersonalAccessToken.js +0 -168
  189. package/dist/model/PersonalAccessTokenCreatedBy.js +0 -116
  190. package/dist/model/PersonalAccessTokenInfo.js +0 -121
  191. package/dist/model/PersonalAccessTokenSecret.js +0 -105
@@ -33,7 +33,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
33
33
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
34
34
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
35
35
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
36
- 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); } /**
36
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
37
37
  * Notehub API
38
38
  * The OpenAPI definition for the Notehub.io API.
39
39
  *
@@ -48,7 +48,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
48
48
  /**
49
49
  * Device service.
50
50
  * @module api/DeviceApi
51
- * @version 6.6.0
51
+ * @version 6.7.0-beta.10
52
52
  */
53
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
54
54
  /**
@@ -1128,6 +1128,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1128
1128
  * @param {Object} opts Optional parameters
1129
1129
  * @param {Number} opts.pageSize (default to 50)
1130
1130
  * @param {Number} opts.pageNum (default to 1)
1131
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1131
1132
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDevicePublicKeys200Response} and HTTP response
1132
1133
  */
1133
1134
  }, {
@@ -1144,7 +1145,8 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1144
1145
  };
1145
1146
  var queryParams = {
1146
1147
  pageSize: opts["pageSize"],
1147
- pageNum: opts["pageNum"]
1148
+ pageNum: opts["pageNum"],
1149
+ cursor: opts["cursor"]
1148
1150
  };
1149
1151
  var headerParams = {};
1150
1152
  var formParams = {};
@@ -1161,6 +1163,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1161
1163
  * @param {Object} opts Optional parameters
1162
1164
  * @param {Number} opts.pageSize (default to 50)
1163
1165
  * @param {Number} opts.pageNum (default to 1)
1166
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1164
1167
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDevicePublicKeys200Response}
1165
1168
  */
1166
1169
  }, {
@@ -1178,6 +1181,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1178
1181
  * @param {Object} opts Optional parameters
1179
1182
  * @param {Number} opts.pageSize (default to 50)
1180
1183
  * @param {Number} opts.pageNum (default to 1)
1184
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1181
1185
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1182
1186
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1183
1187
  * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
@@ -1203,6 +1207,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1203
1207
  var queryParams = {
1204
1208
  pageSize: opts["pageSize"],
1205
1209
  pageNum: opts["pageNum"],
1210
+ cursor: opts["cursor"],
1206
1211
  startDate: opts["startDate"],
1207
1212
  endDate: opts["endDate"],
1208
1213
  firstSync: opts["firstSync"]
@@ -1223,6 +1228,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1223
1228
  * @param {Object} opts Optional parameters
1224
1229
  * @param {Number} opts.pageSize (default to 50)
1225
1230
  * @param {Number} opts.pageNum (default to 1)
1231
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1226
1232
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
1227
1233
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
1228
1234
  * @param {Boolean} opts.firstSync When true, filters results to only show first sync sessions (default to false)
@@ -1242,6 +1248,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1242
1248
  * @param {Object} opts Optional parameters
1243
1249
  * @param {Number} opts.pageSize (default to 50)
1244
1250
  * @param {Number} opts.pageNum (default to 1)
1251
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1245
1252
  * @param {Array.<String>} opts.deviceUID A Device UID.
1246
1253
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1247
1254
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
@@ -1268,6 +1275,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1268
1275
  var queryParams = {
1269
1276
  pageSize: opts["pageSize"],
1270
1277
  pageNum: opts["pageNum"],
1278
+ cursor: opts["cursor"],
1271
1279
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1272
1280
  tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
1273
1281
  serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
@@ -1293,6 +1301,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1293
1301
  * @param {Object} opts Optional parameters
1294
1302
  * @param {Number} opts.pageSize (default to 50)
1295
1303
  * @param {Number} opts.pageNum (default to 1)
1304
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1296
1305
  * @param {Array.<String>} opts.deviceUID A Device UID.
1297
1306
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1298
1307
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
@@ -1319,6 +1328,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1319
1328
  * @param {Object} opts Optional parameters
1320
1329
  * @param {Number} opts.pageSize (default to 50)
1321
1330
  * @param {Number} opts.pageNum (default to 1)
1331
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1322
1332
  * @param {Array.<String>} opts.deviceUID A Device UID.
1323
1333
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1324
1334
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
@@ -1349,6 +1359,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1349
1359
  var queryParams = {
1350
1360
  pageSize: opts["pageSize"],
1351
1361
  pageNum: opts["pageNum"],
1362
+ cursor: opts["cursor"],
1352
1363
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
1353
1364
  tag: this.apiClient.buildCollectionParam(opts["tag"], "multi"),
1354
1365
  serialNumber: this.apiClient.buildCollectionParam(opts["serialNumber"], "multi"),
@@ -1374,6 +1385,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
1374
1385
  * @param {Object} opts Optional parameters
1375
1386
  * @param {Number} opts.pageSize (default to 50)
1376
1387
  * @param {Number} opts.pageNum (default to 1)
1388
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1377
1389
  * @param {Array.<String>} opts.deviceUID A Device UID.
1378
1390
  * @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
1379
1391
  * @param {Array.<String>} opts.serialNumber Serial number filter. Matches any value containing the filter text. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally.
@@ -7,7 +7,6 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Error = _interopRequireDefault(require("../model/Error"));
9
9
  var _GetEvents200Response = _interopRequireDefault(require("../model/GetEvents200Response"));
10
- var _GetEventsByCursor200Response = _interopRequireDefault(require("../model/GetEventsByCursor200Response"));
11
10
  var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
12
11
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
12
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -15,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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); } /**
17
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
19
18
  * Notehub API
20
19
  * The OpenAPI definition for the Notehub.io API.
21
20
  *
@@ -30,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
29
  /**
31
30
  * Event service.
32
31
  * @module api/EventApi
33
- * @version 6.6.0
32
+ * @version 6.7.0-beta.10
34
33
  */
35
34
  var EventApi = exports["default"] = /*#__PURE__*/function () {
36
35
  /**
@@ -51,6 +50,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
51
50
  * @param {Object} opts Optional parameters
52
51
  * @param {Number} opts.pageSize (default to 50)
53
52
  * @param {Number} opts.pageNum (default to 1)
53
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
54
54
  * @param {Array.<String>} opts.deviceUID A Device UID.
55
55
  * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
56
56
  * @param {module:model/String} opts.sortBy (default to 'captured')
@@ -83,6 +83,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
83
83
  var queryParams = {
84
84
  pageSize: opts["pageSize"],
85
85
  pageNum: opts["pageNum"],
86
+ cursor: opts["cursor"],
86
87
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
87
88
  sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
88
89
  sortBy: opts["sortBy"],
@@ -114,6 +115,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
114
115
  * @param {Object} opts Optional parameters
115
116
  * @param {Number} opts.pageSize (default to 50)
116
117
  * @param {Number} opts.pageNum (default to 1)
118
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
117
119
  * @param {Array.<String>} opts.deviceUID A Device UID.
118
120
  * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
119
121
  * @param {module:model/String} opts.sortBy (default to 'captured')
@@ -139,73 +141,6 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
139
141
  });
140
142
  }
141
143
 
142
- /**
143
- * Get Events of a Project by cursor
144
- * @param {String} projectOrProductUID
145
- * @param {Object} opts Optional parameters
146
- * @param {Number} opts.limit (default to 50)
147
- * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
148
- * @param {module:model/String} opts.sortOrder (default to 'asc')
149
- * @param {Boolean} opts.systemFilesOnly
150
- * @param {String} opts.files
151
- * @param {String} opts.fleetUID
152
- * @param {Array.<String>} opts.deviceUID A Device UID.
153
- * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
154
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
155
- */
156
- }, {
157
- key: "getEventsByCursorWithHttpInfo",
158
- value: function getEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
159
- opts = opts || {};
160
- var postBody = null;
161
- // verify the required parameter 'projectOrProductUID' is set
162
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
163
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEventsByCursor");
164
- }
165
- var pathParams = {
166
- projectOrProductUID: projectOrProductUID
167
- };
168
- var queryParams = {
169
- limit: opts["limit"],
170
- cursor: opts["cursor"],
171
- sortOrder: opts["sortOrder"],
172
- systemFilesOnly: opts["systemFilesOnly"],
173
- files: opts["files"],
174
- fleetUID: opts["fleetUID"],
175
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
176
- sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi")
177
- };
178
- var headerParams = {};
179
- var formParams = {};
180
- var authNames = ["personalAccessToken"];
181
- var contentTypes = [];
182
- var accepts = ["application/json"];
183
- var returnType = _GetEventsByCursor200Response["default"];
184
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
185
- }
186
-
187
- /**
188
- * Get Events of a Project by cursor
189
- * @param {String} projectOrProductUID
190
- * @param {Object} opts Optional parameters
191
- * @param {Number} opts.limit (default to 50)
192
- * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
193
- * @param {module:model/String} opts.sortOrder (default to 'asc')
194
- * @param {Boolean} opts.systemFilesOnly
195
- * @param {String} opts.files
196
- * @param {String} opts.fleetUID
197
- * @param {Array.<String>} opts.deviceUID A Device UID.
198
- * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
199
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
200
- */
201
- }, {
202
- key: "getEventsByCursor",
203
- value: function getEventsByCursor(projectOrProductUID, opts) {
204
- return this.getEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
205
- return response_and_data.data;
206
- });
207
- }
208
-
209
144
  /**
210
145
  * Get Events of a Fleet
211
146
  * @param {String} projectOrProductUID
@@ -213,6 +148,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
213
148
  * @param {Object} opts Optional parameters
214
149
  * @param {Number} opts.pageSize (default to 50)
215
150
  * @param {Number} opts.pageNum (default to 1)
151
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
216
152
  * @param {Array.<String>} opts.deviceUID A Device UID.
217
153
  * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
218
154
  * @param {module:model/String} opts.sortBy (default to 'captured')
@@ -249,6 +185,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
249
185
  var queryParams = {
250
186
  pageSize: opts["pageSize"],
251
187
  pageNum: opts["pageNum"],
188
+ cursor: opts["cursor"],
252
189
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
253
190
  sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
254
191
  sortBy: opts["sortBy"],
@@ -280,6 +217,7 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
280
217
  * @param {Object} opts Optional parameters
281
218
  * @param {Number} opts.pageSize (default to 50)
282
219
  * @param {Number} opts.pageNum (default to 1)
220
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
283
221
  * @param {Array.<String>} opts.deviceUID A Device UID.
284
222
  * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
285
223
  * @param {module:model/String} opts.sortBy (default to 'captured')
@@ -304,83 +242,6 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
304
242
  });
305
243
  }
306
244
 
307
- /**
308
- * Get Events of a Fleet by cursor
309
- * @param {String} projectOrProductUID
310
- * @param {String} fleetUID
311
- * @param {Object} opts Optional parameters
312
- * @param {Number} opts.limit (default to 50)
313
- * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
314
- * @param {module:model/String} opts.sortOrder (default to 'asc')
315
- * @param {Boolean} opts.systemFilesOnly
316
- * @param {String} opts.files
317
- * @param {Array.<String>} opts.deviceUID A Device UID.
318
- * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
319
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
320
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
321
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
322
- */
323
- }, {
324
- key: "getFleetEventsByCursorWithHttpInfo",
325
- value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
326
- opts = opts || {};
327
- var postBody = null;
328
- // verify the required parameter 'projectOrProductUID' is set
329
- if (projectOrProductUID === undefined || projectOrProductUID === null) {
330
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
331
- }
332
- // verify the required parameter 'fleetUID' is set
333
- if (fleetUID === undefined || fleetUID === null) {
334
- throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
335
- }
336
- var pathParams = {
337
- projectOrProductUID: projectOrProductUID,
338
- fleetUID: fleetUID
339
- };
340
- var queryParams = {
341
- limit: opts["limit"],
342
- cursor: opts["cursor"],
343
- sortOrder: opts["sortOrder"],
344
- systemFilesOnly: opts["systemFilesOnly"],
345
- files: opts["files"],
346
- deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
347
- sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
348
- startDate: opts["startDate"],
349
- endDate: opts["endDate"]
350
- };
351
- var headerParams = {};
352
- var formParams = {};
353
- var authNames = ["personalAccessToken"];
354
- var contentTypes = [];
355
- var accepts = ["application/json"];
356
- var returnType = _GetEventsByCursor200Response["default"];
357
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
358
- }
359
-
360
- /**
361
- * Get Events of a Fleet by cursor
362
- * @param {String} projectOrProductUID
363
- * @param {String} fleetUID
364
- * @param {Object} opts Optional parameters
365
- * @param {Number} opts.limit (default to 50)
366
- * @param {String} opts.cursor A cursor, which can be obtained from the `next_cursor` value from a previous call to this endpoint. The results set returned will include this event as its first result if the given identifier is actually the UID of an event. If this event UID is not found, the parameter is ignored and the results set is the same as if the parameter was not included.
367
- * @param {module:model/String} opts.sortOrder (default to 'asc')
368
- * @param {Boolean} opts.systemFilesOnly
369
- * @param {String} opts.files
370
- * @param {Array.<String>} opts.deviceUID A Device UID.
371
- * @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
372
- * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
373
- * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
374
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
375
- */
376
- }, {
377
- key: "getFleetEventsByCursor",
378
- value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
379
- return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
380
- return response_and_data.data;
381
- });
382
- }
383
-
384
245
  /**
385
246
  * Get Route Logs by Event UID
386
247
  * @param {String} projectOrProductUID
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- 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); } /**
17
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 6.6.0
32
+ * @version 6.7.0-beta.10
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -21,7 +21,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
21
21
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
22
22
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
23
23
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
24
- 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); } /**
24
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
25
25
  * Notehub API
26
26
  * The OpenAPI definition for the Notehub.io API.
27
27
  *
@@ -36,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
36
36
  /**
37
37
  * Jobs service.
38
38
  * @module api/JobsApi
39
- * @version 6.6.0
39
+ * @version 6.7.0-beta.10
40
40
  */
41
41
  var JobsApi = exports["default"] = /*#__PURE__*/function () {
42
42
  /**
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
14
14
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
15
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- 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); } /**
17
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Monitor service.
31
31
  * @module api/MonitorApi
32
- * @version 6.6.0
32
+ * @version 6.7.0-beta.10
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Error = _interopRequireDefault(require("../model/Error"));
9
- var _GetBillingAccount200Response = _interopRequireDefault(require("../model/GetBillingAccount200Response"));
10
- var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("../model/GetBillingAccountBalanceHistory200Response"));
9
+ var _GetOrganization200Response = _interopRequireDefault(require("../model/GetOrganization200Response"));
10
+ var _GetOrganizationBalanceHistory200Response = _interopRequireDefault(require("../model/GetOrganizationBalanceHistory200Response"));
11
11
  var _GetOrganizations200Response = _interopRequireDefault(require("../model/GetOrganizations200Response"));
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
15
15
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
16
16
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
17
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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); } /**
18
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Organization service.
32
32
  * @module api/OrganizationApi
33
- * @version 6.6.0
33
+ * @version 6.7.0-beta.10
34
34
  */
35
35
  var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -48,7 +48,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
48
48
  /**
49
49
  * Get Organization Information
50
50
  * @param {String} organizationUID
51
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccount200Response} and HTTP response
51
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganization200Response} and HTTP response
52
52
  */
53
53
  return _createClass(OrganizationApi, [{
54
54
  key: "getOrganizationWithHttpInfo",
@@ -67,14 +67,14 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
67
67
  var authNames = ["personalAccessToken"];
68
68
  var contentTypes = [];
69
69
  var accepts = ["application/json"];
70
- var returnType = _GetBillingAccount200Response["default"];
70
+ var returnType = _GetOrganization200Response["default"];
71
71
  return this.apiClient.callApi("/v1/organizations/{organizationUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
72
72
  }
73
73
 
74
74
  /**
75
75
  * Get Organization Information
76
76
  * @param {String} organizationUID
77
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccount200Response}
77
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganization200Response}
78
78
  */
79
79
  }, {
80
80
  key: "getOrganization",
@@ -90,7 +90,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
90
90
  * @param {Object} opts Optional parameters
91
91
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
92
92
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
93
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccountBalanceHistory200Response} and HTTP response
93
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizationBalanceHistory200Response} and HTTP response
94
94
  */
95
95
  }, {
96
96
  key: "getOrganizationBalanceHistoryWithHttpInfo",
@@ -113,7 +113,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
113
113
  var authNames = ["personalAccessToken"];
114
114
  var contentTypes = [];
115
115
  var accepts = ["application/json"];
116
- var returnType = _GetBillingAccountBalanceHistory200Response["default"];
116
+ var returnType = _GetOrganizationBalanceHistory200Response["default"];
117
117
  return this.apiClient.callApi("/v1/organizations/{organizationUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
118
118
  }
119
119
 
@@ -123,7 +123,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
123
123
  * @param {Object} opts Optional parameters
124
124
  * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
125
125
  * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
126
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccountBalanceHistory200Response}
126
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizationBalanceHistory200Response}
127
127
  */
128
128
  }, {
129
129
  key: "getOrganizationBalanceHistory",
@@ -41,7 +41,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
41
41
  function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
42
42
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
43
43
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
44
- 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); } /**
44
+ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
45
45
  * Notehub API
46
46
  * The OpenAPI definition for the Notehub.io API.
47
47
  *
@@ -56,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
56
56
  /**
57
57
  * Project service.
58
58
  * @module api/ProjectApi
59
- * @version 6.6.0
59
+ * @version 6.7.0-beta.10
60
60
  */
61
61
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
62
62
  /**
@@ -1046,12 +1046,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1046
1046
  }
1047
1047
 
1048
1048
  /**
1049
- * Get host or Notecard DFU history for all devices that match the filter criteria
1049
+ * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1050
1050
  * @param {String} projectOrProductUID
1051
1051
  * @param {module:model/String} firmwareType
1052
1052
  * @param {Object} opts Optional parameters
1053
1053
  * @param {Number} opts.pageSize (default to 50)
1054
1054
  * @param {Number} opts.pageNum (default to 1)
1055
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1055
1056
  * @param {module:model/String} opts.sortBy (default to 'captured')
1056
1057
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1057
1058
  * @param {Array.<String>} opts.deviceUID A Device UID.
@@ -1085,6 +1086,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1085
1086
  var queryParams = {
1086
1087
  pageSize: opts["pageSize"],
1087
1088
  pageNum: opts["pageNum"],
1089
+ cursor: opts["cursor"],
1088
1090
  sortBy: opts["sortBy"],
1089
1091
  sortOrder: opts["sortOrder"],
1090
1092
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
@@ -1107,12 +1109,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1107
1109
  }
1108
1110
 
1109
1111
  /**
1110
- * Get host or Notecard DFU history for all devices that match the filter criteria
1112
+ * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1111
1113
  * @param {String} projectOrProductUID
1112
1114
  * @param {module:model/String} firmwareType
1113
1115
  * @param {Object} opts Optional parameters
1114
1116
  * @param {Number} opts.pageSize (default to 50)
1115
1117
  * @param {Number} opts.pageNum (default to 1)
1118
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1116
1119
  * @param {module:model/String} opts.sortBy (default to 'captured')
1117
1120
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1118
1121
  * @param {Array.<String>} opts.deviceUID A Device UID.
@@ -1135,12 +1138,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1135
1138
  }
1136
1139
 
1137
1140
  /**
1138
- * Get host or Notecard DFU history for all devices that match the filter criteria
1141
+ * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1139
1142
  * @param {String} projectOrProductUID
1140
1143
  * @param {module:model/String} firmwareType
1141
1144
  * @param {Object} opts Optional parameters
1142
1145
  * @param {Number} opts.pageSize (default to 50)
1143
1146
  * @param {Number} opts.pageNum (default to 1)
1147
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1144
1148
  * @param {module:model/String} opts.sortBy (default to 'captured')
1145
1149
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1146
1150
  * @param {Array.<String>} opts.deviceUID A Device UID.
@@ -1174,6 +1178,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1174
1178
  var queryParams = {
1175
1179
  pageSize: opts["pageSize"],
1176
1180
  pageNum: opts["pageNum"],
1181
+ cursor: opts["cursor"],
1177
1182
  sortBy: opts["sortBy"],
1178
1183
  sortOrder: opts["sortOrder"],
1179
1184
  deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
@@ -1196,12 +1201,13 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
1196
1201
  }
1197
1202
 
1198
1203
  /**
1199
- * Get host or Notecard DFU history for all devices that match the filter criteria
1204
+ * Get host or Notecard DFU history for all devices that match the filter criteria. With a `cursor`, changes made through fleet or project firmware settings will not appear until the device itself is next updated.
1200
1205
  * @param {String} projectOrProductUID
1201
1206
  * @param {module:model/String} firmwareType
1202
1207
  * @param {Object} opts Optional parameters
1203
1208
  * @param {Number} opts.pageSize (default to 50)
1204
1209
  * @param {Number} opts.pageNum (default to 1)
1210
+ * @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
1205
1211
  * @param {module:model/String} opts.sortBy (default to 'captured')
1206
1212
  * @param {module:model/String} opts.sortOrder (default to 'asc')
1207
1213
  * @param {Array.<String>} opts.deviceUID A Device UID.