@blues-inc/notehub-js 6.2.0-beta.2 → 6.2.0-beta.21
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 +14 -9
- 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 +124 -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 -191
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +318 -5
- package/dist/index.js +35 -28
- 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/{ProjectSecret.js → GetDeviceJourney200Response.js} +52 -67
- package/dist/model/{GetProjectSecretsResponse.js → GetDeviceJourney200ResponseJourney.js} +44 -33
- package/dist/model/{CreateProjectSecretRequest.js → GetDeviceJourneys200Response.js} +52 -41
- package/dist/model/{UpdateProjectSecretRequest.js → GetDeviceJourneys200ResponseJourneysInner.js} +49 -31
- 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/UpdateHostFirmwareRequest.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/api/ProjectApi.js
CHANGED
|
@@ -11,7 +11,6 @@ var _CloneProjectRequest = _interopRequireDefault(require("../model/CloneProject
|
|
|
11
11
|
var _CreateFleetRequest = _interopRequireDefault(require("../model/CreateFleetRequest"));
|
|
12
12
|
var _CreateProductRequest = _interopRequireDefault(require("../model/CreateProductRequest"));
|
|
13
13
|
var _CreateProjectRequest = _interopRequireDefault(require("../model/CreateProjectRequest"));
|
|
14
|
-
var _CreateProjectSecretRequest = _interopRequireDefault(require("../model/CreateProjectSecretRequest"));
|
|
15
14
|
var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFromFleetsRequest"));
|
|
16
15
|
var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
|
|
17
16
|
var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
|
|
@@ -26,15 +25,12 @@ var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
|
26
25
|
var _GetDeviceFleets200Response = _interopRequireDefault(require("../model/GetDeviceFleets200Response"));
|
|
27
26
|
var _GetProducts200Response = _interopRequireDefault(require("../model/GetProducts200Response"));
|
|
28
27
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
29
|
-
var _GetProjectSecretsResponse = _interopRequireDefault(require("../model/GetProjectSecretsResponse"));
|
|
30
28
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
31
29
|
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
32
30
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
33
31
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
34
|
-
var _ProjectSecret = _interopRequireDefault(require("../model/ProjectSecret"));
|
|
35
32
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
36
33
|
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("../model/UpdateHostFirmwareRequest"));
|
|
37
|
-
var _UpdateProjectSecretRequest = _interopRequireDefault(require("../model/UpdateProjectSecretRequest"));
|
|
38
34
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
39
35
|
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); }
|
|
40
36
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -56,7 +52,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
56
52
|
/**
|
|
57
53
|
* Project service.
|
|
58
54
|
* @module api/ProjectApi
|
|
59
|
-
* @version 6.2.0-beta.
|
|
55
|
+
* @version 6.2.0-beta.21
|
|
60
56
|
*/
|
|
61
57
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
58
|
/**
|
|
@@ -295,51 +291,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
295
291
|
});
|
|
296
292
|
}
|
|
297
293
|
|
|
298
|
-
/**
|
|
299
|
-
* Create a new project secret
|
|
300
|
-
* @param {String} projectOrProductUID
|
|
301
|
-
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
302
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
303
|
-
*/
|
|
304
|
-
}, {
|
|
305
|
-
key: "createProjectSecretWithHttpInfo",
|
|
306
|
-
value: function createProjectSecretWithHttpInfo(projectOrProductUID, createProjectSecretRequest) {
|
|
307
|
-
var postBody = createProjectSecretRequest;
|
|
308
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
309
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
310
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling createProjectSecret");
|
|
311
|
-
}
|
|
312
|
-
// verify the required parameter 'createProjectSecretRequest' is set
|
|
313
|
-
if (createProjectSecretRequest === undefined || createProjectSecretRequest === null) {
|
|
314
|
-
throw new _Error["default"]("Missing the required parameter 'createProjectSecretRequest' when calling createProjectSecret");
|
|
315
|
-
}
|
|
316
|
-
var pathParams = {
|
|
317
|
-
projectOrProductUID: projectOrProductUID
|
|
318
|
-
};
|
|
319
|
-
var queryParams = {};
|
|
320
|
-
var headerParams = {};
|
|
321
|
-
var formParams = {};
|
|
322
|
-
var authNames = ["personalAccessToken"];
|
|
323
|
-
var contentTypes = ["application/json"];
|
|
324
|
-
var accepts = ["application/json"];
|
|
325
|
-
var returnType = _ProjectSecret["default"];
|
|
326
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* Create a new project secret
|
|
331
|
-
* @param {String} projectOrProductUID
|
|
332
|
-
* @param {module:model/CreateProjectSecretRequest} createProjectSecretRequest
|
|
333
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
334
|
-
*/
|
|
335
|
-
}, {
|
|
336
|
-
key: "createProjectSecret",
|
|
337
|
-
value: function createProjectSecret(projectOrProductUID, createProjectSecretRequest) {
|
|
338
|
-
return this.createProjectSecretWithHttpInfo(projectOrProductUID, createProjectSecretRequest).then(function (response_and_data) {
|
|
339
|
-
return response_and_data.data;
|
|
340
|
-
});
|
|
341
|
-
}
|
|
342
|
-
|
|
343
294
|
/**
|
|
344
295
|
* Remove Device from Fleets
|
|
345
296
|
* @param {String} projectOrProductUID
|
|
@@ -675,52 +626,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
675
626
|
});
|
|
676
627
|
}
|
|
677
628
|
|
|
678
|
-
/**
|
|
679
|
-
* Delete a project secret by name
|
|
680
|
-
* @param {String} projectOrProductUID
|
|
681
|
-
* @param {String} secretName The name of the secret.
|
|
682
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
683
|
-
*/
|
|
684
|
-
}, {
|
|
685
|
-
key: "deleteProjectSecretWithHttpInfo",
|
|
686
|
-
value: function deleteProjectSecretWithHttpInfo(projectOrProductUID, secretName) {
|
|
687
|
-
var postBody = null;
|
|
688
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
689
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
690
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling deleteProjectSecret");
|
|
691
|
-
}
|
|
692
|
-
// verify the required parameter 'secretName' is set
|
|
693
|
-
if (secretName === undefined || secretName === null) {
|
|
694
|
-
throw new _Error["default"]("Missing the required parameter 'secretName' when calling deleteProjectSecret");
|
|
695
|
-
}
|
|
696
|
-
var pathParams = {
|
|
697
|
-
projectOrProductUID: projectOrProductUID,
|
|
698
|
-
secretName: secretName
|
|
699
|
-
};
|
|
700
|
-
var queryParams = {};
|
|
701
|
-
var headerParams = {};
|
|
702
|
-
var formParams = {};
|
|
703
|
-
var authNames = ["personalAccessToken"];
|
|
704
|
-
var contentTypes = [];
|
|
705
|
-
var accepts = ["application/json"];
|
|
706
|
-
var returnType = null;
|
|
707
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets/{secretName}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Delete a project secret by name
|
|
712
|
-
* @param {String} projectOrProductUID
|
|
713
|
-
* @param {String} secretName The name of the secret.
|
|
714
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
715
|
-
*/
|
|
716
|
-
}, {
|
|
717
|
-
key: "deleteProjectSecret",
|
|
718
|
-
value: function deleteProjectSecret(projectOrProductUID, secretName) {
|
|
719
|
-
return this.deleteProjectSecretWithHttpInfo(projectOrProductUID, secretName).then(function (response_and_data) {
|
|
720
|
-
return response_and_data.data;
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
|
|
724
629
|
/**
|
|
725
630
|
* Disable the project-level event JSONata transformation
|
|
726
631
|
* @param {String} projectOrProductUID
|
|
@@ -1489,7 +1394,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1489
1394
|
var queryParams = {};
|
|
1490
1395
|
var headerParams = {};
|
|
1491
1396
|
var formParams = {};
|
|
1492
|
-
var authNames = [];
|
|
1397
|
+
var authNames = ["personalAccessToken"];
|
|
1493
1398
|
var contentTypes = [];
|
|
1494
1399
|
var accepts = ["application/json"];
|
|
1495
1400
|
var returnType = [_NotefileSchema["default"]];
|
|
@@ -1743,45 +1648,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1743
1648
|
});
|
|
1744
1649
|
}
|
|
1745
1650
|
|
|
1746
|
-
/**
|
|
1747
|
-
* Get all secrets for a project (metadata only, values are never returned)
|
|
1748
|
-
* @param {String} projectOrProductUID
|
|
1749
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectSecretsResponse} and HTTP response
|
|
1750
|
-
*/
|
|
1751
|
-
}, {
|
|
1752
|
-
key: "getProjectSecretsWithHttpInfo",
|
|
1753
|
-
value: function getProjectSecretsWithHttpInfo(projectOrProductUID) {
|
|
1754
|
-
var postBody = null;
|
|
1755
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
1756
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
1757
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getProjectSecrets");
|
|
1758
|
-
}
|
|
1759
|
-
var pathParams = {
|
|
1760
|
-
projectOrProductUID: projectOrProductUID
|
|
1761
|
-
};
|
|
1762
|
-
var queryParams = {};
|
|
1763
|
-
var headerParams = {};
|
|
1764
|
-
var formParams = {};
|
|
1765
|
-
var authNames = ["personalAccessToken"];
|
|
1766
|
-
var contentTypes = [];
|
|
1767
|
-
var accepts = ["application/json"];
|
|
1768
|
-
var returnType = _GetProjectSecretsResponse["default"];
|
|
1769
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
/**
|
|
1773
|
-
* Get all secrets for a project (metadata only, values are never returned)
|
|
1774
|
-
* @param {String} projectOrProductUID
|
|
1775
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectSecretsResponse}
|
|
1776
|
-
*/
|
|
1777
|
-
}, {
|
|
1778
|
-
key: "getProjectSecrets",
|
|
1779
|
-
value: function getProjectSecrets(projectOrProductUID) {
|
|
1780
|
-
return this.getProjectSecretsWithHttpInfo(projectOrProductUID).then(function (response_and_data) {
|
|
1781
|
-
return response_and_data.data;
|
|
1782
|
-
});
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
1651
|
/**
|
|
1786
1652
|
* Get Projects accessible by the api_key
|
|
1787
1653
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
@@ -1954,7 +1820,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1954
1820
|
/**
|
|
1955
1821
|
* Set the project-level event JSONata transformation
|
|
1956
1822
|
* @param {String} projectOrProductUID
|
|
1957
|
-
* @param {
|
|
1823
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1958
1824
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1959
1825
|
*/
|
|
1960
1826
|
}, {
|
|
@@ -1976,7 +1842,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1976
1842
|
var headerParams = {};
|
|
1977
1843
|
var formParams = {};
|
|
1978
1844
|
var authNames = ["personalAccessToken"];
|
|
1979
|
-
var contentTypes = ["
|
|
1845
|
+
var contentTypes = ["text/plain"];
|
|
1980
1846
|
var accepts = ["application/json"];
|
|
1981
1847
|
var returnType = null;
|
|
1982
1848
|
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
@@ -1985,7 +1851,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1985
1851
|
/**
|
|
1986
1852
|
* Set the project-level event JSONata transformation
|
|
1987
1853
|
* @param {String} projectOrProductUID
|
|
1988
|
-
* @param {
|
|
1854
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1989
1855
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1990
1856
|
*/
|
|
1991
1857
|
}, {
|
|
@@ -2151,58 +2017,6 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2151
2017
|
});
|
|
2152
2018
|
}
|
|
2153
2019
|
|
|
2154
|
-
/**
|
|
2155
|
-
* Update the value of an existing project secret
|
|
2156
|
-
* @param {String} projectOrProductUID
|
|
2157
|
-
* @param {String} secretName The name of the secret.
|
|
2158
|
-
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2159
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProjectSecret} and HTTP response
|
|
2160
|
-
*/
|
|
2161
|
-
}, {
|
|
2162
|
-
key: "updateProjectSecretWithHttpInfo",
|
|
2163
|
-
value: function updateProjectSecretWithHttpInfo(projectOrProductUID, secretName, updateProjectSecretRequest) {
|
|
2164
|
-
var postBody = updateProjectSecretRequest;
|
|
2165
|
-
// verify the required parameter 'projectOrProductUID' is set
|
|
2166
|
-
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
2167
|
-
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling updateProjectSecret");
|
|
2168
|
-
}
|
|
2169
|
-
// verify the required parameter 'secretName' is set
|
|
2170
|
-
if (secretName === undefined || secretName === null) {
|
|
2171
|
-
throw new _Error["default"]("Missing the required parameter 'secretName' when calling updateProjectSecret");
|
|
2172
|
-
}
|
|
2173
|
-
// verify the required parameter 'updateProjectSecretRequest' is set
|
|
2174
|
-
if (updateProjectSecretRequest === undefined || updateProjectSecretRequest === null) {
|
|
2175
|
-
throw new _Error["default"]("Missing the required parameter 'updateProjectSecretRequest' when calling updateProjectSecret");
|
|
2176
|
-
}
|
|
2177
|
-
var pathParams = {
|
|
2178
|
-
projectOrProductUID: projectOrProductUID,
|
|
2179
|
-
secretName: secretName
|
|
2180
|
-
};
|
|
2181
|
-
var queryParams = {};
|
|
2182
|
-
var headerParams = {};
|
|
2183
|
-
var formParams = {};
|
|
2184
|
-
var authNames = ["personalAccessToken"];
|
|
2185
|
-
var contentTypes = ["application/json"];
|
|
2186
|
-
var accepts = ["application/json"];
|
|
2187
|
-
var returnType = _ProjectSecret["default"];
|
|
2188
|
-
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/secrets/{secretName}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
2189
|
-
}
|
|
2190
|
-
|
|
2191
|
-
/**
|
|
2192
|
-
* Update the value of an existing project secret
|
|
2193
|
-
* @param {String} projectOrProductUID
|
|
2194
|
-
* @param {String} secretName The name of the secret.
|
|
2195
|
-
* @param {module:model/UpdateProjectSecretRequest} updateProjectSecretRequest
|
|
2196
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProjectSecret}
|
|
2197
|
-
*/
|
|
2198
|
-
}, {
|
|
2199
|
-
key: "updateProjectSecret",
|
|
2200
|
-
value: function updateProjectSecret(projectOrProductUID, secretName, updateProjectSecretRequest) {
|
|
2201
|
-
return this.updateProjectSecretWithHttpInfo(projectOrProductUID, secretName, updateProjectSecretRequest).then(function (response_and_data) {
|
|
2202
|
-
return response_and_data.data;
|
|
2203
|
-
});
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
2020
|
/**
|
|
2207
2021
|
* Upload firmware binary
|
|
2208
2022
|
* @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.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
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.2.0-beta.
|
|
34
|
+
* @version 6.2.0-beta.21
|
|
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.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
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;
|
|
@@ -96,6 +149,117 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
96
149
|
});
|
|
97
150
|
}
|
|
98
151
|
|
|
152
|
+
/**
|
|
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
|
|
155
|
+
* @param {String} webhookUID Webhook UID
|
|
156
|
+
* @param {String} deviceUID
|
|
157
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
158
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
159
|
+
*/
|
|
160
|
+
}, {
|
|
161
|
+
key: "createWebhookDeviceEventByProductWithHttpInfo",
|
|
162
|
+
value: function createWebhookDeviceEventByProductWithHttpInfo(productUID, webhookUID, deviceUID, requestBody) {
|
|
163
|
+
var postBody = requestBody;
|
|
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");
|
|
167
|
+
}
|
|
168
|
+
// verify the required parameter 'webhookUID' is set
|
|
169
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
170
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhookDeviceEventByProduct");
|
|
171
|
+
}
|
|
172
|
+
// verify the required parameter 'deviceUID' is set
|
|
173
|
+
if (deviceUID === undefined || deviceUID === null) {
|
|
174
|
+
throw new _Error["default"]("Missing the required parameter 'deviceUID' when calling createWebhookDeviceEventByProduct");
|
|
175
|
+
}
|
|
176
|
+
// verify the required parameter 'requestBody' is set
|
|
177
|
+
if (requestBody === undefined || requestBody === null) {
|
|
178
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookDeviceEventByProduct");
|
|
179
|
+
}
|
|
180
|
+
var pathParams = {
|
|
181
|
+
productUID: productUID,
|
|
182
|
+
webhookUID: webhookUID,
|
|
183
|
+
deviceUID: deviceUID
|
|
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/products/{productUID}/webhooks/{webhookUID}/devices/{deviceUID}/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, 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
|
|
198
|
+
* @param {String} webhookUID Webhook UID
|
|
199
|
+
* @param {String} deviceUID
|
|
200
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
201
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
202
|
+
*/
|
|
203
|
+
}, {
|
|
204
|
+
key: "createWebhookDeviceEventByProduct",
|
|
205
|
+
value: function createWebhookDeviceEventByProduct(productUID, webhookUID, deviceUID, requestBody) {
|
|
206
|
+
return this.createWebhookDeviceEventByProductWithHttpInfo(productUID, webhookUID, deviceUID, requestBody).then(function (response_and_data) {
|
|
207
|
+
return response_and_data.data;
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
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
|
|
214
|
+
* @param {String} webhookUID Webhook UID
|
|
215
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
216
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
217
|
+
*/
|
|
218
|
+
}, {
|
|
219
|
+
key: "createWebhookEventByProductWithHttpInfo",
|
|
220
|
+
value: function createWebhookEventByProductWithHttpInfo(productUID, webhookUID, requestBody) {
|
|
221
|
+
var postBody = requestBody;
|
|
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");
|
|
225
|
+
}
|
|
226
|
+
// verify the required parameter 'webhookUID' is set
|
|
227
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
228
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling createWebhookEventByProduct");
|
|
229
|
+
}
|
|
230
|
+
// verify the required parameter 'requestBody' is set
|
|
231
|
+
if (requestBody === undefined || requestBody === null) {
|
|
232
|
+
throw new _Error["default"]("Missing the required parameter 'requestBody' when calling createWebhookEventByProduct");
|
|
233
|
+
}
|
|
234
|
+
var pathParams = {
|
|
235
|
+
productUID: productUID,
|
|
236
|
+
webhookUID: webhookUID
|
|
237
|
+
};
|
|
238
|
+
var queryParams = {};
|
|
239
|
+
var headerParams = {};
|
|
240
|
+
var formParams = {};
|
|
241
|
+
var authNames = ["personalAccessToken"];
|
|
242
|
+
var contentTypes = ["application/json"];
|
|
243
|
+
var accepts = ["application/json"];
|
|
244
|
+
var returnType = null;
|
|
245
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/event", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
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
|
|
251
|
+
* @param {String} webhookUID Webhook UID
|
|
252
|
+
* @param {Object.<String, {String: Object}>} requestBody The event body (arbitrary JSON)
|
|
253
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
254
|
+
*/
|
|
255
|
+
}, {
|
|
256
|
+
key: "createWebhookEventByProduct",
|
|
257
|
+
value: function createWebhookEventByProduct(productUID, webhookUID, requestBody) {
|
|
258
|
+
return this.createWebhookEventByProductWithHttpInfo(productUID, webhookUID, requestBody).then(function (response_and_data) {
|
|
259
|
+
return response_and_data.data;
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
99
263
|
/**
|
|
100
264
|
* Deletes the specified webhook
|
|
101
265
|
* @param {String} projectOrProductUID
|
|
@@ -188,6 +352,52 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
188
352
|
});
|
|
189
353
|
}
|
|
190
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Retrieves the configuration settings for the specified webhook, addressed by productUID.
|
|
357
|
+
* @param {String} productUID
|
|
358
|
+
* @param {String} webhookUID Webhook UID
|
|
359
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
360
|
+
*/
|
|
361
|
+
}, {
|
|
362
|
+
key: "getWebhookSettingsByProductWithHttpInfo",
|
|
363
|
+
value: function getWebhookSettingsByProductWithHttpInfo(productUID, webhookUID) {
|
|
364
|
+
var postBody = null;
|
|
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");
|
|
368
|
+
}
|
|
369
|
+
// verify the required parameter 'webhookUID' is set
|
|
370
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
371
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhookSettingsByProduct");
|
|
372
|
+
}
|
|
373
|
+
var pathParams = {
|
|
374
|
+
productUID: productUID,
|
|
375
|
+
webhookUID: webhookUID
|
|
376
|
+
};
|
|
377
|
+
var queryParams = {};
|
|
378
|
+
var headerParams = {};
|
|
379
|
+
var formParams = {};
|
|
380
|
+
var authNames = ["personalAccessToken"];
|
|
381
|
+
var contentTypes = [];
|
|
382
|
+
var accepts = ["application/json"];
|
|
383
|
+
var returnType = _WebhookSettings["default"];
|
|
384
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/settings", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Retrieves the configuration settings for the specified webhook, addressed by productUID.
|
|
389
|
+
* @param {String} productUID
|
|
390
|
+
* @param {String} webhookUID Webhook UID
|
|
391
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
392
|
+
*/
|
|
393
|
+
}, {
|
|
394
|
+
key: "getWebhookSettingsByProduct",
|
|
395
|
+
value: function getWebhookSettingsByProduct(productUID, webhookUID) {
|
|
396
|
+
return this.getWebhookSettingsByProductWithHttpInfo(productUID, webhookUID).then(function (response_and_data) {
|
|
397
|
+
return response_and_data.data;
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
|
|
191
401
|
/**
|
|
192
402
|
* Retrieves all webhooks for the specified project
|
|
193
403
|
* @param {String} projectOrProductUID
|
|
@@ -227,6 +437,57 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
227
437
|
});
|
|
228
438
|
}
|
|
229
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
|
+
|
|
230
491
|
/**
|
|
231
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.
|
|
232
493
|
* @param {String} projectOrProductUID
|
|
@@ -278,5 +539,57 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
278
539
|
return response_and_data.data;
|
|
279
540
|
});
|
|
280
541
|
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
|
|
545
|
+
* @param {String} productUID
|
|
546
|
+
* @param {String} webhookUID Webhook UID
|
|
547
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
548
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
549
|
+
*/
|
|
550
|
+
}, {
|
|
551
|
+
key: "updateWebhookSettingsByProductWithHttpInfo",
|
|
552
|
+
value: function updateWebhookSettingsByProductWithHttpInfo(productUID, webhookUID, webhookSettings) {
|
|
553
|
+
var postBody = webhookSettings;
|
|
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");
|
|
557
|
+
}
|
|
558
|
+
// verify the required parameter 'webhookUID' is set
|
|
559
|
+
if (webhookUID === undefined || webhookUID === null) {
|
|
560
|
+
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling updateWebhookSettingsByProduct");
|
|
561
|
+
}
|
|
562
|
+
// verify the required parameter 'webhookSettings' is set
|
|
563
|
+
if (webhookSettings === undefined || webhookSettings === null) {
|
|
564
|
+
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhookSettingsByProduct");
|
|
565
|
+
}
|
|
566
|
+
var pathParams = {
|
|
567
|
+
productUID: productUID,
|
|
568
|
+
webhookUID: webhookUID
|
|
569
|
+
};
|
|
570
|
+
var queryParams = {};
|
|
571
|
+
var headerParams = {};
|
|
572
|
+
var formParams = {};
|
|
573
|
+
var authNames = ["personalAccessToken"];
|
|
574
|
+
var contentTypes = ["application/json"];
|
|
575
|
+
var accepts = ["application/json"];
|
|
576
|
+
var returnType = null;
|
|
577
|
+
return this.apiClient.callApi("/v1/products/{productUID}/webhooks/{webhookUID}/settings", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Updates the configuration settings for the specified webhook, addressed by productUID. Update body will completely replace the existing settings.
|
|
582
|
+
* @param {String} productUID
|
|
583
|
+
* @param {String} webhookUID Webhook UID
|
|
584
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
585
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
586
|
+
*/
|
|
587
|
+
}, {
|
|
588
|
+
key: "updateWebhookSettingsByProduct",
|
|
589
|
+
value: function updateWebhookSettingsByProduct(productUID, webhookUID, webhookSettings) {
|
|
590
|
+
return this.updateWebhookSettingsByProductWithHttpInfo(productUID, webhookUID, webhookSettings).then(function (response_and_data) {
|
|
591
|
+
return response_and_data.data;
|
|
592
|
+
});
|
|
593
|
+
}
|
|
281
594
|
}]);
|
|
282
595
|
}();
|