@blues-inc/notehub-js 1.0.36-beta.9 → 1.0.37
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 +227 -241
- 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 +362 -362
- 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 +370 -370
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +0 -7
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AnalyticsEventsData.js +17 -17
- package/dist/model/AnalyticsEventsResponse.js +11 -12
- package/dist/model/AnalyticsRouteLogsData.js +22 -22
- package/dist/model/AnalyticsRouteLogsResponse.js +11 -12
- package/dist/model/AnalyticsSessionsData.js +22 -22
- package/dist/model/AnalyticsSessionsResponse.js +11 -12
- 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 +101 -102
- 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 +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/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +30 -30
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
- 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/GetWebhooks200Response.js +9 -10
- 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 +18 -19
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +46 -45
- package/dist/model/PersonalAccessToken.js +40 -31
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +24 -15
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- 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/RouteLog.js +38 -38
- package/dist/model/SchemaProperty.js +38 -40
- package/dist/model/SimUsage.js +19 -19
- 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 +54 -54
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +25 -25
- 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/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/api/ApiAccessApi.js +0 -238
|
@@ -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.37
|
|
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.37
|
|
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.37
|
|
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.37
|
|
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;
|
package/dist/model/Location.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
|
|
@@ -29,18 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Location model module.
|
|
31
31
|
* @module model/Location
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.37
|
|
33
33
|
*/
|
|
34
34
|
var Location = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>Location</code>.
|
|
37
37
|
* @alias module:model/Location
|
|
38
|
-
* @param when {String}
|
|
39
|
-
* @param name {String}
|
|
40
|
-
* @param country {String}
|
|
41
|
-
* @param timezone {String}
|
|
42
|
-
* @param latitude {Number}
|
|
43
|
-
* @param longitude {Number}
|
|
38
|
+
* @param when {String}
|
|
39
|
+
* @param name {String}
|
|
40
|
+
* @param country {String}
|
|
41
|
+
* @param timezone {String}
|
|
42
|
+
* @param latitude {Number}
|
|
43
|
+
* @param longitude {Number}
|
|
44
44
|
*/
|
|
45
45
|
function Location(when, name, country, timezone, latitude, longitude) {
|
|
46
46
|
_classCallCheck(this, Location);
|
|
@@ -55,12 +55,12 @@ var Location = /*#__PURE__*/function () {
|
|
|
55
55
|
return _createClass(Location, null, [{
|
|
56
56
|
key: "initialize",
|
|
57
57
|
value: function initialize(obj, when, name, country, timezone, latitude, longitude) {
|
|
58
|
-
obj[
|
|
59
|
-
obj[
|
|
60
|
-
obj[
|
|
61
|
-
obj[
|
|
62
|
-
obj[
|
|
63
|
-
obj[
|
|
58
|
+
obj["when"] = when;
|
|
59
|
+
obj["name"] = name;
|
|
60
|
+
obj["country"] = country;
|
|
61
|
+
obj["timezone"] = timezone;
|
|
62
|
+
obj["latitude"] = latitude;
|
|
63
|
+
obj["longitude"] = longitude;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -75,23 +75,23 @@ var Location = /*#__PURE__*/function () {
|
|
|
75
75
|
value: function constructFromObject(data, obj) {
|
|
76
76
|
if (data) {
|
|
77
77
|
obj = obj || new Location();
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("when")) {
|
|
79
|
+
obj["when"] = _ApiClient["default"].convertToType(data["when"], "String");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("name")) {
|
|
82
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty("country")) {
|
|
85
|
+
obj["country"] = _ApiClient["default"].convertToType(data["country"], "String");
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty("timezone")) {
|
|
88
|
+
obj["timezone"] = _ApiClient["default"].convertToType(data["timezone"], "String");
|
|
89
89
|
}
|
|
90
|
-
if (data.hasOwnProperty(
|
|
91
|
-
obj[
|
|
90
|
+
if (data.hasOwnProperty("latitude")) {
|
|
91
|
+
obj["latitude"] = _ApiClient["default"].convertToType(data["latitude"], "Number");
|
|
92
92
|
}
|
|
93
|
-
if (data.hasOwnProperty(
|
|
94
|
-
obj[
|
|
93
|
+
if (data.hasOwnProperty("longitude")) {
|
|
94
|
+
obj["longitude"] = _ApiClient["default"].convertToType(data["longitude"], "Number");
|
|
95
95
|
}
|
|
96
96
|
} else if (data === null) {
|
|
97
97
|
return null;
|
|
@@ -123,20 +123,20 @@ var Location = /*#__PURE__*/function () {
|
|
|
123
123
|
} finally {
|
|
124
124
|
_iterator.f();
|
|
125
125
|
}
|
|
126
|
-
if (data[
|
|
127
|
-
throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data[
|
|
126
|
+
if (data["when"] && !(typeof data["when"] === "string" || data["when"] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data["when"]);
|
|
128
128
|
}
|
|
129
129
|
// ensure the json data is a string
|
|
130
|
-
if (data[
|
|
131
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
130
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
132
132
|
}
|
|
133
133
|
// ensure the json data is a string
|
|
134
|
-
if (data[
|
|
135
|
-
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data[
|
|
134
|
+
if (data["country"] && !(typeof data["country"] === "string" || data["country"] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data["country"]);
|
|
136
136
|
}
|
|
137
137
|
// ensure the json data is a string
|
|
138
|
-
if (data[
|
|
139
|
-
throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data[
|
|
138
|
+
if (data["timezone"] && !(typeof data["timezone"] === "string" || data["timezone"] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data["timezone"]);
|
|
140
140
|
}
|
|
141
141
|
return true;
|
|
142
142
|
}
|
|
@@ -147,30 +147,30 @@ Location.RequiredProperties = ["when", "name", "country", "timezone", "latitude"
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {String} when
|
|
149
149
|
*/
|
|
150
|
-
Location.prototype[
|
|
150
|
+
Location.prototype["when"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {String} name
|
|
154
154
|
*/
|
|
155
|
-
Location.prototype[
|
|
155
|
+
Location.prototype["name"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {String} country
|
|
159
159
|
*/
|
|
160
|
-
Location.prototype[
|
|
160
|
+
Location.prototype["country"] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} timezone
|
|
164
164
|
*/
|
|
165
|
-
Location.prototype[
|
|
165
|
+
Location.prototype["timezone"] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* @member {Number} latitude
|
|
169
169
|
*/
|
|
170
|
-
Location.prototype[
|
|
170
|
+
Location.prototype["latitude"] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* @member {Number} longitude
|
|
174
174
|
*/
|
|
175
|
-
Location.prototype[
|
|
175
|
+
Location.prototype["longitude"] = undefined;
|
|
176
176
|
var _default = exports["default"] = Location;
|
|
@@ -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 Login200Response model module.
|
|
28
28
|
* @module model/Login200Response
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.37
|
|
30
30
|
*/
|
|
31
31
|
var Login200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,8 +59,8 @@ var Login200Response = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new Login200Response();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("session_token")) {
|
|
63
|
+
obj["session_token"] = _ApiClient["default"].convertToType(data["session_token"], "String");
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -77,8 +77,8 @@ var Login200Response = /*#__PURE__*/function () {
|
|
|
77
77
|
key: "validateJSON",
|
|
78
78
|
value: function validateJSON(data) {
|
|
79
79
|
// ensure the json data is a string
|
|
80
|
-
if (data[
|
|
81
|
-
throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data[
|
|
80
|
+
if (data["session_token"] && !(typeof data["session_token"] === "string" || data["session_token"] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data["session_token"]);
|
|
82
82
|
}
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
@@ -87,5 +87,5 @@ var Login200Response = /*#__PURE__*/function () {
|
|
|
87
87
|
/**
|
|
88
88
|
* @member {String} session_token
|
|
89
89
|
*/
|
|
90
|
-
Login200Response.prototype[
|
|
90
|
+
Login200Response.prototype["session_token"] = undefined;
|
|
91
91
|
var _default = exports["default"] = Login200Response;
|