@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
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -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
|
|
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
31
|
-
* @version 2.2.
|
|
29
|
+
* The GoogleRoute model module.
|
|
30
|
+
* @module model/GoogleRoute
|
|
31
|
+
* @version 2.2.1-beta.2
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var GoogleRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
*
|
|
37
|
-
* @alias module:model/Google
|
|
35
|
+
* Constructs a new <code>GoogleRoute</code>.
|
|
36
|
+
* @alias module:model/GoogleRoute
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function GoogleRoute() {
|
|
39
|
+
_classCallCheck(this, GoogleRoute);
|
|
40
|
+
GoogleRoute.initialize(this);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,42 +45,42 @@ var Google = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(GoogleRoute, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
50
|
value: function initialize(obj) {}
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>GoogleRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/GoogleRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/GoogleRoute} The populated <code>GoogleRoute</code> instance.
|
|
59
58
|
*/
|
|
60
59
|
}, {
|
|
61
60
|
key: "constructFromObject",
|
|
62
61
|
value: function constructFromObject(data, obj) {
|
|
63
62
|
if (data) {
|
|
64
|
-
obj = obj || new
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
63
|
+
obj = obj || new GoogleRoute();
|
|
64
|
+
if (data.hasOwnProperty('filter')) {
|
|
65
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
67
66
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty('fleets')) {
|
|
68
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
70
69
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
71
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
73
72
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty('timeout')) {
|
|
74
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
76
75
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty('token')) {
|
|
77
|
+
obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String');
|
|
79
78
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty('transform')) {
|
|
80
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
82
81
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty('url')) {
|
|
83
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
85
84
|
}
|
|
86
85
|
} else if (data === null) {
|
|
87
86
|
return null;
|
|
@@ -90,75 +89,71 @@ var Google = /*#__PURE__*/function () {
|
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
/**
|
|
93
|
-
* Validates the JSON data with respect to <code>
|
|
92
|
+
* Validates the JSON data with respect to <code>GoogleRoute</code>.
|
|
94
93
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
95
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>GoogleRoute</code>.
|
|
96
95
|
*/
|
|
97
96
|
}, {
|
|
98
97
|
key: "validateJSON",
|
|
99
98
|
value: function validateJSON(data) {
|
|
100
99
|
// validate the optional field `filter`
|
|
101
|
-
if (data[
|
|
100
|
+
if (data['filter']) {
|
|
102
101
|
// data not null
|
|
103
|
-
|
|
102
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
104
103
|
}
|
|
105
104
|
// 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[
|
|
105
|
+
if (!Array.isArray(data['fleets'])) {
|
|
106
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
108
107
|
}
|
|
109
108
|
// ensure the json data is a string
|
|
110
|
-
if (data[
|
|
111
|
-
throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data[
|
|
109
|
+
if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']);
|
|
112
111
|
}
|
|
113
112
|
// validate the optional field `transform`
|
|
114
|
-
if (data[
|
|
113
|
+
if (data['transform']) {
|
|
115
114
|
// data not null
|
|
116
|
-
|
|
115
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
117
116
|
}
|
|
118
117
|
// ensure the json data is a string
|
|
119
|
-
if (data[
|
|
120
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
118
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
119
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
121
120
|
}
|
|
122
121
|
return true;
|
|
123
122
|
}
|
|
124
123
|
}]);
|
|
125
124
|
}();
|
|
126
125
|
/**
|
|
127
|
-
* @member {module:model/
|
|
126
|
+
* @member {module:model/Filter} filter
|
|
128
127
|
*/
|
|
129
|
-
|
|
128
|
+
GoogleRoute.prototype['filter'] = undefined;
|
|
130
129
|
|
|
131
130
|
/**
|
|
132
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
133
131
|
* @member {Array.<String>} fleets
|
|
134
132
|
*/
|
|
135
|
-
|
|
133
|
+
GoogleRoute.prototype['fleets'] = undefined;
|
|
136
134
|
|
|
137
135
|
/**
|
|
138
136
|
* @member {Number} throttle_ms
|
|
139
137
|
*/
|
|
140
|
-
|
|
138
|
+
GoogleRoute.prototype['throttle_ms'] = undefined;
|
|
141
139
|
|
|
142
140
|
/**
|
|
143
|
-
* Timeout in seconds for each request
|
|
144
141
|
* @member {Number} timeout
|
|
145
|
-
* @default 15
|
|
146
142
|
*/
|
|
147
|
-
|
|
143
|
+
GoogleRoute.prototype['timeout'] = undefined;
|
|
148
144
|
|
|
149
145
|
/**
|
|
150
|
-
* Optional authentication token
|
|
151
146
|
* @member {String} token
|
|
152
147
|
*/
|
|
153
|
-
|
|
148
|
+
GoogleRoute.prototype['token'] = undefined;
|
|
154
149
|
|
|
155
150
|
/**
|
|
156
|
-
* @member {module:model/
|
|
151
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
157
152
|
*/
|
|
158
|
-
|
|
153
|
+
GoogleRoute.prototype['transform'] = undefined;
|
|
159
154
|
|
|
160
155
|
/**
|
|
161
156
|
* @member {String} url
|
|
162
157
|
*/
|
|
163
|
-
|
|
164
|
-
var _default = exports["default"] =
|
|
158
|
+
GoogleRoute.prototype['url'] = undefined;
|
|
159
|
+
var _default = exports["default"] = GoogleRoute;
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var _Filter = _interopRequireDefault(require("./Filter"));
|
|
9
|
+
var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
12
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -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
|
|
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
* The
|
|
30
|
-
* @module model/
|
|
31
|
-
* @version 2.2.
|
|
29
|
+
* The HttpRoute model module.
|
|
30
|
+
* @module model/HttpRoute
|
|
31
|
+
* @version 2.2.1-beta.2
|
|
32
32
|
*/
|
|
33
|
-
var
|
|
33
|
+
var HttpRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
* Constructs a new <code>
|
|
36
|
-
*
|
|
37
|
-
* @alias module:model/Http
|
|
35
|
+
* Constructs a new <code>HttpRoute</code>.
|
|
36
|
+
* @alias module:model/HttpRoute
|
|
38
37
|
*/
|
|
39
|
-
function
|
|
40
|
-
_classCallCheck(this,
|
|
41
|
-
|
|
38
|
+
function HttpRoute() {
|
|
39
|
+
_classCallCheck(this, HttpRoute);
|
|
40
|
+
HttpRoute.initialize(this);
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/**
|
|
@@ -46,47 +45,47 @@ var Http = /*#__PURE__*/function () {
|
|
|
46
45
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
47
46
|
* Only for internal use.
|
|
48
47
|
*/
|
|
49
|
-
return _createClass(
|
|
48
|
+
return _createClass(HttpRoute, null, [{
|
|
50
49
|
key: "initialize",
|
|
51
50
|
value: function initialize(obj) {}
|
|
52
51
|
|
|
53
52
|
/**
|
|
54
|
-
* Constructs a <code>
|
|
53
|
+
* Constructs a <code>HttpRoute</code> from a plain JavaScript object, optionally creating a new instance.
|
|
55
54
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
56
55
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
57
|
-
* @param {module:model/
|
|
58
|
-
* @return {module:model/
|
|
56
|
+
* @param {module:model/HttpRoute} obj Optional instance to populate.
|
|
57
|
+
* @return {module:model/HttpRoute} The populated <code>HttpRoute</code> instance.
|
|
59
58
|
*/
|
|
60
59
|
}, {
|
|
61
60
|
key: "constructFromObject",
|
|
62
61
|
value: function constructFromObject(data, obj) {
|
|
63
62
|
if (data) {
|
|
64
|
-
obj = obj || new
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
63
|
+
obj = obj || new HttpRoute();
|
|
64
|
+
if (data.hasOwnProperty('disable_http_headers')) {
|
|
65
|
+
obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
|
|
67
66
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty('filter')) {
|
|
68
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
70
69
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty('fleets')) {
|
|
71
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
73
72
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
76
|
-
String:
|
|
73
|
+
if (data.hasOwnProperty('http_headers')) {
|
|
74
|
+
obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
|
|
75
|
+
'String': 'String'
|
|
77
76
|
});
|
|
78
77
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
79
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
81
80
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty('timeout')) {
|
|
82
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
84
83
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty('transform')) {
|
|
85
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
87
86
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty('url')) {
|
|
88
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
90
89
|
}
|
|
91
90
|
} else if (data === null) {
|
|
92
91
|
return null;
|
|
@@ -95,30 +94,30 @@ var Http = /*#__PURE__*/function () {
|
|
|
95
94
|
}
|
|
96
95
|
|
|
97
96
|
/**
|
|
98
|
-
* Validates the JSON data with respect to <code>
|
|
97
|
+
* Validates the JSON data with respect to <code>HttpRoute</code>.
|
|
99
98
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
100
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
99
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>HttpRoute</code>.
|
|
101
100
|
*/
|
|
102
101
|
}, {
|
|
103
102
|
key: "validateJSON",
|
|
104
103
|
value: function validateJSON(data) {
|
|
105
104
|
// validate the optional field `filter`
|
|
106
|
-
if (data[
|
|
105
|
+
if (data['filter']) {
|
|
107
106
|
// data not null
|
|
108
|
-
|
|
107
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
109
108
|
}
|
|
110
109
|
// ensure the json data is an array
|
|
111
|
-
if (!Array.isArray(data[
|
|
112
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
110
|
+
if (!Array.isArray(data['fleets'])) {
|
|
111
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
113
112
|
}
|
|
114
113
|
// validate the optional field `transform`
|
|
115
|
-
if (data[
|
|
114
|
+
if (data['transform']) {
|
|
116
115
|
// data not null
|
|
117
|
-
|
|
116
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
118
117
|
}
|
|
119
118
|
// 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[
|
|
119
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
122
121
|
}
|
|
123
122
|
return true;
|
|
124
123
|
}
|
|
@@ -126,47 +125,42 @@ var Http = /*#__PURE__*/function () {
|
|
|
126
125
|
}();
|
|
127
126
|
/**
|
|
128
127
|
* @member {Boolean} disable_http_headers
|
|
129
|
-
* @default false
|
|
130
128
|
*/
|
|
131
|
-
|
|
129
|
+
HttpRoute.prototype['disable_http_headers'] = undefined;
|
|
132
130
|
|
|
133
131
|
/**
|
|
134
|
-
* @member {module:model/
|
|
132
|
+
* @member {module:model/Filter} filter
|
|
135
133
|
*/
|
|
136
|
-
|
|
134
|
+
HttpRoute.prototype['filter'] = undefined;
|
|
137
135
|
|
|
138
136
|
/**
|
|
139
|
-
*
|
|
137
|
+
* If non-empty, applies only to the listed fleets.
|
|
140
138
|
* @member {Array.<String>} fleets
|
|
141
139
|
*/
|
|
142
|
-
|
|
140
|
+
HttpRoute.prototype['fleets'] = undefined;
|
|
143
141
|
|
|
144
142
|
/**
|
|
145
143
|
* @member {Object.<String, String>} http_headers
|
|
146
144
|
*/
|
|
147
|
-
|
|
145
|
+
HttpRoute.prototype['http_headers'] = undefined;
|
|
148
146
|
|
|
149
147
|
/**
|
|
150
|
-
* Minimum time between requests in Miliseconds
|
|
151
148
|
* @member {Number} throttle_ms
|
|
152
149
|
*/
|
|
153
|
-
|
|
150
|
+
HttpRoute.prototype['throttle_ms'] = undefined;
|
|
154
151
|
|
|
155
152
|
/**
|
|
156
|
-
* Timeout in seconds for each request
|
|
157
153
|
* @member {Number} timeout
|
|
158
|
-
* @default 15
|
|
159
154
|
*/
|
|
160
|
-
|
|
155
|
+
HttpRoute.prototype['timeout'] = undefined;
|
|
161
156
|
|
|
162
157
|
/**
|
|
163
|
-
* @member {module:model/
|
|
158
|
+
* @member {module:model/RouteTransformSettings} transform
|
|
164
159
|
*/
|
|
165
|
-
|
|
160
|
+
HttpRoute.prototype['transform'] = undefined;
|
|
166
161
|
|
|
167
162
|
/**
|
|
168
|
-
* Route URL
|
|
169
163
|
* @member {String} url
|
|
170
164
|
*/
|
|
171
|
-
|
|
172
|
-
var _default = exports["default"] =
|
|
165
|
+
HttpRoute.prototype['url'] = undefined;
|
|
166
|
+
var _default = exports["default"] = HttpRoute;
|
|
@@ -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,18 @@ 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 ListNotefiles200Response model module.
|
|
28
|
+
* @module model/ListNotefiles200Response
|
|
29
|
+
* @version 2.2.1-beta.2
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var ListNotefiles200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
33
|
+
* Constructs a new <code>ListNotefiles200Response</code>.
|
|
34
|
+
* @alias module:model/ListNotefiles200Response
|
|
35
35
|
*/
|
|
36
|
-
function
|
|
37
|
-
_classCallCheck(this,
|
|
38
|
-
|
|
36
|
+
function ListNotefiles200Response() {
|
|
37
|
+
_classCallCheck(this, ListNotefiles200Response);
|
|
38
|
+
ListNotefiles200Response.initialize(this);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -43,30 +43,30 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
43
43
|
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
44
44
|
* Only for internal use.
|
|
45
45
|
*/
|
|
46
|
-
return _createClass(
|
|
46
|
+
return _createClass(ListNotefiles200Response, null, [{
|
|
47
47
|
key: "initialize",
|
|
48
48
|
value: function initialize(obj) {}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Constructs a <code>
|
|
51
|
+
* Constructs a <code>ListNotefiles200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
52
|
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
53
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
-
* @param {module:model/
|
|
55
|
-
* @return {module:model/
|
|
54
|
+
* @param {module:model/ListNotefiles200Response} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/ListNotefiles200Response} The populated <code>ListNotefiles200Response</code> instance.
|
|
56
56
|
*/
|
|
57
57
|
}, {
|
|
58
58
|
key: "constructFromObject",
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
|
-
obj = obj || new
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
61
|
+
obj = obj || new ListNotefiles200Response();
|
|
62
|
+
if (data.hasOwnProperty('changes')) {
|
|
63
|
+
obj['changes'] = _ApiClient["default"].convertToType(data['changes'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('info')) {
|
|
66
|
+
obj['info'] = _ApiClient["default"].convertToType(data['info'], Object);
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('total')) {
|
|
69
|
+
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -75,9 +75,9 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
* Validates the JSON data with respect to <code>
|
|
78
|
+
* Validates the JSON data with respect to <code>ListNotefiles200Response</code>.
|
|
79
79
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListNotefiles200Response</code>.
|
|
81
81
|
*/
|
|
82
82
|
}, {
|
|
83
83
|
key: "validateJSON",
|
|
@@ -90,17 +90,17 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
90
90
|
* The number of pending changes in the Notefile.
|
|
91
91
|
* @member {Number} changes
|
|
92
92
|
*/
|
|
93
|
-
|
|
93
|
+
ListNotefiles200Response.prototype['changes'] = undefined;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
97
97
|
* @member {Object} info
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
ListNotefiles200Response.prototype['info'] = undefined;
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* The total number of files.
|
|
103
103
|
* @member {Number} total
|
|
104
104
|
*/
|
|
105
|
-
|
|
106
|
-
var _default = exports["default"] =
|
|
105
|
+
ListNotefiles200Response.prototype['total'] = undefined;
|
|
106
|
+
var _default = exports["default"] = ListNotefiles200Response;
|