@blues-inc/notehub-js 6.1.0-beta.12 → 6.1.0-beta.13
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 +8 -5
- 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 +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +173 -69
- package/dist/index.js +7 -0
- 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/CreateLegacyWebhookEventRequest.js +118 -0
- package/dist/model/CreateMonitor.js +1 -1
- 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 -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 +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/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.13
|
|
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
|
|
|
@@ -237,15 +237,17 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
237
237
|
| _NotehubJs.UsageApi_ | [**getEventsUsage**](docs/UsageApi.md#getEventsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/events |
|
|
238
238
|
| _NotehubJs.UsageApi_ | [**getRouteLogsUsage**](docs/UsageApi.md#getRouteLogsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/route-logs |
|
|
239
239
|
| _NotehubJs.UsageApi_ | [**getSessionsUsage**](docs/UsageApi.md#getSessionsUsage) | **GET** /v1/projects/{projectOrProductUID}/usage/sessions |
|
|
240
|
+
| _NotehubJs.WebhookApi_ | [**createLegacyWebhookEvent**](docs/WebhookApi.md#createLegacyWebhookEvent) | **POST** /v1/products/{productUID}/devices/{deviceUID}/webhook-event |
|
|
240
241
|
| _NotehubJs.WebhookApi_ | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
241
|
-
| _NotehubJs.WebhookApi_ | [**
|
|
242
|
-
| _NotehubJs.WebhookApi_ | [**
|
|
242
|
+
| _NotehubJs.WebhookApi_ | [**createWebhookDeviceEventByProduct**](docs/WebhookApi.md#createWebhookDeviceEventByProduct) | **POST** /v1/products/{productUID}/webhooks/{webhookUID}/devices/{deviceUID}/event |
|
|
243
|
+
| _NotehubJs.WebhookApi_ | [**createWebhookEventByProduct**](docs/WebhookApi.md#createWebhookEventByProduct) | **POST** /v1/products/{productUID}/webhooks/{webhookUID}/event |
|
|
243
244
|
| _NotehubJs.WebhookApi_ | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
244
245
|
| _NotehubJs.WebhookApi_ | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
245
|
-
| _NotehubJs.WebhookApi_ | [**
|
|
246
|
+
| _NotehubJs.WebhookApi_ | [**getWebhookSettingsByProduct**](docs/WebhookApi.md#getWebhookSettingsByProduct) | **GET** /v1/products/{productUID}/webhooks/{webhookUID}/settings |
|
|
246
247
|
| _NotehubJs.WebhookApi_ | [**getWebhooks**](docs/WebhookApi.md#getWebhooks) | **GET** /v1/projects/{projectOrProductUID}/webhooks |
|
|
248
|
+
| _NotehubJs.WebhookApi_ | [**updateLegacyWebhookSession**](docs/WebhookApi.md#updateLegacyWebhookSession) | **PUT** /v1/products/{productUID}/devices/{deviceUID}/webhook-session |
|
|
247
249
|
| _NotehubJs.WebhookApi_ | [**updateWebhook**](docs/WebhookApi.md#updateWebhook) | **PUT** /v1/projects/{projectOrProductUID}/webhooks/{webhookUID} |
|
|
248
|
-
| _NotehubJs.WebhookApi_ | [**
|
|
250
|
+
| _NotehubJs.WebhookApi_ | [**updateWebhookSettingsByProduct**](docs/WebhookApi.md#updateWebhookSettingsByProduct) | **PUT** /v1/products/{productUID}/webhooks/{webhookUID}/settings |
|
|
249
251
|
|
|
250
252
|
## Documentation for Models
|
|
251
253
|
|
|
@@ -266,6 +268,7 @@ All URIs are relative to *https://api.notefile.net*
|
|
|
266
268
|
- [NotehubJs.Contact](docs/Contact.md)
|
|
267
269
|
- [NotehubJs.CreateFleetRequest](docs/CreateFleetRequest.md)
|
|
268
270
|
- [NotehubJs.CreateJob201Response](docs/CreateJob201Response.md)
|
|
271
|
+
- [NotehubJs.CreateLegacyWebhookEventRequest](docs/CreateLegacyWebhookEventRequest.md)
|
|
269
272
|
- [NotehubJs.CreateMonitor](docs/CreateMonitor.md)
|
|
270
273
|
- [NotehubJs.CreateProductRequest](docs/CreateProductRequest.md)
|
|
271
274
|
- [NotehubJs.CreateProjectRequest](docs/CreateProjectRequest.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.13
|
|
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.13/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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
50
50
|
*/
|
|
51
51
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
52
52
|
/**
|
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.13
|
|
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.13
|
|
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.13
|
|
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.13
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -51,7 +51,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
51
51
|
/**
|
|
52
52
|
* Project service.
|
|
53
53
|
* @module api/ProjectApi
|
|
54
|
-
* @version 6.1.0-beta.
|
|
54
|
+
* @version 6.1.0-beta.13
|
|
55
55
|
*/
|
|
56
56
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
57
57
|
/**
|
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.13
|
|
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.13
|
|
35
35
|
*/
|
|
36
36
|
var UsageApi = exports["default"] = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/api/WebhookApi.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _CreateLegacyWebhookEventRequest = _interopRequireDefault(require("../model/CreateLegacyWebhookEventRequest"));
|
|
8
9
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
10
|
var _GetWebhooks200Response = _interopRequireDefault(require("../model/GetWebhooks200Response"));
|
|
10
11
|
var _WebhookSettings = _interopRequireDefault(require("../model/WebhookSettings"));
|
|
@@ -29,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
30
|
/**
|
|
30
31
|
* Webhook service.
|
|
31
32
|
* @module api/WebhookApi
|
|
32
|
-
* @version 6.1.0-beta.
|
|
33
|
+
* @version 6.1.0-beta.13
|
|
33
34
|
*/
|
|
34
35
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
36
|
/**
|
|
@@ -45,13 +46,65 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @param {String}
|
|
50
|
-
* @param {String}
|
|
51
|
-
* @param {
|
|
49
|
+
* Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
|
|
50
|
+
* @param {String} productUID
|
|
51
|
+
* @param {String} deviceUID
|
|
52
|
+
* @param {Object.<String, {String: Object}>} requestBody A Note-shaped event with notefile name, JSON body, and optional base64-encoded payload.
|
|
52
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
54
|
*/
|
|
54
55
|
return _createClass(WebhookApi, [{
|
|
56
|
+
key: "createLegacyWebhookEventWithHttpInfo",
|
|
57
|
+
value: function createLegacyWebhookEventWithHttpInfo(productUID, deviceUID, requestBody) {
|
|
58
|
+
var postBody = requestBody;
|
|
59
|
+
// verify the required parameter 'productUID' is set
|
|
60
|
+
if (productUID === undefined || productUID === null) {
|
|
61
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling createLegacyWebhookEvent");
|
|
62
|
+
}
|
|
63
|
+
// verify the required parameter 'deviceUID' is set
|
|
64
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
65
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createLegacyWebhookEvent");
|
|
66
|
+
}
|
|
67
|
+
// verify the required parameter 'requestBody' is set
|
|
68
|
+
if (requestBody === undefined || requestBody === null) {
|
|
69
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createLegacyWebhookEvent");
|
|
70
|
+
}
|
|
71
|
+
var pathParams = {
|
|
72
|
+
productUID: productUID,
|
|
73
|
+
deviceUID: deviceUID
|
|
74
|
+
};
|
|
75
|
+
var queryParams = {};
|
|
76
|
+
var headerParams = {};
|
|
77
|
+
var formParams = {};
|
|
78
|
+
var authNames = ["personalAccessToken"];
|
|
79
|
+
var contentTypes = ["application/json"];
|
|
80
|
+
var accepts = ["application/json"];
|
|
81
|
+
var returnType = null;
|
|
82
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/webhook-event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Legacy endpoint for sending an event from a webhook, associated with the given device (provisioning it if necessary). The request body is a Note-shaped object containing the notefile name, body, and optional payload.
|
|
87
|
+
* @param {String} productUID
|
|
88
|
+
* @param {String} deviceUID
|
|
89
|
+
* @param {Object.<String, {String: Object}>} requestBody A Note-shaped event with notefile name, JSON body, and optional base64-encoded payload.
|
|
90
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
91
|
+
*/
|
|
92
|
+
}, {
|
|
93
|
+
key: "createLegacyWebhookEvent",
|
|
94
|
+
value: function createLegacyWebhookEvent(productUID, deviceUID, requestBody) {
|
|
95
|
+
return this.createLegacyWebhookEventWithHttpInfo(productUID, deviceUID, requestBody).then(function (response_and_data) {
|
|
96
|
+
return response_and_data.data;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
102
|
+
* @param {String} projectOrProductUID
|
|
103
|
+
* @param {String} webhookUID Webhook UID
|
|
104
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
105
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
106
|
+
*/
|
|
107
|
+
}, {
|
|
55
108
|
key: "createWebhookWithHttpInfo",
|
|
56
109
|
value: function createWebhookWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings) {
|
|
57
110
|
var postBody = webhookSettings;
|
|
@@ -97,35 +150,35 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
97
150
|
}
|
|
98
151
|
|
|
99
152
|
/**
|
|
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}
|
|
153
|
+
* Sends an event to be processed by the specified webhook, addressed by productUID, 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.
|
|
154
|
+
* @param {String} productUID
|
|
102
155
|
* @param {String} webhookUID Webhook UID
|
|
103
156
|
* @param {String} deviceUID
|
|
104
157
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
105
158
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
106
159
|
*/
|
|
107
160
|
}, {
|
|
108
|
-
key: "
|
|
109
|
-
value: function
|
|
161
|
+
key: "createWebhookDeviceEventByProductWithHttpInfo",
|
|
162
|
+
value: function createWebhookDeviceEventByProductWithHttpInfo(productUID, webhookUID, deviceUID, requestBody) {
|
|
110
163
|
var postBody = requestBody;
|
|
111
|
-
// verify the required parameter '
|
|
112
|
-
if (
|
|
113
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
164
|
+
// verify the required parameter 'productUID' is set
|
|
165
|
+
if (productUID === undefined || productUID === null) {
|
|
166
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling createWebhookDeviceEventByProduct");
|
|
114
167
|
}
|
|
115
168
|
// verify the required parameter 'webhookUID' is set
|
|
116
169
|
if (webhookUID === undefined || webhookUID === null) {
|
|
117
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling
|
|
170
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhookDeviceEventByProduct");
|
|
118
171
|
}
|
|
119
172
|
// verify the required parameter 'deviceUID' is set
|
|
120
173
|
if (deviceUID === undefined || deviceUID === null) {
|
|
121
|
-
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling
|
|
174
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createWebhookDeviceEventByProduct");
|
|
122
175
|
}
|
|
123
176
|
// verify the required parameter 'requestBody' is set
|
|
124
177
|
if (requestBody === undefined || requestBody === null) {
|
|
125
|
-
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling
|
|
178
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookDeviceEventByProduct");
|
|
126
179
|
}
|
|
127
180
|
var pathParams = {
|
|
128
|
-
|
|
181
|
+
productUID: productUID,
|
|
129
182
|
webhookUID: webhookUID,
|
|
130
183
|
deviceUID: deviceUID
|
|
131
184
|
};
|
|
@@ -136,50 +189,50 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
136
189
|
var contentTypes = ["application/json"];
|
|
137
190
|
var accepts = ["application/json"];
|
|
138
191
|
var returnType = null;
|
|
139
|
-
return this.apiClient.callApi("/v1/
|
|
192
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/devices/{deviceUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
140
193
|
}
|
|
141
194
|
|
|
142
195
|
/**
|
|
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}
|
|
196
|
+
* Sends an event to be processed by the specified webhook, addressed by productUID, 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.
|
|
197
|
+
* @param {String} productUID
|
|
145
198
|
* @param {String} webhookUID Webhook UID
|
|
146
199
|
* @param {String} deviceUID
|
|
147
200
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
148
201
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
149
202
|
*/
|
|
150
203
|
}, {
|
|
151
|
-
key: "
|
|
152
|
-
value: function
|
|
153
|
-
return this.
|
|
204
|
+
key: "createWebhookDeviceEventByProduct",
|
|
205
|
+
value: function createWebhookDeviceEventByProduct(productUID, webhookUID, deviceUID, requestBody) {
|
|
206
|
+
return this.createWebhookDeviceEventByProductWithHttpInfo(productUID, webhookUID, deviceUID, requestBody).then(function (response_and_data) {
|
|
154
207
|
return response_and_data.data;
|
|
155
208
|
});
|
|
156
209
|
}
|
|
157
210
|
|
|
158
211
|
/**
|
|
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}
|
|
212
|
+
* Sends an event to be processed by the specified webhook, addressed by productUID. 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.
|
|
213
|
+
* @param {String} productUID
|
|
161
214
|
* @param {String} webhookUID Webhook UID
|
|
162
215
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
163
216
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
164
217
|
*/
|
|
165
218
|
}, {
|
|
166
|
-
key: "
|
|
167
|
-
value: function
|
|
219
|
+
key: "createWebhookEventByProductWithHttpInfo",
|
|
220
|
+
value: function createWebhookEventByProductWithHttpInfo(productUID, webhookUID, requestBody) {
|
|
168
221
|
var postBody = requestBody;
|
|
169
|
-
// verify the required parameter '
|
|
170
|
-
if (
|
|
171
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
222
|
+
// verify the required parameter 'productUID' is set
|
|
223
|
+
if (productUID === undefined || productUID === null) {
|
|
224
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling createWebhookEventByProduct");
|
|
172
225
|
}
|
|
173
226
|
// verify the required parameter 'webhookUID' is set
|
|
174
227
|
if (webhookUID === undefined || webhookUID === null) {
|
|
175
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling
|
|
228
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhookEventByProduct");
|
|
176
229
|
}
|
|
177
230
|
// verify the required parameter 'requestBody' is set
|
|
178
231
|
if (requestBody === undefined || requestBody === null) {
|
|
179
|
-
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling
|
|
232
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookEventByProduct");
|
|
180
233
|
}
|
|
181
234
|
var pathParams = {
|
|
182
|
-
|
|
235
|
+
productUID: productUID,
|
|
183
236
|
webhookUID: webhookUID
|
|
184
237
|
};
|
|
185
238
|
var queryParams = {};
|
|
@@ -189,20 +242,20 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
189
242
|
var contentTypes = ["application/json"];
|
|
190
243
|
var accepts = ["application/json"];
|
|
191
244
|
var returnType = null;
|
|
192
|
-
return this.apiClient.callApi("/v1/
|
|
245
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
193
246
|
}
|
|
194
247
|
|
|
195
248
|
/**
|
|
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}
|
|
249
|
+
* Sends an event to be processed by the specified webhook, addressed by productUID. 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.
|
|
250
|
+
* @param {String} productUID
|
|
198
251
|
* @param {String} webhookUID Webhook UID
|
|
199
252
|
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
200
253
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
201
254
|
*/
|
|
202
255
|
}, {
|
|
203
|
-
key: "
|
|
204
|
-
value: function
|
|
205
|
-
return this.
|
|
256
|
+
key: "createWebhookEventByProduct",
|
|
257
|
+
value: function createWebhookEventByProduct(productUID, webhookUID, requestBody) {
|
|
258
|
+
return this.createWebhookEventByProductWithHttpInfo(productUID, webhookUID, requestBody).then(function (response_and_data) {
|
|
206
259
|
return response_and_data.data;
|
|
207
260
|
});
|
|
208
261
|
}
|
|
@@ -300,25 +353,25 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
300
353
|
}
|
|
301
354
|
|
|
302
355
|
/**
|
|
303
|
-
* Retrieves the configuration settings for the specified webhook
|
|
304
|
-
* @param {String}
|
|
356
|
+
* Retrieves the configuration settings for the specified webhook, addressed by productUID.
|
|
357
|
+
* @param {String} productUID
|
|
305
358
|
* @param {String} webhookUID Webhook UID
|
|
306
359
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
307
360
|
*/
|
|
308
361
|
}, {
|
|
309
|
-
key: "
|
|
310
|
-
value: function
|
|
362
|
+
key: "getWebhookSettingsByProductWithHttpInfo",
|
|
363
|
+
value: function getWebhookSettingsByProductWithHttpInfo(productUID, webhookUID) {
|
|
311
364
|
var postBody = null;
|
|
312
|
-
// verify the required parameter '
|
|
313
|
-
if (
|
|
314
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
365
|
+
// verify the required parameter 'productUID' is set
|
|
366
|
+
if (productUID === undefined || productUID === null) {
|
|
367
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling getWebhookSettingsByProduct");
|
|
315
368
|
}
|
|
316
369
|
// verify the required parameter 'webhookUID' is set
|
|
317
370
|
if (webhookUID === undefined || webhookUID === null) {
|
|
318
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling
|
|
371
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhookSettingsByProduct");
|
|
319
372
|
}
|
|
320
373
|
var pathParams = {
|
|
321
|
-
|
|
374
|
+
productUID: productUID,
|
|
322
375
|
webhookUID: webhookUID
|
|
323
376
|
};
|
|
324
377
|
var queryParams = {};
|
|
@@ -328,19 +381,19 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
328
381
|
var contentTypes = [];
|
|
329
382
|
var accepts = ["application/json"];
|
|
330
383
|
var returnType = _WebhookSettings["default"];
|
|
331
|
-
return this.apiClient.callApi("/v1/
|
|
384
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/settings", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
332
385
|
}
|
|
333
386
|
|
|
334
387
|
/**
|
|
335
|
-
* Retrieves the configuration settings for the specified webhook
|
|
336
|
-
* @param {String}
|
|
388
|
+
* Retrieves the configuration settings for the specified webhook, addressed by productUID.
|
|
389
|
+
* @param {String} productUID
|
|
337
390
|
* @param {String} webhookUID Webhook UID
|
|
338
391
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
339
392
|
*/
|
|
340
393
|
}, {
|
|
341
|
-
key: "
|
|
342
|
-
value: function
|
|
343
|
-
return this.
|
|
394
|
+
key: "getWebhookSettingsByProduct",
|
|
395
|
+
value: function getWebhookSettingsByProduct(productUID, webhookUID) {
|
|
396
|
+
return this.getWebhookSettingsByProductWithHttpInfo(productUID, webhookUID).then(function (response_and_data) {
|
|
344
397
|
return response_and_data.data;
|
|
345
398
|
});
|
|
346
399
|
}
|
|
@@ -384,6 +437,57 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
384
437
|
});
|
|
385
438
|
}
|
|
386
439
|
|
|
440
|
+
/**
|
|
441
|
+
* Legacy endpoint for opening or updating a webhook session for the given device (provisioning the device if necessary). Used by external services that need to maintain a callable session against a device behind a webhook.
|
|
442
|
+
* @param {String} productUID
|
|
443
|
+
* @param {String} deviceUID
|
|
444
|
+
* @param {Object} opts Optional parameters
|
|
445
|
+
* @param {Object.<String, {String: Object}>} opts.requestBody Optional session metadata.
|
|
446
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
447
|
+
*/
|
|
448
|
+
}, {
|
|
449
|
+
key: "updateLegacyWebhookSessionWithHttpInfo",
|
|
450
|
+
value: function updateLegacyWebhookSessionWithHttpInfo(productUID, deviceUID, opts) {
|
|
451
|
+
opts = opts || {};
|
|
452
|
+
var postBody = opts["requestBody"];
|
|
453
|
+
// verify the required parameter 'productUID' is set
|
|
454
|
+
if (productUID === undefined || productUID === null) {
|
|
455
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling updateLegacyWebhookSession");
|
|
456
|
+
}
|
|
457
|
+
// verify the required parameter 'deviceUID' is set
|
|
458
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
459
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling updateLegacyWebhookSession");
|
|
460
|
+
}
|
|
461
|
+
var pathParams = {
|
|
462
|
+
productUID: productUID,
|
|
463
|
+
deviceUID: deviceUID
|
|
464
|
+
};
|
|
465
|
+
var queryParams = {};
|
|
466
|
+
var headerParams = {};
|
|
467
|
+
var formParams = {};
|
|
468
|
+
var authNames = ["personalAccessToken"];
|
|
469
|
+
var contentTypes = ["application/json"];
|
|
470
|
+
var accepts = ["application/json"];
|
|
471
|
+
var returnType = null;
|
|
472
|
+
return this.apiClient.callApi("/v1/products/{productUID}/devices/{deviceUID}/webhook-session", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Legacy endpoint for opening or updating a webhook session for the given device (provisioning the device if necessary). Used by external services that need to maintain a callable session against a device behind a webhook.
|
|
477
|
+
* @param {String} productUID
|
|
478
|
+
* @param {String} deviceUID
|
|
479
|
+
* @param {Object} opts Optional parameters
|
|
480
|
+
* @param {Object.<String, {String: Object}>} opts.requestBody Optional session metadata.
|
|
481
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
482
|
+
*/
|
|
483
|
+
}, {
|
|
484
|
+
key: "updateLegacyWebhookSession",
|
|
485
|
+
value: function updateLegacyWebhookSession(productUID, deviceUID, opts) {
|
|
486
|
+
return this.updateLegacyWebhookSessionWithHttpInfo(productUID, deviceUID, opts).then(function (response_and_data) {
|
|
487
|
+
return response_and_data.data;
|
|
488
|
+
});
|
|
489
|
+
}
|
|
490
|
+
|
|
387
491
|
/**
|
|
388
492
|
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
389
493
|
* @param {String} projectOrProductUID
|
|
@@ -437,30 +541,30 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
437
541
|
}
|
|
438
542
|
|
|
439
543
|
/**
|
|
440
|
-
* Updates the configuration settings for the specified webhook. Update body will completely replace the existing settings.
|
|
441
|
-
* @param {String}
|
|
544
|
+
* Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
|
|
545
|
+
* @param {String} productUID
|
|
442
546
|
* @param {String} webhookUID Webhook UID
|
|
443
547
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
444
548
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
445
549
|
*/
|
|
446
550
|
}, {
|
|
447
|
-
key: "
|
|
448
|
-
value: function
|
|
551
|
+
key: "updateWebhookSettingsByProductWithHttpInfo",
|
|
552
|
+
value: function updateWebhookSettingsByProductWithHttpInfo(productUID, webhookUID, webhookSettings) {
|
|
449
553
|
var postBody = webhookSettings;
|
|
450
|
-
// verify the required parameter '
|
|
451
|
-
if (
|
|
452
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
554
|
+
// verify the required parameter 'productUID' is set
|
|
555
|
+
if (productUID === undefined || productUID === null) {
|
|
556
|
+
throw new _Error["default"]("Missing the required parameter 'productUID' when calling updateWebhookSettingsByProduct");
|
|
453
557
|
}
|
|
454
558
|
// verify the required parameter 'webhookUID' is set
|
|
455
559
|
if (webhookUID === undefined || webhookUID === null) {
|
|
456
|
-
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling
|
|
560
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling updateWebhookSettingsByProduct");
|
|
457
561
|
}
|
|
458
562
|
// verify the required parameter 'webhookSettings' is set
|
|
459
563
|
if (webhookSettings === undefined || webhookSettings === null) {
|
|
460
|
-
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling
|
|
564
|
+
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhookSettingsByProduct");
|
|
461
565
|
}
|
|
462
566
|
var pathParams = {
|
|
463
|
-
|
|
567
|
+
productUID: productUID,
|
|
464
568
|
webhookUID: webhookUID
|
|
465
569
|
};
|
|
466
570
|
var queryParams = {};
|
|
@@ -470,20 +574,20 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
470
574
|
var contentTypes = ["application/json"];
|
|
471
575
|
var accepts = ["application/json"];
|
|
472
576
|
var returnType = null;
|
|
473
|
-
return this.apiClient.callApi("/v1/
|
|
577
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/settings", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
474
578
|
}
|
|
475
579
|
|
|
476
580
|
/**
|
|
477
|
-
* Updates the configuration settings for the specified webhook. Update body will completely replace the existing settings.
|
|
478
|
-
* @param {String}
|
|
581
|
+
* Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
|
|
582
|
+
* @param {String} productUID
|
|
479
583
|
* @param {String} webhookUID Webhook UID
|
|
480
584
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
481
585
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
482
586
|
*/
|
|
483
587
|
}, {
|
|
484
|
-
key: "
|
|
485
|
-
value: function
|
|
486
|
-
return this.
|
|
588
|
+
key: "updateWebhookSettingsByProduct",
|
|
589
|
+
value: function updateWebhookSettingsByProduct(productUID, webhookUID, webhookSettings) {
|
|
590
|
+
return this.updateWebhookSettingsByProductWithHttpInfo(productUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
487
591
|
return response_and_data.data;
|
|
488
592
|
});
|
|
489
593
|
}
|
package/dist/index.js
CHANGED
|
@@ -129,6 +129,12 @@ Object.defineProperty(exports, "CreateJob201Response", {
|
|
|
129
129
|
return _CreateJob201Response["default"];
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
|
+
Object.defineProperty(exports, "CreateLegacyWebhookEventRequest", {
|
|
133
|
+
enumerable: true,
|
|
134
|
+
get: function get() {
|
|
135
|
+
return _CreateLegacyWebhookEventRequest["default"];
|
|
136
|
+
}
|
|
137
|
+
});
|
|
132
138
|
Object.defineProperty(exports, "CreateMonitor", {
|
|
133
139
|
enumerable: true,
|
|
134
140
|
get: function get() {
|
|
@@ -963,6 +969,7 @@ var _CloneProjectRequest = _interopRequireDefault(require("./model/CloneProjectR
|
|
|
963
969
|
var _Contact = _interopRequireDefault(require("./model/Contact"));
|
|
964
970
|
var _CreateFleetRequest = _interopRequireDefault(require("./model/CreateFleetRequest"));
|
|
965
971
|
var _CreateJob201Response = _interopRequireDefault(require("./model/CreateJob201Response"));
|
|
972
|
+
var _CreateLegacyWebhookEventRequest = _interopRequireDefault(require("./model/CreateLegacyWebhookEventRequest"));
|
|
966
973
|
var _CreateMonitor = _interopRequireDefault(require("./model/CreateMonitor"));
|
|
967
974
|
var _CreateProductRequest = _interopRequireDefault(require("./model/CreateProductRequest"));
|
|
968
975
|
var _CreateProjectRequest = _interopRequireDefault(require("./model/CreateProjectRequest"));
|
|
@@ -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.13
|
|
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.13
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|