@blues-inc/notehub-js 6.2.0-beta.13 → 6.2.0-beta.15
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 -1
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +4 -7
- 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 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- 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/GetDeviceJourneys200Response.js +40 -11
- package/dist/model/GetDeviceJourneys200ResponseJourneysInner.js +55 -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
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The EmailNotification model module.
|
|
28
28
|
* @module model/EmailNotification
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.15
|
|
30
30
|
*/
|
|
31
31
|
var EmailNotification = /*#__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 EnvTreeJsonNode model module.
|
|
32
32
|
* @module model/EnvTreeJsonNode
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/EnvVar.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The EnvironmentVariables model module.
|
|
31
31
|
* @module model/EnvironmentVariables
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.15
|
|
33
33
|
*/
|
|
34
34
|
var EnvironmentVariables = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Error.js
CHANGED
package/dist/model/Event.js
CHANGED
package/dist/model/Filter.js
CHANGED
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
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.15
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,16 +30,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceJourneys200Response model module.
|
|
32
32
|
* @module model/GetDeviceJourneys200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceJourneys200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>GetDeviceJourneys200Response</code>.
|
|
38
38
|
* @alias module:model/GetDeviceJourneys200Response
|
|
39
|
+
* @param hasMore {Boolean}
|
|
40
|
+
* @param journeys {Array.<module:model/GetDeviceJourneys200ResponseJourneysInner>}
|
|
39
41
|
*/
|
|
40
|
-
function GetDeviceJourneys200Response() {
|
|
42
|
+
function GetDeviceJourneys200Response(hasMore, journeys) {
|
|
41
43
|
_classCallCheck(this, GetDeviceJourneys200Response);
|
|
42
|
-
GetDeviceJourneys200Response.initialize(this);
|
|
44
|
+
GetDeviceJourneys200Response.initialize(this, hasMore, journeys);
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
/**
|
|
@@ -49,7 +51,10 @@ var GetDeviceJourneys200Response = /*#__PURE__*/function () {
|
|
|
49
51
|
*/
|
|
50
52
|
return _createClass(GetDeviceJourneys200Response, null, [{
|
|
51
53
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj) {
|
|
54
|
+
value: function initialize(obj, hasMore, journeys) {
|
|
55
|
+
obj["has_more"] = hasMore;
|
|
56
|
+
obj["journeys"] = journeys;
|
|
57
|
+
}
|
|
53
58
|
|
|
54
59
|
/**
|
|
55
60
|
* Constructs a <code>GetDeviceJourneys200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -63,6 +68,9 @@ var GetDeviceJourneys200Response = /*#__PURE__*/function () {
|
|
|
63
68
|
value: function constructFromObject(data, obj) {
|
|
64
69
|
if (data) {
|
|
65
70
|
obj = obj || new GetDeviceJourneys200Response();
|
|
71
|
+
if (data.hasOwnProperty("has_more")) {
|
|
72
|
+
obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
|
|
73
|
+
}
|
|
66
74
|
if (data.hasOwnProperty("journeys")) {
|
|
67
75
|
obj["journeys"] = _ApiClient["default"].convertToType(data["journeys"], [_GetDeviceJourneys200ResponseJourneysInner["default"]]);
|
|
68
76
|
}
|
|
@@ -80,6 +88,21 @@ var GetDeviceJourneys200Response = /*#__PURE__*/function () {
|
|
|
80
88
|
}, {
|
|
81
89
|
key: "validateJSON",
|
|
82
90
|
value: function validateJSON(data) {
|
|
91
|
+
// check to make sure all required properties are present in the JSON string
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(GetDeviceJourneys200Response.RequiredProperties),
|
|
93
|
+
_step;
|
|
94
|
+
try {
|
|
95
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
96
|
+
var property = _step.value;
|
|
97
|
+
if (!data[property]) {
|
|
98
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
} catch (err) {
|
|
102
|
+
_iterator.e(err);
|
|
103
|
+
} finally {
|
|
104
|
+
_iterator.f();
|
|
105
|
+
}
|
|
83
106
|
if (data["journeys"]) {
|
|
84
107
|
// data not null
|
|
85
108
|
// ensure the json data is an array
|
|
@@ -87,25 +110,31 @@ var GetDeviceJourneys200Response = /*#__PURE__*/function () {
|
|
|
87
110
|
throw new Error("Expected the field `journeys` to be an array in the JSON data but got " + data["journeys"]);
|
|
88
111
|
}
|
|
89
112
|
// validate the optional field `journeys` (array)
|
|
90
|
-
var
|
|
91
|
-
|
|
113
|
+
var _iterator2 = _createForOfIteratorHelper(data["journeys"]),
|
|
114
|
+
_step2;
|
|
92
115
|
try {
|
|
93
|
-
for (
|
|
94
|
-
var item =
|
|
116
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
117
|
+
var item = _step2.value;
|
|
95
118
|
_GetDeviceJourneys200ResponseJourneysInner["default"].validateJsonObject(item);
|
|
96
119
|
}
|
|
97
120
|
} catch (err) {
|
|
98
|
-
|
|
121
|
+
_iterator2.e(err);
|
|
99
122
|
} finally {
|
|
100
|
-
|
|
123
|
+
_iterator2.f();
|
|
101
124
|
}
|
|
102
125
|
}
|
|
103
126
|
return true;
|
|
104
127
|
}
|
|
105
128
|
}]);
|
|
106
129
|
}();
|
|
130
|
+
GetDeviceJourneys200Response.RequiredProperties = ["has_more", "journeys"];
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @member {Boolean} has_more
|
|
134
|
+
*/
|
|
135
|
+
GetDeviceJourneys200Response.prototype["has_more"] = undefined;
|
|
136
|
+
|
|
107
137
|
/**
|
|
108
|
-
* Journeys ordered from most recent to oldest.
|
|
109
138
|
* @member {Array.<module:model/GetDeviceJourneys200ResponseJourneysInner>} journeys
|
|
110
139
|
*/
|
|
111
140
|
GetDeviceJourneys200Response.prototype["journeys"] = undefined;
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var _Event = _interopRequireDefault(require("./Event"));
|
|
9
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
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); }
|
|
11
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; } } }; }
|
|
@@ -30,16 +29,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
29
|
/**
|
|
31
30
|
* The GetDeviceJourneys200ResponseJourneysInner model module.
|
|
32
31
|
* @module model/GetDeviceJourneys200ResponseJourneysInner
|
|
33
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.15
|
|
34
33
|
*/
|
|
35
34
|
var GetDeviceJourneys200ResponseJourneysInner = /*#__PURE__*/function () {
|
|
36
35
|
/**
|
|
37
36
|
* Constructs a new <code>GetDeviceJourneys200ResponseJourneysInner</code>.
|
|
38
37
|
* @alias module:model/GetDeviceJourneys200ResponseJourneysInner
|
|
38
|
+
* @param endDate {Date} Latest event time within the journey.
|
|
39
|
+
* @param jcount {Number} Number of `_track.qo` points in the journey.
|
|
40
|
+
* @param journeyId {Number} Identifier of the journey, taken from the `journey` field on `_track.qo` events. This value is itself a Unix timestamp marking the start of the journey.
|
|
41
|
+
* @param startDate {Date} Earliest event time within the journey.
|
|
39
42
|
*/
|
|
40
|
-
function GetDeviceJourneys200ResponseJourneysInner() {
|
|
43
|
+
function GetDeviceJourneys200ResponseJourneysInner(endDate, jcount, journeyId, startDate) {
|
|
41
44
|
_classCallCheck(this, GetDeviceJourneys200ResponseJourneysInner);
|
|
42
|
-
GetDeviceJourneys200ResponseJourneysInner.initialize(this);
|
|
45
|
+
GetDeviceJourneys200ResponseJourneysInner.initialize(this, endDate, jcount, journeyId, startDate);
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
/**
|
|
@@ -49,7 +52,12 @@ var GetDeviceJourneys200ResponseJourneysInner = /*#__PURE__*/function () {
|
|
|
49
52
|
*/
|
|
50
53
|
return _createClass(GetDeviceJourneys200ResponseJourneysInner, null, [{
|
|
51
54
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj) {
|
|
55
|
+
value: function initialize(obj, endDate, jcount, journeyId, startDate) {
|
|
56
|
+
obj["end_date"] = endDate;
|
|
57
|
+
obj["jcount"] = jcount;
|
|
58
|
+
obj["journey_id"] = journeyId;
|
|
59
|
+
obj["start_date"] = startDate;
|
|
60
|
+
}
|
|
53
61
|
|
|
54
62
|
/**
|
|
55
63
|
* Constructs a <code>GetDeviceJourneys200ResponseJourneysInner</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -63,11 +71,17 @@ var GetDeviceJourneys200ResponseJourneysInner = /*#__PURE__*/function () {
|
|
|
63
71
|
value: function constructFromObject(data, obj) {
|
|
64
72
|
if (data) {
|
|
65
73
|
obj = obj || new GetDeviceJourneys200ResponseJourneysInner();
|
|
66
|
-
if (data.hasOwnProperty("
|
|
67
|
-
obj["
|
|
74
|
+
if (data.hasOwnProperty("end_date")) {
|
|
75
|
+
obj["end_date"] = _ApiClient["default"].convertToType(data["end_date"], "Date");
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty("jcount")) {
|
|
78
|
+
obj["jcount"] = _ApiClient["default"].convertToType(data["jcount"], "Number");
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty("journey_id")) {
|
|
81
|
+
obj["journey_id"] = _ApiClient["default"].convertToType(data["journey_id"], "Number");
|
|
68
82
|
}
|
|
69
|
-
if (data.hasOwnProperty("
|
|
70
|
-
obj["
|
|
83
|
+
if (data.hasOwnProperty("start_date")) {
|
|
84
|
+
obj["start_date"] = _ApiClient["default"].convertToType(data["start_date"], "Date");
|
|
71
85
|
}
|
|
72
86
|
} else if (data === null) {
|
|
73
87
|
return null;
|
|
@@ -83,38 +97,48 @@ var GetDeviceJourneys200ResponseJourneysInner = /*#__PURE__*/function () {
|
|
|
83
97
|
}, {
|
|
84
98
|
key: "validateJSON",
|
|
85
99
|
value: function validateJSON(data) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
_step;
|
|
95
|
-
try {
|
|
96
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
97
|
-
var item = _step.value;
|
|
98
|
-
_Event["default"].validateJsonObject(item);
|
|
100
|
+
// check to make sure all required properties are present in the JSON string
|
|
101
|
+
var _iterator = _createForOfIteratorHelper(GetDeviceJourneys200ResponseJourneysInner.RequiredProperties),
|
|
102
|
+
_step;
|
|
103
|
+
try {
|
|
104
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
105
|
+
var property = _step.value;
|
|
106
|
+
if (!data[property]) {
|
|
107
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
99
108
|
}
|
|
100
|
-
} catch (err) {
|
|
101
|
-
_iterator.e(err);
|
|
102
|
-
} finally {
|
|
103
|
-
_iterator.f();
|
|
104
109
|
}
|
|
110
|
+
} catch (err) {
|
|
111
|
+
_iterator.e(err);
|
|
112
|
+
} finally {
|
|
113
|
+
_iterator.f();
|
|
105
114
|
}
|
|
106
115
|
return true;
|
|
107
116
|
}
|
|
108
117
|
}]);
|
|
109
118
|
}();
|
|
119
|
+
GetDeviceJourneys200ResponseJourneysInner.RequiredProperties = ["end_date", "jcount", "journey_id", "start_date"];
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Latest event time within the journey.
|
|
123
|
+
* @member {Date} end_date
|
|
124
|
+
*/
|
|
125
|
+
GetDeviceJourneys200ResponseJourneysInner.prototype["end_date"] = undefined;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Number of `_track.qo` points in the journey.
|
|
129
|
+
* @member {Number} jcount
|
|
130
|
+
*/
|
|
131
|
+
GetDeviceJourneys200ResponseJourneysInner.prototype["jcount"] = undefined;
|
|
132
|
+
|
|
110
133
|
/**
|
|
111
|
-
*
|
|
134
|
+
* Identifier of the journey, taken from the `journey` field on `_track.qo` events. This value is itself a Unix timestamp marking the start of the journey.
|
|
135
|
+
* @member {Number} journey_id
|
|
112
136
|
*/
|
|
113
|
-
GetDeviceJourneys200ResponseJourneysInner.prototype["
|
|
137
|
+
GetDeviceJourneys200ResponseJourneysInner.prototype["journey_id"] = undefined;
|
|
114
138
|
|
|
115
139
|
/**
|
|
116
|
-
*
|
|
117
|
-
* @member {
|
|
140
|
+
* Earliest event time within the journey.
|
|
141
|
+
* @member {Date} start_date
|
|
118
142
|
*/
|
|
119
|
-
GetDeviceJourneys200ResponseJourneysInner.prototype["
|
|
143
|
+
GetDeviceJourneys200ResponseJourneysInner.prototype["start_date"] = undefined;
|
|
120
144
|
var _default = exports["default"] = GetDeviceJourneys200ResponseJourneysInner;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceLatestEvents200Response model module.
|
|
32
32
|
* @module model/GetDeviceLatestEvents200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceLatestEvents200Response = /*#__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 GetDevicePlans200Response model module.
|
|
32
32
|
* @module model/GetDevicePlans200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetDevicePlans200Response = /*#__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 GetDevicePublicKey200Response model module.
|
|
31
31
|
* @module model/GetDevicePublicKey200Response
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.15
|
|
33
33
|
*/
|
|
34
34
|
var GetDevicePublicKey200Response = /*#__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 GetDevicePublicKeys200Response model module.
|
|
32
32
|
* @module model/GetDevicePublicKeys200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetDevicePublicKeys200Response = /*#__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 GetDevicePublicKeys200ResponseDevicePublicKeysInner model module.
|
|
28
28
|
* @module model/GetDevicePublicKeys200ResponseDevicePublicKeysInner
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.15
|
|
30
30
|
*/
|
|
31
31
|
var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__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 GetDeviceSessions200Response model module.
|
|
32
32
|
* @module model/GetDeviceSessions200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceSessions200Response = /*#__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 GetDevices200Response model module.
|
|
32
32
|
* @module model/GetDevices200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetDevices200Response = /*#__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 GetEvents200Response model module.
|
|
32
32
|
* @module model/GetEvents200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetEvents200Response = /*#__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 GetEventsByCursor200Response model module.
|
|
32
32
|
* @module model/GetEventsByCursor200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetEventsByCursor200Response = /*#__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 GetJobRuns200Response model module.
|
|
32
32
|
* @module model/GetJobRuns200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetJobRuns200Response = /*#__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 GetJobs200Response model module.
|
|
32
32
|
* @module model/GetJobs200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetJobs200Response = /*#__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 GetNotefile200Response model module.
|
|
28
28
|
* @module model/GetNotefile200Response
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.15
|
|
30
30
|
*/
|
|
31
31
|
var GetNotefile200Response = /*#__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 GetProducts200Response model module.
|
|
32
32
|
* @module model/GetProducts200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetProducts200Response = /*#__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 GetProjectMembers200Response model module.
|
|
32
32
|
* @module model/GetProjectMembers200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectMembers200Response = /*#__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 GetProjects200Response model module.
|
|
32
32
|
* @module model/GetProjects200Response
|
|
33
|
-
* @version 6.2.0-beta.
|
|
33
|
+
* @version 6.2.0-beta.15
|
|
34
34
|
*/
|
|
35
35
|
var GetProjects200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|