@blues-inc/notehub-js 1.0.10 → 1.0.12

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 (83) hide show
  1. package/README.md +175 -180
  2. package/dist/ApiClient.js +155 -155
  3. package/dist/api/AuthorizationApi.js +15 -15
  4. package/dist/api/BillingAccountApi.js +13 -13
  5. package/dist/api/DeviceApi.js +157 -157
  6. package/dist/api/DevicesApi.js +58 -58
  7. package/dist/api/EnvironmentVariablesApi.js +110 -110
  8. package/dist/api/EventApi.js +94 -94
  9. package/dist/api/FilesApi.js +42 -42
  10. package/dist/api/FleetApi.js +160 -160
  11. package/dist/api/NotesApi.js +105 -105
  12. package/dist/api/ProductApi.js +29 -29
  13. package/dist/api/ProjectApi.js +137 -137
  14. package/dist/api/RouteApi.js +51 -51
  15. package/dist/index.js +14 -0
  16. package/dist/model/Aws.js +64 -64
  17. package/dist/model/Azure.js +42 -42
  18. package/dist/model/BillingAccount.js +20 -20
  19. package/dist/model/Body.js +4 -4
  20. package/dist/model/Contact.js +21 -21
  21. package/dist/model/CreateFleetRequest.js +6 -6
  22. package/dist/model/CreateProductRequest.js +21 -21
  23. package/dist/model/CreateProjectRequest.js +13 -13
  24. package/dist/model/DFUEnv.js +11 -11
  25. package/dist/model/DFUState.js +64 -64
  26. package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
  27. package/dist/model/Device.js +82 -82
  28. package/dist/model/DeviceSession.js +181 -181
  29. package/dist/model/DeviceTowerInfo.js +13 -13
  30. package/dist/model/DeviceUsage.js +31 -31
  31. package/dist/model/Edgeimpulse.js +214 -0
  32. package/dist/model/EdgeimpulseSensorsInner.js +106 -0
  33. package/dist/model/EnvironmentVariables.js +7 -7
  34. package/dist/model/Error.js +30 -30
  35. package/dist/model/Event.js +222 -222
  36. package/dist/model/Fleet.js +20 -20
  37. package/dist/model/GetBillingAccounts200Response.js +8 -9
  38. package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
  39. package/dist/model/GetDeviceHealthLog200Response.js +10 -11
  40. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
  41. package/dist/model/GetDeviceLatest200Response.js +8 -9
  42. package/dist/model/GetDevicePublicKey200Response.js +15 -15
  43. package/dist/model/GetDeviceSessions200Response.js +15 -16
  44. package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
  45. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
  46. package/dist/model/GetProjectDevices200Response.js +15 -16
  47. package/dist/model/GetProjectEvents200Response.js +20 -21
  48. package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
  49. package/dist/model/GetProjectFleets200Response.js +10 -11
  50. package/dist/model/GetProjectMembers200Response.js +10 -11
  51. package/dist/model/GetProjectProducts200Response.js +8 -9
  52. package/dist/model/GetProjects200Response.js +8 -9
  53. package/dist/model/Google.js +27 -27
  54. package/dist/model/HandleNoteChanges200Response.js +10 -10
  55. package/dist/model/HandleNoteGet200Response.js +12 -12
  56. package/dist/model/HandleNoteSignal200Response.js +4 -4
  57. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  58. package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
  59. package/dist/model/HandleNotefileDeleteRequest.js +6 -6
  60. package/dist/model/Http.js +34 -34
  61. package/dist/model/HttpFilter.js +18 -18
  62. package/dist/model/HttpTransform.js +19 -19
  63. package/dist/model/Location.js +39 -39
  64. package/dist/model/Login200Response.js +6 -6
  65. package/dist/model/LoginRequest.js +11 -11
  66. package/dist/model/Mqtt.js +65 -65
  67. package/dist/model/Note.js +9 -9
  68. package/dist/model/Product.js +25 -25
  69. package/dist/model/Project.js +33 -33
  70. package/dist/model/ProjectMember.js +21 -21
  71. package/dist/model/Proxy.js +23 -23
  72. package/dist/model/PutDeviceFleetsRequest.js +7 -7
  73. package/dist/model/Radresponder.js +24 -24
  74. package/dist/model/Route.js +40 -35
  75. package/dist/model/RouteSchema.js +39 -38
  76. package/dist/model/Snowflake.js +44 -44
  77. package/dist/model/SnowflakeTransform.js +11 -11
  78. package/dist/model/Thingworx.js +32 -32
  79. package/dist/model/TowerLocation.js +51 -51
  80. package/dist/model/Twilio.js +42 -42
  81. package/dist/model/UpdateFleetRequest.js +16 -16
  82. package/dist/model/UserDbRoute.js +24 -24
  83. package/package.json +3 -3
@@ -18,15 +18,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The Fleet model module.
20
20
  * @module model/Fleet
21
- * @version 1.0.10
21
+ * @version 1.0.12
22
22
  */
23
23
  var Fleet = /*#__PURE__*/function () {
24
24
  /**
25
25
  * Constructs a new <code>Fleet</code>.
26
26
  * @alias module:model/Fleet
27
- * @param uid {String}
28
- * @param label {String}
29
- * @param created {Date}
27
+ * @param uid {String}
28
+ * @param label {String}
29
+ * @param created {Date}
30
30
  */
31
31
  function Fleet(uid, label, created) {
32
32
  _classCallCheck(this, Fleet);
@@ -41,9 +41,9 @@ var Fleet = /*#__PURE__*/function () {
41
41
  _createClass(Fleet, null, [{
42
42
  key: "initialize",
43
43
  value: function initialize(obj, uid, label, created) {
44
- obj['uid'] = uid;
45
- obj['label'] = label;
46
- obj['created'] = created;
44
+ obj["uid"] = uid;
45
+ obj["label"] = label;
46
+ obj["created"] = created;
47
47
  }
48
48
 
49
49
  /**
@@ -58,14 +58,14 @@ var Fleet = /*#__PURE__*/function () {
58
58
  value: function constructFromObject(data, obj) {
59
59
  if (data) {
60
60
  obj = obj || new Fleet();
61
- if (data.hasOwnProperty('uid')) {
62
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
61
+ if (data.hasOwnProperty("uid")) {
62
+ obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
63
63
  }
64
- if (data.hasOwnProperty('label')) {
65
- obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
64
+ if (data.hasOwnProperty("label")) {
65
+ obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
66
66
  }
67
- if (data.hasOwnProperty('created')) {
68
- obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date');
67
+ if (data.hasOwnProperty("created")) {
68
+ obj["created"] = _ApiClient["default"].convertToType(data["created"], "Date");
69
69
  }
70
70
  } else if (data === null) {
71
71
  return null;
@@ -97,12 +97,12 @@ var Fleet = /*#__PURE__*/function () {
97
97
  } finally {
98
98
  _iterator.f();
99
99
  }
100
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
101
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
100
+ if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
101
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
102
102
  }
103
103
  // ensure the json data is a string
104
- if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
105
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
104
+ if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
105
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
106
106
  }
107
107
  return true;
108
108
  }
@@ -114,16 +114,16 @@ Fleet.RequiredProperties = ["uid", "label", "created"];
114
114
  /**
115
115
  * @member {String} uid
116
116
  */
117
- Fleet.prototype['uid'] = undefined;
117
+ Fleet.prototype["uid"] = undefined;
118
118
 
119
119
  /**
120
120
  * @member {String} label
121
121
  */
122
- Fleet.prototype['label'] = undefined;
122
+ Fleet.prototype["label"] = undefined;
123
123
 
124
124
  /**
125
125
  * @member {Date} created
126
126
  */
127
- Fleet.prototype['created'] = undefined;
127
+ Fleet.prototype["created"] = undefined;
128
128
  var _default = Fleet;
129
129
  exports["default"] = _default;
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The GetBillingAccounts200Response model module.
21
21
  * @module model/GetBillingAccounts200Response
22
- * @version 1.0.10
22
+ * @version 1.0.12
23
23
  */
24
24
  var GetBillingAccounts200Response = /*#__PURE__*/function () {
25
25
  /**
@@ -52,8 +52,8 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
52
52
  value: function constructFromObject(data, obj) {
53
53
  if (data) {
54
54
  obj = obj || new GetBillingAccounts200Response();
55
- if (data.hasOwnProperty('billing_accounts')) {
56
- obj['billing_accounts'] = _ApiClient["default"].convertToType(data['billing_accounts'], [_BillingAccount["default"]]);
55
+ if (data.hasOwnProperty("billing_accounts")) {
56
+ obj["billing_accounts"] = _ApiClient["default"].convertToType(data["billing_accounts"], [_BillingAccount["default"]]);
57
57
  }
58
58
  } else if (data === null) {
59
59
  return null;
@@ -69,14 +69,14 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
69
69
  }, {
70
70
  key: "validateJSON",
71
71
  value: function validateJSON(data) {
72
- if (data['billing_accounts']) {
72
+ if (data["billing_accounts"]) {
73
73
  // data not null
74
74
  // ensure the json data is an array
75
- if (!Array.isArray(data['billing_accounts'])) {
76
- throw new Error("Expected the field `billing_accounts` to be an array in the JSON data but got " + data['billing_accounts']);
75
+ if (!Array.isArray(data["billing_accounts"])) {
76
+ throw new Error("Expected the field `billing_accounts` to be an array in the JSON data but got " + data["billing_accounts"]);
77
77
  }
78
78
  // validate the optional field `billing_accounts` (array)
79
- var _iterator = _createForOfIteratorHelper(data['billing_accounts']),
79
+ var _iterator = _createForOfIteratorHelper(data["billing_accounts"]),
80
80
  _step;
81
81
  try {
82
82
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -88,7 +88,6 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
88
88
  } finally {
89
89
  _iterator.f();
90
90
  }
91
- ;
92
91
  }
93
92
  return true;
94
93
  }
@@ -98,6 +97,6 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
98
97
  /**
99
98
  * @member {Array.<module:model/BillingAccount>} billing_accounts
100
99
  */
101
- GetBillingAccounts200Response.prototype['billing_accounts'] = undefined;
100
+ GetBillingAccounts200Response.prototype["billing_accounts"] = undefined;
102
101
  var _default = GetBillingAccounts200Response;
103
102
  exports["default"] = _default;
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The GetDeviceEnvironmentVariables200Response model module.
20
20
  * @module model/GetDeviceEnvironmentVariables200Response
21
- * @version 1.0.10
21
+ * @version 1.0.12
22
22
  */
23
23
  var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
24
24
  /**
@@ -40,8 +40,8 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
40
40
  _createClass(GetDeviceEnvironmentVariables200Response, null, [{
41
41
  key: "initialize",
42
42
  value: function initialize(obj, environmentVariables, environmentVariablesEnvDefault) {
43
- obj['environment_variables'] = environmentVariables;
44
- obj['environment_variables_env_default'] = environmentVariablesEnvDefault;
43
+ obj["environment_variables"] = environmentVariables;
44
+ obj["environment_variables_env_default"] = environmentVariablesEnvDefault;
45
45
  }
46
46
 
47
47
  /**
@@ -56,14 +56,14 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
56
56
  value: function constructFromObject(data, obj) {
57
57
  if (data) {
58
58
  obj = obj || new GetDeviceEnvironmentVariables200Response();
59
- if (data.hasOwnProperty('environment_variables')) {
60
- obj['environment_variables'] = _ApiClient["default"].convertToType(data['environment_variables'], {
61
- 'String': 'String'
59
+ if (data.hasOwnProperty("environment_variables")) {
60
+ obj["environment_variables"] = _ApiClient["default"].convertToType(data["environment_variables"], {
61
+ String: "String"
62
62
  });
63
63
  }
64
- if (data.hasOwnProperty('environment_variables_env_default')) {
65
- obj['environment_variables_env_default'] = _ApiClient["default"].convertToType(data['environment_variables_env_default'], {
66
- 'String': 'String'
64
+ if (data.hasOwnProperty("environment_variables_env_default")) {
65
+ obj["environment_variables_env_default"] = _ApiClient["default"].convertToType(data["environment_variables_env_default"], {
66
+ String: "String"
67
67
  });
68
68
  }
69
69
  } else if (data === null) {
@@ -106,12 +106,12 @@ GetDeviceEnvironmentVariables200Response.RequiredProperties = ["environment_vari
106
106
  * The environment variables for this device that have been set using host firmware or the Notehub API or UI.
107
107
  * @member {Object.<String, String>} environment_variables
108
108
  */
109
- GetDeviceEnvironmentVariables200Response.prototype['environment_variables'] = undefined;
109
+ GetDeviceEnvironmentVariables200Response.prototype["environment_variables"] = undefined;
110
110
 
111
111
  /**
112
112
  * The environment variables that have been set using the env.default request through the Notecard API.
113
113
  * @member {Object.<String, String>} environment_variables_env_default
114
114
  */
115
- GetDeviceEnvironmentVariables200Response.prototype['environment_variables_env_default'] = undefined;
115
+ GetDeviceEnvironmentVariables200Response.prototype["environment_variables_env_default"] = undefined;
116
116
  var _default = GetDeviceEnvironmentVariables200Response;
117
117
  exports["default"] = _default;
@@ -19,13 +19,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The GetDeviceHealthLog200Response model module.
21
21
  * @module model/GetDeviceHealthLog200Response
22
- * @version 1.0.10
22
+ * @version 1.0.12
23
23
  */
24
24
  var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
25
25
  /**
26
26
  * Constructs a new <code>GetDeviceHealthLog200Response</code>.
27
27
  * @alias module:model/GetDeviceHealthLog200Response
28
- * @param healthLog {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>}
28
+ * @param healthLog {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>}
29
29
  */
30
30
  function GetDeviceHealthLog200Response(healthLog) {
31
31
  _classCallCheck(this, GetDeviceHealthLog200Response);
@@ -40,7 +40,7 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
40
40
  _createClass(GetDeviceHealthLog200Response, null, [{
41
41
  key: "initialize",
42
42
  value: function initialize(obj, healthLog) {
43
- obj['health_log'] = healthLog;
43
+ obj["health_log"] = healthLog;
44
44
  }
45
45
 
46
46
  /**
@@ -55,8 +55,8 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
55
55
  value: function constructFromObject(data, obj) {
56
56
  if (data) {
57
57
  obj = obj || new GetDeviceHealthLog200Response();
58
- if (data.hasOwnProperty('health_log')) {
59
- obj['health_log'] = _ApiClient["default"].convertToType(data['health_log'], [_GetDeviceHealthLog200ResponseHealthLogInner["default"]]);
58
+ if (data.hasOwnProperty("health_log")) {
59
+ obj["health_log"] = _ApiClient["default"].convertToType(data["health_log"], [_GetDeviceHealthLog200ResponseHealthLogInner["default"]]);
60
60
  }
61
61
  } else if (data === null) {
62
62
  return null;
@@ -87,14 +87,14 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
87
87
  } finally {
88
88
  _iterator.f();
89
89
  }
90
- if (data['health_log']) {
90
+ if (data["health_log"]) {
91
91
  // data not null
92
92
  // ensure the json data is an array
93
- if (!Array.isArray(data['health_log'])) {
94
- throw new Error("Expected the field `health_log` to be an array in the JSON data but got " + data['health_log']);
93
+ if (!Array.isArray(data["health_log"])) {
94
+ throw new Error("Expected the field `health_log` to be an array in the JSON data but got " + data["health_log"]);
95
95
  }
96
96
  // validate the optional field `health_log` (array)
97
- var _iterator2 = _createForOfIteratorHelper(data['health_log']),
97
+ var _iterator2 = _createForOfIteratorHelper(data["health_log"]),
98
98
  _step2;
99
99
  try {
100
100
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -106,7 +106,6 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
106
106
  } finally {
107
107
  _iterator2.f();
108
108
  }
109
- ;
110
109
  }
111
110
  return true;
112
111
  }
@@ -118,6 +117,6 @@ GetDeviceHealthLog200Response.RequiredProperties = ["health_log"];
118
117
  /**
119
118
  * @member {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>} health_log
120
119
  */
121
- GetDeviceHealthLog200Response.prototype['health_log'] = undefined;
120
+ GetDeviceHealthLog200Response.prototype["health_log"] = undefined;
122
121
  var _default = GetDeviceHealthLog200Response;
123
122
  exports["default"] = _default;
@@ -18,15 +18,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The GetDeviceHealthLog200ResponseHealthLogInner model module.
20
20
  * @module model/GetDeviceHealthLog200ResponseHealthLogInner
21
- * @version 1.0.10
21
+ * @version 1.0.12
22
22
  */
23
23
  var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
24
24
  /**
25
25
  * Constructs a new <code>GetDeviceHealthLog200ResponseHealthLogInner</code>.
26
26
  * @alias module:model/GetDeviceHealthLog200ResponseHealthLogInner
27
- * @param when {Date}
28
- * @param alert {Boolean}
29
- * @param text {String}
27
+ * @param when {Date}
28
+ * @param alert {Boolean}
29
+ * @param text {String}
30
30
  */
31
31
  function GetDeviceHealthLog200ResponseHealthLogInner(when, alert, text) {
32
32
  _classCallCheck(this, GetDeviceHealthLog200ResponseHealthLogInner);
@@ -41,9 +41,9 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
41
41
  _createClass(GetDeviceHealthLog200ResponseHealthLogInner, null, [{
42
42
  key: "initialize",
43
43
  value: function initialize(obj, when, alert, text) {
44
- obj['when'] = when;
45
- obj['alert'] = alert;
46
- obj['text'] = text;
44
+ obj["when"] = when;
45
+ obj["alert"] = alert;
46
+ obj["text"] = text;
47
47
  }
48
48
 
49
49
  /**
@@ -58,14 +58,14 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
58
58
  value: function constructFromObject(data, obj) {
59
59
  if (data) {
60
60
  obj = obj || new GetDeviceHealthLog200ResponseHealthLogInner();
61
- if (data.hasOwnProperty('when')) {
62
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'Date');
61
+ if (data.hasOwnProperty("when")) {
62
+ obj["when"] = _ApiClient["default"].convertToType(data["when"], "Date");
63
63
  }
64
- if (data.hasOwnProperty('alert')) {
65
- obj['alert'] = _ApiClient["default"].convertToType(data['alert'], 'Boolean');
64
+ if (data.hasOwnProperty("alert")) {
65
+ obj["alert"] = _ApiClient["default"].convertToType(data["alert"], "Boolean");
66
66
  }
67
- if (data.hasOwnProperty('text')) {
68
- obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
67
+ if (data.hasOwnProperty("text")) {
68
+ obj["text"] = _ApiClient["default"].convertToType(data["text"], "String");
69
69
  }
70
70
  } else if (data === null) {
71
71
  return null;
@@ -97,8 +97,8 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
97
97
  } finally {
98
98
  _iterator.f();
99
99
  }
100
- if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
101
- throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
100
+ if (data["text"] && !(typeof data["text"] === "string" || data["text"] instanceof String)) {
101
+ throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data["text"]);
102
102
  }
103
103
  return true;
104
104
  }
@@ -110,16 +110,16 @@ GetDeviceHealthLog200ResponseHealthLogInner.RequiredProperties = ["when", "alert
110
110
  /**
111
111
  * @member {Date} when
112
112
  */
113
- GetDeviceHealthLog200ResponseHealthLogInner.prototype['when'] = undefined;
113
+ GetDeviceHealthLog200ResponseHealthLogInner.prototype["when"] = undefined;
114
114
 
115
115
  /**
116
116
  * @member {Boolean} alert
117
117
  */
118
- GetDeviceHealthLog200ResponseHealthLogInner.prototype['alert'] = undefined;
118
+ GetDeviceHealthLog200ResponseHealthLogInner.prototype["alert"] = undefined;
119
119
 
120
120
  /**
121
121
  * @member {String} text
122
122
  */
123
- GetDeviceHealthLog200ResponseHealthLogInner.prototype['text'] = undefined;
123
+ GetDeviceHealthLog200ResponseHealthLogInner.prototype["text"] = undefined;
124
124
  var _default = GetDeviceHealthLog200ResponseHealthLogInner;
125
125
  exports["default"] = _default;
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The GetDeviceLatest200Response model module.
21
21
  * @module model/GetDeviceLatest200Response
22
- * @version 1.0.10
22
+ * @version 1.0.12
23
23
  */
24
24
  var GetDeviceLatest200Response = /*#__PURE__*/function () {
25
25
  /**
@@ -52,8 +52,8 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
52
52
  value: function constructFromObject(data, obj) {
53
53
  if (data) {
54
54
  obj = obj || new GetDeviceLatest200Response();
55
- if (data.hasOwnProperty('latest_events')) {
56
- obj['latest_events'] = _ApiClient["default"].convertToType(data['latest_events'], [_Event["default"]]);
55
+ if (data.hasOwnProperty("latest_events")) {
56
+ obj["latest_events"] = _ApiClient["default"].convertToType(data["latest_events"], [_Event["default"]]);
57
57
  }
58
58
  } else if (data === null) {
59
59
  return null;
@@ -69,14 +69,14 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
69
69
  }, {
70
70
  key: "validateJSON",
71
71
  value: function validateJSON(data) {
72
- if (data['latest_events']) {
72
+ if (data["latest_events"]) {
73
73
  // data not null
74
74
  // ensure the json data is an array
75
- if (!Array.isArray(data['latest_events'])) {
76
- throw new Error("Expected the field `latest_events` to be an array in the JSON data but got " + data['latest_events']);
75
+ if (!Array.isArray(data["latest_events"])) {
76
+ throw new Error("Expected the field `latest_events` to be an array in the JSON data but got " + data["latest_events"]);
77
77
  }
78
78
  // validate the optional field `latest_events` (array)
79
- var _iterator = _createForOfIteratorHelper(data['latest_events']),
79
+ var _iterator = _createForOfIteratorHelper(data["latest_events"]),
80
80
  _step;
81
81
  try {
82
82
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -88,7 +88,6 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
88
88
  } finally {
89
89
  _iterator.f();
90
90
  }
91
- ;
92
91
  }
93
92
  return true;
94
93
  }
@@ -99,6 +98,6 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
99
98
  * The set of latest events. Will always include the current \"session.begin\" event.
100
99
  * @member {Array.<module:model/Event>} latest_events
101
100
  */
102
- GetDeviceLatest200Response.prototype['latest_events'] = undefined;
101
+ GetDeviceLatest200Response.prototype["latest_events"] = undefined;
103
102
  var _default = GetDeviceLatest200Response;
104
103
  exports["default"] = _default;
@@ -18,14 +18,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The GetDevicePublicKey200Response model module.
20
20
  * @module model/GetDevicePublicKey200Response
21
- * @version 1.0.10
21
+ * @version 1.0.12
22
22
  */
23
23
  var GetDevicePublicKey200Response = /*#__PURE__*/function () {
24
24
  /**
25
25
  * Constructs a new <code>GetDevicePublicKey200Response</code>.
26
26
  * @alias module:model/GetDevicePublicKey200Response
27
- * @param uid {String}
28
- * @param key {String}
27
+ * @param uid {String}
28
+ * @param key {String}
29
29
  */
30
30
  function GetDevicePublicKey200Response(uid, key) {
31
31
  _classCallCheck(this, GetDevicePublicKey200Response);
@@ -40,8 +40,8 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
40
40
  _createClass(GetDevicePublicKey200Response, null, [{
41
41
  key: "initialize",
42
42
  value: function initialize(obj, uid, key) {
43
- obj['uid'] = uid;
44
- obj['key'] = key;
43
+ obj["uid"] = uid;
44
+ obj["key"] = key;
45
45
  }
46
46
 
47
47
  /**
@@ -56,11 +56,11 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
56
56
  value: function constructFromObject(data, obj) {
57
57
  if (data) {
58
58
  obj = obj || new GetDevicePublicKey200Response();
59
- if (data.hasOwnProperty('uid')) {
60
- obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
59
+ if (data.hasOwnProperty("uid")) {
60
+ obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
61
61
  }
62
- if (data.hasOwnProperty('key')) {
63
- obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
62
+ if (data.hasOwnProperty("key")) {
63
+ obj["key"] = _ApiClient["default"].convertToType(data["key"], "String");
64
64
  }
65
65
  } else if (data === null) {
66
66
  return null;
@@ -92,12 +92,12 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
92
92
  } finally {
93
93
  _iterator.f();
94
94
  }
95
- if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
96
- throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
95
+ if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
96
+ throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
97
97
  }
98
98
  // ensure the json data is a string
99
- if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
100
- throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
99
+ if (data["key"] && !(typeof data["key"] === "string" || data["key"] instanceof String)) {
100
+ throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data["key"]);
101
101
  }
102
102
  return true;
103
103
  }
@@ -109,11 +109,11 @@ GetDevicePublicKey200Response.RequiredProperties = ["uid", "key"];
109
109
  /**
110
110
  * @member {String} uid
111
111
  */
112
- GetDevicePublicKey200Response.prototype['uid'] = undefined;
112
+ GetDevicePublicKey200Response.prototype["uid"] = undefined;
113
113
 
114
114
  /**
115
115
  * @member {String} key
116
116
  */
117
- GetDevicePublicKey200Response.prototype['key'] = undefined;
117
+ GetDevicePublicKey200Response.prototype["key"] = undefined;
118
118
  var _default = GetDevicePublicKey200Response;
119
119
  exports["default"] = _default;
@@ -19,14 +19,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
19
19
  /**
20
20
  * The GetDeviceSessions200Response model module.
21
21
  * @module model/GetDeviceSessions200Response
22
- * @version 1.0.10
22
+ * @version 1.0.12
23
23
  */
24
24
  var GetDeviceSessions200Response = /*#__PURE__*/function () {
25
25
  /**
26
26
  * Constructs a new <code>GetDeviceSessions200Response</code>.
27
27
  * @alias module:model/GetDeviceSessions200Response
28
- * @param sessions {Array.<module:model/DeviceSession>}
29
- * @param hasMore {Boolean}
28
+ * @param sessions {Array.<module:model/DeviceSession>}
29
+ * @param hasMore {Boolean}
30
30
  */
31
31
  function GetDeviceSessions200Response(sessions, hasMore) {
32
32
  _classCallCheck(this, GetDeviceSessions200Response);
@@ -41,8 +41,8 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
41
41
  _createClass(GetDeviceSessions200Response, null, [{
42
42
  key: "initialize",
43
43
  value: function initialize(obj, sessions, hasMore) {
44
- obj['sessions'] = sessions;
45
- obj['has_more'] = hasMore;
44
+ obj["sessions"] = sessions;
45
+ obj["has_more"] = hasMore;
46
46
  }
47
47
 
48
48
  /**
@@ -57,11 +57,11 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
57
57
  value: function constructFromObject(data, obj) {
58
58
  if (data) {
59
59
  obj = obj || new GetDeviceSessions200Response();
60
- if (data.hasOwnProperty('sessions')) {
61
- obj['sessions'] = _ApiClient["default"].convertToType(data['sessions'], [_DeviceSession["default"]]);
60
+ if (data.hasOwnProperty("sessions")) {
61
+ obj["sessions"] = _ApiClient["default"].convertToType(data["sessions"], [_DeviceSession["default"]]);
62
62
  }
63
- if (data.hasOwnProperty('has_more')) {
64
- obj['has_more'] = _ApiClient["default"].convertToType(data['has_more'], 'Boolean');
63
+ if (data.hasOwnProperty("has_more")) {
64
+ obj["has_more"] = _ApiClient["default"].convertToType(data["has_more"], "Boolean");
65
65
  }
66
66
  } else if (data === null) {
67
67
  return null;
@@ -92,14 +92,14 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
92
92
  } finally {
93
93
  _iterator.f();
94
94
  }
95
- if (data['sessions']) {
95
+ if (data["sessions"]) {
96
96
  // data not null
97
97
  // ensure the json data is an array
98
- if (!Array.isArray(data['sessions'])) {
99
- throw new Error("Expected the field `sessions` to be an array in the JSON data but got " + data['sessions']);
98
+ if (!Array.isArray(data["sessions"])) {
99
+ throw new Error("Expected the field `sessions` to be an array in the JSON data but got " + data["sessions"]);
100
100
  }
101
101
  // validate the optional field `sessions` (array)
102
- var _iterator2 = _createForOfIteratorHelper(data['sessions']),
102
+ var _iterator2 = _createForOfIteratorHelper(data["sessions"]),
103
103
  _step2;
104
104
  try {
105
105
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
@@ -111,7 +111,6 @@ var GetDeviceSessions200Response = /*#__PURE__*/function () {
111
111
  } finally {
112
112
  _iterator2.f();
113
113
  }
114
- ;
115
114
  }
116
115
  return true;
117
116
  }
@@ -123,11 +122,11 @@ GetDeviceSessions200Response.RequiredProperties = ["sessions", "has_more"];
123
122
  /**
124
123
  * @member {Array.<module:model/DeviceSession>} sessions
125
124
  */
126
- GetDeviceSessions200Response.prototype['sessions'] = undefined;
125
+ GetDeviceSessions200Response.prototype["sessions"] = undefined;
127
126
 
128
127
  /**
129
128
  * @member {Boolean} has_more
130
129
  */
131
- GetDeviceSessions200Response.prototype['has_more'] = undefined;
130
+ GetDeviceSessions200Response.prototype["has_more"] = undefined;
132
131
  var _default = GetDeviceSessions200Response;
133
132
  exports["default"] = _default;