@blues-inc/notehub-js 3.0.0 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +247 -247
- package/dist/ApiClient.js +150 -155
- 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 +471 -511
- 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 +381 -381
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +117 -51
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +21 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- 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 +65 -65
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- 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 +25 -17
- 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 +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +115 -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/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +43 -35
- package/dist/model/FleetConnectivityAssurance.js +8 -31
- 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/GetDbNote200Response.js +13 -13
- 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/GetDeviceLatestEvents200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetDevices200Response.js +17 -16
- package/dist/model/GetEvents200Response.js +21 -20
- package/dist/model/GetEventsByCursor200Response.js +24 -23
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +10 -9
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsUsage200Response.js +132 -0
- package/dist/model/GetSessionsUsage200Response.js +12 -11
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- 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 +68 -68
- package/dist/model/Note.js +95 -15
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +30 -37
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- 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/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatellitePlan.js +26 -26
- package/dist/model/SchemaProperty.js +38 -36
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +38 -30
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +18 -18
- package/dist/model/UsageEventsData.js +48 -37
- package/dist/model/UsageEventsResponse.js +12 -11
- package/dist/model/UsageRouteLogsData.js +27 -27
- package/dist/model/UsageSessionsData.js +41 -31
- 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/ListPendingNotefiles200Response.js +0 -115
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,13 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetSessionsUsage200Response model module.
|
|
32
32
|
* @module model/GetSessionsUsage200Response
|
|
33
|
-
* @version
|
|
33
|
+
* @version 4.0.0-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetSessionsUsage200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>GetSessionsUsage200Response</code>.
|
|
38
38
|
* @alias module:model/GetSessionsUsage200Response
|
|
39
|
-
* @param sessions {Array.<module:model/UsageSessionsData>}
|
|
39
|
+
* @param sessions {Array.<module:model/UsageSessionsData>}
|
|
40
40
|
*/
|
|
41
41
|
function GetSessionsUsage200Response(sessions) {
|
|
42
42
|
_classCallCheck(this, GetSessionsUsage200Response);
|
|
@@ -51,7 +51,7 @@ var GetSessionsUsage200Response = /*#__PURE__*/function () {
|
|
|
51
51
|
return _createClass(GetSessionsUsage200Response, null, [{
|
|
52
52
|
key: "initialize",
|
|
53
53
|
value: function initialize(obj, sessions) {
|
|
54
|
-
obj[
|
|
54
|
+
obj['sessions'] = sessions;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -66,8 +66,8 @@ var GetSessionsUsage200Response = /*#__PURE__*/function () {
|
|
|
66
66
|
value: function constructFromObject(data, obj) {
|
|
67
67
|
if (data) {
|
|
68
68
|
obj = obj || new GetSessionsUsage200Response();
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty('sessions')) {
|
|
70
|
+
obj['sessions'] = _ApiClient["default"].convertToType(data['sessions'], [_UsageSessionsData["default"]]);
|
|
71
71
|
}
|
|
72
72
|
} else if (data === null) {
|
|
73
73
|
return null;
|
|
@@ -98,14 +98,14 @@ var GetSessionsUsage200Response = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (data[
|
|
101
|
+
if (data['sessions']) {
|
|
102
102
|
// data not null
|
|
103
103
|
// ensure the json data is an array
|
|
104
|
-
if (!Array.isArray(data[
|
|
105
|
-
throw new Error("Expected the field `sessions` to be an array in the JSON data but got " + data[
|
|
104
|
+
if (!Array.isArray(data['sessions'])) {
|
|
105
|
+
throw new Error("Expected the field `sessions` to be an array in the JSON data but got " + data['sessions']);
|
|
106
106
|
}
|
|
107
107
|
// validate the optional field `sessions` (array)
|
|
108
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
108
|
+
var _iterator2 = _createForOfIteratorHelper(data['sessions']),
|
|
109
109
|
_step2;
|
|
110
110
|
try {
|
|
111
111
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -117,6 +117,7 @@ var GetSessionsUsage200Response = /*#__PURE__*/function () {
|
|
|
117
117
|
} finally {
|
|
118
118
|
_iterator2.f();
|
|
119
119
|
}
|
|
120
|
+
;
|
|
120
121
|
}
|
|
121
122
|
return true;
|
|
122
123
|
}
|
|
@@ -127,5 +128,5 @@ GetSessionsUsage200Response.RequiredProperties = ["sessions"];
|
|
|
127
128
|
/**
|
|
128
129
|
* @member {Array.<module:model/UsageSessionsData>} sessions
|
|
129
130
|
*/
|
|
130
|
-
GetSessionsUsage200Response.prototype[
|
|
131
|
+
GetSessionsUsage200Response.prototype['sessions'] = undefined;
|
|
131
132
|
var _default = exports["default"] = GetSessionsUsage200Response;
|
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
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); } /**
|
|
19
19
|
* Notehub API
|
|
20
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
21
21
|
*
|
|
22
22
|
* The version of the OpenAPI document: 1.2.0
|
|
23
23
|
* Contact: engineering@blues.io
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetWebhooks200Response model module.
|
|
32
32
|
* @module model/GetWebhooks200Response
|
|
33
|
-
* @version
|
|
33
|
+
* @version 4.0.0-beta.1
|
|
34
34
|
*/
|
|
35
35
|
var GetWebhooks200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -63,8 +63,8 @@ var GetWebhooks200Response = /*#__PURE__*/function () {
|
|
|
63
63
|
value: function constructFromObject(data, obj) {
|
|
64
64
|
if (data) {
|
|
65
65
|
obj = obj || new GetWebhooks200Response();
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty('webhooks')) {
|
|
67
|
+
obj['webhooks'] = _ApiClient["default"].convertToType(data['webhooks'], [_WebhookSettings["default"]]);
|
|
68
68
|
}
|
|
69
69
|
} else if (data === null) {
|
|
70
70
|
return null;
|
|
@@ -80,14 +80,14 @@ var GetWebhooks200Response = /*#__PURE__*/function () {
|
|
|
80
80
|
}, {
|
|
81
81
|
key: "validateJSON",
|
|
82
82
|
value: function validateJSON(data) {
|
|
83
|
-
if (data[
|
|
83
|
+
if (data['webhooks']) {
|
|
84
84
|
// data not null
|
|
85
85
|
// ensure the json data is an array
|
|
86
|
-
if (!Array.isArray(data[
|
|
87
|
-
throw new Error("Expected the field `webhooks` to be an array in the JSON data but got " + data[
|
|
86
|
+
if (!Array.isArray(data['webhooks'])) {
|
|
87
|
+
throw new Error("Expected the field `webhooks` to be an array in the JSON data but got " + data['webhooks']);
|
|
88
88
|
}
|
|
89
89
|
// validate the optional field `webhooks` (array)
|
|
90
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
90
|
+
var _iterator = _createForOfIteratorHelper(data['webhooks']),
|
|
91
91
|
_step;
|
|
92
92
|
try {
|
|
93
93
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -99,6 +99,7 @@ var GetWebhooks200Response = /*#__PURE__*/function () {
|
|
|
99
99
|
} finally {
|
|
100
100
|
_iterator.f();
|
|
101
101
|
}
|
|
102
|
+
;
|
|
102
103
|
}
|
|
103
104
|
return true;
|
|
104
105
|
}
|
|
@@ -107,5 +108,5 @@ var GetWebhooks200Response = /*#__PURE__*/function () {
|
|
|
107
108
|
/**
|
|
108
109
|
* @member {Array.<module:model/WebhookSettings>} webhooks
|
|
109
110
|
*/
|
|
110
|
-
GetWebhooks200Response.prototype[
|
|
111
|
+
GetWebhooks200Response.prototype['webhooks'] = undefined;
|
|
111
112
|
var _default = exports["default"] = GetWebhooks200Response;
|
|
@@ -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 GoogleRoute model module.
|
|
30
30
|
* @module model/GoogleRoute
|
|
31
|
-
* @version
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
32
32
|
*/
|
|
33
33
|
var GoogleRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,26 +61,26 @@ var GoogleRoute = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new GoogleRoute();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty('filter')) {
|
|
65
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty('fleets')) {
|
|
68
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
71
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
73
|
+
if (data.hasOwnProperty('timeout')) {
|
|
74
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
75
75
|
}
|
|
76
|
-
if (data.hasOwnProperty(
|
|
77
|
-
obj[
|
|
76
|
+
if (data.hasOwnProperty('token')) {
|
|
77
|
+
obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String');
|
|
78
78
|
}
|
|
79
|
-
if (data.hasOwnProperty(
|
|
80
|
-
obj[
|
|
79
|
+
if (data.hasOwnProperty('transform')) {
|
|
80
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
81
81
|
}
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty('url')) {
|
|
83
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
84
84
|
}
|
|
85
85
|
} else if (data === null) {
|
|
86
86
|
return null;
|
|
@@ -97,26 +97,26 @@ var GoogleRoute = /*#__PURE__*/function () {
|
|
|
97
97
|
key: "validateJSON",
|
|
98
98
|
value: function validateJSON(data) {
|
|
99
99
|
// validate the optional field `filter`
|
|
100
|
-
if (data[
|
|
100
|
+
if (data['filter']) {
|
|
101
101
|
// data not null
|
|
102
|
-
_Filter["default"].validateJSON(data[
|
|
102
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
103
103
|
}
|
|
104
104
|
// ensure the json data is an array
|
|
105
|
-
if (!Array.isArray(data[
|
|
106
|
-
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']);
|
|
107
107
|
}
|
|
108
108
|
// ensure the json data is a string
|
|
109
|
-
if (data[
|
|
110
|
-
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']);
|
|
111
111
|
}
|
|
112
112
|
// validate the optional field `transform`
|
|
113
|
-
if (data[
|
|
113
|
+
if (data['transform']) {
|
|
114
114
|
// data not null
|
|
115
|
-
_RouteTransformSettings["default"].validateJSON(data[
|
|
115
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
116
116
|
}
|
|
117
117
|
// ensure the json data is a string
|
|
118
|
-
if (data[
|
|
119
|
-
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']);
|
|
120
120
|
}
|
|
121
121
|
return true;
|
|
122
122
|
}
|
|
@@ -125,35 +125,35 @@ var GoogleRoute = /*#__PURE__*/function () {
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {module:model/Filter} filter
|
|
127
127
|
*/
|
|
128
|
-
GoogleRoute.prototype[
|
|
128
|
+
GoogleRoute.prototype['filter'] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* @member {Array.<String>} fleets
|
|
132
132
|
*/
|
|
133
|
-
GoogleRoute.prototype[
|
|
133
|
+
GoogleRoute.prototype['fleets'] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* @member {Number} throttle_ms
|
|
137
137
|
*/
|
|
138
|
-
GoogleRoute.prototype[
|
|
138
|
+
GoogleRoute.prototype['throttle_ms'] = undefined;
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
141
|
* @member {Number} timeout
|
|
142
142
|
*/
|
|
143
|
-
GoogleRoute.prototype[
|
|
143
|
+
GoogleRoute.prototype['timeout'] = undefined;
|
|
144
144
|
|
|
145
145
|
/**
|
|
146
146
|
* @member {String} token
|
|
147
147
|
*/
|
|
148
|
-
GoogleRoute.prototype[
|
|
148
|
+
GoogleRoute.prototype['token'] = undefined;
|
|
149
149
|
|
|
150
150
|
/**
|
|
151
151
|
* @member {module:model/RouteTransformSettings} transform
|
|
152
152
|
*/
|
|
153
|
-
GoogleRoute.prototype[
|
|
153
|
+
GoogleRoute.prototype['transform'] = undefined;
|
|
154
154
|
|
|
155
155
|
/**
|
|
156
156
|
* @member {String} url
|
|
157
157
|
*/
|
|
158
|
-
GoogleRoute.prototype[
|
|
158
|
+
GoogleRoute.prototype['url'] = undefined;
|
|
159
159
|
var _default = exports["default"] = GoogleRoute;
|
package/dist/model/HttpRoute.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 HttpRoute model module.
|
|
30
30
|
* @module model/HttpRoute
|
|
31
|
-
* @version
|
|
31
|
+
* @version 4.0.0-beta.1
|
|
32
32
|
*/
|
|
33
33
|
var HttpRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,31 +61,31 @@ var HttpRoute = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new HttpRoute();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty('disable_http_headers')) {
|
|
65
|
+
obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty('filter')) {
|
|
68
|
+
obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty('fleets')) {
|
|
71
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
75
|
-
String:
|
|
73
|
+
if (data.hasOwnProperty('http_headers')) {
|
|
74
|
+
obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
|
|
75
|
+
'String': 'String'
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
79
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty('timeout')) {
|
|
82
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty('transform')) {
|
|
85
|
+
obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty('url')) {
|
|
88
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
89
89
|
}
|
|
90
90
|
} else if (data === null) {
|
|
91
91
|
return null;
|
|
@@ -102,22 +102,22 @@ var HttpRoute = /*#__PURE__*/function () {
|
|
|
102
102
|
key: "validateJSON",
|
|
103
103
|
value: function validateJSON(data) {
|
|
104
104
|
// validate the optional field `filter`
|
|
105
|
-
if (data[
|
|
105
|
+
if (data['filter']) {
|
|
106
106
|
// data not null
|
|
107
|
-
_Filter["default"].validateJSON(data[
|
|
107
|
+
_Filter["default"].validateJSON(data['filter']);
|
|
108
108
|
}
|
|
109
109
|
// ensure the json data is an array
|
|
110
|
-
if (!Array.isArray(data[
|
|
111
|
-
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']);
|
|
112
112
|
}
|
|
113
113
|
// validate the optional field `transform`
|
|
114
|
-
if (data[
|
|
114
|
+
if (data['transform']) {
|
|
115
115
|
// data not null
|
|
116
|
-
_RouteTransformSettings["default"].validateJSON(data[
|
|
116
|
+
_RouteTransformSettings["default"].validateJSON(data['transform']);
|
|
117
117
|
}
|
|
118
118
|
// 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[
|
|
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']);
|
|
121
121
|
}
|
|
122
122
|
return true;
|
|
123
123
|
}
|
|
@@ -126,41 +126,41 @@ var HttpRoute = /*#__PURE__*/function () {
|
|
|
126
126
|
/**
|
|
127
127
|
* @member {Boolean} disable_http_headers
|
|
128
128
|
*/
|
|
129
|
-
HttpRoute.prototype[
|
|
129
|
+
HttpRoute.prototype['disable_http_headers'] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* @member {module:model/Filter} filter
|
|
133
133
|
*/
|
|
134
|
-
HttpRoute.prototype[
|
|
134
|
+
HttpRoute.prototype['filter'] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* If non-empty, applies only to the listed fleets.
|
|
138
138
|
* @member {Array.<String>} fleets
|
|
139
139
|
*/
|
|
140
|
-
HttpRoute.prototype[
|
|
140
|
+
HttpRoute.prototype['fleets'] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {Object.<String, String>} http_headers
|
|
144
144
|
*/
|
|
145
|
-
HttpRoute.prototype[
|
|
145
|
+
HttpRoute.prototype['http_headers'] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {Number} throttle_ms
|
|
149
149
|
*/
|
|
150
|
-
HttpRoute.prototype[
|
|
150
|
+
HttpRoute.prototype['throttle_ms'] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Number} timeout
|
|
154
154
|
*/
|
|
155
|
-
HttpRoute.prototype[
|
|
155
|
+
HttpRoute.prototype['timeout'] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {module:model/RouteTransformSettings} transform
|
|
159
159
|
*/
|
|
160
|
-
HttpRoute.prototype[
|
|
160
|
+
HttpRoute.prototype['transform'] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} url
|
|
164
164
|
*/
|
|
165
|
-
HttpRoute.prototype[
|
|
165
|
+
HttpRoute.prototype['url'] = undefined;
|
|
166
166
|
var _default = exports["default"] = HttpRoute;
|
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
|
|
32
|
+
* @version 4.0.0-beta.1
|
|
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 country {String}
|
|
39
|
-
* @param latitude {Number}
|
|
40
|
-
* @param longitude {Number}
|
|
41
|
-
* @param name {String}
|
|
42
|
-
* @param timezone {String}
|
|
43
|
-
* @param when {String}
|
|
38
|
+
* @param country {String}
|
|
39
|
+
* @param latitude {Number}
|
|
40
|
+
* @param longitude {Number}
|
|
41
|
+
* @param name {String}
|
|
42
|
+
* @param timezone {String}
|
|
43
|
+
* @param when {String}
|
|
44
44
|
*/
|
|
45
45
|
function Location(country, latitude, longitude, name, timezone, when) {
|
|
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, country, latitude, longitude, name, timezone, when) {
|
|
58
|
-
obj[
|
|
59
|
-
obj[
|
|
60
|
-
obj[
|
|
61
|
-
obj[
|
|
62
|
-
obj[
|
|
63
|
-
obj[
|
|
58
|
+
obj['country'] = country;
|
|
59
|
+
obj['latitude'] = latitude;
|
|
60
|
+
obj['longitude'] = longitude;
|
|
61
|
+
obj['name'] = name;
|
|
62
|
+
obj['timezone'] = timezone;
|
|
63
|
+
obj['when'] = when;
|
|
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('country')) {
|
|
79
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty('latitude')) {
|
|
82
|
+
obj['latitude'] = _ApiClient["default"].convertToType(data['latitude'], 'Number');
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty('longitude')) {
|
|
85
|
+
obj['longitude'] = _ApiClient["default"].convertToType(data['longitude'], 'Number');
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty('name')) {
|
|
88
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
89
89
|
}
|
|
90
|
-
if (data.hasOwnProperty(
|
|
91
|
-
obj[
|
|
90
|
+
if (data.hasOwnProperty('timezone')) {
|
|
91
|
+
obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
|
|
92
92
|
}
|
|
93
|
-
if (data.hasOwnProperty(
|
|
94
|
-
obj[
|
|
93
|
+
if (data.hasOwnProperty('when')) {
|
|
94
|
+
obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
|
|
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 `country` to be a primitive type in the JSON string but got " + data[
|
|
126
|
+
if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
|
|
127
|
+
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
|
|
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 `timezone` to be a primitive type in the JSON string but got " + data[
|
|
134
|
+
if (data['timezone'] && !(typeof data['timezone'] === 'string' || data['timezone'] instanceof String)) {
|
|
135
|
+
throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data['timezone']);
|
|
136
136
|
}
|
|
137
137
|
// ensure the json data is a string
|
|
138
|
-
if (data[
|
|
139
|
-
throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data[
|
|
138
|
+
if (data['when'] && !(typeof data['when'] === 'string' || data['when'] instanceof String)) {
|
|
139
|
+
throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data['when']);
|
|
140
140
|
}
|
|
141
141
|
return true;
|
|
142
142
|
}
|
|
@@ -147,30 +147,30 @@ Location.RequiredProperties = ["country", "latitude", "longitude", "name", "time
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {String} country
|
|
149
149
|
*/
|
|
150
|
-
Location.prototype[
|
|
150
|
+
Location.prototype['country'] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Number} latitude
|
|
154
154
|
*/
|
|
155
|
-
Location.prototype[
|
|
155
|
+
Location.prototype['latitude'] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {Number} longitude
|
|
159
159
|
*/
|
|
160
|
-
Location.prototype[
|
|
160
|
+
Location.prototype['longitude'] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} name
|
|
164
164
|
*/
|
|
165
|
-
Location.prototype[
|
|
165
|
+
Location.prototype['name'] = undefined;
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* @member {String} timezone
|
|
169
169
|
*/
|
|
170
|
-
Location.prototype[
|
|
170
|
+
Location.prototype['timezone'] = undefined;
|
|
171
171
|
|
|
172
172
|
/**
|
|
173
173
|
* @member {String} when
|
|
174
174
|
*/
|
|
175
|
-
Location.prototype[
|
|
175
|
+
Location.prototype['when'] = 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
|
|
29
|
+
* @version 4.0.0-beta.1
|
|
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;
|