@blues-inc/notehub-js 6.2.0 → 6.3.0-beta.10
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 +38 -1
- 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 +72 -18
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +167 -0
- package/dist/api/ProjectApi.js +191 -5
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +317 -5
- package/dist/index.js +154 -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/BatchJobRequests.js +228 -0
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BillingAccountRole.js +5 -0
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +51 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +130 -0
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.js +155 -0
- 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 +25 -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/GetDeviceJourney200Response.js +149 -0
- package/dist/model/GetDeviceJourney200ResponseJourney.js +142 -0
- package/dist/model/GetDeviceJourneys200Response.js +141 -0
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +144 -0
- 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/GetOrganizations200Response.js +111 -0
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.js +131 -0
- 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 +32 -12
- package/dist/model/JobDefinition.js +146 -0
- package/dist/model/JobDefinitionReportOptions.js +155 -0
- package/dist/model/JobDefinitionSelect.js +140 -0
- package/dist/model/JobDetail.js +252 -0
- package/dist/model/JobDetailAllOf.js +93 -0
- 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 +36 -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/Organization.js +139 -0
- package/dist/model/OrganizationRole.js +68 -0
- 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/ProjectSecret.js +164 -0
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RepositoryListResponse.js +131 -0
- package/dist/model/RepositoryTokenRequest.js +116 -0
- package/dist/model/RepositoryTokenResponse.js +182 -0
- 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/UpdateProjectSecretRequest.js +115 -0
- 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
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
+
var _GetBillingAccount200Response = _interopRequireDefault(require("../model/GetBillingAccount200Response"));
|
|
10
|
+
var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("../model/GetBillingAccountBalanceHistory200Response"));
|
|
11
|
+
var _GetOrganizations200Response = _interopRequireDefault(require("../model/GetOrganizations200Response"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
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); }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Notehub API
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
23
|
+
* Contact: engineering@blues.io
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* Organization service.
|
|
32
|
+
* @module api/OrganizationApi
|
|
33
|
+
* @version 6.3.0-beta.10
|
|
34
|
+
*/
|
|
35
|
+
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new OrganizationApi.
|
|
38
|
+
* @alias module:api/OrganizationApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
43
|
+
function OrganizationApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, OrganizationApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get Organization Information
|
|
50
|
+
* @param {String} organizationUID
|
|
51
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccount200Response} and HTTP response
|
|
52
|
+
*/
|
|
53
|
+
return _createClass(OrganizationApi, [{
|
|
54
|
+
key: "getOrganizationWithHttpInfo",
|
|
55
|
+
value: function getOrganizationWithHttpInfo(organizationUID) {
|
|
56
|
+
var postBody = null;
|
|
57
|
+
// verify the required parameter 'organizationUID' is set
|
|
58
|
+
if (organizationUID === undefined || organizationUID === null) {
|
|
59
|
+
throw new _Error["default"]("Missing the required parameter 'organizationUID' when calling getOrganization");
|
|
60
|
+
}
|
|
61
|
+
var pathParams = {
|
|
62
|
+
organizationUID: organizationUID
|
|
63
|
+
};
|
|
64
|
+
var queryParams = {};
|
|
65
|
+
var headerParams = {};
|
|
66
|
+
var formParams = {};
|
|
67
|
+
var authNames = ["personalAccessToken"];
|
|
68
|
+
var contentTypes = [];
|
|
69
|
+
var accepts = ["application/json"];
|
|
70
|
+
var returnType = _GetBillingAccount200Response["default"];
|
|
71
|
+
return this.apiClient.callApi("/v1/organizations/{organizationUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Get Organization Information
|
|
76
|
+
* @param {String} organizationUID
|
|
77
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccount200Response}
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "getOrganization",
|
|
81
|
+
value: function getOrganization(organizationUID) {
|
|
82
|
+
return this.getOrganizationWithHttpInfo(organizationUID).then(function (response_and_data) {
|
|
83
|
+
return response_and_data.data;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get Organization Balance history
|
|
89
|
+
* @param {String} organizationUID
|
|
90
|
+
* @param {Object} opts Optional parameters
|
|
91
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
92
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
93
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetBillingAccountBalanceHistory200Response} and HTTP response
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "getOrganizationBalanceHistoryWithHttpInfo",
|
|
97
|
+
value: function getOrganizationBalanceHistoryWithHttpInfo(organizationUID, opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
var postBody = null;
|
|
100
|
+
// verify the required parameter 'organizationUID' is set
|
|
101
|
+
if (organizationUID === undefined || organizationUID === null) {
|
|
102
|
+
throw new _Error["default"]("Missing the required parameter 'organizationUID' when calling getOrganizationBalanceHistory");
|
|
103
|
+
}
|
|
104
|
+
var pathParams = {
|
|
105
|
+
organizationUID: organizationUID
|
|
106
|
+
};
|
|
107
|
+
var queryParams = {
|
|
108
|
+
startDate: opts["startDate"],
|
|
109
|
+
endDate: opts["endDate"]
|
|
110
|
+
};
|
|
111
|
+
var headerParams = {};
|
|
112
|
+
var formParams = {};
|
|
113
|
+
var authNames = ["personalAccessToken"];
|
|
114
|
+
var contentTypes = [];
|
|
115
|
+
var accepts = ["application/json"];
|
|
116
|
+
var returnType = _GetBillingAccountBalanceHistory200Response["default"];
|
|
117
|
+
return this.apiClient.callApi("/v1/organizations/{organizationUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Get Organization Balance history
|
|
122
|
+
* @param {String} organizationUID
|
|
123
|
+
* @param {Object} opts Optional parameters
|
|
124
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
125
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccountBalanceHistory200Response}
|
|
127
|
+
*/
|
|
128
|
+
}, {
|
|
129
|
+
key: "getOrganizationBalanceHistory",
|
|
130
|
+
value: function getOrganizationBalanceHistory(organizationUID, opts) {
|
|
131
|
+
return this.getOrganizationBalanceHistoryWithHttpInfo(organizationUID, opts).then(function (response_and_data) {
|
|
132
|
+
return response_and_data.data;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Get Organizations accessible by the api_key
|
|
138
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOrganizations200Response} and HTTP response
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "getOrganizationsWithHttpInfo",
|
|
142
|
+
value: function getOrganizationsWithHttpInfo() {
|
|
143
|
+
var postBody = null;
|
|
144
|
+
var pathParams = {};
|
|
145
|
+
var queryParams = {};
|
|
146
|
+
var headerParams = {};
|
|
147
|
+
var formParams = {};
|
|
148
|
+
var authNames = ["personalAccessToken"];
|
|
149
|
+
var contentTypes = [];
|
|
150
|
+
var accepts = ["application/json"];
|
|
151
|
+
var returnType = _GetOrganizations200Response["default"];
|
|
152
|
+
return this.apiClient.callApi("/v1/organizations", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Get Organizations accessible by the api_key
|
|
157
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOrganizations200Response}
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "getOrganizations",
|
|
161
|
+
value: function getOrganizations() {
|
|
162
|
+
return this.getOrganizationsWithHttpInfo().then(function (response_and_data) {
|
|
163
|
+
return response_and_data.data;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}]);
|
|
167
|
+
}();
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -11,6 +11,7 @@ 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"));
|
|
14
15
|
var _DeleteDeviceFromFleetsRequest = _interopRequireDefault(require("../model/DeleteDeviceFromFleetsRequest"));
|
|
15
16
|
var _DeviceDfuHistory = _interopRequireDefault(require("../model/DeviceDfuHistory"));
|
|
16
17
|
var _DeviceDfuHistoryPage = _interopRequireDefault(require("../model/DeviceDfuHistoryPage"));
|
|
@@ -25,12 +26,15 @@ var _Fleet = _interopRequireDefault(require("../model/Fleet"));
|
|
|
25
26
|
var _GetDeviceFleets200Response = _interopRequireDefault(require("../model/GetDeviceFleets200Response"));
|
|
26
27
|
var _GetProducts200Response = _interopRequireDefault(require("../model/GetProducts200Response"));
|
|
27
28
|
var _GetProjectMembers200Response = _interopRequireDefault(require("../model/GetProjectMembers200Response"));
|
|
29
|
+
var _GetProjectSecretsResponse = _interopRequireDefault(require("../model/GetProjectSecretsResponse"));
|
|
28
30
|
var _GetProjects200Response = _interopRequireDefault(require("../model/GetProjects200Response"));
|
|
29
31
|
var _NotefileSchema = _interopRequireDefault(require("../model/NotefileSchema"));
|
|
30
32
|
var _Product = _interopRequireDefault(require("../model/Product"));
|
|
31
33
|
var _Project = _interopRequireDefault(require("../model/Project"));
|
|
34
|
+
var _ProjectSecret = _interopRequireDefault(require("../model/ProjectSecret"));
|
|
32
35
|
var _UpdateFleetRequest = _interopRequireDefault(require("../model/UpdateFleetRequest"));
|
|
33
36
|
var _UpdateHostFirmwareRequest = _interopRequireDefault(require("../model/UpdateHostFirmwareRequest"));
|
|
37
|
+
var _UpdateProjectSecretRequest = _interopRequireDefault(require("../model/UpdateProjectSecretRequest"));
|
|
34
38
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
35
39
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
36
40
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -52,7 +56,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
52
56
|
/**
|
|
53
57
|
* Project service.
|
|
54
58
|
* @module api/ProjectApi
|
|
55
|
-
* @version 6.
|
|
59
|
+
* @version 6.3.0-beta.10
|
|
56
60
|
*/
|
|
57
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
58
62
|
/**
|
|
@@ -291,6 +295,51 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
291
295
|
});
|
|
292
296
|
}
|
|
293
297
|
|
|
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
|
+
|
|
294
343
|
/**
|
|
295
344
|
* Remove Device from Fleets
|
|
296
345
|
* @param {String} projectOrProductUID
|
|
@@ -626,6 +675,52 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
626
675
|
});
|
|
627
676
|
}
|
|
628
677
|
|
|
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
|
+
|
|
629
724
|
/**
|
|
630
725
|
* Disable the project-level event JSONata transformation
|
|
631
726
|
* @param {String} projectOrProductUID
|
|
@@ -1394,7 +1489,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1394
1489
|
var queryParams = {};
|
|
1395
1490
|
var headerParams = {};
|
|
1396
1491
|
var formParams = {};
|
|
1397
|
-
var authNames = [];
|
|
1492
|
+
var authNames = ["personalAccessToken"];
|
|
1398
1493
|
var contentTypes = [];
|
|
1399
1494
|
var accepts = ["application/json"];
|
|
1400
1495
|
var returnType = [_NotefileSchema["default"]];
|
|
@@ -1648,6 +1743,45 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1648
1743
|
});
|
|
1649
1744
|
}
|
|
1650
1745
|
|
|
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
|
+
|
|
1651
1785
|
/**
|
|
1652
1786
|
* Get Projects accessible by the api_key
|
|
1653
1787
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjects200Response} and HTTP response
|
|
@@ -1820,7 +1954,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1820
1954
|
/**
|
|
1821
1955
|
* Set the project-level event JSONata transformation
|
|
1822
1956
|
* @param {String} projectOrProductUID
|
|
1823
|
-
* @param {
|
|
1957
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1824
1958
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
1825
1959
|
*/
|
|
1826
1960
|
}, {
|
|
@@ -1842,7 +1976,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1842
1976
|
var headerParams = {};
|
|
1843
1977
|
var formParams = {};
|
|
1844
1978
|
var authNames = ["personalAccessToken"];
|
|
1845
|
-
var contentTypes = ["
|
|
1979
|
+
var contentTypes = ["text/plain"];
|
|
1846
1980
|
var accepts = ["application/json"];
|
|
1847
1981
|
var returnType = null;
|
|
1848
1982
|
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/global-transformation", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
@@ -1851,7 +1985,7 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1851
1985
|
/**
|
|
1852
1986
|
* Set the project-level event JSONata transformation
|
|
1853
1987
|
* @param {String} projectOrProductUID
|
|
1854
|
-
* @param {
|
|
1988
|
+
* @param {String} body JSONata expression which will be applied to each event before it is persisted and routed
|
|
1855
1989
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
1856
1990
|
*/
|
|
1857
1991
|
}, {
|
|
@@ -2017,6 +2151,58 @@ var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
2017
2151
|
});
|
|
2018
2152
|
}
|
|
2019
2153
|
|
|
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
|
+
|
|
2020
2206
|
/**
|
|
2021
2207
|
* Upload firmware binary
|
|
2022
2208
|
* @param {String} projectOrProductUID
|
package/dist/api/RouteApi.js
CHANGED
package/dist/api/UsageApi.js
CHANGED