@blues-inc/notehub-js 1.0.33-beta.4 → 1.0.33-beta.5
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 +6 -6
- 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/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RepositoryApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +51 -51
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/Aws.js +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.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/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/DataSet.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.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/DeviceDfuStatusCurrent.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/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.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/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectFleets200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +1 -1
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +1 -1
- package/dist/model/HttpFilter.js +1 -1
- package/dist/model/HttpTransform.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/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSchema.js +1 -1
- package/dist/model/PostProvisionProjectDeviceRequest.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/Proxy.js +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +1 -1
- package/dist/model/QuestionDataResponseMap.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Slack.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/SnowflakeTransform.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UserDbRoute.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: 1.0.33-beta.
|
|
9
|
+
- Package version: 1.0.33-beta.5
|
|
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
|
|
|
@@ -224,11 +224,11 @@ Class | Method | HTTP request | Description
|
|
|
224
224
|
*NotehubJs.RouteApi* | [**getRouteLogsByRoute**](docs/RouteApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectOrProductUID}/routes/{routeUID}/route-logs |
|
|
225
225
|
*NotehubJs.RouteApi* | [**getRoutes**](docs/RouteApi.md#getRoutes) | **GET** /v1/projects/{projectOrProductUID}/routes |
|
|
226
226
|
*NotehubJs.RouteApi* | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectOrProductUID}/routes/{routeUID} |
|
|
227
|
-
*NotehubJs.WebhookApi* | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/
|
|
228
|
-
*NotehubJs.WebhookApi* | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/
|
|
229
|
-
*NotehubJs.WebhookApi* | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/
|
|
230
|
-
*NotehubJs.WebhookApi* | [**getWebhooks**](docs/WebhookApi.md#getWebhooks) | **GET** /v1/
|
|
231
|
-
*NotehubJs.WebhookApi* | [**updateWebhook**](docs/WebhookApi.md#updateWebhook) | **PUT** /v1/
|
|
227
|
+
*NotehubJs.WebhookApi* | [**createWebhook**](docs/WebhookApi.md#createWebhook) | **POST** /v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID} |
|
|
228
|
+
*NotehubJs.WebhookApi* | [**deleteWebhook**](docs/WebhookApi.md#deleteWebhook) | **DELETE** /v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID} |
|
|
229
|
+
*NotehubJs.WebhookApi* | [**getWebhook**](docs/WebhookApi.md#getWebhook) | **GET** /v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID} |
|
|
230
|
+
*NotehubJs.WebhookApi* | [**getWebhooks**](docs/WebhookApi.md#getWebhooks) | **GET** /v1/projects/{projectOrProductUIDParam}/webhooks |
|
|
231
|
+
*NotehubJs.WebhookApi* | [**updateWebhook**](docs/WebhookApi.md#updateWebhook) | **PUT** /v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID} |
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
## Documentation for Models
|
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 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
/**
|
|
32
32
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -75,7 +75,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
75
75
|
*/
|
|
76
76
|
this.defaultHeaders = {};
|
|
77
77
|
if (typeof window === 'undefined') {
|
|
78
|
-
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.33-beta.
|
|
78
|
+
this.defaultHeaders['User-Agent'] = 'OpenAPI-Generator/1.0.33-beta.5/Javascript';
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
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 1.0.33-beta.
|
|
31
|
+
* @version 1.0.33-beta.5
|
|
32
32
|
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* Authorization service.
|
|
30
30
|
* @module api/AuthorizationApi
|
|
31
|
-
* @version 1.0.33-beta.
|
|
31
|
+
* @version 1.0.33-beta.5
|
|
32
32
|
*/
|
|
33
33
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* BillingAccount service.
|
|
30
30
|
* @module api/BillingAccountApi
|
|
31
|
-
* @version 1.0.33-beta.
|
|
31
|
+
* @version 1.0.33-beta.5
|
|
32
32
|
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -45,7 +45,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
45
45
|
/**
|
|
46
46
|
* Device service.
|
|
47
47
|
* @module api/DeviceApi
|
|
48
|
-
* @version 1.0.33-beta.
|
|
48
|
+
* @version 1.0.33-beta.5
|
|
49
49
|
*/
|
|
50
50
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
51
51
|
/**
|
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 1.0.33-beta.
|
|
33
|
+
* @version 1.0.33-beta.5
|
|
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 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
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 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -49,7 +49,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
49
49
|
/**
|
|
50
50
|
* Project service.
|
|
51
51
|
* @module api/ProjectApi
|
|
52
|
-
* @version 1.0.33-beta.
|
|
52
|
+
* @version 1.0.33-beta.5
|
|
53
53
|
*/
|
|
54
54
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
55
55
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* Repository service.
|
|
32
32
|
* @module api/RepositoryApi
|
|
33
|
-
* @version 1.0.33-beta.
|
|
33
|
+
* @version 1.0.33-beta.5
|
|
34
34
|
*/
|
|
35
35
|
var RepositoryApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
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 1.0.33-beta.
|
|
33
|
+
* @version 1.0.33-beta.5
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
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 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -46,18 +46,18 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
49
|
-
* @param {String}
|
|
49
|
+
* @param {String} projectOrProductUID
|
|
50
50
|
* @param {String} webhookUID Webhook UID
|
|
51
51
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
53
|
*/
|
|
54
54
|
return _createClass(WebhookApi, [{
|
|
55
55
|
key: "createWebhookWithHttpInfo",
|
|
56
|
-
value: function createWebhookWithHttpInfo(
|
|
56
|
+
value: function createWebhookWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings) {
|
|
57
57
|
var postBody = webhookSettings;
|
|
58
|
-
// verify the required parameter '
|
|
59
|
-
if (
|
|
60
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
58
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
59
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
60
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createWebhook");
|
|
61
61
|
}
|
|
62
62
|
// verify the required parameter 'webhookUID' is set
|
|
63
63
|
if (webhookUID === undefined || webhookUID === null) {
|
|
@@ -68,7 +68,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
68
68
|
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling createWebhook");
|
|
69
69
|
}
|
|
70
70
|
var pathParams = {
|
|
71
|
-
'
|
|
71
|
+
'projectOrProductUID': projectOrProductUID,
|
|
72
72
|
'webhookUID': webhookUID
|
|
73
73
|
};
|
|
74
74
|
var queryParams = {};
|
|
@@ -78,44 +78,44 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
78
78
|
var contentTypes = ['application/json'];
|
|
79
79
|
var accepts = ['application/json'];
|
|
80
80
|
var returnType = null;
|
|
81
|
-
return this.apiClient.callApi('/v1/
|
|
81
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
86
|
-
* @param {String}
|
|
86
|
+
* @param {String} projectOrProductUID
|
|
87
87
|
* @param {String} webhookUID Webhook UID
|
|
88
88
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
89
89
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
90
90
|
*/
|
|
91
91
|
}, {
|
|
92
92
|
key: "createWebhook",
|
|
93
|
-
value: function createWebhook(
|
|
94
|
-
return this.createWebhookWithHttpInfo(
|
|
93
|
+
value: function createWebhook(projectOrProductUID, webhookUID, webhookSettings) {
|
|
94
|
+
return this.createWebhookWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
95
95
|
return response_and_data.data;
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Deletes the specified webhook
|
|
101
|
-
* @param {String}
|
|
101
|
+
* @param {String} projectOrProductUID
|
|
102
102
|
* @param {String} webhookUID Webhook UID
|
|
103
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
104
104
|
*/
|
|
105
105
|
}, {
|
|
106
106
|
key: "deleteWebhookWithHttpInfo",
|
|
107
|
-
value: function deleteWebhookWithHttpInfo(
|
|
107
|
+
value: function deleteWebhookWithHttpInfo(projectOrProductUID, webhookUID) {
|
|
108
108
|
var postBody = null;
|
|
109
|
-
// verify the required parameter '
|
|
110
|
-
if (
|
|
111
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
109
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
110
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
111
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteWebhook");
|
|
112
112
|
}
|
|
113
113
|
// verify the required parameter 'webhookUID' is set
|
|
114
114
|
if (webhookUID === undefined || webhookUID === null) {
|
|
115
115
|
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling deleteWebhook");
|
|
116
116
|
}
|
|
117
117
|
var pathParams = {
|
|
118
|
-
'
|
|
118
|
+
'projectOrProductUID': projectOrProductUID,
|
|
119
119
|
'webhookUID': webhookUID
|
|
120
120
|
};
|
|
121
121
|
var queryParams = {};
|
|
@@ -125,43 +125,43 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
125
125
|
var contentTypes = [];
|
|
126
126
|
var accepts = ['application/json'];
|
|
127
127
|
var returnType = null;
|
|
128
|
-
return this.apiClient.callApi('/v1/
|
|
128
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Deletes the specified webhook
|
|
133
|
-
* @param {String}
|
|
133
|
+
* @param {String} projectOrProductUID
|
|
134
134
|
* @param {String} webhookUID Webhook UID
|
|
135
135
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
136
136
|
*/
|
|
137
137
|
}, {
|
|
138
138
|
key: "deleteWebhook",
|
|
139
|
-
value: function deleteWebhook(
|
|
140
|
-
return this.deleteWebhookWithHttpInfo(
|
|
139
|
+
value: function deleteWebhook(projectOrProductUID, webhookUID) {
|
|
140
|
+
return this.deleteWebhookWithHttpInfo(projectOrProductUID, webhookUID).then(function (response_and_data) {
|
|
141
141
|
return response_and_data.data;
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Retrieves the configuration settings for the specified webhook
|
|
147
|
-
* @param {String}
|
|
147
|
+
* @param {String} projectOrProductUID
|
|
148
148
|
* @param {String} webhookUID Webhook UID
|
|
149
149
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
150
150
|
*/
|
|
151
151
|
}, {
|
|
152
152
|
key: "getWebhookWithHttpInfo",
|
|
153
|
-
value: function getWebhookWithHttpInfo(
|
|
153
|
+
value: function getWebhookWithHttpInfo(projectOrProductUID, webhookUID) {
|
|
154
154
|
var postBody = null;
|
|
155
|
-
// verify the required parameter '
|
|
156
|
-
if (
|
|
157
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
155
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
156
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
157
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhook");
|
|
158
158
|
}
|
|
159
159
|
// verify the required parameter 'webhookUID' is set
|
|
160
160
|
if (webhookUID === undefined || webhookUID === null) {
|
|
161
161
|
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhook");
|
|
162
162
|
}
|
|
163
163
|
var pathParams = {
|
|
164
|
-
'
|
|
164
|
+
'projectOrProductUID': projectOrProductUID,
|
|
165
165
|
'webhookUID': webhookUID
|
|
166
166
|
};
|
|
167
167
|
var queryParams = {};
|
|
@@ -171,38 +171,38 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
171
171
|
var contentTypes = [];
|
|
172
172
|
var accepts = ['application/json'];
|
|
173
173
|
var returnType = _WebhookSettings["default"];
|
|
174
|
-
return this.apiClient.callApi('/v1/
|
|
174
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Retrieves the configuration settings for the specified webhook
|
|
179
|
-
* @param {String}
|
|
179
|
+
* @param {String} projectOrProductUID
|
|
180
180
|
* @param {String} webhookUID Webhook UID
|
|
181
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
182
182
|
*/
|
|
183
183
|
}, {
|
|
184
184
|
key: "getWebhook",
|
|
185
|
-
value: function getWebhook(
|
|
186
|
-
return this.getWebhookWithHttpInfo(
|
|
185
|
+
value: function getWebhook(projectOrProductUID, webhookUID) {
|
|
186
|
+
return this.getWebhookWithHttpInfo(projectOrProductUID, webhookUID).then(function (response_and_data) {
|
|
187
187
|
return response_and_data.data;
|
|
188
188
|
});
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Retrieves all webhooks for the specified project
|
|
193
|
-
* @param {String}
|
|
193
|
+
* @param {String} projectOrProductUID
|
|
194
194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
|
|
195
195
|
*/
|
|
196
196
|
}, {
|
|
197
197
|
key: "getWebhooksWithHttpInfo",
|
|
198
|
-
value: function getWebhooksWithHttpInfo(
|
|
198
|
+
value: function getWebhooksWithHttpInfo(projectOrProductUID) {
|
|
199
199
|
var postBody = null;
|
|
200
|
-
// verify the required parameter '
|
|
201
|
-
if (
|
|
202
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
200
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
201
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
202
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhooks");
|
|
203
203
|
}
|
|
204
204
|
var pathParams = {
|
|
205
|
-
'
|
|
205
|
+
'projectOrProductUID': projectOrProductUID
|
|
206
206
|
};
|
|
207
207
|
var queryParams = {};
|
|
208
208
|
var headerParams = {};
|
|
@@ -211,36 +211,36 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
211
211
|
var contentTypes = [];
|
|
212
212
|
var accepts = ['application/json'];
|
|
213
213
|
var returnType = _GetWebhooks200Response["default"];
|
|
214
|
-
return this.apiClient.callApi('/v1/
|
|
214
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Retrieves all webhooks for the specified project
|
|
219
|
-
* @param {String}
|
|
219
|
+
* @param {String} projectOrProductUID
|
|
220
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
|
|
221
221
|
*/
|
|
222
222
|
}, {
|
|
223
223
|
key: "getWebhooks",
|
|
224
|
-
value: function getWebhooks(
|
|
225
|
-
return this.getWebhooksWithHttpInfo(
|
|
224
|
+
value: function getWebhooks(projectOrProductUID) {
|
|
225
|
+
return this.getWebhooksWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
226
226
|
return response_and_data.data;
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* 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.
|
|
232
|
-
* @param {String}
|
|
232
|
+
* @param {String} projectOrProductUID
|
|
233
233
|
* @param {String} webhookUID Webhook UID
|
|
234
234
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
235
235
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
236
236
|
*/
|
|
237
237
|
}, {
|
|
238
238
|
key: "updateWebhookWithHttpInfo",
|
|
239
|
-
value: function updateWebhookWithHttpInfo(
|
|
239
|
+
value: function updateWebhookWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings) {
|
|
240
240
|
var postBody = webhookSettings;
|
|
241
|
-
// verify the required parameter '
|
|
242
|
-
if (
|
|
243
|
-
throw new _Error["default"]("Missing the required parameter '
|
|
241
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
242
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
243
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateWebhook");
|
|
244
244
|
}
|
|
245
245
|
// verify the required parameter 'webhookUID' is set
|
|
246
246
|
if (webhookUID === undefined || webhookUID === null) {
|
|
@@ -251,7 +251,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
251
251
|
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhook");
|
|
252
252
|
}
|
|
253
253
|
var pathParams = {
|
|
254
|
-
'
|
|
254
|
+
'projectOrProductUID': projectOrProductUID,
|
|
255
255
|
'webhookUID': webhookUID
|
|
256
256
|
};
|
|
257
257
|
var queryParams = {};
|
|
@@ -261,20 +261,20 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
261
261
|
var contentTypes = ['application/json'];
|
|
262
262
|
var accepts = ['application/json'];
|
|
263
263
|
var returnType = null;
|
|
264
|
-
return this.apiClient.callApi('/v1/
|
|
264
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUIDParam}/webhooks/{webhookUID}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* 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.
|
|
269
|
-
* @param {String}
|
|
269
|
+
* @param {String} projectOrProductUID
|
|
270
270
|
* @param {String} webhookUID Webhook UID
|
|
271
271
|
* @param {module:model/WebhookSettings} webhookSettings
|
|
272
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
273
273
|
*/
|
|
274
274
|
}, {
|
|
275
275
|
key: "updateWebhook",
|
|
276
|
-
value: function updateWebhook(
|
|
277
|
-
return this.updateWebhookWithHttpInfo(
|
|
276
|
+
value: function updateWebhook(projectOrProductUID, webhookUID, webhookSettings) {
|
|
277
|
+
return this.updateWebhookWithHttpInfo(projectOrProductUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
278
278
|
return response_and_data.data;
|
|
279
279
|
});
|
|
280
280
|
}
|
package/dist/model/Alert.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertDataInner model module.
|
|
28
28
|
* @module model/AlertDataInner
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var AlertDataInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The AlertNotificationsInner model module.
|
|
28
28
|
* @module model/AlertNotificationsInner
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var AlertNotificationsInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Aws.js
CHANGED
package/dist/model/Azure.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BillingAccount model module.
|
|
32
32
|
* @module model/BillingAccount
|
|
33
|
-
* @version 1.0.33-beta.
|
|
33
|
+
* @version 1.0.33-beta.5
|
|
34
34
|
*/
|
|
35
35
|
var BillingAccount = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/Body.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CloneProjectRequest model module.
|
|
31
31
|
* @module model/CloneProjectRequest
|
|
32
|
-
* @version 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var CloneProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Contact.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateFleetRequest model module.
|
|
28
28
|
* @module model/CreateFleetRequest
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The CreateMonitor model module.
|
|
33
33
|
* @module model/CreateMonitor
|
|
34
|
-
* @version 1.0.33-beta.
|
|
34
|
+
* @version 1.0.33-beta.5
|
|
35
35
|
*/
|
|
36
36
|
var CreateMonitor = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateProductRequest model module.
|
|
31
31
|
* @module model/CreateProductRequest
|
|
32
|
-
* @version 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var CreateProductRequest = /*#__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 CreateProjectRequest model module.
|
|
31
31
|
* @module model/CreateProjectRequest
|
|
32
|
-
* @version 1.0.33-beta.
|
|
32
|
+
* @version 1.0.33-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateUpdateRepository model module.
|
|
28
28
|
* @module model/CreateUpdateRepository
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var CreateUpdateRepository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CurrentFirmware model module.
|
|
29
29
|
* @module model/CurrentFirmware
|
|
30
|
-
* @version 1.0.33-beta.
|
|
30
|
+
* @version 1.0.33-beta.5
|
|
31
31
|
*/
|
|
32
32
|
var CurrentFirmware = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/DFUEnv.js
CHANGED
package/dist/model/DFUState.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DFUState model module.
|
|
28
28
|
* @module model/DFUState
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var DFUState = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataField.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataField model module.
|
|
28
28
|
* @module model/DataField
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var DataField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/DataSet.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The DataSetField model module.
|
|
28
28
|
* @module model/DataSetField
|
|
29
|
-
* @version 1.0.33-beta.
|
|
29
|
+
* @version 1.0.33-beta.5
|
|
30
30
|
*/
|
|
31
31
|
var DataSetField = /*#__PURE__*/function () {
|
|
32
32
|
/**
|