@blues-inc/notehub-js 6.2.0-beta.2 → 6.2.0-beta.21

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 (164) hide show
  1. package/README.md +14 -9
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +124 -3
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/JobsApi.js +1 -1
  10. package/dist/api/MonitorApi.js +1 -1
  11. package/dist/api/ProjectApi.js +5 -191
  12. package/dist/api/RouteApi.js +1 -1
  13. package/dist/api/UsageApi.js +1 -1
  14. package/dist/api/WebhookApi.js +318 -5
  15. package/dist/index.js +35 -28
  16. package/dist/model/AWSRoleConfig.js +1 -1
  17. package/dist/model/AddDeviceToFleetsRequest.js +1 -1
  18. package/dist/model/Alert.js +1 -1
  19. package/dist/model/AlertDataInner.js +1 -1
  20. package/dist/model/AlertNotificationsInner.js +1 -1
  21. package/dist/model/AwsRoute.js +1 -1
  22. package/dist/model/AzureRoute.js +1 -1
  23. package/dist/model/BillingAccount.js +1 -1
  24. package/dist/model/BlynkRoute.js +1 -1
  25. package/dist/model/Body.js +1 -1
  26. package/dist/model/CancelJobRun200Response.js +1 -1
  27. package/dist/model/CellularPlan.js +1 -1
  28. package/dist/model/CloneProjectRequest.js +1 -1
  29. package/dist/model/Contact.js +1 -1
  30. package/dist/model/CreateFleetRequest.js +1 -1
  31. package/dist/model/CreateJob201Response.js +1 -1
  32. package/dist/model/CreateLegacyWebhookEventRequest.js +118 -0
  33. package/dist/model/CreateMonitor.js +1 -1
  34. package/dist/model/CreateProductRequest.js +1 -1
  35. package/dist/model/CreateProjectRequest.js +1 -1
  36. package/dist/model/CreateUpdateRepository.js +1 -1
  37. package/dist/model/CurrentFirmware.js +1 -1
  38. package/dist/model/DFUEnv.js +1 -1
  39. package/dist/model/DFUState.js +1 -1
  40. package/dist/model/DataField.js +1 -1
  41. package/dist/model/DataSetField.js +1 -1
  42. package/dist/model/DataUsage.js +1 -1
  43. package/dist/model/DatacakeRoute.js +1 -1
  44. package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
  45. package/dist/model/DeleteJob200Response.js +1 -1
  46. package/dist/model/DeleteNotefilesRequest.js +1 -1
  47. package/dist/model/Device.js +1 -1
  48. package/dist/model/DeviceDfuHistory.js +1 -1
  49. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  50. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  51. package/dist/model/DeviceDfuStateMachine.js +1 -1
  52. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  53. package/dist/model/DeviceDfuStatus.js +1 -1
  54. package/dist/model/DeviceDfuStatusPage.js +1 -1
  55. package/dist/model/DeviceSession.js +1 -1
  56. package/dist/model/DeviceTowerInfo.js +1 -1
  57. package/dist/model/DeviceUsage.js +1 -1
  58. package/dist/model/DfuActionRequest.js +1 -1
  59. package/dist/model/EmailNotification.js +1 -1
  60. package/dist/model/EnvTreeJsonNode.js +1 -1
  61. package/dist/model/EnvVar.js +1 -1
  62. package/dist/model/EnvironmentVariables.js +1 -1
  63. package/dist/model/Error.js +1 -1
  64. package/dist/model/Event.js +1 -1
  65. package/dist/model/Filter.js +1 -1
  66. package/dist/model/Firmware.js +1 -1
  67. package/dist/model/FirmwareInfo.js +1 -1
  68. package/dist/model/Fleet.js +1 -1
  69. package/dist/model/FleetConnectivityAssurance.js +1 -1
  70. package/dist/model/GetAlerts200Response.js +1 -1
  71. package/dist/model/GetBillingAccount200Response.js +1 -1
  72. package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
  73. package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
  74. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
  75. package/dist/model/GetBillingAccounts200Response.js +1 -1
  76. package/dist/model/GetDataUsage200Response.js +1 -1
  77. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  78. package/dist/model/GetDbNote200Response.js +1 -1
  79. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  80. package/dist/model/GetDeviceFleets200Response.js +1 -1
  81. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  82. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  83. package/dist/model/{ProjectSecret.js → GetDeviceJourney200Response.js} +52 -67
  84. package/dist/model/{GetProjectSecretsResponse.js → GetDeviceJourney200ResponseJourney.js} +44 -33
  85. package/dist/model/{CreateProjectSecretRequest.js → GetDeviceJourneys200Response.js} +52 -41
  86. package/dist/model/{UpdateProjectSecretRequest.js → GetDeviceJourneys200ResponseJourneysInner.js} +49 -31
  87. package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
  88. package/dist/model/GetDevicePlans200Response.js +1 -1
  89. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  90. package/dist/model/GetDevicePublicKeys200Response.js +1 -1
  91. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  92. package/dist/model/GetDeviceSessions200Response.js +1 -1
  93. package/dist/model/GetDevices200Response.js +1 -1
  94. package/dist/model/GetEvents200Response.js +1 -1
  95. package/dist/model/GetEventsByCursor200Response.js +1 -1
  96. package/dist/model/GetJobRuns200Response.js +1 -1
  97. package/dist/model/GetJobs200Response.js +1 -1
  98. package/dist/model/GetNotefile200Response.js +1 -1
  99. package/dist/model/GetProducts200Response.js +1 -1
  100. package/dist/model/GetProjectMembers200Response.js +1 -1
  101. package/dist/model/GetProjects200Response.js +1 -1
  102. package/dist/model/GetRouteLogsUsage200Response.js +1 -1
  103. package/dist/model/GetSessionsUsage200Response.js +1 -1
  104. package/dist/model/GetWebhooks200Response.js +1 -1
  105. package/dist/model/GoogleRoute.js +1 -1
  106. package/dist/model/HttpRoute.js +1 -1
  107. package/dist/model/Job.js +1 -1
  108. package/dist/model/JobRun.js +1 -1
  109. package/dist/model/Location.js +1 -1
  110. package/dist/model/Login200Response.js +1 -1
  111. package/dist/model/LoginRequest.js +1 -1
  112. package/dist/model/Monitor.js +1 -1
  113. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  114. package/dist/model/MqttRoute.js +1 -1
  115. package/dist/model/Note.js +1 -1
  116. package/dist/model/NoteInput.js +1 -1
  117. package/dist/model/Notefile.js +1 -1
  118. package/dist/model/NotefileSchema.js +1 -1
  119. package/dist/model/NotehubRoute.js +1 -1
  120. package/dist/model/NotehubRouteSummary.js +1 -1
  121. package/dist/model/OAuth2Error.js +1 -1
  122. package/dist/model/OAuth2TokenResponse.js +1 -1
  123. package/dist/model/PersonalAccessToken.js +1 -1
  124. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  125. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  126. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  127. package/dist/model/Product.js +1 -1
  128. package/dist/model/Project.js +1 -1
  129. package/dist/model/ProjectMember.js +1 -1
  130. package/dist/model/ProvisionDeviceRequest.js +1 -1
  131. package/dist/model/ProxyRoute.js +1 -1
  132. package/dist/model/QubitroRoute.js +1 -1
  133. package/dist/model/RadRoute.js +1 -1
  134. package/dist/model/Repository.js +1 -1
  135. package/dist/model/RouteLog.js +1 -1
  136. package/dist/model/RouteTransformSettings.js +1 -1
  137. package/dist/model/RunJob200Response.js +1 -1
  138. package/dist/model/S3ArchiveRoute.js +1 -1
  139. package/dist/model/SatelliteDataUsage.js +1 -1
  140. package/dist/model/SatellitePlan.js +1 -1
  141. package/dist/model/SchemaProperty.js +1 -1
  142. package/dist/model/SignalDevice200Response.js +1 -1
  143. package/dist/model/SimUsage.js +1 -1
  144. package/dist/model/SlackBearerNotification.js +1 -1
  145. package/dist/model/SlackRoute.js +1 -1
  146. package/dist/model/SlackWebHookNotification.js +1 -1
  147. package/dist/model/SnowflakeRoute.js +1 -1
  148. package/dist/model/SnowpipeStreamingRoute.js +1 -1
  149. package/dist/model/ThingworxRoute.js +1 -1
  150. package/dist/model/TowerLocation.js +1 -1
  151. package/dist/model/TwilioRoute.js +1 -1
  152. package/dist/model/UpdateFleetRequest.js +1 -1
  153. package/dist/model/UpdateHostFirmwareRequest.js +1 -1
  154. package/dist/model/UploadMetadata.js +1 -1
  155. package/dist/model/UsageData.js +1 -1
  156. package/dist/model/UsageEventsData.js +1 -1
  157. package/dist/model/UsageEventsResponse.js +1 -1
  158. package/dist/model/UsageRouteLogsData.js +1 -1
  159. package/dist/model/UsageSessionsData.js +1 -1
  160. package/dist/model/UserDfuStateMachine.js +1 -1
  161. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  162. package/dist/model/UserFirmwareInfo.js +1 -1
  163. package/dist/model/WebhookSettings.js +1 -1
  164. package/package.json +1 -1
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The DeviceSession model module.
30
30
  * @module model/DeviceSession
31
- * @version 6.2.0-beta.2
31
+ * @version 6.2.0-beta.21
32
32
  */
33
33
  var DeviceSession = /*#__PURE__*/function () {
34
34
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DeviceTowerInfo model module.
28
28
  * @module model/DeviceTowerInfo
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var DeviceTowerInfo = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DeviceUsage model module.
28
28
  * @module model/DeviceUsage
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var DeviceUsage = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DfuActionRequest model module.
28
28
  * @module model/DfuActionRequest
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var DfuActionRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The EmailNotification model module.
28
28
  * @module model/EmailNotification
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var EmailNotification = /*#__PURE__*/function () {
32
32
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The EnvTreeJsonNode model module.
32
32
  * @module model/EnvTreeJsonNode
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var EnvTreeJsonNode = /*#__PURE__*/function () {
36
36
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The EnvVar model module.
28
28
  * @module model/EnvVar
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var EnvVar = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The EnvironmentVariables model module.
31
31
  * @module model/EnvironmentVariables
32
- * @version 6.2.0-beta.2
32
+ * @version 6.2.0-beta.21
33
33
  */
34
34
  var EnvironmentVariables = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Error model module.
31
31
  * @module model/Error
32
- * @version 6.2.0-beta.2
32
+ * @version 6.2.0-beta.21
33
33
  */
34
34
  var Error = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Event model module.
28
28
  * @module model/Event
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var Event = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Filter model module.
28
28
  * @module model/Filter
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var Filter = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Firmware model module.
28
28
  * @module model/Firmware
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var Firmware = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The FirmwareInfo model module.
28
28
  * @module model/FirmwareInfo
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var FirmwareInfo = /*#__PURE__*/function () {
32
32
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The Fleet model module.
32
32
  * @module model/Fleet
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var Fleet = /*#__PURE__*/function () {
36
36
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The FleetConnectivityAssurance model module.
28
28
  * @module model/FleetConnectivityAssurance
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var FleetConnectivityAssurance = /*#__PURE__*/function () {
32
32
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetAlerts200Response model module.
32
32
  * @module model/GetAlerts200Response
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetAlerts200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The GetBillingAccount200Response model module.
29
29
  * @module model/GetBillingAccount200Response
30
- * @version 6.2.0-beta.2
30
+ * @version 6.2.0-beta.21
31
31
  */
32
32
  var GetBillingAccount200Response = /*#__PURE__*/function () {
33
33
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The GetBillingAccount200ResponsePlan model module.
28
28
  * @module model/GetBillingAccount200ResponsePlan
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var GetBillingAccount200ResponsePlan = /*#__PURE__*/function () {
32
32
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetBillingAccountBalanceHistory200Response model module.
32
32
  * @module model/GetBillingAccountBalanceHistory200Response
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetBillingAccountBalanceHistory200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetBillingAccountBalanceHistory200ResponseDataInner model module.
31
31
  * @module model/GetBillingAccountBalanceHistory200ResponseDataInner
32
- * @version 6.2.0-beta.2
32
+ * @version 6.2.0-beta.21
33
33
  */
34
34
  var GetBillingAccountBalanceHistory200ResponseDataInner = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetBillingAccounts200Response model module.
32
32
  * @module model/GetBillingAccounts200Response
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetBillingAccounts200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetDataUsage200Response model module.
32
32
  * @module model/GetDataUsage200Response
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetDataUsage200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetDataUsage200ResponseDataInner model module.
32
32
  * @module model/GetDataUsage200ResponseDataInner
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetDataUsage200ResponseDataInner = /*#__PURE__*/function () {
36
36
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The GetDbNote200Response model module.
28
28
  * @module model/GetDbNote200Response
29
- * @version 6.2.0-beta.2
29
+ * @version 6.2.0-beta.21
30
30
  */
31
31
  var GetDbNote200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetDeviceEnvironmentVariablesByPin200Response model module.
31
31
  * @module model/GetDeviceEnvironmentVariablesByPin200Response
32
- * @version 6.2.0-beta.2
32
+ * @version 6.2.0-beta.21
33
33
  */
34
34
  var GetDeviceEnvironmentVariablesByPin200Response = /*#__PURE__*/function () {
35
35
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetDeviceFleets200Response model module.
32
32
  * @module model/GetDeviceFleets200Response
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetDeviceFleets200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetDeviceHealthLog200Response model module.
32
32
  * @module model/GetDeviceHealthLog200Response
33
- * @version 6.2.0-beta.2
33
+ * @version 6.2.0-beta.21
34
34
  */
35
35
  var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The GetDeviceHealthLog200ResponseHealthLogInner model module.
31
31
  * @module model/GetDeviceHealthLog200ResponseHealthLogInner
32
- * @version 6.2.0-beta.2
32
+ * @version 6.2.0-beta.21
33
33
  */
34
34
  var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
35
35
  /**
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _GetDeviceJourney200ResponseJourney = _interopRequireDefault(require("./GetDeviceJourney200ResponseJourney"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
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); }
10
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -27,22 +28,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
28
  *
28
29
  */
29
30
  /**
30
- * The ProjectSecret model module.
31
- * @module model/ProjectSecret
32
- * @version 6.2.0-beta.2
31
+ * The GetDeviceJourney200Response model module.
32
+ * @module model/GetDeviceJourney200Response
33
+ * @version 6.2.0-beta.21
33
34
  */
34
- var ProjectSecret = /*#__PURE__*/function () {
35
+ var GetDeviceJourney200Response = /*#__PURE__*/function () {
35
36
  /**
36
- * Constructs a new <code>ProjectSecret</code>.
37
- * Metadata for a project secret. The value is never returned.
38
- * @alias module:model/ProjectSecret
39
- * @param created {Date} When the secret was first created.
40
- * @param createdBy {String} The actor who created the secret.
41
- * @param name {String} The secret name (alphanumeric and underscores only).
37
+ * Constructs a new <code>GetDeviceJourney200Response</code>.
38
+ * @alias module:model/GetDeviceJourney200Response
39
+ * @param endDate {Date} Latest event time within the journey.
40
+ * @param journey {module:model/GetDeviceJourney200ResponseJourney}
41
+ * @param journeyId {Number} Identifier of the journey.
42
+ * @param startDate {Date} Earliest event time within the journey.
42
43
  */
43
- function ProjectSecret(created, createdBy, name) {
44
- _classCallCheck(this, ProjectSecret);
45
- ProjectSecret.initialize(this, created, createdBy, name);
44
+ function GetDeviceJourney200Response(endDate, journey, journeyId, startDate) {
45
+ _classCallCheck(this, GetDeviceJourney200Response);
46
+ GetDeviceJourney200Response.initialize(this, endDate, journey, journeyId, startDate);
46
47
  }
47
48
 
48
49
  /**
@@ -50,40 +51,38 @@ var ProjectSecret = /*#__PURE__*/function () {
50
51
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
51
52
  * Only for internal use.
52
53
  */
53
- return _createClass(ProjectSecret, null, [{
54
+ return _createClass(GetDeviceJourney200Response, null, [{
54
55
  key: "initialize",
55
- value: function initialize(obj, created, createdBy, name) {
56
- obj["created"] = created;
57
- obj["created_by"] = createdBy;
58
- obj["name"] = name;
56
+ value: function initialize(obj, endDate, journey, journeyId, startDate) {
57
+ obj["end_date"] = endDate;
58
+ obj["journey"] = journey;
59
+ obj["journey_id"] = journeyId;
60
+ obj["start_date"] = startDate;
59
61
  }
60
62
 
61
63
  /**
62
- * Constructs a <code>ProjectSecret</code> from a plain JavaScript object, optionally creating a new instance.
64
+ * Constructs a <code>GetDeviceJourney200Response</code> from a plain JavaScript object, optionally creating a new instance.
63
65
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
64
66
  * @param {Object} data The plain JavaScript object bearing properties of interest.
65
- * @param {module:model/ProjectSecret} obj Optional instance to populate.
66
- * @return {module:model/ProjectSecret} The populated <code>ProjectSecret</code> instance.
67
+ * @param {module:model/GetDeviceJourney200Response} obj Optional instance to populate.
68
+ * @return {module:model/GetDeviceJourney200Response} The populated <code>GetDeviceJourney200Response</code> instance.
67
69
  */
68
70
  }, {
69
71
  key: "constructFromObject",
70
72
  value: function constructFromObject(data, obj) {
71
73
  if (data) {
72
- obj = obj || new ProjectSecret();
73
- if (data.hasOwnProperty("created")) {
74
- obj["created"] = _ApiClient["default"].convertToType(data["created"], "Date");
74
+ obj = obj || new GetDeviceJourney200Response();
75
+ if (data.hasOwnProperty("end_date")) {
76
+ obj["end_date"] = _ApiClient["default"].convertToType(data["end_date"], "Date");
75
77
  }
76
- if (data.hasOwnProperty("created_by")) {
77
- obj["created_by"] = _ApiClient["default"].convertToType(data["created_by"], "String");
78
+ if (data.hasOwnProperty("journey")) {
79
+ obj["journey"] = _GetDeviceJourney200ResponseJourney["default"].constructFromObject(data["journey"]);
78
80
  }
79
- if (data.hasOwnProperty("modified")) {
80
- obj["modified"] = _ApiClient["default"].convertToType(data["modified"], "Date");
81
+ if (data.hasOwnProperty("journey_id")) {
82
+ obj["journey_id"] = _ApiClient["default"].convertToType(data["journey_id"], "Number");
81
83
  }
82
- if (data.hasOwnProperty("modified_by")) {
83
- obj["modified_by"] = _ApiClient["default"].convertToType(data["modified_by"], "String");
84
- }
85
- if (data.hasOwnProperty("name")) {
86
- obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
84
+ if (data.hasOwnProperty("start_date")) {
85
+ obj["start_date"] = _ApiClient["default"].convertToType(data["start_date"], "Date");
87
86
  }
88
87
  } else if (data === null) {
89
88
  return null;
@@ -92,15 +91,15 @@ var ProjectSecret = /*#__PURE__*/function () {
92
91
  }
93
92
 
94
93
  /**
95
- * Validates the JSON data with respect to <code>ProjectSecret</code>.
94
+ * Validates the JSON data with respect to <code>GetDeviceJourney200Response</code>.
96
95
  * @param {Object} data The plain JavaScript object bearing properties of interest.
97
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProjectSecret</code>.
96
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceJourney200Response</code>.
98
97
  */
99
98
  }, {
100
99
  key: "validateJSON",
101
100
  value: function validateJSON(data) {
102
101
  // check to make sure all required properties are present in the JSON string
103
- var _iterator = _createForOfIteratorHelper(ProjectSecret.RequiredProperties),
102
+ var _iterator = _createForOfIteratorHelper(GetDeviceJourney200Response.RequiredProperties),
104
103
  _step;
105
104
  try {
106
105
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -109,56 +108,42 @@ var ProjectSecret = /*#__PURE__*/function () {
109
108
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
110
109
  }
111
110
  }
112
- // ensure the json data is a string
111
+ // validate the optional field `journey`
113
112
  } catch (err) {
114
113
  _iterator.e(err);
115
114
  } finally {
116
115
  _iterator.f();
117
116
  }
118
- if (data["created_by"] && !(typeof data["created_by"] === "string" || data["created_by"] instanceof String)) {
119
- throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data["created_by"]);
120
- }
121
- // ensure the json data is a string
122
- if (data["modified_by"] && !(typeof data["modified_by"] === "string" || data["modified_by"] instanceof String)) {
123
- throw new Error("Expected the field `modified_by` to be a primitive type in the JSON string but got " + data["modified_by"]);
124
- }
125
- // ensure the json data is a string
126
- if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
127
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
117
+ if (data["journey"]) {
118
+ // data not null
119
+ _GetDeviceJourney200ResponseJourney["default"].validateJSON(data["journey"]);
128
120
  }
129
121
  return true;
130
122
  }
131
123
  }]);
132
124
  }();
133
- ProjectSecret.RequiredProperties = ["created", "created_by", "name"];
134
-
135
- /**
136
- * When the secret was first created.
137
- * @member {Date} created
138
- */
139
- ProjectSecret.prototype["created"] = undefined;
125
+ GetDeviceJourney200Response.RequiredProperties = ["end_date", "journey", "journey_id", "start_date"];
140
126
 
141
127
  /**
142
- * The actor who created the secret.
143
- * @member {String} created_by
128
+ * Latest event time within the journey.
129
+ * @member {Date} end_date
144
130
  */
145
- ProjectSecret.prototype["created_by"] = undefined;
131
+ GetDeviceJourney200Response.prototype["end_date"] = undefined;
146
132
 
147
133
  /**
148
- * When the secret was last updated.
149
- * @member {Date} modified
134
+ * @member {module:model/GetDeviceJourney200ResponseJourney} journey
150
135
  */
151
- ProjectSecret.prototype["modified"] = undefined;
136
+ GetDeviceJourney200Response.prototype["journey"] = undefined;
152
137
 
153
138
  /**
154
- * The actor who last updated the secret.
155
- * @member {String} modified_by
139
+ * Identifier of the journey.
140
+ * @member {Number} journey_id
156
141
  */
157
- ProjectSecret.prototype["modified_by"] = undefined;
142
+ GetDeviceJourney200Response.prototype["journey_id"] = undefined;
158
143
 
159
144
  /**
160
- * The secret name (alphanumeric and underscores only).
161
- * @member {String} name
145
+ * Earliest event time within the journey.
146
+ * @member {Date} start_date
162
147
  */
163
- ProjectSecret.prototype["name"] = undefined;
164
- var _default = exports["default"] = ProjectSecret;
148
+ GetDeviceJourney200Response.prototype["start_date"] = undefined;
149
+ var _default = exports["default"] = GetDeviceJourney200Response;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _ProjectSecret = _interopRequireDefault(require("./ProjectSecret"));
8
+ var _Event = _interopRequireDefault(require("./Event"));
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 _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
@@ -28,19 +28,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  *
29
29
  */
30
30
  /**
31
- * The GetProjectSecretsResponse model module.
32
- * @module model/GetProjectSecretsResponse
33
- * @version 6.2.0-beta.2
31
+ * The GetDeviceJourney200ResponseJourney model module.
32
+ * @module model/GetDeviceJourney200ResponseJourney
33
+ * @version 6.2.0-beta.21
34
34
  */
35
- var GetProjectSecretsResponse = /*#__PURE__*/function () {
35
+ var GetDeviceJourney200ResponseJourney = /*#__PURE__*/function () {
36
36
  /**
37
- * Constructs a new <code>GetProjectSecretsResponse</code>.
38
- * @alias module:model/GetProjectSecretsResponse
39
- * @param secrets {Array.<module:model/ProjectSecret>}
37
+ * Constructs a new <code>GetDeviceJourney200ResponseJourney</code>.
38
+ * Paginated &#x60;_track.qo&#x60; events for the journey.
39
+ * @alias module:model/GetDeviceJourney200ResponseJourney
40
+ * @param events {Array.<module:model/Event>}
41
+ * @param hasMore {Boolean}
40
42
  */
41
- function GetProjectSecretsResponse(secrets) {
42
- _classCallCheck(this, GetProjectSecretsResponse);
43
- GetProjectSecretsResponse.initialize(this, secrets);
43
+ function GetDeviceJourney200ResponseJourney(events, hasMore) {
44
+ _classCallCheck(this, GetDeviceJourney200ResponseJourney);
45
+ GetDeviceJourney200ResponseJourney.initialize(this, events, hasMore);
44
46
  }
45
47
 
46
48
  /**
@@ -48,26 +50,30 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
48
50
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
51
  * Only for internal use.
50
52
  */
51
- return _createClass(GetProjectSecretsResponse, null, [{
53
+ return _createClass(GetDeviceJourney200ResponseJourney, null, [{
52
54
  key: "initialize",
53
- value: function initialize(obj, secrets) {
54
- obj["secrets"] = secrets;
55
+ value: function initialize(obj, events, hasMore) {
56
+ obj["events"] = events;
57
+ obj["has_more"] = hasMore;
55
58
  }
56
59
 
57
60
  /**
58
- * Constructs a <code>GetProjectSecretsResponse</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Constructs a <code>GetDeviceJourney200ResponseJourney</code> from a plain JavaScript object, optionally creating a new instance.
59
62
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
63
  * @param {Object} data The plain JavaScript object bearing properties of interest.
61
- * @param {module:model/GetProjectSecretsResponse} obj Optional instance to populate.
62
- * @return {module:model/GetProjectSecretsResponse} The populated <code>GetProjectSecretsResponse</code> instance.
64
+ * @param {module:model/GetDeviceJourney200ResponseJourney} obj Optional instance to populate.
65
+ * @return {module:model/GetDeviceJourney200ResponseJourney} The populated <code>GetDeviceJourney200ResponseJourney</code> instance.
63
66
  */
64
67
  }, {
65
68
  key: "constructFromObject",
66
69
  value: function constructFromObject(data, obj) {
67
70
  if (data) {
68
- obj = obj || new GetProjectSecretsResponse();
69
- if (data.hasOwnProperty("secrets")) {
70
- obj["secrets"] = _ApiClient["default"].convertToType(data["secrets"], [_ProjectSecret["default"]]);
71
+ obj = obj || new GetDeviceJourney200ResponseJourney();
72
+ if (data.hasOwnProperty("events")) {
73
+ obj["events"] = _ApiClient["default"].convertToType(data["events"], [_Event["default"]]);
74
+ }
75
+ if (data.hasOwnProperty("has_more")) {
76
+ obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
71
77
  }
72
78
  } else if (data === null) {
73
79
  return null;
@@ -76,15 +82,15 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
76
82
  }
77
83
 
78
84
  /**
79
- * Validates the JSON data with respect to <code>GetProjectSecretsResponse</code>.
85
+ * Validates the JSON data with respect to <code>GetDeviceJourney200ResponseJourney</code>.
80
86
  * @param {Object} data The plain JavaScript object bearing properties of interest.
81
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetProjectSecretsResponse</code>.
87
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceJourney200ResponseJourney</code>.
82
88
  */
83
89
  }, {
84
90
  key: "validateJSON",
85
91
  value: function validateJSON(data) {
86
92
  // check to make sure all required properties are present in the JSON string
87
- var _iterator = _createForOfIteratorHelper(GetProjectSecretsResponse.RequiredProperties),
93
+ var _iterator = _createForOfIteratorHelper(GetDeviceJourney200ResponseJourney.RequiredProperties),
88
94
  _step;
89
95
  try {
90
96
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -98,19 +104,19 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
98
104
  } finally {
99
105
  _iterator.f();
100
106
  }
101
- if (data["secrets"]) {
107
+ if (data["events"]) {
102
108
  // data not null
103
109
  // ensure the json data is an array
104
- if (!Array.isArray(data["secrets"])) {
105
- throw new Error("Expected the field `secrets` to be an array in the JSON data but got " + data["secrets"]);
110
+ if (!Array.isArray(data["events"])) {
111
+ throw new Error("Expected the field `events` to be an array in the JSON data but got " + data["events"]);
106
112
  }
107
- // validate the optional field `secrets` (array)
108
- var _iterator2 = _createForOfIteratorHelper(data["secrets"]),
113
+ // validate the optional field `events` (array)
114
+ var _iterator2 = _createForOfIteratorHelper(data["events"]),
109
115
  _step2;
110
116
  try {
111
117
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
112
118
  var item = _step2.value;
113
- _ProjectSecret["default"].validateJsonObject(item);
119
+ _Event["default"].validateJsonObject(item);
114
120
  }
115
121
  } catch (err) {
116
122
  _iterator2.e(err);
@@ -122,10 +128,15 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
122
128
  }
123
129
  }]);
124
130
  }();
125
- GetProjectSecretsResponse.RequiredProperties = ["secrets"];
131
+ GetDeviceJourney200ResponseJourney.RequiredProperties = ["events", "has_more"];
132
+
133
+ /**
134
+ * @member {Array.<module:model/Event>} events
135
+ */
136
+ GetDeviceJourney200ResponseJourney.prototype["events"] = undefined;
126
137
 
127
138
  /**
128
- * @member {Array.<module:model/ProjectSecret>} secrets
139
+ * @member {Boolean} has_more
129
140
  */
130
- GetProjectSecretsResponse.prototype["secrets"] = undefined;
131
- var _default = exports["default"] = GetProjectSecretsResponse;
141
+ GetDeviceJourney200ResponseJourney.prototype["has_more"] = undefined;
142
+ var _default = exports["default"] = GetDeviceJourney200ResponseJourney;