@blues-inc/notehub-js 6.7.0-beta.46 → 6.7.0-beta.48
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 +25 -25
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +109 -117
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/SkillsApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- 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 +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +7 -7
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +6 -7
- package/dist/model/CreateProjectRequest.js +5 -5
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +1 -1
- 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 +1 -1
- package/dist/model/DataSetField.js +1 -1
- 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 +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +2 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +2 -1
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSensor.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetApiUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- 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 +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -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/GetOrganization200Response.js +1 -1
- package/dist/model/GetOrganization200ResponsePlan.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200Response.js +1 -1
- package/dist/model/GetOrganizationBalanceHistory200ResponseDataInner.js +1 -1
- 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 +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +1 -1
- 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 +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +3 -5
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/Organization.js +1 -1
- package/dist/model/Product.js +4 -8
- package/dist/model/Project.js +4 -7
- package/dist/model/ProjectMember.js +4 -5
- package/dist/model/ProjectSecret.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- 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 +1 -1
- package/dist/model/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- 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 +4 -6
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Skill.js +1 -1
- package/dist/model/SkillLinks.js +1 -1
- package/dist/model/SkillSet.js +1 -1
- package/dist/model/SkillSummary.js +1 -1
- package/dist/model/SkillWrite.js +1 -1
- package/dist/model/SkillWriteResult.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- 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/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +4 -4
- package/dist/model/UpdateProjectSecretRequest.js +1 -1
- 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 +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- 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 +1 -1
- package/package.json +1 -1
package/dist/api/ProjectApi.js
CHANGED
|
@@ -56,7 +56,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
56
56
|
/**
|
|
57
57
|
* Project service.
|
|
58
58
|
* @module api/ProjectApi
|
|
59
|
-
* @version 6.7.0-beta.
|
|
59
|
+
* @version 6.7.0-beta.48
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
|
@@ -124,10 +124,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* Clone a
|
|
128
|
-
* Create a new project with copies of this project's settings, environment variables, transformation, fleets and routes. Devices, products and members are not copied, and copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
|
|
127
|
+
* Clone a Project
|
|
129
128
|
* @param {String} projectOrProductUID
|
|
130
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
129
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
131
130
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
132
131
|
*/
|
|
133
132
|
}, {
|
|
@@ -156,10 +155,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
156
155
|
}
|
|
157
156
|
|
|
158
157
|
/**
|
|
159
|
-
* Clone a
|
|
160
|
-
* Create a new project with copies of this project's settings, environment variables, transformation, fleets and routes. Devices, products and members are not copied, and copied fleets get new FleetUIDs. Requires the Owner role (400 otherwise), a verified email address (401 otherwise), and permission to create projects in the target organization (403 otherwise).
|
|
158
|
+
* Clone a Project
|
|
161
159
|
* @param {String} projectOrProductUID
|
|
162
|
-
* @param {module:model/CloneProjectRequest} cloneProjectRequest
|
|
160
|
+
* @param {module:model/CloneProjectRequest} cloneProjectRequest Project to be cloned
|
|
163
161
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
164
162
|
*/
|
|
165
163
|
}, {
|
|
@@ -216,10 +214,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
216
214
|
}
|
|
217
215
|
|
|
218
216
|
/**
|
|
219
|
-
* Create a
|
|
220
|
-
* Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
|
|
217
|
+
* Create Product within a Project
|
|
221
218
|
* @param {String} projectOrProductUID
|
|
222
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
219
|
+
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
223
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Product} and HTTP response
|
|
224
221
|
*/
|
|
225
222
|
}, {
|
|
@@ -248,10 +245,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
248
245
|
}
|
|
249
246
|
|
|
250
247
|
/**
|
|
251
|
-
* Create a
|
|
252
|
-
* Add a ProductUID to the project, formed from the caller's reversed email and `product_uid`. For `jane@acme.com` and `sensors` it is `com.acme.jane:sensors`. Requires the Owner or Developer role and a verified email address (400 otherwise). Returns 404 if an `auto_provision_fleets` entry isn't a fleet in this project, and 500 if `product_uid` is invalid or already taken.
|
|
248
|
+
* Create Product within a Project
|
|
253
249
|
* @param {String} projectOrProductUID
|
|
254
|
-
* @param {module:model/CreateProductRequest} createProductRequest
|
|
250
|
+
* @param {module:model/CreateProductRequest} createProductRequest Product to be created
|
|
255
251
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Product}
|
|
256
252
|
*/
|
|
257
253
|
}, {
|
|
@@ -263,9 +259,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
263
259
|
}
|
|
264
260
|
|
|
265
261
|
/**
|
|
266
|
-
* Create a
|
|
267
|
-
*
|
|
268
|
-
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
262
|
+
* Create a Project
|
|
263
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest Project to be created
|
|
269
264
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
270
265
|
*/
|
|
271
266
|
}, {
|
|
@@ -288,9 +283,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
288
283
|
}
|
|
289
284
|
|
|
290
285
|
/**
|
|
291
|
-
* Create a
|
|
292
|
-
*
|
|
293
|
-
* @param {module:model/CreateProjectRequest} createProjectRequest The new project's name and organization.
|
|
286
|
+
* Create a Project
|
|
287
|
+
* @param {module:model/CreateProjectRequest} createProjectRequest Project to be created
|
|
294
288
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
295
289
|
*/
|
|
296
290
|
}, {
|
|
@@ -399,7 +393,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
399
393
|
}
|
|
400
394
|
|
|
401
395
|
/**
|
|
402
|
-
* Delete
|
|
396
|
+
* Delete host firmware
|
|
397
|
+
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
403
398
|
* @param {String} projectOrProductUID
|
|
404
399
|
* @param {module:model/String} firmwareType
|
|
405
400
|
* @param {String} filename
|
|
@@ -437,7 +432,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
437
432
|
}
|
|
438
433
|
|
|
439
434
|
/**
|
|
440
|
-
* Delete
|
|
435
|
+
* Delete host firmware
|
|
436
|
+
* Delete a host firmware file by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be deleted. Requires the Owner or Developer role. Returns 404 if the file doesn't exist, and 400 for a sub-project, whose parent manages host firmware.
|
|
441
437
|
* @param {String} projectOrProductUID
|
|
442
438
|
* @param {module:model/String} firmwareType
|
|
443
439
|
* @param {String} filename
|
|
@@ -552,7 +548,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
552
548
|
|
|
553
549
|
/**
|
|
554
550
|
* Delete a product
|
|
555
|
-
* Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
|
|
556
551
|
* @param {String} projectOrProductUID
|
|
557
552
|
* @param {String} productUID
|
|
558
553
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -585,7 +580,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
585
580
|
|
|
586
581
|
/**
|
|
587
582
|
* Delete a product
|
|
588
|
-
* Remove a ProductUID from the project. Accepts the UID with or without the `product:` prefix. Requires the Owner or Developer role. Returns 404 if the project has no such ProductUID.
|
|
589
583
|
* @param {String} projectOrProductUID
|
|
590
584
|
* @param {String} productUID
|
|
591
585
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -599,8 +593,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
599
593
|
}
|
|
600
594
|
|
|
601
595
|
/**
|
|
602
|
-
* Delete a
|
|
603
|
-
* Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
|
|
596
|
+
* Delete a Project by ProjectUID
|
|
604
597
|
* @param {String} projectOrProductUID
|
|
605
598
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
606
599
|
*/
|
|
@@ -626,8 +619,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
626
619
|
}
|
|
627
620
|
|
|
628
621
|
/**
|
|
629
|
-
* Delete a
|
|
630
|
-
* Delete a project, its ProductUIDs, and every member's access to it. Can't be undone through the API. Requires the Owner or Developer role. Returns 200 with no body.
|
|
622
|
+
* Delete a Project by ProjectUID
|
|
631
623
|
* @param {String} projectOrProductUID
|
|
632
624
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
633
625
|
*/
|
|
@@ -732,8 +724,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
732
724
|
}
|
|
733
725
|
|
|
734
726
|
/**
|
|
735
|
-
* Disable the
|
|
736
|
-
* Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
727
|
+
* Disable the project-level event JSONata transformation
|
|
737
728
|
* @param {String} projectOrProductUID
|
|
738
729
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
739
730
|
*/
|
|
@@ -759,8 +750,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
759
750
|
}
|
|
760
751
|
|
|
761
752
|
/**
|
|
762
|
-
* Disable the
|
|
763
|
-
* Stop applying the project's global event transformation to new events. The expression is kept, so `EnableGlobalEventTransformation` can turn it back on. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
753
|
+
* Disable the project-level event JSONata transformation
|
|
764
754
|
* @param {String} projectOrProductUID
|
|
765
755
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
766
756
|
*/
|
|
@@ -773,9 +763,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
773
763
|
}
|
|
774
764
|
|
|
775
765
|
/**
|
|
776
|
-
* Download firmware
|
|
766
|
+
* Download host firmware
|
|
767
|
+
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
777
768
|
* @param {String} projectOrProductUID
|
|
778
|
-
* @param {module:model/String} firmwareType
|
|
769
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
779
770
|
* @param {String} filename
|
|
780
771
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response
|
|
781
772
|
*/
|
|
@@ -811,9 +802,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
811
802
|
}
|
|
812
803
|
|
|
813
804
|
/**
|
|
814
|
-
* Download firmware
|
|
805
|
+
* Download host firmware
|
|
806
|
+
* Download a host firmware binary by its stored filename, including its `$` timestamp suffix. Notecard firmware can't be downloaded (400). Requires the Owner or Developer role. Returns 404 if the file doesn't exist.
|
|
815
807
|
* @param {String} projectOrProductUID
|
|
816
|
-
* @param {module:model/String} firmwareType
|
|
808
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
817
809
|
* @param {String} filename
|
|
818
810
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File}
|
|
819
811
|
*/
|
|
@@ -826,8 +818,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
826
818
|
}
|
|
827
819
|
|
|
828
820
|
/**
|
|
829
|
-
* Enable the
|
|
830
|
-
* Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
821
|
+
* Enable the project-level event JSONata transformation
|
|
831
822
|
* @param {String} projectOrProductUID
|
|
832
823
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
833
824
|
*/
|
|
@@ -853,8 +844,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
853
844
|
}
|
|
854
845
|
|
|
855
846
|
/**
|
|
856
|
-
* Enable the
|
|
857
|
-
* Resume applying the project's global event transformation to new events, without changing the expression. Undoes `DisableGlobalEventTransformation`. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent's transformation applies.
|
|
847
|
+
* Enable the project-level event JSONata transformation
|
|
858
848
|
* @param {String} projectOrProductUID
|
|
859
849
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
860
850
|
*/
|
|
@@ -868,7 +858,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
868
858
|
|
|
869
859
|
/**
|
|
870
860
|
* Get AWS role configuration for role-based authentication
|
|
871
|
-
*
|
|
861
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
872
862
|
* @param {String} projectOrProductUID
|
|
873
863
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
874
864
|
*/
|
|
@@ -895,7 +885,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
895
885
|
|
|
896
886
|
/**
|
|
897
887
|
* Get AWS role configuration for role-based authentication
|
|
898
|
-
*
|
|
888
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
899
889
|
* @param {String} projectOrProductUID
|
|
900
890
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
901
891
|
*/
|
|
@@ -908,10 +898,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
908
898
|
}
|
|
909
899
|
|
|
910
900
|
/**
|
|
911
|
-
* Get device
|
|
901
|
+
* Get a device's firmware update history
|
|
902
|
+
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
912
903
|
* @param {String} projectOrProductUID
|
|
913
904
|
* @param {String} deviceUID
|
|
914
|
-
* @param {module:model/String} firmwareType
|
|
905
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
915
906
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuHistory} and HTTP response
|
|
916
907
|
*/
|
|
917
908
|
}, {
|
|
@@ -946,10 +937,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
946
937
|
}
|
|
947
938
|
|
|
948
939
|
/**
|
|
949
|
-
* Get device
|
|
940
|
+
* Get a device's firmware update history
|
|
941
|
+
* Get a device's current host or Notecard firmware version and every firmware update requested for it, newest first. For just the latest update, use `GetDeviceDfuStatus`. Returns 400 if the device isn't in the project.
|
|
950
942
|
* @param {String} projectOrProductUID
|
|
951
943
|
* @param {String} deviceUID
|
|
952
|
-
* @param {module:model/String} firmwareType
|
|
944
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
953
945
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuHistory}
|
|
954
946
|
*/
|
|
955
947
|
}, {
|
|
@@ -961,10 +953,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
961
953
|
}
|
|
962
954
|
|
|
963
955
|
/**
|
|
964
|
-
* Get device
|
|
956
|
+
* Get a device's firmware update status
|
|
957
|
+
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
965
958
|
* @param {String} projectOrProductUID
|
|
966
959
|
* @param {String} deviceUID
|
|
967
|
-
* @param {module:model/String} firmwareType
|
|
960
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
968
961
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeviceDfuStatus} and HTTP response
|
|
969
962
|
*/
|
|
970
963
|
}, {
|
|
@@ -999,10 +992,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
999
992
|
}
|
|
1000
993
|
|
|
1001
994
|
/**
|
|
1002
|
-
* Get device
|
|
995
|
+
* Get a device's firmware update status
|
|
996
|
+
* Get a device's current host or Notecard firmware version and its latest firmware update. Includes whether an update is in progress. For every past update, use `GetDeviceDfuHistory`. Returns 400 if the device isn't in the project.
|
|
1003
997
|
* @param {String} projectOrProductUID
|
|
1004
998
|
* @param {String} deviceUID
|
|
1005
|
-
* @param {module:model/String} firmwareType
|
|
999
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1006
1000
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeviceDfuStatus}
|
|
1007
1001
|
*/
|
|
1008
1002
|
}, {
|
|
@@ -1060,9 +1054,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1060
1054
|
}
|
|
1061
1055
|
|
|
1062
1056
|
/**
|
|
1063
|
-
*
|
|
1057
|
+
* List devices' firmware update history
|
|
1058
|
+
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1064
1059
|
* @param {String} projectOrProductUID
|
|
1065
|
-
* @param {module:model/String} firmwareType
|
|
1060
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1066
1061
|
* @param {Object} opts Optional parameters
|
|
1067
1062
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1068
1063
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1123,9 +1118,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1123
1118
|
}
|
|
1124
1119
|
|
|
1125
1120
|
/**
|
|
1126
|
-
*
|
|
1121
|
+
* List devices' firmware update history
|
|
1122
|
+
* List every host or Notecard firmware update requested for each matching device, newest first. Includes each device's current firmware version. For just the latest update, use `GetDevicesDfuStatus`. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1127
1123
|
* @param {String} projectOrProductUID
|
|
1128
|
-
* @param {module:model/String} firmwareType
|
|
1124
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1129
1125
|
* @param {Object} opts Optional parameters
|
|
1130
1126
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1131
1127
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1152,9 +1148,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1152
1148
|
}
|
|
1153
1149
|
|
|
1154
1150
|
/**
|
|
1155
|
-
*
|
|
1151
|
+
* List devices' firmware status
|
|
1152
|
+
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1156
1153
|
* @param {String} projectOrProductUID
|
|
1157
|
-
* @param {module:model/String} firmwareType
|
|
1154
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1158
1155
|
* @param {Object} opts Optional parameters
|
|
1159
1156
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1160
1157
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1215,9 +1212,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1215
1212
|
}
|
|
1216
1213
|
|
|
1217
1214
|
/**
|
|
1218
|
-
*
|
|
1215
|
+
* List devices' firmware status
|
|
1216
|
+
* List the host or Notecard firmware version each matching device runs now, with its latest firmware update. Use this to find which firmware devices run. Paginated, by page or `cursor`. With a `cursor`, changes made through fleet or project firmware settings don't appear until the device itself is next updated.
|
|
1219
1217
|
* @param {String} projectOrProductUID
|
|
1220
|
-
* @param {module:model/String} firmwareType
|
|
1218
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1221
1219
|
* @param {Object} opts Optional parameters
|
|
1222
1220
|
* @param {Number} opts.pageSize (default to 1000)
|
|
1223
1221
|
* @param {Number} opts.pageNum (default to 1)
|
|
@@ -1244,16 +1242,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1244
1242
|
}
|
|
1245
1243
|
|
|
1246
1244
|
/**
|
|
1247
|
-
*
|
|
1245
|
+
* List firmware
|
|
1246
|
+
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1248
1247
|
* @param {String} projectOrProductUID
|
|
1249
1248
|
* @param {Object} opts Optional parameters
|
|
1250
|
-
* @param {String} opts.product
|
|
1251
|
-
* @param {String} opts.firmwareType
|
|
1252
|
-
* @param {String} opts.version
|
|
1253
|
-
* @param {String} opts.target
|
|
1254
|
-
* @param {String} opts.filename
|
|
1255
|
-
* @param {String} opts.md5
|
|
1256
|
-
* @param {Boolean} opts.unpublished
|
|
1249
|
+
* @param {String} opts.product Only firmware whose product contains this text.
|
|
1250
|
+
* @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
|
|
1251
|
+
* @param {String} opts.version Only firmware whose version contains this text.
|
|
1252
|
+
* @param {String} opts.target Only firmware whose target contains this text.
|
|
1253
|
+
* @param {String} opts.filename Only firmware whose stored filename contains this text.
|
|
1254
|
+
* @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
|
|
1255
|
+
* @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
|
|
1257
1256
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1258
1257
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1259
1258
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/FirmwareInfo>} and HTTP response
|
|
@@ -1291,16 +1290,17 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1291
1290
|
}
|
|
1292
1291
|
|
|
1293
1292
|
/**
|
|
1294
|
-
*
|
|
1293
|
+
* List firmware
|
|
1294
|
+
* List the host firmware uploaded to the project and the Notecard firmware available to it. Text filters match substrings, and unpublished Notecard builds are left out unless `unpublished` is `true`. Not paginated.
|
|
1295
1295
|
* @param {String} projectOrProductUID
|
|
1296
1296
|
* @param {Object} opts Optional parameters
|
|
1297
|
-
* @param {String} opts.product
|
|
1298
|
-
* @param {String} opts.firmwareType
|
|
1299
|
-
* @param {String} opts.version
|
|
1300
|
-
* @param {String} opts.target
|
|
1301
|
-
* @param {String} opts.filename
|
|
1302
|
-
* @param {String} opts.md5
|
|
1303
|
-
* @param {Boolean} opts.unpublished
|
|
1297
|
+
* @param {String} opts.product Only firmware whose product contains this text.
|
|
1298
|
+
* @param {String} opts.firmwareType Only list `host` or `notecard` firmware. Omit for both.
|
|
1299
|
+
* @param {String} opts.version Only firmware whose version contains this text.
|
|
1300
|
+
* @param {String} opts.target Only firmware whose target contains this text.
|
|
1301
|
+
* @param {String} opts.filename Only firmware whose stored filename contains this text.
|
|
1302
|
+
* @param {String} opts.md5 Only firmware whose MD5 hash contains this text.
|
|
1303
|
+
* @param {Boolean} opts.unpublished If `true`, also list unpublished Notecard firmware.
|
|
1304
1304
|
* @param {module:model/String} opts.sortBy Field to sort by (default to 'created')
|
|
1305
1305
|
* @param {module:model/String} opts.sortOrder Sort order (asc for ascending, desc for descending) (default to 'desc')
|
|
1306
1306
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/FirmwareInfo>}
|
|
@@ -1491,8 +1491,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
1493
|
/**
|
|
1494
|
-
*
|
|
1495
|
-
* List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
|
|
1494
|
+
* Get variable format for a notefile
|
|
1496
1495
|
* @param {String} projectOrProductUID
|
|
1497
1496
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotefileSchema>} and HTTP response
|
|
1498
1497
|
*/
|
|
@@ -1518,8 +1517,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1518
1517
|
}
|
|
1519
1518
|
|
|
1520
1519
|
/**
|
|
1521
|
-
*
|
|
1522
|
-
* List the project's Notefiles, each with the event `body` fields Notehub has seen in it and their JSON types. Inferred from received events.
|
|
1520
|
+
* Get variable format for a notefile
|
|
1523
1521
|
* @param {String} projectOrProductUID
|
|
1524
1522
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1525
1523
|
*/
|
|
@@ -1532,8 +1530,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1532
1530
|
}
|
|
1533
1531
|
|
|
1534
1532
|
/**
|
|
1535
|
-
*
|
|
1536
|
-
* List the project's ProductUIDs, each with its label, auto-provision fleets, and whether new devices start disabled. UIDs here include the `product:` prefix; `CreateProduct` returns them without it. Not paginated.
|
|
1533
|
+
* Get Products within a Project
|
|
1537
1534
|
* @param {String} projectOrProductUID
|
|
1538
1535
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1539
1536
|
*/
|
|
@@ -1559,8 +1556,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1559
1556
|
}
|
|
1560
1557
|
|
|
1561
1558
|
/**
|
|
1562
|
-
*
|
|
1563
|
-
* List the project's ProductUIDs, each with its label, auto-provision fleets, and whether new devices start disabled. UIDs here include the `product:` prefix; `CreateProduct` returns them without it. Not paginated.
|
|
1559
|
+
* Get Products within a Project
|
|
1564
1560
|
* @param {String} projectOrProductUID
|
|
1565
1561
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1566
1562
|
*/
|
|
@@ -1573,8 +1569,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1573
1569
|
}
|
|
1574
1570
|
|
|
1575
1571
|
/**
|
|
1576
|
-
* Get a
|
|
1577
|
-
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1572
|
+
* Get a Project by ProjectUID
|
|
1578
1573
|
* @param {String} projectOrProductUID
|
|
1579
1574
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1580
1575
|
*/
|
|
@@ -1600,8 +1595,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1600
1595
|
}
|
|
1601
1596
|
|
|
1602
1597
|
/**
|
|
1603
|
-
* Get a
|
|
1604
|
-
* Get a project's label, creation time, contacts, and the caller's `role` in it. Accepts a ProductUID in place of the ProjectUID.
|
|
1598
|
+
* Get a Project by ProjectUID
|
|
1605
1599
|
* @param {String} projectOrProductUID
|
|
1606
1600
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1607
1601
|
*/
|
|
@@ -1614,9 +1608,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1614
1608
|
}
|
|
1615
1609
|
|
|
1616
1610
|
/**
|
|
1617
|
-
* Get
|
|
1618
|
-
*
|
|
1619
|
-
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1611
|
+
* Get a Project by ProductUID
|
|
1612
|
+
* @param {String} productUID
|
|
1620
1613
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1621
1614
|
*/
|
|
1622
1615
|
}, {
|
|
@@ -1641,9 +1634,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1641
1634
|
}
|
|
1642
1635
|
|
|
1643
1636
|
/**
|
|
1644
|
-
* Get
|
|
1645
|
-
*
|
|
1646
|
-
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1637
|
+
* Get a Project by ProductUID
|
|
1638
|
+
* @param {String} productUID
|
|
1647
1639
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1648
1640
|
*/
|
|
1649
1641
|
}, {
|
|
@@ -1733,8 +1725,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1733
1725
|
}
|
|
1734
1726
|
|
|
1735
1727
|
/**
|
|
1736
|
-
*
|
|
1737
|
-
* List the project's members with each one's name and role. Emails are filled in only when the caller is an Owner. Not paginated.
|
|
1728
|
+
* Get Project Members
|
|
1738
1729
|
* @param {String} projectOrProductUID
|
|
1739
1730
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1740
1731
|
*/
|
|
@@ -1760,8 +1751,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1760
1751
|
}
|
|
1761
1752
|
|
|
1762
1753
|
/**
|
|
1763
|
-
*
|
|
1764
|
-
* List the project's members with each one's name and role. Emails are filled in only when the caller is an Owner. Not paginated.
|
|
1754
|
+
* Get Project Members
|
|
1765
1755
|
* @param {String} projectOrProductUID
|
|
1766
1756
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1767
1757
|
*/
|
|
@@ -1813,8 +1803,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1813
1803
|
}
|
|
1814
1804
|
|
|
1815
1805
|
/**
|
|
1816
|
-
*
|
|
1817
|
-
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1806
|
+
* Get Projects accessible by the api_key
|
|
1818
1807
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1819
1808
|
*/
|
|
1820
1809
|
}, {
|
|
@@ -1833,8 +1822,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1833
1822
|
}
|
|
1834
1823
|
|
|
1835
1824
|
/**
|
|
1836
|
-
*
|
|
1837
|
-
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1825
|
+
* Get Projects accessible by the api_key
|
|
1838
1826
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1839
1827
|
*/
|
|
1840
1828
|
}, {
|
|
@@ -1846,10 +1834,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1846
1834
|
}
|
|
1847
1835
|
|
|
1848
1836
|
/**
|
|
1849
|
-
*
|
|
1837
|
+
* Start or cancel firmware updates
|
|
1838
|
+
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1850
1839
|
* @param {String} projectOrProductUID
|
|
1851
|
-
* @param {module:model/String} firmwareType
|
|
1852
|
-
* @param {module:model/String} action
|
|
1840
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1841
|
+
* @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
|
|
1853
1842
|
* @param {Object} opts Optional parameters
|
|
1854
1843
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1855
1844
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
@@ -1906,10 +1895,11 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1906
1895
|
}
|
|
1907
1896
|
|
|
1908
1897
|
/**
|
|
1909
|
-
*
|
|
1898
|
+
* Start or cancel firmware updates
|
|
1899
|
+
* Start or cancel a host or Notecard firmware update on every device matching the filters. With no filters, that is every device in the project. `update` sets each device's `_fw` or `_fwc` variable to `filename`. Requires the Owner or Developer role. `update` returns 404 if the file isn't found, and can return 400 if a matching device already has an update in progress.
|
|
1910
1900
|
* @param {String} projectOrProductUID
|
|
1911
|
-
* @param {module:model/String} firmwareType
|
|
1912
|
-
* @param {module:model/String} action
|
|
1901
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
1902
|
+
* @param {module:model/String} action - `update`: start updating to the firmware in `filename` - `cancel`: cancel any update in progress
|
|
1913
1903
|
* @param {Object} opts Optional parameters
|
|
1914
1904
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
1915
1905
|
* @param {Array.<String>} opts.tag Tag filter. Matches the whole tag, case-insensitive. Use `*` as a wildcard and `\\*` to match a literal `*`; all other characters, including `%` and `_`, match literally. For example, `51*` matches tags starting with `51`.
|
|
@@ -1984,10 +1974,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1984
1974
|
}
|
|
1985
1975
|
|
|
1986
1976
|
/**
|
|
1987
|
-
* Set the
|
|
1988
|
-
* Set the project's JSONata expression that rewrites each new event before it is stored and routed. It can change `body`, `payload` and `details`, or discard the event with `$doNotRoute()`. Doesn't change whether the transformation is enabled. Requires the Owner or Developer role. Returns 400 if the expression doesn't compile, or for a sub-project, whose parent's transformation applies.
|
|
1977
|
+
* Set the project-level event JSONata transformation
|
|
1989
1978
|
* @param {String} projectOrProductUID
|
|
1990
|
-
* @param {String} body JSONata expression
|
|
1979
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1991
1980
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1992
1981
|
*/
|
|
1993
1982
|
}, {
|
|
@@ -2016,10 +2005,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2016
2005
|
}
|
|
2017
2006
|
|
|
2018
2007
|
/**
|
|
2019
|
-
* Set the
|
|
2020
|
-
* Set the project's JSONata expression that rewrites each new event before it is stored and routed. It can change `body`, `payload` and `details`, or discard the event with `$doNotRoute()`. Doesn't change whether the transformation is enabled. Requires the Owner or Developer role. Returns 400 if the expression doesn't compile, or for a sub-project, whose parent's transformation applies.
|
|
2008
|
+
* Set the project-level event JSONata transformation
|
|
2021
2009
|
* @param {String} projectOrProductUID
|
|
2022
|
-
* @param {String} body JSONata expression
|
|
2010
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
2023
2011
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
2024
2012
|
*/
|
|
2025
2013
|
}, {
|
|
@@ -2075,7 +2063,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2075
2063
|
}
|
|
2076
2064
|
|
|
2077
2065
|
/**
|
|
2078
|
-
* Update
|
|
2066
|
+
* Update host firmware metadata
|
|
2067
|
+
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2079
2068
|
* @param {String} projectOrProductUID
|
|
2080
2069
|
* @param {module:model/String} firmwareType
|
|
2081
2070
|
* @param {String} filename
|
|
@@ -2118,7 +2107,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2118
2107
|
}
|
|
2119
2108
|
|
|
2120
2109
|
/**
|
|
2121
|
-
* Update
|
|
2110
|
+
* Update host firmware metadata
|
|
2111
|
+
* Change a host firmware file's `version`, `notes` or `info`; fields you leave out or send empty keep their values. Use the stored filename, including its `$` timestamp suffix. Requires the Owner or Developer role. Returns 400 for a sub-project, whose parent manages host firmware, and 404 if the file doesn't exist.
|
|
2122
2112
|
* @param {String} projectOrProductUID
|
|
2123
2113
|
* @param {module:model/String} firmwareType
|
|
2124
2114
|
* @param {String} filename
|
|
@@ -2238,9 +2228,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2238
2228
|
}
|
|
2239
2229
|
|
|
2240
2230
|
/**
|
|
2241
|
-
* Upload firmware
|
|
2231
|
+
* Upload firmware
|
|
2232
|
+
* Upload a host or Notecard firmware binary. Notehub adds a `$YYYYMMDDHHMMSS` timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it. A file that's too large (host 1.5 MB, Notecard 1 MB) or of the wrong type returns 500.
|
|
2242
2233
|
* @param {String} projectOrProductUID
|
|
2243
|
-
* @param {module:model/String} firmwareType
|
|
2234
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
2244
2235
|
* @param {String} filename
|
|
2245
2236
|
* @param {File} body contents of the firmware binary
|
|
2246
2237
|
* @param {Object} opts Optional parameters
|
|
@@ -2288,9 +2279,10 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2288
2279
|
}
|
|
2289
2280
|
|
|
2290
2281
|
/**
|
|
2291
|
-
* Upload firmware
|
|
2282
|
+
* Upload firmware
|
|
2283
|
+
* Upload a host or Notecard firmware binary. Notehub adds a `$YYYYMMDDHHMMSS` timestamp to `filename`; use the returned `filename` from then on. Requires the Owner or Developer role. Returns 400 for host firmware on a sub-project, whose parent manages it. A file that's too large (host 1.5 MB, Notecard 1 MB) or of the wrong type returns 500.
|
|
2292
2284
|
* @param {String} projectOrProductUID
|
|
2293
|
-
* @param {module:model/String} firmwareType
|
|
2285
|
+
* @param {module:model/String} firmwareType Which firmware: `host` (the host microcontroller's) or `notecard`.
|
|
2294
2286
|
* @param {String} filename
|
|
2295
2287
|
* @param {File} body contents of the firmware binary
|
|
2296
2288
|
* @param {Object} opts Optional parameters
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.48
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/SkillsApi.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
31
|
/**
|
|
32
32
|
* Skills service.
|
|
33
33
|
* @module api/SkillsApi
|
|
34
|
-
* @version 6.7.0-beta.
|
|
34
|
+
* @version 6.7.0-beta.48
|
|
35
35
|
*/
|
|
36
36
|
var SkillsApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -32,7 +32,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
32
32
|
/**
|
|
33
33
|
* Usage service.
|
|
34
34
|
* @module api/UsageApi
|
|
35
|
-
* @version 6.7.0-beta.
|
|
35
|
+
* @version 6.7.0-beta.48
|
|
36
36
|
*/
|
|
37
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
38
|
/**
|