@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/{HandleNotefileChangesPending200Response.js → ListPendingNotefiles200Response.js}
RENAMED
|
@@ -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 ListPendingNotefiles200Response model module.
|
|
28
|
+
* @module model/ListPendingNotefiles200Response
|
|
29
|
+
* @version 2.2.1-beta.2
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var ListPendingNotefiles200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
33
|
+
* Constructs a new <code>ListPendingNotefiles200Response</code>.
|
|
34
|
+
* @alias module:model/ListPendingNotefiles200Response
|
|
35
35
|
*/
|
|
36
|
-
function
|
|
37
|
-
_classCallCheck(this,
|
|
38
|
-
|
|
36
|
+
function ListPendingNotefiles200Response() {
|
|
37
|
+
_classCallCheck(this, ListPendingNotefiles200Response);
|
|
38
|
+
ListPendingNotefiles200Response.initialize(this);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -43,33 +43,33 @@ var HandleNotefileChangesPending200Response = /*#__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(ListPendingNotefiles200Response, null, [{
|
|
47
47
|
key: "initialize",
|
|
48
48
|
value: function initialize(obj) {}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Constructs a <code>
|
|
51
|
+
* Constructs a <code>ListPendingNotefiles200Response</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/ListPendingNotefiles200Response} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/ListPendingNotefiles200Response} The populated <code>ListPendingNotefiles200Response</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 ListPendingNotefiles200Response();
|
|
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('pending')) {
|
|
69
|
+
obj['pending'] = _ApiClient["default"].convertToType(data['pending'], 'Boolean');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('total')) {
|
|
72
|
+
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
|
|
73
73
|
}
|
|
74
74
|
} else if (data === null) {
|
|
75
75
|
return null;
|
|
@@ -78,9 +78,9 @@ var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Validates the JSON data with respect to <code>
|
|
81
|
+
* Validates the JSON data with respect to <code>ListPendingNotefiles200Response</code>.
|
|
82
82
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
83
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
83
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ListPendingNotefiles200Response</code>.
|
|
84
84
|
*/
|
|
85
85
|
}, {
|
|
86
86
|
key: "validateJSON",
|
|
@@ -93,23 +93,23 @@ var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
|
93
93
|
* The number of pending changes in the Notefile.
|
|
94
94
|
* @member {Number} changes
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
ListPendingNotefiles200Response.prototype['changes'] = undefined;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
100
100
|
* @member {Object} info
|
|
101
101
|
*/
|
|
102
|
-
|
|
102
|
+
ListPendingNotefiles200Response.prototype['info'] = undefined;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
105
|
* Whether there are pending changes.
|
|
106
106
|
* @member {Boolean} pending
|
|
107
107
|
*/
|
|
108
|
-
|
|
108
|
+
ListPendingNotefiles200Response.prototype['pending'] = undefined;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* The total number of files.
|
|
112
112
|
* @member {Number} total
|
|
113
113
|
*/
|
|
114
|
-
|
|
115
|
-
var _default = exports["default"] =
|
|
114
|
+
ListPendingNotefiles200Response.prototype['total'] = undefined;
|
|
115
|
+
var _default = exports["default"] = ListPendingNotefiles200Response;
|
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 2.2.
|
|
32
|
+
* @version 2.2.1-beta.2
|
|
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 2.2.
|
|
29
|
+
* @version 2.2.1-beta.2
|
|
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;
|
|
@@ -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 LoginRequest model module.
|
|
28
28
|
* @module model/LoginRequest
|
|
29
|
-
* @version 2.2.
|
|
29
|
+
* @version 2.2.1-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var LoginRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,11 +59,11 @@ var LoginRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new LoginRequest();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('password')) {
|
|
63
|
+
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('username')) {
|
|
66
|
+
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
|
67
67
|
}
|
|
68
68
|
} else if (data === null) {
|
|
69
69
|
return null;
|
|
@@ -80,12 +80,12 @@ var LoginRequest = /*#__PURE__*/function () {
|
|
|
80
80
|
key: "validateJSON",
|
|
81
81
|
value: function validateJSON(data) {
|
|
82
82
|
// ensure the json data is a string
|
|
83
|
-
if (data[
|
|
84
|
-
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data[
|
|
83
|
+
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
84
|
+
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
85
85
|
}
|
|
86
86
|
// ensure the json data is a string
|
|
87
|
-
if (data[
|
|
88
|
-
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data[
|
|
87
|
+
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
|
88
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
|
89
89
|
}
|
|
90
90
|
return true;
|
|
91
91
|
}
|
|
@@ -94,10 +94,10 @@ var LoginRequest = /*#__PURE__*/function () {
|
|
|
94
94
|
/**
|
|
95
95
|
* @member {String} password
|
|
96
96
|
*/
|
|
97
|
-
LoginRequest.prototype[
|
|
97
|
+
LoginRequest.prototype['password'] = undefined;
|
|
98
98
|
|
|
99
99
|
/**
|
|
100
100
|
* @member {String} username
|
|
101
101
|
*/
|
|
102
|
-
LoginRequest.prototype[
|
|
102
|
+
LoginRequest.prototype['username'] = undefined;
|
|
103
103
|
var _default = exports["default"] = LoginRequest;
|