@blues-inc/notehub-js 1.0.9 → 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 +65 -64
- package/dist/model/Azure.js +51 -37
- 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 +70 -71
- 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 +25 -25
- package/dist/model/Route.js +35 -35
- package/dist/model/RouteSchema.js +53 -43
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +33 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
|
@@ -27,7 +27,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
27
27
|
/**
|
|
28
28
|
* The RouteSchema model module.
|
|
29
29
|
* @module model/RouteSchema
|
|
30
|
-
* @version 1.0.
|
|
30
|
+
* @version 1.0.11
|
|
31
31
|
*/
|
|
32
32
|
var RouteSchema = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -187,7 +187,8 @@ var RouteSchema = /*#__PURE__*/function () {
|
|
|
187
187
|
} else if (match === 0) {
|
|
188
188
|
this.actualInstance = null; // clear the actual instance in case there are multiple matches
|
|
189
189
|
throw new Error("No match found constructing `RouteSchema` with oneOf schemas Aws, Azure, Google, Http, Mqtt, Proxy, Radresponder, Snowflake, Thingworx. Details: " + errorMessages.join(", "));
|
|
190
|
-
} else {
|
|
190
|
+
} else {
|
|
191
|
+
// only 1 match
|
|
191
192
|
// the input is valid
|
|
192
193
|
}
|
|
193
194
|
}
|
|
@@ -239,189 +240,198 @@ var RouteSchema = /*#__PURE__*/function () {
|
|
|
239
240
|
_defineProperty(RouteSchema, "fromJSON", function (json_string) {
|
|
240
241
|
return RouteSchema.constructFromObject(JSON.parse(json_string));
|
|
241
242
|
});
|
|
242
|
-
RouteSchema.prototype[
|
|
243
|
+
RouteSchema.prototype["fleets"] = undefined;
|
|
243
244
|
|
|
244
245
|
/**
|
|
245
246
|
* @member {module:model/HttpFilter} filter
|
|
246
247
|
*/
|
|
247
|
-
RouteSchema.prototype[
|
|
248
|
+
RouteSchema.prototype["filter"] = undefined;
|
|
248
249
|
|
|
249
250
|
/**
|
|
250
251
|
* @member {module:model/SnowflakeTransform} transform
|
|
251
252
|
*/
|
|
252
|
-
RouteSchema.prototype[
|
|
253
|
+
RouteSchema.prototype["transform"] = undefined;
|
|
253
254
|
|
|
254
255
|
/**
|
|
255
256
|
* @member {Number} throttle_ms
|
|
256
257
|
*/
|
|
257
|
-
RouteSchema.prototype[
|
|
258
|
+
RouteSchema.prototype["throttle_ms"] = undefined;
|
|
258
259
|
|
|
259
260
|
/**
|
|
260
261
|
* @member {String} url
|
|
261
262
|
*/
|
|
262
|
-
RouteSchema.prototype[
|
|
263
|
+
RouteSchema.prototype["url"] = undefined;
|
|
263
264
|
|
|
264
265
|
/**
|
|
265
266
|
* @member {Object.<String, String>} http_headers
|
|
266
267
|
*/
|
|
267
|
-
RouteSchema.prototype[
|
|
268
|
+
RouteSchema.prototype["http_headers"] = undefined;
|
|
268
269
|
|
|
269
270
|
/**
|
|
270
271
|
* @member {Boolean} disable_http_headers
|
|
271
272
|
* @default false
|
|
272
273
|
*/
|
|
273
|
-
RouteSchema.prototype[
|
|
274
|
+
RouteSchema.prototype["disable_http_headers"] = false;
|
|
274
275
|
|
|
275
276
|
/**
|
|
276
277
|
* Timeout in seconds for each request
|
|
277
278
|
* @member {Number} timeout
|
|
278
279
|
* @default 15
|
|
279
280
|
*/
|
|
280
|
-
RouteSchema.prototype[
|
|
281
|
+
RouteSchema.prototype["timeout"] = 15;
|
|
281
282
|
|
|
282
283
|
/**
|
|
283
284
|
* @member {String} alias
|
|
284
285
|
*/
|
|
285
|
-
RouteSchema.prototype[
|
|
286
|
+
RouteSchema.prototype["alias"] = undefined;
|
|
286
287
|
|
|
287
288
|
/**
|
|
288
289
|
* @member {String} broker
|
|
289
290
|
*/
|
|
290
|
-
RouteSchema.prototype[
|
|
291
|
+
RouteSchema.prototype["broker"] = undefined;
|
|
291
292
|
|
|
292
293
|
/**
|
|
293
294
|
* @member {Number} port
|
|
294
295
|
*/
|
|
295
|
-
RouteSchema.prototype[
|
|
296
|
+
RouteSchema.prototype["port"] = undefined;
|
|
296
297
|
|
|
297
298
|
/**
|
|
298
299
|
* @member {String} username
|
|
299
300
|
*/
|
|
300
|
-
RouteSchema.prototype[
|
|
301
|
+
RouteSchema.prototype["username"] = undefined;
|
|
301
302
|
|
|
302
303
|
/**
|
|
304
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
303
305
|
* @member {String} password
|
|
304
306
|
*/
|
|
305
|
-
RouteSchema.prototype[
|
|
307
|
+
RouteSchema.prototype["password"] = undefined;
|
|
306
308
|
|
|
307
309
|
/**
|
|
308
310
|
* @member {String} topic
|
|
309
311
|
*/
|
|
310
|
-
RouteSchema.prototype[
|
|
312
|
+
RouteSchema.prototype["topic"] = undefined;
|
|
311
313
|
|
|
312
314
|
/**
|
|
313
|
-
* Certificate with \\n newlines.
|
|
315
|
+
* Certificate with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
314
316
|
* @member {String} certificate
|
|
315
317
|
*/
|
|
316
|
-
RouteSchema.prototype[
|
|
318
|
+
RouteSchema.prototype["certificate"] = undefined;
|
|
317
319
|
|
|
318
320
|
/**
|
|
319
|
-
* Name of certificate.
|
|
321
|
+
* Name of certificate.
|
|
320
322
|
* @member {String} certificate_name
|
|
321
|
-
* @default 'present'
|
|
322
323
|
*/
|
|
323
|
-
RouteSchema.prototype[
|
|
324
|
+
RouteSchema.prototype["certificate_name"] = undefined;
|
|
324
325
|
|
|
325
326
|
/**
|
|
326
|
-
* Key with \\n newlines.
|
|
327
|
+
* Key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
327
328
|
* @member {String} key
|
|
328
329
|
*/
|
|
329
|
-
RouteSchema.prototype[
|
|
330
|
+
RouteSchema.prototype["key"] = undefined;
|
|
330
331
|
|
|
331
332
|
/**
|
|
332
333
|
* Name of PEM key. If omitted, defaults to \"present\"
|
|
333
334
|
* @member {String} private_key_name
|
|
334
335
|
* @default 'present'
|
|
335
336
|
*/
|
|
336
|
-
RouteSchema.prototype[
|
|
337
|
+
RouteSchema.prototype["private_key_name"] = "present";
|
|
337
338
|
|
|
338
339
|
/**
|
|
339
340
|
* @member {String} region
|
|
340
341
|
*/
|
|
341
|
-
RouteSchema.prototype[
|
|
342
|
+
RouteSchema.prototype["region"] = undefined;
|
|
342
343
|
|
|
343
344
|
/**
|
|
344
345
|
* @member {String} access_key_id
|
|
345
346
|
*/
|
|
346
|
-
RouteSchema.prototype[
|
|
347
|
+
RouteSchema.prototype["access_key_id"] = undefined;
|
|
347
348
|
|
|
348
349
|
/**
|
|
350
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
349
351
|
* @member {String} access_key_secret
|
|
350
352
|
*/
|
|
351
|
-
RouteSchema.prototype[
|
|
353
|
+
RouteSchema.prototype["access_key_secret"] = undefined;
|
|
352
354
|
|
|
353
355
|
/**
|
|
354
356
|
* @member {String} message_group_id
|
|
355
357
|
*/
|
|
356
|
-
RouteSchema.prototype[
|
|
358
|
+
RouteSchema.prototype["message_group_id"] = undefined;
|
|
357
359
|
|
|
358
360
|
/**
|
|
359
361
|
* @member {String} message_deduplication_id
|
|
360
362
|
*/
|
|
361
|
-
RouteSchema.prototype[
|
|
363
|
+
RouteSchema.prototype["message_deduplication_id"] = undefined;
|
|
362
364
|
|
|
363
365
|
/**
|
|
364
366
|
* @member {String} channel
|
|
365
367
|
*/
|
|
366
|
-
RouteSchema.prototype[
|
|
368
|
+
RouteSchema.prototype["channel"] = undefined;
|
|
367
369
|
|
|
368
370
|
/**
|
|
369
371
|
* @member {Boolean} test_api
|
|
370
372
|
* @default false
|
|
371
373
|
*/
|
|
372
|
-
RouteSchema.prototype[
|
|
374
|
+
RouteSchema.prototype["test_api"] = false;
|
|
373
375
|
|
|
374
376
|
/**
|
|
375
377
|
* @member {String} data_feed_key
|
|
376
378
|
*/
|
|
377
|
-
RouteSchema.prototype[
|
|
379
|
+
RouteSchema.prototype["data_feed_key"] = undefined;
|
|
378
380
|
|
|
379
381
|
/**
|
|
380
382
|
* @member {String} client_id
|
|
381
383
|
*/
|
|
382
|
-
RouteSchema.prototype[
|
|
384
|
+
RouteSchema.prototype["client_id"] = undefined;
|
|
383
385
|
|
|
384
386
|
/**
|
|
385
|
-
*
|
|
387
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
386
388
|
* @member {String} client_secret
|
|
387
389
|
*/
|
|
388
|
-
RouteSchema.prototype[
|
|
390
|
+
RouteSchema.prototype["client_secret"] = undefined;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
394
|
+
* @member {String} functions_key_secret
|
|
395
|
+
*/
|
|
396
|
+
RouteSchema.prototype["functions_key_secret"] = undefined;
|
|
389
397
|
|
|
390
398
|
/**
|
|
391
399
|
* @member {String} sas_policy_name
|
|
392
400
|
*/
|
|
393
|
-
RouteSchema.prototype[
|
|
401
|
+
RouteSchema.prototype["sas_policy_name"] = undefined;
|
|
394
402
|
|
|
395
403
|
/**
|
|
404
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
396
405
|
* @member {String} sas_policy_key
|
|
397
406
|
*/
|
|
398
|
-
RouteSchema.prototype[
|
|
407
|
+
RouteSchema.prototype["sas_policy_key"] = undefined;
|
|
399
408
|
|
|
400
409
|
/**
|
|
410
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
401
411
|
* @member {String} app_key
|
|
402
412
|
*/
|
|
403
|
-
RouteSchema.prototype[
|
|
413
|
+
RouteSchema.prototype["app_key"] = undefined;
|
|
404
414
|
|
|
405
415
|
/**
|
|
406
416
|
* @member {String} organization_name
|
|
407
417
|
*/
|
|
408
|
-
RouteSchema.prototype[
|
|
418
|
+
RouteSchema.prototype["organization_name"] = undefined;
|
|
409
419
|
|
|
410
420
|
/**
|
|
411
421
|
* @member {String} account_name
|
|
412
422
|
*/
|
|
413
|
-
RouteSchema.prototype[
|
|
423
|
+
RouteSchema.prototype["account_name"] = undefined;
|
|
414
424
|
|
|
415
425
|
/**
|
|
416
426
|
* @member {String} user_name
|
|
417
427
|
*/
|
|
418
|
-
RouteSchema.prototype[
|
|
428
|
+
RouteSchema.prototype["user_name"] = undefined;
|
|
419
429
|
|
|
420
430
|
/**
|
|
421
|
-
* PEM key with \\n newlines.
|
|
431
|
+
* PEM key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
422
432
|
* @member {String} pem
|
|
423
433
|
*/
|
|
424
|
-
RouteSchema.prototype[
|
|
434
|
+
RouteSchema.prototype["pem"] = undefined;
|
|
425
435
|
RouteSchema.OneOf = ["Aws", "Azure", "Google", "Http", "Mqtt", "Proxy", "Radresponder", "Snowflake", "Thingworx"];
|
|
426
436
|
var _default = RouteSchema;
|
|
427
437
|
exports["default"] = _default;
|
package/dist/model/Snowflake.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The Snowflake model module.
|
|
19
19
|
* @module model/Snowflake
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.11
|
|
21
21
|
*/
|
|
22
22
|
var Snowflake = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -51,32 +51,32 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
51
51
|
value: function constructFromObject(data, obj) {
|
|
52
52
|
if (data) {
|
|
53
53
|
obj = obj || new Snowflake();
|
|
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"] = _SnowflakeTransform["default"].constructFromObject(data["transform"]);
|
|
62
62
|
}
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("timeout")) {
|
|
64
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("organization_name")) {
|
|
67
|
+
obj["organization_name"] = _ApiClient["default"].convertToType(data["organization_name"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("account_name")) {
|
|
70
|
+
obj["account_name"] = _ApiClient["default"].convertToType(data["account_name"], "String");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("user_name")) {
|
|
73
|
+
obj["user_name"] = _ApiClient["default"].convertToType(data["user_name"], "String");
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("private_key_name")) {
|
|
76
|
+
obj["private_key_name"] = _ApiClient["default"].convertToType(data["private_key_name"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("pem")) {
|
|
79
|
+
obj["pem"] = _ApiClient["default"].convertToType(data["pem"], "String");
|
|
80
80
|
}
|
|
81
81
|
} else if (data === null) {
|
|
82
82
|
return null;
|
|
@@ -93,38 +93,38 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
93
93
|
key: "validateJSON",
|
|
94
94
|
value: function validateJSON(data) {
|
|
95
95
|
// ensure the json data is an array
|
|
96
|
-
if (!Array.isArray(data[
|
|
97
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
96
|
+
if (!Array.isArray(data["fleets"])) {
|
|
97
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
98
98
|
}
|
|
99
99
|
// validate the optional field `filter`
|
|
100
|
-
if (data[
|
|
100
|
+
if (data["filter"]) {
|
|
101
101
|
// data not null
|
|
102
|
-
_HttpFilter["default"].validateJSON(data[
|
|
102
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
103
103
|
}
|
|
104
104
|
// validate the optional field `transform`
|
|
105
|
-
if (data[
|
|
105
|
+
if (data["transform"]) {
|
|
106
106
|
// data not null
|
|
107
|
-
_SnowflakeTransform["default"].validateJSON(data[
|
|
107
|
+
_SnowflakeTransform["default"].validateJSON(data["transform"]);
|
|
108
108
|
}
|
|
109
109
|
// ensure the json data is a string
|
|
110
|
-
if (data[
|
|
111
|
-
throw new Error("Expected the field `organization_name` to be a primitive type in the JSON string but got " + data[
|
|
110
|
+
if (data["organization_name"] && !(typeof data["organization_name"] === "string" || data["organization_name"] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `organization_name` to be a primitive type in the JSON string but got " + data["organization_name"]);
|
|
112
112
|
}
|
|
113
113
|
// ensure the json data is a string
|
|
114
|
-
if (data[
|
|
115
|
-
throw new Error("Expected the field `account_name` to be a primitive type in the JSON string but got " + data[
|
|
114
|
+
if (data["account_name"] && !(typeof data["account_name"] === "string" || data["account_name"] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `account_name` to be a primitive type in the JSON string but got " + data["account_name"]);
|
|
116
116
|
}
|
|
117
117
|
// ensure the json data is a string
|
|
118
|
-
if (data[
|
|
119
|
-
throw new Error("Expected the field `user_name` to be a primitive type in the JSON string but got " + data[
|
|
118
|
+
if (data["user_name"] && !(typeof data["user_name"] === "string" || data["user_name"] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `user_name` to be a primitive type in the JSON string but got " + data["user_name"]);
|
|
120
120
|
}
|
|
121
121
|
// ensure the json data is a string
|
|
122
|
-
if (data[
|
|
123
|
-
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data[
|
|
122
|
+
if (data["private_key_name"] && !(typeof data["private_key_name"] === "string" || data["private_key_name"] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `private_key_name` to be a primitive type in the JSON string but got " + data["private_key_name"]);
|
|
124
124
|
}
|
|
125
125
|
// ensure the json data is a string
|
|
126
|
-
if (data[
|
|
127
|
-
throw new Error("Expected the field `pem` to be a primitive type in the JSON string but got " + data[
|
|
126
|
+
if (data["pem"] && !(typeof data["pem"] === "string" || data["pem"] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `pem` to be a primitive type in the JSON string but got " + data["pem"]);
|
|
128
128
|
}
|
|
129
129
|
return true;
|
|
130
130
|
}
|
|
@@ -135,51 +135,51 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
135
135
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
136
136
|
* @member {Array.<String>} fleets
|
|
137
137
|
*/
|
|
138
|
-
Snowflake.prototype[
|
|
138
|
+
Snowflake.prototype["fleets"] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* @member {module:model/HttpFilter} filter
|
|
142
142
|
*/
|
|
143
|
-
Snowflake.prototype[
|
|
143
|
+
Snowflake.prototype["filter"] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* @member {module:model/SnowflakeTransform} transform
|
|
147
147
|
*/
|
|
148
|
-
Snowflake.prototype[
|
|
148
|
+
Snowflake.prototype["transform"] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* Timeout in seconds for each request
|
|
152
152
|
* @member {Number} timeout
|
|
153
153
|
* @default 15
|
|
154
154
|
*/
|
|
155
|
-
Snowflake.prototype[
|
|
155
|
+
Snowflake.prototype["timeout"] = 15;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {String} organization_name
|
|
159
159
|
*/
|
|
160
|
-
Snowflake.prototype[
|
|
160
|
+
Snowflake.prototype["organization_name"] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} account_name
|
|
164
164
|
*/
|
|
165
|
-
Snowflake.prototype[
|
|
165
|
+
Snowflake.prototype["account_name"] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* @member {String} user_name
|
|
169
169
|
*/
|
|
170
|
-
Snowflake.prototype[
|
|
170
|
+
Snowflake.prototype["user_name"] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* Name of PEM key. If omitted, defaults to \"present\"
|
|
174
174
|
* @member {String} private_key_name
|
|
175
175
|
* @default 'present'
|
|
176
176
|
*/
|
|
177
|
-
Snowflake.prototype[
|
|
177
|
+
Snowflake.prototype["private_key_name"] = "present";
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* PEM key with \\n newlines.
|
|
180
|
+
* PEM key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
181
181
|
* @member {String} pem
|
|
182
182
|
*/
|
|
183
|
-
Snowflake.prototype[
|
|
183
|
+
Snowflake.prototype["pem"] = undefined;
|
|
184
184
|
var _default = Snowflake;
|
|
185
185
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The SnowflakeTransform model module.
|
|
17
17
|
* @module model/SnowflakeTransform
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var SnowflakeTransform = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,11 +48,11 @@ var SnowflakeTransform = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new SnowflakeTransform();
|
|
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 SnowflakeTransform = /*#__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
|
}
|
|
@@ -86,12 +86,12 @@ var SnowflakeTransform = /*#__PURE__*/function () {
|
|
|
86
86
|
* @member {String} format
|
|
87
87
|
* @default 'jsonata'
|
|
88
88
|
*/
|
|
89
|
-
SnowflakeTransform.prototype[
|
|
89
|
+
SnowflakeTransform.prototype["format"] = "jsonata";
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* JSONata transformation
|
|
93
93
|
* @member {String} jsonata
|
|
94
94
|
*/
|
|
95
|
-
SnowflakeTransform.prototype[
|
|
95
|
+
SnowflakeTransform.prototype["jsonata"] = undefined;
|
|
96
96
|
var _default = SnowflakeTransform;
|
|
97
97
|
exports["default"] = _default;
|
package/dist/model/Thingworx.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The Thingworx model module.
|
|
19
19
|
* @module model/Thingworx
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.11
|
|
21
21
|
*/
|
|
22
22
|
var Thingworx = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -51,26 +51,26 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
51
51
|
value: function constructFromObject(data, obj) {
|
|
52
52
|
if (data) {
|
|
53
53
|
obj = obj || new Thingworx();
|
|
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("url")) {
|
|
67
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("timeout")) {
|
|
70
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("app_key")) {
|
|
73
|
+
obj["app_key"] = _ApiClient["default"].convertToType(data["app_key"], "String");
|
|
74
74
|
}
|
|
75
75
|
} else if (data === null) {
|
|
76
76
|
return null;
|
|
@@ -87,26 +87,26 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
87
87
|
key: "validateJSON",
|
|
88
88
|
value: function validateJSON(data) {
|
|
89
89
|
// ensure the json data is an array
|
|
90
|
-
if (!Array.isArray(data[
|
|
91
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
90
|
+
if (!Array.isArray(data["fleets"])) {
|
|
91
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
92
92
|
}
|
|
93
93
|
// validate the optional field `filter`
|
|
94
|
-
if (data[
|
|
94
|
+
if (data["filter"]) {
|
|
95
95
|
// data not null
|
|
96
|
-
_HttpFilter["default"].validateJSON(data[
|
|
96
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
97
97
|
}
|
|
98
98
|
// validate the optional field `transform`
|
|
99
|
-
if (data[
|
|
99
|
+
if (data["transform"]) {
|
|
100
100
|
// data not null
|
|
101
|
-
_HttpTransform["default"].validateJSON(data[
|
|
101
|
+
_HttpTransform["default"].validateJSON(data["transform"]);
|
|
102
102
|
}
|
|
103
103
|
// ensure the json data is a string
|
|
104
|
-
if (data[
|
|
105
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
104
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
106
106
|
}
|
|
107
107
|
// ensure the json data is a string
|
|
108
|
-
if (data[
|
|
109
|
-
throw new Error("Expected the field `app_key` to be a primitive type in the JSON string but got " + data[
|
|
108
|
+
if (data["app_key"] && !(typeof data["app_key"] === "string" || data["app_key"] instanceof String)) {
|
|
109
|
+
throw new Error("Expected the field `app_key` to be a primitive type in the JSON string but got " + data["app_key"]);
|
|
110
110
|
}
|
|
111
111
|
return true;
|
|
112
112
|
}
|
|
@@ -117,38 +117,39 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
117
117
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
118
118
|
* @member {Array.<String>} fleets
|
|
119
119
|
*/
|
|
120
|
-
Thingworx.prototype[
|
|
120
|
+
Thingworx.prototype["fleets"] = undefined;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
123
|
* @member {module:model/HttpFilter} filter
|
|
124
124
|
*/
|
|
125
|
-
Thingworx.prototype[
|
|
125
|
+
Thingworx.prototype["filter"] = undefined;
|
|
126
126
|
|
|
127
127
|
/**
|
|
128
128
|
* @member {module:model/HttpTransform} transform
|
|
129
129
|
*/
|
|
130
|
-
Thingworx.prototype[
|
|
130
|
+
Thingworx.prototype["transform"] = undefined;
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
133
|
* @member {Number} throttle_ms
|
|
134
134
|
*/
|
|
135
|
-
Thingworx.prototype[
|
|
135
|
+
Thingworx.prototype["throttle_ms"] = undefined;
|
|
136
136
|
|
|
137
137
|
/**
|
|
138
138
|
* @member {String} url
|
|
139
139
|
*/
|
|
140
|
-
Thingworx.prototype[
|
|
140
|
+
Thingworx.prototype["url"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Timeout in seconds for each request
|
|
144
144
|
* @member {Number} timeout
|
|
145
145
|
* @default 15
|
|
146
146
|
*/
|
|
147
|
-
Thingworx.prototype[
|
|
147
|
+
Thingworx.prototype["timeout"] = 15;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
+
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
150
151
|
* @member {String} app_key
|
|
151
152
|
*/
|
|
152
|
-
Thingworx.prototype[
|
|
153
|
+
Thingworx.prototype["app_key"] = undefined;
|
|
153
154
|
var _default = Thingworx;
|
|
154
155
|
exports["default"] = _default;
|