@blues-inc/notehub-js 2.2.0 → 2.2.1-beta.2
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 +249 -238
- package/dist/ApiClient.js +154 -154
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +973 -973
- package/dist/api/EventApi.js +178 -178
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +601 -601
- package/dist/api/RouteApi.js +86 -86
- package/dist/api/UsageApi.js +51 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +152 -131
- package/dist/model/{PutDeviceFleetsRequest.js → AddDeviceToFleetsRequest.js} +26 -26
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +237 -0
- package/dist/model/AzureRoute.js +183 -0
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +147 -0
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +26 -12
- package/dist/model/CreateMonitor.js +126 -125
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +165 -0
- package/dist/model/{DeleteDeviceFleetsRequest.js → DeleteDeviceFromFleetsRequest.js} +26 -26
- package/dist/model/{HandleNotefileDeleteRequest.js → DeleteNotefilesRequest.js} +24 -24
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +25 -24
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- 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 +69 -67
- 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/{AwsFilter.js → Filter.js} +36 -58
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +45 -31
- package/dist/model/FleetConnectivityAssurance.js +111 -0
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDataUsage200Response.js +10 -9
- package/dist/model/GetDataUsage200ResponseDataInner.js +41 -40
- package/dist/model/{HandleNoteGet200Response.js → GetDbNote200Response.js} +29 -29
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/{GetDeviceLatest200Response.js → GetDeviceLatestEvents200Response.js} +26 -25
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/{GetProjectDevicePublicKeys200Response.js → GetDevicePublicKeys200Response.js} +38 -37
- package/dist/model/{GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/{GetProjectDevices200Response.js → GetDevices200Response.js} +35 -34
- package/dist/model/{GetProjectEvents200Response.js → GetEvents200Response.js} +39 -38
- package/dist/model/{GetProjectEventsByCursor200Response.js → GetEventsByCursor200Response.js} +42 -41
- package/dist/model/{HandleNoteChanges200Response.js → GetNotefile200Response.js} +27 -27
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/{Google.js → GoogleRoute.js} +53 -58
- package/dist/model/{Http.js → HttpRoute.js} +56 -62
- package/dist/model/{HandleNotefileChanges200Response.js → ListNotefiles200Response.js} +27 -27
- package/dist/model/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js} +30 -30
- 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 +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/MqttRoute.js +243 -0
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +229 -149
- package/dist/model/{UserDbRoute.js → NotehubRouteSummary.js} +40 -45
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/{PostProvisionProjectDeviceRequest.js → ProvisionDeviceRequest.js} +36 -36
- package/dist/model/{Proxy.js → ProxyRoute.js} +54 -44
- package/dist/model/QubitroRoute.js +159 -0
- package/dist/model/{Radresponder.js → RadRoute.js} +57 -45
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/{SlackTransform.js → RouteTransformSettings.js} +44 -31
- package/dist/model/S3ArchiveRoute.js +271 -0
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/{HandleNoteSignal200Response.js → SignalDevice200Response.js} +21 -21
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +195 -0
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +187 -0
- package/dist/model/{Thingworx.js → ThingworxRoute.js} +53 -58
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +181 -0
- package/dist/model/UpdateFleetRequest.js +39 -25
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +44 -31
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +28 -28
- package/dist/model/UsageSessionsData.js +27 -27
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
- package/dist/model/Aws.js +0 -243
- package/dist/model/AwsTransform.js +0 -148
- package/dist/model/Azure.js +0 -189
- package/dist/model/Mqtt.js +0 -248
- package/dist/model/NotehubRouteSchema.js +0 -506
- package/dist/model/Slack.js +0 -218
- package/dist/model/Snowflake.js +0 -194
- package/dist/model/Twilio.js +0 -190
package/dist/model/Role.js
CHANGED
|
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -25,10 +25,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
* Enum class Role.
|
|
29
|
+
* @enum {}
|
|
30
|
+
* @readonly
|
|
31
|
+
*/
|
|
32
32
|
var Role = exports["default"] = /*#__PURE__*/function () {
|
|
33
33
|
function Role() {
|
|
34
34
|
_classCallCheck(this, Role);
|
|
@@ -62,10 +62,10 @@ var Role = exports["default"] = /*#__PURE__*/function () {
|
|
|
62
62
|
key: "constructFromObject",
|
|
63
63
|
value:
|
|
64
64
|
/**
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
* Returns a <code>Role</code> enum value from a Javascript object name.
|
|
66
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
67
|
+
* @return {module:model/Role} The enum <code>Role</code> value.
|
|
68
|
+
*/
|
|
69
69
|
function constructFromObject(object) {
|
|
70
70
|
return object;
|
|
71
71
|
}
|
package/dist/model/RouteLog.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 RouteLog model module.
|
|
28
28
|
* @module model/RouteLog
|
|
29
|
-
* @version 2.2.
|
|
29
|
+
* @version 2.2.1-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var RouteLog = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,29 +59,29 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new RouteLog();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('attn')) {
|
|
63
|
+
obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('date')) {
|
|
66
|
+
obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('duration')) {
|
|
69
|
+
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('event_uid')) {
|
|
72
|
+
obj['event_uid'] = _ApiClient["default"].convertToType(data['event_uid'], 'String');
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty('route_uid')) {
|
|
75
|
+
obj['route_uid'] = _ApiClient["default"].convertToType(data['route_uid'], 'String');
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty('status')) {
|
|
78
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty('text')) {
|
|
81
|
+
obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty('url')) {
|
|
84
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
85
85
|
}
|
|
86
86
|
} else if (data === null) {
|
|
87
87
|
return null;
|
|
@@ -98,28 +98,28 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
98
98
|
key: "validateJSON",
|
|
99
99
|
value: function validateJSON(data) {
|
|
100
100
|
// ensure the json data is a string
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data['date'] && !(typeof data['date'] === 'string' || data['date'] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data['date']);
|
|
103
103
|
}
|
|
104
104
|
// ensure the json data is a string
|
|
105
|
-
if (data[
|
|
106
|
-
throw new Error("Expected the field `event_uid` to be a primitive type in the JSON string but got " + data[
|
|
105
|
+
if (data['event_uid'] && !(typeof data['event_uid'] === 'string' || data['event_uid'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `event_uid` to be a primitive type in the JSON string but got " + data['event_uid']);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is a string
|
|
109
|
-
if (data[
|
|
110
|
-
throw new Error("Expected the field `route_uid` to be a primitive type in the JSON string but got " + data[
|
|
109
|
+
if (data['route_uid'] && !(typeof data['route_uid'] === 'string' || data['route_uid'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `route_uid` to be a primitive type in the JSON string but got " + data['route_uid']);
|
|
111
111
|
}
|
|
112
112
|
// ensure the json data is a string
|
|
113
|
-
if (data[
|
|
114
|
-
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data[
|
|
113
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
115
115
|
}
|
|
116
116
|
// ensure the json data is a string
|
|
117
|
-
if (data[
|
|
118
|
-
throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data[
|
|
117
|
+
if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
|
|
119
119
|
}
|
|
120
120
|
// ensure the json data is a string
|
|
121
|
-
if (data[
|
|
122
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
121
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
123
123
|
}
|
|
124
124
|
return true;
|
|
125
125
|
}
|
|
@@ -129,47 +129,47 @@ var RouteLog = /*#__PURE__*/function () {
|
|
|
129
129
|
* If true, an error was returned when routing
|
|
130
130
|
* @member {Boolean} attn
|
|
131
131
|
*/
|
|
132
|
-
RouteLog.prototype[
|
|
132
|
+
RouteLog.prototype['attn'] = undefined;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* The date of the logs.
|
|
136
136
|
* @member {String} date
|
|
137
137
|
*/
|
|
138
|
-
RouteLog.prototype[
|
|
138
|
+
RouteLog.prototype['date'] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* The duration of the route in milliseconds
|
|
142
142
|
* @member {Number} duration
|
|
143
143
|
*/
|
|
144
|
-
RouteLog.prototype[
|
|
144
|
+
RouteLog.prototype['duration'] = undefined;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* The event UID.
|
|
148
148
|
* @member {String} event_uid
|
|
149
149
|
*/
|
|
150
|
-
RouteLog.prototype[
|
|
150
|
+
RouteLog.prototype['event_uid'] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* The route UID.
|
|
154
154
|
* @member {String} route_uid
|
|
155
155
|
*/
|
|
156
|
-
RouteLog.prototype[
|
|
156
|
+
RouteLog.prototype['route_uid'] = undefined;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
159
|
* The status of the event.
|
|
160
160
|
* @member {String} status
|
|
161
161
|
*/
|
|
162
|
-
RouteLog.prototype[
|
|
162
|
+
RouteLog.prototype['status'] = undefined;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* The response body of the route.
|
|
166
166
|
* @member {String} text
|
|
167
167
|
*/
|
|
168
|
-
RouteLog.prototype[
|
|
168
|
+
RouteLog.prototype['text'] = undefined;
|
|
169
169
|
|
|
170
170
|
/**
|
|
171
171
|
* The URL of the route.
|
|
172
172
|
* @member {String} url
|
|
173
173
|
*/
|
|
174
|
-
RouteLog.prototype[
|
|
174
|
+
RouteLog.prototype['url'] = undefined;
|
|
175
175
|
var _default = exports["default"] = RouteLog;
|
|
@@ -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
|
|
@@ -24,18 +24,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
|
-
* The
|
|
28
|
-
* @module model/
|
|
29
|
-
* @version 2.2.
|
|
27
|
+
* The RouteTransformSettings model module.
|
|
28
|
+
* @module model/RouteTransformSettings
|
|
29
|
+
* @version 2.2.1-beta.2
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var RouteTransformSettings = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
*
|
|
33
|
+
* Constructs a new <code>RouteTransformSettings</code>.
|
|
34
|
+
* Settings for transforming route payloads before delivery. Supports format selection and JSONata-based transformations.
|
|
35
|
+
* @alias module:model/RouteTransformSettings
|
|
35
36
|
*/
|
|
36
|
-
function
|
|
37
|
-
_classCallCheck(this,
|
|
38
|
-
|
|
37
|
+
function RouteTransformSettings() {
|
|
38
|
+
_classCallCheck(this, RouteTransformSettings);
|
|
39
|
+
RouteTransformSettings.initialize(this);
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
/**
|
|
@@ -43,27 +44,30 @@ var SlackTransform = /*#__PURE__*/function () {
|
|
|
43
44
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
45
|
* Only for internal use.
|
|
45
46
|
*/
|
|
46
|
-
return _createClass(
|
|
47
|
+
return _createClass(RouteTransformSettings, null, [{
|
|
47
48
|
key: "initialize",
|
|
48
49
|
value: function initialize(obj) {}
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
|
-
* Constructs a <code>
|
|
52
|
+
* Constructs a <code>RouteTransformSettings</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
53
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
54
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
-
* @param {module:model/
|
|
55
|
-
* @return {module:model/
|
|
55
|
+
* @param {module:model/RouteTransformSettings} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/RouteTransformSettings} The populated <code>RouteTransformSettings</code> instance.
|
|
56
57
|
*/
|
|
57
58
|
}, {
|
|
58
59
|
key: "constructFromObject",
|
|
59
60
|
value: function constructFromObject(data, obj) {
|
|
60
61
|
if (data) {
|
|
61
|
-
obj = obj || new
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
obj = obj || new RouteTransformSettings();
|
|
63
|
+
if (data.hasOwnProperty('format')) {
|
|
64
|
+
obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String');
|
|
64
65
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty('jsonata')) {
|
|
67
|
+
obj['jsonata'] = _ApiClient["default"].convertToType(data['jsonata'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('jsonata_in')) {
|
|
70
|
+
obj['jsonata_in'] = _ApiClient["default"].convertToType(data['jsonata_in'], 'String');
|
|
67
71
|
}
|
|
68
72
|
} else if (data === null) {
|
|
69
73
|
return null;
|
|
@@ -72,35 +76,44 @@ var SlackTransform = /*#__PURE__*/function () {
|
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
/**
|
|
75
|
-
* Validates the JSON data with respect to <code>
|
|
79
|
+
* Validates the JSON data with respect to <code>RouteTransformSettings</code>.
|
|
76
80
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
77
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
81
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>RouteTransformSettings</code>.
|
|
78
82
|
*/
|
|
79
83
|
}, {
|
|
80
84
|
key: "validateJSON",
|
|
81
85
|
value: function validateJSON(data) {
|
|
82
86
|
// 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[
|
|
87
|
+
if (data['format'] && !(typeof data['format'] === 'string' || data['format'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data['format']);
|
|
89
|
+
}
|
|
90
|
+
// ensure the json data is a string
|
|
91
|
+
if (data['jsonata'] && !(typeof data['jsonata'] === 'string' || data['jsonata'] instanceof String)) {
|
|
92
|
+
throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data['jsonata']);
|
|
85
93
|
}
|
|
86
94
|
// ensure the json data is a string
|
|
87
|
-
if (data[
|
|
88
|
-
throw new Error("Expected the field `
|
|
95
|
+
if (data['jsonata_in'] && !(typeof data['jsonata_in'] === 'string' || data['jsonata_in'] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `jsonata_in` to be a primitive type in the JSON string but got " + data['jsonata_in']);
|
|
89
97
|
}
|
|
90
98
|
return true;
|
|
91
99
|
}
|
|
92
100
|
}]);
|
|
93
101
|
}();
|
|
94
102
|
/**
|
|
95
|
-
*
|
|
103
|
+
* Output format for transformed data (e.g., \"json\", \"xml\", \"text\").
|
|
96
104
|
* @member {String} format
|
|
97
|
-
* @default 'jsonata'
|
|
98
105
|
*/
|
|
99
|
-
|
|
106
|
+
RouteTransformSettings.prototype['format'] = undefined;
|
|
100
107
|
|
|
101
108
|
/**
|
|
102
|
-
* JSONata
|
|
109
|
+
* JSONata expression used to transform the data payload (outgoing).
|
|
103
110
|
* @member {String} jsonata
|
|
104
111
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
RouteTransformSettings.prototype['jsonata'] = undefined;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* JSONata expression used to transform the data payload (incoming).
|
|
116
|
+
* @member {String} jsonata_in
|
|
117
|
+
*/
|
|
118
|
+
RouteTransformSettings.prototype['jsonata_in'] = undefined;
|
|
119
|
+
var _default = exports["default"] = RouteTransformSettings;
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
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
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
13
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
14
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
* Notehub API
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
*
|
|
20
|
+
* The version of the OpenAPI document: 1.2.0
|
|
21
|
+
* Contact: engineering@blues.io
|
|
22
|
+
*
|
|
23
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
24
|
+
* https://openapi-generator.tech
|
|
25
|
+
* Do not edit the class manually.
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* The S3ArchiveRoute model module.
|
|
30
|
+
* @module model/S3ArchiveRoute
|
|
31
|
+
* @version 2.2.1-beta.2
|
|
32
|
+
*/
|
|
33
|
+
var S3ArchiveRoute = /*#__PURE__*/function () {
|
|
34
|
+
/**
|
|
35
|
+
* Constructs a new <code>S3ArchiveRoute</code>.
|
|
36
|
+
* @alias module:model/S3ArchiveRoute
|
|
37
|
+
*/
|
|
38
|
+
function S3ArchiveRoute() {
|
|
39
|
+
_classCallCheck(this, S3ArchiveRoute);
|
|
40
|
+
S3ArchiveRoute.initialize(this);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Initializes the fields of this object.
|
|
45
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
46
|
+
* Only for internal use.
|
|
47
|
+
*/
|
|
48
|
+
return _createClass(S3ArchiveRoute, null, [{
|
|
49
|
+
key: "initialize",
|
|
50
|
+
value: function initialize(obj) {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Constructs a <code>S3ArchiveRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
54
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
55
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
56
|
+
* @param {module:model/S3ArchiveRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/S3ArchiveRoute} The populated <code>S3ArchiveRoute</code> instance.
|
|
58
|
+
*/
|
|
59
|
+
}, {
|
|
60
|
+
key: "constructFromObject",
|
|
61
|
+
value: function constructFromObject(data, obj) {
|
|
62
|
+
if (data) {
|
|
63
|
+
obj = obj || new S3ArchiveRoute();
|
|
64
|
+
if (data.hasOwnProperty('archive_count_exceeds')) {
|
|
65
|
+
obj['archive_count_exceeds'] = _ApiClient["default"].convertToType(data['archive_count_exceeds'], 'Number');
|
|
66
|
+
}
|
|
67
|
+
if (data.hasOwnProperty('archive_every_mins')) {
|
|
68
|
+
obj['archive_every_mins'] = _ApiClient["default"].convertToType(data['archive_every_mins'], 'Number');
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('archive_id')) {
|
|
71
|
+
obj['archive_id'] = _ApiClient["default"].convertToType(data['archive_id'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('bucket_endpoint')) {
|
|
74
|
+
obj['bucket_endpoint'] = _ApiClient["default"].convertToType(data['bucket_endpoint'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('bucket_name')) {
|
|
77
|
+
obj['bucket_name'] = _ApiClient["default"].convertToType(data['bucket_name'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('bucket_region')) {
|
|
80
|
+
obj['bucket_region'] = _ApiClient["default"].convertToType(data['bucket_region'], 'String');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('file_access')) {
|
|
83
|
+
obj['file_access'] = _ApiClient["default"].convertToType(data['file_access'], 'String');
|
|
84
|
+
}
|
|
85
|
+
if (data.hasOwnProperty('file_folder')) {
|
|
86
|
+
obj['file_folder'] = _ApiClient["default"].convertToType(data['file_folder'], 'String');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('file_format')) {
|
|
89
|
+
obj['file_format'] = _ApiClient["default"].convertToType(data['file_format'], 'String');
|
|
90
|
+
}
|
|
91
|
+
if (data.hasOwnProperty('filter')) {
|
|
92
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
93
|
+
}
|
|
94
|
+
if (data.hasOwnProperty('fleets')) {
|
|
95
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
96
|
+
}
|
|
97
|
+
if (data.hasOwnProperty('key_id')) {
|
|
98
|
+
obj['key_id'] = _ApiClient["default"].convertToType(data['key_id'], 'String');
|
|
99
|
+
}
|
|
100
|
+
if (data.hasOwnProperty('key_secret')) {
|
|
101
|
+
obj['key_secret'] = _ApiClient["default"].convertToType(data['key_secret'], 'String');
|
|
102
|
+
}
|
|
103
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
104
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
105
|
+
}
|
|
106
|
+
if (data.hasOwnProperty('timeout')) {
|
|
107
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
108
|
+
}
|
|
109
|
+
if (data.hasOwnProperty('transform')) {
|
|
110
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
111
|
+
}
|
|
112
|
+
if (data.hasOwnProperty('url')) {
|
|
113
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
114
|
+
}
|
|
115
|
+
} else if (data === null) {
|
|
116
|
+
return null;
|
|
117
|
+
}
|
|
118
|
+
return obj;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Validates the JSON data with respect to <code>S3ArchiveRoute</code>.
|
|
123
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
124
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>S3ArchiveRoute</code>.
|
|
125
|
+
*/
|
|
126
|
+
}, {
|
|
127
|
+
key: "validateJSON",
|
|
128
|
+
value: function validateJSON(data) {
|
|
129
|
+
// ensure the json data is a string
|
|
130
|
+
if (data['archive_id'] && !(typeof data['archive_id'] === 'string' || data['archive_id'] instanceof String)) {
|
|
131
|
+
throw new Error("Expected the field `archive_id` to be a primitive type in the JSON string but got " + data['archive_id']);
|
|
132
|
+
}
|
|
133
|
+
// ensure the json data is a string
|
|
134
|
+
if (data['bucket_endpoint'] && !(typeof data['bucket_endpoint'] === 'string' || data['bucket_endpoint'] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `bucket_endpoint` to be a primitive type in the JSON string but got " + data['bucket_endpoint']);
|
|
136
|
+
}
|
|
137
|
+
// ensure the json data is a string
|
|
138
|
+
if (data['bucket_name'] && !(typeof data['bucket_name'] === 'string' || data['bucket_name'] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `bucket_name` to be a primitive type in the JSON string but got " + data['bucket_name']);
|
|
140
|
+
}
|
|
141
|
+
// ensure the json data is a string
|
|
142
|
+
if (data['bucket_region'] && !(typeof data['bucket_region'] === 'string' || data['bucket_region'] instanceof String)) {
|
|
143
|
+
throw new Error("Expected the field `bucket_region` to be a primitive type in the JSON string but got " + data['bucket_region']);
|
|
144
|
+
}
|
|
145
|
+
// ensure the json data is a string
|
|
146
|
+
if (data['file_access'] && !(typeof data['file_access'] === 'string' || data['file_access'] instanceof String)) {
|
|
147
|
+
throw new Error("Expected the field `file_access` to be a primitive type in the JSON string but got " + data['file_access']);
|
|
148
|
+
}
|
|
149
|
+
// ensure the json data is a string
|
|
150
|
+
if (data['file_folder'] && !(typeof data['file_folder'] === 'string' || data['file_folder'] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `file_folder` to be a primitive type in the JSON string but got " + data['file_folder']);
|
|
152
|
+
}
|
|
153
|
+
// ensure the json data is a string
|
|
154
|
+
if (data['file_format'] && !(typeof data['file_format'] === 'string' || data['file_format'] instanceof String)) {
|
|
155
|
+
throw new Error("Expected the field `file_format` to be a primitive type in the JSON string but got " + data['file_format']);
|
|
156
|
+
}
|
|
157
|
+
// validate the optional field `filter`
|
|
158
|
+
if (data['filter']) {
|
|
159
|
+
// data not null
|
|
160
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
161
|
+
}
|
|
162
|
+
// ensure the json data is an array
|
|
163
|
+
if (!Array.isArray(data['fleets'])) {
|
|
164
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
165
|
+
}
|
|
166
|
+
// ensure the json data is a string
|
|
167
|
+
if (data['key_id'] && !(typeof data['key_id'] === 'string' || data['key_id'] instanceof String)) {
|
|
168
|
+
throw new Error("Expected the field `key_id` to be a primitive type in the JSON string but got " + data['key_id']);
|
|
169
|
+
}
|
|
170
|
+
// ensure the json data is a string
|
|
171
|
+
if (data['key_secret'] && !(typeof data['key_secret'] === 'string' || data['key_secret'] instanceof String)) {
|
|
172
|
+
throw new Error("Expected the field `key_secret` to be a primitive type in the JSON string but got " + data['key_secret']);
|
|
173
|
+
}
|
|
174
|
+
// validate the optional field `transform`
|
|
175
|
+
if (data['transform']) {
|
|
176
|
+
// data not null
|
|
177
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
178
|
+
}
|
|
179
|
+
// ensure the json data is a string
|
|
180
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
181
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
182
|
+
}
|
|
183
|
+
return true;
|
|
184
|
+
}
|
|
185
|
+
}]);
|
|
186
|
+
}();
|
|
187
|
+
/**
|
|
188
|
+
* @member {Number} archive_count_exceeds
|
|
189
|
+
*/
|
|
190
|
+
S3ArchiveRoute.prototype['archive_count_exceeds'] = undefined;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* @member {Number} archive_every_mins
|
|
194
|
+
*/
|
|
195
|
+
S3ArchiveRoute.prototype['archive_every_mins'] = undefined;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @member {String} archive_id
|
|
199
|
+
*/
|
|
200
|
+
S3ArchiveRoute.prototype['archive_id'] = undefined;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @member {String} bucket_endpoint
|
|
204
|
+
*/
|
|
205
|
+
S3ArchiveRoute.prototype['bucket_endpoint'] = undefined;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* @member {String} bucket_name
|
|
209
|
+
*/
|
|
210
|
+
S3ArchiveRoute.prototype['bucket_name'] = undefined;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* @member {String} bucket_region
|
|
214
|
+
*/
|
|
215
|
+
S3ArchiveRoute.prototype['bucket_region'] = undefined;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* @member {String} file_access
|
|
219
|
+
*/
|
|
220
|
+
S3ArchiveRoute.prototype['file_access'] = undefined;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @member {String} file_folder
|
|
224
|
+
*/
|
|
225
|
+
S3ArchiveRoute.prototype['file_folder'] = undefined;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* @member {String} file_format
|
|
229
|
+
*/
|
|
230
|
+
S3ArchiveRoute.prototype['file_format'] = undefined;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @member {module:model/Filter} filter
|
|
234
|
+
*/
|
|
235
|
+
S3ArchiveRoute.prototype['filter'] = undefined;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* @member {Array.<String>} fleets
|
|
239
|
+
*/
|
|
240
|
+
S3ArchiveRoute.prototype['fleets'] = undefined;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* @member {String} key_id
|
|
244
|
+
*/
|
|
245
|
+
S3ArchiveRoute.prototype['key_id'] = undefined;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* @member {String} key_secret
|
|
249
|
+
*/
|
|
250
|
+
S3ArchiveRoute.prototype['key_secret'] = undefined;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @member {Number} throttle_ms
|
|
254
|
+
*/
|
|
255
|
+
S3ArchiveRoute.prototype['throttle_ms'] = undefined;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @member {Number} timeout
|
|
259
|
+
*/
|
|
260
|
+
S3ArchiveRoute.prototype['timeout'] = undefined;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
264
|
+
*/
|
|
265
|
+
S3ArchiveRoute.prototype['transform'] = undefined;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* @member {String} url
|
|
269
|
+
*/
|
|
270
|
+
S3ArchiveRoute.prototype['url'] = undefined;
|
|
271
|
+
var _default = exports["default"] = S3ArchiveRoute;
|