@blues-inc/notehub-js 6.2.0-beta.23 → 6.2.0-beta.25

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 +7 -1
  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 +122 -1
  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 +1 -1
  12. package/dist/api/RouteApi.js +1 -1
  13. package/dist/api/UsageApi.js +1 -1
  14. package/dist/api/WebhookApi.js +1 -1
  15. package/dist/index.js +28 -0
  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 +1 -1
  33. package/dist/model/CreateMonitor.js +51 -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/GetDeviceJourney200Response.js +149 -0
  84. package/dist/model/GetDeviceJourney200ResponseJourney.js +142 -0
  85. package/dist/model/GetDeviceJourneys200Response.js +141 -0
  86. package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +133 -0
  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 +36 -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
package/README.md CHANGED
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
6
6
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
7
7
 
8
8
  - API version: 1.2.0
9
- - Package version: 6.2.0-beta.23
9
+ - Package version: 6.2.0-beta.25
10
10
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
11
  For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
12
12
 
@@ -153,6 +153,8 @@ All URIs are relative to *https://api.notefile.net*
153
153
  | _NotehubJs.DeviceApi_ | [**getDeviceEnvironmentVariables**](docs/DeviceApi.md#getDeviceEnvironmentVariables) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/environment_variables |
154
154
  | _NotehubJs.DeviceApi_ | [**getDeviceEnvironmentVariablesByPin**](docs/DeviceApi.md#getDeviceEnvironmentVariablesByPin) | **GET** /v1/products/{productUID}/devices/{deviceUID}/environment_variables_with_pin |
155
155
  | _NotehubJs.DeviceApi_ | [**getDeviceHealthLog**](docs/DeviceApi.md#getDeviceHealthLog) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/health-log |
156
+ | _NotehubJs.DeviceApi_ | [**getDeviceJourney**](docs/DeviceApi.md#getDeviceJourney) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/journeys/{journeyID} |
157
+ | _NotehubJs.DeviceApi_ | [**getDeviceJourneys**](docs/DeviceApi.md#getDeviceJourneys) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/journeys |
156
158
  | _NotehubJs.DeviceApi_ | [**getDeviceLatestEvents**](docs/DeviceApi.md#getDeviceLatestEvents) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/latest |
157
159
  | _NotehubJs.DeviceApi_ | [**getDevicePlans**](docs/DeviceApi.md#getDevicePlans) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/plans |
158
160
  | _NotehubJs.DeviceApi_ | [**getDevicePublicKey**](docs/DeviceApi.md#getDevicePublicKey) | **GET** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/public-key |
@@ -321,6 +323,10 @@ All URIs are relative to *https://api.notefile.net*
321
323
  - [NotehubJs.GetDeviceFleets200Response](docs/GetDeviceFleets200Response.md)
322
324
  - [NotehubJs.GetDeviceHealthLog200Response](docs/GetDeviceHealthLog200Response.md)
323
325
  - [NotehubJs.GetDeviceHealthLog200ResponseHealthLogInner](docs/GetDeviceHealthLog200ResponseHealthLogInner.md)
326
+ - [NotehubJs.GetDeviceJourney200Response](docs/GetDeviceJourney200Response.md)
327
+ - [NotehubJs.GetDeviceJourney200ResponseJourney](docs/GetDeviceJourney200ResponseJourney.md)
328
+ - [NotehubJs.GetDeviceJourneys200Response](docs/GetDeviceJourneys200Response.md)
329
+ - [NotehubJs.GetDeviceJourneys200ResponseJourneysInner](docs/GetDeviceJourneys200ResponseJourneysInner.md)
324
330
  - [NotehubJs.GetDeviceLatestEvents200Response](docs/GetDeviceLatestEvents200Response.md)
325
331
  - [NotehubJs.GetDevicePlans200Response](docs/GetDevicePlans200Response.md)
326
332
  - [NotehubJs.GetDevicePublicKey200Response](docs/GetDevicePublicKey200Response.md)
package/dist/ApiClient.js CHANGED
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  */
27
27
  /**
28
28
  * @module ApiClient
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  /**
32
32
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
68
68
  */
69
69
  this.defaultHeaders = {};
70
70
  if (typeof window === "undefined") {
71
- this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.2.0-beta.23/Javascript";
71
+ this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.2.0-beta.25/Javascript";
72
72
  }
73
73
 
74
74
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Alert service.
30
30
  * @module api/AlertApi
31
- * @version 6.2.0-beta.23
31
+ * @version 6.2.0-beta.25
32
32
  */
33
33
  var AlertApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Authorization service.
32
32
  * @module api/AuthorizationApi
33
- * @version 6.2.0-beta.23
33
+ * @version 6.2.0-beta.25
34
34
  */
35
35
  var AuthorizationApi = exports["default"] = /*#__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
  * BillingAccount service.
32
32
  * @module api/BillingAccountApi
33
- * @version 6.2.0-beta.23
33
+ * @version 6.2.0-beta.25
34
34
  */
35
35
  var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -14,6 +14,8 @@ var _Error = _interopRequireDefault(require("../model/Error"));
14
14
  var _GetDbNote200Response = _interopRequireDefault(require("../model/GetDbNote200Response"));
15
15
  var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(require("../model/GetDeviceEnvironmentVariablesByPin200Response"));
16
16
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("../model/GetDeviceHealthLog200Response"));
17
+ var _GetDeviceJourney200Response = _interopRequireDefault(require("../model/GetDeviceJourney200Response"));
18
+ var _GetDeviceJourneys200Response = _interopRequireDefault(require("../model/GetDeviceJourneys200Response"));
17
19
  var _GetDeviceLatestEvents200Response = _interopRequireDefault(require("../model/GetDeviceLatestEvents200Response"));
18
20
  var _GetDevicePlans200Response = _interopRequireDefault(require("../model/GetDevicePlans200Response"));
19
21
  var _GetDevicePublicKey200Response = _interopRequireDefault(require("../model/GetDevicePublicKey200Response"));
@@ -46,7 +48,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
46
48
  /**
47
49
  * Device service.
48
50
  * @module api/DeviceApi
49
- * @version 6.2.0-beta.23
51
+ * @version 6.2.0-beta.25
50
52
  */
51
53
  var DeviceApi = exports["default"] = /*#__PURE__*/function () {
52
54
  /**
@@ -863,6 +865,125 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
863
865
  });
864
866
  }
865
867
 
868
+ /**
869
+ * Get a single journey for a device along with its `_track.qo` events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
870
+ * @param {String} projectOrProductUID
871
+ * @param {String} deviceUID
872
+ * @param {Number} journeyID Identifier of the journey, taken from the `journey` field on `_track.qo` events (a Unix timestamp marking the start of the journey).
873
+ * @param {Object} opts Optional parameters
874
+ * @param {Number} opts.pageSize (default to 50)
875
+ * @param {Number} opts.pageNum (default to 1)
876
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourney200Response} and HTTP response
877
+ */
878
+ }, {
879
+ key: "getDeviceJourneyWithHttpInfo",
880
+ value: function getDeviceJourneyWithHttpInfo(projectOrProductUID, deviceUID, journeyID, opts) {
881
+ opts = opts || {};
882
+ var postBody = null;
883
+ // verify the required parameter 'projectOrProductUID' is set
884
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
885
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceJourney");
886
+ }
887
+ // verify the required parameter 'deviceUID' is set
888
+ if (deviceUID === undefined || deviceUID === null) {
889
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceJourney");
890
+ }
891
+ // verify the required parameter 'journeyID' is set
892
+ if (journeyID === undefined || journeyID === null) {
893
+ throw new _Error["default"]("Missing the required parameter 'journeyID' when calling getDeviceJourney");
894
+ }
895
+ var pathParams = {
896
+ projectOrProductUID: projectOrProductUID,
897
+ deviceUID: deviceUID,
898
+ journeyID: journeyID
899
+ };
900
+ var queryParams = {
901
+ pageSize: opts["pageSize"],
902
+ pageNum: opts["pageNum"]
903
+ };
904
+ var headerParams = {};
905
+ var formParams = {};
906
+ var authNames = ["personalAccessToken"];
907
+ var contentTypes = [];
908
+ var accepts = ["application/json"];
909
+ var returnType = _GetDeviceJourney200Response["default"];
910
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/journeys/{journeyID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
911
+ }
912
+
913
+ /**
914
+ * Get a single journey for a device along with its `_track.qo` events. The events array is paginated via `pageSize` / `pageNum`; use `journey.has_more` to detect additional pages.
915
+ * @param {String} projectOrProductUID
916
+ * @param {String} deviceUID
917
+ * @param {Number} journeyID Identifier of the journey, taken from the `journey` field on `_track.qo` events (a Unix timestamp marking the start of the journey).
918
+ * @param {Object} opts Optional parameters
919
+ * @param {Number} opts.pageSize (default to 50)
920
+ * @param {Number} opts.pageNum (default to 1)
921
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourney200Response}
922
+ */
923
+ }, {
924
+ key: "getDeviceJourney",
925
+ value: function getDeviceJourney(projectOrProductUID, deviceUID, journeyID, opts) {
926
+ return this.getDeviceJourneyWithHttpInfo(projectOrProductUID, deviceUID, journeyID, opts).then(function (response_and_data) {
927
+ return response_and_data.data;
928
+ });
929
+ }
930
+
931
+ /**
932
+ * Get the list of journeys for a device, derived from `_track.qo` events. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
933
+ * @param {String} projectOrProductUID
934
+ * @param {String} deviceUID
935
+ * @param {Object} opts Optional parameters
936
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
937
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
938
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeviceJourneys200Response} and HTTP response
939
+ */
940
+ }, {
941
+ key: "getDeviceJourneysWithHttpInfo",
942
+ value: function getDeviceJourneysWithHttpInfo(projectOrProductUID, deviceUID, opts) {
943
+ opts = opts || {};
944
+ var postBody = null;
945
+ // verify the required parameter 'projectOrProductUID' is set
946
+ if (projectOrProductUID === undefined || projectOrProductUID === null) {
947
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getDeviceJourneys");
948
+ }
949
+ // verify the required parameter 'deviceUID' is set
950
+ if (deviceUID === undefined || deviceUID === null) {
951
+ throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling getDeviceJourneys");
952
+ }
953
+ var pathParams = {
954
+ projectOrProductUID: projectOrProductUID,
955
+ deviceUID: deviceUID
956
+ };
957
+ var queryParams = {
958
+ startDate: opts["startDate"],
959
+ endDate: opts["endDate"]
960
+ };
961
+ var headerParams = {};
962
+ var formParams = {};
963
+ var authNames = ["personalAccessToken"];
964
+ var contentTypes = [];
965
+ var accepts = ["application/json"];
966
+ var returnType = _GetDeviceJourneys200Response["default"];
967
+ return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/devices/{deviceUID}/journeys", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
968
+ }
969
+
970
+ /**
971
+ * Get the list of journeys for a device, derived from `_track.qo` events. Returns journey metadata only (no event payloads). Capped at 100 most recent journeys; `has_more` is true when the cap is hit.
972
+ * @param {String} projectOrProductUID
973
+ * @param {String} deviceUID
974
+ * @param {Object} opts Optional parameters
975
+ * @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
976
+ * @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
977
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeviceJourneys200Response}
978
+ */
979
+ }, {
980
+ key: "getDeviceJourneys",
981
+ value: function getDeviceJourneys(projectOrProductUID, deviceUID, opts) {
982
+ return this.getDeviceJourneysWithHttpInfo(projectOrProductUID, deviceUID, opts).then(function (response_and_data) {
983
+ return response_and_data.data;
984
+ });
985
+ }
986
+
866
987
  /**
867
988
  * Get Device Latest Events
868
989
  * @param {String} projectOrProductUID
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Event service.
32
32
  * @module api/EventApi
33
- * @version 6.2.0-beta.23
33
+ * @version 6.2.0-beta.25
34
34
  */
35
35
  var EventApi = exports["default"] = /*#__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
  * ExternalDevices service.
31
31
  * @module api/ExternalDevicesApi
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -35,7 +35,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
35
35
  /**
36
36
  * Jobs service.
37
37
  * @module api/JobsApi
38
- * @version 6.2.0-beta.23
38
+ * @version 6.2.0-beta.25
39
39
  */
40
40
  var JobsApi = exports["default"] = /*#__PURE__*/function () {
41
41
  /**
@@ -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.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var MonitorApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
@@ -52,7 +52,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
52
52
  /**
53
53
  * Project service.
54
54
  * @module api/ProjectApi
55
- * @version 6.2.0-beta.23
55
+ * @version 6.2.0-beta.25
56
56
  */
57
57
  var ProjectApi = exports["default"] = /*#__PURE__*/function () {
58
58
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Route service.
32
32
  * @module api/RouteApi
33
- * @version 6.2.0-beta.23
33
+ * @version 6.2.0-beta.25
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * Usage service.
33
33
  * @module api/UsageApi
34
- * @version 6.2.0-beta.23
34
+ * @version 6.2.0-beta.25
35
35
  */
36
36
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
37
37
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Webhook service.
32
32
  * @module api/WebhookApi
33
- * @version 6.2.0-beta.23
33
+ * @version 6.2.0-beta.25
34
34
  */
35
35
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
package/dist/index.js CHANGED
@@ -453,6 +453,30 @@ Object.defineProperty(exports, "GetDeviceHealthLog200ResponseHealthLogInner", {
453
453
  return _GetDeviceHealthLog200ResponseHealthLogInner["default"];
454
454
  }
455
455
  });
456
+ Object.defineProperty(exports, "GetDeviceJourney200Response", {
457
+ enumerable: true,
458
+ get: function get() {
459
+ return _GetDeviceJourney200Response["default"];
460
+ }
461
+ });
462
+ Object.defineProperty(exports, "GetDeviceJourney200ResponseJourney", {
463
+ enumerable: true,
464
+ get: function get() {
465
+ return _GetDeviceJourney200ResponseJourney["default"];
466
+ }
467
+ });
468
+ Object.defineProperty(exports, "GetDeviceJourneys200Response", {
469
+ enumerable: true,
470
+ get: function get() {
471
+ return _GetDeviceJourneys200Response["default"];
472
+ }
473
+ });
474
+ Object.defineProperty(exports, "GetDeviceJourneys200ResponseJourneysInner", {
475
+ enumerable: true,
476
+ get: function get() {
477
+ return _GetDeviceJourneys200ResponseJourneysInner["default"];
478
+ }
479
+ });
456
480
  Object.defineProperty(exports, "GetDeviceLatestEvents200Response", {
457
481
  enumerable: true,
458
482
  get: function get() {
@@ -1026,6 +1050,10 @@ var _GetDeviceEnvironmentVariablesByPin200Response = _interopRequireDefault(requ
1026
1050
  var _GetDeviceFleets200Response = _interopRequireDefault(require("./model/GetDeviceFleets200Response"));
1027
1051
  var _GetDeviceHealthLog200Response = _interopRequireDefault(require("./model/GetDeviceHealthLog200Response"));
1028
1052
  var _GetDeviceHealthLog200ResponseHealthLogInner = _interopRequireDefault(require("./model/GetDeviceHealthLog200ResponseHealthLogInner"));
1053
+ var _GetDeviceJourney200Response = _interopRequireDefault(require("./model/GetDeviceJourney200Response"));
1054
+ var _GetDeviceJourney200ResponseJourney = _interopRequireDefault(require("./model/GetDeviceJourney200ResponseJourney"));
1055
+ var _GetDeviceJourneys200Response = _interopRequireDefault(require("./model/GetDeviceJourneys200Response"));
1056
+ var _GetDeviceJourneys200ResponseJourneysInner = _interopRequireDefault(require("./model/GetDeviceJourneys200ResponseJourneysInner"));
1029
1057
  var _GetDeviceLatestEvents200Response = _interopRequireDefault(require("./model/GetDeviceLatestEvents200Response"));
1030
1058
  var _GetDevicePlans200Response = _interopRequireDefault(require("./model/GetDevicePlans200Response"));
1031
1059
  var _GetDevicePublicKey200Response = _interopRequireDefault(require("./model/GetDevicePublicKey200Response"));
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The AWSRoleConfig model module.
31
31
  * @module model/AWSRoleConfig
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var AWSRoleConfig = /*#__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 AddDeviceToFleetsRequest model module.
31
31
  * @module model/AddDeviceToFleetsRequest
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The Alert model module.
33
33
  * @module model/Alert
34
- * @version 6.2.0-beta.23
34
+ * @version 6.2.0-beta.25
35
35
  */
36
36
  var Alert = /*#__PURE__*/function () {
37
37
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  var AlertDataInner = /*#__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 AlertNotificationsInner model module.
28
28
  * @module model/AlertNotificationsInner
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The AwsRoute model module.
30
30
  * @module model/AwsRoute
31
- * @version 6.2.0-beta.23
31
+ * @version 6.2.0-beta.25
32
32
  */
33
33
  var AwsRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The AzureRoute model module.
30
30
  * @module model/AzureRoute
31
- * @version 6.2.0-beta.23
31
+ * @version 6.2.0-beta.25
32
32
  */
33
33
  var AzureRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The BillingAccount model module.
32
32
  * @module model/BillingAccount
33
- * @version 6.2.0-beta.23
33
+ * @version 6.2.0-beta.25
34
34
  */
35
35
  var BillingAccount = /*#__PURE__*/function () {
36
36
  /**
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The BlynkRoute model module.
30
30
  * @module model/BlynkRoute
31
- * @version 6.2.0-beta.23
31
+ * @version 6.2.0-beta.25
32
32
  */
33
33
  var BlynkRoute = /*#__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 Body model module.
28
28
  * @module model/Body
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  var Body = /*#__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 CancelJobRun200Response model module.
31
31
  * @module model/CancelJobRun200Response
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var CancelJobRun200Response = /*#__PURE__*/function () {
35
35
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CellularPlan model module.
29
29
  * @module model/CellularPlan
30
- * @version 6.2.0-beta.23
30
+ * @version 6.2.0-beta.25
31
31
  */
32
32
  var CellularPlan = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CloneProjectRequest model module.
31
31
  * @module model/CloneProjectRequest
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var CloneProjectRequest = /*#__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 Contact model module.
28
28
  * @module model/Contact
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CreateFleetRequest model module.
29
29
  * @module model/CreateFleetRequest
30
- * @version 6.2.0-beta.23
30
+ * @version 6.2.0-beta.25
31
31
  */
32
32
  var CreateFleetRequest = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateJob201Response model module.
31
31
  * @module model/CreateJob201Response
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var CreateJob201Response = /*#__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 CreateLegacyWebhookEventRequest model module.
28
28
  * @module model/CreateLegacyWebhookEventRequest
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  var CreateLegacyWebhookEventRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The CreateMonitor model module.
33
33
  * @module model/CreateMonitor
34
- * @version 6.2.0-beta.23
34
+ * @version 6.2.0-beta.25
35
35
  */
36
36
  var CreateMonitor = /*#__PURE__*/function () {
37
37
  /**
@@ -132,6 +132,15 @@ var CreateMonitor = /*#__PURE__*/function () {
132
132
  if (data.hasOwnProperty("uid")) {
133
133
  obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
134
134
  }
135
+ if (data.hasOwnProperty("usage_scope")) {
136
+ obj["usage_scope"] = _ApiClient["default"].convertToType(data["usage_scope"], "String");
137
+ }
138
+ if (data.hasOwnProperty("usage_type")) {
139
+ obj["usage_type"] = _ApiClient["default"].convertToType(data["usage_type"], "String");
140
+ }
141
+ if (data.hasOwnProperty("usage_window")) {
142
+ obj["usage_window"] = _ApiClient["default"].convertToType(data["usage_window"], "Number");
143
+ }
135
144
  } else if (data === null) {
136
145
  return null;
137
146
  }
@@ -229,6 +238,14 @@ var CreateMonitor = /*#__PURE__*/function () {
229
238
  if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
230
239
  throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
231
240
  }
241
+ // ensure the json data is a string
242
+ if (data["usage_scope"] && !(typeof data["usage_scope"] === "string" || data["usage_scope"] instanceof String)) {
243
+ throw new Error("Expected the field `usage_scope` to be a primitive type in the JSON string but got " + data["usage_scope"]);
244
+ }
245
+ // ensure the json data is a string
246
+ if (data["usage_type"] && !(typeof data["usage_type"] === "string" || data["usage_type"] instanceof String)) {
247
+ throw new Error("Expected the field `usage_type` to be a primitive type in the JSON string but got " + data["usage_type"]);
248
+ }
232
249
  return true;
233
250
  }
234
251
  }]);
@@ -337,6 +354,24 @@ CreateMonitor.prototype["threshold"] = undefined;
337
354
  */
338
355
  CreateMonitor.prototype["uid"] = undefined;
339
356
 
357
+ /**
358
+ * For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
359
+ * @member {String} usage_scope
360
+ */
361
+ CreateMonitor.prototype["usage_scope"] = undefined;
362
+
363
+ /**
364
+ * For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
365
+ * @member {String} usage_type
366
+ */
367
+ CreateMonitor.prototype["usage_type"] = undefined;
368
+
369
+ /**
370
+ * For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
371
+ * @member {Number} usage_window
372
+ */
373
+ CreateMonitor.prototype["usage_window"] = undefined;
374
+
340
375
  // Implement Monitor interface:
341
376
  /**
342
377
  * Aggregate function to apply to the selected values before applying the condition. [none, sum, average, max, min]
@@ -422,6 +457,21 @@ _Monitor["default"].prototype["threshold"] = undefined;
422
457
  * @member {String} uid
423
458
  */
424
459
  _Monitor["default"].prototype["uid"] = undefined;
460
+ /**
461
+ * For usage monitors: the scope of aggregation. Supported values are \"device\" and \"fleet\".
462
+ * @member {String} usage_scope
463
+ */
464
+ _Monitor["default"].prototype["usage_scope"] = undefined;
465
+ /**
466
+ * For usage monitors: the type of data usage to monitor. Supported values are \"cellular\" and \"satellite\".
467
+ * @member {String} usage_type
468
+ */
469
+ _Monitor["default"].prototype["usage_type"] = undefined;
470
+ /**
471
+ * For usage monitors: the rolling time window in days to sum usage over (e.g. 30 for 30 days).
472
+ * @member {Number} usage_window
473
+ */
474
+ _Monitor["default"].prototype["usage_window"] = undefined;
425
475
 
426
476
  /**
427
477
  * Allowed values for the <code>aggregate_function</code> property.
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProductRequest model module.
31
31
  * @module model/CreateProductRequest
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var CreateProductRequest = /*#__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 CreateProjectRequest model module.
31
31
  * @module model/CreateProjectRequest
32
- * @version 6.2.0-beta.23
32
+ * @version 6.2.0-beta.25
33
33
  */
34
34
  var CreateProjectRequest = /*#__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 CreateUpdateRepository model module.
28
28
  * @module model/CreateUpdateRepository
29
- * @version 6.2.0-beta.23
29
+ * @version 6.2.0-beta.25
30
30
  */
31
31
  var CreateUpdateRepository = /*#__PURE__*/function () {
32
32
  /**