@blues-inc/notehub-js 6.7.0-beta.10 → 6.7.0-beta.11
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 +158 -139
- 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 +167 -0
- package/dist/api/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +146 -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/OrganizationApi.js +9 -9
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/SkillsApi.js +327 -0
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +105 -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/ArchiveStats.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BatchJobNoteRequest.js +1 -1
- package/dist/model/BatchJobRequests.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateProjectSecretRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CreatedRepository.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/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DatasetReloadProgress.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/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.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/DeviceSensor.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/GetApiUsage200Response.js +1 -1
- package/dist/model/{GetOrganization200Response.js → GetBillingAccount200Response.js} +28 -28
- package/dist/model/{GetOrganization200ResponsePlan.js → GetBillingAccount200ResponsePlan.js} +24 -24
- package/dist/model/{GetOrganizationBalanceHistory200Response.js → GetBillingAccountBalanceHistory200Response.js} +22 -22
- package/dist/model/{GetOrganizationBalanceHistory200ResponseDataInner.js → GetBillingAccountBalanceHistory200ResponseDataInner.js} +22 -22
- package/dist/model/GetBillingAccounts200Response.js +111 -0
- 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/GetDeviceJourney200Response.js +1 -1
- package/dist/model/GetDeviceJourney200ResponseJourney.js +1 -1
- package/dist/model/GetDeviceJourneys200Response.js +1 -1
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +157 -0
- 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 +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectSecretsResponse.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/HealthLog.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobDefinition.js +1 -1
- package/dist/model/JobDefinitionReportOptions.js +1 -1
- package/dist/model/JobDefinitionSelect.js +1 -1
- package/dist/model/JobDetail.js +1 -1
- package/dist/model/JobDetailAllOf.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/Organization.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 +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/RepositoryListResponse.js +1 -1
- package/dist/model/RepositoryTokenRequest.js +1 -1
- package/dist/model/RepositoryTokenResponse.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/Skill.js +207 -0
- package/dist/model/SkillCatalog.js +170 -0
- package/dist/model/SkillLinks.js +130 -0
- package/dist/model/SkillSet.js +181 -0
- package/dist/model/SkillSummary.js +192 -0
- package/dist/model/SkillWrite.js +128 -0
- package/dist/model/SkillWriteResult.js +153 -0
- 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 +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageApiData.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 _GetBillingAccounts200Response = _interopRequireDefault(require("../model/GetBillingAccounts200Response"));
|
|
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, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? 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
|
+
* BillingAccount service.
|
|
32
|
+
* @module api/BillingAccountApi
|
|
33
|
+
* @version 6.7.0-beta.11
|
|
34
|
+
*/
|
|
35
|
+
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new BillingAccountApi.
|
|
38
|
+
* @alias module:api/BillingAccountApi
|
|
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 BillingAccountApi(apiClient) {
|
|
44
|
+
_classCallCheck(this, BillingAccountApi);
|
|
45
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get Billing Account Information
|
|
50
|
+
* @param {String} billingAccountUID
|
|
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(BillingAccountApi, [{
|
|
54
|
+
key: "getBillingAccountWithHttpInfo",
|
|
55
|
+
value: function getBillingAccountWithHttpInfo(billingAccountUID) {
|
|
56
|
+
var postBody = null;
|
|
57
|
+
// verify the required parameter 'billingAccountUID' is set
|
|
58
|
+
if (billingAccountUID === undefined || billingAccountUID === null) {
|
|
59
|
+
throw new _Error["default"]("Missing the required parameter 'billingAccountUID' when calling getBillingAccount");
|
|
60
|
+
}
|
|
61
|
+
var pathParams = {
|
|
62
|
+
billingAccountUID: billingAccountUID
|
|
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/billing-accounts/{billingAccountUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Get Billing Account Information
|
|
76
|
+
* @param {String} billingAccountUID
|
|
77
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccount200Response}
|
|
78
|
+
*/
|
|
79
|
+
}, {
|
|
80
|
+
key: "getBillingAccount",
|
|
81
|
+
value: function getBillingAccount(billingAccountUID) {
|
|
82
|
+
return this.getBillingAccountWithHttpInfo(billingAccountUID).then(function (response_and_data) {
|
|
83
|
+
return response_and_data.data;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get Billing Account Balance history
|
|
89
|
+
* @param {String} billingAccountUID
|
|
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: "getBillingAccountBalanceHistoryWithHttpInfo",
|
|
97
|
+
value: function getBillingAccountBalanceHistoryWithHttpInfo(billingAccountUID, opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
var postBody = null;
|
|
100
|
+
// verify the required parameter 'billingAccountUID' is set
|
|
101
|
+
if (billingAccountUID === undefined || billingAccountUID === null) {
|
|
102
|
+
throw new _Error["default"]("Missing the required parameter 'billingAccountUID' when calling getBillingAccountBalanceHistory");
|
|
103
|
+
}
|
|
104
|
+
var pathParams = {
|
|
105
|
+
billingAccountUID: billingAccountUID
|
|
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/billing-accounts/{billingAccountUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Get Billing Account Balance history
|
|
122
|
+
* @param {String} billingAccountUID
|
|
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: "getBillingAccountBalanceHistory",
|
|
130
|
+
value: function getBillingAccountBalanceHistory(billingAccountUID, opts) {
|
|
131
|
+
return this.getBillingAccountBalanceHistoryWithHttpInfo(billingAccountUID, opts).then(function (response_and_data) {
|
|
132
|
+
return response_and_data.data;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Get Billing Accounts 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/GetBillingAccounts200Response} and HTTP response
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "getBillingAccountsWithHttpInfo",
|
|
142
|
+
value: function getBillingAccountsWithHttpInfo() {
|
|
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 = _GetBillingAccounts200Response["default"];
|
|
152
|
+
return this.apiClient.callApi("/v1/billing-accounts", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Get Billing Accounts accessible by the api_key
|
|
157
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccounts200Response}
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "getBillingAccounts",
|
|
161
|
+
value: function getBillingAccounts() {
|
|
162
|
+
return this.getBillingAccountsWithHttpInfo().then(function (response_and_data) {
|
|
163
|
+
return response_and_data.data;
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}]);
|
|
167
|
+
}();
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Description service.
|
|
31
31
|
* @module api/DescriptionApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.11
|
|
33
33
|
*/
|
|
34
34
|
var DescriptionApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/DeviceApi.js
CHANGED
|
@@ -48,7 +48,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
48
48
|
/**
|
|
49
49
|
* Device service.
|
|
50
50
|
* @module api/DeviceApi
|
|
51
|
-
* @version 6.7.0-beta.
|
|
51
|
+
* @version 6.7.0-beta.11
|
|
52
52
|
*/
|
|
53
53
|
var DeviceApi = exports["default"] = /*#__PURE__*/function () {
|
|
54
54
|
/**
|
package/dist/api/EventApi.js
CHANGED
|
@@ -7,6 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
9
|
var _GetEvents200Response = _interopRequireDefault(require("../model/GetEvents200Response"));
|
|
10
|
+
var _GetEventsByCursor200Response = _interopRequireDefault(require("../model/GetEventsByCursor200Response"));
|
|
10
11
|
var _RouteLog = _interopRequireDefault(require("../model/RouteLog"));
|
|
11
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
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); }
|
|
@@ -29,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
30
|
/**
|
|
30
31
|
* Event service.
|
|
31
32
|
* @module api/EventApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.11
|
|
33
34
|
*/
|
|
34
35
|
var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
36
|
/**
|
|
@@ -141,6 +142,73 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
141
142
|
});
|
|
142
143
|
}
|
|
143
144
|
|
|
145
|
+
/**
|
|
146
|
+
* DEPRECATED: Use Get Events of a Project instead with the cursor parameter.
|
|
147
|
+
* @param {String} projectOrProductUID
|
|
148
|
+
* @param {Object} opts Optional parameters
|
|
149
|
+
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
150
|
+
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
151
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
152
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
153
|
+
* @param {String} opts.files
|
|
154
|
+
* @param {String} opts.fleetUID
|
|
155
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
156
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
157
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
158
|
+
*/
|
|
159
|
+
}, {
|
|
160
|
+
key: "getEventsByCursorWithHttpInfo",
|
|
161
|
+
value: function getEventsByCursorWithHttpInfo(projectOrProductUID, opts) {
|
|
162
|
+
opts = opts || {};
|
|
163
|
+
var postBody = null;
|
|
164
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
165
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
166
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getEventsByCursor");
|
|
167
|
+
}
|
|
168
|
+
var pathParams = {
|
|
169
|
+
projectOrProductUID: projectOrProductUID
|
|
170
|
+
};
|
|
171
|
+
var queryParams = {
|
|
172
|
+
limit: opts["limit"],
|
|
173
|
+
cursor: opts["cursor"],
|
|
174
|
+
sortOrder: opts["sortOrder"],
|
|
175
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
176
|
+
files: opts["files"],
|
|
177
|
+
fleetUID: opts["fleetUID"],
|
|
178
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
179
|
+
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi")
|
|
180
|
+
};
|
|
181
|
+
var headerParams = {};
|
|
182
|
+
var formParams = {};
|
|
183
|
+
var authNames = ["personalAccessToken"];
|
|
184
|
+
var contentTypes = [];
|
|
185
|
+
var accepts = ["application/json"];
|
|
186
|
+
var returnType = _GetEventsByCursor200Response["default"];
|
|
187
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* DEPRECATED: Use Get Events of a Project instead with the cursor parameter.
|
|
192
|
+
* @param {String} projectOrProductUID
|
|
193
|
+
* @param {Object} opts Optional parameters
|
|
194
|
+
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
195
|
+
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
196
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
197
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
198
|
+
* @param {String} opts.files
|
|
199
|
+
* @param {String} opts.fleetUID
|
|
200
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
201
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
202
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
203
|
+
*/
|
|
204
|
+
}, {
|
|
205
|
+
key: "getEventsByCursor",
|
|
206
|
+
value: function getEventsByCursor(projectOrProductUID, opts) {
|
|
207
|
+
return this.getEventsByCursorWithHttpInfo(projectOrProductUID, opts).then(function (response_and_data) {
|
|
208
|
+
return response_and_data.data;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
144
212
|
/**
|
|
145
213
|
* Get Events of a Fleet
|
|
146
214
|
* @param {String} projectOrProductUID
|
|
@@ -242,6 +310,83 @@ var EventApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
242
310
|
});
|
|
243
311
|
}
|
|
244
312
|
|
|
313
|
+
/**
|
|
314
|
+
* DEPRECATED: Use Get Events of a Fleet instead with the cursor parameter.
|
|
315
|
+
* @param {String} projectOrProductUID
|
|
316
|
+
* @param {String} fleetUID
|
|
317
|
+
* @param {Object} opts Optional parameters
|
|
318
|
+
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
319
|
+
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
320
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
321
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
322
|
+
* @param {String} opts.files
|
|
323
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
324
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
325
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
326
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
327
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetEventsByCursor200Response} and HTTP response
|
|
328
|
+
*/
|
|
329
|
+
}, {
|
|
330
|
+
key: "getFleetEventsByCursorWithHttpInfo",
|
|
331
|
+
value: function getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts) {
|
|
332
|
+
opts = opts || {};
|
|
333
|
+
var postBody = null;
|
|
334
|
+
// verify the required parameter 'projectOrProductUID' is set
|
|
335
|
+
if (projectOrProductUID === undefined || projectOrProductUID === null) {
|
|
336
|
+
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getFleetEventsByCursor");
|
|
337
|
+
}
|
|
338
|
+
// verify the required parameter 'fleetUID' is set
|
|
339
|
+
if (fleetUID === undefined || fleetUID === null) {
|
|
340
|
+
throw new _Error["default"]("Missing the required parameter 'fleetUID' when calling getFleetEventsByCursor");
|
|
341
|
+
}
|
|
342
|
+
var pathParams = {
|
|
343
|
+
projectOrProductUID: projectOrProductUID,
|
|
344
|
+
fleetUID: fleetUID
|
|
345
|
+
};
|
|
346
|
+
var queryParams = {
|
|
347
|
+
limit: opts["limit"],
|
|
348
|
+
cursor: opts["cursor"],
|
|
349
|
+
sortOrder: opts["sortOrder"],
|
|
350
|
+
systemFilesOnly: opts["systemFilesOnly"],
|
|
351
|
+
files: opts["files"],
|
|
352
|
+
deviceUID: this.apiClient.buildCollectionParam(opts["deviceUID"], "multi"),
|
|
353
|
+
sensorUID: this.apiClient.buildCollectionParam(opts["sensorUID"], "multi"),
|
|
354
|
+
startDate: opts["startDate"],
|
|
355
|
+
endDate: opts["endDate"]
|
|
356
|
+
};
|
|
357
|
+
var headerParams = {};
|
|
358
|
+
var formParams = {};
|
|
359
|
+
var authNames = ["personalAccessToken"];
|
|
360
|
+
var contentTypes = [];
|
|
361
|
+
var accepts = ["application/json"];
|
|
362
|
+
var returnType = _GetEventsByCursor200Response["default"];
|
|
363
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/fleets/{fleetUID}/events-cursor", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* DEPRECATED: Use Get Events of a Fleet instead with the cursor parameter.
|
|
368
|
+
* @param {String} projectOrProductUID
|
|
369
|
+
* @param {String} fleetUID
|
|
370
|
+
* @param {Object} opts Optional parameters
|
|
371
|
+
* @param {Number} opts.limit Maximum number of events to return. (default to 50)
|
|
372
|
+
* @param {String} opts.cursor If supplied, the results will be returned in ascending order of modification time. To start from a specific time, specify cursor as Unix epoch microseconds (UTC) or 0 to start from the beginning. Or, to start where the last search left off, set cursor to the returned value of next_cursor (or the X-Next-Cursor header).
|
|
373
|
+
* @param {module:model/String} opts.sortOrder (default to 'asc')
|
|
374
|
+
* @param {Boolean} opts.systemFilesOnly
|
|
375
|
+
* @param {String} opts.files
|
|
376
|
+
* @param {Array.<String>} opts.deviceUID A Device UID.
|
|
377
|
+
* @param {Array.<String>} opts.sensorUID A sensor UID to filter events by, matched exactly against the event sensor field. The value may carry any prefix.
|
|
378
|
+
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
379
|
+
* @param {Number} opts.endDate End date for filtering results, specified as a Unix timestamp
|
|
380
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetEventsByCursor200Response}
|
|
381
|
+
*/
|
|
382
|
+
}, {
|
|
383
|
+
key: "getFleetEventsByCursor",
|
|
384
|
+
value: function getFleetEventsByCursor(projectOrProductUID, fleetUID, opts) {
|
|
385
|
+
return this.getFleetEventsByCursorWithHttpInfo(projectOrProductUID, fleetUID, opts).then(function (response_and_data) {
|
|
386
|
+
return response_and_data.data;
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
|
|
245
390
|
/**
|
|
246
391
|
* Get Route Logs by Event UID
|
|
247
392
|
* @param {String} projectOrProductUID
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* ExternalDevices service.
|
|
31
31
|
* @module api/ExternalDevicesApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.11
|
|
33
33
|
*/
|
|
34
34
|
var ExternalDevicesApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/api/JobsApi.js
CHANGED
|
@@ -36,7 +36,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
36
36
|
/**
|
|
37
37
|
* Jobs service.
|
|
38
38
|
* @module api/JobsApi
|
|
39
|
-
* @version 6.7.0-beta.
|
|
39
|
+
* @version 6.7.0-beta.11
|
|
40
40
|
*/
|
|
41
41
|
var JobsApi = exports["default"] = /*#__PURE__*/function () {
|
|
42
42
|
/**
|
package/dist/api/MonitorApi.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* Monitor service.
|
|
31
31
|
* @module api/MonitorApi
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.11
|
|
33
33
|
*/
|
|
34
34
|
var MonitorApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Error = _interopRequireDefault(require("../model/Error"));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var _GetBillingAccount200Response = _interopRequireDefault(require("../model/GetBillingAccount200Response"));
|
|
10
|
+
var _GetBillingAccountBalanceHistory200Response = _interopRequireDefault(require("../model/GetBillingAccountBalanceHistory200Response"));
|
|
11
11
|
var _GetOrganizations200Response = _interopRequireDefault(require("../model/GetOrganizations200Response"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
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); }
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Organization service.
|
|
32
32
|
* @module api/OrganizationApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.11
|
|
34
34
|
*/
|
|
35
35
|
var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -48,7 +48,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* Get Organization Information
|
|
50
50
|
* @param {String} organizationUID
|
|
51
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/
|
|
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
52
|
*/
|
|
53
53
|
return _createClass(OrganizationApi, [{
|
|
54
54
|
key: "getOrganizationWithHttpInfo",
|
|
@@ -67,14 +67,14 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
67
67
|
var authNames = ["personalAccessToken"];
|
|
68
68
|
var contentTypes = [];
|
|
69
69
|
var accepts = ["application/json"];
|
|
70
|
-
var returnType =
|
|
70
|
+
var returnType = _GetBillingAccount200Response["default"];
|
|
71
71
|
return this.apiClient.callApi("/v1/organizations/{organizationUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Get Organization Information
|
|
76
76
|
* @param {String} organizationUID
|
|
77
|
-
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/
|
|
77
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccount200Response}
|
|
78
78
|
*/
|
|
79
79
|
}, {
|
|
80
80
|
key: "getOrganization",
|
|
@@ -90,7 +90,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
90
90
|
* @param {Object} opts Optional parameters
|
|
91
91
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
92
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/
|
|
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
94
|
*/
|
|
95
95
|
}, {
|
|
96
96
|
key: "getOrganizationBalanceHistoryWithHttpInfo",
|
|
@@ -113,7 +113,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
113
113
|
var authNames = ["personalAccessToken"];
|
|
114
114
|
var contentTypes = [];
|
|
115
115
|
var accepts = ["application/json"];
|
|
116
|
-
var returnType =
|
|
116
|
+
var returnType = _GetBillingAccountBalanceHistory200Response["default"];
|
|
117
117
|
return this.apiClient.callApi("/v1/organizations/{organizationUID}/balance-history", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
118
118
|
}
|
|
119
119
|
|
|
@@ -123,7 +123,7 @@ var OrganizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
123
123
|
* @param {Object} opts Optional parameters
|
|
124
124
|
* @param {Number} opts.startDate Start date for filtering results, specified as a Unix timestamp
|
|
125
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/
|
|
126
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetBillingAccountBalanceHistory200Response}
|
|
127
127
|
*/
|
|
128
128
|
}, {
|
|
129
129
|
key: "getOrganizationBalanceHistory",
|
package/dist/api/ProjectApi.js
CHANGED
|
@@ -56,7 +56,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
56
56
|
/**
|
|
57
57
|
* Project service.
|
|
58
58
|
* @module api/ProjectApi
|
|
59
|
-
* @version 6.7.0-beta.
|
|
59
|
+
* @version 6.7.0-beta.11
|
|
60
60
|
*/
|
|
61
61
|
var ProjectApi = exports["default"] = /*#__PURE__*/function () {
|
|
62
62
|
/**
|
package/dist/api/RouteApi.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* Route service.
|
|
32
32
|
* @module api/RouteApi
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.11
|
|
34
34
|
*/
|
|
35
35
|
var RouteApi = exports["default"] = /*#__PURE__*/function () {
|
|
36
36
|
/**
|