@blues-inc/notehub-js 1.0.37-beta.7 → 1.0.37-beta.9

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.
Files changed (132) hide show
  1. package/README.md +10 -10
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +64 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/WebhookApi.js +1 -1
  13. package/dist/index.js +52 -59
  14. package/dist/model/Alert.js +91 -91
  15. package/dist/model/AlertDataInner.js +10 -10
  16. package/dist/model/AlertNotificationsInner.js +10 -10
  17. package/dist/model/AnalyticsEventsData.js +14 -14
  18. package/dist/model/AnalyticsEventsResponse.js +1 -1
  19. package/dist/model/AnalyticsRouteLogsData.js +15 -15
  20. package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
  21. package/dist/model/AnalyticsSessionsData.js +14 -14
  22. package/dist/model/AnalyticsSessionsResponse.js +1 -1
  23. package/dist/model/Aws.js +86 -86
  24. package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
  25. package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
  26. package/dist/model/Azure.js +51 -51
  27. package/dist/model/BillingAccount.js +19 -19
  28. package/dist/model/Body.js +1 -1
  29. package/dist/model/CloneProjectRequest.js +25 -25
  30. package/dist/model/Contact.js +19 -19
  31. package/dist/model/CreateFleetRequest.js +1 -1
  32. package/dist/model/CreateMonitor.js +186 -186
  33. package/dist/model/CreateProductRequest.js +30 -30
  34. package/dist/model/CreateProjectRequest.js +20 -20
  35. package/dist/model/CreateUpdateRepository.js +18 -18
  36. package/dist/model/CurrentFirmware.js +12 -12
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +60 -60
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSetField.js +14 -14
  41. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  42. package/dist/model/Device.js +134 -134
  43. package/dist/model/DeviceDfuHistory.js +15 -15
  44. package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
  45. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  46. package/dist/model/DeviceDfuStateMachine.js +14 -14
  47. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  48. package/dist/model/DeviceDfuStatus.js +15 -15
  49. package/dist/model/DeviceDfuStatusPage.js +1 -1
  50. package/dist/model/DeviceSession.js +278 -278
  51. package/dist/model/DeviceTowerInfo.js +15 -15
  52. package/dist/model/DeviceUsage.js +36 -36
  53. package/dist/model/DfuActionRequest.js +1 -1
  54. package/dist/model/EmailNotification.js +1 -1
  55. package/dist/model/EnvTreeJsonNode.js +76 -76
  56. package/dist/model/EnvVar.js +9 -9
  57. package/dist/model/EnvironmentVariables.js +1 -1
  58. package/dist/model/Error.js +38 -38
  59. package/dist/model/Event.js +340 -340
  60. package/dist/model/Firmware.js +45 -45
  61. package/dist/model/FirmwareInfo.js +71 -71
  62. package/dist/model/Fleet.js +31 -31
  63. package/dist/model/GetAlerts200Response.js +1 -1
  64. package/dist/model/GetBillingAccounts200Response.js +1 -1
  65. package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
  66. package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
  67. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  68. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  69. package/dist/model/GetDeviceLatest200Response.js +1 -1
  70. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  71. package/dist/model/GetDeviceSessions200Response.js +14 -14
  72. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  73. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  74. package/dist/model/GetProjectDevices200Response.js +1 -1
  75. package/dist/model/GetProjectEvents200Response.js +1 -1
  76. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  77. package/dist/model/GetProjectMembers200Response.js +1 -1
  78. package/dist/model/GetProjectProducts200Response.js +1 -1
  79. package/dist/model/GetProjects200Response.js +1 -1
  80. package/dist/model/GetWebhooks200Response.js +1 -1
  81. package/dist/model/Google.js +35 -35
  82. package/dist/model/HandleNoteChanges200Response.js +10 -10
  83. package/dist/model/HandleNoteGet200Response.js +1 -1
  84. package/dist/model/HandleNoteSignal200Response.js +1 -1
  85. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  86. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  87. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  88. package/dist/model/Http.js +43 -43
  89. package/dist/model/Location.js +38 -38
  90. package/dist/model/Login200Response.js +1 -1
  91. package/dist/model/LoginRequest.js +12 -12
  92. package/dist/model/Monitor.js +135 -135
  93. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  94. package/dist/model/Mqtt.js +91 -91
  95. package/dist/model/Note.js +1 -1
  96. package/dist/model/NotefileSchema.js +1 -1
  97. package/dist/model/NotehubRoute.js +30 -30
  98. package/dist/model/NotehubRouteSchema.js +80 -80
  99. package/dist/model/{QuestionDataResponseMap.js → OAuth2Error.js} +65 -42
  100. package/dist/model/{DataSet.js → OAuth2TokenResponse.js} +67 -77
  101. package/dist/model/PersonalAccessToken.js +37 -37
  102. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  103. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  104. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  105. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  106. package/dist/model/Product.js +29 -29
  107. package/dist/model/Project.js +35 -35
  108. package/dist/model/ProjectMember.js +19 -19
  109. package/dist/model/Proxy.js +21 -21
  110. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  111. package/dist/model/Radresponder.js +28 -28
  112. package/dist/model/Repository.js +22 -22
  113. package/dist/model/RouteLog.js +28 -28
  114. package/dist/model/SchemaProperty.js +34 -36
  115. package/dist/model/SimUsage.js +16 -69
  116. package/dist/model/Slack.js +71 -71
  117. package/dist/model/SlackBearerNotification.js +14 -14
  118. package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
  119. package/dist/model/SlackWebHookNotification.js +14 -14
  120. package/dist/model/Snowflake.js +57 -57
  121. package/dist/model/Thingworx.js +36 -36
  122. package/dist/model/TowerLocation.js +58 -58
  123. package/dist/model/Twilio.js +46 -46
  124. package/dist/model/UpdateFleetRequest.js +14 -14
  125. package/dist/model/UploadMetadata.js +68 -68
  126. package/dist/model/UserDbRoute.js +26 -26
  127. package/dist/model/UserDfuStateMachine.js +14 -14
  128. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  129. package/dist/model/UserFirmwareInfo.js +1 -1
  130. package/dist/model/WebhookSettings.js +1 -1
  131. package/package.json +1 -1
  132. package/dist/model/QuestionDataResponseLineChart.js +0 -204
@@ -27,20 +27,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * The GetDeviceEnvironmentVariables200Response model module.
31
- * @module model/GetDeviceEnvironmentVariables200Response
32
- * @version 1.0.37-beta.7
30
+ * The GetDeviceEnvironmentVariablesByPin200Response model module.
31
+ * @module model/GetDeviceEnvironmentVariablesByPin200Response
32
+ * @version 1.0.37-beta.9
33
33
  */
34
- var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
34
+ var GetDeviceEnvironmentVariablesByPin200Response = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new <code>GetDeviceEnvironmentVariables200Response</code>.
37
- * @alias module:model/GetDeviceEnvironmentVariables200Response
36
+ * Constructs a new <code>GetDeviceEnvironmentVariablesByPin200Response</code>.
37
+ * @alias module:model/GetDeviceEnvironmentVariablesByPin200Response
38
38
  * @param environmentVariables {Object.<String, String>} The environment variables for this device that have been set using host firmware or the Notehub API or UI.
39
39
  * @param environmentVariablesEnvDefault {Object.<String, String>} The environment variables that have been set using the env.default request through the Notecard API.
40
40
  */
41
- function GetDeviceEnvironmentVariables200Response(environmentVariables, environmentVariablesEnvDefault) {
42
- _classCallCheck(this, GetDeviceEnvironmentVariables200Response);
43
- GetDeviceEnvironmentVariables200Response.initialize(this, environmentVariables, environmentVariablesEnvDefault);
41
+ function GetDeviceEnvironmentVariablesByPin200Response(environmentVariables, environmentVariablesEnvDefault) {
42
+ _classCallCheck(this, GetDeviceEnvironmentVariablesByPin200Response);
43
+ GetDeviceEnvironmentVariablesByPin200Response.initialize(this, environmentVariables, environmentVariablesEnvDefault);
44
44
  }
45
45
 
46
46
  /**
@@ -48,7 +48,7 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
48
48
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
49
  * Only for internal use.
50
50
  */
51
- return _createClass(GetDeviceEnvironmentVariables200Response, null, [{
51
+ return _createClass(GetDeviceEnvironmentVariablesByPin200Response, null, [{
52
52
  key: "initialize",
53
53
  value: function initialize(obj, environmentVariables, environmentVariablesEnvDefault) {
54
54
  obj['environment_variables'] = environmentVariables;
@@ -56,29 +56,29 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
56
56
  }
57
57
 
58
58
  /**
59
- * Constructs a <code>GetDeviceEnvironmentVariables200Response</code> from a plain JavaScript object, optionally creating a new instance.
59
+ * Constructs a <code>GetDeviceEnvironmentVariablesByPin200Response</code> from a plain JavaScript object, optionally creating a new instance.
60
60
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
61
61
  * @param {Object} data The plain JavaScript object bearing properties of interest.
62
- * @param {module:model/GetDeviceEnvironmentVariables200Response} obj Optional instance to populate.
63
- * @return {module:model/GetDeviceEnvironmentVariables200Response} The populated <code>GetDeviceEnvironmentVariables200Response</code> instance.
62
+ * @param {module:model/GetDeviceEnvironmentVariablesByPin200Response} obj Optional instance to populate.
63
+ * @return {module:model/GetDeviceEnvironmentVariablesByPin200Response} The populated <code>GetDeviceEnvironmentVariablesByPin200Response</code> instance.
64
64
  */
65
65
  }, {
66
66
  key: "constructFromObject",
67
67
  value: function constructFromObject(data, obj) {
68
68
  if (data) {
69
- obj = obj || new GetDeviceEnvironmentVariables200Response();
69
+ obj = obj || new GetDeviceEnvironmentVariablesByPin200Response();
70
70
  if (data.hasOwnProperty('environment_variables')) {
71
71
  obj['environment_variables'] = _ApiClient["default"].convertToType(data['environment_variables'], {
72
72
  'String': 'String'
73
73
  });
74
74
  }
75
- if (data.hasOwnProperty('environment_variables_env_default')) {
76
- obj['environment_variables_env_default'] = _ApiClient["default"].convertToType(data['environment_variables_env_default'], {
75
+ if (data.hasOwnProperty('environment_variables_effective')) {
76
+ obj['environment_variables_effective'] = _ApiClient["default"].convertToType(data['environment_variables_effective'], {
77
77
  'String': 'String'
78
78
  });
79
79
  }
80
- if (data.hasOwnProperty('environment_variables_effective')) {
81
- obj['environment_variables_effective'] = _ApiClient["default"].convertToType(data['environment_variables_effective'], {
80
+ if (data.hasOwnProperty('environment_variables_env_default')) {
81
+ obj['environment_variables_env_default'] = _ApiClient["default"].convertToType(data['environment_variables_env_default'], {
82
82
  'String': 'String'
83
83
  });
84
84
  }
@@ -89,15 +89,15 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
89
89
  }
90
90
 
91
91
  /**
92
- * Validates the JSON data with respect to <code>GetDeviceEnvironmentVariables200Response</code>.
92
+ * Validates the JSON data with respect to <code>GetDeviceEnvironmentVariablesByPin200Response</code>.
93
93
  * @param {Object} data The plain JavaScript object bearing properties of interest.
94
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceEnvironmentVariables200Response</code>.
94
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceEnvironmentVariablesByPin200Response</code>.
95
95
  */
96
96
  }, {
97
97
  key: "validateJSON",
98
98
  value: function validateJSON(data) {
99
99
  // check to make sure all required properties are present in the JSON string
100
- var _iterator = _createForOfIteratorHelper(GetDeviceEnvironmentVariables200Response.RequiredProperties),
100
+ var _iterator = _createForOfIteratorHelper(GetDeviceEnvironmentVariablesByPin200Response.RequiredProperties),
101
101
  _step;
102
102
  try {
103
103
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -115,23 +115,23 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
115
115
  }
116
116
  }]);
117
117
  }();
118
- GetDeviceEnvironmentVariables200Response.RequiredProperties = ["environment_variables", "environment_variables_env_default"];
118
+ GetDeviceEnvironmentVariablesByPin200Response.RequiredProperties = ["environment_variables", "environment_variables_env_default"];
119
119
 
120
120
  /**
121
121
  * The environment variables for this device that have been set using host firmware or the Notehub API or UI.
122
122
  * @member {Object.<String, String>} environment_variables
123
123
  */
124
- GetDeviceEnvironmentVariables200Response.prototype['environment_variables'] = undefined;
124
+ GetDeviceEnvironmentVariablesByPin200Response.prototype['environment_variables'] = undefined;
125
125
 
126
126
  /**
127
- * The environment variables that have been set using the env.default request through the Notecard API.
128
- * @member {Object.<String, String>} environment_variables_env_default
127
+ * The environment variables as they will be seen by the device, fully resolved with project/fleet/device prioritization rules.
128
+ * @member {Object.<String, String>} environment_variables_effective
129
129
  */
130
- GetDeviceEnvironmentVariables200Response.prototype['environment_variables_env_default'] = undefined;
130
+ GetDeviceEnvironmentVariablesByPin200Response.prototype['environment_variables_effective'] = undefined;
131
131
 
132
132
  /**
133
- * The environment variables as they will be seen by the device, fully resolved with project/fleet/device prioritization rules.
134
- * @member {Object.<String, String>} environment_variables_effective
133
+ * The environment variables that have been set using the env.default request through the Notecard API.
134
+ * @member {Object.<String, String>} environment_variables_env_default
135
135
  */
136
- GetDeviceEnvironmentVariables200Response.prototype['environment_variables_effective'] = undefined;
137
- var _default = exports["default"] = GetDeviceEnvironmentVariables200Response;
136
+ GetDeviceEnvironmentVariablesByPin200Response.prototype['environment_variables_env_default'] = undefined;
137
+ var _default = exports["default"] = GetDeviceEnvironmentVariablesByPin200Response;
@@ -28,19 +28,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  *
29
29
  */
30
30
  /**
31
- * The GetProjectFleets200Response model module.
32
- * @module model/GetProjectFleets200Response
33
- * @version 1.0.37-beta.7
31
+ * The GetDeviceFleets200Response model module.
32
+ * @module model/GetDeviceFleets200Response
33
+ * @version 1.0.37-beta.9
34
34
  */
35
- var GetProjectFleets200Response = /*#__PURE__*/function () {
35
+ var GetDeviceFleets200Response = /*#__PURE__*/function () {
36
36
  /**
37
- * Constructs a new <code>GetProjectFleets200Response</code>.
38
- * @alias module:model/GetProjectFleets200Response
37
+ * Constructs a new <code>GetDeviceFleets200Response</code>.
38
+ * @alias module:model/GetDeviceFleets200Response
39
39
  * @param fleets {Array.<module:model/Fleet>}
40
40
  */
41
- function GetProjectFleets200Response(fleets) {
42
- _classCallCheck(this, GetProjectFleets200Response);
43
- GetProjectFleets200Response.initialize(this, fleets);
41
+ function GetDeviceFleets200Response(fleets) {
42
+ _classCallCheck(this, GetDeviceFleets200Response);
43
+ GetDeviceFleets200Response.initialize(this, fleets);
44
44
  }
45
45
 
46
46
  /**
@@ -48,24 +48,24 @@ var GetProjectFleets200Response = /*#__PURE__*/function () {
48
48
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
49
49
  * Only for internal use.
50
50
  */
51
- return _createClass(GetProjectFleets200Response, null, [{
51
+ return _createClass(GetDeviceFleets200Response, null, [{
52
52
  key: "initialize",
53
53
  value: function initialize(obj, fleets) {
54
54
  obj['fleets'] = fleets;
55
55
  }
56
56
 
57
57
  /**
58
- * Constructs a <code>GetProjectFleets200Response</code> from a plain JavaScript object, optionally creating a new instance.
58
+ * Constructs a <code>GetDeviceFleets200Response</code> from a plain JavaScript object, optionally creating a new instance.
59
59
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
60
60
  * @param {Object} data The plain JavaScript object bearing properties of interest.
61
- * @param {module:model/GetProjectFleets200Response} obj Optional instance to populate.
62
- * @return {module:model/GetProjectFleets200Response} The populated <code>GetProjectFleets200Response</code> instance.
61
+ * @param {module:model/GetDeviceFleets200Response} obj Optional instance to populate.
62
+ * @return {module:model/GetDeviceFleets200Response} The populated <code>GetDeviceFleets200Response</code> instance.
63
63
  */
64
64
  }, {
65
65
  key: "constructFromObject",
66
66
  value: function constructFromObject(data, obj) {
67
67
  if (data) {
68
- obj = obj || new GetProjectFleets200Response();
68
+ obj = obj || new GetDeviceFleets200Response();
69
69
  if (data.hasOwnProperty('fleets')) {
70
70
  obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], [_Fleet["default"]]);
71
71
  }
@@ -76,15 +76,15 @@ var GetProjectFleets200Response = /*#__PURE__*/function () {
76
76
  }
77
77
 
78
78
  /**
79
- * Validates the JSON data with respect to <code>GetProjectFleets200Response</code>.
79
+ * Validates the JSON data with respect to <code>GetDeviceFleets200Response</code>.
80
80
  * @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>GetProjectFleets200Response</code>.
81
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>GetDeviceFleets200Response</code>.
82
82
  */
83
83
  }, {
84
84
  key: "validateJSON",
85
85
  value: function validateJSON(data) {
86
86
  // check to make sure all required properties are present in the JSON string
87
- var _iterator = _createForOfIteratorHelper(GetProjectFleets200Response.RequiredProperties),
87
+ var _iterator = _createForOfIteratorHelper(GetDeviceFleets200Response.RequiredProperties),
88
88
  _step;
89
89
  try {
90
90
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -123,10 +123,10 @@ var GetProjectFleets200Response = /*#__PURE__*/function () {
123
123
  }
124
124
  }]);
125
125
  }();
126
- GetProjectFleets200Response.RequiredProperties = ["fleets"];
126
+ GetDeviceFleets200Response.RequiredProperties = ["fleets"];
127
127
 
128
128
  /**
129
129
  * @member {Array.<module:model/Fleet>} fleets
130
130
  */
131
- GetProjectFleets200Response.prototype['fleets'] = undefined;
132
- var _default = exports["default"] = GetProjectFleets200Response;
131
+ GetDeviceFleets200Response.prototype['fleets'] = undefined;
132
+ var _default = exports["default"] = GetDeviceFleets200Response;
@@ -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 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,19 +29,19 @@ 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 1.0.37-beta.7
32
+ * @version 1.0.37-beta.9
33
33
  */
34
34
  var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>GetDeviceHealthLog200ResponseHealthLogInner</code>.
37
37
  * @alias module:model/GetDeviceHealthLog200ResponseHealthLogInner
38
- * @param when {Date}
39
38
  * @param alert {Boolean}
40
39
  * @param text {String}
40
+ * @param when {Date}
41
41
  */
42
- function GetDeviceHealthLog200ResponseHealthLogInner(when, alert, text) {
42
+ function GetDeviceHealthLog200ResponseHealthLogInner(alert, text, when) {
43
43
  _classCallCheck(this, GetDeviceHealthLog200ResponseHealthLogInner);
44
- GetDeviceHealthLog200ResponseHealthLogInner.initialize(this, when, alert, text);
44
+ GetDeviceHealthLog200ResponseHealthLogInner.initialize(this, alert, text, when);
45
45
  }
46
46
 
47
47
  /**
@@ -51,10 +51,10 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
51
51
  */
52
52
  return _createClass(GetDeviceHealthLog200ResponseHealthLogInner, null, [{
53
53
  key: "initialize",
54
- value: function initialize(obj, when, alert, text) {
55
- obj['when'] = when;
54
+ value: function initialize(obj, alert, text, when) {
56
55
  obj['alert'] = alert;
57
56
  obj['text'] = text;
57
+ obj['when'] = when;
58
58
  }
59
59
 
60
60
  /**
@@ -69,15 +69,15 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
69
69
  value: function constructFromObject(data, obj) {
70
70
  if (data) {
71
71
  obj = obj || new GetDeviceHealthLog200ResponseHealthLogInner();
72
- if (data.hasOwnProperty('when')) {
73
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Date');
74
- }
75
72
  if (data.hasOwnProperty('alert')) {
76
73
  obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
77
74
  }
78
75
  if (data.hasOwnProperty('text')) {
79
76
  obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
80
77
  }
78
+ if (data.hasOwnProperty('when')) {
79
+ obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Date');
80
+ }
81
81
  } else if (data === null) {
82
82
  return null;
83
83
  }
@@ -115,12 +115,7 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
115
115
  }
116
116
  }]);
117
117
  }();
118
- GetDeviceHealthLog200ResponseHealthLogInner.RequiredProperties = ["when", "alert", "text"];
119
-
120
- /**
121
- * @member {Date} when
122
- */
123
- GetDeviceHealthLog200ResponseHealthLogInner.prototype['when'] = undefined;
118
+ GetDeviceHealthLog200ResponseHealthLogInner.RequiredProperties = ["alert", "text", "when"];
124
119
 
125
120
  /**
126
121
  * @member {Boolean} alert
@@ -131,4 +126,9 @@ GetDeviceHealthLog200ResponseHealthLogInner.prototype['alert'] = undefined;
131
126
  * @member {String} text
132
127
  */
133
128
  GetDeviceHealthLog200ResponseHealthLogInner.prototype['text'] = undefined;
129
+
130
+ /**
131
+ * @member {Date} when
132
+ */
133
+ GetDeviceHealthLog200ResponseHealthLogInner.prototype['when'] = undefined;
134
134
  var _default = exports["default"] = GetDeviceHealthLog200ResponseHealthLogInner;
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetDeviceLatest200Response model module.
32
32
  * @module model/GetDeviceLatest200Response
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetDeviceLatest200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -29,18 +29,18 @@ 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 1.0.37-beta.7
32
+ * @version 1.0.37-beta.9
33
33
  */
34
34
  var GetDevicePublicKey200Response = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>GetDevicePublicKey200Response</code>.
37
37
  * @alias module:model/GetDevicePublicKey200Response
38
- * @param uid {String}
39
38
  * @param key {String}
39
+ * @param uid {String}
40
40
  */
41
- function GetDevicePublicKey200Response(uid, key) {
41
+ function GetDevicePublicKey200Response(key, uid) {
42
42
  _classCallCheck(this, GetDevicePublicKey200Response);
43
- GetDevicePublicKey200Response.initialize(this, uid, key);
43
+ GetDevicePublicKey200Response.initialize(this, key, uid);
44
44
  }
45
45
 
46
46
  /**
@@ -50,9 +50,9 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
50
50
  */
51
51
  return _createClass(GetDevicePublicKey200Response, null, [{
52
52
  key: "initialize",
53
- value: function initialize(obj, uid, key) {
54
- obj['uid'] = uid;
53
+ value: function initialize(obj, key, uid) {
55
54
  obj['key'] = key;
55
+ obj['uid'] = uid;
56
56
  }
57
57
 
58
58
  /**
@@ -67,12 +67,12 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
67
67
  value: function constructFromObject(data, obj) {
68
68
  if (data) {
69
69
  obj = obj || new GetDevicePublicKey200Response();
70
- if (data.hasOwnProperty('uid')) {
71
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
72
- }
73
70
  if (data.hasOwnProperty('key')) {
74
71
  obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
75
72
  }
73
+ if (data.hasOwnProperty('uid')) {
74
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
75
+ }
76
76
  } else if (data === null) {
77
77
  return null;
78
78
  }
@@ -103,26 +103,26 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
103
103
  } finally {
104
104
  _iterator.f();
105
105
  }
106
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
107
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
108
- }
109
- // ensure the json data is a string
110
106
  if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
111
107
  throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
112
108
  }
109
+ // ensure the json data is a string
110
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
111
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
112
+ }
113
113
  return true;
114
114
  }
115
115
  }]);
116
116
  }();
117
- GetDevicePublicKey200Response.RequiredProperties = ["uid", "key"];
117
+ GetDevicePublicKey200Response.RequiredProperties = ["key", "uid"];
118
118
 
119
119
  /**
120
- * @member {String} uid
120
+ * @member {String} key
121
121
  */
122
- GetDevicePublicKey200Response.prototype['uid'] = undefined;
122
+ GetDevicePublicKey200Response.prototype['key'] = undefined;
123
123
 
124
124
  /**
125
- * @member {String} key
125
+ * @member {String} uid
126
126
  */
127
- GetDevicePublicKey200Response.prototype['key'] = undefined;
127
+ GetDevicePublicKey200Response.prototype['uid'] = undefined;
128
128
  var _default = exports["default"] = GetDevicePublicKey200Response;
@@ -30,18 +30,18 @@ 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 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetDeviceSessions200Response = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>GetDeviceSessions200Response</code>.
38
38
  * @alias module:model/GetDeviceSessions200Response
39
- * @param sessions {Array.<module:model/DeviceSession>}
40
39
  * @param hasMore {Boolean}
40
+ * @param sessions {Array.<module:model/DeviceSession>}
41
41
  */
42
- function GetDeviceSessions200Response(sessions, hasMore) {
42
+ function GetDeviceSessions200Response(hasMore, sessions) {
43
43
  _classCallCheck(this, GetDeviceSessions200Response);
44
- GetDeviceSessions200Response.initialize(this, sessions, hasMore);
44
+ GetDeviceSessions200Response.initialize(this, hasMore, sessions);
45
45
  }
46
46
 
47
47
  /**
@@ -51,9 +51,9 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
51
51
  */
52
52
  return _createClass(GetDeviceSessions200Response, null, [{
53
53
  key: "initialize",
54
- value: function initialize(obj, sessions, hasMore) {
55
- obj['sessions'] = sessions;
54
+ value: function initialize(obj, hasMore, sessions) {
56
55
  obj['has_more'] = hasMore;
56
+ obj['sessions'] = sessions;
57
57
  }
58
58
 
59
59
  /**
@@ -68,12 +68,12 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
68
68
  value: function constructFromObject(data, obj) {
69
69
  if (data) {
70
70
  obj = obj || new GetDeviceSessions200Response();
71
- if (data.hasOwnProperty('sessions')) {
72
- obj['sessions'] = _ApiClient["default"].convertToType(data['sessions'], [_DeviceSession["default"]]);
73
- }
74
71
  if (data.hasOwnProperty('has_more')) {
75
72
  obj['has_more'] = _ApiClient["default"].convertToType(data['has_more'], 'Boolean');
76
73
  }
74
+ if (data.hasOwnProperty('sessions')) {
75
+ obj['sessions'] = _ApiClient["default"].convertToType(data['sessions'], [_DeviceSession["default"]]);
76
+ }
77
77
  } else if (data === null) {
78
78
  return null;
79
79
  }
@@ -128,15 +128,15 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
128
128
  }
129
129
  }]);
130
130
  }();
131
- GetDeviceSessions200Response.RequiredProperties = ["sessions", "has_more"];
131
+ GetDeviceSessions200Response.RequiredProperties = ["has_more", "sessions"];
132
132
 
133
133
  /**
134
- * @member {Array.<module:model/DeviceSession>} sessions
134
+ * @member {Boolean} has_more
135
135
  */
136
- GetDeviceSessions200Response.prototype['sessions'] = undefined;
136
+ GetDeviceSessions200Response.prototype['has_more'] = undefined;
137
137
 
138
138
  /**
139
- * @member {Boolean} has_more
139
+ * @member {Array.<module:model/DeviceSession>} sessions
140
140
  */
141
- GetDeviceSessions200Response.prototype['has_more'] = undefined;
141
+ GetDeviceSessions200Response.prototype['sessions'] = undefined;
142
142
  var _default = exports["default"] = GetDeviceSessions200Response;
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetProjectDevicePublicKeys200Response model module.
32
32
  * @module model/GetProjectDevicePublicKeys200Response
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetProjectDevicePublicKeys200Response = /*#__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 GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner model module.
28
28
  * @module model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner
29
- * @version 1.0.37-beta.7
29
+ * @version 1.0.37-beta.9
30
30
  */
31
31
  var GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function () {
32
32
  /**
@@ -59,12 +59,12 @@ var GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/fu
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner();
62
- if (data.hasOwnProperty('uid')) {
63
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
64
- }
65
62
  if (data.hasOwnProperty('key')) {
66
63
  obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
67
64
  }
65
+ if (data.hasOwnProperty('uid')) {
66
+ obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
67
+ }
68
68
  } else if (data === null) {
69
69
  return null;
70
70
  }
@@ -79,25 +79,25 @@ var GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/fu
79
79
  }, {
80
80
  key: "validateJSON",
81
81
  value: function validateJSON(data) {
82
- // ensure the json data is a string
83
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
84
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
85
- }
86
82
  // ensure the json data is a string
87
83
  if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
88
84
  throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
89
85
  }
86
+ // ensure the json data is a string
87
+ if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
88
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
89
+ }
90
90
  return true;
91
91
  }
92
92
  }]);
93
93
  }();
94
94
  /**
95
- * @member {String} uid
95
+ * @member {String} key
96
96
  */
97
- GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.prototype['uid'] = undefined;
97
+ GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.prototype['key'] = undefined;
98
98
 
99
99
  /**
100
- * @member {String} key
100
+ * @member {String} uid
101
101
  */
102
- GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.prototype['key'] = undefined;
102
+ GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.prototype['uid'] = undefined;
103
103
  var _default = exports["default"] = GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner;
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetProjectDevices200Response model module.
32
32
  * @module model/GetProjectDevices200Response
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetProjectDevices200Response = /*#__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 GetProjectEvents200Response model module.
32
32
  * @module model/GetProjectEvents200Response
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetProjectEvents200Response = /*#__PURE__*/function () {
36
36
  /**
@@ -30,19 +30,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The GetProjectEventsByCursor200Response model module.
32
32
  * @module model/GetProjectEventsByCursor200Response
33
- * @version 1.0.37-beta.7
33
+ * @version 1.0.37-beta.9
34
34
  */
35
35
  var GetProjectEventsByCursor200Response = /*#__PURE__*/function () {
36
36
  /**
37
37
  * Constructs a new <code>GetProjectEventsByCursor200Response</code>.
38
38
  * @alias module:model/GetProjectEventsByCursor200Response
39
39
  * @param events {Array.<module:model/Event>}
40
- * @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.
41
40
  * @param hasMore {Boolean} True if there are more events
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
- function GetProjectEventsByCursor200Response(events, nextCursor, hasMore) {
43
+ function GetProjectEventsByCursor200Response(events, hasMore, nextCursor) {
44
44
  _classCallCheck(this, GetProjectEventsByCursor200Response);
45
- GetProjectEventsByCursor200Response.initialize(this, events, nextCursor, hasMore);
45
+ GetProjectEventsByCursor200Response.initialize(this, events, hasMore, nextCursor);
46
46
  }
47
47
 
48
48
  /**
@@ -52,10 +52,10 @@ var GetProjectEventsByCursor200Response = /*#__PURE__*/function () {
52
52
  */
53
53
  return _createClass(GetProjectEventsByCursor200Response, null, [{
54
54
  key: "initialize",
55
- value: function initialize(obj, events, nextCursor, hasMore) {
55
+ value: function initialize(obj, events, hasMore, nextCursor) {
56
56
  obj['events'] = events;
57
- obj['next_cursor'] = nextCursor;
58
57
  obj['has_more'] = hasMore;
58
+ obj['next_cursor'] = nextCursor;
59
59
  }
60
60
 
61
61
  /**
@@ -73,12 +73,12 @@ var GetProjectEventsByCursor200Response = /*#__PURE__*/function () {
73
73
  if (data.hasOwnProperty('events')) {
74
74
  obj['events'] = _ApiClient["default"].convertToType(data['events'], [_Event["default"]]);
75
75
  }
76
- if (data.hasOwnProperty('next_cursor')) {
77
- obj['next_cursor'] = _ApiClient["default"].convertToType(data['next_cursor'], 'String');
78
- }
79
76
  if (data.hasOwnProperty('has_more')) {
80
77
  obj['has_more'] = _ApiClient["default"].convertToType(data['has_more'], 'Boolean');
81
78
  }
79
+ if (data.hasOwnProperty('next_cursor')) {
80
+ obj['next_cursor'] = _ApiClient["default"].convertToType(data['next_cursor'], 'String');
81
+ }
82
82
  } else if (data === null) {
83
83
  return null;
84
84
  }
@@ -137,22 +137,22 @@ var GetProjectEventsByCursor200Response = /*#__PURE__*/function () {
137
137
  }
138
138
  }]);
139
139
  }();
140
- GetProjectEventsByCursor200Response.RequiredProperties = ["events", "next_cursor", "has_more"];
140
+ GetProjectEventsByCursor200Response.RequiredProperties = ["events", "has_more", "next_cursor"];
141
141
 
142
142
  /**
143
143
  * @member {Array.<module:model/Event>} events
144
144
  */
145
145
  GetProjectEventsByCursor200Response.prototype['events'] = undefined;
146
146
 
147
- /**
148
- * 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.
149
- * @member {String} next_cursor
150
- */
151
- GetProjectEventsByCursor200Response.prototype['next_cursor'] = undefined;
152
-
153
147
  /**
154
148
  * True if there are more events
155
149
  * @member {Boolean} has_more
156
150
  */
157
151
  GetProjectEventsByCursor200Response.prototype['has_more'] = undefined;
152
+
153
+ /**
154
+ * 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.
155
+ * @member {String} next_cursor
156
+ */
157
+ GetProjectEventsByCursor200Response.prototype['next_cursor'] = undefined;
158
158
  var _default = exports["default"] = GetProjectEventsByCursor200Response;