@blues-inc/notehub-js 6.7.0 → 7.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/README.md +156 -152
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +17 -12
  4. package/dist/api/AuthorizationApi.js +12 -51
  5. package/dist/api/DescriptionApi.js +58 -42
  6. package/dist/api/DeviceApi.js +434 -291
  7. package/dist/api/EventApi.js +88 -221
  8. package/dist/api/ExternalDevicesApi.js +32 -26
  9. package/dist/api/JobsApi.js +76 -58
  10. package/dist/api/MonitorApi.js +38 -28
  11. package/dist/api/OrganizationApi.js +26 -20
  12. package/dist/api/ProjectApi.js +424 -330
  13. package/dist/api/RouteApi.js +69 -54
  14. package/dist/api/SkillsApi.js +279 -0
  15. package/dist/api/UsageApi.js +84 -74
  16. package/dist/api/WebhookApi.js +96 -74
  17. package/dist/index.js +91 -63
  18. package/dist/model/AWSRoleConfig.js +2 -2
  19. package/dist/model/AddDeviceToFleetsRequest.js +4 -4
  20. package/dist/model/Alert.js +17 -10
  21. package/dist/model/AlertDataInner.js +10 -5
  22. package/dist/model/AlertNotificationsInner.js +15 -5
  23. package/dist/model/ArchiveStats.js +2 -2
  24. package/dist/model/AwsRoute.js +15 -3
  25. package/dist/model/AzureRoute.js +9 -2
  26. package/dist/model/BatchJobNoteRequest.js +2 -2
  27. package/dist/model/BatchJobRequests.js +7 -6
  28. package/dist/model/BillingAccount.js +6 -4
  29. package/dist/model/BillingAccountRole.js +1 -1
  30. package/dist/model/BlynkRoute.js +7 -2
  31. package/dist/model/Body.js +3 -2
  32. package/dist/model/CancelJobRun200Response.js +2 -2
  33. package/dist/model/CellularPlan.js +4 -3
  34. package/dist/model/CloneProjectRequest.js +8 -8
  35. package/dist/model/Contact.js +6 -2
  36. package/dist/model/CreateFleetRequest.js +5 -4
  37. package/dist/model/CreateJob201Response.js +2 -2
  38. package/dist/model/CreateMonitor.js +38 -26
  39. package/dist/model/CreateProductRequest.js +8 -7
  40. package/dist/model/CreateProjectRequest.js +6 -6
  41. package/dist/model/CreateProjectSecretRequest.js +6 -6
  42. package/dist/model/CreateUpdateRepository.js +4 -2
  43. package/dist/model/CreatedRepository.js +6 -6
  44. package/dist/model/CurrentFirmware.js +2 -2
  45. package/dist/model/DFUEnv.js +2 -2
  46. package/dist/model/DFUState.js +3 -2
  47. package/dist/model/DataField.js +2 -2
  48. package/dist/model/DataSet.js +6 -5
  49. package/dist/model/DataSetField.js +3 -3
  50. package/dist/model/DataUsage.js +2 -2
  51. package/dist/model/DatacakeRoute.js +8 -2
  52. package/dist/model/DatasetReloadProgress.js +2 -2
  53. package/dist/model/DeleteDeviceFromFleetsRequest.js +4 -4
  54. package/dist/model/DeleteJob200Response.js +2 -2
  55. package/dist/model/DeleteNotefilesRequest.js +3 -3
  56. package/dist/model/DescriptionRecord.js +7 -7
  57. package/dist/model/DescriptionRecordList.js +4 -3
  58. package/dist/model/Device.js +37 -9
  59. package/dist/model/DeviceDfuHistory.js +13 -3
  60. package/dist/model/DeviceDfuHistoryCurrent.js +3 -3
  61. package/dist/model/DeviceDfuHistoryPage.js +17 -2
  62. package/dist/model/DeviceDfuStateMachine.js +3 -2
  63. package/dist/model/DeviceDfuStateMachineNode.js +3 -3
  64. package/dist/model/DeviceDfuStatus.js +13 -4
  65. package/dist/model/DeviceDfuStatusPage.js +17 -2
  66. package/dist/model/DeviceSensor.js +2 -2
  67. package/dist/model/DeviceSession.js +38 -6
  68. package/dist/model/DeviceTowerInfo.js +7 -2
  69. package/dist/model/DeviceUsage.js +8 -2
  70. package/dist/model/DfuActionRequest.js +3 -3
  71. package/dist/model/EmailNotification.js +30 -7
  72. package/dist/model/EnvTreeJsonNode.js +18 -7
  73. package/dist/model/EnvVar.js +6 -2
  74. package/dist/model/EnvironmentVariables.js +4 -3
  75. package/dist/model/Error.js +5 -2
  76. package/dist/model/Event.js +17 -8
  77. package/dist/model/Filter.js +6 -6
  78. package/dist/model/Firmware.js +2 -2
  79. package/dist/model/FirmwareInfo.js +7 -7
  80. package/dist/model/Fleet.js +12 -11
  81. package/dist/model/FleetConnectivityAssurance.js +2 -2
  82. package/dist/model/GetAlerts200Response.js +15 -2
  83. package/dist/model/GetApiUsage200Response.js +3 -3
  84. package/dist/model/GetDataUsage200Response.js +3 -3
  85. package/dist/model/GetDataUsage200ResponseDataInner.js +4 -4
  86. package/dist/model/GetDbNote200Response.js +2 -2
  87. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  88. package/dist/model/GetDeviceFleets200Response.js +2 -2
  89. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  90. package/dist/model/GetDeviceJourney200Response.js +2 -2
  91. package/dist/model/GetDeviceJourney200ResponseJourney.js +2 -2
  92. package/dist/model/GetDeviceJourneys200Response.js +2 -2
  93. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +2 -2
  94. package/dist/model/GetDeviceLatestEvents200Response.js +3 -3
  95. package/dist/model/GetDevicePlans200Response.js +3 -2
  96. package/dist/model/GetDevicePublicKey200Response.js +6 -4
  97. package/dist/model/GetDevicePublicKeys200Response.js +15 -2
  98. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -2
  99. package/dist/model/GetDeviceSessions200Response.js +15 -2
  100. package/dist/model/GetDevices200Response.js +15 -2
  101. package/dist/model/GetEvents200Response.js +15 -2
  102. package/dist/model/GetJobRuns200Response.js +2 -2
  103. package/dist/model/GetJobs200Response.js +2 -2
  104. package/dist/model/GetNotefile200Response.js +2 -2
  105. package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +29 -29
  106. package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +25 -25
  107. package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +23 -23
  108. package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +23 -23
  109. package/dist/model/GetOrganizations200Response.js +2 -2
  110. package/dist/model/GetProducts200Response.js +2 -2
  111. package/dist/model/GetProjectMembers200Response.js +2 -2
  112. package/dist/model/GetProjectSecretsResponse.js +4 -3
  113. package/dist/model/GetProjects200Response.js +2 -2
  114. package/dist/model/GetRouteLogsUsage200Response.js +3 -3
  115. package/dist/model/GetSessionsUsage200Response.js +4 -4
  116. package/dist/model/GetWebhooks200Response.js +2 -2
  117. package/dist/model/GoogleRoute.js +7 -2
  118. package/dist/model/HealthLog.js +8 -5
  119. package/dist/model/HttpRoute.js +8 -3
  120. package/dist/model/Job.js +2 -2
  121. package/dist/model/JobDefinition.js +3 -3
  122. package/dist/model/JobDefinitionReportOptions.js +3 -2
  123. package/dist/model/JobDefinitionSelect.js +5 -4
  124. package/dist/model/JobDetail.js +2 -2
  125. package/dist/model/JobDetailAllOf.js +2 -2
  126. package/dist/model/JobRun.js +2 -2
  127. package/dist/model/Location.js +14 -8
  128. package/dist/model/Monitor.js +19 -13
  129. package/dist/model/MonitorAlertRoutesInner.js +61 -15
  130. package/dist/model/MqttRoute.js +15 -2
  131. package/dist/model/Note.js +3 -3
  132. package/dist/model/NoteInput.js +2 -2
  133. package/dist/model/Notefile.js +5 -3
  134. package/dist/model/NotefileSchema.js +6 -4
  135. package/dist/model/NotehubRoute.js +8 -4
  136. package/dist/model/NotehubRouteSummary.js +7 -2
  137. package/dist/model/OAuth2Error.js +2 -2
  138. package/dist/model/OAuth2TokenResponse.js +2 -2
  139. package/dist/model/Organization.js +6 -4
  140. package/dist/model/OrganizationRole.js +1 -1
  141. package/dist/model/Product.js +9 -5
  142. package/dist/model/Project.js +8 -5
  143. package/dist/model/ProjectMember.js +6 -5
  144. package/dist/model/ProjectSecret.js +8 -8
  145. package/dist/model/ProvisionDeviceRequest.js +6 -6
  146. package/dist/model/ProxyRoute.js +7 -2
  147. package/dist/model/QubitroRoute.js +8 -2
  148. package/dist/model/RadRoute.js +10 -2
  149. package/dist/model/Repository.js +4 -4
  150. package/dist/model/RepositoryListResponse.js +4 -3
  151. package/dist/model/RepositoryRecord.js +119 -0
  152. package/dist/model/RepositoryTokenRequest.js +2 -2
  153. package/dist/model/RepositoryTokenResponse.js +2 -2
  154. package/dist/model/Role.js +1 -1
  155. package/dist/model/RouteLog.js +10 -10
  156. package/dist/model/RouteTransformSettings.js +6 -6
  157. package/dist/model/RunJob200Response.js +2 -2
  158. package/dist/model/S3ArchiveRoute.js +17 -2
  159. package/dist/model/SatelliteDataUsage.js +2 -2
  160. package/dist/model/SatellitePlan.js +2 -2
  161. package/dist/model/SchemaProperty.js +7 -5
  162. package/dist/model/SignalDevice200Response.js +3 -3
  163. package/dist/model/SimUsage.js +2 -2
  164. package/dist/model/Skill.js +210 -0
  165. package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +60 -41
  166. package/dist/model/SkillSet.js +185 -0
  167. package/dist/model/SkillSummary.js +208 -0
  168. package/dist/model/SkillWrite.js +128 -0
  169. package/dist/model/{GetEventsByCursor200Response.js → SkillWriteResult.js} +62 -65
  170. package/dist/model/SlackBearerNotification.js +32 -9
  171. package/dist/model/SlackRoute.js +10 -2
  172. package/dist/model/SlackWebHookNotification.js +32 -9
  173. package/dist/model/SnowflakeRoute.js +10 -2
  174. package/dist/model/SnowpipeStreamingRoute.js +13 -2
  175. package/dist/model/ThingworxRoute.js +7 -2
  176. package/dist/model/TowerLocation.js +2 -2
  177. package/dist/model/TwilioNotification.js +167 -0
  178. package/dist/model/TwilioRoute.js +10 -2
  179. package/dist/model/UpdateFleetRequest.js +8 -7
  180. package/dist/model/UpdateHostFirmwareRequest.js +5 -5
  181. package/dist/model/UpdateProjectSecretRequest.js +4 -4
  182. package/dist/model/UploadMetadata.js +2 -2
  183. package/dist/model/UsageApiData.js +4 -3
  184. package/dist/model/UsageData.js +8 -4
  185. package/dist/model/UsageEventsData.js +6 -3
  186. package/dist/model/UsageEventsResponse.js +5 -4
  187. package/dist/model/UsageRouteLogsData.js +11 -7
  188. package/dist/model/UsageSessionsData.js +12 -6
  189. package/dist/model/UserDfuStateMachine.js +2 -2
  190. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  191. package/dist/model/UserFirmwareInfo.js +2 -2
  192. package/dist/model/WebhookSettings.js +5 -5
  193. package/package.json +1 -1
  194. package/dist/api/BillingAccountApi.js +0 -167
  195. package/dist/model/Login200Response.js +0 -91
  196. package/dist/model/LoginRequest.js +0 -103
@@ -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
  * The GetDeviceJourneys200Response model module.
32
32
  * @module model/GetDeviceJourneys200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetDeviceJourneys200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -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
  * The GetDeviceJourneys200ResponseJourneysInner model module.
31
31
  * @module model/GetDeviceJourneys200ResponseJourneysInner
32
- * @version 6.7.0
32
+ * @version 7.0.0-beta.1
33
33
  */
34
34
  var GetDeviceJourneys200ResponseJourneysInner = /*#__PURE__*/function () {
35
35
  /**
@@ -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
  * The GetDeviceLatestEvents200Response model module.
32
32
  * @module model/GetDeviceLatestEvents200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetDeviceLatestEvents200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -105,7 +105,7 @@ var GetDeviceLatestEvents200Response = /*#__PURE__*/function () {
105
105
  }]);
106
106
  }();
107
107
  /**
108
- * The set of latest events. Will always include the current \"session.begin\" event.
108
+ * The most recent event from each notefile, sorted by notefile name.
109
109
  * @member {Array.<module:model/Event>} latest_events
110
110
  */
111
111
  GetDeviceLatestEvents200Response.prototype["latest_events"] = undefined;
@@ -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
  * The GetDevicePlans200Response model module.
32
32
  * @module model/GetDevicePlans200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetDevicePlans200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -105,6 +105,7 @@ var GetDevicePlans200Response = /*#__PURE__*/function () {
105
105
  }]);
106
106
  }();
107
107
  /**
108
+ * One entry per cellular SIM. Empty for a device with only a satellite connection.
108
109
  * @member {Array.<module:model/CellularPlan>} cellular_plans
109
110
  */
110
111
  GetDevicePlans200Response.prototype["cellular_plans"] = undefined;
@@ -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,14 +29,14 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetDevicePublicKey200Response model module.
31
31
  * @module model/GetDevicePublicKey200Response
32
- * @version 6.7.0
32
+ * @version 7.0.0-beta.1
33
33
  */
34
34
  var GetDevicePublicKey200Response = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>GetDevicePublicKey200Response</code>.
37
37
  * @alias module:model/GetDevicePublicKey200Response
38
- * @param key {String}
39
- * @param uid {String}
38
+ * @param key {String} The Notecard's public key in PEM format. Empty if it hasn't reported one.
39
+ * @param uid {String} DeviceUID, e.g. `dev:864475040509284`.
40
40
  */
41
41
  function GetDevicePublicKey200Response(key, uid) {
42
42
  _classCallCheck(this, GetDevicePublicKey200Response);
@@ -117,11 +117,13 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
117
117
  GetDevicePublicKey200Response.RequiredProperties = ["key", "uid"];
118
118
 
119
119
  /**
120
+ * The Notecard's public key in PEM format. Empty if it hasn't reported one.
120
121
  * @member {String} key
121
122
  */
122
123
  GetDevicePublicKey200Response.prototype["key"] = undefined;
123
124
 
124
125
  /**
126
+ * DeviceUID, e.g. `dev:864475040509284`.
125
127
  * @member {String} uid
126
128
  */
127
129
  GetDevicePublicKey200Response.prototype["uid"] = undefined;
@@ -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
  * The GetDevicePublicKeys200Response model module.
32
32
  * @module model/GetDevicePublicKeys200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -74,6 +74,9 @@ var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
74
74
  if (data.hasOwnProperty("has_more")) {
75
75
  obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
76
76
  }
77
+ if (data.hasOwnProperty("next_cursor")) {
78
+ obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
79
+ }
77
80
  } else if (data === null) {
78
81
  return null;
79
82
  }
@@ -123,6 +126,10 @@ var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
123
126
  _iterator2.f();
124
127
  }
125
128
  }
129
+ // ensure the json data is a string
130
+ if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
131
+ throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
132
+ }
126
133
  return true;
127
134
  }
128
135
  }]);
@@ -138,4 +145,10 @@ GetDevicePublicKeys200Response.prototype["device_public_keys"] = undefined;
138
145
  * @member {Boolean} has_more
139
146
  */
140
147
  GetDevicePublicKeys200Response.prototype["has_more"] = undefined;
148
+
149
+ /**
150
+ * Pass this value (epoch microseconds, optionally `.N`) as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
151
+ * @member {String} next_cursor
152
+ */
153
+ GetDevicePublicKeys200Response.prototype["next_cursor"] = undefined;
141
154
  var _default = exports["default"] = GetDevicePublicKeys200Response;
@@ -11,7 +11,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
11
11
  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); } }
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
14
+ 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); } /**
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The GetDevicePublicKeys200ResponseDevicePublicKeysInner model module.
28
28
  * @module model/GetDevicePublicKeys200ResponseDevicePublicKeysInner
29
- * @version 6.7.0
29
+ * @version 7.0.0-beta.1
30
30
  */
31
31
  var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function () {
32
32
  /**
@@ -59,6 +59,9 @@ var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new GetDevicePublicKeys200ResponseDevicePublicKeysInner();
62
+ if (data.hasOwnProperty("deleted")) {
63
+ obj["deleted"] = _ApiClient["default"].convertToType(data["deleted"], "Boolean");
64
+ }
62
65
  if (data.hasOwnProperty("key")) {
63
66
  obj["key"] = _ApiClient["default"].convertToType(data["key"], "String");
64
67
  }
@@ -92,11 +95,19 @@ var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function
92
95
  }]);
93
96
  }();
94
97
  /**
98
+ * True if this device has been deleted. Only present when reading with a `cursor`.
99
+ * @member {Boolean} deleted
100
+ */
101
+ GetDevicePublicKeys200ResponseDevicePublicKeysInner.prototype["deleted"] = undefined;
102
+
103
+ /**
104
+ * The Notecard's public key in PEM format. Empty if it hasn't reported one.
95
105
  * @member {String} key
96
106
  */
97
107
  GetDevicePublicKeys200ResponseDevicePublicKeysInner.prototype["key"] = undefined;
98
108
 
99
109
  /**
110
+ * DeviceUID, e.g. `dev:864475040509284`.
100
111
  * @member {String} uid
101
112
  */
102
113
  GetDevicePublicKeys200ResponseDevicePublicKeysInner.prototype["uid"] = undefined;
@@ -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
  * The GetDeviceSessions200Response model module.
32
32
  * @module model/GetDeviceSessions200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetDeviceSessions200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -71,6 +71,9 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
71
71
  if (data.hasOwnProperty("has_more")) {
72
72
  obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
73
73
  }
74
+ if (data.hasOwnProperty("next_cursor")) {
75
+ obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
76
+ }
74
77
  if (data.hasOwnProperty("sessions")) {
75
78
  obj["sessions"] = _ApiClient["default"].convertToType(data["sessions"], [_DeviceSession["default"]]);
76
79
  }
@@ -98,11 +101,15 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
98
101
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
99
102
  }
100
103
  }
104
+ // ensure the json data is a string
101
105
  } catch (err) {
102
106
  _iterator.e(err);
103
107
  } finally {
104
108
  _iterator.f();
105
109
  }
110
+ if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
111
+ throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
112
+ }
106
113
  if (data["sessions"]) {
107
114
  // data not null
108
115
  // ensure the json data is an array
@@ -134,6 +141,12 @@ GetDeviceSessions200Response.RequiredProperties = ["has_more", "sessions"];
134
141
  */
135
142
  GetDeviceSessions200Response.prototype["has_more"] = undefined;
136
143
 
144
+ /**
145
+ * Pass this value (epoch microseconds, optionally `.N`) as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
146
+ * @member {String} next_cursor
147
+ */
148
+ GetDeviceSessions200Response.prototype["next_cursor"] = undefined;
149
+
137
150
  /**
138
151
  * @member {Array.<module:model/DeviceSession>} sessions
139
152
  */
@@ -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
  * The GetDevices200Response model module.
32
32
  * @module model/GetDevices200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetDevices200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -74,6 +74,9 @@ var GetDevices200Response = /*#__PURE__*/function () {
74
74
  if (data.hasOwnProperty("has_more")) {
75
75
  obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
76
76
  }
77
+ if (data.hasOwnProperty("next_cursor")) {
78
+ obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
79
+ }
77
80
  } else if (data === null) {
78
81
  return null;
79
82
  }
@@ -123,6 +126,10 @@ var GetDevices200Response = /*#__PURE__*/function () {
123
126
  _iterator2.f();
124
127
  }
125
128
  }
129
+ // ensure the json data is a string
130
+ if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
131
+ throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
132
+ }
126
133
  return true;
127
134
  }
128
135
  }]);
@@ -138,4 +145,10 @@ GetDevices200Response.prototype["devices"] = undefined;
138
145
  * @member {Boolean} has_more
139
146
  */
140
147
  GetDevices200Response.prototype["has_more"] = undefined;
148
+
149
+ /**
150
+ * Pass this value (epoch microseconds, optionally `.N`) as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
151
+ * @member {String} next_cursor
152
+ */
153
+ GetDevices200Response.prototype["next_cursor"] = undefined;
141
154
  var _default = exports["default"] = GetDevices200Response;
@@ -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
  * The GetEvents200Response model module.
32
32
  * @module model/GetEvents200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetEvents200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -74,6 +74,9 @@ var GetEvents200Response = /*#__PURE__*/function () {
74
74
  if (data.hasOwnProperty("has_more")) {
75
75
  obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
76
76
  }
77
+ if (data.hasOwnProperty("next_cursor")) {
78
+ obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
79
+ }
77
80
  if (data.hasOwnProperty("through")) {
78
81
  obj["through"] = _ApiClient["default"].convertToType(data["through"], "String");
79
82
  }
@@ -127,6 +130,10 @@ var GetEvents200Response = /*#__PURE__*/function () {
127
130
  }
128
131
  }
129
132
  // ensure the json data is a string
133
+ if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
134
+ throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
135
+ }
136
+ // ensure the json data is a string
130
137
  if (data["through"] && !(typeof data["through"] === "string" || data["through"] instanceof String)) {
131
138
  throw new Error("Expected the field `through` to be a primitive type in the JSON string but got " + data["through"]);
132
139
  }
@@ -147,6 +154,12 @@ GetEvents200Response.prototype["events"] = undefined;
147
154
  */
148
155
  GetEvents200Response.prototype["has_more"] = undefined;
149
156
 
157
+ /**
158
+ * Pass this value as the cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
159
+ * @member {String} next_cursor
160
+ */
161
+ GetEvents200Response.prototype["next_cursor"] = undefined;
162
+
150
163
  /**
151
164
  * The UID of the last event returned
152
165
  * @member {String} through
@@ -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
  * The GetJobRuns200Response model module.
32
32
  * @module model/GetJobRuns200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetJobRuns200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -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
  * The GetJobs200Response model module.
32
32
  * @module model/GetJobs200Response
33
- * @version 6.7.0
33
+ * @version 7.0.0-beta.1
34
34
  */
35
35
  var GetJobs200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -11,7 +11,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
11
11
  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); } }
12
12
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
14
+ 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); } /**
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The GetNotefile200Response model module.
28
28
  * @module model/GetNotefile200Response
29
- * @version 6.7.0
29
+ * @version 7.0.0-beta.1
30
30
  */
31
31
  var GetNotefile200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _GetBillingAccount200ResponsePlan = _interopRequireDefault(require("./GetBillingAccount200ResponsePlan"));
8
+ var _GetOrganization200ResponsePlan = _interopRequireDefault(require("./GetOrganization200ResponsePlan"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
10
  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); }
11
11
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
12
12
  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); } }
13
13
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
+ 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); } /**
16
16
  * Notehub API
17
17
  * The OpenAPI definition for the Notehub.io API.
18
18
  *
@@ -25,18 +25,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
25
  *
26
26
  */
27
27
  /**
28
- * The GetBillingAccount200Response model module.
29
- * @module model/GetBillingAccount200Response
30
- * @version 6.7.0
28
+ * The GetOrganization200Response model module.
29
+ * @module model/GetOrganization200Response
30
+ * @version 7.0.0-beta.1
31
31
  */
32
- var GetBillingAccount200Response = /*#__PURE__*/function () {
32
+ var GetOrganization200Response = /*#__PURE__*/function () {
33
33
  /**
34
- * Constructs a new <code>GetBillingAccount200Response</code>.
35
- * @alias module:model/GetBillingAccount200Response
34
+ * Constructs a new <code>GetOrganization200Response</code>.
35
+ * @alias module:model/GetOrganization200Response
36
36
  */
37
- function GetBillingAccount200Response() {
38
- _classCallCheck(this, GetBillingAccount200Response);
39
- GetBillingAccount200Response.initialize(this);
37
+ function GetOrganization200Response() {
38
+ _classCallCheck(this, GetOrganization200Response);
39
+ GetOrganization200Response.initialize(this);
40
40
  }
41
41
 
42
42
  /**
@@ -44,22 +44,22 @@ var GetBillingAccount200Response = /*#__PURE__*/function () {
44
44
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
45
45
  * Only for internal use.
46
46
  */
47
- return _createClass(GetBillingAccount200Response, null, [{
47
+ return _createClass(GetOrganization200Response, null, [{
48
48
  key: "initialize",
49
49
  value: function initialize(obj) {}
50
50
 
51
51
  /**
52
- * Constructs a <code>GetBillingAccount200Response</code> from a plain JavaScript object, optionally creating a new instance.
52
+ * Constructs a <code>GetOrganization200Response</code> from a plain JavaScript object, optionally creating a new instance.
53
53
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
54
54
  * @param {Object} data The plain JavaScript object bearing properties of interest.
55
- * @param {module:model/GetBillingAccount200Response} obj Optional instance to populate.
56
- * @return {module:model/GetBillingAccount200Response} The populated <code>GetBillingAccount200Response</code> instance.
55
+ * @param {module:model/GetOrganization200Response} obj Optional instance to populate.
56
+ * @return {module:model/GetOrganization200Response} The populated <code>GetOrganization200Response</code> instance.
57
57
  */
58
58
  }, {
59
59
  key: "constructFromObject",
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
- obj = obj || new GetBillingAccount200Response();
62
+ obj = obj || new GetOrganization200Response();
63
63
  if (data.hasOwnProperty("contact_uid")) {
64
64
  obj["contact_uid"] = _ApiClient["default"].convertToType(data["contact_uid"], "String");
65
65
  }
@@ -73,7 +73,7 @@ var GetBillingAccount200Response = /*#__PURE__*/function () {
73
73
  obj["owner"] = _ApiClient["default"].convertToType(data["owner"], "String");
74
74
  }
75
75
  if (data.hasOwnProperty("plan")) {
76
- obj["plan"] = _GetBillingAccount200ResponsePlan["default"].constructFromObject(data["plan"]);
76
+ obj["plan"] = _GetOrganization200ResponsePlan["default"].constructFromObject(data["plan"]);
77
77
  }
78
78
  if (data.hasOwnProperty("suspended")) {
79
79
  obj["suspended"] = _ApiClient["default"].convertToType(data["suspended"], "Boolean");
@@ -88,9 +88,9 @@ var GetBillingAccount200Response = /*#__PURE__*/function () {
88
88
  }
89
89
 
90
90
  /**
91
- * Validates the JSON data with respect to <code>GetBillingAccount200Response</code>.
91
+ * Validates the JSON data with respect to <code>GetOrganization200Response</code>.
92
92
  * @param {Object} data The plain JavaScript object bearing properties of interest.
93
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetBillingAccount200Response</code>.
93
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetOrganization200Response</code>.
94
94
  */
95
95
  }, {
96
96
  key: "validateJSON",
@@ -114,7 +114,7 @@ var GetBillingAccount200Response = /*#__PURE__*/function () {
114
114
  // validate the optional field `plan`
115
115
  if (data["plan"]) {
116
116
  // data not null
117
- _GetBillingAccount200ResponsePlan["default"].validateJSON(data["plan"]);
117
+ _GetOrganization200ResponsePlan["default"].validateJSON(data["plan"]);
118
118
  }
119
119
  // ensure the json data is a string
120
120
  if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
@@ -127,35 +127,35 @@ var GetBillingAccount200Response = /*#__PURE__*/function () {
127
127
  /**
128
128
  * @member {String} contact_uid
129
129
  */
130
- GetBillingAccount200Response.prototype["contact_uid"] = undefined;
130
+ GetOrganization200Response.prototype["contact_uid"] = undefined;
131
131
 
132
132
  /**
133
133
  * @member {String} email
134
134
  */
135
- GetBillingAccount200Response.prototype["email"] = undefined;
135
+ GetOrganization200Response.prototype["email"] = undefined;
136
136
 
137
137
  /**
138
138
  * @member {String} name
139
139
  */
140
- GetBillingAccount200Response.prototype["name"] = undefined;
140
+ GetOrganization200Response.prototype["name"] = undefined;
141
141
 
142
142
  /**
143
143
  * @member {String} owner
144
144
  */
145
- GetBillingAccount200Response.prototype["owner"] = undefined;
145
+ GetOrganization200Response.prototype["owner"] = undefined;
146
146
 
147
147
  /**
148
- * @member {module:model/GetBillingAccount200ResponsePlan} plan
148
+ * @member {module:model/GetOrganization200ResponsePlan} plan
149
149
  */
150
- GetBillingAccount200Response.prototype["plan"] = undefined;
150
+ GetOrganization200Response.prototype["plan"] = undefined;
151
151
 
152
152
  /**
153
153
  * @member {Boolean} suspended
154
154
  */
155
- GetBillingAccount200Response.prototype["suspended"] = undefined;
155
+ GetOrganization200Response.prototype["suspended"] = undefined;
156
156
 
157
157
  /**
158
158
  * @member {String} uid
159
159
  */
160
- GetBillingAccount200Response.prototype["uid"] = undefined;
161
- var _default = exports["default"] = GetBillingAccount200Response;
160
+ GetOrganization200Response.prototype["uid"] = undefined;
161
+ var _default = exports["default"] = GetOrganization200Response;