@blues-inc/notehub-js 6.0.0 → 6.1.0-beta.2

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 (160) hide show
  1. package/README.md +274 -243
  2. package/dist/ApiClient.js +150 -150
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +106 -16
  6. package/dist/api/DeviceApi.js +397 -341
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/JobsApi.js +491 -0
  10. package/dist/api/MonitorApi.js +52 -52
  11. package/dist/api/ProjectApi.js +437 -395
  12. package/dist/api/RouteApi.js +83 -83
  13. package/dist/api/UsageApi.js +67 -67
  14. package/dist/api/WebhookApi.js +51 -51
  15. package/dist/index.js +98 -0
  16. package/dist/model/AWSRoleConfig.js +131 -0
  17. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  18. package/dist/model/Alert.js +76 -74
  19. package/dist/model/AlertDataInner.js +36 -36
  20. package/dist/model/AlertNotificationsInner.js +18 -18
  21. package/dist/model/AwsRoute.js +78 -65
  22. package/dist/model/AzureRoute.js +43 -43
  23. package/dist/model/BillingAccount.js +21 -21
  24. package/dist/model/BillingAccountRole.js +9 -9
  25. package/dist/model/BlynkRoute.js +28 -28
  26. package/dist/model/Body.js +5 -5
  27. package/dist/model/CancelJobRun200Response.js +111 -0
  28. package/dist/model/CellularPlan.js +34 -34
  29. package/dist/model/CloneProjectRequest.js +20 -20
  30. package/dist/model/Contact.js +22 -22
  31. package/dist/model/CreateFleetRequest.js +20 -20
  32. package/dist/model/CreateJob201Response.js +115 -0
  33. package/dist/model/CreateMonitor.js +132 -126
  34. package/dist/model/CreateProductRequest.js +22 -22
  35. package/dist/model/CreateProjectRequest.js +16 -16
  36. package/dist/model/CreateUpdateRepository.js +17 -17
  37. package/dist/model/CurrentFirmware.js +12 -12
  38. package/dist/model/DFUEnv.js +12 -12
  39. package/dist/model/DFUState.js +65 -65
  40. package/dist/model/DataField.js +7 -7
  41. package/dist/model/DataSetField.js +19 -19
  42. package/dist/model/DataUsage.js +14 -14
  43. package/dist/model/DatacakeRoute.js +35 -35
  44. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  45. package/dist/model/DeleteJob200Response.js +111 -0
  46. package/dist/model/DeleteNotefilesRequest.js +7 -7
  47. package/dist/model/Device.js +107 -106
  48. package/dist/model/DeviceDfuHistory.js +20 -19
  49. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  50. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  51. package/dist/model/DeviceDfuStateMachine.js +25 -24
  52. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  53. package/dist/model/DeviceDfuStatus.js +20 -20
  54. package/dist/model/DeviceDfuStatusPage.js +13 -12
  55. package/dist/model/DeviceSession.js +221 -221
  56. package/dist/model/DeviceTowerInfo.js +14 -14
  57. package/dist/model/DeviceUsage.js +32 -32
  58. package/dist/model/DfuActionRequest.js +7 -7
  59. package/dist/model/EmailNotification.js +7 -7
  60. package/dist/model/EnvTreeJsonNode.js +69 -67
  61. package/dist/model/EnvVar.js +18 -18
  62. package/dist/model/EnvironmentVariables.js +8 -8
  63. package/dist/model/Error.js +31 -31
  64. package/dist/model/Event.js +248 -248
  65. package/dist/model/Filter.js +16 -16
  66. package/dist/model/Firmware.js +49 -49
  67. package/dist/model/FirmwareInfo.js +82 -60
  68. package/dist/model/Fleet.js +38 -38
  69. package/dist/model/FleetConnectivityAssurance.js +5 -5
  70. package/dist/model/GetAlerts200Response.js +15 -14
  71. package/dist/model/GetBillingAccount200Response.js +137 -0
  72. package/dist/model/GetBillingAccount200ResponsePlan.js +141 -0
  73. package/dist/model/GetBillingAccountBalanceHistory200Response.js +112 -0
  74. package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +130 -0
  75. package/dist/model/GetBillingAccounts200Response.js +10 -9
  76. package/dist/model/GetDataUsage200Response.js +13 -12
  77. package/dist/model/GetDataUsage200ResponseDataInner.js +44 -43
  78. package/dist/model/GetDbNote200Response.js +13 -13
  79. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  80. package/dist/model/GetDeviceFleets200Response.js +12 -11
  81. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  82. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  83. package/dist/model/GetDeviceLatestEvents200Response.js +10 -9
  84. package/dist/model/GetDevicePlans200Response.js +10 -9
  85. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  86. package/dist/model/GetDevicePublicKeys200Response.js +17 -16
  87. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  88. package/dist/model/GetDeviceSessions200Response.js +17 -16
  89. package/dist/model/GetDevices200Response.js +17 -16
  90. package/dist/model/GetEvents200Response.js +21 -20
  91. package/dist/model/GetEventsByCursor200Response.js +24 -23
  92. package/dist/model/GetJobRuns200Response.js +132 -0
  93. package/dist/model/GetJobs200Response.js +132 -0
  94. package/dist/model/GetNotefile200Response.js +11 -11
  95. package/dist/model/GetProducts200Response.js +10 -9
  96. package/dist/model/GetProjectMembers200Response.js +12 -11
  97. package/dist/model/GetProjects200Response.js +10 -9
  98. package/dist/model/GetRouteLogsUsage200Response.js +15 -14
  99. package/dist/model/GetSessionsUsage200Response.js +16 -15
  100. package/dist/model/GetWebhooks200Response.js +10 -9
  101. package/dist/model/GoogleRoute.js +33 -33
  102. package/dist/model/HttpRoute.js +35 -35
  103. package/dist/model/Job.js +189 -0
  104. package/dist/model/JobRun.js +246 -0
  105. package/dist/model/Location.js +40 -40
  106. package/dist/model/Login200Response.js +7 -7
  107. package/dist/model/LoginRequest.js +12 -12
  108. package/dist/model/Monitor.js +106 -100
  109. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  110. package/dist/model/MqttRoute.js +68 -68
  111. package/dist/model/Note.js +31 -31
  112. package/dist/model/NoteInput.js +9 -9
  113. package/dist/model/Notefile.js +23 -22
  114. package/dist/model/NotefileSchema.js +19 -18
  115. package/dist/model/NotehubRoute.js +103 -103
  116. package/dist/model/NotehubRouteSummary.js +23 -23
  117. package/dist/model/OAuth2Error.js +20 -20
  118. package/dist/model/OAuth2TokenResponse.js +23 -23
  119. package/dist/model/PersonalAccessToken.js +34 -34
  120. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  121. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  122. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  123. package/dist/model/Product.js +26 -26
  124. package/dist/model/Project.js +34 -34
  125. package/dist/model/ProjectMember.js +22 -22
  126. package/dist/model/ProvisionDeviceRequest.js +18 -18
  127. package/dist/model/ProxyRoute.js +29 -29
  128. package/dist/model/QubitroRoute.js +33 -33
  129. package/dist/model/RadRoute.js +31 -31
  130. package/dist/model/Repository.js +22 -22
  131. package/dist/model/Role.js +9 -9
  132. package/dist/model/RouteLog.js +38 -38
  133. package/dist/model/RouteTransformSettings.js +18 -18
  134. package/dist/model/RunJob200Response.js +115 -0
  135. package/dist/model/S3ArchiveRoute.js +79 -79
  136. package/dist/model/SatelliteDataUsage.js +18 -18
  137. package/dist/model/SatellitePlan.js +29 -29
  138. package/dist/model/SchemaProperty.js +38 -36
  139. package/dist/model/SignalDevice200Response.js +5 -5
  140. package/dist/model/SimUsage.js +19 -19
  141. package/dist/model/SlackBearerNotification.js +25 -25
  142. package/dist/model/SlackRoute.js +48 -48
  143. package/dist/model/SlackWebHookNotification.js +20 -20
  144. package/dist/model/SnowflakeRoute.js +45 -45
  145. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  146. package/dist/model/ThingworxRoute.js +33 -33
  147. package/dist/model/TowerLocation.js +54 -54
  148. package/dist/model/TwilioRoute.js +43 -43
  149. package/dist/model/UpdateFleetRequest.js +33 -33
  150. package/dist/model/UploadMetadata.js +64 -64
  151. package/dist/model/UsageData.js +33 -33
  152. package/dist/model/UsageEventsData.js +61 -43
  153. package/dist/model/UsageEventsResponse.js +15 -14
  154. package/dist/model/UsageRouteLogsData.js +36 -27
  155. package/dist/model/UsageSessionsData.js +67 -36
  156. package/dist/model/UserDfuStateMachine.js +20 -20
  157. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  158. package/dist/model/UserFirmwareInfo.js +12 -12
  159. package/dist/model/WebhookSettings.js +15 -15
  160. package/package.json +3 -3
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
@@ -27,18 +27,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * Webhook service.
31
- * @module api/WebhookApi
32
- * @version 6.0.0
33
- */
30
+ * Webhook service.
31
+ * @module api/WebhookApi
32
+ * @version 6.1.0-beta.2
33
+ */
34
34
  var WebhookApi = exports["default"] = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new WebhookApi.
37
- * @alias module:api/WebhookApi
38
- * @class
39
- * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
- * default to {@link module:ApiClient#instance} if unspecified.
41
- */
36
+ * Constructs a new WebhookApi.
37
+ * @alias module:api/WebhookApi
38
+ * @class
39
+ * @param {module:ApiClient} [apiClient] Optional API client implementation to use,
40
+ * default to {@link module:ApiClient#instance} if unspecified.
41
+ */
42
42
  function WebhookApi(apiClient) {
43
43
  _classCallCheck(this, WebhookApi);
44
44
  this.apiClient = apiClient || _ApiClient["default"].instance;
@@ -46,9 +46,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
46
46
 
47
47
  /**
48
48
  * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
49
- * @param {String} projectOrProductUID
49
+ * @param {String} projectOrProductUID
50
50
  * @param {String} webhookUID Webhook UID
51
- * @param {module:model/WebhookSettings} webhookSettings
51
+ * @param {module:model/WebhookSettings} webhookSettings
52
52
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
53
53
  */
54
54
  return _createClass(WebhookApi, [{
@@ -68,24 +68,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
68
68
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling createWebhook");
69
69
  }
70
70
  var pathParams = {
71
- projectOrProductUID: projectOrProductUID,
72
- webhookUID: webhookUID
71
+ 'projectOrProductUID': projectOrProductUID,
72
+ 'webhookUID': webhookUID
73
73
  };
74
74
  var queryParams = {};
75
75
  var headerParams = {};
76
76
  var formParams = {};
77
- var authNames = ["personalAccessToken"];
78
- var contentTypes = ["application/json"];
79
- var accepts = ["application/json"];
77
+ var authNames = ['personalAccessToken'];
78
+ var contentTypes = ['application/json'];
79
+ var accepts = ['application/json'];
80
80
  var returnType = null;
81
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
81
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
82
82
  }
83
83
 
84
84
  /**
85
85
  * Creates a webhook for the specified product with the given name. The name | must be unique within the project.
86
- * @param {String} projectOrProductUID
86
+ * @param {String} projectOrProductUID
87
87
  * @param {String} webhookUID Webhook UID
88
- * @param {module:model/WebhookSettings} webhookSettings
88
+ * @param {module:model/WebhookSettings} webhookSettings
89
89
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
90
90
  */
91
91
  }, {
@@ -98,7 +98,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
98
98
 
99
99
  /**
100
100
  * Deletes the specified webhook
101
- * @param {String} projectOrProductUID
101
+ * @param {String} projectOrProductUID
102
102
  * @param {String} webhookUID Webhook UID
103
103
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
104
104
  */
@@ -115,22 +115,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
115
115
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling deleteWebhook");
116
116
  }
117
117
  var pathParams = {
118
- projectOrProductUID: projectOrProductUID,
119
- webhookUID: webhookUID
118
+ 'projectOrProductUID': projectOrProductUID,
119
+ 'webhookUID': webhookUID
120
120
  };
121
121
  var queryParams = {};
122
122
  var headerParams = {};
123
123
  var formParams = {};
124
- var authNames = ["personalAccessToken"];
124
+ var authNames = ['personalAccessToken'];
125
125
  var contentTypes = [];
126
- var accepts = ["application/json"];
126
+ var accepts = ['application/json'];
127
127
  var returnType = null;
128
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
128
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
129
129
  }
130
130
 
131
131
  /**
132
132
  * Deletes the specified webhook
133
- * @param {String} projectOrProductUID
133
+ * @param {String} projectOrProductUID
134
134
  * @param {String} webhookUID Webhook UID
135
135
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
136
136
  */
@@ -144,7 +144,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
144
144
 
145
145
  /**
146
146
  * Retrieves the configuration settings for the specified webhook
147
- * @param {String} projectOrProductUID
147
+ * @param {String} projectOrProductUID
148
148
  * @param {String} webhookUID Webhook UID
149
149
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
150
150
  */
@@ -161,22 +161,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
161
161
  throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhook");
162
162
  }
163
163
  var pathParams = {
164
- projectOrProductUID: projectOrProductUID,
165
- webhookUID: webhookUID
164
+ 'projectOrProductUID': projectOrProductUID,
165
+ 'webhookUID': webhookUID
166
166
  };
167
167
  var queryParams = {};
168
168
  var headerParams = {};
169
169
  var formParams = {};
170
- var authNames = ["personalAccessToken"];
170
+ var authNames = ['personalAccessToken'];
171
171
  var contentTypes = [];
172
- var accepts = ["application/json"];
172
+ var accepts = ['application/json'];
173
173
  var returnType = _WebhookSettings["default"];
174
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
174
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
175
175
  }
176
176
 
177
177
  /**
178
178
  * Retrieves the configuration settings for the specified webhook
179
- * @param {String} projectOrProductUID
179
+ * @param {String} projectOrProductUID
180
180
  * @param {String} webhookUID Webhook UID
181
181
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
182
182
  */
@@ -190,7 +190,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
190
190
 
191
191
  /**
192
192
  * Retrieves all webhooks for the specified project
193
- * @param {String} projectOrProductUID
193
+ * @param {String} projectOrProductUID
194
194
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
195
195
  */
196
196
  }, {
@@ -202,21 +202,21 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
202
202
  throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhooks");
203
203
  }
204
204
  var pathParams = {
205
- projectOrProductUID: projectOrProductUID
205
+ 'projectOrProductUID': projectOrProductUID
206
206
  };
207
207
  var queryParams = {};
208
208
  var headerParams = {};
209
209
  var formParams = {};
210
- var authNames = ["personalAccessToken"];
210
+ var authNames = ['personalAccessToken'];
211
211
  var contentTypes = [];
212
- var accepts = ["application/json"];
212
+ var accepts = ['application/json'];
213
213
  var returnType = _GetWebhooks200Response["default"];
214
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
214
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
215
215
  }
216
216
 
217
217
  /**
218
218
  * Retrieves all webhooks for the specified project
219
- * @param {String} projectOrProductUID
219
+ * @param {String} projectOrProductUID
220
220
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
221
221
  */
222
222
  }, {
@@ -229,9 +229,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
229
229
 
230
230
  /**
231
231
  * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
232
- * @param {String} projectOrProductUID
232
+ * @param {String} projectOrProductUID
233
233
  * @param {String} webhookUID Webhook UID
234
- * @param {module:model/WebhookSettings} webhookSettings
234
+ * @param {module:model/WebhookSettings} webhookSettings
235
235
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
236
236
  */
237
237
  }, {
@@ -251,24 +251,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
251
251
  throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhook");
252
252
  }
253
253
  var pathParams = {
254
- projectOrProductUID: projectOrProductUID,
255
- webhookUID: webhookUID
254
+ 'projectOrProductUID': projectOrProductUID,
255
+ 'webhookUID': webhookUID
256
256
  };
257
257
  var queryParams = {};
258
258
  var headerParams = {};
259
259
  var formParams = {};
260
- var authNames = ["personalAccessToken"];
261
- var contentTypes = ["application/json"];
262
- var accepts = ["application/json"];
260
+ var authNames = ['personalAccessToken'];
261
+ var contentTypes = ['application/json'];
262
+ var accepts = ['application/json'];
263
263
  var returnType = null;
264
- return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
264
+ return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
265
265
  }
266
266
 
267
267
  /**
268
268
  * Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
269
- * @param {String} projectOrProductUID
269
+ * @param {String} projectOrProductUID
270
270
  * @param {String} webhookUID Webhook UID
271
- * @param {module:model/WebhookSettings} webhookSettings
271
+ * @param {module:model/WebhookSettings} webhookSettings
272
272
  * @return {Promise} a {@link https://www.promisejs.org/|Promise}
273
273
  */
274
274
  }, {
package/dist/index.js CHANGED
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "AWSRoleConfig", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _AWSRoleConfig["default"];
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "AddDeviceToFleetsRequest", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -87,6 +93,12 @@ Object.defineProperty(exports, "Body", {
87
93
  return _Body["default"];
88
94
  }
89
95
  });
96
+ Object.defineProperty(exports, "CancelJobRun200Response", {
97
+ enumerable: true,
98
+ get: function get() {
99
+ return _CancelJobRun200Response["default"];
100
+ }
101
+ });
90
102
  Object.defineProperty(exports, "CellularPlan", {
91
103
  enumerable: true,
92
104
  get: function get() {
@@ -111,6 +123,12 @@ Object.defineProperty(exports, "CreateFleetRequest", {
111
123
  return _CreateFleetRequest["default"];
112
124
  }
113
125
  });
126
+ Object.defineProperty(exports, "CreateJob201Response", {
127
+ enumerable: true,
128
+ get: function get() {
129
+ return _CreateJob201Response["default"];
130
+ }
131
+ });
114
132
  Object.defineProperty(exports, "CreateMonitor", {
115
133
  enumerable: true,
116
134
  get: function get() {
@@ -183,6 +201,12 @@ Object.defineProperty(exports, "DeleteDeviceFromFleetsRequest", {
183
201
  return _DeleteDeviceFromFleetsRequest["default"];
184
202
  }
185
203
  });
204
+ Object.defineProperty(exports, "DeleteJob200Response", {
205
+ enumerable: true,
206
+ get: function get() {
207
+ return _DeleteJob200Response["default"];
208
+ }
209
+ });
186
210
  Object.defineProperty(exports, "DeleteNotefilesRequest", {
187
211
  enumerable: true,
188
212
  get: function get() {
@@ -351,6 +375,30 @@ Object.defineProperty(exports, "GetAlerts200Response", {
351
375
  return _GetAlerts200Response["default"];
352
376
  }
353
377
  });
378
+ Object.defineProperty(exports, "GetBillingAccount200Response", {
379
+ enumerable: true,
380
+ get: function get() {
381
+ return _GetBillingAccount200Response["default"];
382
+ }
383
+ });
384
+ Object.defineProperty(exports, "GetBillingAccount200ResponsePlan", {
385
+ enumerable: true,
386
+ get: function get() {
387
+ return _GetBillingAccount200ResponsePlan["default"];
388
+ }
389
+ });
390
+ Object.defineProperty(exports, "GetBillingAccountBalanceHistory200Response", {
391
+ enumerable: true,
392
+ get: function get() {
393
+ return _GetBillingAccountBalanceHistory200Response["default"];
394
+ }
395
+ });
396
+ Object.defineProperty(exports, "GetBillingAccountBalanceHistory200ResponseDataInner", {
397
+ enumerable: true,
398
+ get: function get() {
399
+ return _GetBillingAccountBalanceHistory200ResponseDataInner["default"];
400
+ }
401
+ });
354
402
  Object.defineProperty(exports, "GetBillingAccounts200Response", {
355
403
  enumerable: true,
356
404
  get: function get() {
@@ -453,6 +501,18 @@ Object.defineProperty(exports, "GetEventsByCursor200Response", {
453
501
  return _GetEventsByCursor200Response["default"];
454
502
  }
455
503
  });
504
+ Object.defineProperty(exports, "GetJobRuns200Response", {
505
+ enumerable: true,
506
+ get: function get() {
507
+ return _GetJobRuns200Response["default"];
508
+ }
509
+ });
510
+ Object.defineProperty(exports, "GetJobs200Response", {
511
+ enumerable: true,
512
+ get: function get() {
513
+ return _GetJobs200Response["default"];
514
+ }
515
+ });
456
516
  Object.defineProperty(exports, "GetNotefile200Response", {
457
517
  enumerable: true,
458
518
  get: function get() {
@@ -507,6 +567,24 @@ Object.defineProperty(exports, "HttpRoute", {
507
567
  return _HttpRoute["default"];
508
568
  }
509
569
  });
570
+ Object.defineProperty(exports, "Job", {
571
+ enumerable: true,
572
+ get: function get() {
573
+ return _Job["default"];
574
+ }
575
+ });
576
+ Object.defineProperty(exports, "JobRun", {
577
+ enumerable: true,
578
+ get: function get() {
579
+ return _JobRun["default"];
580
+ }
581
+ });
582
+ Object.defineProperty(exports, "JobsApi", {
583
+ enumerable: true,
584
+ get: function get() {
585
+ return _JobsApi["default"];
586
+ }
587
+ });
510
588
  Object.defineProperty(exports, "Location", {
511
589
  enumerable: true,
512
590
  get: function get() {
@@ -699,6 +777,12 @@ Object.defineProperty(exports, "RouteTransformSettings", {
699
777
  return _RouteTransformSettings["default"];
700
778
  }
701
779
  });
780
+ Object.defineProperty(exports, "RunJob200Response", {
781
+ enumerable: true,
782
+ get: function get() {
783
+ return _RunJob200Response["default"];
784
+ }
785
+ });
702
786
  Object.defineProperty(exports, "S3ArchiveRoute", {
703
787
  enumerable: true,
704
788
  get: function get() {
@@ -862,6 +946,7 @@ Object.defineProperty(exports, "WebhookSettings", {
862
946
  }
863
947
  });
864
948
  var _ApiClient = _interopRequireDefault(require("./ApiClient"));
949
+ var _AWSRoleConfig = _interopRequireDefault(require("./model/AWSRoleConfig"));
865
950
  var _AddDeviceToFleetsRequest = _interopRequireDefault(require("./model/AddDeviceToFleetsRequest"));
866
951
  var _Alert = _interopRequireDefault(require("./model/Alert"));
867
952
  var _AlertDataInner = _interopRequireDefault(require("./model/AlertDataInner"));
@@ -872,10 +957,12 @@ var _BillingAccount = _interopRequireDefault(require("./model/BillingAccount"));
872
957
  var _BillingAccountRole = _interopRequireDefault(require("./model/BillingAccountRole"));
873
958
  var _BlynkRoute = _interopRequireDefault(require("./model/BlynkRoute"));
874
959
  var _Body = _interopRequireDefault(require("./model/Body"));
960
+ var _CancelJobRun200Response = _interopRequireDefault(require("./model/CancelJobRun200Response"));
875
961
  var _CellularPlan = _interopRequireDefault(require("./model/CellularPlan"));
876
962
  var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectRequest"));
877
963
  var _Contact = _interopRequireDefault(require("./model/Contact"));
878
964
  var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
965
+ var _CreateJob201Response = _interopRequireDefault(require("./model/CreateJob201Response"));
879
966
  var _CreateMonitor = _interopRequireDefault(require("./model/CreateMonitor"));
880
967
  var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
881
968
  var _CreateProjectRequest = _interopRequireDefault(require("./model/CreateProjectRequest"));
@@ -888,6 +975,7 @@ var _DataSetField = _interopRequireDefault(require("./model/DataSetField"));
888
975
  var _DataUsage = _interopRequireDefault(require("./model/DataUsage"));
889
976
  var _DatacakeRoute = _interopRequireDefault(require("./model/DatacakeRoute"));
890
977
  var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("./model/DeleteDeviceFromFleetsRequest"));
978
+ var _DeleteJob200Response = _interopRequireDefault(require("./model/DeleteJob200Response"));
891
979
  var _DeleteNotefilesRequest = _interopRequireDefault(require("./model/DeleteNotefilesRequest"));
892
980
  var _Device = _interopRequireDefault(require("./model/Device"));
893
981
  var _DeviceDfuHistory = _interopRequireDefault(require("./model/DeviceDfuHistory"));
@@ -913,6 +1001,10 @@ var _FirmwareInfo = _interopRequireDefault(require("./model/FirmwareInfo"));
913
1001
  var _Fleet = _interopRequireDefault(require("./model/Fleet"));
914
1002
  var _FleetConnectivityAssurance = _interopRequireDefault(require("./model/FleetConnectivityAssurance"));
915
1003
  var _GetAlerts200Response = _interopRequireDefault(require("./model/GetAlerts200Response"));
1004
+ var _GetBillingAccount200Response = _interopRequireDefault(require("./model/GetBillingAccount200Response"));
1005
+ var _GetBillingAccount200ResponsePlan = _interopRequireDefault(require("./model/GetBillingAccount200ResponsePlan"));
1006
+ var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("./model/GetBillingAccountBalanceHistory200Response"));
1007
+ var _GetBillingAccountBalanceHistory200ResponseDataInner = _interopRequireDefault(require("./model/GetBillingAccountBalanceHistory200ResponseDataInner"));
916
1008
  var _GetBillingAccounts200Response = _interopRequireDefault(require("./model/GetBillingAccounts200Response"));
917
1009
  var _GetDataUsage200Response = _interopRequireDefault(require("./model/GetDataUsage200Response"));
918
1010
  var _GetDataUsage200ResponseDataInner = _interopRequireDefault(require("./model/GetDataUsage200ResponseDataInner"));
@@ -930,6 +1022,8 @@ var _GetDeviceSessions200Response = _interopRequireDefault(require("./model/GetD
930
1022
  var _GetDevices200Response = _interopRequireDefault(require("./model/GetDevices200Response"));
931
1023
  var _GetEvents200Response = _interopRequireDefault(require("./model/GetEvents200Response"));
932
1024
  var _GetEventsByCursor200Response = _interopRequireDefault(require("./model/GetEventsByCursor200Response"));
1025
+ var _GetJobRuns200Response = _interopRequireDefault(require("./model/GetJobRuns200Response"));
1026
+ var _GetJobs200Response = _interopRequireDefault(require("./model/GetJobs200Response"));
933
1027
  var _GetNotefile200Response = _interopRequireDefault(require("./model/GetNotefile200Response"));
934
1028
  var _GetProducts200Response = _interopRequireDefault(require("./model/GetProducts200Response"));
935
1029
  var _GetProjectMembers200Response = _interopRequireDefault(require("./model/GetProjectMembers200Response"));
@@ -939,6 +1033,8 @@ var _GetSessionsUsage200Response = _interopRequireDefault(require("./model/GetSe
939
1033
  var _GetWebhooks200Response = _interopRequireDefault(require("./model/GetWebhooks200Response"));
940
1034
  var _GoogleRoute = _interopRequireDefault(require("./model/GoogleRoute"));
941
1035
  var _HttpRoute = _interopRequireDefault(require("./model/HttpRoute"));
1036
+ var _Job = _interopRequireDefault(require("./model/Job"));
1037
+ var _JobRun = _interopRequireDefault(require("./model/JobRun"));
942
1038
  var _Location = _interopRequireDefault(require("./model/Location"));
943
1039
  var _Login200Response = _interopRequireDefault(require("./model/Login200Response"));
944
1040
  var _LoginRequest = _interopRequireDefault(require("./model/LoginRequest"));
@@ -968,6 +1064,7 @@ var _Repository = _interopRequireDefault(require("./model/Repository"));
968
1064
  var _Role = _interopRequireDefault(require("./model/Role"));
969
1065
  var _RouteLog = _interopRequireDefault(require("./model/RouteLog"));
970
1066
  var _RouteTransformSettings = _interopRequireDefault(require("./model/RouteTransformSettings"));
1067
+ var _RunJob200Response = _interopRequireDefault(require("./model/RunJob200Response"));
971
1068
  var _S3ArchiveRoute = _interopRequireDefault(require("./model/S3ArchiveRoute"));
972
1069
  var _SatelliteDataUsage = _interopRequireDefault(require("./model/SatelliteDataUsage"));
973
1070
  var _SatellitePlan = _interopRequireDefault(require("./model/SatellitePlan"));
@@ -999,6 +1096,7 @@ var _BillingAccountApi = _interopRequireDefault(require("./api/BillingAccountApi
999
1096
  var _DeviceApi = _interopRequireDefault(require("./api/DeviceApi"));
1000
1097
  var _EventApi = _interopRequireDefault(require("./api/EventApi"));
1001
1098
  var _ExternalDevicesApi = _interopRequireDefault(require("./api/ExternalDevicesApi"));
1099
+ var _JobsApi = _interopRequireDefault(require("./api/JobsApi"));
1002
1100
  var _MonitorApi = _interopRequireDefault(require("./api/MonitorApi"));
1003
1101
  var _ProjectApi = _interopRequireDefault(require("./api/ProjectApi"));
1004
1102
  var _RouteApi = _interopRequireDefault(require("./api/RouteApi"));
@@ -0,0 +1,131 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
+ 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
+ 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; } } }; }
11
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
14
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
15
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
16
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
+ * Notehub API
19
+ * The OpenAPI definition for the Notehub.io API.
20
+ *
21
+ * The version of the OpenAPI document: 1.2.0
22
+ * Contact: engineering@blues.io
23
+ *
24
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
25
+ * https://openapi-generator.tech
26
+ * Do not edit the class manually.
27
+ *
28
+ */
29
+ /**
30
+ * The AWSRoleConfig model module.
31
+ * @module model/AWSRoleConfig
32
+ * @version 6.1.0-beta.2
33
+ */
34
+ var AWSRoleConfig = /*#__PURE__*/function () {
35
+ /**
36
+ * Constructs a new <code>AWSRoleConfig</code>.
37
+ * Configuration needed to set up an IAM role trust policy for role-based authentication on AWS routes
38
+ * @alias module:model/AWSRoleConfig
39
+ * @param awsAccountId {String} The Blues AWS Account ID to trust in your IAM role's trust policy
40
+ * @param externalId {String} The External ID to use in your IAM role's trust policy condition
41
+ */
42
+ function AWSRoleConfig(awsAccountId, externalId) {
43
+ _classCallCheck(this, AWSRoleConfig);
44
+ AWSRoleConfig.initialize(this, awsAccountId, externalId);
45
+ }
46
+
47
+ /**
48
+ * Initializes the fields of this object.
49
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
+ * Only for internal use.
51
+ */
52
+ return _createClass(AWSRoleConfig, null, [{
53
+ key: "initialize",
54
+ value: function initialize(obj, awsAccountId, externalId) {
55
+ obj['aws_account_id'] = awsAccountId;
56
+ obj['external_id'] = externalId;
57
+ }
58
+
59
+ /**
60
+ * Constructs a <code>AWSRoleConfig</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
62
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
63
+ * @param {module:model/AWSRoleConfig} obj Optional instance to populate.
64
+ * @return {module:model/AWSRoleConfig} The populated <code>AWSRoleConfig</code> instance.
65
+ */
66
+ }, {
67
+ key: "constructFromObject",
68
+ value: function constructFromObject(data, obj) {
69
+ if (data) {
70
+ obj = obj || new AWSRoleConfig();
71
+ if (data.hasOwnProperty('aws_account_id')) {
72
+ obj['aws_account_id'] = _ApiClient["default"].convertToType(data['aws_account_id'], 'String');
73
+ }
74
+ if (data.hasOwnProperty('external_id')) {
75
+ obj['external_id'] = _ApiClient["default"].convertToType(data['external_id'], 'String');
76
+ }
77
+ } else if (data === null) {
78
+ return null;
79
+ }
80
+ return obj;
81
+ }
82
+
83
+ /**
84
+ * Validates the JSON data with respect to <code>AWSRoleConfig</code>.
85
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
86
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>AWSRoleConfig</code>.
87
+ */
88
+ }, {
89
+ key: "validateJSON",
90
+ value: function validateJSON(data) {
91
+ // check to make sure all required properties are present in the JSON string
92
+ var _iterator = _createForOfIteratorHelper(AWSRoleConfig.RequiredProperties),
93
+ _step;
94
+ try {
95
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
96
+ var property = _step.value;
97
+ if (!data[property]) {
98
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
99
+ }
100
+ }
101
+ // ensure the json data is a string
102
+ } catch (err) {
103
+ _iterator.e(err);
104
+ } finally {
105
+ _iterator.f();
106
+ }
107
+ if (data['aws_account_id'] && !(typeof data['aws_account_id'] === 'string' || data['aws_account_id'] instanceof String)) {
108
+ throw new Error("Expected the field `aws_account_id` to be a primitive type in the JSON string but got " + data['aws_account_id']);
109
+ }
110
+ // ensure the json data is a string
111
+ if (data['external_id'] && !(typeof data['external_id'] === 'string' || data['external_id'] instanceof String)) {
112
+ throw new Error("Expected the field `external_id` to be a primitive type in the JSON string but got " + data['external_id']);
113
+ }
114
+ return true;
115
+ }
116
+ }]);
117
+ }();
118
+ AWSRoleConfig.RequiredProperties = ["aws_account_id", "external_id"];
119
+
120
+ /**
121
+ * The Blues AWS Account ID to trust in your IAM role's trust policy
122
+ * @member {String} aws_account_id
123
+ */
124
+ AWSRoleConfig.prototype['aws_account_id'] = undefined;
125
+
126
+ /**
127
+ * The External ID to use in your IAM role's trust policy condition
128
+ * @member {String} external_id
129
+ */
130
+ AWSRoleConfig.prototype['external_id'] = undefined;
131
+ var _default = exports["default"] = AWSRoleConfig;
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
@@ -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.0.0
32
+ * @version 6.1.0-beta.2
33
33
  */
34
34
  var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -50,7 +50,7 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
50
50
  return _createClass(AddDeviceToFleetsRequest, null, [{
51
51
  key: "initialize",
52
52
  value: function initialize(obj, fleetUids) {
53
- obj["fleet_uids"] = fleetUids;
53
+ obj['fleet_uids'] = fleetUids;
54
54
  }
55
55
 
56
56
  /**
@@ -65,8 +65,8 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
65
65
  value: function constructFromObject(data, obj) {
66
66
  if (data) {
67
67
  obj = obj || new AddDeviceToFleetsRequest();
68
- if (data.hasOwnProperty("fleet_uids")) {
69
- obj["fleet_uids"] = _ApiClient["default"].convertToType(data["fleet_uids"], ["String"]);
68
+ if (data.hasOwnProperty('fleet_uids')) {
69
+ obj['fleet_uids'] = _ApiClient["default"].convertToType(data['fleet_uids'], ['String']);
70
70
  }
71
71
  } else if (data === null) {
72
72
  return null;
@@ -98,8 +98,8 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
98
98
  } finally {
99
99
  _iterator.f();
100
100
  }
101
- if (!Array.isArray(data["fleet_uids"])) {
102
- throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
101
+ if (!Array.isArray(data['fleet_uids'])) {
102
+ throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data['fleet_uids']);
103
103
  }
104
104
  return true;
105
105
  }
@@ -111,5 +111,5 @@ AddDeviceToFleetsRequest.RequiredProperties = ["fleet_uids"];
111
111
  * The fleetUIDs to add to the device.
112
112
  * @member {Array.<String>} fleet_uids
113
113
  */
114
- AddDeviceToFleetsRequest.prototype["fleet_uids"] = undefined;
114
+ AddDeviceToFleetsRequest.prototype['fleet_uids'] = undefined;
115
115
  var _default = exports["default"] = AddDeviceToFleetsRequest;