@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
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The HttpFilter model module.
17
17
  * @module model/HttpFilter
18
- * @version 1.0.10
18
+ * @version 1.0.12
19
19
  */
20
20
  var HttpFilter = /*#__PURE__*/function () {
21
21
  /**
@@ -49,14 +49,14 @@ var HttpFilter = /*#__PURE__*/function () {
49
49
  value: function constructFromObject(data, obj) {
50
50
  if (data) {
51
51
  obj = obj || new HttpFilter();
52
- if (data.hasOwnProperty('type')) {
53
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
52
+ if (data.hasOwnProperty("type")) {
53
+ obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
54
54
  }
55
- if (data.hasOwnProperty('system_notefiles')) {
56
- obj['system_notefiles'] = _ApiClient["default"].convertToType(data['system_notefiles'], 'Boolean');
55
+ if (data.hasOwnProperty("system_notefiles")) {
56
+ obj["system_notefiles"] = _ApiClient["default"].convertToType(data["system_notefiles"], "Boolean");
57
57
  }
58
- if (data.hasOwnProperty('files')) {
59
- obj['files'] = _ApiClient["default"].convertToType(data['files'], ['String']);
58
+ if (data.hasOwnProperty("files")) {
59
+ obj["files"] = _ApiClient["default"].convertToType(data["files"], ["String"]);
60
60
  }
61
61
  } else if (data === null) {
62
62
  return null;
@@ -73,12 +73,12 @@ var HttpFilter = /*#__PURE__*/function () {
73
73
  key: "validateJSON",
74
74
  value: function validateJSON(data) {
75
75
  // ensure the json data is a string
76
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
77
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
76
+ if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
77
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
78
78
  }
79
79
  // ensure the json data is an array
80
- if (!Array.isArray(data['files'])) {
81
- throw new Error("Expected the field `files` to be an array in the JSON data but got " + data['files']);
80
+ if (!Array.isArray(data["files"])) {
81
+ throw new Error("Expected the field `files` to be an array in the JSON data but got " + data["files"]);
82
82
  }
83
83
  return true;
84
84
  }
@@ -89,40 +89,40 @@ var HttpFilter = /*#__PURE__*/function () {
89
89
  * What notefiles this route applies to.
90
90
  * @member {module:model/HttpFilter.TypeEnum} type
91
91
  */
92
- HttpFilter.prototype['type'] = undefined;
92
+ HttpFilter.prototype["type"] = undefined;
93
93
 
94
94
  /**
95
95
  * Whether system notefiles should be affected by this route
96
96
  * @member {Boolean} system_notefiles
97
97
  */
98
- HttpFilter.prototype['system_notefiles'] = undefined;
98
+ HttpFilter.prototype["system_notefiles"] = undefined;
99
99
 
100
100
  /**
101
101
  * @member {Array.<String>} files
102
102
  */
103
- HttpFilter.prototype['files'] = undefined;
103
+ HttpFilter.prototype["files"] = undefined;
104
104
 
105
105
  /**
106
106
  * Allowed values for the <code>type</code> property.
107
107
  * @enum {String}
108
108
  * @readonly
109
109
  */
110
- HttpFilter['TypeEnum'] = {
110
+ HttpFilter["TypeEnum"] = {
111
111
  /**
112
112
  * value: "all"
113
113
  * @const
114
114
  */
115
- "all": "all",
115
+ all: "all",
116
116
  /**
117
117
  * value: "include"
118
118
  * @const
119
119
  */
120
- "include": "include",
120
+ include: "include",
121
121
  /**
122
122
  * value: "exclude"
123
123
  * @const
124
124
  */
125
- "exclude": "exclude"
125
+ exclude: "exclude"
126
126
  };
127
127
  var _default = HttpFilter;
128
128
  exports["default"] = _default;
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The HttpTransform model module.
17
17
  * @module model/HttpTransform
18
- * @version 1.0.10
18
+ * @version 1.0.12
19
19
  */
20
20
  var HttpTransform = /*#__PURE__*/function () {
21
21
  /**
@@ -48,11 +48,11 @@ var HttpTransform = /*#__PURE__*/function () {
48
48
  value: function constructFromObject(data, obj) {
49
49
  if (data) {
50
50
  obj = obj || new HttpTransform();
51
- if (data.hasOwnProperty('format')) {
52
- obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String');
51
+ if (data.hasOwnProperty("format")) {
52
+ obj["format"] = _ApiClient["default"].convertToType(data["format"], "String");
53
53
  }
54
- if (data.hasOwnProperty('jsonata')) {
55
- obj['jsonata'] = _ApiClient["default"].convertToType(data['jsonata'], 'String');
54
+ if (data.hasOwnProperty("jsonata")) {
55
+ obj["jsonata"] = _ApiClient["default"].convertToType(data["jsonata"], "String");
56
56
  }
57
57
  } else if (data === null) {
58
58
  return null;
@@ -69,12 +69,12 @@ var HttpTransform = /*#__PURE__*/function () {
69
69
  key: "validateJSON",
70
70
  value: function validateJSON(data) {
71
71
  // ensure the json data is a string
72
- if (data['format'] && !(typeof data['format'] === 'string' || data['format'] instanceof String)) {
73
- throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data['format']);
72
+ if (data["format"] && !(typeof data["format"] === "string" || data["format"] instanceof String)) {
73
+ throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data["format"]);
74
74
  }
75
75
  // ensure the json data is a string
76
- if (data['jsonata'] && !(typeof data['jsonata'] === 'string' || data['jsonata'] instanceof String)) {
77
- throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data['jsonata']);
76
+ if (data["jsonata"] && !(typeof data["jsonata"] === "string" || data["jsonata"] instanceof String)) {
77
+ throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data["jsonata"]);
78
78
  }
79
79
  return true;
80
80
  }
@@ -85,55 +85,55 @@ var HttpTransform = /*#__PURE__*/function () {
85
85
  * Data transformation to apply. Options of \"\" for none, \"bridge\" for Azure IoT, \"jsonata\" for JSONata expression, or \"flatten\", \"simple\", \"body\" or \"payload\"
86
86
  * @member {module:model/HttpTransform.FormatEnum} format
87
87
  */
88
- HttpTransform.prototype['format'] = undefined;
88
+ HttpTransform.prototype["format"] = undefined;
89
89
 
90
90
  /**
91
91
  * JSONata transformation, if JSONata
92
92
  * @member {String} jsonata
93
93
  */
94
- HttpTransform.prototype['jsonata'] = undefined;
94
+ HttpTransform.prototype["jsonata"] = undefined;
95
95
 
96
96
  /**
97
97
  * Allowed values for the <code>format</code> property.
98
98
  * @enum {String}
99
99
  * @readonly
100
100
  */
101
- HttpTransform['FormatEnum'] = {
101
+ HttpTransform["FormatEnum"] = {
102
102
  /**
103
103
  * value: ""
104
104
  * @const
105
105
  */
106
- "empty": "",
106
+ empty: "",
107
107
  /**
108
108
  * value: "bridge"
109
109
  * @const
110
110
  */
111
- "bridge": "bridge",
111
+ bridge: "bridge",
112
112
  /**
113
113
  * value: "jsonata"
114
114
  * @const
115
115
  */
116
- "jsonata": "jsonata",
116
+ jsonata: "jsonata",
117
117
  /**
118
118
  * value: "flatten"
119
119
  * @const
120
120
  */
121
- "flatten": "flatten",
121
+ flatten: "flatten",
122
122
  /**
123
123
  * value: "simple"
124
124
  * @const
125
125
  */
126
- "simple": "simple",
126
+ simple: "simple",
127
127
  /**
128
128
  * value: "body"
129
129
  * @const
130
130
  */
131
- "body": "body",
131
+ body: "body",
132
132
  /**
133
133
  * value: "payload"
134
134
  * @const
135
135
  */
136
- "payload": "payload"
136
+ payload: "payload"
137
137
  };
138
138
  var _default = HttpTransform;
139
139
  exports["default"] = _default;
@@ -18,18 +18,18 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
18
18
  /**
19
19
  * The Location model module.
20
20
  * @module model/Location
21
- * @version 1.0.10
21
+ * @version 1.0.12
22
22
  */
23
23
  var Location = /*#__PURE__*/function () {
24
24
  /**
25
25
  * Constructs a new <code>Location</code>.
26
26
  * @alias module:model/Location
27
- * @param when {String}
28
- * @param name {String}
29
- * @param country {String}
30
- * @param timezone {String}
31
- * @param latitude {Number}
32
- * @param longitude {Number}
27
+ * @param when {String}
28
+ * @param name {String}
29
+ * @param country {String}
30
+ * @param timezone {String}
31
+ * @param latitude {Number}
32
+ * @param longitude {Number}
33
33
  */
34
34
  function Location(when, name, country, timezone, latitude, longitude) {
35
35
  _classCallCheck(this, Location);
@@ -44,12 +44,12 @@ var Location = /*#__PURE__*/function () {
44
44
  _createClass(Location, null, [{
45
45
  key: "initialize",
46
46
  value: function initialize(obj, when, name, country, timezone, latitude, longitude) {
47
- obj['when'] = when;
48
- obj['name'] = name;
49
- obj['country'] = country;
50
- obj['timezone'] = timezone;
51
- obj['latitude'] = latitude;
52
- obj['longitude'] = longitude;
47
+ obj["when"] = when;
48
+ obj["name"] = name;
49
+ obj["country"] = country;
50
+ obj["timezone"] = timezone;
51
+ obj["latitude"] = latitude;
52
+ obj["longitude"] = longitude;
53
53
  }
54
54
 
55
55
  /**
@@ -64,23 +64,23 @@ var Location = /*#__PURE__*/function () {
64
64
  value: function constructFromObject(data, obj) {
65
65
  if (data) {
66
66
  obj = obj || new Location();
67
- if (data.hasOwnProperty('when')) {
68
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
67
+ if (data.hasOwnProperty("when")) {
68
+ obj["when"] = _ApiClient["default"].convertToType(data["when"], "String");
69
69
  }
70
- if (data.hasOwnProperty('name')) {
71
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
70
+ if (data.hasOwnProperty("name")) {
71
+ obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
72
72
  }
73
- if (data.hasOwnProperty('country')) {
74
- obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
73
+ if (data.hasOwnProperty("country")) {
74
+ obj["country"] = _ApiClient["default"].convertToType(data["country"], "String");
75
75
  }
76
- if (data.hasOwnProperty('timezone')) {
77
- obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
76
+ if (data.hasOwnProperty("timezone")) {
77
+ obj["timezone"] = _ApiClient["default"].convertToType(data["timezone"], "String");
78
78
  }
79
- if (data.hasOwnProperty('latitude')) {
80
- obj['latitude'] = _ApiClient["default"].convertToType(data['latitude'], 'Number');
79
+ if (data.hasOwnProperty("latitude")) {
80
+ obj["latitude"] = _ApiClient["default"].convertToType(data["latitude"], "Number");
81
81
  }
82
- if (data.hasOwnProperty('longitude')) {
83
- obj['longitude'] = _ApiClient["default"].convertToType(data['longitude'], 'Number');
82
+ if (data.hasOwnProperty("longitude")) {
83
+ obj["longitude"] = _ApiClient["default"].convertToType(data["longitude"], "Number");
84
84
  }
85
85
  } else if (data === null) {
86
86
  return null;
@@ -112,20 +112,20 @@ var Location = /*#__PURE__*/function () {
112
112
  } finally {
113
113
  _iterator.f();
114
114
  }
115
- if (data['when'] && !(typeof data['when'] === 'string' || data['when'] instanceof String)) {
116
- throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data['when']);
115
+ if (data["when"] && !(typeof data["when"] === "string" || data["when"] instanceof String)) {
116
+ throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data["when"]);
117
117
  }
118
118
  // ensure the json data is a string
119
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
120
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
119
+ if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
120
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
121
121
  }
122
122
  // ensure the json data is a string
123
- if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
124
- throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
123
+ if (data["country"] && !(typeof data["country"] === "string" || data["country"] instanceof String)) {
124
+ throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data["country"]);
125
125
  }
126
126
  // ensure the json data is a string
127
- if (data['timezone'] && !(typeof data['timezone'] === 'string' || data['timezone'] instanceof String)) {
128
- throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data['timezone']);
127
+ if (data["timezone"] && !(typeof data["timezone"] === "string" || data["timezone"] instanceof String)) {
128
+ throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data["timezone"]);
129
129
  }
130
130
  return true;
131
131
  }
@@ -137,31 +137,31 @@ Location.RequiredProperties = ["when", "name", "country", "timezone", "latitude"
137
137
  /**
138
138
  * @member {String} when
139
139
  */
140
- Location.prototype['when'] = undefined;
140
+ Location.prototype["when"] = undefined;
141
141
 
142
142
  /**
143
143
  * @member {String} name
144
144
  */
145
- Location.prototype['name'] = undefined;
145
+ Location.prototype["name"] = undefined;
146
146
 
147
147
  /**
148
148
  * @member {String} country
149
149
  */
150
- Location.prototype['country'] = undefined;
150
+ Location.prototype["country"] = undefined;
151
151
 
152
152
  /**
153
153
  * @member {String} timezone
154
154
  */
155
- Location.prototype['timezone'] = undefined;
155
+ Location.prototype["timezone"] = undefined;
156
156
 
157
157
  /**
158
158
  * @member {Number} latitude
159
159
  */
160
- Location.prototype['latitude'] = undefined;
160
+ Location.prototype["latitude"] = undefined;
161
161
 
162
162
  /**
163
163
  * @member {Number} longitude
164
164
  */
165
- Location.prototype['longitude'] = undefined;
165
+ Location.prototype["longitude"] = undefined;
166
166
  var _default = Location;
167
167
  exports["default"] = _default;
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The Login200Response model module.
17
17
  * @module model/Login200Response
18
- * @version 1.0.10
18
+ * @version 1.0.12
19
19
  */
20
20
  var Login200Response = /*#__PURE__*/function () {
21
21
  /**
@@ -48,8 +48,8 @@ var Login200Response = /*#__PURE__*/function () {
48
48
  value: function constructFromObject(data, obj) {
49
49
  if (data) {
50
50
  obj = obj || new Login200Response();
51
- if (data.hasOwnProperty('session_token')) {
52
- obj['session_token'] = _ApiClient["default"].convertToType(data['session_token'], 'String');
51
+ if (data.hasOwnProperty("session_token")) {
52
+ obj["session_token"] = _ApiClient["default"].convertToType(data["session_token"], "String");
53
53
  }
54
54
  } else if (data === null) {
55
55
  return null;
@@ -66,8 +66,8 @@ var Login200Response = /*#__PURE__*/function () {
66
66
  key: "validateJSON",
67
67
  value: function validateJSON(data) {
68
68
  // ensure the json data is a string
69
- if (data['session_token'] && !(typeof data['session_token'] === 'string' || data['session_token'] instanceof String)) {
70
- throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data['session_token']);
69
+ if (data["session_token"] && !(typeof data["session_token"] === "string" || data["session_token"] instanceof String)) {
70
+ throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data["session_token"]);
71
71
  }
72
72
  return true;
73
73
  }
@@ -77,6 +77,6 @@ var Login200Response = /*#__PURE__*/function () {
77
77
  /**
78
78
  * @member {String} session_token
79
79
  */
80
- Login200Response.prototype['session_token'] = undefined;
80
+ Login200Response.prototype["session_token"] = undefined;
81
81
  var _default = Login200Response;
82
82
  exports["default"] = _default;
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
15
15
  /**
16
16
  * The LoginRequest model module.
17
17
  * @module model/LoginRequest
18
- * @version 1.0.10
18
+ * @version 1.0.12
19
19
  */
20
20
  var LoginRequest = /*#__PURE__*/function () {
21
21
  /**
@@ -48,11 +48,11 @@ var LoginRequest = /*#__PURE__*/function () {
48
48
  value: function constructFromObject(data, obj) {
49
49
  if (data) {
50
50
  obj = obj || new LoginRequest();
51
- if (data.hasOwnProperty('username')) {
52
- obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
51
+ if (data.hasOwnProperty("username")) {
52
+ obj["username"] = _ApiClient["default"].convertToType(data["username"], "String");
53
53
  }
54
- if (data.hasOwnProperty('password')) {
55
- obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
54
+ if (data.hasOwnProperty("password")) {
55
+ obj["password"] = _ApiClient["default"].convertToType(data["password"], "String");
56
56
  }
57
57
  } else if (data === null) {
58
58
  return null;
@@ -69,12 +69,12 @@ var LoginRequest = /*#__PURE__*/function () {
69
69
  key: "validateJSON",
70
70
  value: function validateJSON(data) {
71
71
  // ensure the json data is a string
72
- if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
73
- throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
72
+ if (data["username"] && !(typeof data["username"] === "string" || data["username"] instanceof String)) {
73
+ throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data["username"]);
74
74
  }
75
75
  // ensure the json data is a string
76
- if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
77
- throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
76
+ if (data["password"] && !(typeof data["password"] === "string" || data["password"] instanceof String)) {
77
+ throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data["password"]);
78
78
  }
79
79
  return true;
80
80
  }
@@ -84,11 +84,11 @@ var LoginRequest = /*#__PURE__*/function () {
84
84
  /**
85
85
  * @member {String} username
86
86
  */
87
- LoginRequest.prototype['username'] = undefined;
87
+ LoginRequest.prototype["username"] = undefined;
88
88
 
89
89
  /**
90
90
  * @member {String} password
91
91
  */
92
- LoginRequest.prototype['password'] = undefined;
92
+ LoginRequest.prototype["password"] = undefined;
93
93
  var _default = LoginRequest;
94
94
  exports["default"] = _default;