@blues-inc/notehub-js 3.0.0-beta.8 → 3.0.0-beta.9
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 +6 -7
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +1 -1
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +105 -161
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +1 -1
- package/dist/api/ProjectApi.js +1 -1
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/UsageApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +1 -1
- package/dist/model/Alert.js +1 -1
- package/dist/model/AlertDataInner.js +1 -1
- package/dist/model/AlertNotificationsInner.js +1 -1
- package/dist/model/AwsRoute.js +1 -1
- package/dist/model/AzureRoute.js +1 -1
- package/dist/model/BillingAccount.js +1 -1
- package/dist/model/BlynkRoute.js +1 -1
- package/dist/model/Body.js +1 -1
- package/dist/model/CellularPlan.js +1 -1
- package/dist/model/CloneProjectRequest.js +1 -1
- package/dist/model/Contact.js +1 -1
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +1 -1
- package/dist/model/CreateProductRequest.js +1 -1
- package/dist/model/CreateProjectRequest.js +1 -1
- package/dist/model/CreateUpdateRepository.js +1 -1
- package/dist/model/CurrentFirmware.js +1 -1
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +1 -1
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +1 -1
- package/dist/model/DataUsage.js +1 -1
- package/dist/model/DatacakeRoute.js +1 -1
- package/dist/model/DeleteDeviceFromFleetsRequest.js +1 -1
- package/dist/model/DeleteNotefilesRequest.js +1 -1
- package/dist/model/Device.js +14 -1
- package/dist/model/DeviceDfuHistory.js +1 -1
- package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +1 -1
- package/dist/model/DeviceDfuStateMachineNode.js +1 -1
- package/dist/model/DeviceDfuStatus.js +1 -1
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +1 -1
- package/dist/model/DeviceTowerInfo.js +1 -1
- package/dist/model/DeviceUsage.js +1 -1
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +1 -1
- package/dist/model/EnvVar.js +1 -1
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +1 -1
- package/dist/model/Event.js +1 -1
- package/dist/model/Filter.js +1 -1
- package/dist/model/Firmware.js +1 -1
- package/dist/model/FirmwareInfo.js +1 -1
- package/dist/model/Fleet.js +1 -1
- package/dist/model/FleetConnectivityAssurance.js +1 -1
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/GetDataUsage200Response.js +1 -1
- package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
- package/dist/model/GetDbNote200Response.js +1 -1
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
- package/dist/model/GetDeviceFleets200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
- package/dist/model/GetDeviceLatestEvents200Response.js +1 -1
- package/dist/model/GetDevicePlans200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
- package/dist/model/GetDeviceSessions200Response.js +1 -1
- package/dist/model/GetDevices200Response.js +1 -1
- package/dist/model/GetEvents200Response.js +1 -1
- package/dist/model/GetEventsByCursor200Response.js +1 -1
- package/dist/model/GetNotefile200Response.js +1 -1
- package/dist/model/GetProducts200Response.js +1 -1
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetSessionsUsage200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/GoogleRoute.js +1 -1
- package/dist/model/HttpRoute.js +1 -1
- package/dist/model/Location.js +1 -1
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +1 -1
- package/dist/model/Monitor.js +1 -1
- package/dist/model/MonitorAlertRoutesInner.js +1 -1
- package/dist/model/MqttRoute.js +1 -1
- package/dist/model/Note.js +90 -10
- package/dist/model/{ListNotefiles200Response.js → NoteInput.js} +29 -36
- package/dist/model/Notefile.js +159 -0
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +1 -1
- package/dist/model/NotehubRouteSummary.js +1 -1
- package/dist/model/OAuth2Error.js +1 -1
- package/dist/model/OAuth2TokenResponse.js +1 -1
- package/dist/model/PersonalAccessToken.js +1 -1
- package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
- package/dist/model/PersonalAccessTokenInfo.js +1 -1
- package/dist/model/PersonalAccessTokenSecret.js +1 -1
- package/dist/model/Product.js +1 -1
- package/dist/model/Project.js +1 -1
- package/dist/model/ProjectMember.js +1 -1
- package/dist/model/ProvisionDeviceRequest.js +1 -1
- package/dist/model/ProxyRoute.js +1 -1
- package/dist/model/QubitroRoute.js +1 -1
- package/dist/model/RadRoute.js +1 -1
- package/dist/model/Repository.js +1 -1
- package/dist/model/RouteLog.js +1 -1
- package/dist/model/RouteTransformSettings.js +1 -1
- package/dist/model/S3ArchiveRoute.js +1 -1
- package/dist/model/SatellitePlan.js +1 -1
- package/dist/model/SchemaProperty.js +1 -1
- package/dist/model/SignalDevice200Response.js +1 -1
- package/dist/model/SimUsage.js +1 -1
- package/dist/model/SlackBearerNotification.js +1 -1
- package/dist/model/SlackRoute.js +1 -1
- package/dist/model/SlackWebHookNotification.js +1 -1
- package/dist/model/SnowflakeRoute.js +1 -1
- package/dist/model/SnowpipeStreamingRoute.js +1 -1
- package/dist/model/ThingworxRoute.js +1 -1
- package/dist/model/TowerLocation.js +1 -1
- package/dist/model/TwilioRoute.js +1 -1
- package/dist/model/UpdateFleetRequest.js +1 -1
- package/dist/model/UploadMetadata.js +1 -1
- package/dist/model/UsageData.js +1 -1
- package/dist/model/UsageEventsData.js +5 -16
- package/dist/model/UsageEventsResponse.js +1 -1
- package/dist/model/UsageRouteLogsData.js +1 -1
- package/dist/model/UsageSessionsData.js +5 -15
- package/dist/model/UserDfuStateMachine.js +1 -1
- package/dist/model/UserDfuStateMachineStatus.js +1 -1
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/ListPendingNotefiles200Response.js +0 -115
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetDbNote200Response model module.
|
|
28
28
|
* @module model/GetDbNote200Response
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.9
|
|
30
30
|
*/
|
|
31
31
|
var GetDbNote200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceEnvironmentVariablesByPin200Response model module.
|
|
31
31
|
* @module model/GetDeviceEnvironmentVariablesByPin200Response
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.9
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceEnvironmentVariablesByPin200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceFleets200Response model module.
|
|
32
32
|
* @module model/GetDeviceFleets200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceFleets200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceHealthLog200Response model module.
|
|
32
32
|
* @module model/GetDeviceHealthLog200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceHealthLog200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDeviceHealthLog200ResponseHealthLogInner model module.
|
|
31
31
|
* @module model/GetDeviceHealthLog200ResponseHealthLogInner
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.9
|
|
33
33
|
*/
|
|
34
34
|
var GetDeviceHealthLog200ResponseHealthLogInner = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceLatestEvents200Response model module.
|
|
32
32
|
* @module model/GetDeviceLatestEvents200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceLatestEvents200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDevicePlans200Response model module.
|
|
32
32
|
* @module model/GetDevicePlans200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDevicePlans200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The GetDevicePublicKey200Response model module.
|
|
31
31
|
* @module model/GetDevicePublicKey200Response
|
|
32
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.9
|
|
33
33
|
*/
|
|
34
34
|
var GetDevicePublicKey200Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDevicePublicKeys200Response model module.
|
|
32
32
|
* @module model/GetDevicePublicKeys200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDevicePublicKeys200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetDevicePublicKeys200ResponseDevicePublicKeysInner model module.
|
|
28
28
|
* @module model/GetDevicePublicKeys200ResponseDevicePublicKeysInner
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.9
|
|
30
30
|
*/
|
|
31
31
|
var GetDevicePublicKeys200ResponseDevicePublicKeysInner = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDeviceSessions200Response model module.
|
|
32
32
|
* @module model/GetDeviceSessions200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDeviceSessions200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetDevices200Response model module.
|
|
32
32
|
* @module model/GetDevices200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetDevices200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetEvents200Response model module.
|
|
32
32
|
* @module model/GetEvents200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetEvents200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetEventsByCursor200Response model module.
|
|
32
32
|
* @module model/GetEventsByCursor200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetEventsByCursor200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The GetNotefile200Response model module.
|
|
28
28
|
* @module model/GetNotefile200Response
|
|
29
|
-
* @version 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.9
|
|
30
30
|
*/
|
|
31
31
|
var GetNotefile200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProducts200Response model module.
|
|
32
32
|
* @module model/GetProducts200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetProducts200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjectMembers200Response model module.
|
|
32
32
|
* @module model/GetProjectMembers200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The GetProjects200Response model module.
|
|
32
32
|
* @module model/GetProjects200Response
|
|
33
|
-
* @version 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetProjects200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ 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 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetSessionsUsage200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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 3.0.0-beta.
|
|
33
|
+
* @version 3.0.0-beta.9
|
|
34
34
|
*/
|
|
35
35
|
var GetWebhooks200Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.9
|
|
32
32
|
*/
|
|
33
33
|
var GoogleRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/HttpRoute.js
CHANGED
|
@@ -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 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.9
|
|
32
32
|
*/
|
|
33
33
|
var HttpRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/Location.js
CHANGED
|
@@ -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 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.9
|
|
30
30
|
*/
|
|
31
31
|
var Login200Response = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -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 3.0.0-beta.
|
|
29
|
+
* @version 3.0.0-beta.9
|
|
30
30
|
*/
|
|
31
31
|
var LoginRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/dist/model/Monitor.js
CHANGED
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The MonitorAlertRoutesInner model module.
|
|
33
33
|
* @module model/MonitorAlertRoutesInner
|
|
34
|
-
* @version 3.0.0-beta.
|
|
34
|
+
* @version 3.0.0-beta.9
|
|
35
35
|
*/
|
|
36
36
|
var MonitorAlertRoutesInner = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
package/dist/model/MqttRoute.js
CHANGED
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The MqttRoute model module.
|
|
30
30
|
* @module model/MqttRoute
|
|
31
|
-
* @version 3.0.0-beta.
|
|
31
|
+
* @version 3.0.0-beta.9
|
|
32
32
|
*/
|
|
33
33
|
var MqttRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
package/dist/model/Note.js
CHANGED
|
@@ -7,6 +7,9 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
12
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10
13
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
14
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
@@ -26,16 +29,19 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
29
|
/**
|
|
27
30
|
* The Note model module.
|
|
28
31
|
* @module model/Note
|
|
29
|
-
* @version 3.0.0-beta.
|
|
32
|
+
* @version 3.0.0-beta.9
|
|
30
33
|
*/
|
|
31
34
|
var Note = /*#__PURE__*/function () {
|
|
32
35
|
/**
|
|
33
36
|
* Constructs a new <code>Note</code>.
|
|
34
37
|
* @alias module:model/Note
|
|
38
|
+
* @param body {Object.<String, Object>} Arbitrary user-defined JSON for the note.
|
|
39
|
+
* @param id {String} Note name/identifier (e.g., \"1:435\", \"my_note\").
|
|
40
|
+
* @param time {Number} Unix epoch seconds.
|
|
35
41
|
*/
|
|
36
|
-
function Note() {
|
|
42
|
+
function Note(body, id, time) {
|
|
37
43
|
_classCallCheck(this, Note);
|
|
38
|
-
Note.initialize(this);
|
|
44
|
+
Note.initialize(this, body, id, time);
|
|
39
45
|
}
|
|
40
46
|
|
|
41
47
|
/**
|
|
@@ -45,7 +51,11 @@ var Note = /*#__PURE__*/function () {
|
|
|
45
51
|
*/
|
|
46
52
|
return _createClass(Note, null, [{
|
|
47
53
|
key: "initialize",
|
|
48
|
-
value: function initialize(obj) {
|
|
54
|
+
value: function initialize(obj, body, id, time) {
|
|
55
|
+
obj['body'] = body;
|
|
56
|
+
obj['id'] = id;
|
|
57
|
+
obj['time'] = time;
|
|
58
|
+
}
|
|
49
59
|
|
|
50
60
|
/**
|
|
51
61
|
* Constructs a <code>Note</code> from a plain JavaScript object, optionally creating a new instance.
|
|
@@ -60,10 +70,27 @@ var Note = /*#__PURE__*/function () {
|
|
|
60
70
|
if (data) {
|
|
61
71
|
obj = obj || new Note();
|
|
62
72
|
if (data.hasOwnProperty('body')) {
|
|
63
|
-
obj['body'] = _ApiClient["default"].convertToType(data['body'],
|
|
73
|
+
obj['body'] = _ApiClient["default"].convertToType(data['body'], {
|
|
74
|
+
'String': Object
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('edge')) {
|
|
78
|
+
obj['edge'] = _ApiClient["default"].convertToType(data['edge'], 'Boolean');
|
|
79
|
+
}
|
|
80
|
+
if (data.hasOwnProperty('id')) {
|
|
81
|
+
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
64
82
|
}
|
|
65
83
|
if (data.hasOwnProperty('payload')) {
|
|
66
|
-
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], '
|
|
84
|
+
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'Blob');
|
|
85
|
+
}
|
|
86
|
+
if (data.hasOwnProperty('pending')) {
|
|
87
|
+
obj['pending'] = _ApiClient["default"].convertToType(data['pending'], 'Boolean');
|
|
88
|
+
}
|
|
89
|
+
if (data.hasOwnProperty('time')) {
|
|
90
|
+
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Number');
|
|
91
|
+
}
|
|
92
|
+
if (data.hasOwnProperty('where')) {
|
|
93
|
+
obj['where'] = _ApiClient["default"].convertToType(data['where'], 'String');
|
|
67
94
|
}
|
|
68
95
|
} else if (data === null) {
|
|
69
96
|
return null;
|
|
@@ -79,21 +106,74 @@ var Note = /*#__PURE__*/function () {
|
|
|
79
106
|
}, {
|
|
80
107
|
key: "validateJSON",
|
|
81
108
|
value: function validateJSON(data) {
|
|
109
|
+
// check to make sure all required properties are present in the JSON string
|
|
110
|
+
var _iterator = _createForOfIteratorHelper(Note.RequiredProperties),
|
|
111
|
+
_step;
|
|
112
|
+
try {
|
|
113
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
114
|
+
var property = _step.value;
|
|
115
|
+
if (!data[property]) {
|
|
116
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
// ensure the json data is a string
|
|
120
|
+
} catch (err) {
|
|
121
|
+
_iterator.e(err);
|
|
122
|
+
} finally {
|
|
123
|
+
_iterator.f();
|
|
124
|
+
}
|
|
125
|
+
if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']);
|
|
127
|
+
}
|
|
82
128
|
// ensure the json data is a string
|
|
83
|
-
if (data['
|
|
84
|
-
throw new Error("Expected the field `
|
|
129
|
+
if (data['where'] && !(typeof data['where'] === 'string' || data['where'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `where` to be a primitive type in the JSON string but got " + data['where']);
|
|
85
131
|
}
|
|
86
132
|
return true;
|
|
87
133
|
}
|
|
88
134
|
}]);
|
|
89
135
|
}();
|
|
136
|
+
Note.RequiredProperties = ["body", "id", "time"];
|
|
137
|
+
|
|
90
138
|
/**
|
|
91
|
-
*
|
|
139
|
+
* Arbitrary user-defined JSON for the note.
|
|
140
|
+
* @member {Object.<String, Object>} body
|
|
92
141
|
*/
|
|
93
142
|
Note.prototype['body'] = undefined;
|
|
94
143
|
|
|
95
144
|
/**
|
|
96
|
-
*
|
|
145
|
+
* True if originated from an edge source.
|
|
146
|
+
* @member {Boolean} edge
|
|
147
|
+
*/
|
|
148
|
+
Note.prototype['edge'] = undefined;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Note name/identifier (e.g., \"1:435\", \"my_note\").
|
|
152
|
+
* @member {String} id
|
|
153
|
+
*/
|
|
154
|
+
Note.prototype['id'] = undefined;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Optional base64-encoded payload.
|
|
158
|
+
* @member {Blob} payload
|
|
97
159
|
*/
|
|
98
160
|
Note.prototype['payload'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* True if the note is pending delivery or processing.
|
|
164
|
+
* @member {Boolean} pending
|
|
165
|
+
*/
|
|
166
|
+
Note.prototype['pending'] = undefined;
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Unix epoch seconds.
|
|
170
|
+
* @member {Number} time
|
|
171
|
+
*/
|
|
172
|
+
Note.prototype['time'] = undefined;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Optional location/metadata string.
|
|
176
|
+
* @member {String} where
|
|
177
|
+
*/
|
|
178
|
+
Note.prototype['where'] = undefined;
|
|
99
179
|
var _default = exports["default"] = Note;
|
|
@@ -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 3.0.0-beta.
|
|
27
|
+
* The NoteInput model module.
|
|
28
|
+
* @module model/NoteInput
|
|
29
|
+
* @version 3.0.0-beta.9
|
|
30
30
|
*/
|
|
31
|
-
var
|
|
31
|
+
var NoteInput = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
33
|
-
* Constructs a new <code>
|
|
34
|
-
* @alias module:model/
|
|
33
|
+
* Constructs a new <code>NoteInput</code>.
|
|
34
|
+
* @alias module:model/NoteInput
|
|
35
35
|
*/
|
|
36
|
-
function
|
|
37
|
-
_classCallCheck(this,
|
|
38
|
-
|
|
36
|
+
function NoteInput() {
|
|
37
|
+
_classCallCheck(this, NoteInput);
|
|
38
|
+
NoteInput.initialize(this);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
/**
|
|
@@ -43,30 +43,29 @@ var ListNotefiles200Response = /*#__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(NoteInput, null, [{
|
|
47
47
|
key: "initialize",
|
|
48
48
|
value: function initialize(obj) {}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Constructs a <code>
|
|
51
|
+
* Constructs a <code>NoteInput</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/NoteInput} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/NoteInput} The populated <code>NoteInput</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 NoteInput();
|
|
62
|
+
if (data.hasOwnProperty('body')) {
|
|
63
|
+
obj['body'] = _ApiClient["default"].convertToType(data['body'], {
|
|
64
|
+
'String': Object
|
|
65
|
+
});
|
|
64
66
|
}
|
|
65
|
-
if (data.hasOwnProperty('
|
|
66
|
-
obj['
|
|
67
|
-
}
|
|
68
|
-
if (data.hasOwnProperty('total')) {
|
|
69
|
-
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
|
|
67
|
+
if (data.hasOwnProperty('payload')) {
|
|
68
|
+
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'Blob');
|
|
70
69
|
}
|
|
71
70
|
} else if (data === null) {
|
|
72
71
|
return null;
|
|
@@ -75,9 +74,9 @@ var ListNotefiles200Response = /*#__PURE__*/function () {
|
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
/**
|
|
78
|
-
* Validates the JSON data with respect to <code>
|
|
77
|
+
* Validates the JSON data with respect to <code>NoteInput</code>.
|
|
79
78
|
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>
|
|
79
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>NoteInput</code>.
|
|
81
80
|
*/
|
|
82
81
|
}, {
|
|
83
82
|
key: "validateJSON",
|
|
@@ -87,20 +86,14 @@ var ListNotefiles200Response = /*#__PURE__*/function () {
|
|
|
87
86
|
}]);
|
|
88
87
|
}();
|
|
89
88
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @member {
|
|
92
|
-
*/
|
|
93
|
-
ListNotefiles200Response.prototype['changes'] = undefined;
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
97
|
-
* @member {Object} info
|
|
89
|
+
* Arbitrary user-defined JSON for the note.
|
|
90
|
+
* @member {Object.<String, Object>} body
|
|
98
91
|
*/
|
|
99
|
-
|
|
92
|
+
NoteInput.prototype['body'] = undefined;
|
|
100
93
|
|
|
101
94
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @member {
|
|
95
|
+
* Optional base64-encoded payload.
|
|
96
|
+
* @member {Blob} payload
|
|
104
97
|
*/
|
|
105
|
-
|
|
106
|
-
var _default = exports["default"] =
|
|
98
|
+
NoteInput.prototype['payload'] = undefined;
|
|
99
|
+
var _default = exports["default"] = NoteInput;
|