@blues-inc/notehub-js 1.0.10 → 1.0.11
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 +181 -178
- package/dist/ApiClient.js +157 -154
- package/dist/api/AuthorizationApi.js +63 -18
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +159 -159
- 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 +139 -139
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +7 -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/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/GenerateAuthToken200Response.js +114 -0
- 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 +35 -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/Mqtt.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The Mqtt model module.
|
|
19
19
|
* @module model/Mqtt
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.11
|
|
21
21
|
*/
|
|
22
22
|
var Mqtt = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -51,47 +51,47 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
51
51
|
value: function constructFromObject(data, obj) {
|
|
52
52
|
if (data) {
|
|
53
53
|
obj = obj || new Mqtt();
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("fleets")) {
|
|
55
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("filter")) {
|
|
58
|
+
obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("transform")) {
|
|
61
|
+
obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
|
|
62
62
|
}
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
64
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("timeout")) {
|
|
67
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("broker")) {
|
|
70
|
+
obj["broker"] = _ApiClient["default"].convertToType(data["broker"], "String");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("port")) {
|
|
73
|
+
obj["port"] = _ApiClient["default"].convertToType(data["port"], "Number");
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("username")) {
|
|
76
|
+
obj["username"] = _ApiClient["default"].convertToType(data["username"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("password")) {
|
|
79
|
+
obj["password"] = _ApiClient["default"].convertToType(data["password"], "String");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("topic")) {
|
|
82
|
+
obj["topic"] = _ApiClient["default"].convertToType(data["topic"], "String");
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty("certificate")) {
|
|
85
|
+
obj["certificate"] = _ApiClient["default"].convertToType(data["certificate"], "String");
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty("certificate_name")) {
|
|
88
|
+
obj["certificate_name"] = _ApiClient["default"].convertToType(data["certificate_name"], "String");
|
|
89
89
|
}
|
|
90
|
-
if (data.hasOwnProperty(
|
|
91
|
-
obj[
|
|
90
|
+
if (data.hasOwnProperty("key")) {
|
|
91
|
+
obj["key"] = _ApiClient["default"].convertToType(data["key"], "String");
|
|
92
92
|
}
|
|
93
|
-
if (data.hasOwnProperty(
|
|
94
|
-
obj[
|
|
93
|
+
if (data.hasOwnProperty("private_key_name")) {
|
|
94
|
+
obj["private_key_name"] = _ApiClient["default"].convertToType(data["private_key_name"], "String");
|
|
95
95
|
}
|
|
96
96
|
} else if (data === null) {
|
|
97
97
|
return null;
|
|
@@ -108,50 +108,50 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
108
108
|
key: "validateJSON",
|
|
109
109
|
value: function validateJSON(data) {
|
|
110
110
|
// ensure the json data is an array
|
|
111
|
-
if (!Array.isArray(data[
|
|
112
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
111
|
+
if (!Array.isArray(data["fleets"])) {
|
|
112
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
113
113
|
}
|
|
114
114
|
// validate the optional field `filter`
|
|
115
|
-
if (data[
|
|
115
|
+
if (data["filter"]) {
|
|
116
116
|
// data not null
|
|
117
|
-
_HttpFilter["default"].validateJSON(data[
|
|
117
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
118
118
|
}
|
|
119
119
|
// validate the optional field `transform`
|
|
120
|
-
if (data[
|
|
120
|
+
if (data["transform"]) {
|
|
121
121
|
// data not null
|
|
122
|
-
_HttpTransform["default"].validateJSON(data[
|
|
122
|
+
_HttpTransform["default"].validateJSON(data["transform"]);
|
|
123
123
|
}
|
|
124
124
|
// ensure the json data is a string
|
|
125
|
-
if (data[
|
|
126
|
-
throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data[
|
|
125
|
+
if (data["broker"] && !(typeof data["broker"] === "string" || data["broker"] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `broker` to be a primitive type in the JSON string but got " + data["broker"]);
|
|
127
127
|
}
|
|
128
128
|
// ensure the json data is a string
|
|
129
|
-
if (data[
|
|
130
|
-
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data[
|
|
129
|
+
if (data["username"] && !(typeof data["username"] === "string" || data["username"] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data["username"]);
|
|
131
131
|
}
|
|
132
132
|
// ensure the json data is a string
|
|
133
|
-
if (data[
|
|
134
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data[
|
|
133
|
+
if (data["password"] && !(typeof data["password"] === "string" || data["password"] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data["password"]);
|
|
135
135
|
}
|
|
136
136
|
// ensure the json data is a string
|
|
137
|
-
if (data[
|
|
138
|
-
throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data[
|
|
137
|
+
if (data["topic"] && !(typeof data["topic"] === "string" || data["topic"] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `topic` to be a primitive type in the JSON string but got " + data["topic"]);
|
|
139
139
|
}
|
|
140
140
|
// ensure the json data is a string
|
|
141
|
-
if (data[
|
|
142
|
-
throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data[
|
|
141
|
+
if (data["certificate"] && !(typeof data["certificate"] === "string" || data["certificate"] instanceof String)) {
|
|
142
|
+
throw new Error("Expected the field `certificate` to be a primitive type in the JSON string but got " + data["certificate"]);
|
|
143
143
|
}
|
|
144
144
|
// ensure the json data is a string
|
|
145
|
-
if (data[
|
|
146
|
-
throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data[
|
|
145
|
+
if (data["certificate_name"] && !(typeof data["certificate_name"] === "string" || data["certificate_name"] instanceof String)) {
|
|
146
|
+
throw new Error("Expected the field `certificate_name` to be a primitive type in the JSON string but got " + data["certificate_name"]);
|
|
147
147
|
}
|
|
148
148
|
// ensure the json data is a string
|
|
149
|
-
if (data[
|
|
150
|
-
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data[
|
|
149
|
+
if (data["key"] && !(typeof data["key"] === "string" || data["key"] instanceof String)) {
|
|
150
|
+
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data["key"]);
|
|
151
151
|
}
|
|
152
152
|
// ensure the json data is a string
|
|
153
|
-
if (data[
|
|
154
|
-
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data[
|
|
153
|
+
if (data["private_key_name"] && !(typeof data["private_key_name"] === "string" || data["private_key_name"] instanceof String)) {
|
|
154
|
+
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data["private_key_name"]);
|
|
155
155
|
}
|
|
156
156
|
return true;
|
|
157
157
|
}
|
|
@@ -162,78 +162,78 @@ var Mqtt = /*#__PURE__*/function () {
|
|
|
162
162
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
163
163
|
* @member {Array.<String>} fleets
|
|
164
164
|
*/
|
|
165
|
-
Mqtt.prototype[
|
|
165
|
+
Mqtt.prototype["fleets"] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* @member {module:model/HttpFilter} filter
|
|
169
169
|
*/
|
|
170
|
-
Mqtt.prototype[
|
|
170
|
+
Mqtt.prototype["filter"] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* @member {module:model/HttpTransform} transform
|
|
174
174
|
*/
|
|
175
|
-
Mqtt.prototype[
|
|
175
|
+
Mqtt.prototype["transform"] = undefined;
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* @member {Number} throttle_ms
|
|
179
179
|
*/
|
|
180
|
-
Mqtt.prototype[
|
|
180
|
+
Mqtt.prototype["throttle_ms"] = undefined;
|
|
181
181
|
|
|
182
182
|
/**
|
|
183
183
|
* Timeout in seconds for each request
|
|
184
184
|
* @member {Number} timeout
|
|
185
185
|
* @default 15
|
|
186
186
|
*/
|
|
187
|
-
Mqtt.prototype[
|
|
187
|
+
Mqtt.prototype["timeout"] = 15;
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* @member {String} broker
|
|
191
191
|
*/
|
|
192
|
-
Mqtt.prototype[
|
|
192
|
+
Mqtt.prototype["broker"] = undefined;
|
|
193
193
|
|
|
194
194
|
/**
|
|
195
195
|
* @member {Number} port
|
|
196
196
|
*/
|
|
197
|
-
Mqtt.prototype[
|
|
197
|
+
Mqtt.prototype["port"] = undefined;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* @member {String} username
|
|
201
201
|
*/
|
|
202
|
-
Mqtt.prototype[
|
|
202
|
+
Mqtt.prototype["username"] = undefined;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
206
206
|
* @member {String} password
|
|
207
207
|
*/
|
|
208
|
-
Mqtt.prototype[
|
|
208
|
+
Mqtt.prototype["password"] = undefined;
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
211
|
* @member {String} topic
|
|
212
212
|
*/
|
|
213
|
-
Mqtt.prototype[
|
|
213
|
+
Mqtt.prototype["topic"] = undefined;
|
|
214
214
|
|
|
215
215
|
/**
|
|
216
216
|
* Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
217
217
|
* @member {String} certificate
|
|
218
218
|
*/
|
|
219
|
-
Mqtt.prototype[
|
|
219
|
+
Mqtt.prototype["certificate"] = undefined;
|
|
220
220
|
|
|
221
221
|
/**
|
|
222
222
|
* Name of certificate.
|
|
223
223
|
* @member {String} certificate_name
|
|
224
224
|
*/
|
|
225
|
-
Mqtt.prototype[
|
|
225
|
+
Mqtt.prototype["certificate_name"] = undefined;
|
|
226
226
|
|
|
227
227
|
/**
|
|
228
228
|
* Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
229
229
|
* @member {String} key
|
|
230
230
|
*/
|
|
231
|
-
Mqtt.prototype[
|
|
231
|
+
Mqtt.prototype["key"] = undefined;
|
|
232
232
|
|
|
233
233
|
/**
|
|
234
234
|
* Name of key
|
|
235
235
|
* @member {String} private_key_name
|
|
236
236
|
*/
|
|
237
|
-
Mqtt.prototype[
|
|
237
|
+
Mqtt.prototype["private_key_name"] = undefined;
|
|
238
238
|
var _default = Mqtt;
|
|
239
239
|
exports["default"] = _default;
|
package/dist/model/Note.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The Note model module.
|
|
17
17
|
* @module model/Note
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var Note = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,11 +48,11 @@ var Note = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new Note();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("body")) {
|
|
52
|
+
obj["body"] = _ApiClient["default"].convertToType(data["body"], Object);
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("payload")) {
|
|
55
|
+
obj["payload"] = _ApiClient["default"].convertToType(data["payload"], "String");
|
|
56
56
|
}
|
|
57
57
|
} else if (data === null) {
|
|
58
58
|
return null;
|
|
@@ -69,8 +69,8 @@ var Note = /*#__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 `payload` to be a primitive type in the JSON string but got " + data[
|
|
72
|
+
if (data["payload"] && !(typeof data["payload"] === "string" || data["payload"] instanceof String)) {
|
|
73
|
+
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data["payload"]);
|
|
74
74
|
}
|
|
75
75
|
return true;
|
|
76
76
|
}
|
|
@@ -80,11 +80,11 @@ var Note = /*#__PURE__*/function () {
|
|
|
80
80
|
/**
|
|
81
81
|
* @member {Object} body
|
|
82
82
|
*/
|
|
83
|
-
Note.prototype[
|
|
83
|
+
Note.prototype["body"] = undefined;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* @member {String} payload
|
|
87
87
|
*/
|
|
88
|
-
Note.prototype[
|
|
88
|
+
Note.prototype["payload"] = undefined;
|
|
89
89
|
var _default = Note;
|
|
90
90
|
exports["default"] = _default;
|
package/dist/model/Product.js
CHANGED
|
@@ -18,15 +18,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The Product model module.
|
|
20
20
|
* @module model/Product
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var Product = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
25
|
* Constructs a new <code>Product</code>.
|
|
26
26
|
* @alias module:model/Product
|
|
27
|
-
* @param uid {String}
|
|
28
|
-
* @param label {String}
|
|
29
|
-
* @param disableDevicesByDefault {Boolean}
|
|
27
|
+
* @param uid {String}
|
|
28
|
+
* @param label {String}
|
|
29
|
+
* @param disableDevicesByDefault {Boolean}
|
|
30
30
|
*/
|
|
31
31
|
function Product(uid, label, disableDevicesByDefault) {
|
|
32
32
|
_classCallCheck(this, Product);
|
|
@@ -41,9 +41,9 @@ var Product = /*#__PURE__*/function () {
|
|
|
41
41
|
_createClass(Product, null, [{
|
|
42
42
|
key: "initialize",
|
|
43
43
|
value: function initialize(obj, uid, label, disableDevicesByDefault) {
|
|
44
|
-
obj[
|
|
45
|
-
obj[
|
|
46
|
-
obj[
|
|
44
|
+
obj["uid"] = uid;
|
|
45
|
+
obj["label"] = label;
|
|
46
|
+
obj["disable_devices_by_default"] = disableDevicesByDefault;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -58,17 +58,17 @@ var Product = /*#__PURE__*/function () {
|
|
|
58
58
|
value: function constructFromObject(data, obj) {
|
|
59
59
|
if (data) {
|
|
60
60
|
obj = obj || new Product();
|
|
61
|
-
if (data.hasOwnProperty(
|
|
62
|
-
obj[
|
|
61
|
+
if (data.hasOwnProperty("uid")) {
|
|
62
|
+
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
63
63
|
}
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty("label")) {
|
|
65
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("auto_provision_fleets")) {
|
|
68
|
+
obj["auto_provision_fleets"] = _ApiClient["default"].convertToType(data["auto_provision_fleets"], ["String"]);
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("disable_devices_by_default")) {
|
|
71
|
+
obj["disable_devices_by_default"] = _ApiClient["default"].convertToType(data["disable_devices_by_default"], "Boolean");
|
|
72
72
|
}
|
|
73
73
|
} else if (data === null) {
|
|
74
74
|
return null;
|
|
@@ -100,16 +100,16 @@ var Product = /*#__PURE__*/function () {
|
|
|
100
100
|
} finally {
|
|
101
101
|
_iterator.f();
|
|
102
102
|
}
|
|
103
|
-
if (data[
|
|
104
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
103
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
104
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
105
105
|
}
|
|
106
106
|
// ensure the json data is a string
|
|
107
|
-
if (data[
|
|
108
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
107
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
108
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
109
109
|
}
|
|
110
110
|
// ensure the json data is an array
|
|
111
|
-
if (!Array.isArray(data[
|
|
112
|
-
throw new Error("Expected the field `auto_provision_fleets` to be an array in the JSON data but got " + data[
|
|
111
|
+
if (!Array.isArray(data["auto_provision_fleets"])) {
|
|
112
|
+
throw new Error("Expected the field `auto_provision_fleets` to be an array in the JSON data but got " + data["auto_provision_fleets"]);
|
|
113
113
|
}
|
|
114
114
|
return true;
|
|
115
115
|
}
|
|
@@ -121,21 +121,21 @@ Product.RequiredProperties = ["uid", "label", "disable_devices_by_default"];
|
|
|
121
121
|
/**
|
|
122
122
|
* @member {String} uid
|
|
123
123
|
*/
|
|
124
|
-
Product.prototype[
|
|
124
|
+
Product.prototype["uid"] = undefined;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
127
|
* @member {String} label
|
|
128
128
|
*/
|
|
129
|
-
Product.prototype[
|
|
129
|
+
Product.prototype["label"] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* @member {Array.<String>} auto_provision_fleets
|
|
133
133
|
*/
|
|
134
|
-
Product.prototype[
|
|
134
|
+
Product.prototype["auto_provision_fleets"] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* @member {Boolean} disable_devices_by_default
|
|
138
138
|
*/
|
|
139
|
-
Product.prototype[
|
|
139
|
+
Product.prototype["disable_devices_by_default"] = undefined;
|
|
140
140
|
var _default = Product;
|
|
141
141
|
exports["default"] = _default;
|
package/dist/model/Project.js
CHANGED
|
@@ -20,15 +20,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
20
20
|
/**
|
|
21
21
|
* The Project model module.
|
|
22
22
|
* @module model/Project
|
|
23
|
-
* @version 1.0.
|
|
23
|
+
* @version 1.0.11
|
|
24
24
|
*/
|
|
25
25
|
var Project = /*#__PURE__*/function () {
|
|
26
26
|
/**
|
|
27
27
|
* Constructs a new <code>Project</code>.
|
|
28
28
|
* @alias module:model/Project
|
|
29
|
-
* @param uid {String}
|
|
30
|
-
* @param label {String}
|
|
31
|
-
* @param created {Date}
|
|
29
|
+
* @param uid {String}
|
|
30
|
+
* @param label {String}
|
|
31
|
+
* @param created {Date}
|
|
32
32
|
*/
|
|
33
33
|
function Project(uid, label, created) {
|
|
34
34
|
_classCallCheck(this, Project);
|
|
@@ -43,9 +43,9 @@ var Project = /*#__PURE__*/function () {
|
|
|
43
43
|
_createClass(Project, null, [{
|
|
44
44
|
key: "initialize",
|
|
45
45
|
value: function initialize(obj, uid, label, created) {
|
|
46
|
-
obj[
|
|
47
|
-
obj[
|
|
48
|
-
obj[
|
|
46
|
+
obj["uid"] = uid;
|
|
47
|
+
obj["label"] = label;
|
|
48
|
+
obj["created"] = created;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -60,23 +60,23 @@ var Project = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new Project();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("uid")) {
|
|
64
|
+
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("label")) {
|
|
67
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("created")) {
|
|
70
|
+
obj["created"] = _ApiClient["default"].convertToType(data["created"], "Date");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("role")) {
|
|
73
|
+
obj["role"] = _Role["default"].constructFromObject(data["role"]);
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("administrative_contact")) {
|
|
76
|
+
obj["administrative_contact"] = _Contact["default"].constructFromObject(data["administrative_contact"]);
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("technical_contact")) {
|
|
79
|
+
obj["technical_contact"] = _Contact["default"].constructFromObject(data["technical_contact"]);
|
|
80
80
|
}
|
|
81
81
|
} else if (data === null) {
|
|
82
82
|
return null;
|
|
@@ -108,22 +108,22 @@ var Project = /*#__PURE__*/function () {
|
|
|
108
108
|
} finally {
|
|
109
109
|
_iterator.f();
|
|
110
110
|
}
|
|
111
|
-
if (data[
|
|
112
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
111
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
112
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
113
113
|
}
|
|
114
114
|
// ensure the json data is a string
|
|
115
|
-
if (data[
|
|
116
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
115
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
117
117
|
}
|
|
118
118
|
// validate the optional field `administrative_contact`
|
|
119
|
-
if (data[
|
|
119
|
+
if (data["administrative_contact"]) {
|
|
120
120
|
// data not null
|
|
121
|
-
_Contact["default"].validateJSON(data[
|
|
121
|
+
_Contact["default"].validateJSON(data["administrative_contact"]);
|
|
122
122
|
}
|
|
123
123
|
// validate the optional field `technical_contact`
|
|
124
|
-
if (data[
|
|
124
|
+
if (data["technical_contact"]) {
|
|
125
125
|
// data not null
|
|
126
|
-
_Contact["default"].validateJSON(data[
|
|
126
|
+
_Contact["default"].validateJSON(data["technical_contact"]);
|
|
127
127
|
}
|
|
128
128
|
return true;
|
|
129
129
|
}
|
|
@@ -135,31 +135,31 @@ Project.RequiredProperties = ["uid", "label", "created"];
|
|
|
135
135
|
/**
|
|
136
136
|
* @member {String} uid
|
|
137
137
|
*/
|
|
138
|
-
Project.prototype[
|
|
138
|
+
Project.prototype["uid"] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* @member {String} label
|
|
142
142
|
*/
|
|
143
|
-
Project.prototype[
|
|
143
|
+
Project.prototype["label"] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* @member {Date} created
|
|
147
147
|
*/
|
|
148
|
-
Project.prototype[
|
|
148
|
+
Project.prototype["created"] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* @member {module:model/Role} role
|
|
152
152
|
*/
|
|
153
|
-
Project.prototype[
|
|
153
|
+
Project.prototype["role"] = undefined;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* @member {module:model/Contact} administrative_contact
|
|
157
157
|
*/
|
|
158
|
-
Project.prototype[
|
|
158
|
+
Project.prototype["administrative_contact"] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @member {module:model/Contact} technical_contact
|
|
162
162
|
*/
|
|
163
|
-
Project.prototype[
|
|
163
|
+
Project.prototype["technical_contact"] = undefined;
|
|
164
164
|
var _default = Project;
|
|
165
165
|
exports["default"] = _default;
|