@blues-inc/notehub-js 2.2.0 → 2.2.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 +21 -18
- 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 +1 -13
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +10 -10
- package/dist/api/UsageApi.js +8 -8
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +85 -64
- 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 → AwsRoute.js} +39 -45
- package/dist/model/{Azure.js → AzureRoute.js} +34 -40
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +147 -0
- 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 +15 -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 +165 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- 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/{AwsFilter.js → Filter.js} +25 -47
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +16 -2
- package/dist/model/FleetConnectivityAssurance.js +111 -0
- 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/GetDeviceLatest200Response.js +1 -1
- 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/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/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/{Google.js → GoogleRoute.js} +32 -37
- 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 → HttpRoute.js} +34 -40
- 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 → MqttRoute.js} +45 -50
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +214 -134
- package/dist/model/{UserDbRoute.js → NotehubRouteSummary.js} +24 -29
- 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/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 → ProxyRoute.js} +22 -26
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/QubitroRoute.js +159 -0
- package/dist/model/{Radresponder.js → RadRoute.js} +38 -26
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/{SlackTransform.js → RouteTransformSettings.js} +22 -22
- package/dist/model/S3ArchiveRoute.js +271 -0
- 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/{Slack.js → SlackRoute.js} +35 -58
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/{Snowflake.js → SnowflakeRoute.js} +34 -41
- package/dist/model/{Thingworx.js → ThingworxRoute.js} +32 -37
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/{Twilio.js → TwilioRoute.js} +30 -39
- package/dist/model/UpdateFleetRequest.js +15 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +20 -7
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +2 -2
- 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/AwsTransform.js +0 -148
- package/dist/model/NotehubRouteSchema.js +0 -506
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
31
|
-
* @version 2.2.
|
|
29
|
+
* The SnowflakeRoute model module.
|
|
30
|
+
* @module model/SnowflakeRoute
|
|
31
|
+
* @version 2.2.1
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var SnowflakeRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
*
|
|
37
|
-
* @alias module:model/Snowflake
|
|
35
|
+
* Constructs a new <code>SnowflakeRoute</code>.
|
|
36
|
+
* @alias module:model/SnowflakeRoute
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function SnowflakeRoute() {
|
|
39
|
+
_classCallCheck(this, SnowflakeRoute);
|
|
40
|
+
SnowflakeRoute.initialize(this);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,27 +45,27 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(SnowflakeRoute, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
50
|
value: function initialize(obj) {}
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>SnowflakeRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/SnowflakeRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/SnowflakeRoute} The populated <code>SnowflakeRoute</code> instance.
|
|
59
58
|
*/
|
|
60
59
|
}, {
|
|
61
60
|
key: "constructFromObject",
|
|
62
61
|
value: function constructFromObject(data, obj) {
|
|
63
62
|
if (data) {
|
|
64
|
-
obj = obj || new
|
|
63
|
+
obj = obj || new SnowflakeRoute();
|
|
65
64
|
if (data.hasOwnProperty("account_name")) {
|
|
66
65
|
obj["account_name"] = _ApiClient["default"].convertToType(data["account_name"], "String");
|
|
67
66
|
}
|
|
68
67
|
if (data.hasOwnProperty("filter")) {
|
|
69
|
-
obj["filter"] =
|
|
68
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
70
69
|
}
|
|
71
70
|
if (data.hasOwnProperty("fleets")) {
|
|
72
71
|
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
@@ -84,7 +83,7 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
84
83
|
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
85
84
|
}
|
|
86
85
|
if (data.hasOwnProperty("transform")) {
|
|
87
|
-
obj["transform"] =
|
|
86
|
+
obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
|
|
88
87
|
}
|
|
89
88
|
if (data.hasOwnProperty("user_name")) {
|
|
90
89
|
obj["user_name"] = _ApiClient["default"].convertToType(data["user_name"], "String");
|
|
@@ -96,9 +95,9 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
96
95
|
}
|
|
97
96
|
|
|
98
97
|
/**
|
|
99
|
-
* Validates the JSON data with respect to <code>
|
|
98
|
+
* Validates the JSON data with respect to <code>SnowflakeRoute</code>.
|
|
100
99
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
101
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
100
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>SnowflakeRoute</code>.
|
|
102
101
|
*/
|
|
103
102
|
}, {
|
|
104
103
|
key: "validateJSON",
|
|
@@ -110,7 +109,7 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
110
109
|
// validate the optional field `filter`
|
|
111
110
|
if (data["filter"]) {
|
|
112
111
|
// data not null
|
|
113
|
-
|
|
112
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
114
113
|
}
|
|
115
114
|
// ensure the json data is an array
|
|
116
115
|
if (!Array.isArray(data["fleets"])) {
|
|
@@ -131,7 +130,7 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
131
130
|
// validate the optional field `transform`
|
|
132
131
|
if (data["transform"]) {
|
|
133
132
|
// data not null
|
|
134
|
-
|
|
133
|
+
_RouteTransformSettings["default"].validateJSON(data["transform"]);
|
|
135
134
|
}
|
|
136
135
|
// ensure the json data is a string
|
|
137
136
|
if (data["user_name"] && !(typeof data["user_name"] === "string" || data["user_name"] instanceof String)) {
|
|
@@ -144,51 +143,45 @@ var Snowflake = /*#__PURE__*/function () {
|
|
|
144
143
|
/**
|
|
145
144
|
* @member {String} account_name
|
|
146
145
|
*/
|
|
147
|
-
|
|
146
|
+
SnowflakeRoute.prototype["account_name"] = undefined;
|
|
148
147
|
|
|
149
148
|
/**
|
|
150
|
-
* @member {module:model/
|
|
149
|
+
* @member {module:model/Filter} filter
|
|
151
150
|
*/
|
|
152
|
-
|
|
151
|
+
SnowflakeRoute.prototype["filter"] = undefined;
|
|
153
152
|
|
|
154
153
|
/**
|
|
155
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
156
154
|
* @member {Array.<String>} fleets
|
|
157
155
|
*/
|
|
158
|
-
|
|
156
|
+
SnowflakeRoute.prototype["fleets"] = undefined;
|
|
159
157
|
|
|
160
158
|
/**
|
|
161
159
|
* @member {String} organization_name
|
|
162
160
|
*/
|
|
163
|
-
|
|
161
|
+
SnowflakeRoute.prototype["organization_name"] = undefined;
|
|
164
162
|
|
|
165
163
|
/**
|
|
166
|
-
* PEM key with \\n newlines. This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
167
164
|
* @member {String} pem
|
|
168
165
|
*/
|
|
169
|
-
|
|
166
|
+
SnowflakeRoute.prototype["pem"] = undefined;
|
|
170
167
|
|
|
171
168
|
/**
|
|
172
|
-
* Name of PEM key. If omitted, defaults to \"present\"
|
|
173
169
|
* @member {String} private_key_name
|
|
174
|
-
* @default 'present'
|
|
175
170
|
*/
|
|
176
|
-
|
|
171
|
+
SnowflakeRoute.prototype["private_key_name"] = undefined;
|
|
177
172
|
|
|
178
173
|
/**
|
|
179
|
-
* Timeout in seconds for each request
|
|
180
174
|
* @member {Number} timeout
|
|
181
|
-
* @default 15
|
|
182
175
|
*/
|
|
183
|
-
|
|
176
|
+
SnowflakeRoute.prototype["timeout"] = undefined;
|
|
184
177
|
|
|
185
178
|
/**
|
|
186
|
-
* @member {module:model/
|
|
179
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
187
180
|
*/
|
|
188
|
-
|
|
181
|
+
SnowflakeRoute.prototype["transform"] = undefined;
|
|
189
182
|
|
|
190
183
|
/**
|
|
191
184
|
* @member {String} user_name
|
|
192
185
|
*/
|
|
193
|
-
|
|
194
|
-
var _default = exports["default"] =
|
|
186
|
+
SnowflakeRoute.prototype["user_name"] = undefined;
|
|
187
|
+
var _default = exports["default"] = SnowflakeRoute;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
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); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
31
|
-
* @version 2.2.
|
|
29
|
+
* The ThingworxRoute model module.
|
|
30
|
+
* @module model/ThingworxRoute
|
|
31
|
+
* @version 2.2.1
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var ThingworxRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
*
|
|
37
|
-
* @alias module:model/Thingworx
|
|
35
|
+
* Constructs a new <code>ThingworxRoute</code>.
|
|
36
|
+
* @alias module:model/ThingworxRoute
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function ThingworxRoute() {
|
|
39
|
+
_classCallCheck(this, ThingworxRoute);
|
|
40
|
+
ThingworxRoute.initialize(this);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,27 +45,27 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(ThingworxRoute, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
50
|
value: function initialize(obj) {}
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>ThingworxRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/ThingworxRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/ThingworxRoute} The populated <code>ThingworxRoute</code> instance.
|
|
59
58
|
*/
|
|
60
59
|
}, {
|
|
61
60
|
key: "constructFromObject",
|
|
62
61
|
value: function constructFromObject(data, obj) {
|
|
63
62
|
if (data) {
|
|
64
|
-
obj = obj || new
|
|
63
|
+
obj = obj || new ThingworxRoute();
|
|
65
64
|
if (data.hasOwnProperty("app_key")) {
|
|
66
65
|
obj["app_key"] = _ApiClient["default"].convertToType(data["app_key"], "String");
|
|
67
66
|
}
|
|
68
67
|
if (data.hasOwnProperty("filter")) {
|
|
69
|
-
obj["filter"] =
|
|
68
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
70
69
|
}
|
|
71
70
|
if (data.hasOwnProperty("fleets")) {
|
|
72
71
|
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
@@ -78,7 +77,7 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
78
77
|
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
79
78
|
}
|
|
80
79
|
if (data.hasOwnProperty("transform")) {
|
|
81
|
-
obj["transform"] =
|
|
80
|
+
obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
|
|
82
81
|
}
|
|
83
82
|
if (data.hasOwnProperty("url")) {
|
|
84
83
|
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
@@ -90,9 +89,9 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
|
-
* Validates the JSON data with respect to <code>
|
|
92
|
+
* Validates the JSON data with respect to <code>ThingworxRoute</code>.
|
|
94
93
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
95
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ThingworxRoute</code>.
|
|
96
95
|
*/
|
|
97
96
|
}, {
|
|
98
97
|
key: "validateJSON",
|
|
@@ -104,7 +103,7 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
104
103
|
// validate the optional field `filter`
|
|
105
104
|
if (data["filter"]) {
|
|
106
105
|
// data not null
|
|
107
|
-
|
|
106
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
108
107
|
}
|
|
109
108
|
// ensure the json data is an array
|
|
110
109
|
if (!Array.isArray(data["fleets"])) {
|
|
@@ -113,7 +112,7 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
113
112
|
// validate the optional field `transform`
|
|
114
113
|
if (data["transform"]) {
|
|
115
114
|
// data not null
|
|
116
|
-
|
|
115
|
+
_RouteTransformSettings["default"].validateJSON(data["transform"]);
|
|
117
116
|
}
|
|
118
117
|
// ensure the json data is a string
|
|
119
118
|
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
@@ -124,41 +123,37 @@ var Thingworx = /*#__PURE__*/function () {
|
|
|
124
123
|
}]);
|
|
125
124
|
}();
|
|
126
125
|
/**
|
|
127
|
-
* This value is input-only and will be omitted from the response and replaced with a placeholder
|
|
128
126
|
* @member {String} app_key
|
|
129
127
|
*/
|
|
130
|
-
|
|
128
|
+
ThingworxRoute.prototype["app_key"] = undefined;
|
|
131
129
|
|
|
132
130
|
/**
|
|
133
|
-
* @member {module:model/
|
|
131
|
+
* @member {module:model/Filter} filter
|
|
134
132
|
*/
|
|
135
|
-
|
|
133
|
+
ThingworxRoute.prototype["filter"] = undefined;
|
|
136
134
|
|
|
137
135
|
/**
|
|
138
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
139
136
|
* @member {Array.<String>} fleets
|
|
140
137
|
*/
|
|
141
|
-
|
|
138
|
+
ThingworxRoute.prototype["fleets"] = undefined;
|
|
142
139
|
|
|
143
140
|
/**
|
|
144
141
|
* @member {Number} throttle_ms
|
|
145
142
|
*/
|
|
146
|
-
|
|
143
|
+
ThingworxRoute.prototype["throttle_ms"] = undefined;
|
|
147
144
|
|
|
148
145
|
/**
|
|
149
|
-
* Timeout in seconds for each request
|
|
150
146
|
* @member {Number} timeout
|
|
151
|
-
* @default 15
|
|
152
147
|
*/
|
|
153
|
-
|
|
148
|
+
ThingworxRoute.prototype["timeout"] = undefined;
|
|
154
149
|
|
|
155
150
|
/**
|
|
156
|
-
* @member {module:model/
|
|
151
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
157
152
|
*/
|
|
158
|
-
|
|
153
|
+
ThingworxRoute.prototype["transform"] = undefined;
|
|
159
154
|
|
|
160
155
|
/**
|
|
161
156
|
* @member {String} url
|
|
162
157
|
*/
|
|
163
|
-
|
|
164
|
-
var _default = exports["default"] =
|
|
158
|
+
ThingworxRoute.prototype["url"] = undefined;
|
|
159
|
+
var _default = exports["default"] = ThingworxRoute;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
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
11
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -25,19 +25,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
* The
|
|
29
|
-
* @module model/
|
|
30
|
-
* @version 2.2.
|
|
28
|
+
* The TwilioRoute model module.
|
|
29
|
+
* @module model/TwilioRoute
|
|
30
|
+
* @version 2.2.1
|
|
31
31
|
*/
|
|
32
|
-
var
|
|
32
|
+
var TwilioRoute = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
34
|
-
* Constructs a new <code>
|
|
35
|
-
*
|
|
36
|
-
* @alias module:model/Twilio
|
|
34
|
+
* Constructs a new <code>TwilioRoute</code>.
|
|
35
|
+
* @alias module:model/TwilioRoute
|
|
37
36
|
*/
|
|
38
|
-
function
|
|
39
|
-
_classCallCheck(this,
|
|
40
|
-
|
|
37
|
+
function TwilioRoute() {
|
|
38
|
+
_classCallCheck(this, TwilioRoute);
|
|
39
|
+
TwilioRoute.initialize(this);
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
/**
|
|
@@ -45,22 +44,22 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
45
44
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
45
|
* Only for internal use.
|
|
47
46
|
*/
|
|
48
|
-
return _createClass(
|
|
47
|
+
return _createClass(TwilioRoute, null, [{
|
|
49
48
|
key: "initialize",
|
|
50
49
|
value: function initialize(obj) {}
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
|
-
* Constructs a <code>
|
|
52
|
+
* Constructs a <code>TwilioRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
53
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
54
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
-
* @param {module:model/
|
|
57
|
-
* @return {module:model/
|
|
55
|
+
* @param {module:model/TwilioRoute} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/TwilioRoute} The populated <code>TwilioRoute</code> instance.
|
|
58
57
|
*/
|
|
59
58
|
}, {
|
|
60
59
|
key: "constructFromObject",
|
|
61
60
|
value: function constructFromObject(data, obj) {
|
|
62
61
|
if (data) {
|
|
63
|
-
obj = obj || new
|
|
62
|
+
obj = obj || new TwilioRoute();
|
|
64
63
|
if (data.hasOwnProperty("account_sid")) {
|
|
65
64
|
obj["account_sid"] = _ApiClient["default"].convertToType(data["account_sid"], "String");
|
|
66
65
|
}
|
|
@@ -68,7 +67,7 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
68
67
|
obj["auth_token"] = _ApiClient["default"].convertToType(data["auth_token"], "String");
|
|
69
68
|
}
|
|
70
69
|
if (data.hasOwnProperty("filter")) {
|
|
71
|
-
obj["filter"] =
|
|
70
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
72
71
|
}
|
|
73
72
|
if (data.hasOwnProperty("fleets")) {
|
|
74
73
|
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
@@ -95,9 +94,9 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
|
-
* Validates the JSON data with respect to <code>
|
|
97
|
+
* Validates the JSON data with respect to <code>TwilioRoute</code>.
|
|
99
98
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
100
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>TwilioRoute</code>.
|
|
101
100
|
*/
|
|
102
101
|
}, {
|
|
103
102
|
key: "validateJSON",
|
|
@@ -113,7 +112,7 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
113
112
|
// validate the optional field `filter`
|
|
114
113
|
if (data["filter"]) {
|
|
115
114
|
// data not null
|
|
116
|
-
|
|
115
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
117
116
|
}
|
|
118
117
|
// ensure the json data is an array
|
|
119
118
|
if (!Array.isArray(data["fleets"])) {
|
|
@@ -136,55 +135,47 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
136
135
|
}]);
|
|
137
136
|
}();
|
|
138
137
|
/**
|
|
139
|
-
* Twilio Account SID
|
|
140
138
|
* @member {String} account_sid
|
|
141
139
|
*/
|
|
142
|
-
|
|
140
|
+
TwilioRoute.prototype["account_sid"] = undefined;
|
|
143
141
|
|
|
144
142
|
/**
|
|
145
|
-
* Twilio Auth Token. This value will be omitted from the response and replaced with a placeholder.
|
|
146
143
|
* @member {String} auth_token
|
|
147
144
|
*/
|
|
148
|
-
|
|
145
|
+
TwilioRoute.prototype["auth_token"] = undefined;
|
|
149
146
|
|
|
150
147
|
/**
|
|
151
|
-
* @member {module:model/
|
|
148
|
+
* @member {module:model/Filter} filter
|
|
152
149
|
*/
|
|
153
|
-
|
|
150
|
+
TwilioRoute.prototype["filter"] = undefined;
|
|
154
151
|
|
|
155
152
|
/**
|
|
156
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
157
153
|
* @member {Array.<String>} fleets
|
|
158
154
|
*/
|
|
159
|
-
|
|
155
|
+
TwilioRoute.prototype["fleets"] = undefined;
|
|
160
156
|
|
|
161
157
|
/**
|
|
162
|
-
* Phone number to send SMS from, leave blank to use notefile, must use E.164 format
|
|
163
158
|
* @member {String} from
|
|
164
159
|
*/
|
|
165
|
-
|
|
160
|
+
TwilioRoute.prototype["from"] = undefined;
|
|
166
161
|
|
|
167
162
|
/**
|
|
168
|
-
* Message to send, leave blank to use notefile.
|
|
169
163
|
* @member {String} message
|
|
170
164
|
*/
|
|
171
|
-
|
|
165
|
+
TwilioRoute.prototype["message"] = undefined;
|
|
172
166
|
|
|
173
167
|
/**
|
|
174
168
|
* @member {Number} throttle_ms
|
|
175
169
|
*/
|
|
176
|
-
|
|
170
|
+
TwilioRoute.prototype["throttle_ms"] = undefined;
|
|
177
171
|
|
|
178
172
|
/**
|
|
179
|
-
* Timeout in seconds for each request
|
|
180
173
|
* @member {Number} timeout
|
|
181
|
-
* @default 15
|
|
182
174
|
*/
|
|
183
|
-
|
|
175
|
+
TwilioRoute.prototype["timeout"] = undefined;
|
|
184
176
|
|
|
185
177
|
/**
|
|
186
|
-
* Phone number to send SMS to, leave blank to use notefile, must use E.164 format
|
|
187
178
|
* @member {String} to
|
|
188
179
|
*/
|
|
189
|
-
|
|
190
|
-
var _default = exports["default"] =
|
|
180
|
+
TwilioRoute.prototype["to"] = undefined;
|
|
181
|
+
var _default = exports["default"] = TwilioRoute;
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _FleetConnectivityAssurance = _interopRequireDefault(require("./FleetConnectivityAssurance"));
|
|
8
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
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); }
|
|
10
11
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -26,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
27
|
/**
|
|
27
28
|
* The UpdateFleetRequest model module.
|
|
28
29
|
* @module model/UpdateFleetRequest
|
|
29
|
-
* @version 2.2.
|
|
30
|
+
* @version 2.2.1
|
|
30
31
|
*/
|
|
31
32
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
32
33
|
/**
|
|
@@ -62,6 +63,9 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
62
63
|
if (data.hasOwnProperty("addDevices")) {
|
|
63
64
|
obj["addDevices"] = _ApiClient["default"].convertToType(data["addDevices"], ["String"]);
|
|
64
65
|
}
|
|
66
|
+
if (data.hasOwnProperty("connectivity_assurance")) {
|
|
67
|
+
obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
|
|
68
|
+
}
|
|
65
69
|
if (data.hasOwnProperty("label")) {
|
|
66
70
|
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
67
71
|
}
|
|
@@ -92,6 +96,11 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
92
96
|
if (!Array.isArray(data["addDevices"])) {
|
|
93
97
|
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data["addDevices"]);
|
|
94
98
|
}
|
|
99
|
+
// validate the optional field `connectivity_assurance`
|
|
100
|
+
if (data["connectivity_assurance"]) {
|
|
101
|
+
// data not null
|
|
102
|
+
_FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
|
|
103
|
+
}
|
|
95
104
|
// ensure the json data is a string
|
|
96
105
|
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
97
106
|
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
@@ -114,6 +123,11 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
114
123
|
*/
|
|
115
124
|
UpdateFleetRequest.prototype["addDevices"] = undefined;
|
|
116
125
|
|
|
126
|
+
/**
|
|
127
|
+
* @member {module:model/FleetConnectivityAssurance} connectivity_assurance
|
|
128
|
+
*/
|
|
129
|
+
UpdateFleetRequest.prototype["connectivity_assurance"] = undefined;
|
|
130
|
+
|
|
117
131
|
/**
|
|
118
132
|
* The label for the Fleet.
|
|
119
133
|
* @member {String} label
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UploadMetadata model module.
|
|
29
29
|
* @module model/UploadMetadata
|
|
30
|
-
* @version 2.2.
|
|
30
|
+
* @version 2.2.1
|
|
31
31
|
*/
|
|
32
32
|
var UploadMetadata = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
package/dist/model/UsageData.js
CHANGED
|
@@ -29,19 +29,20 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The UsageEventsData model module.
|
|
31
31
|
* @module model/UsageEventsData
|
|
32
|
-
* @version 2.2.
|
|
32
|
+
* @version 2.2.1
|
|
33
33
|
*/
|
|
34
34
|
var UsageEventsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>UsageEventsData</code>.
|
|
37
37
|
* @alias module:model/UsageEventsData
|
|
38
38
|
* @param period {Date}
|
|
39
|
-
* @param platformEvents {Number}
|
|
40
|
-
* @param totalEvents {Number}
|
|
39
|
+
* @param platformEvents {Number} Total platform events. Platform events are _log, _session, _health, and _geolocate events some of which are send from the device, some generated by notehub. These events are not billed.
|
|
40
|
+
* @param totalEvents {Number} Total events the device sent to notehub, including associated notehub generated events
|
|
41
|
+
* @param watchdogEvents {Number} Watchdog events are events generated by notehub when a watchdog timer is configured for a device to indicate is has not been online for a period of time. These events are billed but should not be used to indicate a device is active, or connected, at this time.
|
|
41
42
|
*/
|
|
42
|
-
function UsageEventsData(period, platformEvents, totalEvents) {
|
|
43
|
+
function UsageEventsData(period, platformEvents, totalEvents, watchdogEvents) {
|
|
43
44
|
_classCallCheck(this, UsageEventsData);
|
|
44
|
-
UsageEventsData.initialize(this, period, platformEvents, totalEvents);
|
|
45
|
+
UsageEventsData.initialize(this, period, platformEvents, totalEvents, watchdogEvents);
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
/**
|
|
@@ -51,10 +52,11 @@ var UsageEventsData = /*#__PURE__*/function () {
|
|
|
51
52
|
*/
|
|
52
53
|
return _createClass(UsageEventsData, null, [{
|
|
53
54
|
key: "initialize",
|
|
54
|
-
value: function initialize(obj, period, platformEvents, totalEvents) {
|
|
55
|
+
value: function initialize(obj, period, platformEvents, totalEvents, watchdogEvents) {
|
|
55
56
|
obj["period"] = period;
|
|
56
57
|
obj["platform_events"] = platformEvents;
|
|
57
58
|
obj["total_events"] = totalEvents;
|
|
59
|
+
obj["watchdog_events"] = watchdogEvents;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
/**
|
|
@@ -84,6 +86,9 @@ var UsageEventsData = /*#__PURE__*/function () {
|
|
|
84
86
|
if (data.hasOwnProperty("total_events")) {
|
|
85
87
|
obj["total_events"] = _ApiClient["default"].convertToType(data["total_events"], "Number");
|
|
86
88
|
}
|
|
89
|
+
if (data.hasOwnProperty("watchdog_events")) {
|
|
90
|
+
obj["watchdog_events"] = _ApiClient["default"].convertToType(data["watchdog_events"], "Number");
|
|
91
|
+
}
|
|
87
92
|
} else if (data === null) {
|
|
88
93
|
return null;
|
|
89
94
|
}
|
|
@@ -125,7 +130,7 @@ var UsageEventsData = /*#__PURE__*/function () {
|
|
|
125
130
|
}
|
|
126
131
|
}]);
|
|
127
132
|
}();
|
|
128
|
-
UsageEventsData.RequiredProperties = ["period", "platform_events", "total_events"];
|
|
133
|
+
UsageEventsData.RequiredProperties = ["period", "platform_events", "total_events", "watchdog_events"];
|
|
129
134
|
|
|
130
135
|
/**
|
|
131
136
|
* @member {String} device
|
|
@@ -143,12 +148,20 @@ UsageEventsData.prototype["fleet"] = undefined;
|
|
|
143
148
|
UsageEventsData.prototype["period"] = undefined;
|
|
144
149
|
|
|
145
150
|
/**
|
|
151
|
+
* Total platform events. Platform events are _log, _session, _health, and _geolocate events some of which are send from the device, some generated by notehub. These events are not billed.
|
|
146
152
|
* @member {Number} platform_events
|
|
147
153
|
*/
|
|
148
154
|
UsageEventsData.prototype["platform_events"] = undefined;
|
|
149
155
|
|
|
150
156
|
/**
|
|
157
|
+
* Total events the device sent to notehub, including associated notehub generated events
|
|
151
158
|
* @member {Number} total_events
|
|
152
159
|
*/
|
|
153
160
|
UsageEventsData.prototype["total_events"] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Watchdog events are events generated by notehub when a watchdog timer is configured for a device to indicate is has not been online for a period of time. These events are billed but should not be used to indicate a device is active, or connected, at this time.
|
|
164
|
+
* @member {Number} watchdog_events
|
|
165
|
+
*/
|
|
166
|
+
UsageEventsData.prototype["watchdog_events"] = undefined;
|
|
154
167
|
var _default = exports["default"] = UsageEventsData;
|