@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/Azure.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The Azure model module.
|
|
19
19
|
* @module model/Azure
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.11
|
|
21
21
|
*/
|
|
22
22
|
var Azure = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -51,32 +51,32 @@ var Azure = /*#__PURE__*/function () {
|
|
|
51
51
|
value: function constructFromObject(data, obj) {
|
|
52
52
|
if (data) {
|
|
53
53
|
obj = obj || new Azure();
|
|
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("functions_key_secret")) {
|
|
73
|
+
obj["functions_key_secret"] = _ApiClient["default"].convertToType(data["functions_key_secret"], "String");
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty("sas_policy_name")) {
|
|
76
|
+
obj["sas_policy_name"] = _ApiClient["default"].convertToType(data["sas_policy_name"], "String");
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("sas_policy_key")) {
|
|
79
|
+
obj["sas_policy_key"] = _ApiClient["default"].convertToType(data["sas_policy_key"], "String");
|
|
80
80
|
}
|
|
81
81
|
} else if (data === null) {
|
|
82
82
|
return null;
|
|
@@ -93,34 +93,34 @@ var Azure = /*#__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
|
-
_HttpTransform["default"].validateJSON(data[
|
|
107
|
+
_HttpTransform["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 `url` to be a primitive type in the JSON string but got " + data[
|
|
110
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
111
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
112
112
|
}
|
|
113
113
|
// ensure the json data is a string
|
|
114
|
-
if (data[
|
|
115
|
-
throw new Error("Expected the field `functions_key_secret` to be a primitive type in the JSON string but got " + data[
|
|
114
|
+
if (data["functions_key_secret"] && !(typeof data["functions_key_secret"] === "string" || data["functions_key_secret"] instanceof String)) {
|
|
115
|
+
throw new Error("Expected the field `functions_key_secret` to be a primitive type in the JSON string but got " + data["functions_key_secret"]);
|
|
116
116
|
}
|
|
117
117
|
// ensure the json data is a string
|
|
118
|
-
if (data[
|
|
119
|
-
throw new Error("Expected the field `sas_policy_name` to be a primitive type in the JSON string but got " + data[
|
|
118
|
+
if (data["sas_policy_name"] && !(typeof data["sas_policy_name"] === "string" || data["sas_policy_name"] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `sas_policy_name` to be a primitive type in the JSON string but got " + data["sas_policy_name"]);
|
|
120
120
|
}
|
|
121
121
|
// ensure the json data is a string
|
|
122
|
-
if (data[
|
|
123
|
-
throw new Error("Expected the field `sas_policy_key` to be a primitive type in the JSON string but got " + data[
|
|
122
|
+
if (data["sas_policy_key"] && !(typeof data["sas_policy_key"] === "string" || data["sas_policy_key"] instanceof String)) {
|
|
123
|
+
throw new Error("Expected the field `sas_policy_key` to be a primitive type in the JSON string but got " + data["sas_policy_key"]);
|
|
124
124
|
}
|
|
125
125
|
return true;
|
|
126
126
|
}
|
|
@@ -131,50 +131,50 @@ var Azure = /*#__PURE__*/function () {
|
|
|
131
131
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
132
132
|
* @member {Array.<String>} fleets
|
|
133
133
|
*/
|
|
134
|
-
Azure.prototype[
|
|
134
|
+
Azure.prototype["fleets"] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* @member {module:model/HttpFilter} filter
|
|
138
138
|
*/
|
|
139
|
-
Azure.prototype[
|
|
139
|
+
Azure.prototype["filter"] = undefined;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
142
|
* @member {module:model/HttpTransform} transform
|
|
143
143
|
*/
|
|
144
|
-
Azure.prototype[
|
|
144
|
+
Azure.prototype["transform"] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* @member {Number} throttle_ms
|
|
148
148
|
*/
|
|
149
|
-
Azure.prototype[
|
|
149
|
+
Azure.prototype["throttle_ms"] = undefined;
|
|
150
150
|
|
|
151
151
|
/**
|
|
152
152
|
* @member {String} url
|
|
153
153
|
*/
|
|
154
|
-
Azure.prototype[
|
|
154
|
+
Azure.prototype["url"] = undefined;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* Timeout in seconds for each request
|
|
158
158
|
* @member {Number} timeout
|
|
159
159
|
* @default 15
|
|
160
160
|
*/
|
|
161
|
-
Azure.prototype[
|
|
161
|
+
Azure.prototype["timeout"] = 15;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
164
|
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
165
165
|
* @member {String} functions_key_secret
|
|
166
166
|
*/
|
|
167
|
-
Azure.prototype[
|
|
167
|
+
Azure.prototype["functions_key_secret"] = undefined;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* @member {String} sas_policy_name
|
|
171
171
|
*/
|
|
172
|
-
Azure.prototype[
|
|
172
|
+
Azure.prototype["sas_policy_name"] = undefined;
|
|
173
173
|
|
|
174
174
|
/**
|
|
175
175
|
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
176
176
|
* @member {String} sas_policy_key
|
|
177
177
|
*/
|
|
178
|
-
Azure.prototype[
|
|
178
|
+
Azure.prototype["sas_policy_key"] = undefined;
|
|
179
179
|
var _default = Azure;
|
|
180
180
|
exports["default"] = _default;
|
|
@@ -19,15 +19,15 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The BillingAccount model module.
|
|
21
21
|
* @module model/BillingAccount
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var BillingAccount = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
26
26
|
* Constructs a new <code>BillingAccount</code>.
|
|
27
27
|
* @alias module:model/BillingAccount
|
|
28
|
-
* @param uid {String}
|
|
29
|
-
* @param name {String}
|
|
30
|
-
* @param role {module:model/BillingAccountRole}
|
|
28
|
+
* @param uid {String}
|
|
29
|
+
* @param name {String}
|
|
30
|
+
* @param role {module:model/BillingAccountRole}
|
|
31
31
|
*/
|
|
32
32
|
function BillingAccount(uid, name, role) {
|
|
33
33
|
_classCallCheck(this, BillingAccount);
|
|
@@ -42,9 +42,9 @@ var BillingAccount = /*#__PURE__*/function () {
|
|
|
42
42
|
_createClass(BillingAccount, null, [{
|
|
43
43
|
key: "initialize",
|
|
44
44
|
value: function initialize(obj, uid, name, role) {
|
|
45
|
-
obj[
|
|
46
|
-
obj[
|
|
47
|
-
obj[
|
|
45
|
+
obj["uid"] = uid;
|
|
46
|
+
obj["name"] = name;
|
|
47
|
+
obj["role"] = role;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -59,14 +59,14 @@ var BillingAccount = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new BillingAccount();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("uid")) {
|
|
63
|
+
obj["uid"] = _ApiClient["default"].convertToType(data["uid"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("name")) {
|
|
66
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("role")) {
|
|
69
|
+
obj["role"] = _BillingAccountRole["default"].constructFromObject(data["role"]);
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -98,12 +98,12 @@ var BillingAccount = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["uid"] && !(typeof data["uid"] === "string" || data["uid"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data["uid"]);
|
|
103
103
|
}
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data[
|
|
106
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
105
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
107
107
|
}
|
|
108
108
|
return true;
|
|
109
109
|
}
|
|
@@ -115,16 +115,16 @@ BillingAccount.RequiredProperties = ["uid", "name", "role"];
|
|
|
115
115
|
/**
|
|
116
116
|
* @member {String} uid
|
|
117
117
|
*/
|
|
118
|
-
BillingAccount.prototype[
|
|
118
|
+
BillingAccount.prototype["uid"] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @member {String} name
|
|
122
122
|
*/
|
|
123
|
-
BillingAccount.prototype[
|
|
123
|
+
BillingAccount.prototype["name"] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {module:model/BillingAccountRole} role
|
|
127
127
|
*/
|
|
128
|
-
BillingAccount.prototype[
|
|
128
|
+
BillingAccount.prototype["role"] = undefined;
|
|
129
129
|
var _default = BillingAccount;
|
|
130
130
|
exports["default"] = _default;
|
package/dist/model/Body.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The Body model module.
|
|
17
17
|
* @module model/Body
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var Body = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,8 +48,8 @@ var Body = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new Body();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("body")) {
|
|
52
|
+
obj["body"] = _ApiClient["default"].convertToType(data["body"], Object);
|
|
53
53
|
}
|
|
54
54
|
} else if (data === null) {
|
|
55
55
|
return null;
|
|
@@ -73,6 +73,6 @@ var Body = /*#__PURE__*/function () {
|
|
|
73
73
|
/**
|
|
74
74
|
* @member {Object} body
|
|
75
75
|
*/
|
|
76
|
-
Body.prototype[
|
|
76
|
+
Body.prototype["body"] = undefined;
|
|
77
77
|
var _default = Body;
|
|
78
78
|
exports["default"] = _default;
|
package/dist/model/Contact.js
CHANGED
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The Contact model module.
|
|
17
17
|
* @module model/Contact
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var Contact = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,17 +48,17 @@ var Contact = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new Contact();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("name")) {
|
|
52
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("email")) {
|
|
55
|
+
obj["email"] = _ApiClient["default"].convertToType(data["email"], "String");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("role")) {
|
|
58
|
+
obj["role"] = _ApiClient["default"].convertToType(data["role"], "String");
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("organization")) {
|
|
61
|
+
obj["organization"] = _ApiClient["default"].convertToType(data["organization"], "String");
|
|
62
62
|
}
|
|
63
63
|
} else if (data === null) {
|
|
64
64
|
return null;
|
|
@@ -75,20 +75,20 @@ var Contact = /*#__PURE__*/function () {
|
|
|
75
75
|
key: "validateJSON",
|
|
76
76
|
value: function validateJSON(data) {
|
|
77
77
|
// ensure the json data is a string
|
|
78
|
-
if (data[
|
|
79
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
78
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
79
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
80
80
|
}
|
|
81
81
|
// ensure the json data is a string
|
|
82
|
-
if (data[
|
|
83
|
-
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data[
|
|
82
|
+
if (data["email"] && !(typeof data["email"] === "string" || data["email"] instanceof String)) {
|
|
83
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data["email"]);
|
|
84
84
|
}
|
|
85
85
|
// ensure the json data is a string
|
|
86
|
-
if (data[
|
|
87
|
-
throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data[
|
|
86
|
+
if (data["role"] && !(typeof data["role"] === "string" || data["role"] instanceof String)) {
|
|
87
|
+
throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data["role"]);
|
|
88
88
|
}
|
|
89
89
|
// ensure the json data is a string
|
|
90
|
-
if (data[
|
|
91
|
-
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data[
|
|
90
|
+
if (data["organization"] && !(typeof data["organization"] === "string" || data["organization"] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data["organization"]);
|
|
92
92
|
}
|
|
93
93
|
return true;
|
|
94
94
|
}
|
|
@@ -98,21 +98,21 @@ var Contact = /*#__PURE__*/function () {
|
|
|
98
98
|
/**
|
|
99
99
|
* @member {String} name
|
|
100
100
|
*/
|
|
101
|
-
Contact.prototype[
|
|
101
|
+
Contact.prototype["name"] = undefined;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
104
|
* @member {String} email
|
|
105
105
|
*/
|
|
106
|
-
Contact.prototype[
|
|
106
|
+
Contact.prototype["email"] = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* @member {String} role
|
|
110
110
|
*/
|
|
111
|
-
Contact.prototype[
|
|
111
|
+
Contact.prototype["role"] = undefined;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* @member {String} organization
|
|
115
115
|
*/
|
|
116
|
-
Contact.prototype[
|
|
116
|
+
Contact.prototype["organization"] = undefined;
|
|
117
117
|
var _default = Contact;
|
|
118
118
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The CreateFleetRequest model module.
|
|
17
17
|
* @module model/CreateFleetRequest
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,8 +48,8 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new CreateFleetRequest();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("label")) {
|
|
52
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
53
53
|
}
|
|
54
54
|
} else if (data === null) {
|
|
55
55
|
return null;
|
|
@@ -66,8 +66,8 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
66
66
|
key: "validateJSON",
|
|
67
67
|
value: function validateJSON(data) {
|
|
68
68
|
// ensure the json data is a string
|
|
69
|
-
if (data[
|
|
70
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
69
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
70
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
71
71
|
}
|
|
72
72
|
return true;
|
|
73
73
|
}
|
|
@@ -78,6 +78,6 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
78
78
|
* The label for the Fleet.
|
|
79
79
|
* @member {String} label
|
|
80
80
|
*/
|
|
81
|
-
CreateFleetRequest.prototype[
|
|
81
|
+
CreateFleetRequest.prototype["label"] = undefined;
|
|
82
82
|
var _default = CreateFleetRequest;
|
|
83
83
|
exports["default"] = _default;
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The CreateProductRequest model module.
|
|
20
20
|
* @module model/CreateProductRequest
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var CreateProductRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -40,8 +40,8 @@ var CreateProductRequest = /*#__PURE__*/function () {
|
|
|
40
40
|
_createClass(CreateProductRequest, null, [{
|
|
41
41
|
key: "initialize",
|
|
42
42
|
value: function initialize(obj, productUid, label) {
|
|
43
|
-
obj[
|
|
44
|
-
obj[
|
|
43
|
+
obj["product_uid"] = productUid;
|
|
44
|
+
obj["label"] = label;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -56,17 +56,17 @@ var CreateProductRequest = /*#__PURE__*/function () {
|
|
|
56
56
|
value: function constructFromObject(data, obj) {
|
|
57
57
|
if (data) {
|
|
58
58
|
obj = obj || new CreateProductRequest();
|
|
59
|
-
if (data.hasOwnProperty(
|
|
60
|
-
obj[
|
|
59
|
+
if (data.hasOwnProperty("product_uid")) {
|
|
60
|
+
obj["product_uid"] = _ApiClient["default"].convertToType(data["product_uid"], "String");
|
|
61
61
|
}
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("label")) {
|
|
63
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("auto_provision_fleets")) {
|
|
66
|
+
obj["auto_provision_fleets"] = _ApiClient["default"].convertToType(data["auto_provision_fleets"], ["String"]);
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("disable_devices_by_default")) {
|
|
69
|
+
obj["disable_devices_by_default"] = _ApiClient["default"].convertToType(data["disable_devices_by_default"], "Boolean");
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -98,16 +98,16 @@ var CreateProductRequest = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["product_uid"] && !(typeof data["product_uid"] === "string" || data["product_uid"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data["product_uid"]);
|
|
103
103
|
}
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data[
|
|
106
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
105
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is an array
|
|
109
|
-
if (!Array.isArray(data[
|
|
110
|
-
throw new Error("Expected the field `auto_provision_fleets` to be an array in the JSON data but got " + data[
|
|
109
|
+
if (!Array.isArray(data["auto_provision_fleets"])) {
|
|
110
|
+
throw new Error("Expected the field `auto_provision_fleets` to be an array in the JSON data but got " + data["auto_provision_fleets"]);
|
|
111
111
|
}
|
|
112
112
|
return true;
|
|
113
113
|
}
|
|
@@ -120,23 +120,23 @@ CreateProductRequest.RequiredProperties = ["product_uid", "label"];
|
|
|
120
120
|
* The requested uid for the Product. Will be prefixed with the user's reversed email.
|
|
121
121
|
* @member {String} product_uid
|
|
122
122
|
*/
|
|
123
|
-
CreateProductRequest.prototype[
|
|
123
|
+
CreateProductRequest.prototype["product_uid"] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* The label for the Product.
|
|
127
127
|
* @member {String} label
|
|
128
128
|
*/
|
|
129
|
-
CreateProductRequest.prototype[
|
|
129
|
+
CreateProductRequest.prototype["label"] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* @member {Array.<String>} auto_provision_fleets
|
|
133
133
|
*/
|
|
134
|
-
CreateProductRequest.prototype[
|
|
134
|
+
CreateProductRequest.prototype["auto_provision_fleets"] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* If `true`, devices provisioned to this product will be automatically disabled by default.
|
|
138
138
|
* @member {Boolean} disable_devices_by_default
|
|
139
139
|
*/
|
|
140
|
-
CreateProductRequest.prototype[
|
|
140
|
+
CreateProductRequest.prototype["disable_devices_by_default"] = undefined;
|
|
141
141
|
var _default = CreateProductRequest;
|
|
142
142
|
exports["default"] = _default;
|
|
@@ -18,7 +18,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
18
18
|
/**
|
|
19
19
|
* The CreateProjectRequest model module.
|
|
20
20
|
* @module model/CreateProjectRequest
|
|
21
|
-
* @version 1.0.
|
|
21
|
+
* @version 1.0.11
|
|
22
22
|
*/
|
|
23
23
|
var CreateProjectRequest = /*#__PURE__*/function () {
|
|
24
24
|
/**
|
|
@@ -39,7 +39,7 @@ var CreateProjectRequest = /*#__PURE__*/function () {
|
|
|
39
39
|
_createClass(CreateProjectRequest, null, [{
|
|
40
40
|
key: "initialize",
|
|
41
41
|
value: function initialize(obj, label) {
|
|
42
|
-
obj[
|
|
42
|
+
obj["label"] = label;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -54,11 +54,11 @@ var CreateProjectRequest = /*#__PURE__*/function () {
|
|
|
54
54
|
value: function constructFromObject(data, obj) {
|
|
55
55
|
if (data) {
|
|
56
56
|
obj = obj || new CreateProjectRequest();
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("label")) {
|
|
58
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("billing_account_uid")) {
|
|
61
|
+
obj["billing_account_uid"] = _ApiClient["default"].convertToType(data["billing_account_uid"], "String");
|
|
62
62
|
}
|
|
63
63
|
} else if (data === null) {
|
|
64
64
|
return null;
|
|
@@ -90,12 +90,12 @@ var CreateProjectRequest = /*#__PURE__*/function () {
|
|
|
90
90
|
} finally {
|
|
91
91
|
_iterator.f();
|
|
92
92
|
}
|
|
93
|
-
if (data[
|
|
94
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
93
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
95
95
|
}
|
|
96
96
|
// ensure the json data is a string
|
|
97
|
-
if (data[
|
|
98
|
-
throw new Error("Expected the field `billing_account_uid` to be a primitive type in the JSON string but got " + data[
|
|
97
|
+
if (data["billing_account_uid"] && !(typeof data["billing_account_uid"] === "string" || data["billing_account_uid"] instanceof String)) {
|
|
98
|
+
throw new Error("Expected the field `billing_account_uid` to be a primitive type in the JSON string but got " + data["billing_account_uid"]);
|
|
99
99
|
}
|
|
100
100
|
return true;
|
|
101
101
|
}
|
|
@@ -108,12 +108,12 @@ CreateProjectRequest.RequiredProperties = ["label"];
|
|
|
108
108
|
* The label for the project.
|
|
109
109
|
* @member {String} label
|
|
110
110
|
*/
|
|
111
|
-
CreateProjectRequest.prototype[
|
|
111
|
+
CreateProjectRequest.prototype["label"] = undefined;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
|
|
114
|
+
* The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
|
|
115
115
|
* @member {String} billing_account_uid
|
|
116
116
|
*/
|
|
117
|
-
CreateProjectRequest.prototype[
|
|
117
|
+
CreateProjectRequest.prototype["billing_account_uid"] = undefined;
|
|
118
118
|
var _default = CreateProjectRequest;
|
|
119
119
|
exports["default"] = _default;
|