@blues-inc/notehub-js 1.0.35-beta.9 → 1.0.36-beta.1
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 +11 -19
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +55 -2
- package/dist/api/EventApi.js +13 -13
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +101 -5
- package/dist/api/RepositoryApi.js +1 -1
- package/dist/api/RouteApi.js +5 -5
- package/dist/api/WebhookApi.js +6 -6
- package/dist/index.js +14 -63
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/Aws.js +1 -1
- package/dist/model/Azure.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSet.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusCurrent.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +269 -0
- package/dist/model/{ApiKeySecret.js → EnvVar.js} +45 -31
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +10 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
- package/dist/model/GetProjectFleets200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +1 -1
- package/dist/model/HandleNoteChanges200Response.js +1 -1
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +1 -1
- package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +1 -1
- package/dist/model/HttpFilter.js +1 -1
- package/dist/model/HttpTransform.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/Mqtt.js +1 -1
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSchema.js +1 -1
- package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/Proxy.js +1 -1
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QuestionDataResponseLineChart.js +1 -1
- package/dist/model/QuestionDataResponseMap.js +1 -1
- package/dist/model/Radresponder.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +10 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/Slack.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/Snowflake.js +1 -1
- package/dist/model/SnowflakeTransform.js +1 -1
- package/dist/model/Thingworx.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/Twilio.js +1 -1
- package/dist/model/UpdateFleetRequest.js +10 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UserDbRoute.js +1 -1
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/api/ApiAccessApi.js +0 -238
- package/dist/model/ApiKey.js +0 -186
- package/dist/model/ApiKeyCreatedBy.js +0 -116
- package/dist/model/ApiKeyPermissionEntry.js +0 -127
- package/dist/model/ApiKeyPermissions.js +0 -141
- package/dist/model/UpdateApiKeyRequest.js +0 -135
- package/dist/model/UpdateApiKeyRequestRoles.js +0 -141
- package/dist/model/UpdateApiKeyRole.js +0 -103
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
var _EnvVar = _interopRequireDefault(require("./EnvVar"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
15
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* Notehub API
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: 1.2.0
|
|
23
|
+
* Contact: engineering@blues.io
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The EnvTreeJsonNode model module.
|
|
32
|
+
* @module model/EnvTreeJsonNode
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
|
+
*/
|
|
35
|
+
var EnvTreeJsonNode = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>EnvTreeJsonNode</code>.
|
|
38
|
+
* @alias module:model/EnvTreeJsonNode
|
|
39
|
+
* @param varCount {Number}
|
|
40
|
+
* @param inheritedVarCount {Number}
|
|
41
|
+
* @param type {String}
|
|
42
|
+
* @param variables {Array.<module:model/EnvVar>}
|
|
43
|
+
* @param children {Array.<module:model/EnvTreeJsonNode>}
|
|
44
|
+
*/
|
|
45
|
+
function EnvTreeJsonNode(varCount, inheritedVarCount, type, variables, children) {
|
|
46
|
+
_classCallCheck(this, EnvTreeJsonNode);
|
|
47
|
+
EnvTreeJsonNode.initialize(this, varCount, inheritedVarCount, type, variables, children);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Initializes the fields of this object.
|
|
52
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
53
|
+
* Only for internal use.
|
|
54
|
+
*/
|
|
55
|
+
return _createClass(EnvTreeJsonNode, null, [{
|
|
56
|
+
key: "initialize",
|
|
57
|
+
value: function initialize(obj, varCount, inheritedVarCount, type, variables, children) {
|
|
58
|
+
obj['var_count'] = varCount;
|
|
59
|
+
obj['inherited_var_count'] = inheritedVarCount;
|
|
60
|
+
obj['type'] = type;
|
|
61
|
+
obj['variables'] = variables;
|
|
62
|
+
obj['children'] = children;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Constructs a <code>EnvTreeJsonNode</code> from a plain JavaScript object, optionally creating a new instance.
|
|
67
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @param {module:model/EnvTreeJsonNode} obj Optional instance to populate.
|
|
70
|
+
* @return {module:model/EnvTreeJsonNode} The populated <code>EnvTreeJsonNode</code> instance.
|
|
71
|
+
*/
|
|
72
|
+
}, {
|
|
73
|
+
key: "constructFromObject",
|
|
74
|
+
value: function constructFromObject(data, obj) {
|
|
75
|
+
if (data) {
|
|
76
|
+
obj = obj || new EnvTreeJsonNode();
|
|
77
|
+
if (data.hasOwnProperty('var_count')) {
|
|
78
|
+
obj['var_count'] = _ApiClient["default"].convertToType(data['var_count'], 'Number');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('inherited_var_count')) {
|
|
81
|
+
obj['inherited_var_count'] = _ApiClient["default"].convertToType(data['inherited_var_count'], 'Number');
|
|
82
|
+
}
|
|
83
|
+
if (data.hasOwnProperty('type')) {
|
|
84
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('variables')) {
|
|
87
|
+
obj['variables'] = _ApiClient["default"].convertToType(data['variables'], [_EnvVar["default"]]);
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('children')) {
|
|
90
|
+
obj['children'] = _ApiClient["default"].convertToType(data['children'], [EnvTreeJsonNode]);
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('device_uid')) {
|
|
93
|
+
obj['device_uid'] = _ApiClient["default"].convertToType(data['device_uid'], 'String');
|
|
94
|
+
}
|
|
95
|
+
if (data.hasOwnProperty('fleet_label')) {
|
|
96
|
+
obj['fleet_label'] = _ApiClient["default"].convertToType(data['fleet_label'], 'String');
|
|
97
|
+
}
|
|
98
|
+
if (data.hasOwnProperty('fleet_uid')) {
|
|
99
|
+
obj['fleet_uid'] = _ApiClient["default"].convertToType(data['fleet_uid'], 'String');
|
|
100
|
+
}
|
|
101
|
+
if (data.hasOwnProperty('app_uid')) {
|
|
102
|
+
obj['app_uid'] = _ApiClient["default"].convertToType(data['app_uid'], 'String');
|
|
103
|
+
}
|
|
104
|
+
if (data.hasOwnProperty('app_label')) {
|
|
105
|
+
obj['app_label'] = _ApiClient["default"].convertToType(data['app_label'], 'String');
|
|
106
|
+
}
|
|
107
|
+
if (data.hasOwnProperty('url')) {
|
|
108
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
109
|
+
}
|
|
110
|
+
} else if (data === null) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
return obj;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Validates the JSON data with respect to <code>EnvTreeJsonNode</code>.
|
|
118
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
119
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>EnvTreeJsonNode</code>.
|
|
120
|
+
*/
|
|
121
|
+
}, {
|
|
122
|
+
key: "validateJSON",
|
|
123
|
+
value: function validateJSON(data) {
|
|
124
|
+
// check to make sure all required properties are present in the JSON string
|
|
125
|
+
var _iterator = _createForOfIteratorHelper(EnvTreeJsonNode.RequiredProperties),
|
|
126
|
+
_step;
|
|
127
|
+
try {
|
|
128
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
129
|
+
var property = _step.value;
|
|
130
|
+
if (!data[property]) {
|
|
131
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
// ensure the json data is a string
|
|
135
|
+
} catch (err) {
|
|
136
|
+
_iterator.e(err);
|
|
137
|
+
} finally {
|
|
138
|
+
_iterator.f();
|
|
139
|
+
}
|
|
140
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
141
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
142
|
+
}
|
|
143
|
+
if (data['variables']) {
|
|
144
|
+
// data not null
|
|
145
|
+
// ensure the json data is an array
|
|
146
|
+
if (!Array.isArray(data['variables'])) {
|
|
147
|
+
throw new Error("Expected the field `variables` to be an array in the JSON data but got " + data['variables']);
|
|
148
|
+
}
|
|
149
|
+
// validate the optional field `variables` (array)
|
|
150
|
+
var _iterator2 = _createForOfIteratorHelper(data['variables']),
|
|
151
|
+
_step2;
|
|
152
|
+
try {
|
|
153
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
154
|
+
var item = _step2.value;
|
|
155
|
+
_EnvVar["default"].validateJsonObject(item);
|
|
156
|
+
}
|
|
157
|
+
} catch (err) {
|
|
158
|
+
_iterator2.e(err);
|
|
159
|
+
} finally {
|
|
160
|
+
_iterator2.f();
|
|
161
|
+
}
|
|
162
|
+
;
|
|
163
|
+
}
|
|
164
|
+
if (data['children']) {
|
|
165
|
+
// data not null
|
|
166
|
+
// ensure the json data is an array
|
|
167
|
+
if (!Array.isArray(data['children'])) {
|
|
168
|
+
throw new Error("Expected the field `children` to be an array in the JSON data but got " + data['children']);
|
|
169
|
+
}
|
|
170
|
+
// validate the optional field `children` (array)
|
|
171
|
+
var _iterator3 = _createForOfIteratorHelper(data['children']),
|
|
172
|
+
_step3;
|
|
173
|
+
try {
|
|
174
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
175
|
+
var _item = _step3.value;
|
|
176
|
+
EnvTreeJsonNode.validateJsonObject(_item);
|
|
177
|
+
}
|
|
178
|
+
} catch (err) {
|
|
179
|
+
_iterator3.e(err);
|
|
180
|
+
} finally {
|
|
181
|
+
_iterator3.f();
|
|
182
|
+
}
|
|
183
|
+
;
|
|
184
|
+
}
|
|
185
|
+
// ensure the json data is a string
|
|
186
|
+
if (data['device_uid'] && !(typeof data['device_uid'] === 'string' || data['device_uid'] instanceof String)) {
|
|
187
|
+
throw new Error("Expected the field `device_uid` to be a primitive type in the JSON string but got " + data['device_uid']);
|
|
188
|
+
}
|
|
189
|
+
// ensure the json data is a string
|
|
190
|
+
if (data['fleet_label'] && !(typeof data['fleet_label'] === 'string' || data['fleet_label'] instanceof String)) {
|
|
191
|
+
throw new Error("Expected the field `fleet_label` to be a primitive type in the JSON string but got " + data['fleet_label']);
|
|
192
|
+
}
|
|
193
|
+
// ensure the json data is a string
|
|
194
|
+
if (data['fleet_uid'] && !(typeof data['fleet_uid'] === 'string' || data['fleet_uid'] instanceof String)) {
|
|
195
|
+
throw new Error("Expected the field `fleet_uid` to be a primitive type in the JSON string but got " + data['fleet_uid']);
|
|
196
|
+
}
|
|
197
|
+
// ensure the json data is a string
|
|
198
|
+
if (data['app_uid'] && !(typeof data['app_uid'] === 'string' || data['app_uid'] instanceof String)) {
|
|
199
|
+
throw new Error("Expected the field `app_uid` to be a primitive type in the JSON string but got " + data['app_uid']);
|
|
200
|
+
}
|
|
201
|
+
// ensure the json data is a string
|
|
202
|
+
if (data['app_label'] && !(typeof data['app_label'] === 'string' || data['app_label'] instanceof String)) {
|
|
203
|
+
throw new Error("Expected the field `app_label` to be a primitive type in the JSON string but got " + data['app_label']);
|
|
204
|
+
}
|
|
205
|
+
// ensure the json data is a string
|
|
206
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
207
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
208
|
+
}
|
|
209
|
+
return true;
|
|
210
|
+
}
|
|
211
|
+
}]);
|
|
212
|
+
}();
|
|
213
|
+
EnvTreeJsonNode.RequiredProperties = ["var_count", "inherited_var_count", "type", "variables", "children"];
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @member {Number} var_count
|
|
217
|
+
*/
|
|
218
|
+
EnvTreeJsonNode.prototype['var_count'] = undefined;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @member {Number} inherited_var_count
|
|
222
|
+
*/
|
|
223
|
+
EnvTreeJsonNode.prototype['inherited_var_count'] = undefined;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* @member {String} type
|
|
227
|
+
*/
|
|
228
|
+
EnvTreeJsonNode.prototype['type'] = undefined;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @member {Array.<module:model/EnvVar>} variables
|
|
232
|
+
*/
|
|
233
|
+
EnvTreeJsonNode.prototype['variables'] = undefined;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* @member {Array.<module:model/EnvTreeJsonNode>} children
|
|
237
|
+
*/
|
|
238
|
+
EnvTreeJsonNode.prototype['children'] = undefined;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @member {String} device_uid
|
|
242
|
+
*/
|
|
243
|
+
EnvTreeJsonNode.prototype['device_uid'] = undefined;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* @member {String} fleet_label
|
|
247
|
+
*/
|
|
248
|
+
EnvTreeJsonNode.prototype['fleet_label'] = undefined;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* @member {String} fleet_uid
|
|
252
|
+
*/
|
|
253
|
+
EnvTreeJsonNode.prototype['fleet_uid'] = undefined;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* @member {String} app_uid
|
|
257
|
+
*/
|
|
258
|
+
EnvTreeJsonNode.prototype['app_uid'] = undefined;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* @member {String} app_label
|
|
262
|
+
*/
|
|
263
|
+
EnvTreeJsonNode.prototype['app_label'] = undefined;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* @member {String} url
|
|
267
|
+
*/
|
|
268
|
+
EnvTreeJsonNode.prototype['url'] = undefined;
|
|
269
|
+
var _default = exports["default"] = EnvTreeJsonNode;
|
|
@@ -24,18 +24,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
28
|
-
* @module model/
|
|
29
|
-
* @version 1.0.
|
|
27
|
+
* The EnvVar model module.
|
|
28
|
+
* @module model/EnvVar
|
|
29
|
+
* @version 1.0.36-beta.1
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var EnvVar = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
33
|
+
* Constructs a new <code>EnvVar</code>.
|
|
34
|
+
* @alias module:model/EnvVar
|
|
35
35
|
*/
|
|
36
|
-
function
|
|
37
|
-
_classCallCheck(this,
|
|
38
|
-
|
|
36
|
+
function EnvVar() {
|
|
37
|
+
_classCallCheck(this, EnvVar);
|
|
38
|
+
EnvVar.initialize(this);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -43,27 +43,33 @@ var ApiKeySecret = /*#__PURE__*/function () {
|
|
|
43
43
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
44
|
* Only for internal use.
|
|
45
45
|
*/
|
|
46
|
-
return _createClass(
|
|
46
|
+
return _createClass(EnvVar, null, [{
|
|
47
47
|
key: "initialize",
|
|
48
48
|
value: function initialize(obj) {}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Constructs a <code>
|
|
51
|
+
* Constructs a <code>EnvVar</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
52
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
53
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
-
* @param {module:model/
|
|
55
|
-
* @return {module:model/
|
|
54
|
+
* @param {module:model/EnvVar} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/EnvVar} The populated <code>EnvVar</code> instance.
|
|
56
56
|
*/
|
|
57
57
|
}, {
|
|
58
58
|
key: "constructFromObject",
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
|
-
obj = obj || new
|
|
62
|
-
if (data.hasOwnProperty('
|
|
63
|
-
obj['
|
|
61
|
+
obj = obj || new EnvVar();
|
|
62
|
+
if (data.hasOwnProperty('key')) {
|
|
63
|
+
obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
65
|
+
if (data.hasOwnProperty('value')) {
|
|
66
|
+
obj['value'] = _ApiClient["default"].convertToType(data['value'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('used')) {
|
|
69
|
+
obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Boolean');
|
|
70
|
+
}
|
|
71
|
+
if (data.hasOwnProperty('precedence')) {
|
|
72
|
+
obj['precedence'] = _ApiClient["default"].convertToType(data['precedence'], 'Number');
|
|
67
73
|
}
|
|
68
74
|
} else if (data === null) {
|
|
69
75
|
return null;
|
|
@@ -72,34 +78,42 @@ var ApiKeySecret = /*#__PURE__*/function () {
|
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
/**
|
|
75
|
-
* Validates the JSON data with respect to <code>
|
|
81
|
+
* Validates the JSON data with respect to <code>EnvVar</code>.
|
|
76
82
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
83
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>EnvVar</code>.
|
|
78
84
|
*/
|
|
79
85
|
}, {
|
|
80
86
|
key: "validateJSON",
|
|
81
87
|
value: function validateJSON(data) {
|
|
82
88
|
// ensure the json data is a string
|
|
83
|
-
if (data['
|
|
84
|
-
throw new Error("Expected the field `
|
|
89
|
+
if (data['key'] && !(typeof data['key'] === 'string' || data['key'] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `key` to be a primitive type in the JSON string but got " + data['key']);
|
|
85
91
|
}
|
|
86
92
|
// ensure the json data is a string
|
|
87
|
-
if (data['
|
|
88
|
-
throw new Error("Expected the field `
|
|
93
|
+
if (data['value'] && !(typeof data['value'] === 'string' || data['value'] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `value` to be a primitive type in the JSON string but got " + data['value']);
|
|
89
95
|
}
|
|
90
96
|
return true;
|
|
91
97
|
}
|
|
92
98
|
}]);
|
|
93
99
|
}();
|
|
94
100
|
/**
|
|
95
|
-
*
|
|
96
|
-
|
|
101
|
+
* @member {String} key
|
|
102
|
+
*/
|
|
103
|
+
EnvVar.prototype['key'] = undefined;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @member {String} value
|
|
107
|
+
*/
|
|
108
|
+
EnvVar.prototype['value'] = undefined;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @member {Boolean} used
|
|
97
112
|
*/
|
|
98
|
-
|
|
113
|
+
EnvVar.prototype['used'] = undefined;
|
|
99
114
|
|
|
100
115
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @member {String} secret
|
|
116
|
+
* @member {Number} precedence
|
|
103
117
|
*/
|
|
104
|
-
|
|
105
|
-
var _default = exports["default"] =
|
|
118
|
+
EnvVar.prototype['precedence'] = undefined;
|
|
119
|
+
var _default = exports["default"] = EnvVar;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The EnvironmentVariables model module.
|
|
31
31
|
* @module model/EnvironmentVariables
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.36-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var EnvironmentVariables = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Error.js
CHANGED
package/dist/model/Event.js
CHANGED
package/dist/model/Firmware.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Firmware model module.
|
|
28
28
|
* @module model/Firmware
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.36-beta.1
|
|
30
30
|
*/
|
|
31
31
|
var Firmware = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The FirmwareInfo model module.
|
|
28
28
|
* @module model/FirmwareInfo
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.36-beta.1
|
|
30
30
|
*/
|
|
31
31
|
var FirmwareInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Fleet.js
CHANGED
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Fleet model module.
|
|
31
31
|
* @module model/Fleet
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.36-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var Fleet = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -86,6 +86,9 @@ var Fleet = /*#__PURE__*/function () {
|
|
|
86
86
|
if (data.hasOwnProperty('smart_rule')) {
|
|
87
87
|
obj['smart_rule'] = _ApiClient["default"].convertToType(data['smart_rule'], 'String');
|
|
88
88
|
}
|
|
89
|
+
if (data.hasOwnProperty('watchdog_mins')) {
|
|
90
|
+
obj['watchdog_mins'] = _ApiClient["default"].convertToType(data['watchdog_mins'], 'Number');
|
|
91
|
+
}
|
|
89
92
|
} else if (data === null) {
|
|
90
93
|
return null;
|
|
91
94
|
}
|
|
@@ -162,4 +165,10 @@ Fleet.prototype['environment_variables'] = undefined;
|
|
|
162
165
|
* @member {String} smart_rule
|
|
163
166
|
*/
|
|
164
167
|
Fleet.prototype['smart_rule'] = undefined;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* A watchdog timer is used to generate an event every N minutes of inactivity. 0 means no watchdog
|
|
171
|
+
* @member {Number} watchdog_mins
|
|
172
|
+
*/
|
|
173
|
+
Fleet.prototype['watchdog_mins'] = undefined;
|
|
165
174
|
var _default = exports["default"] = Fleet;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetAlerts200Response model module.
|
|
32
32
|
* @module model/GetAlerts200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetAlerts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetBillingAccounts200Response model module.
|
|
32
32
|
* @module model/GetBillingAccounts200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetBillingAccounts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceEnvironmentVariables200Response model module.
|
|
31
31
|
* @module model/GetDeviceEnvironmentVariables200Response
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.36-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceEnvironmentVariables200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceHealthLog200Response model module.
|
|
32
32
|
* @module model/GetDeviceHealthLog200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceHealthLog200ResponseHealthLogInner model module.
|
|
31
31
|
* @module model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.36-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceLatest200Response model module.
|
|
32
32
|
* @module model/GetDeviceLatest200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceLatest200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDevicePublicKey200Response model module.
|
|
31
31
|
* @module model/GetDevicePublicKey200Response
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.36-beta.1
|
|
33
33
|
*/
|
|
34
34
|
var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceSessions200Response model module.
|
|
32
32
|
* @module model/GetDeviceSessions200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceSessions200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectDevicePublicKeys200Response model module.
|
|
32
32
|
* @module model/GetProjectDevicePublicKeys200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectDevicePublicKeys200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner model module.
|
|
28
28
|
* @module model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.36-beta.1
|
|
30
30
|
*/
|
|
31
31
|
var GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectDevices200Response model module.
|
|
32
32
|
* @module model/GetProjectDevices200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectDevices200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectEvents200Response model module.
|
|
32
32
|
* @module model/GetProjectEvents200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectEvents200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectEventsByCursor200Response model module.
|
|
32
32
|
* @module model/GetProjectEventsByCursor200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectEventsByCursor200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectFleets200Response model module.
|
|
32
32
|
* @module model/GetProjectFleets200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectFleets200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectMembers200Response model module.
|
|
32
32
|
* @module model/GetProjectMembers200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectProducts200Response model module.
|
|
32
32
|
* @module model/GetProjectProducts200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectProducts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjects200Response model module.
|
|
32
32
|
* @module model/GetProjects200Response
|
|
33
|
-
* @version 1.0.
|
|
33
|
+
* @version 1.0.36-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetProjects200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|