@blues-inc/notehub-js 1.0.29-beta.9 → 1.0.30
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 +210 -216
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +351 -351
- package/dist/api/EventApi.js +118 -118
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +375 -335
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +74 -74
- package/dist/index.js +14 -0
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- 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/DataSet.js +29 -30
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +94 -94
- package/dist/model/DeviceDfuHistory.js +19 -20
- 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/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +182 -182
- 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/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +243 -243
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +23 -34
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +12 -23
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +16 -17
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
- package/dist/model/GetProjectFleets200Response.js +11 -12
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjectProducts200Response.js +9 -10
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- 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/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +145 -0
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/SchemaProperty.js +228 -0
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +52 -52
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +22 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/package.json +3 -3
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HandleNotefileChanges200Response model module.
|
|
28
28
|
* @module model/HandleNotefileChanges200Response
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.30
|
|
30
30
|
*/
|
|
31
31
|
var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,14 +59,14 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new HandleNotefileChanges200Response();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("total")) {
|
|
63
|
+
obj["total"] = _ApiClient["default"].convertToType(data["total"], "Number");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("changes")) {
|
|
66
|
+
obj["changes"] = _ApiClient["default"].convertToType(data["changes"], "Number");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("info")) {
|
|
69
|
+
obj["info"] = _ApiClient["default"].convertToType(data["info"], Object);
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -90,17 +90,17 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
90
90
|
* The total number of files.
|
|
91
91
|
* @member {Number} total
|
|
92
92
|
*/
|
|
93
|
-
HandleNotefileChanges200Response.prototype[
|
|
93
|
+
HandleNotefileChanges200Response.prototype["total"] = undefined;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* The number of pending changes in the Notefile.
|
|
97
97
|
* @member {Number} changes
|
|
98
98
|
*/
|
|
99
|
-
HandleNotefileChanges200Response.prototype[
|
|
99
|
+
HandleNotefileChanges200Response.prototype["changes"] = undefined;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
103
103
|
* @member {Object} info
|
|
104
104
|
*/
|
|
105
|
-
HandleNotefileChanges200Response.prototype[
|
|
105
|
+
HandleNotefileChanges200Response.prototype["info"] = undefined;
|
|
106
106
|
var _default = exports["default"] = HandleNotefileChanges200Response;
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HandleNotefileChangesPending200Response model module.
|
|
28
28
|
* @module model/HandleNotefileChangesPending200Response
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.30
|
|
30
30
|
*/
|
|
31
31
|
var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,17 +59,17 @@ var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new HandleNotefileChangesPending200Response();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("total")) {
|
|
63
|
+
obj["total"] = _ApiClient["default"].convertToType(data["total"], "Number");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("changes")) {
|
|
66
|
+
obj["changes"] = _ApiClient["default"].convertToType(data["changes"], "Number");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("pending")) {
|
|
69
|
+
obj["pending"] = _ApiClient["default"].convertToType(data["pending"], "Boolean");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("info")) {
|
|
72
|
+
obj["info"] = _ApiClient["default"].convertToType(data["info"], Object);
|
|
73
73
|
}
|
|
74
74
|
} else if (data === null) {
|
|
75
75
|
return null;
|
|
@@ -93,23 +93,23 @@ var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
|
93
93
|
* The total number of files.
|
|
94
94
|
* @member {Number} total
|
|
95
95
|
*/
|
|
96
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
96
|
+
HandleNotefileChangesPending200Response.prototype["total"] = undefined;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* The number of pending changes in the Notefile.
|
|
100
100
|
* @member {Number} changes
|
|
101
101
|
*/
|
|
102
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
102
|
+
HandleNotefileChangesPending200Response.prototype["changes"] = undefined;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Whether there are pending changes.
|
|
106
106
|
* @member {Boolean} pending
|
|
107
107
|
*/
|
|
108
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
108
|
+
HandleNotefileChangesPending200Response.prototype["pending"] = undefined;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
112
112
|
* @member {Object} info
|
|
113
113
|
*/
|
|
114
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
114
|
+
HandleNotefileChangesPending200Response.prototype["info"] = undefined;
|
|
115
115
|
var _default = exports["default"] = HandleNotefileChangesPending200Response;
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HandleNotefileDeleteRequest model module.
|
|
28
28
|
* @module model/HandleNotefileDeleteRequest
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.30
|
|
30
30
|
*/
|
|
31
31
|
var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,8 +59,8 @@ var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new HandleNotefileDeleteRequest();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("files")) {
|
|
63
|
+
obj["files"] = _ApiClient["default"].convertToType(data["files"], ["String"]);
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -77,8 +77,8 @@ var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
|
77
77
|
key: "validateJSON",
|
|
78
78
|
value: function validateJSON(data) {
|
|
79
79
|
// ensure the json data is an array
|
|
80
|
-
if (!Array.isArray(data[
|
|
81
|
-
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data[
|
|
80
|
+
if (!Array.isArray(data["files"])) {
|
|
81
|
+
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data["files"]);
|
|
82
82
|
}
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
@@ -88,5 +88,5 @@ var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
|
88
88
|
* One or more files to obtain change information from.
|
|
89
89
|
* @member {Array.<String>} files
|
|
90
90
|
*/
|
|
91
|
-
HandleNotefileDeleteRequest.prototype[
|
|
91
|
+
HandleNotefileDeleteRequest.prototype["files"] = undefined;
|
|
92
92
|
var _default = exports["default"] = HandleNotefileDeleteRequest;
|
package/dist/model/Http.js
CHANGED
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
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); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The Http model module.
|
|
30
30
|
* @module model/Http
|
|
31
|
-
* @version 1.0.
|
|
31
|
+
* @version 1.0.30
|
|
32
32
|
*/
|
|
33
33
|
var Http = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -62,31 +62,31 @@ var Http = /*#__PURE__*/function () {
|
|
|
62
62
|
value: function constructFromObject(data, obj) {
|
|
63
63
|
if (data) {
|
|
64
64
|
obj = obj || new Http();
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("fleets")) {
|
|
66
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("filter")) {
|
|
69
|
+
obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("transform")) {
|
|
72
|
+
obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
75
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("url")) {
|
|
78
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
82
|
-
|
|
80
|
+
if (data.hasOwnProperty("http_headers")) {
|
|
81
|
+
obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
|
|
82
|
+
String: "String"
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("disable_http_headers")) {
|
|
86
|
+
obj["disable_http_headers"] = _ApiClient["default"].convertToType(data["disable_http_headers"], "Boolean");
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty("timeout")) {
|
|
89
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
90
90
|
}
|
|
91
91
|
} else if (data === null) {
|
|
92
92
|
return null;
|
|
@@ -103,22 +103,22 @@ var Http = /*#__PURE__*/function () {
|
|
|
103
103
|
key: "validateJSON",
|
|
104
104
|
value: function validateJSON(data) {
|
|
105
105
|
// ensure the json data is an array
|
|
106
|
-
if (!Array.isArray(data[
|
|
107
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
106
|
+
if (!Array.isArray(data["fleets"])) {
|
|
107
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
108
108
|
}
|
|
109
109
|
// validate the optional field `filter`
|
|
110
|
-
if (data[
|
|
110
|
+
if (data["filter"]) {
|
|
111
111
|
// data not null
|
|
112
|
-
_HttpFilter["default"].validateJSON(data[
|
|
112
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
113
113
|
}
|
|
114
114
|
// validate the optional field `transform`
|
|
115
|
-
if (data[
|
|
115
|
+
if (data["transform"]) {
|
|
116
116
|
// data not null
|
|
117
|
-
_HttpTransform["default"].validateJSON(data[
|
|
117
|
+
_HttpTransform["default"].validateJSON(data["transform"]);
|
|
118
118
|
}
|
|
119
119
|
// ensure the json data is a string
|
|
120
|
-
if (data[
|
|
121
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
120
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
122
122
|
}
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
@@ -128,45 +128,45 @@ var Http = /*#__PURE__*/function () {
|
|
|
128
128
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
129
129
|
* @member {Array.<String>} fleets
|
|
130
130
|
*/
|
|
131
|
-
Http.prototype[
|
|
131
|
+
Http.prototype["fleets"] = undefined;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* @member {module:model/HttpFilter} filter
|
|
135
135
|
*/
|
|
136
|
-
Http.prototype[
|
|
136
|
+
Http.prototype["filter"] = undefined;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
139
|
* @member {module:model/HttpTransform} transform
|
|
140
140
|
*/
|
|
141
|
-
Http.prototype[
|
|
141
|
+
Http.prototype["transform"] = undefined;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Minimum time between requests in Miliseconds
|
|
145
145
|
* @member {Number} throttle_ms
|
|
146
146
|
*/
|
|
147
|
-
Http.prototype[
|
|
147
|
+
Http.prototype["throttle_ms"] = undefined;
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
150
|
* Route URL
|
|
151
151
|
* @member {String} url
|
|
152
152
|
*/
|
|
153
|
-
Http.prototype[
|
|
153
|
+
Http.prototype["url"] = undefined;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* @member {Object.<String, String>} http_headers
|
|
157
157
|
*/
|
|
158
|
-
Http.prototype[
|
|
158
|
+
Http.prototype["http_headers"] = undefined;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
161
|
* @member {Boolean} disable_http_headers
|
|
162
162
|
* @default false
|
|
163
163
|
*/
|
|
164
|
-
Http.prototype[
|
|
164
|
+
Http.prototype["disable_http_headers"] = false;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
167
|
* Timeout in seconds for each request
|
|
168
168
|
* @member {Number} timeout
|
|
169
169
|
* @default 15
|
|
170
170
|
*/
|
|
171
|
-
Http.prototype[
|
|
171
|
+
Http.prototype["timeout"] = 15;
|
|
172
172
|
var _default = exports["default"] = Http;
|
package/dist/model/HttpFilter.js
CHANGED
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HttpFilter model module.
|
|
28
28
|
* @module model/HttpFilter
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.30
|
|
30
30
|
*/
|
|
31
31
|
var HttpFilter = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -60,14 +60,14 @@ var HttpFilter = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new HttpFilter();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("type")) {
|
|
64
|
+
obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("system_notefiles")) {
|
|
67
|
+
obj["system_notefiles"] = _ApiClient["default"].convertToType(data["system_notefiles"], "Boolean");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("files")) {
|
|
70
|
+
obj["files"] = _ApiClient["default"].convertToType(data["files"], ["String"]);
|
|
71
71
|
}
|
|
72
72
|
} else if (data === null) {
|
|
73
73
|
return null;
|
|
@@ -84,12 +84,12 @@ var HttpFilter = /*#__PURE__*/function () {
|
|
|
84
84
|
key: "validateJSON",
|
|
85
85
|
value: function validateJSON(data) {
|
|
86
86
|
// ensure the json data is a string
|
|
87
|
-
if (data[
|
|
88
|
-
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data[
|
|
87
|
+
if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
|
|
89
89
|
}
|
|
90
90
|
// ensure the json data is an array
|
|
91
|
-
if (!Array.isArray(data[
|
|
92
|
-
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data[
|
|
91
|
+
if (!Array.isArray(data["files"])) {
|
|
92
|
+
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data["files"]);
|
|
93
93
|
}
|
|
94
94
|
return true;
|
|
95
95
|
}
|
|
@@ -99,39 +99,39 @@ var HttpFilter = /*#__PURE__*/function () {
|
|
|
99
99
|
* What notefiles this route applies to.
|
|
100
100
|
* @member {module:model/HttpFilter.TypeEnum} type
|
|
101
101
|
*/
|
|
102
|
-
HttpFilter.prototype[
|
|
102
|
+
HttpFilter.prototype["type"] = undefined;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Whether system notefiles should be affected by this route
|
|
106
106
|
* @member {Boolean} system_notefiles
|
|
107
107
|
*/
|
|
108
|
-
HttpFilter.prototype[
|
|
108
|
+
HttpFilter.prototype["system_notefiles"] = undefined;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* @member {Array.<String>} files
|
|
112
112
|
*/
|
|
113
|
-
HttpFilter.prototype[
|
|
113
|
+
HttpFilter.prototype["files"] = undefined;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* Allowed values for the <code>type</code> property.
|
|
117
117
|
* @enum {String}
|
|
118
118
|
* @readonly
|
|
119
119
|
*/
|
|
120
|
-
HttpFilter[
|
|
120
|
+
HttpFilter["TypeEnum"] = {
|
|
121
121
|
/**
|
|
122
122
|
* value: "all"
|
|
123
123
|
* @const
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
all: "all",
|
|
126
126
|
/**
|
|
127
127
|
* value: "include"
|
|
128
128
|
* @const
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
include: "include",
|
|
131
131
|
/**
|
|
132
132
|
* value: "exclude"
|
|
133
133
|
* @const
|
|
134
134
|
*/
|
|
135
|
-
|
|
135
|
+
exclude: "exclude"
|
|
136
136
|
};
|
|
137
137
|
var _default = exports["default"] = HttpFilter;
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The HttpTransform model module.
|
|
28
28
|
* @module model/HttpTransform
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.30
|
|
30
30
|
*/
|
|
31
31
|
var HttpTransform = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,11 +59,11 @@ var HttpTransform = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new HttpTransform();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("format")) {
|
|
63
|
+
obj["format"] = _ApiClient["default"].convertToType(data["format"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("jsonata")) {
|
|
66
|
+
obj["jsonata"] = _ApiClient["default"].convertToType(data["jsonata"], "String");
|
|
67
67
|
}
|
|
68
68
|
} else if (data === null) {
|
|
69
69
|
return null;
|
|
@@ -80,12 +80,12 @@ var HttpTransform = /*#__PURE__*/function () {
|
|
|
80
80
|
key: "validateJSON",
|
|
81
81
|
value: function validateJSON(data) {
|
|
82
82
|
// ensure the json data is a string
|
|
83
|
-
if (data[
|
|
84
|
-
throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data[
|
|
83
|
+
if (data["format"] && !(typeof data["format"] === "string" || data["format"] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data["format"]);
|
|
85
85
|
}
|
|
86
86
|
// ensure the json data is a string
|
|
87
|
-
if (data[
|
|
88
|
-
throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data[
|
|
87
|
+
if (data["jsonata"] && !(typeof data["jsonata"] === "string" || data["jsonata"] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data["jsonata"]);
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
@@ -95,54 +95,54 @@ var HttpTransform = /*#__PURE__*/function () {
|
|
|
95
95
|
* Data transformation to apply. Options of \"\" for none, \"bridge\" for Azure IoT, \"jsonata\" for JSONata expression, or \"flatten\", \"simple\", \"body\" or \"payload\"
|
|
96
96
|
* @member {module:model/HttpTransform.FormatEnum} format
|
|
97
97
|
*/
|
|
98
|
-
HttpTransform.prototype[
|
|
98
|
+
HttpTransform.prototype["format"] = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* JSONata transformation, if JSONata
|
|
102
102
|
* @member {String} jsonata
|
|
103
103
|
*/
|
|
104
|
-
HttpTransform.prototype[
|
|
104
|
+
HttpTransform.prototype["jsonata"] = undefined;
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
107
|
* Allowed values for the <code>format</code> property.
|
|
108
108
|
* @enum {String}
|
|
109
109
|
* @readonly
|
|
110
110
|
*/
|
|
111
|
-
HttpTransform[
|
|
111
|
+
HttpTransform["FormatEnum"] = {
|
|
112
112
|
/**
|
|
113
113
|
* value: ""
|
|
114
114
|
* @const
|
|
115
115
|
*/
|
|
116
|
-
|
|
116
|
+
empty: "",
|
|
117
117
|
/**
|
|
118
118
|
* value: "bridge"
|
|
119
119
|
* @const
|
|
120
120
|
*/
|
|
121
|
-
|
|
121
|
+
bridge: "bridge",
|
|
122
122
|
/**
|
|
123
123
|
* value: "jsonata"
|
|
124
124
|
* @const
|
|
125
125
|
*/
|
|
126
|
-
|
|
126
|
+
jsonata: "jsonata",
|
|
127
127
|
/**
|
|
128
128
|
* value: "flatten"
|
|
129
129
|
* @const
|
|
130
130
|
*/
|
|
131
|
-
|
|
131
|
+
flatten: "flatten",
|
|
132
132
|
/**
|
|
133
133
|
* value: "simple"
|
|
134
134
|
* @const
|
|
135
135
|
*/
|
|
136
|
-
|
|
136
|
+
simple: "simple",
|
|
137
137
|
/**
|
|
138
138
|
* value: "body"
|
|
139
139
|
* @const
|
|
140
140
|
*/
|
|
141
|
-
|
|
141
|
+
body: "body",
|
|
142
142
|
/**
|
|
143
143
|
* value: "payload"
|
|
144
144
|
* @const
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
payload: "payload"
|
|
147
147
|
};
|
|
148
148
|
var _default = exports["default"] = HttpTransform;
|