@blues-inc/notehub-js 6.2.0-beta.20 → 6.2.0-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -9
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +122 -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/ProjectApi.js +1 -187
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +28 -28
- package/dist/model/AWSRoleConfig.js +1 -1
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CancelJobRun200Response.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateJob201Response.js +1 -1
- package/dist/model/CreateLegacyWebhookEventRequest.js +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/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteJob200Response.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccount200Response.js +1 -1
- package/dist/model/GetBillingAccount200ResponsePlan.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +1 -1
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/{ProjectSecret.js → GetDeviceJourney200Response.js} +52 -67
- package/dist/model/{GetProjectSecretsResponse.js → GetDeviceJourney200ResponseJourney.js} +44 -33
- package/dist/model/{CreateProjectSecretRequest.js → GetDeviceJourneys200Response.js} +52 -41
- package/dist/model/{UpdateProjectSecretRequest.js → GetDeviceJourneys200ResponseJourneysInner.js} +49 -31
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetJobRuns200Response.js +1 -1
- package/dist/model/GetJobs200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetRouteLogsUsage200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Job.js +1 -1
- package/dist/model/JobRun.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NoteInput.js +1 -1
- package/dist/model/Notefile.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/RunJob200Response.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatelliteDataUsage.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UpdateHostFirmwareRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
package/dist/model/Firmware.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Firmware model module.
|
|
28
28
|
* @module model/Firmware
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var Firmware = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The FirmwareInfo model module.
|
|
28
28
|
* @module model/FirmwareInfo
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var FirmwareInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Fleet.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The FleetConnectivityAssurance model module.
|
|
28
28
|
* @module model/FleetConnectivityAssurance
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var FleetConnectivityAssurance = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetAlerts200Response model module.
|
|
32
32
|
* @module model/GetAlerts200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetAlerts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The GetBillingAccount200Response model module.
|
|
29
29
|
* @module model/GetBillingAccount200Response
|
|
30
|
-
* @version 6.2.0-beta.
|
|
30
|
+
* @version 6.2.0-beta.21
|
|
31
31
|
*/
|
|
32
32
|
var GetBillingAccount200Response = /*#__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 GetBillingAccount200ResponsePlan model module.
|
|
28
28
|
* @module model/GetBillingAccount200ResponsePlan
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var GetBillingAccount200ResponsePlan = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetBillingAccountBalanceHistory200Response model module.
|
|
32
32
|
* @module model/GetBillingAccountBalanceHistory200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetBillingAccountBalanceHistory200Response = /*#__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 GetBillingAccountBalanceHistory200ResponseDataInner model module.
|
|
31
31
|
* @module model/GetBillingAccountBalanceHistory200ResponseDataInner
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var GetBillingAccountBalanceHistory200ResponseDataInner = /*#__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 GetBillingAccounts200Response model module.
|
|
32
32
|
* @module model/GetBillingAccounts200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDataUsage200Response model module.
|
|
32
32
|
* @module model/GetDataUsage200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetDataUsage200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDataUsage200ResponseDataInner model module.
|
|
32
32
|
* @module model/GetDataUsage200ResponseDataInner
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetDataUsage200ResponseDataInner = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetDbNote200Response model module.
|
|
28
28
|
* @module model/GetDbNote200Response
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.21
|
|
30
30
|
*/
|
|
31
31
|
var GetDbNote200Response = /*#__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 GetDeviceEnvironmentVariablesByPin200Response model module.
|
|
31
31
|
* @module model/GetDeviceEnvironmentVariablesByPin200Response
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceEnvironmentVariablesByPin200Response = /*#__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 GetDeviceFleets200Response model module.
|
|
32
32
|
* @module model/GetDeviceFleets200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceFleets200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceHealthLog200Response model module.
|
|
32
32
|
* @module model/GetDeviceHealthLog200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceHealthLog200Response = /*#__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 GetDeviceHealthLog200ResponseHealthLogInner model module.
|
|
31
31
|
* @module model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.21
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _GetDeviceJourney200ResponseJourney = _interopRequireDefault(require("./GetDeviceJourney200ResponseJourney"));
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
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); }
|
|
10
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; } } }; }
|
|
@@ -27,22 +28,22 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
28
|
*
|
|
28
29
|
*/
|
|
29
30
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
32
|
-
* @version 6.2.0-beta.
|
|
31
|
+
* The GetDeviceJourney200Response model module.
|
|
32
|
+
* @module model/GetDeviceJourney200Response
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
33
34
|
*/
|
|
34
|
-
var
|
|
35
|
+
var GetDeviceJourney200Response = /*#__PURE__*/function () {
|
|
35
36
|
/**
|
|
36
|
-
* Constructs a new <code>
|
|
37
|
-
*
|
|
38
|
-
* @
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
37
|
+
* Constructs a new <code>GetDeviceJourney200Response</code>.
|
|
38
|
+
* @alias module:model/GetDeviceJourney200Response
|
|
39
|
+
* @param endDate {Date} Latest event time within the journey.
|
|
40
|
+
* @param journey {module:model/GetDeviceJourney200ResponseJourney}
|
|
41
|
+
* @param journeyId {Number} Identifier of the journey.
|
|
42
|
+
* @param startDate {Date} Earliest event time within the journey.
|
|
42
43
|
*/
|
|
43
|
-
function
|
|
44
|
-
_classCallCheck(this,
|
|
45
|
-
|
|
44
|
+
function GetDeviceJourney200Response(endDate, journey, journeyId, startDate) {
|
|
45
|
+
_classCallCheck(this, GetDeviceJourney200Response);
|
|
46
|
+
GetDeviceJourney200Response.initialize(this, endDate, journey, journeyId, startDate);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
/**
|
|
@@ -50,40 +51,38 @@ var ProjectSecret = /*#__PURE__*/function () {
|
|
|
50
51
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
51
52
|
* Only for internal use.
|
|
52
53
|
*/
|
|
53
|
-
return _createClass(
|
|
54
|
+
return _createClass(GetDeviceJourney200Response, null, [{
|
|
54
55
|
key: "initialize",
|
|
55
|
-
value: function initialize(obj,
|
|
56
|
-
obj["
|
|
57
|
-
obj["
|
|
58
|
-
obj["
|
|
56
|
+
value: function initialize(obj, endDate, journey, journeyId, startDate) {
|
|
57
|
+
obj["end_date"] = endDate;
|
|
58
|
+
obj["journey"] = journey;
|
|
59
|
+
obj["journey_id"] = journeyId;
|
|
60
|
+
obj["start_date"] = startDate;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
/**
|
|
62
|
-
* Constructs a <code>
|
|
64
|
+
* Constructs a <code>GetDeviceJourney200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
63
65
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
64
66
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
65
|
-
* @param {module:model/
|
|
66
|
-
* @return {module:model/
|
|
67
|
+
* @param {module:model/GetDeviceJourney200Response} obj Optional instance to populate.
|
|
68
|
+
* @return {module:model/GetDeviceJourney200Response} The populated <code>GetDeviceJourney200Response</code> instance.
|
|
67
69
|
*/
|
|
68
70
|
}, {
|
|
69
71
|
key: "constructFromObject",
|
|
70
72
|
value: function constructFromObject(data, obj) {
|
|
71
73
|
if (data) {
|
|
72
|
-
obj = obj || new
|
|
73
|
-
if (data.hasOwnProperty("
|
|
74
|
-
obj["
|
|
74
|
+
obj = obj || new GetDeviceJourney200Response();
|
|
75
|
+
if (data.hasOwnProperty("end_date")) {
|
|
76
|
+
obj["end_date"] = _ApiClient["default"].convertToType(data["end_date"], "Date");
|
|
75
77
|
}
|
|
76
|
-
if (data.hasOwnProperty("
|
|
77
|
-
obj["
|
|
78
|
+
if (data.hasOwnProperty("journey")) {
|
|
79
|
+
obj["journey"] = _GetDeviceJourney200ResponseJourney["default"].constructFromObject(data["journey"]);
|
|
78
80
|
}
|
|
79
|
-
if (data.hasOwnProperty("
|
|
80
|
-
obj["
|
|
81
|
+
if (data.hasOwnProperty("journey_id")) {
|
|
82
|
+
obj["journey_id"] = _ApiClient["default"].convertToType(data["journey_id"], "Number");
|
|
81
83
|
}
|
|
82
|
-
if (data.hasOwnProperty("
|
|
83
|
-
obj["
|
|
84
|
-
}
|
|
85
|
-
if (data.hasOwnProperty("name")) {
|
|
86
|
-
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
84
|
+
if (data.hasOwnProperty("start_date")) {
|
|
85
|
+
obj["start_date"] = _ApiClient["default"].convertToType(data["start_date"], "Date");
|
|
87
86
|
}
|
|
88
87
|
} else if (data === null) {
|
|
89
88
|
return null;
|
|
@@ -92,15 +91,15 @@ var ProjectSecret = /*#__PURE__*/function () {
|
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
/**
|
|
95
|
-
* Validates the JSON data with respect to <code>
|
|
94
|
+
* Validates the JSON data with respect to <code>GetDeviceJourney200Response</code>.
|
|
96
95
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
97
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
96
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceJourney200Response</code>.
|
|
98
97
|
*/
|
|
99
98
|
}, {
|
|
100
99
|
key: "validateJSON",
|
|
101
100
|
value: function validateJSON(data) {
|
|
102
101
|
// check to make sure all required properties are present in the JSON string
|
|
103
|
-
var _iterator = _createForOfIteratorHelper(
|
|
102
|
+
var _iterator = _createForOfIteratorHelper(GetDeviceJourney200Response.RequiredProperties),
|
|
104
103
|
_step;
|
|
105
104
|
try {
|
|
106
105
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -109,56 +108,42 @@ var ProjectSecret = /*#__PURE__*/function () {
|
|
|
109
108
|
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
110
109
|
}
|
|
111
110
|
}
|
|
112
|
-
//
|
|
111
|
+
// validate the optional field `journey`
|
|
113
112
|
} catch (err) {
|
|
114
113
|
_iterator.e(err);
|
|
115
114
|
} finally {
|
|
116
115
|
_iterator.f();
|
|
117
116
|
}
|
|
118
|
-
if (data["
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
// ensure the json data is a string
|
|
122
|
-
if (data["modified_by"] && !(typeof data["modified_by"] === "string" || data["modified_by"] instanceof String)) {
|
|
123
|
-
throw new Error("Expected the field `modified_by` to be a primitive type in the JSON string but got " + data["modified_by"]);
|
|
124
|
-
}
|
|
125
|
-
// ensure the json data is a string
|
|
126
|
-
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
127
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
117
|
+
if (data["journey"]) {
|
|
118
|
+
// data not null
|
|
119
|
+
_GetDeviceJourney200ResponseJourney["default"].validateJSON(data["journey"]);
|
|
128
120
|
}
|
|
129
121
|
return true;
|
|
130
122
|
}
|
|
131
123
|
}]);
|
|
132
124
|
}();
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* When the secret was first created.
|
|
137
|
-
* @member {Date} created
|
|
138
|
-
*/
|
|
139
|
-
ProjectSecret.prototype["created"] = undefined;
|
|
125
|
+
GetDeviceJourney200Response.RequiredProperties = ["end_date", "journey", "journey_id", "start_date"];
|
|
140
126
|
|
|
141
127
|
/**
|
|
142
|
-
*
|
|
143
|
-
* @member {
|
|
128
|
+
* Latest event time within the journey.
|
|
129
|
+
* @member {Date} end_date
|
|
144
130
|
*/
|
|
145
|
-
|
|
131
|
+
GetDeviceJourney200Response.prototype["end_date"] = undefined;
|
|
146
132
|
|
|
147
133
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @member {Date} modified
|
|
134
|
+
* @member {module:model/GetDeviceJourney200ResponseJourney} journey
|
|
150
135
|
*/
|
|
151
|
-
|
|
136
|
+
GetDeviceJourney200Response.prototype["journey"] = undefined;
|
|
152
137
|
|
|
153
138
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @member {
|
|
139
|
+
* Identifier of the journey.
|
|
140
|
+
* @member {Number} journey_id
|
|
156
141
|
*/
|
|
157
|
-
|
|
142
|
+
GetDeviceJourney200Response.prototype["journey_id"] = undefined;
|
|
158
143
|
|
|
159
144
|
/**
|
|
160
|
-
*
|
|
161
|
-
* @member {
|
|
145
|
+
* Earliest event time within the journey.
|
|
146
|
+
* @member {Date} start_date
|
|
162
147
|
*/
|
|
163
|
-
|
|
164
|
-
var _default = exports["default"] =
|
|
148
|
+
GetDeviceJourney200Response.prototype["start_date"] = undefined;
|
|
149
|
+
var _default = exports["default"] = GetDeviceJourney200Response;
|
|
@@ -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 _Event = _interopRequireDefault(require("./Event"));
|
|
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; } } }; }
|
|
@@ -28,19 +28,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
*
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
|
-
* The
|
|
32
|
-
* @module model/
|
|
33
|
-
* @version 6.2.0-beta.
|
|
31
|
+
* The GetDeviceJourney200ResponseJourney model module.
|
|
32
|
+
* @module model/GetDeviceJourney200ResponseJourney
|
|
33
|
+
* @version 6.2.0-beta.21
|
|
34
34
|
*/
|
|
35
|
-
var
|
|
35
|
+
var GetDeviceJourney200ResponseJourney = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
|
-
* Constructs a new <code>
|
|
38
|
-
*
|
|
39
|
-
* @
|
|
37
|
+
* Constructs a new <code>GetDeviceJourney200ResponseJourney</code>.
|
|
38
|
+
* Paginated `_track.qo` events for the journey.
|
|
39
|
+
* @alias module:model/GetDeviceJourney200ResponseJourney
|
|
40
|
+
* @param events {Array.<module:model/Event>}
|
|
41
|
+
* @param hasMore {Boolean}
|
|
40
42
|
*/
|
|
41
|
-
function
|
|
42
|
-
_classCallCheck(this,
|
|
43
|
-
|
|
43
|
+
function GetDeviceJourney200ResponseJourney(events, hasMore) {
|
|
44
|
+
_classCallCheck(this, GetDeviceJourney200ResponseJourney);
|
|
45
|
+
GetDeviceJourney200ResponseJourney.initialize(this, events, hasMore);
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
/**
|
|
@@ -48,26 +50,30 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
|
|
|
48
50
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
51
|
* Only for internal use.
|
|
50
52
|
*/
|
|
51
|
-
return _createClass(
|
|
53
|
+
return _createClass(GetDeviceJourney200ResponseJourney, null, [{
|
|
52
54
|
key: "initialize",
|
|
53
|
-
value: function initialize(obj,
|
|
54
|
-
obj["
|
|
55
|
+
value: function initialize(obj, events, hasMore) {
|
|
56
|
+
obj["events"] = events;
|
|
57
|
+
obj["has_more"] = hasMore;
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
/**
|
|
58
|
-
* Constructs a <code>
|
|
61
|
+
* Constructs a <code>GetDeviceJourney200ResponseJourney</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
62
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
63
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
-
* @param {module:model/
|
|
62
|
-
* @return {module:model/
|
|
64
|
+
* @param {module:model/GetDeviceJourney200ResponseJourney} obj Optional instance to populate.
|
|
65
|
+
* @return {module:model/GetDeviceJourney200ResponseJourney} The populated <code>GetDeviceJourney200ResponseJourney</code> instance.
|
|
63
66
|
*/
|
|
64
67
|
}, {
|
|
65
68
|
key: "constructFromObject",
|
|
66
69
|
value: function constructFromObject(data, obj) {
|
|
67
70
|
if (data) {
|
|
68
|
-
obj = obj || new
|
|
69
|
-
if (data.hasOwnProperty("
|
|
70
|
-
obj["
|
|
71
|
+
obj = obj || new GetDeviceJourney200ResponseJourney();
|
|
72
|
+
if (data.hasOwnProperty("events")) {
|
|
73
|
+
obj["events"] = _ApiClient["default"].convertToType(data["events"], [_Event["default"]]);
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty("has_more")) {
|
|
76
|
+
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
71
77
|
}
|
|
72
78
|
} else if (data === null) {
|
|
73
79
|
return null;
|
|
@@ -76,15 +82,15 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
|
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
/**
|
|
79
|
-
* Validates the JSON data with respect to <code>
|
|
85
|
+
* Validates the JSON data with respect to <code>GetDeviceJourney200ResponseJourney</code>.
|
|
80
86
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
81
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
87
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceJourney200ResponseJourney</code>.
|
|
82
88
|
*/
|
|
83
89
|
}, {
|
|
84
90
|
key: "validateJSON",
|
|
85
91
|
value: function validateJSON(data) {
|
|
86
92
|
// check to make sure all required properties are present in the JSON string
|
|
87
|
-
var _iterator = _createForOfIteratorHelper(
|
|
93
|
+
var _iterator = _createForOfIteratorHelper(GetDeviceJourney200ResponseJourney.RequiredProperties),
|
|
88
94
|
_step;
|
|
89
95
|
try {
|
|
90
96
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -98,19 +104,19 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
|
|
|
98
104
|
} finally {
|
|
99
105
|
_iterator.f();
|
|
100
106
|
}
|
|
101
|
-
if (data["
|
|
107
|
+
if (data["events"]) {
|
|
102
108
|
// data not null
|
|
103
109
|
// ensure the json data is an array
|
|
104
|
-
if (!Array.isArray(data["
|
|
105
|
-
throw new Error("Expected the field `
|
|
110
|
+
if (!Array.isArray(data["events"])) {
|
|
111
|
+
throw new Error("Expected the field `events` to be an array in the JSON data but got " + data["events"]);
|
|
106
112
|
}
|
|
107
|
-
// validate the optional field `
|
|
108
|
-
var _iterator2 = _createForOfIteratorHelper(data["
|
|
113
|
+
// validate the optional field `events` (array)
|
|
114
|
+
var _iterator2 = _createForOfIteratorHelper(data["events"]),
|
|
109
115
|
_step2;
|
|
110
116
|
try {
|
|
111
117
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
112
118
|
var item = _step2.value;
|
|
113
|
-
|
|
119
|
+
_Event["default"].validateJsonObject(item);
|
|
114
120
|
}
|
|
115
121
|
} catch (err) {
|
|
116
122
|
_iterator2.e(err);
|
|
@@ -122,10 +128,15 @@ var GetProjectSecretsResponse = /*#__PURE__*/function () {
|
|
|
122
128
|
}
|
|
123
129
|
}]);
|
|
124
130
|
}();
|
|
125
|
-
|
|
131
|
+
GetDeviceJourney200ResponseJourney.RequiredProperties = ["events", "has_more"];
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @member {Array.<module:model/Event>} events
|
|
135
|
+
*/
|
|
136
|
+
GetDeviceJourney200ResponseJourney.prototype["events"] = undefined;
|
|
126
137
|
|
|
127
138
|
/**
|
|
128
|
-
* @member {
|
|
139
|
+
* @member {Boolean} has_more
|
|
129
140
|
*/
|
|
130
|
-
|
|
131
|
-
var _default = exports["default"] =
|
|
141
|
+
GetDeviceJourney200ResponseJourney.prototype["has_more"] = undefined;
|
|
142
|
+
var _default = exports["default"] = GetDeviceJourney200ResponseJourney;
|