@blues-inc/notehub-js 2.2.0-beta.29 → 2.2.0-beta.30

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 (144) hide show
  1. package/README.md +62 -65
  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 +773 -773
  7. package/dist/api/EventApi.js +83 -83
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +282 -282
  11. package/dist/api/RouteApi.js +10 -10
  12. package/dist/api/UsageApi.js +8 -8
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +135 -156
  15. package/dist/model/Alert.js +1 -1
  16. package/dist/model/AlertDataInner.js +1 -1
  17. package/dist/model/AlertNotificationsInner.js +1 -1
  18. package/dist/model/{AwsRoute.js → Aws.js} +45 -39
  19. package/dist/model/{Filter.js → AwsFilter.js} +47 -25
  20. package/dist/model/AwsTransform.js +148 -0
  21. package/dist/model/{AzureRoute.js → Azure.js} +40 -34
  22. package/dist/model/BillingAccount.js +1 -1
  23. package/dist/model/Body.js +1 -1
  24. package/dist/model/CellularPlan.js +1 -1
  25. package/dist/model/CloneProjectRequest.js +1 -1
  26. package/dist/model/Contact.js +1 -1
  27. package/dist/model/CreateFleetRequest.js +1 -15
  28. package/dist/model/CreateMonitor.js +1 -1
  29. package/dist/model/CreateProductRequest.js +1 -1
  30. package/dist/model/CreateProjectRequest.js +1 -1
  31. package/dist/model/CreateUpdateRepository.js +1 -1
  32. package/dist/model/CurrentFirmware.js +1 -1
  33. package/dist/model/DFUEnv.js +1 -1
  34. package/dist/model/DFUState.js +1 -1
  35. package/dist/model/DataField.js +1 -1
  36. package/dist/model/DataSetField.js +1 -1
  37. package/dist/model/DataUsage.js +1 -1
  38. package/dist/model/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +20 -20
  39. package/dist/model/Device.js +1 -1
  40. package/dist/model/DeviceDfuHistory.js +1 -1
  41. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  42. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  43. package/dist/model/DeviceDfuStateMachine.js +1 -1
  44. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  45. package/dist/model/DeviceDfuStatus.js +1 -1
  46. package/dist/model/DeviceDfuStatusPage.js +1 -1
  47. package/dist/model/DeviceSession.js +1 -1
  48. package/dist/model/DeviceTowerInfo.js +1 -1
  49. package/dist/model/DeviceUsage.js +1 -1
  50. package/dist/model/DfuActionRequest.js +1 -1
  51. package/dist/model/EmailNotification.js +1 -1
  52. package/dist/model/EnvTreeJsonNode.js +1 -1
  53. package/dist/model/EnvVar.js +1 -1
  54. package/dist/model/EnvironmentVariables.js +1 -1
  55. package/dist/model/Error.js +1 -1
  56. package/dist/model/Event.js +1 -1
  57. package/dist/model/Firmware.js +1 -1
  58. package/dist/model/FirmwareInfo.js +1 -1
  59. package/dist/model/Fleet.js +2 -16
  60. package/dist/model/GetAlerts200Response.js +1 -1
  61. package/dist/model/GetBillingAccounts200Response.js +1 -1
  62. package/dist/model/GetDataUsage200Response.js +1 -1
  63. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  64. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  65. package/dist/model/GetDeviceFleets200Response.js +1 -1
  66. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  67. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  68. package/dist/model/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +18 -18
  69. package/dist/model/GetDevicePlans200Response.js +1 -1
  70. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  71. package/dist/model/GetDeviceSessions200Response.js +1 -1
  72. package/dist/model/GetProducts200Response.js +1 -1
  73. package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +26 -26
  74. package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
  75. package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +21 -21
  76. package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +22 -22
  77. package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +22 -22
  78. package/dist/model/GetProjectMembers200Response.js +1 -1
  79. package/dist/model/GetProjects200Response.js +1 -1
  80. package/dist/model/GetSessionsUsage200Response.js +1 -1
  81. package/dist/model/GetWebhooks200Response.js +1 -1
  82. package/dist/model/{GoogleRoute.js → Google.js} +37 -32
  83. package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +20 -20
  84. package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +20 -20
  85. package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +18 -18
  86. package/dist/model/HandleNotefileChanges200Response.js +106 -0
  87. package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChangesPending200Response.js} +21 -21
  88. package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +19 -19
  89. package/dist/model/{HttpRoute.js → Http.js} +40 -34
  90. package/dist/model/Location.js +1 -1
  91. package/dist/model/Login200Response.js +1 -1
  92. package/dist/model/LoginRequest.js +1 -1
  93. package/dist/model/Monitor.js +1 -1
  94. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  95. package/dist/model/{MqttRoute.js → Mqtt.js} +50 -45
  96. package/dist/model/Note.js +10 -90
  97. package/dist/model/NotefileSchema.js +1 -1
  98. package/dist/model/NotehubRoute.js +134 -214
  99. package/dist/model/NotehubRouteSchema.js +505 -0
  100. package/dist/model/OAuth2Error.js +1 -1
  101. package/dist/model/OAuth2TokenResponse.js +1 -1
  102. package/dist/model/PersonalAccessToken.js +1 -1
  103. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  104. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  105. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  106. package/dist/model/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +22 -22
  107. package/dist/model/Product.js +1 -1
  108. package/dist/model/Project.js +1 -1
  109. package/dist/model/ProjectMember.js +1 -1
  110. package/dist/model/{ProxyRoute.js → Proxy.js} +26 -22
  111. package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +20 -20
  112. package/dist/model/{RadRoute.js → Radresponder.js} +26 -38
  113. package/dist/model/Repository.js +1 -1
  114. package/dist/model/RouteLog.js +1 -1
  115. package/dist/model/SatellitePlan.js +1 -1
  116. package/dist/model/SchemaProperty.js +1 -1
  117. package/dist/model/SimUsage.js +1 -1
  118. package/dist/model/{SlackRoute.js → Slack.js} +58 -35
  119. package/dist/model/SlackBearerNotification.js +1 -1
  120. package/dist/model/{RouteTransformSettings.js → SlackTransform.js} +22 -22
  121. package/dist/model/SlackWebHookNotification.js +1 -1
  122. package/dist/model/{SnowflakeRoute.js → Snowflake.js} +41 -34
  123. package/dist/model/{ThingworxRoute.js → Thingworx.js} +37 -32
  124. package/dist/model/TowerLocation.js +1 -1
  125. package/dist/model/{TwilioRoute.js → Twilio.js} +39 -30
  126. package/dist/model/UpdateFleetRequest.js +1 -15
  127. package/dist/model/UploadMetadata.js +1 -1
  128. package/dist/model/UsageData.js +1 -1
  129. package/dist/model/UsageEventsData.js +7 -20
  130. package/dist/model/UsageEventsResponse.js +1 -1
  131. package/dist/model/UsageRouteLogsData.js +2 -2
  132. package/dist/model/UsageSessionsData.js +1 -1
  133. package/dist/model/{NotehubRouteSummary.js → UserDbRoute.js} +29 -24
  134. package/dist/model/UserDfuStateMachine.js +1 -1
  135. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  136. package/dist/model/UserFirmwareInfo.js +1 -1
  137. package/dist/model/WebhookSettings.js +1 -1
  138. package/package.json +1 -1
  139. package/dist/model/BlynkRoute.js +0 -147
  140. package/dist/model/DatacakeRoute.js +0 -165
  141. package/dist/model/FleetConnectivityAssurance.js +0 -111
  142. package/dist/model/Notefile.js +0 -147
  143. package/dist/model/QubitroRoute.js +0 -159
  144. package/dist/model/S3ArchiveRoute.js +0 -271
@@ -7,8 +7,8 @@ exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
8
  var _Error = _interopRequireDefault(require("../model/Error"));
9
9
  var _NotehubRoute = _interopRequireDefault(require("../model/NotehubRoute"));
10
- var _NotehubRouteSummary = _interopRequireDefault(require("../model/NotehubRouteSummary"));
11
10
  var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
11
+ var _UserDbRoute = _interopRequireDefault(require("../model/UserDbRoute"));
12
12
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
13
13
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
14
14
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -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 2.2.0-beta.29
33
+ * @version 2.2.0-beta.30
34
34
  */
35
35
  var RouteApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -48,7 +48,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
48
48
  /**
49
49
  * Create Route within a Project
50
50
  * @param {String} projectOrProductUID
51
- * @param {module:model/NotehubRoute} notehubRoute Route to be created
51
+ * @param {module:model/NotehubRoute} notehubRoute Route to be Created
52
52
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
53
53
  */
54
54
  return _createClass(RouteApi, [{
@@ -79,7 +79,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
79
79
  /**
80
80
  * Create Route within a Project
81
81
  * @param {String} projectOrProductUID
82
- * @param {module:model/NotehubRoute} notehubRoute Route to be created
82
+ * @param {module:model/NotehubRoute} notehubRoute Route to be Created
83
83
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
84
84
  */
85
85
  }, {
@@ -94,7 +94,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
94
94
  * Delete single route within a project
95
95
  * @param {String} projectOrProductUID
96
96
  * @param {String} routeUID
97
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
97
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response
98
98
  */
99
99
  }, {
100
100
  key: "deleteRouteWithHttpInfo",
@@ -118,7 +118,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
118
118
  var authNames = ['personalAccessToken'];
119
119
  var contentTypes = [];
120
120
  var accepts = ['application/json'];
121
- var returnType = null;
121
+ var returnType = Object;
122
122
  return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes/{routeUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
123
123
  }
124
124
 
@@ -126,7 +126,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
126
126
  * Delete single route within a project
127
127
  * @param {String} projectOrProductUID
128
128
  * @param {String} routeUID
129
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}
129
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object}
130
130
  */
131
131
  }, {
132
132
  key: "deleteRoute",
@@ -265,7 +265,7 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
265
265
  /**
266
266
  * Get all Routes within a Project
267
267
  * @param {String} projectOrProductUID
268
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
268
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/UserDbRoute>} and HTTP response
269
269
  */
270
270
  }, {
271
271
  key: "getRoutesWithHttpInfo",
@@ -284,14 +284,14 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
284
284
  var authNames = ['personalAccessToken'];
285
285
  var contentTypes = [];
286
286
  var accepts = ['application/json'];
287
- var returnType = [_NotehubRouteSummary["default"]];
287
+ var returnType = [_UserDbRoute["default"]];
288
288
  return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/routes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
289
289
  }
290
290
 
291
291
  /**
292
292
  * Get all Routes within a Project
293
293
  * @param {String} projectOrProductUID
294
- * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
294
+ * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/UserDbRoute>}
295
295
  */
296
296
  }, {
297
297
  key: "getRoutes",
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * Usage service.
32
32
  * @module api/UsageApi
33
- * @version 2.2.0-beta.29
33
+ * @version 2.2.0-beta.30
34
34
  */
35
35
  var UsageApi = exports["default"] = /*#__PURE__*/function () {
36
36
  /**
@@ -119,17 +119,17 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
119
119
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UsageEventsResponse} and HTTP response
120
120
  */
121
121
  }, {
122
- key: "getEventsUsageWithHttpInfo",
123
- value: function getEventsUsageWithHttpInfo(projectOrProductUID, period, opts) {
122
+ key: "getProjectEventsUsageWithHttpInfo",
123
+ value: function getProjectEventsUsageWithHttpInfo(projectOrProductUID, period, opts) {
124
124
  opts = opts || {};
125
125
  var postBody = null;
126
126
  // verify the required parameter 'projectOrProductUID' is set
127
127
  if (projectOrProductUID === undefined || projectOrProductUID === null) {
128
- throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEventsUsage");
128
+ throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectEventsUsage");
129
129
  }
130
130
  // verify the required parameter 'period' is set
131
131
  if (period === undefined || period === null) {
132
- throw new _Error["default"]("Missing the required parameter 'period' when calling getEventsUsage");
132
+ throw new _Error["default"]("Missing the required parameter 'period' when calling getProjectEventsUsage");
133
133
  }
134
134
  var pathParams = {
135
135
  'projectOrProductUID': projectOrProductUID
@@ -162,9 +162,9 @@ var UsageApi = exports["default"] = /*#__PURE__*/function () {
162
162
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UsageEventsResponse}
163
163
  */
164
164
  }, {
165
- key: "getEventsUsage",
166
- value: function getEventsUsage(projectOrProductUID, period, opts) {
167
- return this.getEventsUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
165
+ key: "getProjectEventsUsage",
166
+ value: function getProjectEventsUsage(projectOrProductUID, period, opts) {
167
+ return this.getProjectEventsUsageWithHttpInfo(projectOrProductUID, period, opts).then(function (response_and_data) {
168
168
  return response_and_data.data;
169
169
  });
170
170
  }
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * Webhook service.
31
31
  * @module api/WebhookApi
32
- * @version 2.2.0-beta.29
32
+ * @version 2.2.0-beta.30
33
33
  */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**