@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.
- package/README.md +175 -180
- package/dist/ApiClient.js +155 -155
- package/dist/api/AuthorizationApi.js +15 -15
- package/dist/api/BillingAccountApi.js +13 -13
- package/dist/api/DeviceApi.js +157 -157
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +137 -137
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +14 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/Edgeimpulse.js +214 -0
- package/dist/model/EdgeimpulseSensorsInner.js +106 -0
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +40 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
package/dist/model/HttpFilter.js
CHANGED
|
@@ -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.
|
|
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(
|
|
53
|
-
obj[
|
|
52
|
+
if (data.hasOwnProperty("type")) {
|
|
53
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
54
54
|
}
|
|
55
|
-
if (data.hasOwnProperty(
|
|
56
|
-
obj[
|
|
55
|
+
if (data.hasOwnProperty("system_notefiles")) {
|
|
56
|
+
obj["system_notefiles"] = _ApiClient["default"].convertToType(data["system_notefiles"], "Boolean");
|
|
57
57
|
}
|
|
58
|
-
if (data.hasOwnProperty(
|
|
59
|
-
obj[
|
|
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[
|
|
77
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
81
|
-
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data[
|
|
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[
|
|
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[
|
|
98
|
+
HttpFilter.prototype["system_notefiles"] = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* @member {Array.<String>} files
|
|
102
102
|
*/
|
|
103
|
-
HttpFilter.prototype[
|
|
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[
|
|
110
|
+
HttpFilter["TypeEnum"] = {
|
|
111
111
|
/**
|
|
112
112
|
* value: "all"
|
|
113
113
|
* @const
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
all: "all",
|
|
116
116
|
/**
|
|
117
117
|
* value: "include"
|
|
118
118
|
* @const
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
include: "include",
|
|
121
121
|
/**
|
|
122
122
|
* value: "exclude"
|
|
123
123
|
* @const
|
|
124
124
|
*/
|
|
125
|
-
|
|
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.
|
|
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(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("format")) {
|
|
52
|
+
obj["format"] = _ApiClient["default"].convertToType(data["format"], "String");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
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[
|
|
73
|
-
throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
77
|
-
throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
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[
|
|
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[
|
|
101
|
+
HttpTransform["FormatEnum"] = {
|
|
102
102
|
/**
|
|
103
103
|
* value: ""
|
|
104
104
|
* @const
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
empty: "",
|
|
107
107
|
/**
|
|
108
108
|
* value: "bridge"
|
|
109
109
|
* @const
|
|
110
110
|
*/
|
|
111
|
-
|
|
111
|
+
bridge: "bridge",
|
|
112
112
|
/**
|
|
113
113
|
* value: "jsonata"
|
|
114
114
|
* @const
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
jsonata: "jsonata",
|
|
117
117
|
/**
|
|
118
118
|
* value: "flatten"
|
|
119
119
|
* @const
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
flatten: "flatten",
|
|
122
122
|
/**
|
|
123
123
|
* value: "simple"
|
|
124
124
|
* @const
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
simple: "simple",
|
|
127
127
|
/**
|
|
128
128
|
* value: "body"
|
|
129
129
|
* @const
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
body: "body",
|
|
132
132
|
/**
|
|
133
133
|
* value: "payload"
|
|
134
134
|
* @const
|
|
135
135
|
*/
|
|
136
|
-
|
|
136
|
+
payload: "payload"
|
|
137
137
|
};
|
|
138
138
|
var _default = HttpTransform;
|
|
139
139
|
exports["default"] = _default;
|
package/dist/model/Location.js
CHANGED
|
@@ -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.
|
|
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[
|
|
48
|
-
obj[
|
|
49
|
-
obj[
|
|
50
|
-
obj[
|
|
51
|
-
obj[
|
|
52
|
-
obj[
|
|
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(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("when")) {
|
|
68
|
+
obj["when"] = _ApiClient["default"].convertToType(data["when"], "String");
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("name")) {
|
|
71
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty("country")) {
|
|
74
|
+
obj["country"] = _ApiClient["default"].convertToType(data["country"], "String");
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty("timezone")) {
|
|
77
|
+
obj["timezone"] = _ApiClient["default"].convertToType(data["timezone"], "String");
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty("latitude")) {
|
|
80
|
+
obj["latitude"] = _ApiClient["default"].convertToType(data["latitude"], "Number");
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
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[
|
|
116
|
-
throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
120
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
124
|
-
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
128
|
-
throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
140
|
+
Location.prototype["when"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {String} name
|
|
144
144
|
*/
|
|
145
|
-
Location.prototype[
|
|
145
|
+
Location.prototype["name"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {String} country
|
|
149
149
|
*/
|
|
150
|
-
Location.prototype[
|
|
150
|
+
Location.prototype["country"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {String} timezone
|
|
154
154
|
*/
|
|
155
|
-
Location.prototype[
|
|
155
|
+
Location.prototype["timezone"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {Number} latitude
|
|
159
159
|
*/
|
|
160
|
-
Location.prototype[
|
|
160
|
+
Location.prototype["latitude"] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {Number} longitude
|
|
164
164
|
*/
|
|
165
|
-
Location.prototype[
|
|
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.
|
|
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(
|
|
52
|
-
obj[
|
|
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[
|
|
70
|
-
throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
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.
|
|
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(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("username")) {
|
|
52
|
+
obj["username"] = _ApiClient["default"].convertToType(data["username"], "String");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
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[
|
|
73
|
-
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
77
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data[
|
|
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[
|
|
87
|
+
LoginRequest.prototype["username"] = undefined;
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* @member {String} password
|
|
91
91
|
*/
|
|
92
|
-
LoginRequest.prototype[
|
|
92
|
+
LoginRequest.prototype["password"] = undefined;
|
|
93
93
|
var _default = LoginRequest;
|
|
94
94
|
exports["default"] = _default;
|