@blues-inc/notehub-js 6.1.0-beta.10 → 6.1.0-beta.12
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 +5 -4
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +3 -3
- 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/ProjectApi.js +5 -118
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +210 -1
- package/dist/index.js +0 -7
- 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/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.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 +1 -1
- 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 -51
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.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/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.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/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/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/GetBillingAccount200Response.js +1 -1
- package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetBillingAccounts200Response.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/GetDeviceHealthLog200ResponseHealthLogInner.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/GetEventsByCursor200Response.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/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.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/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -36
- 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 +1 -1
- 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/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.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/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 +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.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/UploadMetadata.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/model/UpdateHostFirmwareRequest.js +0 -117
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
|
|
|
6
6
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
7
7
|
|
|
8
8
|
- API version: 1.2.0
|
|
9
|
-
- Package version: 6.1.0-beta.
|
|
9
|
+
- Package version: 6.1.0-beta.12
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)
|
|
12
12
|
|
|
@@ -194,7 +194,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
194
194
|
| _NotehubJs.ProjectApi_ | [**createProduct**](docs/ProjectApi.md#createProduct) | **POST** /v1/projects/{projectOrProductUID}/products |
|
|
195
195
|
| _NotehubJs.ProjectApi_ | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /v1/projects |
|
|
196
196
|
| _NotehubJs.ProjectApi_ | [**deleteDeviceFromFleets**](docs/ProjectApi.md#deleteDeviceFromFleets) | **DELETE** /v1/projects/{projectOrProductUID}/devices/{deviceUID}/fleets |
|
|
197
|
-
| _NotehubJs.ProjectApi_ | [**deleteFirmware**](docs/ProjectApi.md#deleteFirmware) | **DELETE** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
198
197
|
| _NotehubJs.ProjectApi_ | [**deleteFleet**](docs/ProjectApi.md#deleteFleet) | **DELETE** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
|
|
199
198
|
| _NotehubJs.ProjectApi_ | [**deleteFleetEnvironmentVariable**](docs/ProjectApi.md#deleteFleetEnvironmentVariable) | **DELETE** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables/{key} |
|
|
200
199
|
| _NotehubJs.ProjectApi_ | [**deleteProduct**](docs/ProjectApi.md#deleteProduct) | **DELETE** /v1/projects/{projectOrProductUID}/products/{productUID} |
|
|
@@ -226,7 +225,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
226
225
|
| _NotehubJs.ProjectApi_ | [**setFleetEnvironmentVariables**](docs/ProjectApi.md#setFleetEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID}/environment_variables |
|
|
227
226
|
| _NotehubJs.ProjectApi_ | [**setGlobalEventTransformation**](docs/ProjectApi.md#setGlobalEventTransformation) | **POST** /v1/projects/{projectOrProductUID}/global-transformation |
|
|
228
227
|
| _NotehubJs.ProjectApi_ | [**setProjectEnvironmentVariables**](docs/ProjectApi.md#setProjectEnvironmentVariables) | **PUT** /v1/projects/{projectOrProductUID}/environment_variables |
|
|
229
|
-
| _NotehubJs.ProjectApi_ | [**updateFirmware**](docs/ProjectApi.md#updateFirmware) | **POST** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
230
228
|
| _NotehubJs.ProjectApi_ | [**updateFleet**](docs/ProjectApi.md#updateFleet) | **PUT** /v1/projects/{projectOrProductUID}/fleets/{fleetUID} |
|
|
231
229
|
| _NotehubJs.ProjectApi_ | [**uploadFirmware**](docs/ProjectApi.md#uploadFirmware) | **PUT** /v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename} |
|
|
232
230
|
| _NotehubJs.RouteApi_ | [**createRoute**](docs/RouteApi.md#createRoute) | **POST** /v1/projects/{projectOrProductUID}/routes |
|
|
@@ -240,10 +238,14 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
240
238
|
| _NotehubJs.UsageApi_ | [**getRouteLogsUsage**](docs/UsageApi.md#getRouteLogsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/route-logs |
|
|
241
239
|
| _NotehubJs.UsageApi_ | [**getSessionsUsage**](docs/UsageApi.md#getSessionsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/sessions |
|
|
242
240
|
| _NotehubJs.WebhookApi_ | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
241
|
+
| _NotehubJs.WebhookApi_ | [**createWebhookDeviceEvent**](docs/WebhookApi.md#createWebhookDeviceEvent) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/devices/{deviceUID}/event |
|
|
242
|
+
| _NotehubJs.WebhookApi_ | [**createWebhookEvent**](docs/WebhookApi.md#createWebhookEvent) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/event |
|
|
243
243
|
| _NotehubJs.WebhookApi_ | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
244
244
|
| _NotehubJs.WebhookApi_ | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
245
|
+
| _NotehubJs.WebhookApi_ | [**getWebhookSettings**](docs/WebhookApi.md#getWebhookSettings) | **GET** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/settings |
|
|
245
246
|
| _NotehubJs.WebhookApi_ | [**getWebhooks**](docs/WebhookApi.md#getWebhooks) | **GET** /v1/projects/{projectOrProductUID}/webhooks |
|
|
246
247
|
| _NotehubJs.WebhookApi_ | [**updateWebhook**](docs/WebhookApi.md#updateWebhook) | **PUT** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
248
|
+
| _NotehubJs.WebhookApi_ | [**updateWebhookSettings**](docs/WebhookApi.md#updateWebhookSettings) | **PUT** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/settings |
|
|
247
249
|
|
|
248
250
|
## Documentation for Models
|
|
249
251
|
|
|
@@ -381,7 +383,6 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
381
383
|
- [NotehubJs.TowerLocation](docs/TowerLocation.md)
|
|
382
384
|
- [NotehubJs.TwilioRoute](docs/TwilioRoute.md)
|
|
383
385
|
- [NotehubJs.UpdateFleetRequest](docs/UpdateFleetRequest.md)
|
|
384
|
-
- [NotehubJs.UpdateHostFirmwareRequest](docs/UpdateHostFirmwareRequest.md)
|
|
385
386
|
- [NotehubJs.UploadMetadata](docs/UploadMetadata.md)
|
|
386
387
|
- [NotehubJs.UsageData](docs/UsageData.md)
|
|
387
388
|
- [NotehubJs.UsageEventsData](docs/UsageEventsData.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
28
|
* @module ApiClient
|
|
29
|
-
* @version 6.1.0-beta.
|
|
29
|
+
* @version 6.1.0-beta.12
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -68,7 +68,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
68
68
|
*/
|
|
69
69
|
this.defaultHeaders = {};
|
|
70
70
|
if (typeof window === "undefined") {
|
|
71
|
-
this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.1.0-beta.
|
|
71
|
+
this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/6.1.0-beta.12/Javascript";
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
package/dist/api/AlertApi.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Alert service.
|
|
30
30
|
* @module api/AlertApi
|
|
31
|
-
* @version 6.1.0-beta.
|
|
31
|
+
* @version 6.1.0-beta.12
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Authorization service.
|
|
32
32
|
* @module api/AuthorizationApi
|
|
33
|
-
* @version 6.1.0-beta.
|
|
33
|
+
* @version 6.1.0-beta.12
|
|
34
34
|
*/
|
|
35
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* BillingAccount service.
|
|
32
32
|
* @module api/BillingAccountApi
|
|
33
|
-
* @version 6.1.0-beta.
|
|
33
|
+
* @version 6.1.0-beta.12
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -46,7 +46,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
46
46
|
/**
|
|
47
47
|
* Device service.
|
|
48
48
|
* @module api/DeviceApi
|
|
49
|
-
* @version 6.1.0-beta.
|
|
49
|
+
* @version 6.1.0-beta.12
|
|
50
50
|
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
|
@@ -782,7 +782,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
782
782
|
"X-Auth-Token": xAuthToken
|
|
783
783
|
};
|
|
784
784
|
var formParams = {};
|
|
785
|
-
var authNames = [];
|
|
785
|
+
var authNames = ["personalAccessToken"];
|
|
786
786
|
var contentTypes = [];
|
|
787
787
|
var accepts = ["application/json"];
|
|
788
788
|
var returnType = _GetDeviceEnvironmentVariablesByPin200Response["default"];
|
|
@@ -1534,7 +1534,7 @@ var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1534
1534
|
"X-Auth-Token": xAuthToken
|
|
1535
1535
|
};
|
|
1536
1536
|
var formParams = {};
|
|
1537
|
-
var authNames = [];
|
|
1537
|
+
var authNames = ["personalAccessToken"];
|
|
1538
1538
|
var contentTypes = ["application/json"];
|
|
1539
1539
|
var accepts = ["application/json"];
|
|
1540
1540
|
var returnType = _EnvironmentVariables["default"];
|
package/dist/api/EventApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Event service.
|
|
32
32
|
* @module api/EventApi
|
|
33
|
-
* @version 6.1.0-beta.
|
|
33
|
+
* @version 6.1.0-beta.12
|
|
34
34
|
*/
|
|
35
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.1.0-beta.
|
|
32
|
+
* @version 6.1.0-beta.12
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/JobsApi.js
CHANGED
|
@@ -35,7 +35,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
35
35
|
/**
|
|
36
36
|
* Jobs service.
|
|
37
37
|
* @module api/JobsApi
|
|
38
|
-
* @version 6.1.0-beta.
|
|
38
|
+
* @version 6.1.0-beta.12
|
|
39
39
|
*/
|
|
40
40
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
41
41
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 6.1.0-beta.
|
|
32
|
+
* @version 6.1.0-beta.12
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -30,7 +30,6 @@ var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"))
|
|
|
30
30
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
31
31
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
32
32
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
33
|
-
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("../model/UpdateHostFirmwareRequest"));
|
|
34
33
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
35
34
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
36
35
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -52,7 +51,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
52
51
|
/**
|
|
53
52
|
* Project service.
|
|
54
53
|
* @module api/ProjectApi
|
|
55
|
-
* @version 6.1.0-beta.
|
|
54
|
+
* @version 6.1.0-beta.12
|
|
56
55
|
*/
|
|
57
56
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
58
57
|
/**
|
|
@@ -343,59 +342,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
343
342
|
});
|
|
344
343
|
}
|
|
345
344
|
|
|
346
|
-
/**
|
|
347
|
-
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
348
|
-
* @param {String} projectOrProductUID
|
|
349
|
-
* @param {module:model/String} firmwareType
|
|
350
|
-
* @param {String} filename
|
|
351
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
352
|
-
*/
|
|
353
|
-
}, {
|
|
354
|
-
key: "deleteFirmwareWithHttpInfo",
|
|
355
|
-
value: function deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename) {
|
|
356
|
-
var postBody = null;
|
|
357
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
358
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
359
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteFirmware");
|
|
360
|
-
}
|
|
361
|
-
// verify the required parameter 'firmwareType' is set
|
|
362
|
-
if (firmwareType === undefined || firmwareType === null) {
|
|
363
|
-
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling deleteFirmware");
|
|
364
|
-
}
|
|
365
|
-
// verify the required parameter 'filename' is set
|
|
366
|
-
if (filename === undefined || filename === null) {
|
|
367
|
-
throw new _Error["default"]("Missing the required parameter 'filename' when calling deleteFirmware");
|
|
368
|
-
}
|
|
369
|
-
var pathParams = {
|
|
370
|
-
projectOrProductUID: projectOrProductUID,
|
|
371
|
-
firmwareType: firmwareType,
|
|
372
|
-
filename: filename
|
|
373
|
-
};
|
|
374
|
-
var queryParams = {};
|
|
375
|
-
var headerParams = {};
|
|
376
|
-
var formParams = {};
|
|
377
|
-
var authNames = ["personalAccessToken"];
|
|
378
|
-
var contentTypes = [];
|
|
379
|
-
var accepts = ["application/json"];
|
|
380
|
-
var returnType = null;
|
|
381
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* Delete a host firmware binary. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
386
|
-
* @param {String} projectOrProductUID
|
|
387
|
-
* @param {module:model/String} firmwareType
|
|
388
|
-
* @param {String} filename
|
|
389
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
390
|
-
*/
|
|
391
|
-
}, {
|
|
392
|
-
key: "deleteFirmware",
|
|
393
|
-
value: function deleteFirmware(projectOrProductUID, firmwareType, filename) {
|
|
394
|
-
return this.deleteFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename).then(function (response_and_data) {
|
|
395
|
-
return response_and_data.data;
|
|
396
|
-
});
|
|
397
|
-
}
|
|
398
|
-
|
|
399
345
|
/**
|
|
400
346
|
* Delete Fleet
|
|
401
347
|
* @param {String} projectOrProductUID
|
|
@@ -1394,7 +1340,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1394
1340
|
var queryParams = {};
|
|
1395
1341
|
var headerParams = {};
|
|
1396
1342
|
var formParams = {};
|
|
1397
|
-
var authNames = [];
|
|
1343
|
+
var authNames = ["personalAccessToken"];
|
|
1398
1344
|
var contentTypes = [];
|
|
1399
1345
|
var accepts = ["application/json"];
|
|
1400
1346
|
var returnType = [_NotefileSchema["default"]];
|
|
@@ -1820,7 +1766,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1820
1766
|
/**
|
|
1821
1767
|
* Set the project-level event JSONata transformation
|
|
1822
1768
|
* @param {String} projectOrProductUID
|
|
1823
|
-
* @param {
|
|
1769
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1824
1770
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1825
1771
|
*/
|
|
1826
1772
|
}, {
|
|
@@ -1842,7 +1788,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1842
1788
|
var headerParams = {};
|
|
1843
1789
|
var formParams = {};
|
|
1844
1790
|
var authNames = ["personalAccessToken"];
|
|
1845
|
-
var contentTypes = ["
|
|
1791
|
+
var contentTypes = ["text/plain"];
|
|
1846
1792
|
var accepts = ["application/json"];
|
|
1847
1793
|
var returnType = null;
|
|
1848
1794
|
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
@@ -1851,7 +1797,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1851
1797
|
/**
|
|
1852
1798
|
* Set the project-level event JSONata transformation
|
|
1853
1799
|
* @param {String} projectOrProductUID
|
|
1854
|
-
* @param {
|
|
1800
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1855
1801
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1856
1802
|
*/
|
|
1857
1803
|
}, {
|
|
@@ -1906,65 +1852,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1906
1852
|
});
|
|
1907
1853
|
}
|
|
1908
1854
|
|
|
1909
|
-
/**
|
|
1910
|
-
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1911
|
-
* @param {String} projectOrProductUID
|
|
1912
|
-
* @param {module:model/String} firmwareType
|
|
1913
|
-
* @param {String} filename
|
|
1914
|
-
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1915
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FirmwareInfo} and HTTP response
|
|
1916
|
-
*/
|
|
1917
|
-
}, {
|
|
1918
|
-
key: "updateFirmwareWithHttpInfo",
|
|
1919
|
-
value: function updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
1920
|
-
var postBody = updateHostFirmwareRequest;
|
|
1921
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1922
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1923
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateFirmware");
|
|
1924
|
-
}
|
|
1925
|
-
// verify the required parameter 'firmwareType' is set
|
|
1926
|
-
if (firmwareType === undefined || firmwareType === null) {
|
|
1927
|
-
throw new _Error["default"]("Missing the required parameter 'firmwareType' when calling updateFirmware");
|
|
1928
|
-
}
|
|
1929
|
-
// verify the required parameter 'filename' is set
|
|
1930
|
-
if (filename === undefined || filename === null) {
|
|
1931
|
-
throw new _Error["default"]("Missing the required parameter 'filename' when calling updateFirmware");
|
|
1932
|
-
}
|
|
1933
|
-
// verify the required parameter 'updateHostFirmwareRequest' is set
|
|
1934
|
-
if (updateHostFirmwareRequest === undefined || updateHostFirmwareRequest === null) {
|
|
1935
|
-
throw new _Error["default"]("Missing the required parameter 'updateHostFirmwareRequest' when calling updateFirmware");
|
|
1936
|
-
}
|
|
1937
|
-
var pathParams = {
|
|
1938
|
-
projectOrProductUID: projectOrProductUID,
|
|
1939
|
-
firmwareType: firmwareType,
|
|
1940
|
-
filename: filename
|
|
1941
|
-
};
|
|
1942
|
-
var queryParams = {};
|
|
1943
|
-
var headerParams = {};
|
|
1944
|
-
var formParams = {};
|
|
1945
|
-
var authNames = ["personalAccessToken"];
|
|
1946
|
-
var contentTypes = ["application/json"];
|
|
1947
|
-
var accepts = ["application/json"];
|
|
1948
|
-
var returnType = _FirmwareInfo["default"];
|
|
1949
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/firmware/{firmwareType}/{filename}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1950
|
-
}
|
|
1951
|
-
|
|
1952
|
-
/**
|
|
1953
|
-
* Update the metadata of an existing host firmware entry. The filename must be the full stored filename including the timestamp suffix (e.g. test$20260324190911.bin) as returned by the firmware upload or list endpoints.
|
|
1954
|
-
* @param {String} projectOrProductUID
|
|
1955
|
-
* @param {module:model/String} firmwareType
|
|
1956
|
-
* @param {String} filename
|
|
1957
|
-
* @param {module:model/UpdateHostFirmwareRequest} updateHostFirmwareRequest Firmware metadata fields to update. All fields are optional; only provided fields will be updated.
|
|
1958
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FirmwareInfo}
|
|
1959
|
-
*/
|
|
1960
|
-
}, {
|
|
1961
|
-
key: "updateFirmware",
|
|
1962
|
-
value: function updateFirmware(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest) {
|
|
1963
|
-
return this.updateFirmwareWithHttpInfo(projectOrProductUID, firmwareType, filename, updateHostFirmwareRequest).then(function (response_and_data) {
|
|
1964
|
-
return response_and_data.data;
|
|
1965
|
-
});
|
|
1966
|
-
}
|
|
1967
|
-
|
|
1968
1855
|
/**
|
|
1969
1856
|
* Update Fleet
|
|
1970
1857
|
* @param {String} projectOrProductUID
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 6.1.0-beta.
|
|
33
|
+
* @version 6.1.0-beta.12
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/api/UsageApi.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* Usage service.
|
|
33
33
|
* @module api/UsageApi
|
|
34
|
-
* @version 6.1.0-beta.
|
|
34
|
+
* @version 6.1.0-beta.12
|
|
35
35
|
*/
|
|
36
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* Webhook service.
|
|
31
31
|
* @module api/WebhookApi
|
|
32
|
-
* @version 6.1.0-beta.
|
|
32
|
+
* @version 6.1.0-beta.12
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -96,6 +96,117 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
/**
|
|
100
|
+
* Sends an event to be processed by the specified webhook, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
|
|
101
|
+
* @param {String} projectOrProductUID
|
|
102
|
+
* @param {String} webhookUID Webhook UID
|
|
103
|
+
* @param {String} deviceUID
|
|
104
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
105
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
108
|
+
key: "createWebhookDeviceEventWithHttpInfo",
|
|
109
|
+
value: function createWebhookDeviceEventWithHttpInfo(projectOrProductUID, webhookUID, deviceUID, requestBody) {
|
|
110
|
+
var postBody = requestBody;
|
|
111
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
112
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
113
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createWebhookDeviceEvent");
|
|
114
|
+
}
|
|
115
|
+
// verify the required parameter 'webhookUID' is set
|
|
116
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
117
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhookDeviceEvent");
|
|
118
|
+
}
|
|
119
|
+
// verify the required parameter 'deviceUID' is set
|
|
120
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
121
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createWebhookDeviceEvent");
|
|
122
|
+
}
|
|
123
|
+
// verify the required parameter 'requestBody' is set
|
|
124
|
+
if (requestBody === undefined || requestBody === null) {
|
|
125
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookDeviceEvent");
|
|
126
|
+
}
|
|
127
|
+
var pathParams = {
|
|
128
|
+
projectOrProductUID: projectOrProductUID,
|
|
129
|
+
webhookUID: webhookUID,
|
|
130
|
+
deviceUID: deviceUID
|
|
131
|
+
};
|
|
132
|
+
var queryParams = {};
|
|
133
|
+
var headerParams = {};
|
|
134
|
+
var formParams = {};
|
|
135
|
+
var authNames = ["personalAccessToken"];
|
|
136
|
+
var contentTypes = ["application/json"];
|
|
137
|
+
var accepts = ["application/json"];
|
|
138
|
+
var returnType = null;
|
|
139
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/devices/{deviceUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Sends an event to be processed by the specified webhook, associated with the given device (provisioning it if necessary). The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing.
|
|
144
|
+
* @param {String} projectOrProductUID
|
|
145
|
+
* @param {String} webhookUID Webhook UID
|
|
146
|
+
* @param {String} deviceUID
|
|
147
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
148
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
149
|
+
*/
|
|
150
|
+
}, {
|
|
151
|
+
key: "createWebhookDeviceEvent",
|
|
152
|
+
value: function createWebhookDeviceEvent(projectOrProductUID, webhookUID, deviceUID, requestBody) {
|
|
153
|
+
return this.createWebhookDeviceEventWithHttpInfo(projectOrProductUID, webhookUID, deviceUID, requestBody).then(function (response_and_data) {
|
|
154
|
+
return response_and_data.data;
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Sends an event to be processed by the specified webhook. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
|
|
160
|
+
* @param {String} projectOrProductUID
|
|
161
|
+
* @param {String} webhookUID Webhook UID
|
|
162
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
163
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
164
|
+
*/
|
|
165
|
+
}, {
|
|
166
|
+
key: "createWebhookEventWithHttpInfo",
|
|
167
|
+
value: function createWebhookEventWithHttpInfo(projectOrProductUID, webhookUID, requestBody) {
|
|
168
|
+
var postBody = requestBody;
|
|
169
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
170
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
171
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createWebhookEvent");
|
|
172
|
+
}
|
|
173
|
+
// verify the required parameter 'webhookUID' is set
|
|
174
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
175
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhookEvent");
|
|
176
|
+
}
|
|
177
|
+
// verify the required parameter 'requestBody' is set
|
|
178
|
+
if (requestBody === undefined || requestBody === null) {
|
|
179
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookEvent");
|
|
180
|
+
}
|
|
181
|
+
var pathParams = {
|
|
182
|
+
projectOrProductUID: projectOrProductUID,
|
|
183
|
+
webhookUID: webhookUID
|
|
184
|
+
};
|
|
185
|
+
var queryParams = {};
|
|
186
|
+
var headerParams = {};
|
|
187
|
+
var formParams = {};
|
|
188
|
+
var authNames = ["personalAccessToken"];
|
|
189
|
+
var contentTypes = ["application/json"];
|
|
190
|
+
var accepts = ["application/json"];
|
|
191
|
+
var returnType = null;
|
|
192
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Sends an event to be processed by the specified webhook. The entire request body becomes the event body. The webhook's configured JSONata transform, if any, is applied before routing. The event is not associated with a specific device.
|
|
197
|
+
* @param {String} projectOrProductUID
|
|
198
|
+
* @param {String} webhookUID Webhook UID
|
|
199
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
200
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
201
|
+
*/
|
|
202
|
+
}, {
|
|
203
|
+
key: "createWebhookEvent",
|
|
204
|
+
value: function createWebhookEvent(projectOrProductUID, webhookUID, requestBody) {
|
|
205
|
+
return this.createWebhookEventWithHttpInfo(projectOrProductUID, webhookUID, requestBody).then(function (response_and_data) {
|
|
206
|
+
return response_and_data.data;
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
|
|
99
210
|
/**
|
|
100
211
|
* Deletes the specified webhook
|
|
101
212
|
* @param {String} projectOrProductUID
|
|
@@ -188,6 +299,52 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
299
|
});
|
|
189
300
|
}
|
|
190
301
|
|
|
302
|
+
/**
|
|
303
|
+
* Retrieves the configuration settings for the specified webhook
|
|
304
|
+
* @param {String} projectOrProductUID
|
|
305
|
+
* @param {String} webhookUID Webhook UID
|
|
306
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
307
|
+
*/
|
|
308
|
+
}, {
|
|
309
|
+
key: "getWebhookSettingsWithHttpInfo",
|
|
310
|
+
value: function getWebhookSettingsWithHttpInfo(projectOrProductUID, webhookUID) {
|
|
311
|
+
var postBody = null;
|
|
312
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
313
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
314
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhookSettings");
|
|
315
|
+
}
|
|
316
|
+
// verify the required parameter 'webhookUID' is set
|
|
317
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
318
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhookSettings");
|
|
319
|
+
}
|
|
320
|
+
var pathParams = {
|
|
321
|
+
projectOrProductUID: projectOrProductUID,
|
|
322
|
+
webhookUID: webhookUID
|
|
323
|
+
};
|
|
324
|
+
var queryParams = {};
|
|
325
|
+
var headerParams = {};
|
|
326
|
+
var formParams = {};
|
|
327
|
+
var authNames = ["personalAccessToken"];
|
|
328
|
+
var contentTypes = [];
|
|
329
|
+
var accepts = ["application/json"];
|
|
330
|
+
var returnType = _WebhookSettings["default"];
|
|
331
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/settings", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Retrieves the configuration settings for the specified webhook
|
|
336
|
+
* @param {String} projectOrProductUID
|
|
337
|
+
* @param {String} webhookUID Webhook UID
|
|
338
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
339
|
+
*/
|
|
340
|
+
}, {
|
|
341
|
+
key: "getWebhookSettings",
|
|
342
|
+
value: function getWebhookSettings(projectOrProductUID, webhookUID) {
|
|
343
|
+
return this.getWebhookSettingsWithHttpInfo(projectOrProductUID, webhookUID).then(function (response_and_data) {
|
|
344
|
+
return response_and_data.data;
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
|
|
191
348
|
/**
|
|
192
349
|
* Retrieves all webhooks for the specified project
|
|
193
350
|
* @param {String} projectOrProductUID
|
|
@@ -278,5 +435,57 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
278
435
|
return response_and_data.data;
|
|
279
436
|
});
|
|
280
437
|
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Updates the configuration settings for the specified webhook. Update body will completely replace the existing settings.
|
|
441
|
+
* @param {String} projectOrProductUID
|
|
442
|
+
* @param {String} webhookUID Webhook UID
|
|
443
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
444
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
445
|
+
*/
|
|
446
|
+
}, {
|
|
447
|
+
key: "updateWebhookSettingsWithHttpInfo",
|
|
448
|
+
value: function updateWebhookSettingsWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings) {
|
|
449
|
+
var postBody = webhookSettings;
|
|
450
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
451
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
452
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateWebhookSettings");
|
|
453
|
+
}
|
|
454
|
+
// verify the required parameter 'webhookUID' is set
|
|
455
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
456
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling updateWebhookSettings");
|
|
457
|
+
}
|
|
458
|
+
// verify the required parameter 'webhookSettings' is set
|
|
459
|
+
if (webhookSettings === undefined || webhookSettings === null) {
|
|
460
|
+
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhookSettings");
|
|
461
|
+
}
|
|
462
|
+
var pathParams = {
|
|
463
|
+
projectOrProductUID: projectOrProductUID,
|
|
464
|
+
webhookUID: webhookUID
|
|
465
|
+
};
|
|
466
|
+
var queryParams = {};
|
|
467
|
+
var headerParams = {};
|
|
468
|
+
var formParams = {};
|
|
469
|
+
var authNames = ["personalAccessToken"];
|
|
470
|
+
var contentTypes = ["application/json"];
|
|
471
|
+
var accepts = ["application/json"];
|
|
472
|
+
var returnType = null;
|
|
473
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}/settings", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
* Updates the configuration settings for the specified webhook. Update body will completely replace the existing settings.
|
|
478
|
+
* @param {String} projectOrProductUID
|
|
479
|
+
* @param {String} webhookUID Webhook UID
|
|
480
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
481
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
482
|
+
*/
|
|
483
|
+
}, {
|
|
484
|
+
key: "updateWebhookSettings",
|
|
485
|
+
value: function updateWebhookSettings(projectOrProductUID, webhookUID, webhookSettings) {
|
|
486
|
+
return this.updateWebhookSettingsWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
487
|
+
return response_and_data.data;
|
|
488
|
+
});
|
|
489
|
+
}
|
|
281
490
|
}]);
|
|
282
491
|
}();
|
package/dist/index.js
CHANGED
|
@@ -873,12 +873,6 @@ Object.defineProperty(exports, "UpdateFleetRequest", {
|
|
|
873
873
|
return _UpdateFleetRequest["default"];
|
|
874
874
|
}
|
|
875
875
|
});
|
|
876
|
-
Object.defineProperty(exports, "UpdateHostFirmwareRequest", {
|
|
877
|
-
enumerable: true,
|
|
878
|
-
get: function get() {
|
|
879
|
-
return _UpdateHostFirmwareRequest["default"];
|
|
880
|
-
}
|
|
881
|
-
});
|
|
882
876
|
Object.defineProperty(exports, "UploadMetadata", {
|
|
883
877
|
enumerable: true,
|
|
884
878
|
get: function get() {
|
|
@@ -1086,7 +1080,6 @@ var _ThingworxRoute = _interopRequireDefault(require("./model/ThingworxRoute"));
|
|
|
1086
1080
|
var _TowerLocation = _interopRequireDefault(require("./model/TowerLocation"));
|
|
1087
1081
|
var _TwilioRoute = _interopRequireDefault(require("./model/TwilioRoute"));
|
|
1088
1082
|
var _UpdateFleetRequest = _interopRequireDefault(require("./model/UpdateFleetRequest"));
|
|
1089
|
-
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("./model/UpdateHostFirmwareRequest"));
|
|
1090
1083
|
var _UploadMetadata = _interopRequireDefault(require("./model/UploadMetadata"));
|
|
1091
1084
|
var _UsageData = _interopRequireDefault(require("./model/UsageData"));
|
|
1092
1085
|
var _UsageEventsData = _interopRequireDefault(require("./model/UsageEventsData"));
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AWSRoleConfig model module.
|
|
31
31
|
* @module model/AWSRoleConfig
|
|
32
|
-
* @version 6.1.0-beta.
|
|
32
|
+
* @version 6.1.0-beta.12
|
|
33
33
|
*/
|
|
34
34
|
var AWSRoleConfig = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version 6.1.0-beta.
|
|
32
|
+
* @version 6.1.0-beta.12
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|