@blues-inc/notehub-js 6.7.0 → 7.0.0
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.
- package/README.md +154 -150
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +12 -7
- package/dist/api/AuthorizationApi.js +11 -50
- package/dist/api/DescriptionApi.js +49 -33
- package/dist/api/DeviceApi.js +277 -134
- package/dist/api/EventApi.js +67 -200
- package/dist/api/ExternalDevicesApi.js +19 -13
- package/dist/api/JobsApi.js +57 -39
- package/dist/api/MonitorApi.js +27 -17
- package/dist/api/OrganizationApi.js +25 -19
- package/dist/api/ProjectApi.js +259 -165
- package/dist/api/RouteApi.js +54 -39
- package/dist/api/SkillsApi.js +279 -0
- package/dist/api/UsageApi.js +73 -63
- package/dist/api/WebhookApi.js +67 -45
- package/dist/index.js +91 -63
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +3 -3
- package/dist/model/Alert.js +14 -9
- package/dist/model/AlertDataInner.js +9 -4
- package/dist/model/AlertNotificationsInner.js +14 -4
- package/dist/model/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +5 -5
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +2 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +3 -2
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +4 -3
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +37 -25
- package/dist/model/CreateProductRequest.js +7 -6
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +5 -5
- package/dist/model/CreateUpdateRepository.js +3 -1
- package/dist/model/CreatedRepository.js +5 -5
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +4 -4
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +3 -3
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +2 -2
- package/dist/model/DescriptionRecord.js +6 -6
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +36 -8
- package/dist/model/DeviceDfuHistory.js +12 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +14 -1
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +12 -3
- package/dist/model/DeviceDfuStatusPage.js +14 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +5 -5
- package/dist/model/DeviceTowerInfo.js +6 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +29 -6
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +16 -7
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +6 -6
- package/dist/model/Fleet.js +11 -10
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +14 -1
- package/dist/model/GetApiUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200Response.js +2 -2
- package/dist/model/GetDataUsage200ResponseDataInner.js +3 -3
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +2 -2
- package/dist/model/GetDevicePlans200Response.js +2 -1
- package/dist/model/GetDevicePublicKey200Response.js +5 -3
- package/dist/model/GetDevicePublicKeys200Response.js +14 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -1
- package/dist/model/GetDeviceSessions200Response.js +14 -1
- package/dist/model/GetDevices200Response.js +14 -1
- package/dist/model/GetEvents200Response.js +14 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/{GetBillingAccount200Response.js → GetOrganization200Response.js} +28 -28
- package/dist/model/{GetBillingAccount200ResponsePlan.js → GetOrganization200ResponsePlan.js} +24 -24
- package/dist/model/{GetBillingAccountBalanceHistory200Response.js → GetOrganizationBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetBillingAccountBalanceHistory200ResponseDataInner.js → GetOrganizationBalanceHistory200ResponseDataInner.js} +22 -22
- package/dist/model/GetOrganizations200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +2 -2
- package/dist/model/GetSessionsUsage200Response.js +3 -3
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +7 -4
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +2 -2
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +3 -3
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +13 -7
- package/dist/model/Monitor.js +18 -12
- package/dist/model/MonitorAlertRoutesInner.js +60 -14
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +2 -2
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +2 -1
- package/dist/model/NotefileSchema.js +5 -3
- package/dist/model/NotehubRoute.js +7 -3
- package/dist/model/NotehubRouteSummary.js +6 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +5 -3
- package/dist/model/Product.js +8 -4
- package/dist/model/Project.js +7 -4
- package/dist/model/ProjectMember.js +5 -4
- package/dist/model/ProjectSecret.js +7 -7
- package/dist/model/ProvisionDeviceRequest.js +5 -5
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +3 -3
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/{Login200Response.js → RepositoryRecord.js} +52 -24
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +9 -9
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +6 -4
- package/dist/model/SignalDevice200Response.js +2 -2
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +207 -0
- package/dist/model/{GetBillingAccounts200Response.js → SkillLinks.js} +59 -40
- package/dist/model/{GetEventsByCursor200Response.js → SkillSet.js} +75 -51
- package/dist/model/SkillSummary.js +205 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/SkillWriteResult.js +153 -0
- package/dist/model/SlackBearerNotification.js +31 -8
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +31 -8
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioNotification.js +167 -0
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +7 -6
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +3 -3
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +2 -2
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +4 -4
- package/package.json +1 -1
- package/dist/api/BillingAccountApi.js +0 -167
- package/dist/model/LoginRequest.js +0 -103
package/dist/api/JobsApi.js
CHANGED
|
@@ -36,7 +36,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
36
36
|
/**
|
|
37
37
|
* Jobs service.
|
|
38
38
|
* @module api/JobsApi
|
|
39
|
-
* @version
|
|
39
|
+
* @version 7.0.0
|
|
40
40
|
*/
|
|
41
41
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
|
@@ -52,9 +52,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
|
-
* Cancel a
|
|
55
|
+
* Cancel a job run
|
|
56
|
+
* Ask a running job to stop. `successful` is false if the run couldn't be cancelled. Requires the Owner or Developer role. Returns 404 if the run doesn't exist.
|
|
56
57
|
* @param {String} projectOrProductUID
|
|
57
|
-
* @param {String} reportUID
|
|
58
|
+
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
58
59
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CancelJobRun200Response} and HTTP response
|
|
59
60
|
*/
|
|
60
61
|
return _createClass(JobsApi, [{
|
|
@@ -84,9 +85,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
/**
|
|
87
|
-
* Cancel a
|
|
88
|
+
* Cancel a job run
|
|
89
|
+
* Ask a running job to stop. `successful` is false if the run couldn't be cancelled. Requires the Owner or Developer role. Returns 404 if the run doesn't exist.
|
|
88
90
|
* @param {String} projectOrProductUID
|
|
89
|
-
* @param {String} reportUID
|
|
91
|
+
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
90
92
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CancelJobRun200Response}
|
|
91
93
|
*/
|
|
92
94
|
}, {
|
|
@@ -98,9 +100,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
/**
|
|
101
|
-
* Create a
|
|
103
|
+
* Create a batch job
|
|
104
|
+
* Create a batch job from a definition that selects devices and the changes to make to them. It doesn't run until `RunJob`. Each call creates a new job with its own UID; names needn't be unique. Requires the Owner or Developer role. Returns 400 without a `name`; an invalid definition returns 500.
|
|
102
105
|
* @param {String} projectOrProductUID
|
|
103
|
-
* @param {String} name
|
|
106
|
+
* @param {String} name Job name, shown in lists. It doesn't have to be unique.
|
|
104
107
|
* @param {module:model/JobDefinition} jobDefinition The batch job definition
|
|
105
108
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateJob201Response} and HTTP response
|
|
106
109
|
*/
|
|
@@ -136,9 +139,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
139
|
}
|
|
137
140
|
|
|
138
141
|
/**
|
|
139
|
-
* Create a
|
|
142
|
+
* Create a batch job
|
|
143
|
+
* Create a batch job from a definition that selects devices and the changes to make to them. It doesn't run until `RunJob`. Each call creates a new job with its own UID; names needn't be unique. Requires the Owner or Developer role. Returns 400 without a `name`; an invalid definition returns 500.
|
|
140
144
|
* @param {String} projectOrProductUID
|
|
141
|
-
* @param {String} name
|
|
145
|
+
* @param {String} name Job name, shown in lists. It doesn't have to be unique.
|
|
142
146
|
* @param {module:model/JobDefinition} jobDefinition The batch job definition
|
|
143
147
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateJob201Response}
|
|
144
148
|
*/
|
|
@@ -152,8 +156,9 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
152
156
|
|
|
153
157
|
/**
|
|
154
158
|
* Delete a batch job
|
|
159
|
+
* Delete a batch job. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
155
160
|
* @param {String} projectOrProductUID
|
|
156
|
-
* @param {String} jobUID
|
|
161
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
157
162
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteJob200Response} and HTTP response
|
|
158
163
|
*/
|
|
159
164
|
}, {
|
|
@@ -184,8 +189,9 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
184
189
|
|
|
185
190
|
/**
|
|
186
191
|
* Delete a batch job
|
|
192
|
+
* Delete a batch job. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
187
193
|
* @param {String} projectOrProductUID
|
|
188
|
-
* @param {String} jobUID
|
|
194
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
189
195
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteJob200Response}
|
|
190
196
|
*/
|
|
191
197
|
}, {
|
|
@@ -197,9 +203,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
197
203
|
}
|
|
198
204
|
|
|
199
205
|
/**
|
|
200
|
-
* Delete
|
|
206
|
+
* Delete a job run
|
|
207
|
+
* Delete a job run and its results. Deleting a run that doesn't exist also succeeds. Requires the Owner or Developer role.
|
|
201
208
|
* @param {String} projectOrProductUID
|
|
202
|
-
* @param {String} reportUID
|
|
209
|
+
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
203
210
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
204
211
|
*/
|
|
205
212
|
}, {
|
|
@@ -229,9 +236,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
229
236
|
}
|
|
230
237
|
|
|
231
238
|
/**
|
|
232
|
-
* Delete
|
|
239
|
+
* Delete a job run
|
|
240
|
+
* Delete a job run and its results. Deleting a run that doesn't exist also succeeds. Requires the Owner or Developer role.
|
|
233
241
|
* @param {String} projectOrProductUID
|
|
234
|
-
* @param {String} reportUID
|
|
242
|
+
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
235
243
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
236
244
|
*/
|
|
237
245
|
}, {
|
|
@@ -243,9 +251,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
243
251
|
}
|
|
244
252
|
|
|
245
253
|
/**
|
|
246
|
-
* Get a
|
|
254
|
+
* Get a batch job
|
|
255
|
+
* Get one batch job's definition and its latest run's status. Returns 404 if the job doesn't exist.
|
|
247
256
|
* @param {String} projectOrProductUID
|
|
248
|
-
* @param {String} jobUID
|
|
257
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
249
258
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobDetail} and HTTP response
|
|
250
259
|
*/
|
|
251
260
|
}, {
|
|
@@ -275,9 +284,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
275
284
|
}
|
|
276
285
|
|
|
277
286
|
/**
|
|
278
|
-
* Get a
|
|
287
|
+
* Get a batch job
|
|
288
|
+
* Get one batch job's definition and its latest run's status. Returns 404 if the job doesn't exist.
|
|
279
289
|
* @param {String} projectOrProductUID
|
|
280
|
-
* @param {String} jobUID
|
|
290
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
281
291
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobDetail}
|
|
282
292
|
*/
|
|
283
293
|
}, {
|
|
@@ -289,9 +299,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
289
299
|
}
|
|
290
300
|
|
|
291
301
|
/**
|
|
292
|
-
* Get
|
|
302
|
+
* Get a job run
|
|
303
|
+
* Get a job run's status and, with `view=detail`, its full results. Returns 404 if the run doesn't exist.
|
|
293
304
|
* @param {String} projectOrProductUID
|
|
294
|
-
* @param {String} reportUID
|
|
305
|
+
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
295
306
|
* @param {Object} opts Optional parameters
|
|
296
307
|
* @param {module:model/String} opts.view Controls the level of detail returned: 'summary' returns metadata only, 'detail' returns the full result payload (default to 'summary')
|
|
297
308
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JobRun} and HTTP response
|
|
@@ -326,9 +337,10 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
326
337
|
}
|
|
327
338
|
|
|
328
339
|
/**
|
|
329
|
-
* Get
|
|
340
|
+
* Get a job run
|
|
341
|
+
* Get a job run's status and, with `view=detail`, its full results. Returns 404 if the run doesn't exist.
|
|
330
342
|
* @param {String} projectOrProductUID
|
|
331
|
-
* @param {String} reportUID
|
|
343
|
+
* @param {String} reportUID Job run UID, as returned by `RunJob`.
|
|
332
344
|
* @param {Object} opts Optional parameters
|
|
333
345
|
* @param {module:model/String} opts.view Controls the level of detail returned: 'summary' returns metadata only, 'detail' returns the full result payload (default to 'summary')
|
|
334
346
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JobRun}
|
|
@@ -342,12 +354,13 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
342
354
|
}
|
|
343
355
|
|
|
344
356
|
/**
|
|
345
|
-
* List
|
|
357
|
+
* List a job's runs
|
|
358
|
+
* List a batch job's runs, optionally filtered by status or dry-run flag. Returns 404 if the job doesn't exist.
|
|
346
359
|
* @param {String} projectOrProductUID
|
|
347
|
-
* @param {String} jobUID
|
|
360
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
348
361
|
* @param {Object} opts Optional parameters
|
|
349
|
-
* @param {String} opts.status
|
|
350
|
-
* @param {Boolean} opts.dryRun
|
|
362
|
+
* @param {String} opts.status Return only runs with this status.
|
|
363
|
+
* @param {Boolean} opts.dryRun If set, return only dry runs (`true`) or only real runs (`false`).
|
|
351
364
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobRuns200Response} and HTTP response
|
|
352
365
|
*/
|
|
353
366
|
}, {
|
|
@@ -381,12 +394,13 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
381
394
|
}
|
|
382
395
|
|
|
383
396
|
/**
|
|
384
|
-
* List
|
|
397
|
+
* List a job's runs
|
|
398
|
+
* List a batch job's runs, optionally filtered by status or dry-run flag. Returns 404 if the job doesn't exist.
|
|
385
399
|
* @param {String} projectOrProductUID
|
|
386
|
-
* @param {String} jobUID
|
|
400
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
387
401
|
* @param {Object} opts Optional parameters
|
|
388
|
-
* @param {String} opts.status
|
|
389
|
-
* @param {Boolean} opts.dryRun
|
|
402
|
+
* @param {String} opts.status Return only runs with this status.
|
|
403
|
+
* @param {Boolean} opts.dryRun If set, return only dry runs (`true`) or only real runs (`false`).
|
|
390
404
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobRuns200Response}
|
|
391
405
|
*/
|
|
392
406
|
}, {
|
|
@@ -398,7 +412,8 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
398
412
|
}
|
|
399
413
|
|
|
400
414
|
/**
|
|
401
|
-
* List
|
|
415
|
+
* List batch jobs
|
|
416
|
+
* List a project's batch jobs with their latest run's status. A batch job applies changes, such as environment variables, to a selected set of devices.
|
|
402
417
|
* @param {String} projectOrProductUID
|
|
403
418
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetJobs200Response} and HTTP response
|
|
404
419
|
*/
|
|
@@ -424,7 +439,8 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
424
439
|
}
|
|
425
440
|
|
|
426
441
|
/**
|
|
427
|
-
* List
|
|
442
|
+
* List batch jobs
|
|
443
|
+
* List a project's batch jobs with their latest run's status. A batch job applies changes, such as environment variables, to a selected set of devices.
|
|
428
444
|
* @param {String} projectOrProductUID
|
|
429
445
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetJobs200Response}
|
|
430
446
|
*/
|
|
@@ -437,11 +453,12 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
437
453
|
}
|
|
438
454
|
|
|
439
455
|
/**
|
|
440
|
-
*
|
|
456
|
+
* Run a batch job
|
|
457
|
+
* Start a run of a batch job and return its run UID. The run continues in the background, and `GetJobRun` shows its progress. With `dry_run=true`, it reports what would change without changing anything. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
441
458
|
* @param {String} projectOrProductUID
|
|
442
|
-
* @param {String} jobUID
|
|
459
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
443
460
|
* @param {Object} opts Optional parameters
|
|
444
|
-
* @param {Boolean} opts.dryRun
|
|
461
|
+
* @param {Boolean} opts.dryRun If true, report what the job would change without changing anything. (default to false)
|
|
445
462
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RunJob200Response} and HTTP response
|
|
446
463
|
*/
|
|
447
464
|
}, {
|
|
@@ -474,11 +491,12 @@ var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
474
491
|
}
|
|
475
492
|
|
|
476
493
|
/**
|
|
477
|
-
*
|
|
494
|
+
* Run a batch job
|
|
495
|
+
* Start a run of a batch job and return its run UID. The run continues in the background, and `GetJobRun` shows its progress. With `dry_run=true`, it reports what would change without changing anything. Requires the Owner or Developer role. Returns 404 if the job doesn't exist.
|
|
478
496
|
* @param {String} projectOrProductUID
|
|
479
|
-
* @param {String} jobUID
|
|
497
|
+
* @param {String} jobUID Batch job UID, as returned by `CreateJob`.
|
|
480
498
|
* @param {Object} opts Optional parameters
|
|
481
|
-
* @param {Boolean} opts.dryRun
|
|
499
|
+
* @param {Boolean} opts.dryRun If true, report what the job would change without changing anything. (default to false)
|
|
482
500
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RunJob200Response}
|
|
483
501
|
*/
|
|
484
502
|
}, {
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -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
|
|
32
|
+
* @version 7.0.0
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -45,7 +45,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* Create a
|
|
48
|
+
* Create a monitor
|
|
49
|
+
* Create a monitor that raises an alert and notifies email, Slack or Twilio when its condition holds. It can watch an event value (`event`, the default), devices going quiet (`heartbeat`), or data usage (`usage`). Requires the Owner or Developer role. Returns 403 if the project's plan doesn't allow the monitor, and 400 for invalid settings.
|
|
49
50
|
* @param {String} projectOrProductUID
|
|
50
51
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
51
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
@@ -76,7 +77,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
/**
|
|
79
|
-
* Create a
|
|
80
|
+
* Create a monitor
|
|
81
|
+
* Create a monitor that raises an alert and notifies email, Slack or Twilio when its condition holds. It can watch an event value (`event`, the default), devices going quiet (`heartbeat`), or data usage (`usage`). Requires the Owner or Developer role. Returns 403 if the project's plan doesn't allow the monitor, and 400 for invalid settings.
|
|
80
82
|
* @param {String} projectOrProductUID
|
|
81
83
|
* @param {module:model/CreateMonitor} createMonitor Body or payload of monitor to be created
|
|
82
84
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
@@ -90,9 +92,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
/**
|
|
93
|
-
* Delete
|
|
95
|
+
* Delete a monitor
|
|
96
|
+
* Delete a monitor so it stops raising alerts. Returns an empty monitor object. To pause it instead, set `disabled` with `UpdateMonitor`. Requires the Owner or Developer role. Returns 404 if the monitor never existed; deleting it again succeeds.
|
|
94
97
|
* @param {String} projectOrProductUID
|
|
95
|
-
* @param {String} monitorUID
|
|
98
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
96
99
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
97
100
|
*/
|
|
98
101
|
}, {
|
|
@@ -122,9 +125,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
122
125
|
}
|
|
123
126
|
|
|
124
127
|
/**
|
|
125
|
-
* Delete
|
|
128
|
+
* Delete a monitor
|
|
129
|
+
* Delete a monitor so it stops raising alerts. Returns an empty monitor object. To pause it instead, set `disabled` with `UpdateMonitor`. Requires the Owner or Developer role. Returns 404 if the monitor never existed; deleting it again succeeds.
|
|
126
130
|
* @param {String} projectOrProductUID
|
|
127
|
-
* @param {String} monitorUID
|
|
131
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
128
132
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
129
133
|
*/
|
|
130
134
|
}, {
|
|
@@ -136,9 +140,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
140
|
}
|
|
137
141
|
|
|
138
142
|
/**
|
|
139
|
-
* Get
|
|
143
|
+
* Get a monitor
|
|
144
|
+
* Get one monitor's settings and whether it's in alert. Slack and Twilio credentials in `alert_routes` come back as `(omitted)`. Returns 404 if the monitor never existed; a deleted monitor is still returned.
|
|
140
145
|
* @param {String} projectOrProductUID
|
|
141
|
-
* @param {String} monitorUID
|
|
146
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
142
147
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
143
148
|
*/
|
|
144
149
|
}, {
|
|
@@ -168,9 +173,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
168
173
|
}
|
|
169
174
|
|
|
170
175
|
/**
|
|
171
|
-
* Get
|
|
176
|
+
* Get a monitor
|
|
177
|
+
* Get one monitor's settings and whether it's in alert. Slack and Twilio credentials in `alert_routes` come back as `(omitted)`. Returns 404 if the monitor never existed; a deleted monitor is still returned.
|
|
172
178
|
* @param {String} projectOrProductUID
|
|
173
|
-
* @param {String} monitorUID
|
|
179
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
174
180
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
175
181
|
*/
|
|
176
182
|
}, {
|
|
@@ -182,7 +188,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
182
188
|
}
|
|
183
189
|
|
|
184
190
|
/**
|
|
185
|
-
*
|
|
191
|
+
* List monitors
|
|
192
|
+
* List a project's monitors with their settings and whether each is in alert. For the alerts they've raised, use `GetAlerts`.
|
|
186
193
|
* @param {String} projectOrProductUID
|
|
187
194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/Monitor>} and HTTP response
|
|
188
195
|
*/
|
|
@@ -208,7 +215,8 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
208
215
|
}
|
|
209
216
|
|
|
210
217
|
/**
|
|
211
|
-
*
|
|
218
|
+
* List monitors
|
|
219
|
+
* List a project's monitors with their settings and whether each is in alert. For the alerts they've raised, use `GetAlerts`.
|
|
212
220
|
* @param {String} projectOrProductUID
|
|
213
221
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/Monitor>}
|
|
214
222
|
*/
|
|
@@ -221,9 +229,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
221
229
|
}
|
|
222
230
|
|
|
223
231
|
/**
|
|
224
|
-
* Update
|
|
232
|
+
* Update a monitor
|
|
233
|
+
* Replace a monitor's settings with the whole monitor, as `GetMonitor` returns it. Omitted fields are cleared or reset, except `source_type`, `fleet_filter`, `notefile_filter`, `condition_type`, `aggregate_window` and `alert_routes`. Slack and Twilio credentials left as `(omitted)` are kept. Requires the Owner or Developer role. Returns 403 if the plan doesn't allow a new `source_type`.
|
|
225
234
|
* @param {String} projectOrProductUID
|
|
226
|
-
* @param {String} monitorUID
|
|
235
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
227
236
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
228
237
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Monitor} and HTTP response
|
|
229
238
|
*/
|
|
@@ -258,9 +267,10 @@ var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
258
267
|
}
|
|
259
268
|
|
|
260
269
|
/**
|
|
261
|
-
* Update
|
|
270
|
+
* Update a monitor
|
|
271
|
+
* Replace a monitor's settings with the whole monitor, as `GetMonitor` returns it. Omitted fields are cleared or reset, except `source_type`, `fleet_filter`, `notefile_filter`, `condition_type`, `aggregate_window` and `alert_routes`. Slack and Twilio credentials left as `(omitted)` are kept. Requires the Owner or Developer role. Returns 403 if the plan doesn't allow a new `source_type`.
|
|
262
272
|
* @param {String} projectOrProductUID
|
|
263
|
-
* @param {String} monitorUID
|
|
273
|
+
* @param {String} monitorUID MonitorUID, `monitor:` followed by a UUID. List with `GetMonitors`.
|
|
264
274
|
* @param {module:model/Monitor} monitor Body or payload of monitor to be created
|
|
265
275
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Monitor}
|
|
266
276
|
*/
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _GetOrganization200Response = _interopRequireDefault(require("../model/GetOrganization200Response"));
|
|
10
|
+
var _GetOrganizationBalanceHistory200Response = _interopRequireDefault(require("../model/GetOrganizationBalanceHistory200Response"));
|
|
11
11
|
var _GetOrganizations200Response = _interopRequireDefault(require("../model/GetOrganizations200Response"));
|
|
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); }
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Organization service.
|
|
32
32
|
* @module api/OrganizationApi
|
|
33
|
-
* @version
|
|
33
|
+
* @version 7.0.0
|
|
34
34
|
*/
|
|
35
35
|
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,9 +46,10 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Get
|
|
50
|
-
*
|
|
51
|
-
* @
|
|
49
|
+
* Get an organization
|
|
50
|
+
* Get an organization's name, owner, contact email and current plan. The plan has its type, event capacity, billing period and remaining balance. For the daily history, use `GetOrganizationBalanceHistory`. Requires the `org_admin`, `billing_manager` or `org_support` role in the organization. Returns 403 if your membership is deactivated.
|
|
51
|
+
* @param {String} organizationUID Organization UID. List with `GetOrganizations`.
|
|
52
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganization200Response} and HTTP response
|
|
52
53
|
*/
|
|
53
54
|
return _createClass(OrganizationApi, [{
|
|
54
55
|
key: "getOrganizationWithHttpInfo",
|
|
@@ -67,14 +68,15 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
68
|
var authNames = ["personalAccessToken"];
|
|
68
69
|
var contentTypes = [];
|
|
69
70
|
var accepts = ["application/json"];
|
|
70
|
-
var returnType =
|
|
71
|
+
var returnType = _GetOrganization200Response["default"];
|
|
71
72
|
return this.apiClient.callApi("/v1/organizations/{organizationUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
|
-
* Get
|
|
76
|
-
*
|
|
77
|
-
* @
|
|
76
|
+
* Get an organization
|
|
77
|
+
* Get an organization's name, owner, contact email and current plan. The plan has its type, event capacity, billing period and remaining balance. For the daily history, use `GetOrganizationBalanceHistory`. Requires the `org_admin`, `billing_manager` or `org_support` role in the organization. Returns 403 if your membership is deactivated.
|
|
78
|
+
* @param {String} organizationUID Organization UID. List with `GetOrganizations`.
|
|
79
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganization200Response}
|
|
78
80
|
*/
|
|
79
81
|
}, {
|
|
80
82
|
key: "getOrganization",
|
|
@@ -85,12 +87,13 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
/**
|
|
88
|
-
* Get
|
|
89
|
-
*
|
|
90
|
+
* Get an organization's daily balance
|
|
91
|
+
* Get an organization's events used and remaining event capacity for each day. The range is `startDate` to `endDate`, which default to the start of the billing period and today. Requires the `org_admin`, `billing_manager` or `org_support` role in the organization. Returns 400 if `startDate` is after `endDate`.
|
|
92
|
+
* @param {String} organizationUID Organization UID. List with `GetOrganizations`.
|
|
90
93
|
* @param {Object} opts Optional parameters
|
|
91
94
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
92
95
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
93
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
96
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizationBalanceHistory200Response} and HTTP response
|
|
94
97
|
*/
|
|
95
98
|
}, {
|
|
96
99
|
key: "getOrganizationBalanceHistoryWithHttpInfo",
|
|
@@ -113,17 +116,18 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
116
|
var authNames = ["personalAccessToken"];
|
|
114
117
|
var contentTypes = [];
|
|
115
118
|
var accepts = ["application/json"];
|
|
116
|
-
var returnType =
|
|
119
|
+
var returnType = _GetOrganizationBalanceHistory200Response["default"];
|
|
117
120
|
return this.apiClient.callApi("/v1/organizations/{organizationUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
/**
|
|
121
|
-
* Get
|
|
122
|
-
*
|
|
124
|
+
* Get an organization's daily balance
|
|
125
|
+
* Get an organization's events used and remaining event capacity for each day. The range is `startDate` to `endDate`, which default to the start of the billing period and today. Requires the `org_admin`, `billing_manager` or `org_support` role in the organization. Returns 400 if `startDate` is after `endDate`.
|
|
126
|
+
* @param {String} organizationUID Organization UID. List with `GetOrganizations`.
|
|
123
127
|
* @param {Object} opts Optional parameters
|
|
124
128
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
125
129
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
126
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
130
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizationBalanceHistory200Response}
|
|
127
131
|
*/
|
|
128
132
|
}, {
|
|
129
133
|
key: "getOrganizationBalanceHistory",
|
|
@@ -134,7 +138,8 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
/**
|
|
137
|
-
*
|
|
141
|
+
* List your organizations
|
|
142
|
+
* List the organizations you belong to, with your role in each. A scoped token gets an empty list. Returns 401 if your email address isn't verified.
|
|
138
143
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizations200Response} and HTTP response
|
|
139
144
|
*/
|
|
140
145
|
}, {
|
|
@@ -153,7 +158,8 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
153
158
|
}
|
|
154
159
|
|
|
155
160
|
/**
|
|
156
|
-
*
|
|
161
|
+
* List your organizations
|
|
162
|
+
* List the organizations you belong to, with your role in each. A scoped token gets an empty list. Returns 401 if your email address isn't verified.
|
|
157
163
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizations200Response}
|
|
158
164
|
*/
|
|
159
165
|
}, {
|