@blues-inc/notehub-js 2.3.0-beta.9 → 3.0.0
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 +242 -251
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +478 -513
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +457 -457
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +65 -44
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +17 -17
- package/dist/model/CreateMonitor.js +125 -126
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +101 -102
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +35 -35
- package/dist/model/FleetConnectivityAssurance.js +6 -6
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +9 -10
- package/dist/model/GetDataUsage200ResponseDataInner.js +40 -41
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetSessionsUsage200Response.js +11 -12
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/ListNotefiles200Response.js +106 -0
- package/dist/model/ListPendingNotefiles200Response.js +14 -14
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +99 -100
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +15 -95
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +112 -98
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +223 -0
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +30 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +40 -29
- package/dist/model/UsageEventsResponse.js +11 -12
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +27 -27
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/Notefile.js +0 -147
- package/dist/model/NotefileTemplate.js +0 -128
package/dist/api/WebhookApi.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
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); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -27,18 +27,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
*
|
|
28
28
|
*/
|
|
29
29
|
/**
|
|
30
|
-
* Webhook service.
|
|
31
|
-
* @module api/WebhookApi
|
|
32
|
-
* @version
|
|
33
|
-
*/
|
|
30
|
+
* Webhook service.
|
|
31
|
+
* @module api/WebhookApi
|
|
32
|
+
* @version 3.0.0
|
|
33
|
+
*/
|
|
34
34
|
var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
* Constructs a new WebhookApi.
|
|
37
|
+
* @alias module:api/WebhookApi
|
|
38
|
+
* @class
|
|
39
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
40
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
41
|
+
*/
|
|
42
42
|
function WebhookApi(apiClient) {
|
|
43
43
|
_classCallCheck(this, WebhookApi);
|
|
44
44
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -46,9 +46,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
49
|
-
* @param {String} projectOrProductUID
|
|
49
|
+
* @param {String} projectOrProductUID
|
|
50
50
|
* @param {String} webhookUID Webhook UID
|
|
51
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
51
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
52
52
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
53
53
|
*/
|
|
54
54
|
return _createClass(WebhookApi, [{
|
|
@@ -68,24 +68,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
68
68
|
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling createWebhook");
|
|
69
69
|
}
|
|
70
70
|
var pathParams = {
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
projectOrProductUID: projectOrProductUID,
|
|
72
|
+
webhookUID: webhookUID
|
|
73
73
|
};
|
|
74
74
|
var queryParams = {};
|
|
75
75
|
var headerParams = {};
|
|
76
76
|
var formParams = {};
|
|
77
|
-
var authNames = [
|
|
78
|
-
var contentTypes = [
|
|
79
|
-
var accepts = [
|
|
77
|
+
var authNames = ["personalAccessToken"];
|
|
78
|
+
var contentTypes = ["application/json"];
|
|
79
|
+
var accepts = ["application/json"];
|
|
80
80
|
var returnType = null;
|
|
81
|
-
return this.apiClient.callApi(
|
|
81
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "POST", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* Creates a webhook for the specified product with the given name. The name | must be unique within the project.
|
|
86
|
-
* @param {String} projectOrProductUID
|
|
86
|
+
* @param {String} projectOrProductUID
|
|
87
87
|
* @param {String} webhookUID Webhook UID
|
|
88
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
88
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
89
89
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
90
90
|
*/
|
|
91
91
|
}, {
|
|
@@ -98,7 +98,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* Deletes the specified webhook
|
|
101
|
-
* @param {String} projectOrProductUID
|
|
101
|
+
* @param {String} projectOrProductUID
|
|
102
102
|
* @param {String} webhookUID Webhook UID
|
|
103
103
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
104
104
|
*/
|
|
@@ -115,22 +115,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
115
115
|
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling deleteWebhook");
|
|
116
116
|
}
|
|
117
117
|
var pathParams = {
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
projectOrProductUID: projectOrProductUID,
|
|
119
|
+
webhookUID: webhookUID
|
|
120
120
|
};
|
|
121
121
|
var queryParams = {};
|
|
122
122
|
var headerParams = {};
|
|
123
123
|
var formParams = {};
|
|
124
|
-
var authNames = [
|
|
124
|
+
var authNames = ["personalAccessToken"];
|
|
125
125
|
var contentTypes = [];
|
|
126
|
-
var accepts = [
|
|
126
|
+
var accepts = ["application/json"];
|
|
127
127
|
var returnType = null;
|
|
128
|
-
return this.apiClient.callApi(
|
|
128
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "DELETE", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* Deletes the specified webhook
|
|
133
|
-
* @param {String} projectOrProductUID
|
|
133
|
+
* @param {String} projectOrProductUID
|
|
134
134
|
* @param {String} webhookUID Webhook UID
|
|
135
135
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
136
136
|
*/
|
|
@@ -144,7 +144,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* Retrieves the configuration settings for the specified webhook
|
|
147
|
-
* @param {String} projectOrProductUID
|
|
147
|
+
* @param {String} projectOrProductUID
|
|
148
148
|
* @param {String} webhookUID Webhook UID
|
|
149
149
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebhookSettings} and HTTP response
|
|
150
150
|
*/
|
|
@@ -161,22 +161,22 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
161
161
|
throw new _Error["default"]("Missing the required parameter 'webhookUID' when calling getWebhook");
|
|
162
162
|
}
|
|
163
163
|
var pathParams = {
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
projectOrProductUID: projectOrProductUID,
|
|
165
|
+
webhookUID: webhookUID
|
|
166
166
|
};
|
|
167
167
|
var queryParams = {};
|
|
168
168
|
var headerParams = {};
|
|
169
169
|
var formParams = {};
|
|
170
|
-
var authNames = [
|
|
170
|
+
var authNames = ["personalAccessToken"];
|
|
171
171
|
var contentTypes = [];
|
|
172
|
-
var accepts = [
|
|
172
|
+
var accepts = ["application/json"];
|
|
173
173
|
var returnType = _WebhookSettings["default"];
|
|
174
|
-
return this.apiClient.callApi(
|
|
174
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
/**
|
|
178
178
|
* Retrieves the configuration settings for the specified webhook
|
|
179
|
-
* @param {String} projectOrProductUID
|
|
179
|
+
* @param {String} projectOrProductUID
|
|
180
180
|
* @param {String} webhookUID Webhook UID
|
|
181
181
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebhookSettings}
|
|
182
182
|
*/
|
|
@@ -190,7 +190,7 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
192
|
* Retrieves all webhooks for the specified project
|
|
193
|
-
* @param {String} projectOrProductUID
|
|
193
|
+
* @param {String} projectOrProductUID
|
|
194
194
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetWebhooks200Response} and HTTP response
|
|
195
195
|
*/
|
|
196
196
|
}, {
|
|
@@ -202,21 +202,21 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
202
202
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getWebhooks");
|
|
203
203
|
}
|
|
204
204
|
var pathParams = {
|
|
205
|
-
|
|
205
|
+
projectOrProductUID: projectOrProductUID
|
|
206
206
|
};
|
|
207
207
|
var queryParams = {};
|
|
208
208
|
var headerParams = {};
|
|
209
209
|
var formParams = {};
|
|
210
|
-
var authNames = [
|
|
210
|
+
var authNames = ["personalAccessToken"];
|
|
211
211
|
var contentTypes = [];
|
|
212
|
-
var accepts = [
|
|
212
|
+
var accepts = ["application/json"];
|
|
213
213
|
var returnType = _GetWebhooks200Response["default"];
|
|
214
|
-
return this.apiClient.callApi(
|
|
214
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks", "GET", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Retrieves all webhooks for the specified project
|
|
219
|
-
* @param {String} projectOrProductUID
|
|
219
|
+
* @param {String} projectOrProductUID
|
|
220
220
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetWebhooks200Response}
|
|
221
221
|
*/
|
|
222
222
|
}, {
|
|
@@ -229,9 +229,9 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
231
|
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
232
|
-
* @param {String} projectOrProductUID
|
|
232
|
+
* @param {String} projectOrProductUID
|
|
233
233
|
* @param {String} webhookUID Webhook UID
|
|
234
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
234
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
235
235
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
|
236
236
|
*/
|
|
237
237
|
}, {
|
|
@@ -251,24 +251,24 @@ var WebhookApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
251
251
|
throw new _Error["default"]("Missing the required parameter 'webhookSettings' when calling updateWebhook");
|
|
252
252
|
}
|
|
253
253
|
var pathParams = {
|
|
254
|
-
|
|
255
|
-
|
|
254
|
+
projectOrProductUID: projectOrProductUID,
|
|
255
|
+
webhookUID: webhookUID
|
|
256
256
|
};
|
|
257
257
|
var queryParams = {};
|
|
258
258
|
var headerParams = {};
|
|
259
259
|
var formParams = {};
|
|
260
|
-
var authNames = [
|
|
261
|
-
var contentTypes = [
|
|
262
|
-
var accepts = [
|
|
260
|
+
var authNames = ["personalAccessToken"];
|
|
261
|
+
var contentTypes = ["application/json"];
|
|
262
|
+
var accepts = ["application/json"];
|
|
263
263
|
var returnType = null;
|
|
264
|
-
return this.apiClient.callApi(
|
|
264
|
+
return this.apiClient.callApi("/v1/projects/{projectOrProductUID}/webhooks/{webhookUID}", "PUT", pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
/**
|
|
268
268
|
* Updates the configuration settings for the specified webhook. | Webhook will be created if it does not exist. Update body will completely replace the existing settings.
|
|
269
|
-
* @param {String} projectOrProductUID
|
|
269
|
+
* @param {String} projectOrProductUID
|
|
270
270
|
* @param {String} webhookUID Webhook UID
|
|
271
|
-
* @param {module:model/WebhookSettings} webhookSettings
|
|
271
|
+
* @param {module:model/WebhookSettings} webhookSettings
|
|
272
272
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
|
273
273
|
*/
|
|
274
274
|
}, {
|
package/dist/index.js
CHANGED
|
@@ -501,6 +501,12 @@ Object.defineProperty(exports, "HttpRoute", {
|
|
|
501
501
|
return _HttpRoute["default"];
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
|
+
Object.defineProperty(exports, "ListNotefiles200Response", {
|
|
505
|
+
enumerable: true,
|
|
506
|
+
get: function get() {
|
|
507
|
+
return _ListNotefiles200Response["default"];
|
|
508
|
+
}
|
|
509
|
+
});
|
|
504
510
|
Object.defineProperty(exports, "ListPendingNotefiles200Response", {
|
|
505
511
|
enumerable: true,
|
|
506
512
|
get: function get() {
|
|
@@ -555,24 +561,12 @@ Object.defineProperty(exports, "Note", {
|
|
|
555
561
|
return _Note["default"];
|
|
556
562
|
}
|
|
557
563
|
});
|
|
558
|
-
Object.defineProperty(exports, "Notefile", {
|
|
559
|
-
enumerable: true,
|
|
560
|
-
get: function get() {
|
|
561
|
-
return _Notefile["default"];
|
|
562
|
-
}
|
|
563
|
-
});
|
|
564
564
|
Object.defineProperty(exports, "NotefileSchema", {
|
|
565
565
|
enumerable: true,
|
|
566
566
|
get: function get() {
|
|
567
567
|
return _NotefileSchema["default"];
|
|
568
568
|
}
|
|
569
569
|
});
|
|
570
|
-
Object.defineProperty(exports, "NotefileTemplate", {
|
|
571
|
-
enumerable: true,
|
|
572
|
-
get: function get() {
|
|
573
|
-
return _NotefileTemplate["default"];
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
570
|
Object.defineProperty(exports, "NotehubRoute", {
|
|
577
571
|
enumerable: true,
|
|
578
572
|
get: function get() {
|
|
@@ -753,6 +747,12 @@ Object.defineProperty(exports, "SnowflakeRoute", {
|
|
|
753
747
|
return _SnowflakeRoute["default"];
|
|
754
748
|
}
|
|
755
749
|
});
|
|
750
|
+
Object.defineProperty(exports, "SnowpipeStreamingRoute", {
|
|
751
|
+
enumerable: true,
|
|
752
|
+
get: function get() {
|
|
753
|
+
return _SnowpipeStreamingRoute["default"];
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
756
|
Object.defineProperty(exports, "ThingworxRoute", {
|
|
757
757
|
enumerable: true,
|
|
758
758
|
get: function get() {
|
|
@@ -926,6 +926,7 @@ var _GetSessionsUsage200Response = _interopRequireDefault(require("./model/GetSe
|
|
|
926
926
|
var _GetWebhooks200Response = _interopRequireDefault(require("./model/GetWebhooks200Response"));
|
|
927
927
|
var _GoogleRoute = _interopRequireDefault(require("./model/GoogleRoute"));
|
|
928
928
|
var _HttpRoute = _interopRequireDefault(require("./model/HttpRoute"));
|
|
929
|
+
var _ListNotefiles200Response = _interopRequireDefault(require("./model/ListNotefiles200Response"));
|
|
929
930
|
var _ListPendingNotefiles200Response = _interopRequireDefault(require("./model/ListPendingNotefiles200Response"));
|
|
930
931
|
var _Location = _interopRequireDefault(require("./model/Location"));
|
|
931
932
|
var _Login200Response = _interopRequireDefault(require("./model/Login200Response"));
|
|
@@ -934,9 +935,7 @@ var _Monitor = _interopRequireDefault(require("./model/Monitor"));
|
|
|
934
935
|
var _MonitorAlertRoutesInner = _interopRequireDefault(require("./model/MonitorAlertRoutesInner"));
|
|
935
936
|
var _MqttRoute = _interopRequireDefault(require("./model/MqttRoute"));
|
|
936
937
|
var _Note = _interopRequireDefault(require("./model/Note"));
|
|
937
|
-
var _Notefile = _interopRequireDefault(require("./model/Notefile"));
|
|
938
938
|
var _NotefileSchema = _interopRequireDefault(require("./model/NotefileSchema"));
|
|
939
|
-
var _NotefileTemplate = _interopRequireDefault(require("./model/NotefileTemplate"));
|
|
940
939
|
var _NotehubRoute = _interopRequireDefault(require("./model/NotehubRoute"));
|
|
941
940
|
var _NotehubRouteSummary = _interopRequireDefault(require("./model/NotehubRouteSummary"));
|
|
942
941
|
var _OAuth2Error = _interopRequireDefault(require("./model/OAuth2Error"));
|
|
@@ -965,6 +964,7 @@ var _SlackBearerNotification = _interopRequireDefault(require("./model/SlackBear
|
|
|
965
964
|
var _SlackRoute = _interopRequireDefault(require("./model/SlackRoute"));
|
|
966
965
|
var _SlackWebHookNotification = _interopRequireDefault(require("./model/SlackWebHookNotification"));
|
|
967
966
|
var _SnowflakeRoute = _interopRequireDefault(require("./model/SnowflakeRoute"));
|
|
967
|
+
var _SnowpipeStreamingRoute = _interopRequireDefault(require("./model/SnowpipeStreamingRoute"));
|
|
968
968
|
var _ThingworxRoute = _interopRequireDefault(require("./model/ThingworxRoute"));
|
|
969
969
|
var _TowerLocation = _interopRequireDefault(require("./model/TowerLocation"));
|
|
970
970
|
var _TwilioRoute = _interopRequireDefault(require("./model/TwilioRoute"));
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
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); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The AddDeviceToFleetsRequest model module.
|
|
31
31
|
* @module model/AddDeviceToFleetsRequest
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -50,7 +50,7 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(AddDeviceToFleetsRequest, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, fleetUids) {
|
|
53
|
-
obj[
|
|
53
|
+
obj["fleet_uids"] = fleetUids;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,8 +65,8 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new AddDeviceToFleetsRequest();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("fleet_uids")) {
|
|
69
|
+
obj["fleet_uids"] = _ApiClient["default"].convertToType(data["fleet_uids"], ["String"]);
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -98,8 +98,8 @@ var AddDeviceToFleetsRequest = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (!Array.isArray(data[
|
|
102
|
-
throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data[
|
|
101
|
+
if (!Array.isArray(data["fleet_uids"])) {
|
|
102
|
+
throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data["fleet_uids"]);
|
|
103
103
|
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
@@ -111,5 +111,5 @@ AddDeviceToFleetsRequest.RequiredProperties = ["fleet_uids"];
|
|
|
111
111
|
* The fleetUIDs to add to the device.
|
|
112
112
|
* @member {Array.<String>} fleet_uids
|
|
113
113
|
*/
|
|
114
|
-
AddDeviceToFleetsRequest.prototype[
|
|
114
|
+
AddDeviceToFleetsRequest.prototype["fleet_uids"] = undefined;
|
|
115
115
|
var _default = exports["default"] = AddDeviceToFleetsRequest;
|