@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/Fleet.js
CHANGED
|
@@ -18,15 +18,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The Fleet model module.
|
|
20
20
|
* @module model/Fleet
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var Fleet = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
25
|
* Constructs a new <code>Fleet</code>.
|
|
26
26
|
* @alias module:model/Fleet
|
|
27
|
-
* @param uid {String}
|
|
28
|
-
* @param label {String}
|
|
29
|
-
* @param created {Date}
|
|
27
|
+
* @param uid {String}
|
|
28
|
+
* @param label {String}
|
|
29
|
+
* @param created {Date}
|
|
30
30
|
*/
|
|
31
31
|
function Fleet(uid, label, created) {
|
|
32
32
|
_classCallCheck(this, Fleet);
|
|
@@ -41,9 +41,9 @@ var Fleet = /*#__PURE__*/function () {
|
|
|
41
41
|
_createClass(Fleet, null, [{
|
|
42
42
|
key: "initialize",
|
|
43
43
|
value: function initialize(obj, uid, label, created) {
|
|
44
|
-
obj[
|
|
45
|
-
obj[
|
|
46
|
-
obj[
|
|
44
|
+
obj["uid"] = uid;
|
|
45
|
+
obj["label"] = label;
|
|
46
|
+
obj["created"] = created;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -58,14 +58,14 @@ var Fleet = /*#__PURE__*/function () {
|
|
|
58
58
|
value: function constructFromObject(data, obj) {
|
|
59
59
|
if (data) {
|
|
60
60
|
obj = obj || new Fleet();
|
|
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("created")) {
|
|
68
|
+
obj["created"] = _ApiClient["default"].convertToType(data["created"], "Date");
|
|
69
69
|
}
|
|
70
70
|
} else if (data === null) {
|
|
71
71
|
return null;
|
|
@@ -97,12 +97,12 @@ var Fleet = /*#__PURE__*/function () {
|
|
|
97
97
|
} finally {
|
|
98
98
|
_iterator.f();
|
|
99
99
|
}
|
|
100
|
-
if (data[
|
|
101
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
100
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
101
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
102
102
|
}
|
|
103
103
|
// ensure the json data is a string
|
|
104
|
-
if (data[
|
|
105
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
104
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
106
106
|
}
|
|
107
107
|
return true;
|
|
108
108
|
}
|
|
@@ -114,16 +114,16 @@ Fleet.RequiredProperties = ["uid", "label", "created"];
|
|
|
114
114
|
/**
|
|
115
115
|
* @member {String} uid
|
|
116
116
|
*/
|
|
117
|
-
Fleet.prototype[
|
|
117
|
+
Fleet.prototype["uid"] = undefined;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* @member {String} label
|
|
121
121
|
*/
|
|
122
|
-
Fleet.prototype[
|
|
122
|
+
Fleet.prototype["label"] = undefined;
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* @member {Date} created
|
|
126
126
|
*/
|
|
127
|
-
Fleet.prototype[
|
|
127
|
+
Fleet.prototype["created"] = undefined;
|
|
128
128
|
var _default = Fleet;
|
|
129
129
|
exports["default"] = _default;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
/**
|
|
16
|
+
* The GenerateAuthToken200Response model module.
|
|
17
|
+
* @module model/GenerateAuthToken200Response
|
|
18
|
+
* @version 1.0.11
|
|
19
|
+
*/
|
|
20
|
+
var GenerateAuthToken200Response = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>GenerateAuthToken200Response</code>.
|
|
23
|
+
* @alias module:model/GenerateAuthToken200Response
|
|
24
|
+
*/
|
|
25
|
+
function GenerateAuthToken200Response() {
|
|
26
|
+
_classCallCheck(this, GenerateAuthToken200Response);
|
|
27
|
+
GenerateAuthToken200Response.initialize(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes the fields of this object.
|
|
32
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
+
* Only for internal use.
|
|
34
|
+
*/
|
|
35
|
+
_createClass(GenerateAuthToken200Response, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>GenerateAuthToken200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
+
* @param {module:model/GenerateAuthToken200Response} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/GenerateAuthToken200Response} The populated <code>GenerateAuthToken200Response</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new GenerateAuthToken200Response();
|
|
51
|
+
if (data.hasOwnProperty("access_token")) {
|
|
52
|
+
obj["access_token"] = _ApiClient["default"].convertToType(data["access_token"], "String");
|
|
53
|
+
}
|
|
54
|
+
if (data.hasOwnProperty("expires_in")) {
|
|
55
|
+
obj["expires_in"] = _ApiClient["default"].convertToType(data["expires_in"], "Number");
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty("scope")) {
|
|
58
|
+
obj["scope"] = _ApiClient["default"].convertToType(data["scope"], "String");
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty("token_type")) {
|
|
61
|
+
obj["token_type"] = _ApiClient["default"].convertToType(data["token_type"], "String");
|
|
62
|
+
}
|
|
63
|
+
} else if (data === null) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Validates the JSON data with respect to <code>GenerateAuthToken200Response</code>.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GenerateAuthToken200Response</code>.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "validateJSON",
|
|
76
|
+
value: function validateJSON(data) {
|
|
77
|
+
// ensure the json data is a string
|
|
78
|
+
if (data["access_token"] && !(typeof data["access_token"] === "string" || data["access_token"] instanceof String)) {
|
|
79
|
+
throw new Error("Expected the field `access_token` to be a primitive type in the JSON string but got " + data["access_token"]);
|
|
80
|
+
}
|
|
81
|
+
// ensure the json data is a string
|
|
82
|
+
if (data["scope"] && !(typeof data["scope"] === "string" || data["scope"] instanceof String)) {
|
|
83
|
+
throw new Error("Expected the field `scope` to be a primitive type in the JSON string but got " + data["scope"]);
|
|
84
|
+
}
|
|
85
|
+
// ensure the json data is a string
|
|
86
|
+
if (data["token_type"] && !(typeof data["token_type"] === "string" || data["token_type"] instanceof String)) {
|
|
87
|
+
throw new Error("Expected the field `token_type` to be a primitive type in the JSON string but got " + data["token_type"]);
|
|
88
|
+
}
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
}]);
|
|
92
|
+
return GenerateAuthToken200Response;
|
|
93
|
+
}();
|
|
94
|
+
/**
|
|
95
|
+
* @member {String} access_token
|
|
96
|
+
*/
|
|
97
|
+
GenerateAuthToken200Response.prototype["access_token"] = undefined;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @member {Number} expires_in
|
|
101
|
+
*/
|
|
102
|
+
GenerateAuthToken200Response.prototype["expires_in"] = undefined;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* @member {String} scope
|
|
106
|
+
*/
|
|
107
|
+
GenerateAuthToken200Response.prototype["scope"] = undefined;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @member {String} token_type
|
|
111
|
+
*/
|
|
112
|
+
GenerateAuthToken200Response.prototype["token_type"] = undefined;
|
|
113
|
+
var _default = GenerateAuthToken200Response;
|
|
114
|
+
exports["default"] = _default;
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The GetBillingAccounts200Response model module.
|
|
21
21
|
* @module model/GetBillingAccounts200Response
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
@@ -52,8 +52,8 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
|
52
52
|
value: function constructFromObject(data, obj) {
|
|
53
53
|
if (data) {
|
|
54
54
|
obj = obj || new GetBillingAccounts200Response();
|
|
55
|
-
if (data.hasOwnProperty(
|
|
56
|
-
obj[
|
|
55
|
+
if (data.hasOwnProperty("billing_accounts")) {
|
|
56
|
+
obj["billing_accounts"] = _ApiClient["default"].convertToType(data["billing_accounts"], [_BillingAccount["default"]]);
|
|
57
57
|
}
|
|
58
58
|
} else if (data === null) {
|
|
59
59
|
return null;
|
|
@@ -69,14 +69,14 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
|
69
69
|
}, {
|
|
70
70
|
key: "validateJSON",
|
|
71
71
|
value: function validateJSON(data) {
|
|
72
|
-
if (data[
|
|
72
|
+
if (data["billing_accounts"]) {
|
|
73
73
|
// data not null
|
|
74
74
|
// ensure the json data is an array
|
|
75
|
-
if (!Array.isArray(data[
|
|
76
|
-
throw new Error("Expected the field `billing_accounts` to be an array in the JSON data but got " + data[
|
|
75
|
+
if (!Array.isArray(data["billing_accounts"])) {
|
|
76
|
+
throw new Error("Expected the field `billing_accounts` to be an array in the JSON data but got " + data["billing_accounts"]);
|
|
77
77
|
}
|
|
78
78
|
// validate the optional field `billing_accounts` (array)
|
|
79
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
79
|
+
var _iterator = _createForOfIteratorHelper(data["billing_accounts"]),
|
|
80
80
|
_step;
|
|
81
81
|
try {
|
|
82
82
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -88,7 +88,6 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
|
88
88
|
} finally {
|
|
89
89
|
_iterator.f();
|
|
90
90
|
}
|
|
91
|
-
;
|
|
92
91
|
}
|
|
93
92
|
return true;
|
|
94
93
|
}
|
|
@@ -98,6 +97,6 @@ var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
|
98
97
|
/**
|
|
99
98
|
* @member {Array.<module:model/BillingAccount>} billing_accounts
|
|
100
99
|
*/
|
|
101
|
-
GetBillingAccounts200Response.prototype[
|
|
100
|
+
GetBillingAccounts200Response.prototype["billing_accounts"] = undefined;
|
|
102
101
|
var _default = GetBillingAccounts200Response;
|
|
103
102
|
exports["default"] = _default;
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The GetDeviceEnvironmentVariables200Response model module.
|
|
20
20
|
* @module model/GetDeviceEnvironmentVariables200Response
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -40,8 +40,8 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
|
|
|
40
40
|
_createClass(GetDeviceEnvironmentVariables200Response, null, [{
|
|
41
41
|
key: "initialize",
|
|
42
42
|
value: function initialize(obj, environmentVariables, environmentVariablesEnvDefault) {
|
|
43
|
-
obj[
|
|
44
|
-
obj[
|
|
43
|
+
obj["environment_variables"] = environmentVariables;
|
|
44
|
+
obj["environment_variables_env_default"] = environmentVariablesEnvDefault;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -56,14 +56,14 @@ var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
|
|
|
56
56
|
value: function constructFromObject(data, obj) {
|
|
57
57
|
if (data) {
|
|
58
58
|
obj = obj || new GetDeviceEnvironmentVariables200Response();
|
|
59
|
-
if (data.hasOwnProperty(
|
|
60
|
-
obj[
|
|
61
|
-
|
|
59
|
+
if (data.hasOwnProperty("environment_variables")) {
|
|
60
|
+
obj["environment_variables"] = _ApiClient["default"].convertToType(data["environment_variables"], {
|
|
61
|
+
String: "String"
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
66
|
-
|
|
64
|
+
if (data.hasOwnProperty("environment_variables_env_default")) {
|
|
65
|
+
obj["environment_variables_env_default"] = _ApiClient["default"].convertToType(data["environment_variables_env_default"], {
|
|
66
|
+
String: "String"
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
} else if (data === null) {
|
|
@@ -106,12 +106,12 @@ GetDeviceEnvironmentVariables200Response.RequiredProperties = ["environment_vari
|
|
|
106
106
|
* The environment variables for this device that have been set using host firmware or the Notehub API or UI.
|
|
107
107
|
* @member {Object.<String, String>} environment_variables
|
|
108
108
|
*/
|
|
109
|
-
GetDeviceEnvironmentVariables200Response.prototype[
|
|
109
|
+
GetDeviceEnvironmentVariables200Response.prototype["environment_variables"] = undefined;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* The environment variables that have been set using the env.default request through the Notecard API.
|
|
113
113
|
* @member {Object.<String, String>} environment_variables_env_default
|
|
114
114
|
*/
|
|
115
|
-
GetDeviceEnvironmentVariables200Response.prototype[
|
|
115
|
+
GetDeviceEnvironmentVariables200Response.prototype["environment_variables_env_default"] = undefined;
|
|
116
116
|
var _default = GetDeviceEnvironmentVariables200Response;
|
|
117
117
|
exports["default"] = _default;
|
|
@@ -19,13 +19,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The GetDeviceHealthLog200Response model module.
|
|
21
21
|
* @module model/GetDeviceHealthLog200Response
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
26
26
|
* Constructs a new <code>GetDeviceHealthLog200Response</code>.
|
|
27
27
|
* @alias module:model/GetDeviceHealthLog200Response
|
|
28
|
-
* @param healthLog {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>}
|
|
28
|
+
* @param healthLog {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>}
|
|
29
29
|
*/
|
|
30
30
|
function GetDeviceHealthLog200Response(healthLog) {
|
|
31
31
|
_classCallCheck(this, GetDeviceHealthLog200Response);
|
|
@@ -40,7 +40,7 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
40
40
|
_createClass(GetDeviceHealthLog200Response, null, [{
|
|
41
41
|
key: "initialize",
|
|
42
42
|
value: function initialize(obj, healthLog) {
|
|
43
|
-
obj[
|
|
43
|
+
obj["health_log"] = healthLog;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -55,8 +55,8 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
55
55
|
value: function constructFromObject(data, obj) {
|
|
56
56
|
if (data) {
|
|
57
57
|
obj = obj || new GetDeviceHealthLog200Response();
|
|
58
|
-
if (data.hasOwnProperty(
|
|
59
|
-
obj[
|
|
58
|
+
if (data.hasOwnProperty("health_log")) {
|
|
59
|
+
obj["health_log"] = _ApiClient["default"].convertToType(data["health_log"], [_GetDeviceHealthLog200ResponseHealthLogInner["default"]]);
|
|
60
60
|
}
|
|
61
61
|
} else if (data === null) {
|
|
62
62
|
return null;
|
|
@@ -87,14 +87,14 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
87
87
|
} finally {
|
|
88
88
|
_iterator.f();
|
|
89
89
|
}
|
|
90
|
-
if (data[
|
|
90
|
+
if (data["health_log"]) {
|
|
91
91
|
// data not null
|
|
92
92
|
// ensure the json data is an array
|
|
93
|
-
if (!Array.isArray(data[
|
|
94
|
-
throw new Error("Expected the field `health_log` to be an array in the JSON data but got " + data[
|
|
93
|
+
if (!Array.isArray(data["health_log"])) {
|
|
94
|
+
throw new Error("Expected the field `health_log` to be an array in the JSON data but got " + data["health_log"]);
|
|
95
95
|
}
|
|
96
96
|
// validate the optional field `health_log` (array)
|
|
97
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
97
|
+
var _iterator2 = _createForOfIteratorHelper(data["health_log"]),
|
|
98
98
|
_step2;
|
|
99
99
|
try {
|
|
100
100
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -106,7 +106,6 @@ var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
|
106
106
|
} finally {
|
|
107
107
|
_iterator2.f();
|
|
108
108
|
}
|
|
109
|
-
;
|
|
110
109
|
}
|
|
111
110
|
return true;
|
|
112
111
|
}
|
|
@@ -118,6 +117,6 @@ GetDeviceHealthLog200Response.RequiredProperties = ["health_log"];
|
|
|
118
117
|
/**
|
|
119
118
|
* @member {Array.<module:model/GetDeviceHealthLog200ResponseHealthLogInner>} health_log
|
|
120
119
|
*/
|
|
121
|
-
GetDeviceHealthLog200Response.prototype[
|
|
120
|
+
GetDeviceHealthLog200Response.prototype["health_log"] = undefined;
|
|
122
121
|
var _default = GetDeviceHealthLog200Response;
|
|
123
122
|
exports["default"] = _default;
|
|
@@ -18,15 +18,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The GetDeviceHealthLog200ResponseHealthLogInner model module.
|
|
20
20
|
* @module model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
25
|
* Constructs a new <code>GetDeviceHealthLog200ResponseHealthLogInner</code>.
|
|
26
26
|
* @alias module:model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
27
|
-
* @param when {Date}
|
|
28
|
-
* @param alert {Boolean}
|
|
29
|
-
* @param text {String}
|
|
27
|
+
* @param when {Date}
|
|
28
|
+
* @param alert {Boolean}
|
|
29
|
+
* @param text {String}
|
|
30
30
|
*/
|
|
31
31
|
function GetDeviceHealthLog200ResponseHealthLogInner(when, alert, text) {
|
|
32
32
|
_classCallCheck(this, GetDeviceHealthLog200ResponseHealthLogInner);
|
|
@@ -41,9 +41,9 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
|
41
41
|
_createClass(GetDeviceHealthLog200ResponseHealthLogInner, null, [{
|
|
42
42
|
key: "initialize",
|
|
43
43
|
value: function initialize(obj, when, alert, text) {
|
|
44
|
-
obj[
|
|
45
|
-
obj[
|
|
46
|
-
obj[
|
|
44
|
+
obj["when"] = when;
|
|
45
|
+
obj["alert"] = alert;
|
|
46
|
+
obj["text"] = text;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
@@ -58,14 +58,14 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
|
58
58
|
value: function constructFromObject(data, obj) {
|
|
59
59
|
if (data) {
|
|
60
60
|
obj = obj || new GetDeviceHealthLog200ResponseHealthLogInner();
|
|
61
|
-
if (data.hasOwnProperty(
|
|
62
|
-
obj[
|
|
61
|
+
if (data.hasOwnProperty("when")) {
|
|
62
|
+
obj["when"] = _ApiClient["default"].convertToType(data["when"], "Date");
|
|
63
63
|
}
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty("alert")) {
|
|
65
|
+
obj["alert"] = _ApiClient["default"].convertToType(data["alert"], "Boolean");
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("text")) {
|
|
68
|
+
obj["text"] = _ApiClient["default"].convertToType(data["text"], "String");
|
|
69
69
|
}
|
|
70
70
|
} else if (data === null) {
|
|
71
71
|
return null;
|
|
@@ -97,8 +97,8 @@ var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
|
97
97
|
} finally {
|
|
98
98
|
_iterator.f();
|
|
99
99
|
}
|
|
100
|
-
if (data[
|
|
101
|
-
throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data[
|
|
100
|
+
if (data["text"] && !(typeof data["text"] === "string" || data["text"] instanceof String)) {
|
|
101
|
+
throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data["text"]);
|
|
102
102
|
}
|
|
103
103
|
return true;
|
|
104
104
|
}
|
|
@@ -110,16 +110,16 @@ GetDeviceHealthLog200ResponseHealthLogInner.RequiredProperties = ["when", "alert
|
|
|
110
110
|
/**
|
|
111
111
|
* @member {Date} when
|
|
112
112
|
*/
|
|
113
|
-
GetDeviceHealthLog200ResponseHealthLogInner.prototype[
|
|
113
|
+
GetDeviceHealthLog200ResponseHealthLogInner.prototype["when"] = undefined;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* @member {Boolean} alert
|
|
117
117
|
*/
|
|
118
|
-
GetDeviceHealthLog200ResponseHealthLogInner.prototype[
|
|
118
|
+
GetDeviceHealthLog200ResponseHealthLogInner.prototype["alert"] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @member {String} text
|
|
122
122
|
*/
|
|
123
|
-
GetDeviceHealthLog200ResponseHealthLogInner.prototype[
|
|
123
|
+
GetDeviceHealthLog200ResponseHealthLogInner.prototype["text"] = undefined;
|
|
124
124
|
var _default = GetDeviceHealthLog200ResponseHealthLogInner;
|
|
125
125
|
exports["default"] = _default;
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The GetDeviceLatest200Response model module.
|
|
21
21
|
* @module model/GetDeviceLatest200Response
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var GetDeviceLatest200Response = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
@@ -52,8 +52,8 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
|
|
|
52
52
|
value: function constructFromObject(data, obj) {
|
|
53
53
|
if (data) {
|
|
54
54
|
obj = obj || new GetDeviceLatest200Response();
|
|
55
|
-
if (data.hasOwnProperty(
|
|
56
|
-
obj[
|
|
55
|
+
if (data.hasOwnProperty("latest_events")) {
|
|
56
|
+
obj["latest_events"] = _ApiClient["default"].convertToType(data["latest_events"], [_Event["default"]]);
|
|
57
57
|
}
|
|
58
58
|
} else if (data === null) {
|
|
59
59
|
return null;
|
|
@@ -69,14 +69,14 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
|
|
|
69
69
|
}, {
|
|
70
70
|
key: "validateJSON",
|
|
71
71
|
value: function validateJSON(data) {
|
|
72
|
-
if (data[
|
|
72
|
+
if (data["latest_events"]) {
|
|
73
73
|
// data not null
|
|
74
74
|
// ensure the json data is an array
|
|
75
|
-
if (!Array.isArray(data[
|
|
76
|
-
throw new Error("Expected the field `latest_events` to be an array in the JSON data but got " + data[
|
|
75
|
+
if (!Array.isArray(data["latest_events"])) {
|
|
76
|
+
throw new Error("Expected the field `latest_events` to be an array in the JSON data but got " + data["latest_events"]);
|
|
77
77
|
}
|
|
78
78
|
// validate the optional field `latest_events` (array)
|
|
79
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
79
|
+
var _iterator = _createForOfIteratorHelper(data["latest_events"]),
|
|
80
80
|
_step;
|
|
81
81
|
try {
|
|
82
82
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -88,7 +88,6 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
|
|
|
88
88
|
} finally {
|
|
89
89
|
_iterator.f();
|
|
90
90
|
}
|
|
91
|
-
;
|
|
92
91
|
}
|
|
93
92
|
return true;
|
|
94
93
|
}
|
|
@@ -99,6 +98,6 @@ var GetDeviceLatest200Response = /*#__PURE__*/function () {
|
|
|
99
98
|
* The set of latest events. Will always include the current \"session.begin\" event.
|
|
100
99
|
* @member {Array.<module:model/Event>} latest_events
|
|
101
100
|
*/
|
|
102
|
-
GetDeviceLatest200Response.prototype[
|
|
101
|
+
GetDeviceLatest200Response.prototype["latest_events"] = undefined;
|
|
103
102
|
var _default = GetDeviceLatest200Response;
|
|
104
103
|
exports["default"] = _default;
|
|
@@ -18,14 +18,14 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The GetDevicePublicKey200Response model module.
|
|
20
20
|
* @module model/GetDevicePublicKey200Response
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
25
25
|
* Constructs a new <code>GetDevicePublicKey200Response</code>.
|
|
26
26
|
* @alias module:model/GetDevicePublicKey200Response
|
|
27
|
-
* @param uid {String}
|
|
28
|
-
* @param key {String}
|
|
27
|
+
* @param uid {String}
|
|
28
|
+
* @param key {String}
|
|
29
29
|
*/
|
|
30
30
|
function GetDevicePublicKey200Response(uid, key) {
|
|
31
31
|
_classCallCheck(this, GetDevicePublicKey200Response);
|
|
@@ -40,8 +40,8 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
|
40
40
|
_createClass(GetDevicePublicKey200Response, null, [{
|
|
41
41
|
key: "initialize",
|
|
42
42
|
value: function initialize(obj, uid, key) {
|
|
43
|
-
obj[
|
|
44
|
-
obj[
|
|
43
|
+
obj["uid"] = uid;
|
|
44
|
+
obj["key"] = key;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -56,11 +56,11 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
|
56
56
|
value: function constructFromObject(data, obj) {
|
|
57
57
|
if (data) {
|
|
58
58
|
obj = obj || new GetDevicePublicKey200Response();
|
|
59
|
-
if (data.hasOwnProperty(
|
|
60
|
-
obj[
|
|
59
|
+
if (data.hasOwnProperty("uid")) {
|
|
60
|
+
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
61
61
|
}
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("key")) {
|
|
63
|
+
obj["key"] = _ApiClient["default"].convertToType(data["key"], "String");
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -92,12 +92,12 @@ var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
|
92
92
|
} finally {
|
|
93
93
|
_iterator.f();
|
|
94
94
|
}
|
|
95
|
-
if (data[
|
|
96
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
95
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
97
97
|
}
|
|
98
98
|
// ensure the json data is a string
|
|
99
|
-
if (data[
|
|
100
|
-
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data[
|
|
99
|
+
if (data["key"] && !(typeof data["key"] === "string" || data["key"] instanceof String)) {
|
|
100
|
+
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data["key"]);
|
|
101
101
|
}
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
@@ -109,11 +109,11 @@ GetDevicePublicKey200Response.RequiredProperties = ["uid", "key"];
|
|
|
109
109
|
/**
|
|
110
110
|
* @member {String} uid
|
|
111
111
|
*/
|
|
112
|
-
GetDevicePublicKey200Response.prototype[
|
|
112
|
+
GetDevicePublicKey200Response.prototype["uid"] = undefined;
|
|
113
113
|
|
|
114
114
|
/**
|
|
115
115
|
* @member {String} key
|
|
116
116
|
*/
|
|
117
|
-
GetDevicePublicKey200Response.prototype[
|
|
117
|
+
GetDevicePublicKey200Response.prototype["key"] = undefined;
|
|
118
118
|
var _default = GetDevicePublicKey200Response;
|
|
119
119
|
exports["default"] = _default;
|