@blues-inc/notehub-js 1.0.31 → 1.0.32-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/README.md +231 -211
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +16 -16
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +351 -351
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +203 -0
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +399 -340
  11. package/dist/api/RepositoryApi.js +103 -103
  12. package/dist/api/RouteApi.js +74 -74
  13. package/dist/api/WebhookApi.js +282 -0
  14. package/dist/index.js +28 -0
  15. package/dist/model/Alert.js +76 -74
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/Aws.js +65 -65
  19. package/dist/model/Azure.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/Body.js +5 -5
  23. package/dist/model/CloneProjectRequest.js +20 -20
  24. package/dist/model/Contact.js +22 -22
  25. package/dist/model/CreateFleetRequest.js +12 -12
  26. package/dist/model/CreateMonitor.js +126 -125
  27. package/dist/model/CreateProductRequest.js +22 -22
  28. package/dist/model/CreateProjectRequest.js +16 -16
  29. package/dist/model/CreateUpdateRepository.js +17 -17
  30. package/dist/model/CurrentFirmware.js +12 -12
  31. package/dist/model/DFUEnv.js +12 -12
  32. package/dist/model/DFUState.js +65 -65
  33. package/dist/model/DataField.js +7 -7
  34. package/dist/model/DataSet.js +30 -29
  35. package/dist/model/DataSetField.js +19 -19
  36. package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
  37. package/dist/model/Device.js +102 -101
  38. package/dist/model/DeviceDfuHistory.js +20 -19
  39. package/dist/model/DeviceDfuHistoryPage.js +13 -12
  40. package/dist/model/DeviceDfuStateMachine.js +25 -24
  41. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  42. package/dist/model/DeviceDfuStatus.js +20 -20
  43. package/dist/model/DeviceDfuStatusCurrent.js +32 -32
  44. package/dist/model/DeviceDfuStatusPage.js +13 -12
  45. package/dist/model/DeviceSession.js +296 -185
  46. package/dist/model/DeviceTowerInfo.js +14 -14
  47. package/dist/model/DeviceUsage.js +35 -33
  48. package/dist/model/DfuActionRequest.js +7 -7
  49. package/dist/model/EmailNotification.js +7 -7
  50. package/dist/model/EnvironmentVariables.js +8 -8
  51. package/dist/model/Error.js +31 -31
  52. package/dist/model/Event.js +243 -243
  53. package/dist/model/Firmware.js +49 -49
  54. package/dist/model/FirmwareInfo.js +60 -60
  55. package/dist/model/Fleet.js +34 -23
  56. package/dist/model/GetAlerts200Response.js +15 -14
  57. package/dist/model/GetBillingAccounts200Response.js +10 -9
  58. package/dist/model/GetDeviceEnvironmentVariables200Response.js +23 -12
  59. package/dist/model/GetDeviceHealthLog200Response.js +12 -11
  60. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  61. package/dist/model/GetDeviceLatest200Response.js +10 -9
  62. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  63. package/dist/model/GetDeviceSessions200Response.js +17 -16
  64. package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
  65. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  66. package/dist/model/GetProjectDevices200Response.js +17 -16
  67. package/dist/model/GetProjectEvents200Response.js +21 -20
  68. package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
  69. package/dist/model/GetProjectFleets200Response.js +12 -11
  70. package/dist/model/GetProjectMembers200Response.js +12 -11
  71. package/dist/model/GetProjectProducts200Response.js +10 -9
  72. package/dist/model/GetProjects200Response.js +10 -9
  73. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
  74. package/dist/model/GetWebhooks200Response.js +112 -0
  75. package/dist/model/Google.js +33 -33
  76. package/dist/model/HandleNoteChanges200Response.js +11 -11
  77. package/dist/model/HandleNoteGet200Response.js +13 -13
  78. package/dist/model/HandleNoteSignal200Response.js +5 -5
  79. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  80. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  81. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  82. package/dist/model/Http.js +35 -35
  83. package/dist/model/HttpFilter.js +19 -19
  84. package/dist/model/HttpTransform.js +20 -20
  85. package/dist/model/Location.js +40 -40
  86. package/dist/model/Login200Response.js +7 -7
  87. package/dist/model/LoginRequest.js +12 -12
  88. package/dist/model/Monitor.js +100 -99
  89. package/dist/model/MonitorAlertRoutesInner.js +9 -10
  90. package/dist/model/Mqtt.js +66 -66
  91. package/dist/model/Note.js +10 -10
  92. package/dist/model/NotefileSchema.js +19 -18
  93. package/dist/model/NotehubRoute.js +36 -36
  94. package/dist/model/NotehubRouteSchema.js +45 -46
  95. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  96. package/dist/model/Product.js +26 -26
  97. package/dist/model/Project.js +34 -34
  98. package/dist/model/ProjectMember.js +22 -22
  99. package/dist/model/Proxy.js +24 -24
  100. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  101. package/dist/model/QuestionDataResponseLineChart.js +39 -39
  102. package/dist/model/QuestionDataResponseMap.js +16 -16
  103. package/dist/model/Radresponder.js +25 -25
  104. package/dist/model/Repository.js +22 -22
  105. package/dist/model/Role.js +9 -9
  106. package/dist/model/SchemaProperty.js +40 -38
  107. package/dist/model/SimUsage.js +19 -19
  108. package/dist/model/Slack.js +53 -53
  109. package/dist/model/SlackBearerNotification.js +25 -25
  110. package/dist/model/SlackWebHookNotification.js +20 -20
  111. package/dist/model/Snowflake.js +45 -45
  112. package/dist/model/SnowflakeTransform.js +12 -12
  113. package/dist/model/Thingworx.js +33 -33
  114. package/dist/model/TowerLocation.js +70 -58
  115. package/dist/model/Twilio.js +43 -43
  116. package/dist/model/UpdateFleetRequest.js +22 -22
  117. package/dist/model/UploadMetadata.js +59 -59
  118. package/dist/model/UserDbRoute.js +25 -25
  119. package/dist/model/UserDfuStateMachine.js +20 -20
  120. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  121. package/dist/model/UserFirmwareInfo.js +12 -12
  122. package/dist/model/WebhookSettings.js +114 -0
  123. package/package.json +3 -3
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The HttpTransform model module.
28
28
  * @module model/HttpTransform
29
- * @version 1.0.31
29
+ * @version 1.0.32-beta.2
30
30
  */
31
31
  var HttpTransform = /*#__PURE__*/function () {
32
32
  /**
@@ -59,11 +59,11 @@ var HttpTransform = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new HttpTransform();
62
- if (data.hasOwnProperty("format")) {
63
- obj["format"] = _ApiClient["default"].convertToType(data["format"], "String");
62
+ if (data.hasOwnProperty('format')) {
63
+ obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String');
64
64
  }
65
- if (data.hasOwnProperty("jsonata")) {
66
- obj["jsonata"] = _ApiClient["default"].convertToType(data["jsonata"], "String");
65
+ if (data.hasOwnProperty('jsonata')) {
66
+ obj['jsonata'] = _ApiClient["default"].convertToType(data['jsonata'], 'String');
67
67
  }
68
68
  } else if (data === null) {
69
69
  return null;
@@ -80,12 +80,12 @@ var HttpTransform = /*#__PURE__*/function () {
80
80
  key: "validateJSON",
81
81
  value: function validateJSON(data) {
82
82
  // ensure the json data is a string
83
- if (data["format"] && !(typeof data["format"] === "string" || data["format"] instanceof String)) {
84
- throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data["format"]);
83
+ if (data['format'] && !(typeof data['format'] === 'string' || data['format'] instanceof String)) {
84
+ throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data['format']);
85
85
  }
86
86
  // ensure the json data is a string
87
- if (data["jsonata"] && !(typeof data["jsonata"] === "string" || data["jsonata"] instanceof String)) {
88
- throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data["jsonata"]);
87
+ if (data['jsonata'] && !(typeof data['jsonata'] === 'string' || data['jsonata'] instanceof String)) {
88
+ throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data['jsonata']);
89
89
  }
90
90
  return true;
91
91
  }
@@ -95,54 +95,54 @@ var HttpTransform = /*#__PURE__*/function () {
95
95
  * Data transformation to apply. Options of \"\" for none, \"bridge\" for Azure IoT, \"jsonata\" for JSONata expression, or \"flatten\", \"simple\", \"body\" or \"payload\"
96
96
  * @member {module:model/HttpTransform.FormatEnum} format
97
97
  */
98
- HttpTransform.prototype["format"] = undefined;
98
+ HttpTransform.prototype['format'] = undefined;
99
99
 
100
100
  /**
101
101
  * JSONata transformation, if JSONata
102
102
  * @member {String} jsonata
103
103
  */
104
- HttpTransform.prototype["jsonata"] = undefined;
104
+ HttpTransform.prototype['jsonata'] = undefined;
105
105
 
106
106
  /**
107
107
  * Allowed values for the <code>format</code> property.
108
108
  * @enum {String}
109
109
  * @readonly
110
110
  */
111
- HttpTransform["FormatEnum"] = {
111
+ HttpTransform['FormatEnum'] = {
112
112
  /**
113
113
  * value: ""
114
114
  * @const
115
115
  */
116
- empty: "",
116
+ "empty": "",
117
117
  /**
118
118
  * value: "bridge"
119
119
  * @const
120
120
  */
121
- bridge: "bridge",
121
+ "bridge": "bridge",
122
122
  /**
123
123
  * value: "jsonata"
124
124
  * @const
125
125
  */
126
- jsonata: "jsonata",
126
+ "jsonata": "jsonata",
127
127
  /**
128
128
  * value: "flatten"
129
129
  * @const
130
130
  */
131
- flatten: "flatten",
131
+ "flatten": "flatten",
132
132
  /**
133
133
  * value: "simple"
134
134
  * @const
135
135
  */
136
- simple: "simple",
136
+ "simple": "simple",
137
137
  /**
138
138
  * value: "body"
139
139
  * @const
140
140
  */
141
- body: "body",
141
+ "body": "body",
142
142
  /**
143
143
  * value: "payload"
144
144
  * @const
145
145
  */
146
- payload: "payload"
146
+ "payload": "payload"
147
147
  };
148
148
  var _default = exports["default"] = HttpTransform;
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
18
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
@@ -29,18 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The Location model module.
31
31
  * @module model/Location
32
- * @version 1.0.31
32
+ * @version 1.0.32-beta.2
33
33
  */
34
34
  var Location = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>Location</code>.
37
37
  * @alias module:model/Location
38
- * @param when {String}
39
- * @param name {String}
40
- * @param country {String}
41
- * @param timezone {String}
42
- * @param latitude {Number}
43
- * @param longitude {Number}
38
+ * @param when {String}
39
+ * @param name {String}
40
+ * @param country {String}
41
+ * @param timezone {String}
42
+ * @param latitude {Number}
43
+ * @param longitude {Number}
44
44
  */
45
45
  function Location(when, name, country, timezone, latitude, longitude) {
46
46
  _classCallCheck(this, Location);
@@ -55,12 +55,12 @@ var Location = /*#__PURE__*/function () {
55
55
  return _createClass(Location, null, [{
56
56
  key: "initialize",
57
57
  value: function initialize(obj, when, name, country, timezone, latitude, longitude) {
58
- obj["when"] = when;
59
- obj["name"] = name;
60
- obj["country"] = country;
61
- obj["timezone"] = timezone;
62
- obj["latitude"] = latitude;
63
- obj["longitude"] = longitude;
58
+ obj['when'] = when;
59
+ obj['name'] = name;
60
+ obj['country'] = country;
61
+ obj['timezone'] = timezone;
62
+ obj['latitude'] = latitude;
63
+ obj['longitude'] = longitude;
64
64
  }
65
65
 
66
66
  /**
@@ -75,23 +75,23 @@ var Location = /*#__PURE__*/function () {
75
75
  value: function constructFromObject(data, obj) {
76
76
  if (data) {
77
77
  obj = obj || new Location();
78
- if (data.hasOwnProperty("when")) {
79
- obj["when"] = _ApiClient["default"].convertToType(data["when"], "String");
78
+ if (data.hasOwnProperty('when')) {
79
+ obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
80
80
  }
81
- if (data.hasOwnProperty("name")) {
82
- obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
81
+ if (data.hasOwnProperty('name')) {
82
+ obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
83
83
  }
84
- if (data.hasOwnProperty("country")) {
85
- obj["country"] = _ApiClient["default"].convertToType(data["country"], "String");
84
+ if (data.hasOwnProperty('country')) {
85
+ obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
86
86
  }
87
- if (data.hasOwnProperty("timezone")) {
88
- obj["timezone"] = _ApiClient["default"].convertToType(data["timezone"], "String");
87
+ if (data.hasOwnProperty('timezone')) {
88
+ obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
89
89
  }
90
- if (data.hasOwnProperty("latitude")) {
91
- obj["latitude"] = _ApiClient["default"].convertToType(data["latitude"], "Number");
90
+ if (data.hasOwnProperty('latitude')) {
91
+ obj['latitude'] = _ApiClient["default"].convertToType(data['latitude'], 'Number');
92
92
  }
93
- if (data.hasOwnProperty("longitude")) {
94
- obj["longitude"] = _ApiClient["default"].convertToType(data["longitude"], "Number");
93
+ if (data.hasOwnProperty('longitude')) {
94
+ obj['longitude'] = _ApiClient["default"].convertToType(data['longitude'], 'Number');
95
95
  }
96
96
  } else if (data === null) {
97
97
  return null;
@@ -123,20 +123,20 @@ var Location = /*#__PURE__*/function () {
123
123
  } finally {
124
124
  _iterator.f();
125
125
  }
126
- if (data["when"] && !(typeof data["when"] === "string" || data["when"] instanceof String)) {
127
- throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data["when"]);
126
+ if (data['when'] && !(typeof data['when'] === 'string' || data['when'] instanceof String)) {
127
+ throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data['when']);
128
128
  }
129
129
  // ensure the json data is a string
130
- if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
131
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
130
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
131
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
132
132
  }
133
133
  // ensure the json data is a string
134
- if (data["country"] && !(typeof data["country"] === "string" || data["country"] instanceof String)) {
135
- throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data["country"]);
134
+ if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
135
+ throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
136
136
  }
137
137
  // ensure the json data is a string
138
- if (data["timezone"] && !(typeof data["timezone"] === "string" || data["timezone"] instanceof String)) {
139
- throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data["timezone"]);
138
+ if (data['timezone'] && !(typeof data['timezone'] === 'string' || data['timezone'] instanceof String)) {
139
+ throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data['timezone']);
140
140
  }
141
141
  return true;
142
142
  }
@@ -147,30 +147,30 @@ Location.RequiredProperties = ["when", "name", "country", "timezone", "latitude"
147
147
  /**
148
148
  * @member {String} when
149
149
  */
150
- Location.prototype["when"] = undefined;
150
+ Location.prototype['when'] = undefined;
151
151
 
152
152
  /**
153
153
  * @member {String} name
154
154
  */
155
- Location.prototype["name"] = undefined;
155
+ Location.prototype['name'] = undefined;
156
156
 
157
157
  /**
158
158
  * @member {String} country
159
159
  */
160
- Location.prototype["country"] = undefined;
160
+ Location.prototype['country'] = undefined;
161
161
 
162
162
  /**
163
163
  * @member {String} timezone
164
164
  */
165
- Location.prototype["timezone"] = undefined;
165
+ Location.prototype['timezone'] = undefined;
166
166
 
167
167
  /**
168
168
  * @member {Number} latitude
169
169
  */
170
- Location.prototype["latitude"] = undefined;
170
+ Location.prototype['latitude'] = undefined;
171
171
 
172
172
  /**
173
173
  * @member {Number} longitude
174
174
  */
175
- Location.prototype["longitude"] = undefined;
175
+ Location.prototype['longitude'] = undefined;
176
176
  var _default = exports["default"] = Location;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Login200Response model module.
28
28
  * @module model/Login200Response
29
- * @version 1.0.31
29
+ * @version 1.0.32-beta.2
30
30
  */
31
31
  var Login200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -59,8 +59,8 @@ var Login200Response = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new Login200Response();
62
- if (data.hasOwnProperty("session_token")) {
63
- obj["session_token"] = _ApiClient["default"].convertToType(data["session_token"], "String");
62
+ if (data.hasOwnProperty('session_token')) {
63
+ obj['session_token'] = _ApiClient["default"].convertToType(data['session_token'], 'String');
64
64
  }
65
65
  } else if (data === null) {
66
66
  return null;
@@ -77,8 +77,8 @@ var Login200Response = /*#__PURE__*/function () {
77
77
  key: "validateJSON",
78
78
  value: function validateJSON(data) {
79
79
  // ensure the json data is a string
80
- if (data["session_token"] && !(typeof data["session_token"] === "string" || data["session_token"] instanceof String)) {
81
- throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data["session_token"]);
80
+ if (data['session_token'] && !(typeof data['session_token'] === 'string' || data['session_token'] instanceof String)) {
81
+ throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data['session_token']);
82
82
  }
83
83
  return true;
84
84
  }
@@ -87,5 +87,5 @@ var Login200Response = /*#__PURE__*/function () {
87
87
  /**
88
88
  * @member {String} session_token
89
89
  */
90
- Login200Response.prototype["session_token"] = undefined;
90
+ Login200Response.prototype['session_token'] = undefined;
91
91
  var _default = exports["default"] = Login200Response;
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
13
13
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
14
14
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
15
15
  * Notehub API
16
- * The OpenAPI definition for the Notehub.io API.
16
+ * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
18
  * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: engineering@blues.io
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The LoginRequest model module.
28
28
  * @module model/LoginRequest
29
- * @version 1.0.31
29
+ * @version 1.0.32-beta.2
30
30
  */
31
31
  var LoginRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -59,11 +59,11 @@ var LoginRequest = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new LoginRequest();
62
- if (data.hasOwnProperty("username")) {
63
- obj["username"] = _ApiClient["default"].convertToType(data["username"], "String");
62
+ if (data.hasOwnProperty('username')) {
63
+ obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
64
64
  }
65
- if (data.hasOwnProperty("password")) {
66
- obj["password"] = _ApiClient["default"].convertToType(data["password"], "String");
65
+ if (data.hasOwnProperty('password')) {
66
+ obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
67
67
  }
68
68
  } else if (data === null) {
69
69
  return null;
@@ -80,12 +80,12 @@ var LoginRequest = /*#__PURE__*/function () {
80
80
  key: "validateJSON",
81
81
  value: function validateJSON(data) {
82
82
  // ensure the json data is a string
83
- if (data["username"] && !(typeof data["username"] === "string" || data["username"] instanceof String)) {
84
- throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data["username"]);
83
+ if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
84
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
85
85
  }
86
86
  // ensure the json data is a string
87
- if (data["password"] && !(typeof data["password"] === "string" || data["password"] instanceof String)) {
88
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data["password"]);
87
+ if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
88
+ throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
89
89
  }
90
90
  return true;
91
91
  }
@@ -94,10 +94,10 @@ var LoginRequest = /*#__PURE__*/function () {
94
94
  /**
95
95
  * @member {String} username
96
96
  */
97
- LoginRequest.prototype["username"] = undefined;
97
+ LoginRequest.prototype['username'] = undefined;
98
98
 
99
99
  /**
100
100
  * @member {String} password
101
101
  */
102
- LoginRequest.prototype["password"] = undefined;
102
+ LoginRequest.prototype['password'] = undefined;
103
103
  var _default = exports["default"] = LoginRequest;