@blues-inc/notehub-js 2.3.0-beta.7 → 2.3.0-beta.8
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 +46 -45
- 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 +762 -765
- package/dist/api/EventApi.js +83 -83
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +282 -282
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +10 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +84 -77
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.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/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +20 -20
- package/dist/model/Device.js +1 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.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/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 +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +18 -18
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +26 -26
- package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +19 -19
- package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +21 -21
- package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +22 -22
- package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +22 -22
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +20 -20
- package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +20 -20
- package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +18 -18
- package/dist/model/HandleNotefileChanges200Response.js +106 -0
- package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChangesPending200Response.js} +21 -21
- package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +19 -19
- package/dist/model/HttpRoute.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/MqttRoute.js +1 -1
- package/dist/model/Note.js +10 -90
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +15 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +22 -22
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +20 -20
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +1 -1
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.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/model/Notefile.js +0 -147
package/dist/model/Note.js
CHANGED
|
@@ -7,9 +7,6 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
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); }
|
|
10
|
-
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; } } }; }
|
|
11
|
-
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; } }
|
|
12
|
-
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; }
|
|
13
10
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
11
|
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); } }
|
|
15
12
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -29,19 +26,16 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
26
|
/**
|
|
30
27
|
* The Note model module.
|
|
31
28
|
* @module model/Note
|
|
32
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
33
30
|
*/
|
|
34
31
|
var Note = /*#__PURE__*/function () {
|
|
35
32
|
/**
|
|
36
33
|
* Constructs a new <code>Note</code>.
|
|
37
34
|
* @alias module:model/Note
|
|
38
|
-
* @param body {Object.<String, Object>} Arbitrary user-defined JSON for the note.
|
|
39
|
-
* @param id {String} Note name/identifier (e.g., \"1:435\", \"my_note\").
|
|
40
|
-
* @param time {Number} Unix epoch seconds.
|
|
41
35
|
*/
|
|
42
|
-
function Note(
|
|
36
|
+
function Note() {
|
|
43
37
|
_classCallCheck(this, Note);
|
|
44
|
-
Note.initialize(this
|
|
38
|
+
Note.initialize(this);
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
/**
|
|
@@ -51,11 +45,7 @@ var Note = /*#__PURE__*/function () {
|
|
|
51
45
|
*/
|
|
52
46
|
return _createClass(Note, null, [{
|
|
53
47
|
key: "initialize",
|
|
54
|
-
value: function initialize(obj
|
|
55
|
-
obj['body'] = body;
|
|
56
|
-
obj['id'] = id;
|
|
57
|
-
obj['time'] = time;
|
|
58
|
-
}
|
|
48
|
+
value: function initialize(obj) {}
|
|
59
49
|
|
|
60
50
|
/**
|
|
61
51
|
* Constructs a <code>Note</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -70,27 +60,10 @@ var Note = /*#__PURE__*/function () {
|
|
|
70
60
|
if (data) {
|
|
71
61
|
obj = obj || new Note();
|
|
72
62
|
if (data.hasOwnProperty('body')) {
|
|
73
|
-
obj['body'] = _ApiClient["default"].convertToType(data['body'],
|
|
74
|
-
'String': Object
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
if (data.hasOwnProperty('edge')) {
|
|
78
|
-
obj['edge'] = _ApiClient["default"].convertToType(data['edge'], 'Boolean');
|
|
79
|
-
}
|
|
80
|
-
if (data.hasOwnProperty('id')) {
|
|
81
|
-
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
63
|
+
obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
|
|
82
64
|
}
|
|
83
65
|
if (data.hasOwnProperty('payload')) {
|
|
84
|
-
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], '
|
|
85
|
-
}
|
|
86
|
-
if (data.hasOwnProperty('pending')) {
|
|
87
|
-
obj['pending'] = _ApiClient["default"].convertToType(data['pending'], 'Boolean');
|
|
88
|
-
}
|
|
89
|
-
if (data.hasOwnProperty('time')) {
|
|
90
|
-
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Number');
|
|
91
|
-
}
|
|
92
|
-
if (data.hasOwnProperty('where')) {
|
|
93
|
-
obj['where'] = _ApiClient["default"].convertToType(data['where'], 'String');
|
|
66
|
+
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String');
|
|
94
67
|
}
|
|
95
68
|
} else if (data === null) {
|
|
96
69
|
return null;
|
|
@@ -106,74 +79,21 @@ var Note = /*#__PURE__*/function () {
|
|
|
106
79
|
}, {
|
|
107
80
|
key: "validateJSON",
|
|
108
81
|
value: function validateJSON(data) {
|
|
109
|
-
// check to make sure all required properties are present in the JSON string
|
|
110
|
-
var _iterator = _createForOfIteratorHelper(Note.RequiredProperties),
|
|
111
|
-
_step;
|
|
112
|
-
try {
|
|
113
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
114
|
-
var property = _step.value;
|
|
115
|
-
if (!data[property]) {
|
|
116
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
// ensure the json data is a string
|
|
120
|
-
} catch (err) {
|
|
121
|
-
_iterator.e(err);
|
|
122
|
-
} finally {
|
|
123
|
-
_iterator.f();
|
|
124
|
-
}
|
|
125
|
-
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
126
|
-
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
127
|
-
}
|
|
128
82
|
// ensure the json data is a string
|
|
129
|
-
if (data['
|
|
130
|
-
throw new Error("Expected the field `
|
|
83
|
+
if (data['payload'] && !(typeof data['payload'] === 'string' || data['payload'] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data['payload']);
|
|
131
85
|
}
|
|
132
86
|
return true;
|
|
133
87
|
}
|
|
134
88
|
}]);
|
|
135
89
|
}();
|
|
136
|
-
Note.RequiredProperties = ["body", "id", "time"];
|
|
137
|
-
|
|
138
90
|
/**
|
|
139
|
-
*
|
|
140
|
-
* @member {Object.<String, Object>} body
|
|
91
|
+
* @member {Object} body
|
|
141
92
|
*/
|
|
142
93
|
Note.prototype['body'] = undefined;
|
|
143
94
|
|
|
144
95
|
/**
|
|
145
|
-
*
|
|
146
|
-
* @member {Boolean} edge
|
|
147
|
-
*/
|
|
148
|
-
Note.prototype['edge'] = undefined;
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Note name/identifier (e.g., \"1:435\", \"my_note\").
|
|
152
|
-
* @member {String} id
|
|
153
|
-
*/
|
|
154
|
-
Note.prototype['id'] = undefined;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* Optional base64-encoded payload.
|
|
158
|
-
* @member {Blob} payload
|
|
96
|
+
* @member {String} payload
|
|
159
97
|
*/
|
|
160
98
|
Note.prototype['payload'] = undefined;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* True if the note is pending delivery or processing.
|
|
164
|
-
* @member {Boolean} pending
|
|
165
|
-
*/
|
|
166
|
-
Note.prototype['pending'] = undefined;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Unix epoch seconds.
|
|
170
|
-
* @member {Number} time
|
|
171
|
-
*/
|
|
172
|
-
Note.prototype['time'] = undefined;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Optional location/metadata string.
|
|
176
|
-
* @member {String} where
|
|
177
|
-
*/
|
|
178
|
-
Note.prototype['where'] = undefined;
|
|
179
99
|
var _default = exports["default"] = Note;
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The NotefileSchema model module.
|
|
32
32
|
* @module model/NotefileSchema
|
|
33
|
-
* @version 2.3.0-beta.
|
|
33
|
+
* @version 2.3.0-beta.8
|
|
34
34
|
*/
|
|
35
35
|
var NotefileSchema = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -18,6 +18,7 @@ var _RadRoute = _interopRequireDefault(require("./RadRoute"));
|
|
|
18
18
|
var _S3ArchiveRoute = _interopRequireDefault(require("./S3ArchiveRoute"));
|
|
19
19
|
var _SlackRoute = _interopRequireDefault(require("./SlackRoute"));
|
|
20
20
|
var _SnowflakeRoute = _interopRequireDefault(require("./SnowflakeRoute"));
|
|
21
|
+
var _SnowpipeStreamingRoute = _interopRequireDefault(require("./SnowpipeStreamingRoute"));
|
|
21
22
|
var _ThingworxRoute = _interopRequireDefault(require("./ThingworxRoute"));
|
|
22
23
|
var _TwilioRoute = _interopRequireDefault(require("./TwilioRoute"));
|
|
23
24
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -41,7 +42,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
41
42
|
/**
|
|
42
43
|
* The NotehubRoute model module.
|
|
43
44
|
* @module model/NotehubRoute
|
|
44
|
-
* @version 2.3.0-beta.
|
|
45
|
+
* @version 2.3.0-beta.8
|
|
45
46
|
*/
|
|
46
47
|
var NotehubRoute = /*#__PURE__*/function () {
|
|
47
48
|
/**
|
|
@@ -123,6 +124,9 @@ var NotehubRoute = /*#__PURE__*/function () {
|
|
|
123
124
|
if (data.hasOwnProperty('snowflake')) {
|
|
124
125
|
obj['snowflake'] = _SnowflakeRoute["default"].constructFromObject(data['snowflake']);
|
|
125
126
|
}
|
|
127
|
+
if (data.hasOwnProperty('snowpipe_streaming')) {
|
|
128
|
+
obj['snowpipe_streaming'] = _SnowpipeStreamingRoute["default"].constructFromObject(data['snowpipe_streaming']);
|
|
129
|
+
}
|
|
126
130
|
if (data.hasOwnProperty('thingworx')) {
|
|
127
131
|
obj['thingworx'] = _ThingworxRoute["default"].constructFromObject(data['thingworx']);
|
|
128
132
|
}
|
|
@@ -218,6 +222,11 @@ var NotehubRoute = /*#__PURE__*/function () {
|
|
|
218
222
|
// data not null
|
|
219
223
|
_SnowflakeRoute["default"].validateJSON(data['snowflake']);
|
|
220
224
|
}
|
|
225
|
+
// validate the optional field `snowpipe_streaming`
|
|
226
|
+
if (data['snowpipe_streaming']) {
|
|
227
|
+
// data not null
|
|
228
|
+
_SnowpipeStreamingRoute["default"].validateJSON(data['snowpipe_streaming']);
|
|
229
|
+
}
|
|
221
230
|
// validate the optional field `thingworx`
|
|
222
231
|
if (data['thingworx']) {
|
|
223
232
|
// data not null
|
|
@@ -321,6 +330,11 @@ NotehubRoute.prototype['slack'] = undefined;
|
|
|
321
330
|
*/
|
|
322
331
|
NotehubRoute.prototype['snowflake'] = undefined;
|
|
323
332
|
|
|
333
|
+
/**
|
|
334
|
+
* @member {module:model/SnowpipeStreamingRoute} snowpipe_streaming
|
|
335
|
+
*/
|
|
336
|
+
NotehubRoute.prototype['snowpipe_streaming'] = undefined;
|
|
337
|
+
|
|
324
338
|
/**
|
|
325
339
|
* @member {module:model/ThingworxRoute} thingworx
|
|
326
340
|
*/
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The NotehubRouteSummary model module.
|
|
28
28
|
* @module model/NotehubRouteSummary
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var NotehubRouteSummary = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The OAuth2Error model module.
|
|
31
31
|
* @module model/OAuth2Error
|
|
32
|
-
* @version 2.3.0-beta.
|
|
32
|
+
* @version 2.3.0-beta.8
|
|
33
33
|
*/
|
|
34
34
|
var OAuth2Error = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The OAuth2TokenResponse model module.
|
|
31
31
|
* @module model/OAuth2TokenResponse
|
|
32
|
-
* @version 2.3.0-beta.
|
|
32
|
+
* @version 2.3.0-beta.8
|
|
33
33
|
*/
|
|
34
34
|
var OAuth2TokenResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The PersonalAccessToken model module.
|
|
29
29
|
* @module model/PersonalAccessToken
|
|
30
|
-
* @version 2.3.0-beta.
|
|
30
|
+
* @version 2.3.0-beta.8
|
|
31
31
|
*/
|
|
32
32
|
var PersonalAccessToken = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The PersonalAccessTokenCreatedBy model module.
|
|
28
28
|
* @module model/PersonalAccessTokenCreatedBy
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var PersonalAccessTokenCreatedBy = /*#__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 PersonalAccessTokenInfo model module.
|
|
28
28
|
* @module model/PersonalAccessTokenInfo
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var PersonalAccessTokenInfo = /*#__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 PersonalAccessTokenSecret model module.
|
|
28
28
|
* @module model/PersonalAccessTokenSecret
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var PersonalAccessTokenSecret = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -27,19 +27,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
32
|
-
* @version 2.3.0-beta.
|
|
30
|
+
* The PostProvisionProjectDeviceRequest model module.
|
|
31
|
+
* @module model/PostProvisionProjectDeviceRequest
|
|
32
|
+
* @version 2.3.0-beta.8
|
|
33
33
|
*/
|
|
34
|
-
var
|
|
34
|
+
var PostProvisionProjectDeviceRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
|
-
* Constructs a new <code>
|
|
37
|
-
* @alias module:model/
|
|
36
|
+
* Constructs a new <code>PostProvisionProjectDeviceRequest</code>.
|
|
37
|
+
* @alias module:model/PostProvisionProjectDeviceRequest
|
|
38
38
|
* @param productUid {String} The ProductUID that the device should use.
|
|
39
39
|
*/
|
|
40
|
-
function
|
|
41
|
-
_classCallCheck(this,
|
|
42
|
-
|
|
40
|
+
function PostProvisionProjectDeviceRequest(productUid) {
|
|
41
|
+
_classCallCheck(this, PostProvisionProjectDeviceRequest);
|
|
42
|
+
PostProvisionProjectDeviceRequest.initialize(this, productUid);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -47,24 +47,24 @@ var ProvisionDeviceRequest = /*#__PURE__*/function () {
|
|
|
47
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
48
|
* Only for internal use.
|
|
49
49
|
*/
|
|
50
|
-
return _createClass(
|
|
50
|
+
return _createClass(PostProvisionProjectDeviceRequest, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, productUid) {
|
|
53
53
|
obj['product_uid'] = productUid;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Constructs a <code>
|
|
57
|
+
* Constructs a <code>PostProvisionProjectDeviceRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
58
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
59
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
-
* @param {module:model/
|
|
61
|
-
* @return {module:model/
|
|
60
|
+
* @param {module:model/PostProvisionProjectDeviceRequest} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/PostProvisionProjectDeviceRequest} The populated <code>PostProvisionProjectDeviceRequest</code> instance.
|
|
62
62
|
*/
|
|
63
63
|
}, {
|
|
64
64
|
key: "constructFromObject",
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
|
-
obj = obj || new
|
|
67
|
+
obj = obj || new PostProvisionProjectDeviceRequest();
|
|
68
68
|
if (data.hasOwnProperty('device_sn')) {
|
|
69
69
|
obj['device_sn'] = _ApiClient["default"].convertToType(data['device_sn'], 'String');
|
|
70
70
|
}
|
|
@@ -81,15 +81,15 @@ var ProvisionDeviceRequest = /*#__PURE__*/function () {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Validates the JSON data with respect to <code>
|
|
84
|
+
* Validates the JSON data with respect to <code>PostProvisionProjectDeviceRequest</code>.
|
|
85
85
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
86
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
86
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PostProvisionProjectDeviceRequest</code>.
|
|
87
87
|
*/
|
|
88
88
|
}, {
|
|
89
89
|
key: "validateJSON",
|
|
90
90
|
value: function validateJSON(data) {
|
|
91
91
|
// check to make sure all required properties are present in the JSON string
|
|
92
|
-
var _iterator = _createForOfIteratorHelper(
|
|
92
|
+
var _iterator = _createForOfIteratorHelper(PostProvisionProjectDeviceRequest.RequiredProperties),
|
|
93
93
|
_step;
|
|
94
94
|
try {
|
|
95
95
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -119,23 +119,23 @@ var ProvisionDeviceRequest = /*#__PURE__*/function () {
|
|
|
119
119
|
}
|
|
120
120
|
}]);
|
|
121
121
|
}();
|
|
122
|
-
|
|
122
|
+
PostProvisionProjectDeviceRequest.RequiredProperties = ["product_uid"];
|
|
123
123
|
|
|
124
124
|
/**
|
|
125
125
|
* The serial number to assign to the device.
|
|
126
126
|
* @member {String} device_sn
|
|
127
127
|
*/
|
|
128
|
-
|
|
128
|
+
PostProvisionProjectDeviceRequest.prototype['device_sn'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* The fleetUIDs to provision the device to.
|
|
132
132
|
* @member {Array.<String>} fleet_uids
|
|
133
133
|
*/
|
|
134
|
-
|
|
134
|
+
PostProvisionProjectDeviceRequest.prototype['fleet_uids'] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* The ProductUID that the device should use.
|
|
138
138
|
* @member {String} product_uid
|
|
139
139
|
*/
|
|
140
|
-
|
|
141
|
-
var _default = exports["default"] =
|
|
140
|
+
PostProvisionProjectDeviceRequest.prototype['product_uid'] = undefined;
|
|
141
|
+
var _default = exports["default"] = PostProvisionProjectDeviceRequest;
|
package/dist/model/Product.js
CHANGED
package/dist/model/Project.js
CHANGED
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The ProjectMember model module.
|
|
32
32
|
* @module model/ProjectMember
|
|
33
|
-
* @version 2.3.0-beta.
|
|
33
|
+
* @version 2.3.0-beta.8
|
|
34
34
|
*/
|
|
35
35
|
var ProjectMember = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/ProxyRoute.js
CHANGED
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The ProxyRoute model module.
|
|
29
29
|
* @module model/ProxyRoute
|
|
30
|
-
* @version 2.3.0-beta.
|
|
30
|
+
* @version 2.3.0-beta.8
|
|
31
31
|
*/
|
|
32
32
|
var ProxyRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -27,19 +27,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* The
|
|
31
|
-
* @module model/
|
|
32
|
-
* @version 2.3.0-beta.
|
|
30
|
+
* The PutDeviceFleetsRequest model module.
|
|
31
|
+
* @module model/PutDeviceFleetsRequest
|
|
32
|
+
* @version 2.3.0-beta.8
|
|
33
33
|
*/
|
|
34
|
-
var
|
|
34
|
+
var PutDeviceFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
|
-
* Constructs a new <code>
|
|
37
|
-
* @alias module:model/
|
|
36
|
+
* Constructs a new <code>PutDeviceFleetsRequest</code>.
|
|
37
|
+
* @alias module:model/PutDeviceFleetsRequest
|
|
38
38
|
* @param fleetUids {Array.<String>} The fleetUIDs to add to the device.
|
|
39
39
|
*/
|
|
40
|
-
function
|
|
41
|
-
_classCallCheck(this,
|
|
42
|
-
|
|
40
|
+
function PutDeviceFleetsRequest(fleetUids) {
|
|
41
|
+
_classCallCheck(this, PutDeviceFleetsRequest);
|
|
42
|
+
PutDeviceFleetsRequest.initialize(this, fleetUids);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -47,24 +47,24 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
47
47
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
48
48
|
* Only for internal use.
|
|
49
49
|
*/
|
|
50
|
-
return _createClass(
|
|
50
|
+
return _createClass(PutDeviceFleetsRequest, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, fleetUids) {
|
|
53
53
|
obj['fleet_uids'] = fleetUids;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Constructs a <code>
|
|
57
|
+
* Constructs a <code>PutDeviceFleetsRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
58
58
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
59
59
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
60
|
-
* @param {module:model/
|
|
61
|
-
* @return {module:model/
|
|
60
|
+
* @param {module:model/PutDeviceFleetsRequest} obj Optional instance to populate.
|
|
61
|
+
* @return {module:model/PutDeviceFleetsRequest} The populated <code>PutDeviceFleetsRequest</code> instance.
|
|
62
62
|
*/
|
|
63
63
|
}, {
|
|
64
64
|
key: "constructFromObject",
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
|
-
obj = obj || new
|
|
67
|
+
obj = obj || new PutDeviceFleetsRequest();
|
|
68
68
|
if (data.hasOwnProperty('fleet_uids')) {
|
|
69
69
|
obj['fleet_uids'] = _ApiClient["default"].convertToType(data['fleet_uids'], ['String']);
|
|
70
70
|
}
|
|
@@ -75,15 +75,15 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* Validates the JSON data with respect to <code>
|
|
78
|
+
* Validates the JSON data with respect to <code>PutDeviceFleetsRequest</code>.
|
|
79
79
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PutDeviceFleetsRequest</code>.
|
|
81
81
|
*/
|
|
82
82
|
}, {
|
|
83
83
|
key: "validateJSON",
|
|
84
84
|
value: function validateJSON(data) {
|
|
85
85
|
// check to make sure all required properties are present in the JSON string
|
|
86
|
-
var _iterator = _createForOfIteratorHelper(
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(PutDeviceFleetsRequest.RequiredProperties),
|
|
87
87
|
_step;
|
|
88
88
|
try {
|
|
89
89
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -105,11 +105,11 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
105
105
|
}
|
|
106
106
|
}]);
|
|
107
107
|
}();
|
|
108
|
-
|
|
108
|
+
PutDeviceFleetsRequest.RequiredProperties = ["fleet_uids"];
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* The fleetUIDs to add to the device.
|
|
112
112
|
* @member {Array.<String>} fleet_uids
|
|
113
113
|
*/
|
|
114
|
-
|
|
115
|
-
var _default = exports["default"] =
|
|
114
|
+
PutDeviceFleetsRequest.prototype['fleet_uids'] = undefined;
|
|
115
|
+
var _default = exports["default"] = PutDeviceFleetsRequest;
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The QubitroRoute model module.
|
|
30
30
|
* @module model/QubitroRoute
|
|
31
|
-
* @version 2.3.0-beta.
|
|
31
|
+
* @version 2.3.0-beta.8
|
|
32
32
|
*/
|
|
33
33
|
var QubitroRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/RadRoute.js
CHANGED
package/dist/model/Repository.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Repository model module.
|
|
28
28
|
* @module model/Repository
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var Repository = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/RouteLog.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The RouteTransformSettings model module.
|
|
28
28
|
* @module model/RouteTransformSettings
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var RouteTransformSettings = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The S3ArchiveRoute model module.
|
|
30
30
|
* @module model/S3ArchiveRoute
|
|
31
|
-
* @version 2.3.0-beta.
|
|
31
|
+
* @version 2.3.0-beta.8
|
|
32
32
|
*/
|
|
33
33
|
var S3ArchiveRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The SatellitePlan model module.
|
|
32
32
|
* @module model/SatellitePlan
|
|
33
|
-
* @version 2.3.0-beta.
|
|
33
|
+
* @version 2.3.0-beta.8
|
|
34
34
|
*/
|
|
35
35
|
var SatellitePlan = /*#__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 SchemaProperty model module.
|
|
31
31
|
* @module model/SchemaProperty
|
|
32
|
-
* @version 2.3.0-beta.
|
|
32
|
+
* @version 2.3.0-beta.8
|
|
33
33
|
*/
|
|
34
34
|
var SchemaProperty = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/SimUsage.js
CHANGED
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The SlackBearerNotification model module.
|
|
28
28
|
* @module model/SlackBearerNotification
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var SlackBearerNotification = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/SlackRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The SlackRoute model module.
|
|
30
30
|
* @module model/SlackRoute
|
|
31
|
-
* @version 2.3.0-beta.
|
|
31
|
+
* @version 2.3.0-beta.8
|
|
32
32
|
*/
|
|
33
33
|
var SlackRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The SlackWebHookNotification model module.
|
|
28
28
|
* @module model/SlackWebHookNotification
|
|
29
|
-
* @version 2.3.0-beta.
|
|
29
|
+
* @version 2.3.0-beta.8
|
|
30
30
|
*/
|
|
31
31
|
var SlackWebHookNotification = /*#__PURE__*/function () {
|
|
32
32
|
/**
|