@blues-inc/notehub-js 6.5.0-beta.68 → 6.5.0-beta.69
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 +1 -4
- 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/DescriptionApi.js +1 -1
- package/dist/api/DeviceApi.js +1 -1
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/JobsApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/OrganizationApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +6 -66
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +0 -14
- 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/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/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 +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 +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/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 +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/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/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/model/GetApiUsage200Response.js +0 -140
- package/dist/model/UsageApiData.js +0 -147
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The ThingworxRoute model module.
|
|
30
30
|
* @module model/ThingworxRoute
|
|
31
|
-
* @version 6.5.0-beta.
|
|
31
|
+
* @version 6.5.0-beta.69
|
|
32
32
|
*/
|
|
33
33
|
var ThingworxRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The TowerLocation model module.
|
|
28
28
|
* @module model/TowerLocation
|
|
29
|
-
* @version 6.5.0-beta.
|
|
29
|
+
* @version 6.5.0-beta.69
|
|
30
30
|
*/
|
|
31
31
|
var TowerLocation = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The TwilioRoute model module.
|
|
29
29
|
* @module model/TwilioRoute
|
|
30
|
-
* @version 6.5.0-beta.
|
|
30
|
+
* @version 6.5.0-beta.69
|
|
31
31
|
*/
|
|
32
32
|
var TwilioRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UpdateFleetRequest model module.
|
|
29
29
|
* @module model/UpdateFleetRequest
|
|
30
|
-
* @version 6.5.0-beta.
|
|
30
|
+
* @version 6.5.0-beta.69
|
|
31
31
|
*/
|
|
32
32
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UpdateHostFirmwareRequest model module.
|
|
28
28
|
* @module model/UpdateHostFirmwareRequest
|
|
29
|
-
* @version 6.5.0-beta.
|
|
29
|
+
* @version 6.5.0-beta.69
|
|
30
30
|
*/
|
|
31
31
|
var UpdateHostFirmwareRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The UpdateProjectSecretRequest model module.
|
|
31
31
|
* @module model/UpdateProjectSecretRequest
|
|
32
|
-
* @version 6.5.0-beta.
|
|
32
|
+
* @version 6.5.0-beta.69
|
|
33
33
|
*/
|
|
34
34
|
var UpdateProjectSecretRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UploadMetadata model module.
|
|
29
29
|
* @module model/UploadMetadata
|
|
30
|
-
* @version 6.5.0-beta.
|
|
30
|
+
* @version 6.5.0-beta.69
|
|
31
31
|
*/
|
|
32
32
|
var UploadMetadata = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/UsageData.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The UsageData model module.
|
|
31
31
|
* @module model/UsageData
|
|
32
|
-
* @version 6.5.0-beta.
|
|
32
|
+
* @version 6.5.0-beta.69
|
|
33
33
|
*/
|
|
34
34
|
var UsageData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The UsageEventsData model module.
|
|
31
31
|
* @module model/UsageEventsData
|
|
32
|
-
* @version 6.5.0-beta.
|
|
32
|
+
* @version 6.5.0-beta.69
|
|
33
33
|
*/
|
|
34
34
|
var UsageEventsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The UsageEventsResponse model module.
|
|
32
32
|
* @module model/UsageEventsResponse
|
|
33
|
-
* @version 6.5.0-beta.
|
|
33
|
+
* @version 6.5.0-beta.69
|
|
34
34
|
*/
|
|
35
35
|
var UsageEventsResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The UsageRouteLogsData model module.
|
|
31
31
|
* @module model/UsageRouteLogsData
|
|
32
|
-
* @version 6.5.0-beta.
|
|
32
|
+
* @version 6.5.0-beta.69
|
|
33
33
|
*/
|
|
34
34
|
var UsageRouteLogsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The UsageSessionsData model module.
|
|
31
31
|
* @module model/UsageSessionsData
|
|
32
|
-
* @version 6.5.0-beta.
|
|
32
|
+
* @version 6.5.0-beta.69
|
|
33
33
|
*/
|
|
34
34
|
var UsageSessionsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserDfuStateMachine model module.
|
|
30
30
|
* @module model/UserDfuStateMachine
|
|
31
|
-
* @version 6.5.0-beta.
|
|
31
|
+
* @version 6.5.0-beta.69
|
|
32
32
|
*/
|
|
33
33
|
var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UserDfuStateMachineStatus model module.
|
|
28
28
|
* @module model/UserDfuStateMachineStatus
|
|
29
|
-
* @version 6.5.0-beta.
|
|
29
|
+
* @version 6.5.0-beta.69
|
|
30
30
|
*/
|
|
31
31
|
var UserDfuStateMachineStatus = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserFirmwareInfo model module.
|
|
30
30
|
* @module model/UserFirmwareInfo
|
|
31
|
-
* @version 6.5.0-beta.
|
|
31
|
+
* @version 6.5.0-beta.69
|
|
32
32
|
*/
|
|
33
33
|
var UserFirmwareInfo = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The WebhookSettings model module.
|
|
28
28
|
* @module model/WebhookSettings
|
|
29
|
-
* @version 6.5.0-beta.
|
|
29
|
+
* @version 6.5.0-beta.69
|
|
30
30
|
*/
|
|
31
31
|
var WebhookSettings = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/package.json
CHANGED
|
@@ -1,140 +0,0 @@
|
|
|
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 _UsageApiData = _interopRequireDefault(require("./UsageApiData"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
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); }
|
|
11
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
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
|
-
* The GetApiUsage200Response model module.
|
|
32
|
-
* @module model/GetApiUsage200Response
|
|
33
|
-
* @version 6.5.0-beta.68
|
|
34
|
-
*/
|
|
35
|
-
var GetApiUsage200Response = /*#__PURE__*/function () {
|
|
36
|
-
/**
|
|
37
|
-
* Constructs a new <code>GetApiUsage200Response</code>.
|
|
38
|
-
* @alias module:model/GetApiUsage200Response
|
|
39
|
-
* @param data {Array.<module:model/UsageApiData>}
|
|
40
|
-
*/
|
|
41
|
-
function GetApiUsage200Response(data) {
|
|
42
|
-
_classCallCheck(this, GetApiUsage200Response);
|
|
43
|
-
GetApiUsage200Response.initialize(this, data);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Initializes the fields of this object.
|
|
48
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
-
* Only for internal use.
|
|
50
|
-
*/
|
|
51
|
-
return _createClass(GetApiUsage200Response, null, [{
|
|
52
|
-
key: "initialize",
|
|
53
|
-
value: function initialize(obj, data) {
|
|
54
|
-
obj["data"] = data;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Constructs a <code>GetApiUsage200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
-
* @param {module:model/GetApiUsage200Response} obj Optional instance to populate.
|
|
62
|
-
* @return {module:model/GetApiUsage200Response} The populated <code>GetApiUsage200Response</code> instance.
|
|
63
|
-
*/
|
|
64
|
-
}, {
|
|
65
|
-
key: "constructFromObject",
|
|
66
|
-
value: function constructFromObject(data, obj) {
|
|
67
|
-
if (data) {
|
|
68
|
-
obj = obj || new GetApiUsage200Response();
|
|
69
|
-
if (data.hasOwnProperty("data")) {
|
|
70
|
-
obj["data"] = _ApiClient["default"].convertToType(data["data"], [_UsageApiData["default"]]);
|
|
71
|
-
}
|
|
72
|
-
if (data.hasOwnProperty("truncated")) {
|
|
73
|
-
obj["truncated"] = _ApiClient["default"].convertToType(data["truncated"], "Boolean");
|
|
74
|
-
}
|
|
75
|
-
} else if (data === null) {
|
|
76
|
-
return null;
|
|
77
|
-
}
|
|
78
|
-
return obj;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Validates the JSON data with respect to <code>GetApiUsage200Response</code>.
|
|
83
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetApiUsage200Response</code>.
|
|
85
|
-
*/
|
|
86
|
-
}, {
|
|
87
|
-
key: "validateJSON",
|
|
88
|
-
value: function validateJSON(data) {
|
|
89
|
-
// check to make sure all required properties are present in the JSON string
|
|
90
|
-
var _iterator = _createForOfIteratorHelper(GetApiUsage200Response.RequiredProperties),
|
|
91
|
-
_step;
|
|
92
|
-
try {
|
|
93
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
94
|
-
var property = _step.value;
|
|
95
|
-
if (!data[property]) {
|
|
96
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
} catch (err) {
|
|
100
|
-
_iterator.e(err);
|
|
101
|
-
} finally {
|
|
102
|
-
_iterator.f();
|
|
103
|
-
}
|
|
104
|
-
if (data["data"]) {
|
|
105
|
-
// data not null
|
|
106
|
-
// ensure the json data is an array
|
|
107
|
-
if (!Array.isArray(data["data"])) {
|
|
108
|
-
throw new Error("Expected the field `data` to be an array in the JSON data but got " + data["data"]);
|
|
109
|
-
}
|
|
110
|
-
// validate the optional field `data` (array)
|
|
111
|
-
var _iterator2 = _createForOfIteratorHelper(data["data"]),
|
|
112
|
-
_step2;
|
|
113
|
-
try {
|
|
114
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
115
|
-
var item = _step2.value;
|
|
116
|
-
_UsageApiData["default"].validateJsonObject(item);
|
|
117
|
-
}
|
|
118
|
-
} catch (err) {
|
|
119
|
-
_iterator2.e(err);
|
|
120
|
-
} finally {
|
|
121
|
-
_iterator2.f();
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return true;
|
|
125
|
-
}
|
|
126
|
-
}]);
|
|
127
|
-
}();
|
|
128
|
-
GetApiUsage200Response.RequiredProperties = ["data"];
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* @member {Array.<module:model/UsageApiData>} data
|
|
132
|
-
*/
|
|
133
|
-
GetApiUsage200Response.prototype["data"] = undefined;
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* If the data is truncated that means that the parameters selected resulted in a response of over | the requested limit of data points, in order to ensure
|
|
137
|
-
* @member {Boolean} truncated
|
|
138
|
-
*/
|
|
139
|
-
GetApiUsage200Response.prototype["truncated"] = undefined;
|
|
140
|
-
var _default = exports["default"] = GetApiUsage200Response;
|
|
@@ -1,147 +0,0 @@
|
|
|
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
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
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); }
|
|
10
|
-
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
-
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
-
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
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); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
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); } /**
|
|
18
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
23
|
-
*
|
|
24
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
-
* https://openapi-generator.tech
|
|
26
|
-
* Do not edit the class manually.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* The UsageApiData model module.
|
|
31
|
-
* @module model/UsageApiData
|
|
32
|
-
* @version 6.5.0-beta.68
|
|
33
|
-
*/
|
|
34
|
-
var UsageApiData = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new <code>UsageApiData</code>.
|
|
37
|
-
* @alias module:model/UsageApiData
|
|
38
|
-
* @param period {Date}
|
|
39
|
-
* @param requests {Number} Number of billable API requests in this period.
|
|
40
|
-
*/
|
|
41
|
-
function UsageApiData(period, requests) {
|
|
42
|
-
_classCallCheck(this, UsageApiData);
|
|
43
|
-
UsageApiData.initialize(this, period, requests);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Initializes the fields of this object.
|
|
48
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
-
* Only for internal use.
|
|
50
|
-
*/
|
|
51
|
-
return _createClass(UsageApiData, null, [{
|
|
52
|
-
key: "initialize",
|
|
53
|
-
value: function initialize(obj, period, requests) {
|
|
54
|
-
obj["period"] = period;
|
|
55
|
-
obj["requests"] = requests;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Constructs a <code>UsageApiData</code> from a plain JavaScript object, optionally creating a new instance.
|
|
60
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
61
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
62
|
-
* @param {module:model/UsageApiData} obj Optional instance to populate.
|
|
63
|
-
* @return {module:model/UsageApiData} The populated <code>UsageApiData</code> instance.
|
|
64
|
-
*/
|
|
65
|
-
}, {
|
|
66
|
-
key: "constructFromObject",
|
|
67
|
-
value: function constructFromObject(data, obj) {
|
|
68
|
-
if (data) {
|
|
69
|
-
obj = obj || new UsageApiData();
|
|
70
|
-
if (data.hasOwnProperty("endpoint")) {
|
|
71
|
-
obj["endpoint"] = _ApiClient["default"].convertToType(data["endpoint"], "String");
|
|
72
|
-
}
|
|
73
|
-
if (data.hasOwnProperty("method")) {
|
|
74
|
-
obj["method"] = _ApiClient["default"].convertToType(data["method"], "String");
|
|
75
|
-
}
|
|
76
|
-
if (data.hasOwnProperty("period")) {
|
|
77
|
-
obj["period"] = _ApiClient["default"].convertToType(data["period"], "Date");
|
|
78
|
-
}
|
|
79
|
-
if (data.hasOwnProperty("requests")) {
|
|
80
|
-
obj["requests"] = _ApiClient["default"].convertToType(data["requests"], "Number");
|
|
81
|
-
}
|
|
82
|
-
} else if (data === null) {
|
|
83
|
-
return null;
|
|
84
|
-
}
|
|
85
|
-
return obj;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Validates the JSON data with respect to <code>UsageApiData</code>.
|
|
90
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
91
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>UsageApiData</code>.
|
|
92
|
-
*/
|
|
93
|
-
}, {
|
|
94
|
-
key: "validateJSON",
|
|
95
|
-
value: function validateJSON(data) {
|
|
96
|
-
// check to make sure all required properties are present in the JSON string
|
|
97
|
-
var _iterator = _createForOfIteratorHelper(UsageApiData.RequiredProperties),
|
|
98
|
-
_step;
|
|
99
|
-
try {
|
|
100
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
101
|
-
var property = _step.value;
|
|
102
|
-
if (!data[property]) {
|
|
103
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
// ensure the json data is a string
|
|
107
|
-
} catch (err) {
|
|
108
|
-
_iterator.e(err);
|
|
109
|
-
} finally {
|
|
110
|
-
_iterator.f();
|
|
111
|
-
}
|
|
112
|
-
if (data["endpoint"] && !(typeof data["endpoint"] === "string" || data["endpoint"] instanceof String)) {
|
|
113
|
-
throw new Error("Expected the field `endpoint` to be a primitive type in the JSON string but got " + data["endpoint"]);
|
|
114
|
-
}
|
|
115
|
-
// ensure the json data is a string
|
|
116
|
-
if (data["method"] && !(typeof data["method"] === "string" || data["method"] instanceof String)) {
|
|
117
|
-
throw new Error("Expected the field `method` to be a primitive type in the JSON string but got " + data["method"]);
|
|
118
|
-
}
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
}]);
|
|
122
|
-
}();
|
|
123
|
-
UsageApiData.RequiredProperties = ["period", "requests"];
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* The templated path of the endpoint the requests were made against, with path parameters left unsubstituted. Empty if the endpoint could not be resolved for these requests.
|
|
127
|
-
* @member {String} endpoint
|
|
128
|
-
*/
|
|
129
|
-
UsageApiData.prototype["endpoint"] = undefined;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* The HTTP method of the requests counted in this data point. Empty if the endpoint could not be resolved for these requests.
|
|
133
|
-
* @member {String} method
|
|
134
|
-
*/
|
|
135
|
-
UsageApiData.prototype["method"] = undefined;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @member {Date} period
|
|
139
|
-
*/
|
|
140
|
-
UsageApiData.prototype["period"] = undefined;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Number of billable API requests in this period.
|
|
144
|
-
* @member {Number} requests
|
|
145
|
-
*/
|
|
146
|
-
UsageApiData.prototype["requests"] = undefined;
|
|
147
|
-
var _default = exports["default"] = UsageApiData;
|