@blues-inc/notehub-js 6.7.0-beta.1 → 6.7.0-beta.2
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 +2 -10
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -4
- 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 +30 -42
- package/dist/api/EventApi.js +9 -15
- 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 +47 -53
- package/dist/api/RouteApi.js +1 -4
- package/dist/api/UsageApi.js +6 -66
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +7 -49
- 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 +1 -34
- 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 +39 -44
- 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 +2 -77
- package/dist/model/DataSetField.js +2 -7
- 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/DescriptionRecord.js +1 -1
- package/dist/model/DescriptionRecordList.js +1 -1
- package/dist/model/Device.js +1 -124
- package/dist/model/DeviceDfuHistory.js +1 -10
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -14
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -10
- package/dist/model/DeviceDfuStatusPage.js +1 -14
- 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 -28
- 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 -14
- 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 +6 -6
- package/dist/model/{HealthLog.js → GetDeviceHealthLog200ResponseHealthLogInner.js} +22 -22
- 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 -14
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -10
- package/dist/model/GetDeviceSessions200Response.js +1 -14
- package/dist/model/GetDevices200Response.js +1 -14
- package/dist/model/GetEvents200Response.js +1 -14
- package/dist/model/GetEventsByCursor200Response.js +3 -16
- 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/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 +23 -30
- 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 -15
- 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/ArchiveStats.js +0 -125
- package/dist/model/BatchJobNoteRequest.js +0 -178
- package/dist/model/DatasetReloadProgress.js +0 -116
- package/dist/model/DeviceSensor.js +0 -125
- package/dist/model/GetApiUsage200Response.js +0 -140
- package/dist/model/UsageApiData.js +0 -147
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The FleetConnectivityAssurance model module.
|
|
28
28
|
* @module model/FleetConnectivityAssurance
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var FleetConnectivityAssurance = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetAlerts200Response model module.
|
|
32
32
|
* @module model/GetAlerts200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetAlerts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -74,9 +74,6 @@ var GetAlerts200Response = /*#__PURE__*/function () {
|
|
|
74
74
|
if (data.hasOwnProperty("has_more")) {
|
|
75
75
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty("next_cursor_modified")) {
|
|
78
|
-
obj["next_cursor_modified"] = _ApiClient["default"].convertToType(data["next_cursor_modified"], "String");
|
|
79
|
-
}
|
|
80
77
|
} else if (data === null) {
|
|
81
78
|
return null;
|
|
82
79
|
}
|
|
@@ -126,10 +123,6 @@ var GetAlerts200Response = /*#__PURE__*/function () {
|
|
|
126
123
|
_iterator2.f();
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
|
-
// ensure the json data is a string
|
|
130
|
-
if (data["next_cursor_modified"] && !(typeof data["next_cursor_modified"] === "string" || data["next_cursor_modified"] instanceof String)) {
|
|
131
|
-
throw new Error("Expected the field `next_cursor_modified` to be a primitive type in the JSON string but got " + data["next_cursor_modified"]);
|
|
132
|
-
}
|
|
133
126
|
return true;
|
|
134
127
|
}
|
|
135
128
|
}]);
|
|
@@ -147,10 +140,4 @@ GetAlerts200Response.prototype["alerts"] = undefined;
|
|
|
147
140
|
* @member {Boolean} has_more
|
|
148
141
|
*/
|
|
149
142
|
GetAlerts200Response.prototype["has_more"] = undefined;
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Pass this opaque value as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
153
|
-
* @member {String} next_cursor_modified
|
|
154
|
-
*/
|
|
155
|
-
GetAlerts200Response.prototype["next_cursor_modified"] = undefined;
|
|
156
143
|
var _default = exports["default"] = GetAlerts200Response;
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
27
27
|
/**
|
|
28
28
|
* The GetBillingAccount200Response model module.
|
|
29
29
|
* @module model/GetBillingAccount200Response
|
|
30
|
-
* @version 6.7.0-beta.
|
|
30
|
+
* @version 6.7.0-beta.2
|
|
31
31
|
*/
|
|
32
32
|
var GetBillingAccount200Response = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetBillingAccount200ResponsePlan model module.
|
|
28
28
|
* @module model/GetBillingAccount200ResponsePlan
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var GetBillingAccount200ResponsePlan = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetBillingAccountBalanceHistory200Response model module.
|
|
32
32
|
* @module model/GetBillingAccountBalanceHistory200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetBillingAccountBalanceHistory200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetBillingAccountBalanceHistory200ResponseDataInner model module.
|
|
31
31
|
* @module model/GetBillingAccountBalanceHistory200ResponseDataInner
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var GetBillingAccountBalanceHistory200ResponseDataInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetBillingAccounts200Response model module.
|
|
32
32
|
* @module model/GetBillingAccounts200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDataUsage200Response model module.
|
|
32
32
|
* @module model/GetDataUsage200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDataUsage200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDataUsage200ResponseDataInner model module.
|
|
32
32
|
* @module model/GetDataUsage200ResponseDataInner
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDataUsage200ResponseDataInner = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetDbNote200Response model module.
|
|
28
28
|
* @module model/GetDbNote200Response
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var GetDbNote200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceEnvironmentVariablesByPin200Response model module.
|
|
31
31
|
* @module model/GetDeviceEnvironmentVariablesByPin200Response
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceEnvironmentVariablesByPin200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceFleets200Response model module.
|
|
32
32
|
* @module model/GetDeviceFleets200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceFleets200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _GetDeviceHealthLog200ResponseHealthLogInner = _interopRequireDefault(require("./GetDeviceHealthLog200ResponseHealthLogInner"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
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
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; } } }; }
|
|
@@ -30,13 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceHealthLog200Response model module.
|
|
32
32
|
* @module model/GetDeviceHealthLog200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>GetDeviceHealthLog200Response</code>.
|
|
38
38
|
* @alias module:model/GetDeviceHealthLog200Response
|
|
39
|
-
* @param healthLog {Array.<module:model/
|
|
39
|
+
* @param healthLog {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>}
|
|
40
40
|
*/
|
|
41
41
|
function GetDeviceHealthLog200Response(healthLog) {
|
|
42
42
|
_classCallCheck(this, GetDeviceHealthLog200Response);
|
|
@@ -67,7 +67,7 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
67
67
|
if (data) {
|
|
68
68
|
obj = obj || new GetDeviceHealthLog200Response();
|
|
69
69
|
if (data.hasOwnProperty("health_log")) {
|
|
70
|
-
obj["health_log"] = _ApiClient["default"].convertToType(data["health_log"], [
|
|
70
|
+
obj["health_log"] = _ApiClient["default"].convertToType(data["health_log"], [_GetDeviceHealthLog200ResponseHealthLogInner["default"]]);
|
|
71
71
|
}
|
|
72
72
|
} else if (data === null) {
|
|
73
73
|
return null;
|
|
@@ -110,7 +110,7 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
110
110
|
try {
|
|
111
111
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
112
112
|
var item = _step2.value;
|
|
113
|
-
|
|
113
|
+
_GetDeviceHealthLog200ResponseHealthLogInner["default"].validateJsonObject(item);
|
|
114
114
|
}
|
|
115
115
|
} catch (err) {
|
|
116
116
|
_iterator2.e(err);
|
|
@@ -125,7 +125,7 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
125
125
|
GetDeviceHealthLog200Response.RequiredProperties = ["health_log"];
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
|
-
* @member {Array.<module:model/
|
|
128
|
+
* @member {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>} health_log
|
|
129
129
|
*/
|
|
130
130
|
GetDeviceHealthLog200Response.prototype["health_log"] = undefined;
|
|
131
131
|
var _default = exports["default"] = GetDeviceHealthLog200Response;
|
|
@@ -27,21 +27,21 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
32
|
-
* @version 6.7.0-beta.
|
|
30
|
+
* The GetDeviceHealthLog200ResponseHealthLogInner model module.
|
|
31
|
+
* @module model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
32
|
+
* @version 6.7.0-beta.2
|
|
33
33
|
*/
|
|
34
|
-
var
|
|
34
|
+
var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
|
-
* Constructs a new <code>
|
|
37
|
-
* @alias module:model/
|
|
36
|
+
* Constructs a new <code>GetDeviceHealthLog200ResponseHealthLogInner</code>.
|
|
37
|
+
* @alias module:model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
38
38
|
* @param alert {Boolean}
|
|
39
39
|
* @param text {String}
|
|
40
40
|
* @param when {Date}
|
|
41
41
|
*/
|
|
42
|
-
function
|
|
43
|
-
_classCallCheck(this,
|
|
44
|
-
|
|
42
|
+
function GetDeviceHealthLog200ResponseHealthLogInner(alert, text, when) {
|
|
43
|
+
_classCallCheck(this, GetDeviceHealthLog200ResponseHealthLogInner);
|
|
44
|
+
GetDeviceHealthLog200ResponseHealthLogInner.initialize(this, alert, text, when);
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -49,7 +49,7 @@ var HealthLog = /*#__PURE__*/function () {
|
|
|
49
49
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
50
|
* Only for internal use.
|
|
51
51
|
*/
|
|
52
|
-
return _createClass(
|
|
52
|
+
return _createClass(GetDeviceHealthLog200ResponseHealthLogInner, null, [{
|
|
53
53
|
key: "initialize",
|
|
54
54
|
value: function initialize(obj, alert, text, when) {
|
|
55
55
|
obj["alert"] = alert;
|
|
@@ -58,17 +58,17 @@ var HealthLog = /*#__PURE__*/function () {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* Constructs a <code>
|
|
61
|
+
* Constructs a <code>GetDeviceHealthLog200ResponseHealthLogInner</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
62
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
63
63
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
64
|
-
* @param {module:model/
|
|
65
|
-
* @return {module:model/
|
|
64
|
+
* @param {module:model/GetDeviceHealthLog200ResponseHealthLogInner} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/GetDeviceHealthLog200ResponseHealthLogInner} The populated <code>GetDeviceHealthLog200ResponseHealthLogInner</code> instance.
|
|
66
66
|
*/
|
|
67
67
|
}, {
|
|
68
68
|
key: "constructFromObject",
|
|
69
69
|
value: function constructFromObject(data, obj) {
|
|
70
70
|
if (data) {
|
|
71
|
-
obj = obj || new
|
|
71
|
+
obj = obj || new GetDeviceHealthLog200ResponseHealthLogInner();
|
|
72
72
|
if (data.hasOwnProperty("alert")) {
|
|
73
73
|
obj["alert"] = _ApiClient["default"].convertToType(data["alert"], "Boolean");
|
|
74
74
|
}
|
|
@@ -85,15 +85,15 @@ var HealthLog = /*#__PURE__*/function () {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* Validates the JSON data with respect to <code>
|
|
88
|
+
* Validates the JSON data with respect to <code>GetDeviceHealthLog200ResponseHealthLogInner</code>.
|
|
89
89
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
90
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
90
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceHealthLog200ResponseHealthLogInner</code>.
|
|
91
91
|
*/
|
|
92
92
|
}, {
|
|
93
93
|
key: "validateJSON",
|
|
94
94
|
value: function validateJSON(data) {
|
|
95
95
|
// check to make sure all required properties are present in the JSON string
|
|
96
|
-
var _iterator = _createForOfIteratorHelper(
|
|
96
|
+
var _iterator = _createForOfIteratorHelper(GetDeviceHealthLog200ResponseHealthLogInner.RequiredProperties),
|
|
97
97
|
_step;
|
|
98
98
|
try {
|
|
99
99
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -115,20 +115,20 @@ var HealthLog = /*#__PURE__*/function () {
|
|
|
115
115
|
}
|
|
116
116
|
}]);
|
|
117
117
|
}();
|
|
118
|
-
|
|
118
|
+
GetDeviceHealthLog200ResponseHealthLogInner.RequiredProperties = ["alert", "text", "when"];
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @member {Boolean} alert
|
|
122
122
|
*/
|
|
123
|
-
|
|
123
|
+
GetDeviceHealthLog200ResponseHealthLogInner.prototype["alert"] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {String} text
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
GetDeviceHealthLog200ResponseHealthLogInner.prototype["text"] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* @member {Date} when
|
|
132
132
|
*/
|
|
133
|
-
|
|
134
|
-
var _default = exports["default"] =
|
|
133
|
+
GetDeviceHealthLog200ResponseHealthLogInner.prototype["when"] = undefined;
|
|
134
|
+
var _default = exports["default"] = GetDeviceHealthLog200ResponseHealthLogInner;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceJourney200Response model module.
|
|
32
32
|
* @module model/GetDeviceJourney200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceJourney200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceJourney200ResponseJourney model module.
|
|
32
32
|
* @module model/GetDeviceJourney200ResponseJourney
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceJourney200ResponseJourney = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceJourneys200Response model module.
|
|
32
32
|
* @module model/GetDeviceJourneys200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceJourneys200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceJourneys200ResponseJourneysInner model module.
|
|
31
31
|
* @module model/GetDeviceJourneys200ResponseJourneysInner
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceJourneys200ResponseJourneysInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceLatestEvents200Response model module.
|
|
32
32
|
* @module model/GetDeviceLatestEvents200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceLatestEvents200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDevicePlans200Response model module.
|
|
32
32
|
* @module model/GetDevicePlans200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDevicePlans200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDevicePublicKey200Response model module.
|
|
31
31
|
* @module model/GetDevicePublicKey200Response
|
|
32
|
-
* @version 6.7.0-beta.
|
|
32
|
+
* @version 6.7.0-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDevicePublicKeys200Response model module.
|
|
32
32
|
* @module model/GetDevicePublicKeys200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -74,9 +74,6 @@ var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
|
|
|
74
74
|
if (data.hasOwnProperty("has_more")) {
|
|
75
75
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty("next_cursor_modified")) {
|
|
78
|
-
obj["next_cursor_modified"] = _ApiClient["default"].convertToType(data["next_cursor_modified"], "String");
|
|
79
|
-
}
|
|
80
77
|
} else if (data === null) {
|
|
81
78
|
return null;
|
|
82
79
|
}
|
|
@@ -126,10 +123,6 @@ var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
|
|
|
126
123
|
_iterator2.f();
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
|
-
// ensure the json data is a string
|
|
130
|
-
if (data["next_cursor_modified"] && !(typeof data["next_cursor_modified"] === "string" || data["next_cursor_modified"] instanceof String)) {
|
|
131
|
-
throw new Error("Expected the field `next_cursor_modified` to be a primitive type in the JSON string but got " + data["next_cursor_modified"]);
|
|
132
|
-
}
|
|
133
126
|
return true;
|
|
134
127
|
}
|
|
135
128
|
}]);
|
|
@@ -145,10 +138,4 @@ GetDevicePublicKeys200Response.prototype["device_public_keys"] = undefined;
|
|
|
145
138
|
* @member {Boolean} has_more
|
|
146
139
|
*/
|
|
147
140
|
GetDevicePublicKeys200Response.prototype["has_more"] = undefined;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Pass this opaque value as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
151
|
-
* @member {String} next_cursor_modified
|
|
152
|
-
*/
|
|
153
|
-
GetDevicePublicKeys200Response.prototype["next_cursor_modified"] = undefined;
|
|
154
141
|
var _default = exports["default"] = GetDevicePublicKeys200Response;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetDevicePublicKeys200ResponseDevicePublicKeysInner model module.
|
|
28
28
|
* @module model/GetDevicePublicKeys200ResponseDevicePublicKeysInner
|
|
29
|
-
* @version 6.7.0-beta.
|
|
29
|
+
* @version 6.7.0-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,9 +59,6 @@ var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new GetDevicePublicKeys200ResponseDevicePublicKeysInner();
|
|
62
|
-
if (data.hasOwnProperty("deleted")) {
|
|
63
|
-
obj["deleted"] = _ApiClient["default"].convertToType(data["deleted"], "Boolean");
|
|
64
|
-
}
|
|
65
62
|
if (data.hasOwnProperty("key")) {
|
|
66
63
|
obj["key"] = _ApiClient["default"].convertToType(data["key"], "String");
|
|
67
64
|
}
|
|
@@ -94,12 +91,6 @@ var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function
|
|
|
94
91
|
}
|
|
95
92
|
}]);
|
|
96
93
|
}();
|
|
97
|
-
/**
|
|
98
|
-
* True if this device has been deleted. Only present when reading with a `cursor`.
|
|
99
|
-
* @member {Boolean} deleted
|
|
100
|
-
*/
|
|
101
|
-
GetDevicePublicKeys200ResponseDevicePublicKeysInner.prototype["deleted"] = undefined;
|
|
102
|
-
|
|
103
94
|
/**
|
|
104
95
|
* @member {String} key
|
|
105
96
|
*/
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceSessions200Response model module.
|
|
32
32
|
* @module model/GetDeviceSessions200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceSessions200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -71,9 +71,6 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
|
|
|
71
71
|
if (data.hasOwnProperty("has_more")) {
|
|
72
72
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty("next_cursor_modified")) {
|
|
75
|
-
obj["next_cursor_modified"] = _ApiClient["default"].convertToType(data["next_cursor_modified"], "String");
|
|
76
|
-
}
|
|
77
74
|
if (data.hasOwnProperty("sessions")) {
|
|
78
75
|
obj["sessions"] = _ApiClient["default"].convertToType(data["sessions"], [_DeviceSession["default"]]);
|
|
79
76
|
}
|
|
@@ -101,15 +98,11 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
|
|
|
101
98
|
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
102
99
|
}
|
|
103
100
|
}
|
|
104
|
-
// ensure the json data is a string
|
|
105
101
|
} catch (err) {
|
|
106
102
|
_iterator.e(err);
|
|
107
103
|
} finally {
|
|
108
104
|
_iterator.f();
|
|
109
105
|
}
|
|
110
|
-
if (data["next_cursor_modified"] && !(typeof data["next_cursor_modified"] === "string" || data["next_cursor_modified"] instanceof String)) {
|
|
111
|
-
throw new Error("Expected the field `next_cursor_modified` to be a primitive type in the JSON string but got " + data["next_cursor_modified"]);
|
|
112
|
-
}
|
|
113
106
|
if (data["sessions"]) {
|
|
114
107
|
// data not null
|
|
115
108
|
// ensure the json data is an array
|
|
@@ -141,12 +134,6 @@ GetDeviceSessions200Response.RequiredProperties = ["has_more", "sessions"];
|
|
|
141
134
|
*/
|
|
142
135
|
GetDeviceSessions200Response.prototype["has_more"] = undefined;
|
|
143
136
|
|
|
144
|
-
/**
|
|
145
|
-
* Pass this opaque value as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
146
|
-
* @member {String} next_cursor_modified
|
|
147
|
-
*/
|
|
148
|
-
GetDeviceSessions200Response.prototype["next_cursor_modified"] = undefined;
|
|
149
|
-
|
|
150
137
|
/**
|
|
151
138
|
* @member {Array.<module:model/DeviceSession>} sessions
|
|
152
139
|
*/
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDevices200Response model module.
|
|
32
32
|
* @module model/GetDevices200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetDevices200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -74,9 +74,6 @@ var GetDevices200Response = /*#__PURE__*/function () {
|
|
|
74
74
|
if (data.hasOwnProperty("has_more")) {
|
|
75
75
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty("next_cursor_modified")) {
|
|
78
|
-
obj["next_cursor_modified"] = _ApiClient["default"].convertToType(data["next_cursor_modified"], "String");
|
|
79
|
-
}
|
|
80
77
|
} else if (data === null) {
|
|
81
78
|
return null;
|
|
82
79
|
}
|
|
@@ -126,10 +123,6 @@ var GetDevices200Response = /*#__PURE__*/function () {
|
|
|
126
123
|
_iterator2.f();
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
|
-
// ensure the json data is a string
|
|
130
|
-
if (data["next_cursor_modified"] && !(typeof data["next_cursor_modified"] === "string" || data["next_cursor_modified"] instanceof String)) {
|
|
131
|
-
throw new Error("Expected the field `next_cursor_modified` to be a primitive type in the JSON string but got " + data["next_cursor_modified"]);
|
|
132
|
-
}
|
|
133
126
|
return true;
|
|
134
127
|
}
|
|
135
128
|
}]);
|
|
@@ -145,10 +138,4 @@ GetDevices200Response.prototype["devices"] = undefined;
|
|
|
145
138
|
* @member {Boolean} has_more
|
|
146
139
|
*/
|
|
147
140
|
GetDevices200Response.prototype["has_more"] = undefined;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Pass this opaque value as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
151
|
-
* @member {String} next_cursor_modified
|
|
152
|
-
*/
|
|
153
|
-
GetDevices200Response.prototype["next_cursor_modified"] = undefined;
|
|
154
141
|
var _default = exports["default"] = GetDevices200Response;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetEvents200Response model module.
|
|
32
32
|
* @module model/GetEvents200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetEvents200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -74,9 +74,6 @@ var GetEvents200Response = /*#__PURE__*/function () {
|
|
|
74
74
|
if (data.hasOwnProperty("has_more")) {
|
|
75
75
|
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty("next_cursor_modified")) {
|
|
78
|
-
obj["next_cursor_modified"] = _ApiClient["default"].convertToType(data["next_cursor_modified"], "String");
|
|
79
|
-
}
|
|
80
77
|
if (data.hasOwnProperty("through")) {
|
|
81
78
|
obj["through"] = _ApiClient["default"].convertToType(data["through"], "String");
|
|
82
79
|
}
|
|
@@ -130,10 +127,6 @@ var GetEvents200Response = /*#__PURE__*/function () {
|
|
|
130
127
|
}
|
|
131
128
|
}
|
|
132
129
|
// ensure the json data is a string
|
|
133
|
-
if (data["next_cursor_modified"] && !(typeof data["next_cursor_modified"] === "string" || data["next_cursor_modified"] instanceof String)) {
|
|
134
|
-
throw new Error("Expected the field `next_cursor_modified` to be a primitive type in the JSON string but got " + data["next_cursor_modified"]);
|
|
135
|
-
}
|
|
136
|
-
// ensure the json data is a string
|
|
137
130
|
if (data["through"] && !(typeof data["through"] === "string" || data["through"] instanceof String)) {
|
|
138
131
|
throw new Error("Expected the field `through` to be a primitive type in the JSON string but got " + data["through"]);
|
|
139
132
|
}
|
|
@@ -154,12 +147,6 @@ GetEvents200Response.prototype["events"] = undefined;
|
|
|
154
147
|
*/
|
|
155
148
|
GetEvents200Response.prototype["has_more"] = undefined;
|
|
156
149
|
|
|
157
|
-
/**
|
|
158
|
-
* Pass this opaque value as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
159
|
-
* @member {String} next_cursor_modified
|
|
160
|
-
*/
|
|
161
|
-
GetEvents200Response.prototype["next_cursor_modified"] = undefined;
|
|
162
|
-
|
|
163
150
|
/**
|
|
164
151
|
* The UID of the last event returned
|
|
165
152
|
* @member {String} through
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetEventsByCursor200Response model module.
|
|
32
32
|
* @module model/GetEventsByCursor200Response
|
|
33
|
-
* @version 6.7.0-beta.
|
|
33
|
+
* @version 6.7.0-beta.2
|
|
34
34
|
*/
|
|
35
35
|
var GetEventsByCursor200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -38,7 +38,7 @@ var GetEventsByCursor200Response = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/GetEventsByCursor200Response
|
|
39
39
|
* @param events {Array.<module:model/Event>}
|
|
40
40
|
* @param hasMore {Boolean} True if there are more events
|
|
41
|
-
* @param nextCursor {String}
|
|
41
|
+
* @param nextCursor {String} The cursor value of the next result, which is intended to be used as the \"cursor\" parameter value of the next call to this method. An empty string is returned if there are no more results after this results set.
|
|
42
42
|
*/
|
|
43
43
|
function GetEventsByCursor200Response(events, hasMore, nextCursor) {
|
|
44
44
|
_classCallCheck(this, GetEventsByCursor200Response);
|
|
@@ -79,9 +79,6 @@ var GetEventsByCursor200Response = /*#__PURE__*/function () {
|
|
|
79
79
|
if (data.hasOwnProperty("next_cursor")) {
|
|
80
80
|
obj["next_cursor"] = _ApiClient["default"].convertToType(data["next_cursor"], "String");
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty("next_cursor_modified")) {
|
|
83
|
-
obj["next_cursor_modified"] = _ApiClient["default"].convertToType(data["next_cursor_modified"], "String");
|
|
84
|
-
}
|
|
85
82
|
} else if (data === null) {
|
|
86
83
|
return null;
|
|
87
84
|
}
|
|
@@ -135,10 +132,6 @@ var GetEventsByCursor200Response = /*#__PURE__*/function () {
|
|
|
135
132
|
if (data["next_cursor"] && !(typeof data["next_cursor"] === "string" || data["next_cursor"] instanceof String)) {
|
|
136
133
|
throw new Error("Expected the field `next_cursor` to be a primitive type in the JSON string but got " + data["next_cursor"]);
|
|
137
134
|
}
|
|
138
|
-
// ensure the json data is a string
|
|
139
|
-
if (data["next_cursor_modified"] && !(typeof data["next_cursor_modified"] === "string" || data["next_cursor_modified"] instanceof String)) {
|
|
140
|
-
throw new Error("Expected the field `next_cursor_modified` to be a primitive type in the JSON string but got " + data["next_cursor_modified"]);
|
|
141
|
-
}
|
|
142
135
|
return true;
|
|
143
136
|
}
|
|
144
137
|
}]);
|
|
@@ -157,14 +150,8 @@ GetEventsByCursor200Response.prototype["events"] = undefined;
|
|
|
157
150
|
GetEventsByCursor200Response.prototype["has_more"] = undefined;
|
|
158
151
|
|
|
159
152
|
/**
|
|
160
|
-
*
|
|
153
|
+
* The cursor value of the next result, which is intended to be used as the \"cursor\" parameter value of the next call to this method. An empty string is returned if there are no more results after this results set.
|
|
161
154
|
* @member {String} next_cursor
|
|
162
155
|
*/
|
|
163
156
|
GetEventsByCursor200Response.prototype["next_cursor"] = undefined;
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Pass this opaque value as a cursor parameter to start a search from where the last search left off. Returned even when there are no more results, so it can be used to poll for changes.
|
|
167
|
-
* @member {String} next_cursor_modified
|
|
168
|
-
*/
|
|
169
|
-
GetEventsByCursor200Response.prototype["next_cursor_modified"] = undefined;
|
|
170
157
|
var _default = exports["default"] = GetEventsByCursor200Response;
|