@blues-inc/notehub-js 6.7.0-beta.61 → 6.7.0-beta.63
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 +24 -24
- 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 +51 -45
- 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 +39 -67
- package/dist/api/RouteApi.js +47 -35
- 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 +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +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 +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 +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 +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 +1 -1
- 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.63
|
|
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 as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. 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 as a copy of this one. Settings, environment variables, transformation, fleets, routes and host firmware are copied; devices, products and members aren't. 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
|
}, {
|
|
@@ -552,7 +546,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
552
546
|
|
|
553
547
|
/**
|
|
554
548
|
* 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
549
|
* @param {String} projectOrProductUID
|
|
557
550
|
* @param {String} productUID
|
|
558
551
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
@@ -585,7 +578,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
585
578
|
|
|
586
579
|
/**
|
|
587
580
|
* 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
581
|
* @param {String} projectOrProductUID
|
|
590
582
|
* @param {String} productUID
|
|
591
583
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
@@ -599,8 +591,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
599
591
|
}
|
|
600
592
|
|
|
601
593
|
/**
|
|
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.
|
|
594
|
+
* Delete a Project by ProjectUID
|
|
604
595
|
* @param {String} projectOrProductUID
|
|
605
596
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
606
597
|
*/
|
|
@@ -626,8 +617,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
626
617
|
}
|
|
627
618
|
|
|
628
619
|
/**
|
|
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.
|
|
620
|
+
* Delete a Project by ProjectUID
|
|
631
621
|
* @param {String} projectOrProductUID
|
|
632
622
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
633
623
|
*/
|
|
@@ -732,8 +722,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
732
722
|
}
|
|
733
723
|
|
|
734
724
|
/**
|
|
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.
|
|
725
|
+
* Disable the project-level event JSONata transformation
|
|
737
726
|
* @param {String} projectOrProductUID
|
|
738
727
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
739
728
|
*/
|
|
@@ -759,8 +748,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
759
748
|
}
|
|
760
749
|
|
|
761
750
|
/**
|
|
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.
|
|
751
|
+
* Disable the project-level event JSONata transformation
|
|
764
752
|
* @param {String} projectOrProductUID
|
|
765
753
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
766
754
|
*/
|
|
@@ -826,8 +814,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
826
814
|
}
|
|
827
815
|
|
|
828
816
|
/**
|
|
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.
|
|
817
|
+
* Enable the project-level event JSONata transformation
|
|
831
818
|
* @param {String} projectOrProductUID
|
|
832
819
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
833
820
|
*/
|
|
@@ -853,8 +840,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
853
840
|
}
|
|
854
841
|
|
|
855
842
|
/**
|
|
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.
|
|
843
|
+
* Enable the project-level event JSONata transformation
|
|
858
844
|
* @param {String} projectOrProductUID
|
|
859
845
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
860
846
|
*/
|
|
@@ -868,7 +854,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
868
854
|
|
|
869
855
|
/**
|
|
870
856
|
* Get AWS role configuration for role-based authentication
|
|
871
|
-
*
|
|
857
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
872
858
|
* @param {String} projectOrProductUID
|
|
873
859
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AWSRoleConfig} and HTTP response
|
|
874
860
|
*/
|
|
@@ -895,7 +881,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
895
881
|
|
|
896
882
|
/**
|
|
897
883
|
* Get AWS role configuration for role-based authentication
|
|
898
|
-
*
|
|
884
|
+
* Returns the AWS Account ID and External ID needed to configure an IAM role trust policy for role-based authentication on AWS routes.
|
|
899
885
|
* @param {String} projectOrProductUID
|
|
900
886
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AWSRoleConfig}
|
|
901
887
|
*/
|
|
@@ -1491,8 +1477,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1491
1477
|
}
|
|
1492
1478
|
|
|
1493
1479
|
/**
|
|
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.
|
|
1480
|
+
* Get variable format for a notefile
|
|
1496
1481
|
* @param {String} projectOrProductUID
|
|
1497
1482
|
* @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
1483
|
*/
|
|
@@ -1518,8 +1503,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1518
1503
|
}
|
|
1519
1504
|
|
|
1520
1505
|
/**
|
|
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.
|
|
1506
|
+
* Get variable format for a notefile
|
|
1523
1507
|
* @param {String} projectOrProductUID
|
|
1524
1508
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotefileSchema>}
|
|
1525
1509
|
*/
|
|
@@ -1532,8 +1516,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1532
1516
|
}
|
|
1533
1517
|
|
|
1534
1518
|
/**
|
|
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.
|
|
1519
|
+
* Get Products within a Project
|
|
1537
1520
|
* @param {String} projectOrProductUID
|
|
1538
1521
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProducts200Response} and HTTP response
|
|
1539
1522
|
*/
|
|
@@ -1559,8 +1542,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1559
1542
|
}
|
|
1560
1543
|
|
|
1561
1544
|
/**
|
|
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.
|
|
1545
|
+
* Get Products within a Project
|
|
1564
1546
|
* @param {String} projectOrProductUID
|
|
1565
1547
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProducts200Response}
|
|
1566
1548
|
*/
|
|
@@ -1573,8 +1555,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1573
1555
|
}
|
|
1574
1556
|
|
|
1575
1557
|
/**
|
|
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.
|
|
1558
|
+
* Get a Project by ProjectUID
|
|
1578
1559
|
* @param {String} projectOrProductUID
|
|
1579
1560
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1580
1561
|
*/
|
|
@@ -1600,8 +1581,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1600
1581
|
}
|
|
1601
1582
|
|
|
1602
1583
|
/**
|
|
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.
|
|
1584
|
+
* Get a Project by ProjectUID
|
|
1605
1585
|
* @param {String} projectOrProductUID
|
|
1606
1586
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1607
1587
|
*/
|
|
@@ -1614,9 +1594,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1614
1594
|
}
|
|
1615
1595
|
|
|
1616
1596
|
/**
|
|
1617
|
-
* Get
|
|
1618
|
-
*
|
|
1619
|
-
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1597
|
+
* Get a Project by ProductUID
|
|
1598
|
+
* @param {String} productUID
|
|
1620
1599
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response
|
|
1621
1600
|
*/
|
|
1622
1601
|
}, {
|
|
@@ -1641,9 +1620,8 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1641
1620
|
}
|
|
1642
1621
|
|
|
1643
1622
|
/**
|
|
1644
|
-
* Get
|
|
1645
|
-
*
|
|
1646
|
-
* @param {String} productUID ProductUID, e.g. `com.blues.airnote`, with or without the `product:` prefix.
|
|
1623
|
+
* Get a Project by ProductUID
|
|
1624
|
+
* @param {String} productUID
|
|
1647
1625
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project}
|
|
1648
1626
|
*/
|
|
1649
1627
|
}, {
|
|
@@ -1733,8 +1711,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1733
1711
|
}
|
|
1734
1712
|
|
|
1735
1713
|
/**
|
|
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.
|
|
1714
|
+
* Get Project Members
|
|
1738
1715
|
* @param {String} projectOrProductUID
|
|
1739
1716
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectMembers200Response} and HTTP response
|
|
1740
1717
|
*/
|
|
@@ -1760,8 +1737,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1760
1737
|
}
|
|
1761
1738
|
|
|
1762
1739
|
/**
|
|
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.
|
|
1740
|
+
* Get Project Members
|
|
1765
1741
|
* @param {String} projectOrProductUID
|
|
1766
1742
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectMembers200Response}
|
|
1767
1743
|
*/
|
|
@@ -1813,8 +1789,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1813
1789
|
}
|
|
1814
1790
|
|
|
1815
1791
|
/**
|
|
1816
|
-
*
|
|
1817
|
-
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1792
|
+
* Get Projects accessible by the api_key
|
|
1818
1793
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
1819
1794
|
*/
|
|
1820
1795
|
}, {
|
|
@@ -1833,8 +1808,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1833
1808
|
}
|
|
1834
1809
|
|
|
1835
1810
|
/**
|
|
1836
|
-
*
|
|
1837
|
-
* List every project the caller is a member of, with the caller's `role` in each. Not paginated.
|
|
1811
|
+
* Get Projects accessible by the api_key
|
|
1838
1812
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjects200Response}
|
|
1839
1813
|
*/
|
|
1840
1814
|
}, {
|
|
@@ -1984,10 +1958,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1984
1958
|
}
|
|
1985
1959
|
|
|
1986
1960
|
/**
|
|
1987
|
-
* Set the
|
|
1988
|
-
* Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
|
|
1961
|
+
* Set the project-level event JSONata transformation
|
|
1989
1962
|
* @param {String} projectOrProductUID
|
|
1990
|
-
* @param {String} body JSONata expression
|
|
1963
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1991
1964
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1992
1965
|
*/
|
|
1993
1966
|
}, {
|
|
@@ -2016,10 +1989,9 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2016
1989
|
}
|
|
2017
1990
|
|
|
2018
1991
|
/**
|
|
2019
|
-
* Set the
|
|
2020
|
-
* Set the project's JSONata expression that rewrites each new event before it's stored and routed. It can change `body`, `payload`, `details`, `file` and `note`, or drop the event with `$doNotRoute()`; an event it fails on is kept with `error` set. Doesn't enable or disable it. Requires the Owner or Developer role. Returns 400 if it doesn't compile, or for a sub-project, which uses its parent's.
|
|
1992
|
+
* Set the project-level event JSONata transformation
|
|
2021
1993
|
* @param {String} projectOrProductUID
|
|
2022
|
-
* @param {String} body JSONata expression
|
|
1994
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
2023
1995
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
2024
1996
|
*/
|
|
2025
1997
|
}, {
|
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.63
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -46,7 +46,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Create
|
|
49
|
+
* Create a route
|
|
50
|
+
* Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
|
|
50
51
|
* @param {String} projectOrProductUID
|
|
51
52
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
52
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
@@ -77,7 +78,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
/**
|
|
80
|
-
* Create
|
|
81
|
+
* Create a route
|
|
82
|
+
* Create a route that sends a project's events to a destination such as a URL, an MQTT broker or a cloud service. Set `type` and fill in the object it names. Omit `fleets` to send every fleet's events. Unknown FleetUIDs are ignored, so `fleets: []` or a list of only unknown UIDs gives a route that sends nothing. Requires the Owner or Developer role. Returns 400 for invalid settings.
|
|
81
83
|
* @param {String} projectOrProductUID
|
|
82
84
|
* @param {module:model/NotehubRoute} notehubRoute Route to be created
|
|
83
85
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
@@ -91,9 +93,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
91
93
|
}
|
|
92
94
|
|
|
93
95
|
/**
|
|
94
|
-
* Delete
|
|
96
|
+
* Delete a route
|
|
97
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
95
98
|
* @param {String} projectOrProductUID
|
|
96
|
-
* @param {String} routeUID
|
|
99
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
97
100
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
98
101
|
*/
|
|
99
102
|
}, {
|
|
@@ -123,9 +126,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
123
126
|
}
|
|
124
127
|
|
|
125
128
|
/**
|
|
126
|
-
* Delete
|
|
129
|
+
* Delete a route
|
|
130
|
+
* Delete a route so it stops sending events. To pause it instead, set `disabled` with `UpdateRoute`. Requires the Owner or Developer role.
|
|
127
131
|
* @param {String} projectOrProductUID
|
|
128
|
-
* @param {String} routeUID
|
|
132
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
129
133
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
130
134
|
*/
|
|
131
135
|
}, {
|
|
@@ -137,9 +141,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
137
141
|
}
|
|
138
142
|
|
|
139
143
|
/**
|
|
140
|
-
* Get
|
|
144
|
+
* Get a route
|
|
145
|
+
* Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
|
|
141
146
|
* @param {String} projectOrProductUID
|
|
142
|
-
* @param {String} routeUID
|
|
147
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
143
148
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
144
149
|
*/
|
|
145
150
|
}, {
|
|
@@ -169,9 +174,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
169
174
|
}
|
|
170
175
|
|
|
171
176
|
/**
|
|
172
|
-
* Get
|
|
177
|
+
* Get a route
|
|
178
|
+
* Get one route's full settings: destination, filter, transform and fleets. Secrets such as passwords and keys come back as `(omitted)`. Requires the Owner or Developer role. Viewers can use `GetRoutes`. Returns 404 if the route doesn't exist.
|
|
173
179
|
* @param {String} projectOrProductUID
|
|
174
|
-
* @param {String} routeUID
|
|
180
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
175
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
176
182
|
*/
|
|
177
183
|
}, {
|
|
@@ -183,23 +189,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
183
189
|
}
|
|
184
190
|
|
|
185
191
|
/**
|
|
186
|
-
*
|
|
192
|
+
* List a route's logs
|
|
193
|
+
* List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
|
|
187
194
|
* @param {String} projectOrProductUID
|
|
188
|
-
* @param {String} routeUID
|
|
195
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
189
196
|
* @param {Object} opts Optional parameters
|
|
190
197
|
* @param {Number} opts.pageSize (default to 1000)
|
|
191
198
|
* @param {Number} opts.pageNum (default to 1)
|
|
192
199
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
193
200
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
194
|
-
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
195
|
-
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
201
|
+
* @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
|
|
202
|
+
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
196
203
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
197
204
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
198
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
199
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
200
|
-
* @param {String} opts.files
|
|
201
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
202
|
-
* @param {Array.<String>} opts.responseStatus
|
|
205
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
206
|
+
* @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
|
|
207
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
208
|
+
* @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
|
|
209
|
+
* @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
|
|
203
210
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/RouteLog>} and HTTP response
|
|
204
211
|
*/
|
|
205
212
|
}, {
|
|
@@ -244,23 +251,24 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
244
251
|
}
|
|
245
252
|
|
|
246
253
|
/**
|
|
247
|
-
*
|
|
254
|
+
* List a route's logs
|
|
255
|
+
* List a route's attempts to send events, newest first, with each one's event, response status, body and duration. Filter by device, notefile, date, success or HTTP status. For one event, use `GetRouteLogsByEvent`. Paginated. Returns 404 if the route doesn't exist.
|
|
248
256
|
* @param {String} projectOrProductUID
|
|
249
|
-
* @param {String} routeUID
|
|
257
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
250
258
|
* @param {Object} opts Optional parameters
|
|
251
259
|
* @param {Number} opts.pageSize (default to 1000)
|
|
252
260
|
* @param {Number} opts.pageNum (default to 1)
|
|
253
261
|
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
254
262
|
* @param {Array.<String>} opts.deviceUID A DeviceUID.
|
|
255
|
-
* @param {module:model/String} opts.sortBy (default to 'date')
|
|
256
|
-
* @param {module:model/String} opts.sortOrder (default to 'desc')
|
|
263
|
+
* @param {module:model/String} opts.sortBy Field to sort by. - `date`: when the attempt was made - `event`: the order the events arrived in, then the attempt time (default to 'date')
|
|
264
|
+
* @param {module:model/String} opts.sortOrder Sort direction. - `asc`: oldest first - `desc`: newest first (default to 'desc')
|
|
257
265
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
258
266
|
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
259
|
-
* @param {Boolean} opts.systemFilesOnly
|
|
260
|
-
* @param {Boolean} opts.mostRecentOnly
|
|
261
|
-
* @param {String} opts.files
|
|
262
|
-
* @param {Array.<module:model/String>} opts.routingStatus
|
|
263
|
-
* @param {Array.<String>} opts.responseStatus
|
|
267
|
+
* @param {Boolean} opts.systemFilesOnly If true, return only events from system notefiles, such as `_session.qo` and `_health.qo`.
|
|
268
|
+
* @param {Boolean} opts.mostRecentOnly If true, return only the latest attempt for each event.
|
|
269
|
+
* @param {String} opts.files Comma-separated notefiles, e.g. `data.qo,_health.qo`. Don't combine with `systemFilesOnly`.
|
|
270
|
+
* @param {Array.<module:model/String>} opts.routingStatus Return only attempts with this outcome. - `success`: the destination accepted the event - `failure`: the attempt failed
|
|
271
|
+
* @param {Array.<String>} opts.responseStatus Response status codes to include, e.g. `500`.
|
|
264
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/RouteLog>}
|
|
265
273
|
*/
|
|
266
274
|
}, {
|
|
@@ -272,7 +280,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
272
280
|
}
|
|
273
281
|
|
|
274
282
|
/**
|
|
275
|
-
*
|
|
283
|
+
* List routes
|
|
284
|
+
* List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
|
|
276
285
|
* @param {String} projectOrProductUID
|
|
277
286
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.<module:model/NotehubRouteSummary>} and HTTP response
|
|
278
287
|
*/
|
|
@@ -298,7 +307,8 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
298
307
|
}
|
|
299
308
|
|
|
300
309
|
/**
|
|
301
|
-
*
|
|
310
|
+
* List routes
|
|
311
|
+
* List a project's routes with their type and label and whether they're disabled, without their settings. For a route's settings, use `GetRoute`.
|
|
302
312
|
* @param {String} projectOrProductUID
|
|
303
313
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.<module:model/NotehubRouteSummary>}
|
|
304
314
|
*/
|
|
@@ -311,9 +321,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
311
321
|
}
|
|
312
322
|
|
|
313
323
|
/**
|
|
314
|
-
* Update route
|
|
324
|
+
* Update a route
|
|
325
|
+
* Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
|
|
315
326
|
* @param {String} projectOrProductUID
|
|
316
|
-
* @param {String} routeUID
|
|
327
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
317
328
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
318
329
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NotehubRoute} and HTTP response
|
|
319
330
|
*/
|
|
@@ -348,9 +359,10 @@ var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
348
359
|
}
|
|
349
360
|
|
|
350
361
|
/**
|
|
351
|
-
* Update route
|
|
362
|
+
* Update a route
|
|
363
|
+
* Change a route's settings. Fields you leave out keep their values, and a secret sent back as `(omitted)` is kept, but leaving out `notes` clears it. Requires the Owner or Developer role. Returns 404 if the route doesn't exist, and 400 for invalid settings.
|
|
352
364
|
* @param {String} projectOrProductUID
|
|
353
|
-
* @param {String} routeUID
|
|
365
|
+
* @param {String} routeUID RouteUID, e.g. `route:cbd20093cba58392c9f9bbdd0cdeb1a0`. List with `GetRoutes`.
|
|
354
366
|
* @param {module:model/NotehubRoute} notehubRoute Route settings to be updated
|
|
355
367
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NotehubRoute}
|
|
356
368
|
*/
|
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.63
|
|
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.63
|
|
36
36
|
*/
|
|
37
37
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
38
38
|
/**
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.63
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The AWSRoleConfig model module.
|
|
31
31
|
* @module model/AWSRoleConfig
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.63
|
|
33
33
|
*/
|
|
34
34
|
var AWSRoleConfig = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.63
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Alert.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.63
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.63
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The ArchiveStats model module.
|
|
28
28
|
* @module model/ArchiveStats
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.63
|
|
30
30
|
*/
|
|
31
31
|
var ArchiveStats = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/AwsRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
28
28
|
/**
|
|
29
29
|
* The AwsRoute model module.
|
|
30
30
|
* @module model/AwsRoute
|
|
31
|
-
* @version 6.7.0-beta.
|
|
31
|
+
* @version 6.7.0-beta.63
|
|
32
32
|
*/
|
|
33
33
|
var AwsRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/AzureRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
28
28
|
/**
|
|
29
29
|
* The AzureRoute model module.
|
|
30
30
|
* @module model/AzureRoute
|
|
31
|
-
* @version 6.7.0-beta.
|
|
31
|
+
* @version 6.7.0-beta.63
|
|
32
32
|
*/
|
|
33
33
|
var AzureRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The BatchJobNoteRequest model module.
|
|
31
31
|
* @module model/BatchJobNoteRequest
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.63
|
|
33
33
|
*/
|
|
34
34
|
var BatchJobNoteRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|