@blues-inc/notehub-js 1.0.33 → 1.0.34-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 +232 -213
- package/dist/ApiClient.js +156 -156
- package/dist/api/AlertApi.js +28 -28
- package/dist/api/AuthorizationApi.js +16 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +513 -513
- package/dist/api/EventApi.js +148 -148
- package/dist/api/ExternalDevicesApi.js +203 -0
- package/dist/api/MonitorApi.js +82 -82
- package/dist/api/ProjectApi.js +541 -541
- package/dist/api/RepositoryApi.js +103 -103
- package/dist/api/RouteApi.js +110 -110
- package/dist/api/WebhookApi.js +282 -0
- package/dist/index.js +28 -0
- package/dist/model/Alert.js +76 -74
- package/dist/model/AlertDataInner.js +35 -35
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/Aws.js +65 -65
- package/dist/model/Azure.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +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/DataSet.js +30 -29
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +102 -101
- package/dist/model/DeviceDfuHistory.js +20 -19
- 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/DeviceDfuStatusCurrent.js +32 -32
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +296 -185
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +35 -33
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +256 -243
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +60 -60
- package/dist/model/Fleet.js +36 -27
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +16 -16
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDeviceSessions200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +24 -23
- package/dist/model/GetProjectFleets200Response.js +12 -11
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetRouteLogsByRoute200ResponseInner.js +35 -35
- package/dist/model/GetWebhooks200Response.js +112 -0
- package/dist/model/Google.js +33 -33
- package/dist/model/HandleNoteChanges200Response.js +11 -11
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +11 -11
- package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +35 -35
- package/dist/model/HttpFilter.js +19 -19
- package/dist/model/HttpTransform.js +20 -20
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +100 -99
- package/dist/model/MonitorAlertRoutesInner.js +9 -10
- package/dist/model/Mqtt.js +66 -66
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +36 -36
- package/dist/model/NotehubRouteSchema.js +45 -46
- package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/Proxy.js +24 -24
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/QuestionDataResponseLineChart.js +39 -39
- package/dist/model/QuestionDataResponseMap.js +16 -16
- package/dist/model/Radresponder.js +25 -25
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/SchemaProperty.js +40 -38
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/Slack.js +53 -53
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/Snowflake.js +45 -45
- package/dist/model/SnowflakeTransform.js +12 -12
- package/dist/model/Thingworx.js +33 -33
- package/dist/model/TowerLocation.js +70 -58
- package/dist/model/Twilio.js +43 -43
- package/dist/model/UpdateFleetRequest.js +31 -22
- package/dist/model/UploadMetadata.js +59 -59
- package/dist/model/UserDbRoute.js +25 -25
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +114 -0
- package/package.json +3 -3
|
@@ -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 DeviceTowerInfo model module.
|
|
28
28
|
* @module model/DeviceTowerInfo
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.34-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,17 +59,17 @@ var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new DeviceTowerInfo();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('mcc')) {
|
|
63
|
+
obj['mcc'] = _ApiClient["default"].convertToType(data['mcc'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('mnc')) {
|
|
66
|
+
obj['mnc'] = _ApiClient["default"].convertToType(data['mnc'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('lac')) {
|
|
69
|
+
obj['lac'] = _ApiClient["default"].convertToType(data['lac'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('cell_id')) {
|
|
72
|
+
obj['cell_id'] = _ApiClient["default"].convertToType(data['cell_id'], 'Number');
|
|
73
73
|
}
|
|
74
74
|
} else if (data === null) {
|
|
75
75
|
return null;
|
|
@@ -92,20 +92,20 @@ var DeviceTowerInfo = /*#__PURE__*/function () {
|
|
|
92
92
|
/**
|
|
93
93
|
* @member {Number} mcc
|
|
94
94
|
*/
|
|
95
|
-
DeviceTowerInfo.prototype[
|
|
95
|
+
DeviceTowerInfo.prototype['mcc'] = undefined;
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* @member {Number} mnc
|
|
99
99
|
*/
|
|
100
|
-
DeviceTowerInfo.prototype[
|
|
100
|
+
DeviceTowerInfo.prototype['mnc'] = undefined;
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* @member {Number} lac
|
|
104
104
|
*/
|
|
105
|
-
DeviceTowerInfo.prototype[
|
|
105
|
+
DeviceTowerInfo.prototype['lac'] = undefined;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
108
|
* @member {Number} cell_id
|
|
109
109
|
*/
|
|
110
|
-
DeviceTowerInfo.prototype[
|
|
110
|
+
DeviceTowerInfo.prototype['cell_id'] = undefined;
|
|
111
111
|
var _default = exports["default"] = DeviceTowerInfo;
|
|
@@ -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 DeviceUsage model module.
|
|
28
28
|
* @module model/DeviceUsage
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.34-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var DeviceUsage = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,35 +59,35 @@ var DeviceUsage = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new DeviceUsage();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('since')) {
|
|
63
|
+
obj['since'] = _ApiClient["default"].convertToType(data['since'], 'Number');
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty('duration')) {
|
|
66
|
+
obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty('bytes_rcvd')) {
|
|
69
|
+
obj['bytes_rcvd'] = _ApiClient["default"].convertToType(data['bytes_rcvd'], 'Number');
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty('bytes_sent')) {
|
|
72
|
+
obj['bytes_sent'] = _ApiClient["default"].convertToType(data['bytes_sent'], 'Number');
|
|
73
73
|
}
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty('bytes_rcvd_secondary')) {
|
|
75
|
+
obj['bytes_rcvd_secondary'] = _ApiClient["default"].convertToType(data['bytes_rcvd_secondary'], 'Number');
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty('bytes_sent_secondary')) {
|
|
78
|
+
obj['bytes_sent_secondary'] = _ApiClient["default"].convertToType(data['bytes_sent_secondary'], 'Number');
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
80
|
+
if (data.hasOwnProperty('sessions_tcp')) {
|
|
81
|
+
obj['sessions_tcp'] = _ApiClient["default"].convertToType(data['sessions_tcp'], 'Number');
|
|
82
82
|
}
|
|
83
|
-
if (data.hasOwnProperty(
|
|
84
|
-
obj[
|
|
83
|
+
if (data.hasOwnProperty('sessions_tls')) {
|
|
84
|
+
obj['sessions_tls'] = _ApiClient["default"].convertToType(data['sessions_tls'], 'Number');
|
|
85
85
|
}
|
|
86
|
-
if (data.hasOwnProperty(
|
|
87
|
-
obj[
|
|
86
|
+
if (data.hasOwnProperty('notes_rcvd')) {
|
|
87
|
+
obj['notes_rcvd'] = _ApiClient["default"].convertToType(data['notes_rcvd'], 'Number');
|
|
88
88
|
}
|
|
89
|
-
if (data.hasOwnProperty(
|
|
90
|
-
obj[
|
|
89
|
+
if (data.hasOwnProperty('notes_sent')) {
|
|
90
|
+
obj['notes_sent'] = _ApiClient["default"].convertToType(data['notes_sent'], 'Number');
|
|
91
91
|
}
|
|
92
92
|
} else if (data === null) {
|
|
93
93
|
return null;
|
|
@@ -108,52 +108,54 @@ var DeviceUsage = /*#__PURE__*/function () {
|
|
|
108
108
|
}]);
|
|
109
109
|
}();
|
|
110
110
|
/**
|
|
111
|
+
* Unix timestamp
|
|
111
112
|
* @member {Number} since
|
|
112
113
|
*/
|
|
113
|
-
DeviceUsage.prototype[
|
|
114
|
+
DeviceUsage.prototype['since'] = undefined;
|
|
114
115
|
|
|
115
116
|
/**
|
|
117
|
+
* Duration in seconds
|
|
116
118
|
* @member {Number} duration
|
|
117
119
|
*/
|
|
118
|
-
DeviceUsage.prototype[
|
|
120
|
+
DeviceUsage.prototype['duration'] = undefined;
|
|
119
121
|
|
|
120
122
|
/**
|
|
121
123
|
* @member {Number} bytes_rcvd
|
|
122
124
|
*/
|
|
123
|
-
DeviceUsage.prototype[
|
|
125
|
+
DeviceUsage.prototype['bytes_rcvd'] = undefined;
|
|
124
126
|
|
|
125
127
|
/**
|
|
126
128
|
* @member {Number} bytes_sent
|
|
127
129
|
*/
|
|
128
|
-
DeviceUsage.prototype[
|
|
130
|
+
DeviceUsage.prototype['bytes_sent'] = undefined;
|
|
129
131
|
|
|
130
132
|
/**
|
|
131
133
|
* @member {Number} bytes_rcvd_secondary
|
|
132
134
|
*/
|
|
133
|
-
DeviceUsage.prototype[
|
|
135
|
+
DeviceUsage.prototype['bytes_rcvd_secondary'] = undefined;
|
|
134
136
|
|
|
135
137
|
/**
|
|
136
138
|
* @member {Number} bytes_sent_secondary
|
|
137
139
|
*/
|
|
138
|
-
DeviceUsage.prototype[
|
|
140
|
+
DeviceUsage.prototype['bytes_sent_secondary'] = undefined;
|
|
139
141
|
|
|
140
142
|
/**
|
|
141
143
|
* @member {Number} sessions_tcp
|
|
142
144
|
*/
|
|
143
|
-
DeviceUsage.prototype[
|
|
145
|
+
DeviceUsage.prototype['sessions_tcp'] = undefined;
|
|
144
146
|
|
|
145
147
|
/**
|
|
146
148
|
* @member {Number} sessions_tls
|
|
147
149
|
*/
|
|
148
|
-
DeviceUsage.prototype[
|
|
150
|
+
DeviceUsage.prototype['sessions_tls'] = undefined;
|
|
149
151
|
|
|
150
152
|
/**
|
|
151
153
|
* @member {Number} notes_rcvd
|
|
152
154
|
*/
|
|
153
|
-
DeviceUsage.prototype[
|
|
155
|
+
DeviceUsage.prototype['notes_rcvd'] = undefined;
|
|
154
156
|
|
|
155
157
|
/**
|
|
156
|
-
* @member {Number}
|
|
158
|
+
* @member {Number} notes_sent
|
|
157
159
|
*/
|
|
158
|
-
DeviceUsage.prototype[
|
|
160
|
+
DeviceUsage.prototype['notes_sent'] = undefined;
|
|
159
161
|
var _default = exports["default"] = DeviceUsage;
|
|
@@ -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 DfuActionRequest model module.
|
|
28
28
|
* @module model/DfuActionRequest
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.34-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var DfuActionRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,8 +59,8 @@ var DfuActionRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new DfuActionRequest();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('filename')) {
|
|
63
|
+
obj['filename'] = _ApiClient["default"].convertToType(data['filename'], 'String');
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -77,8 +77,8 @@ var DfuActionRequest = /*#__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 `filename` to be a primitive type in the JSON string but got " + data[
|
|
80
|
+
if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']);
|
|
82
82
|
}
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
@@ -88,5 +88,5 @@ var DfuActionRequest = /*#__PURE__*/function () {
|
|
|
88
88
|
* The name of the firmware file
|
|
89
89
|
* @member {String} filename
|
|
90
90
|
*/
|
|
91
|
-
DfuActionRequest.prototype[
|
|
91
|
+
DfuActionRequest.prototype['filename'] = undefined;
|
|
92
92
|
var _default = exports["default"] = DfuActionRequest;
|
|
@@ -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 EmailNotification model module.
|
|
28
28
|
* @module model/EmailNotification
|
|
29
|
-
* @version 1.0.
|
|
29
|
+
* @version 1.0.34-beta.2
|
|
30
30
|
*/
|
|
31
31
|
var EmailNotification = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,8 +59,8 @@ var EmailNotification = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new EmailNotification();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty('email')) {
|
|
63
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
64
64
|
}
|
|
65
65
|
} else if (data === null) {
|
|
66
66
|
return null;
|
|
@@ -77,8 +77,8 @@ var EmailNotification = /*#__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 `email` to be a primitive type in the JSON string but got " + data[
|
|
80
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
81
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
82
82
|
}
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
@@ -88,5 +88,5 @@ var EmailNotification = /*#__PURE__*/function () {
|
|
|
88
88
|
* Email Address
|
|
89
89
|
* @member {String} email
|
|
90
90
|
*/
|
|
91
|
-
EmailNotification.prototype[
|
|
91
|
+
EmailNotification.prototype['email'] = undefined;
|
|
92
92
|
var _default = exports["default"] = EmailNotification;
|
|
@@ -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,13 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The EnvironmentVariables model module.
|
|
31
31
|
* @module model/EnvironmentVariables
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.34-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var EnvironmentVariables = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>EnvironmentVariables</code>.
|
|
37
37
|
* @alias module:model/EnvironmentVariables
|
|
38
|
-
* @param environmentVariables {Object.<String, String>}
|
|
38
|
+
* @param environmentVariables {Object.<String, String>}
|
|
39
39
|
*/
|
|
40
40
|
function EnvironmentVariables(environmentVariables) {
|
|
41
41
|
_classCallCheck(this, EnvironmentVariables);
|
|
@@ -50,7 +50,7 @@ var EnvironmentVariables = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(EnvironmentVariables, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, environmentVariables) {
|
|
53
|
-
obj[
|
|
53
|
+
obj['environment_variables'] = environmentVariables;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,9 +65,9 @@ var EnvironmentVariables = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new EnvironmentVariables();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
70
|
-
String:
|
|
68
|
+
if (data.hasOwnProperty('environment_variables')) {
|
|
69
|
+
obj['environment_variables'] = _ApiClient["default"].convertToType(data['environment_variables'], {
|
|
70
|
+
'String': 'String'
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
} else if (data === null) {
|
|
@@ -108,5 +108,5 @@ EnvironmentVariables.RequiredProperties = ["environment_variables"];
|
|
|
108
108
|
/**
|
|
109
109
|
* @member {Object.<String, String>} environment_variables
|
|
110
110
|
*/
|
|
111
|
-
EnvironmentVariables.prototype[
|
|
111
|
+
EnvironmentVariables.prototype['environment_variables'] = undefined;
|
|
112
112
|
var _default = exports["default"] = EnvironmentVariables;
|
package/dist/model/Error.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,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Error model module.
|
|
31
31
|
* @module model/Error
|
|
32
|
-
* @version 1.0.
|
|
32
|
+
* @version 1.0.34-beta.2
|
|
33
33
|
*/
|
|
34
34
|
var Error = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -52,9 +52,9 @@ var Error = /*#__PURE__*/function () {
|
|
|
52
52
|
return _createClass(Error, null, [{
|
|
53
53
|
key: "initialize",
|
|
54
54
|
value: function initialize(obj, err, code, status) {
|
|
55
|
-
obj[
|
|
56
|
-
obj[
|
|
57
|
-
obj[
|
|
55
|
+
obj['err'] = err;
|
|
56
|
+
obj['code'] = code;
|
|
57
|
+
obj['status'] = status;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -69,23 +69,23 @@ var Error = /*#__PURE__*/function () {
|
|
|
69
69
|
value: function constructFromObject(data, obj) {
|
|
70
70
|
if (data) {
|
|
71
71
|
obj = obj || new Error();
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty('err')) {
|
|
73
|
+
obj['err'] = _ApiClient["default"].convertToType(data['err'], 'String');
|
|
74
74
|
}
|
|
75
|
-
if (data.hasOwnProperty(
|
|
76
|
-
obj[
|
|
75
|
+
if (data.hasOwnProperty('code')) {
|
|
76
|
+
obj['code'] = _ApiClient["default"].convertToType(data['code'], 'Number');
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty('status')) {
|
|
79
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty('request')) {
|
|
82
|
+
obj['request'] = _ApiClient["default"].convertToType(data['request'], 'String');
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty('details')) {
|
|
85
|
+
obj['details'] = _ApiClient["default"].convertToType(data['details'], Object);
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty('debug')) {
|
|
88
|
+
obj['debug'] = _ApiClient["default"].convertToType(data['debug'], 'String');
|
|
89
89
|
}
|
|
90
90
|
} else if (data === null) {
|
|
91
91
|
return null;
|
|
@@ -117,20 +117,20 @@ var Error = /*#__PURE__*/function () {
|
|
|
117
117
|
} finally {
|
|
118
118
|
_iterator.f();
|
|
119
119
|
}
|
|
120
|
-
if (data[
|
|
121
|
-
throw new Error("Expected the field `err` to be a primitive type in the JSON string but got " + data[
|
|
120
|
+
if (data['err'] && !(typeof data['err'] === 'string' || data['err'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `err` to be a primitive type in the JSON string but got " + data['err']);
|
|
122
122
|
}
|
|
123
123
|
// ensure the json data is a string
|
|
124
|
-
if (data[
|
|
125
|
-
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data[
|
|
124
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
125
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
126
126
|
}
|
|
127
127
|
// ensure the json data is a string
|
|
128
|
-
if (data[
|
|
129
|
-
throw new Error("Expected the field `request` to be a primitive type in the JSON string but got " + data[
|
|
128
|
+
if (data['request'] && !(typeof data['request'] === 'string' || data['request'] instanceof String)) {
|
|
129
|
+
throw new Error("Expected the field `request` to be a primitive type in the JSON string but got " + data['request']);
|
|
130
130
|
}
|
|
131
131
|
// ensure the json data is a string
|
|
132
|
-
if (data[
|
|
133
|
-
throw new Error("Expected the field `debug` to be a primitive type in the JSON string but got " + data[
|
|
132
|
+
if (data['debug'] && !(typeof data['debug'] === 'string' || data['debug'] instanceof String)) {
|
|
133
|
+
throw new Error("Expected the field `debug` to be a primitive type in the JSON string but got " + data['debug']);
|
|
134
134
|
}
|
|
135
135
|
return true;
|
|
136
136
|
}
|
|
@@ -142,32 +142,32 @@ Error.RequiredProperties = ["err", "code", "status"];
|
|
|
142
142
|
* Human readable error message.
|
|
143
143
|
* @member {String} err
|
|
144
144
|
*/
|
|
145
|
-
Error.prototype[
|
|
145
|
+
Error.prototype['err'] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* The HTTP error code associated with the error.
|
|
149
149
|
* @member {Number} code
|
|
150
150
|
*/
|
|
151
|
-
Error.prototype[
|
|
151
|
+
Error.prototype['code'] = undefined;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
154
|
* Machine readable representation of the HTTP error code.
|
|
155
155
|
* @member {String} status
|
|
156
156
|
*/
|
|
157
|
-
Error.prototype[
|
|
157
|
+
Error.prototype['status'] = undefined;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
160
|
* @member {String} request
|
|
161
161
|
*/
|
|
162
|
-
Error.prototype[
|
|
162
|
+
Error.prototype['request'] = undefined;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
165
|
* @member {Object} details
|
|
166
166
|
*/
|
|
167
|
-
Error.prototype[
|
|
167
|
+
Error.prototype['details'] = undefined;
|
|
168
168
|
|
|
169
169
|
/**
|
|
170
170
|
* @member {String} debug
|
|
171
171
|
*/
|
|
172
|
-
Error.prototype[
|
|
172
|
+
Error.prototype['debug'] = undefined;
|
|
173
173
|
var _default = exports["default"] = Error;
|