@blues-inc/notehub-js 2.2.1-beta.3 → 2.3.0

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.
Files changed (144) hide show
  1. package/README.md +241 -249
  2. package/dist/ApiClient.js +154 -154
  3. package/dist/api/AlertApi.js +22 -22
  4. package/dist/api/AuthorizationApi.js +31 -31
  5. package/dist/api/BillingAccountApi.js +14 -14
  6. package/dist/api/DeviceApi.js +962 -974
  7. package/dist/api/EventApi.js +178 -178
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +601 -601
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/UsageApi.js +44 -44
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/index.js +77 -77
  15. package/dist/model/Alert.js +74 -76
  16. package/dist/model/AlertDataInner.js +35 -35
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/AwsRoute.js +65 -65
  19. package/dist/model/AzureRoute.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/BlynkRoute.js +28 -28
  23. package/dist/model/Body.js +5 -5
  24. package/dist/model/CellularPlan.js +34 -34
  25. package/dist/model/CloneProjectRequest.js +20 -20
  26. package/dist/model/Contact.js +22 -22
  27. package/dist/model/CreateFleetRequest.js +17 -17
  28. package/dist/model/CreateMonitor.js +125 -126
  29. package/dist/model/CreateProductRequest.js +22 -22
  30. package/dist/model/CreateProjectRequest.js +16 -16
  31. package/dist/model/CreateUpdateRepository.js +17 -17
  32. package/dist/model/CurrentFirmware.js +12 -12
  33. package/dist/model/DFUEnv.js +12 -12
  34. package/dist/model/DFUState.js +65 -65
  35. package/dist/model/DataField.js +7 -7
  36. package/dist/model/DataSetField.js +19 -19
  37. package/dist/model/DataUsage.js +14 -14
  38. package/dist/model/DatacakeRoute.js +35 -35
  39. package/dist/model/{DeleteDeviceFromFleetsRequest.js → DeleteDeviceFleetsRequest.js} +26 -26
  40. package/dist/model/Device.js +101 -102
  41. package/dist/model/DeviceDfuHistory.js +19 -20
  42. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  43. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  44. package/dist/model/DeviceDfuStateMachine.js +24 -25
  45. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  46. package/dist/model/DeviceDfuStatus.js +20 -20
  47. package/dist/model/DeviceDfuStatusPage.js +12 -13
  48. package/dist/model/DeviceSession.js +221 -221
  49. package/dist/model/DeviceTowerInfo.js +14 -14
  50. package/dist/model/DeviceUsage.js +32 -32
  51. package/dist/model/DfuActionRequest.js +7 -7
  52. package/dist/model/EmailNotification.js +7 -7
  53. package/dist/model/EnvTreeJsonNode.js +67 -69
  54. package/dist/model/EnvVar.js +18 -18
  55. package/dist/model/EnvironmentVariables.js +8 -8
  56. package/dist/model/Error.js +31 -31
  57. package/dist/model/Event.js +248 -248
  58. package/dist/model/Filter.js +16 -16
  59. package/dist/model/Firmware.js +49 -49
  60. package/dist/model/FirmwareInfo.js +60 -60
  61. package/dist/model/Fleet.js +35 -35
  62. package/dist/model/FleetConnectivityAssurance.js +6 -6
  63. package/dist/model/GetAlerts200Response.js +14 -15
  64. package/dist/model/GetBillingAccounts200Response.js +9 -10
  65. package/dist/model/GetDataUsage200Response.js +9 -10
  66. package/dist/model/GetDataUsage200ResponseDataInner.js +40 -41
  67. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  68. package/dist/model/GetDeviceFleets200Response.js +11 -12
  69. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  70. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  71. package/dist/model/{GetDeviceLatestEvents200Response.js → GetDeviceLatest200Response.js} +25 -26
  72. package/dist/model/GetDevicePlans200Response.js +9 -10
  73. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  74. package/dist/model/GetDeviceSessions200Response.js +16 -17
  75. package/dist/model/GetProducts200Response.js +9 -10
  76. package/dist/model/{GetDevicePublicKeys200Response.js → GetProjectDevicePublicKeys200Response.js} +37 -38
  77. package/dist/model/{GetDevicePublicKeys200ResponseDevicePublicKeysInner.js → GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js} +28 -28
  78. package/dist/model/{GetDevices200Response.js → GetProjectDevices200Response.js} +34 -35
  79. package/dist/model/{GetEvents200Response.js → GetProjectEvents200Response.js} +38 -39
  80. package/dist/model/{GetEventsByCursor200Response.js → GetProjectEventsByCursor200Response.js} +41 -42
  81. package/dist/model/GetProjectMembers200Response.js +11 -12
  82. package/dist/model/GetProjects200Response.js +9 -10
  83. package/dist/model/GetSessionsUsage200Response.js +11 -12
  84. package/dist/model/GetWebhooks200Response.js +9 -10
  85. package/dist/model/GoogleRoute.js +33 -33
  86. package/dist/model/{GetNotefile200Response.js → HandleNoteChanges200Response.js} +27 -27
  87. package/dist/model/{GetDbNote200Response.js → HandleNoteGet200Response.js} +29 -29
  88. package/dist/model/{SignalDevice200Response.js → HandleNoteSignal200Response.js} +21 -21
  89. package/dist/model/{ListPendingNotefiles200Response.js → HandleNotefileChanges200Response.js} +27 -36
  90. package/dist/model/HandleNotefileChangesPending200Response.js +115 -0
  91. package/dist/model/{DeleteNotefilesRequest.js → HandleNotefileDeleteRequest.js} +24 -24
  92. package/dist/model/HttpRoute.js +35 -35
  93. package/dist/model/Location.js +40 -40
  94. package/dist/model/Login200Response.js +7 -7
  95. package/dist/model/LoginRequest.js +12 -12
  96. package/dist/model/Monitor.js +99 -100
  97. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  98. package/dist/model/MqttRoute.js +68 -68
  99. package/dist/model/Note.js +15 -95
  100. package/dist/model/NotefileSchema.js +18 -19
  101. package/dist/model/NotehubRoute.js +98 -98
  102. package/dist/model/NotehubRouteSummary.js +23 -23
  103. package/dist/model/OAuth2Error.js +20 -20
  104. package/dist/model/OAuth2TokenResponse.js +23 -23
  105. package/dist/model/PersonalAccessToken.js +34 -34
  106. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  107. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  108. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  109. package/dist/model/{ProvisionDeviceRequest.js → PostProvisionProjectDeviceRequest.js} +36 -36
  110. package/dist/model/Product.js +26 -26
  111. package/dist/model/Project.js +34 -34
  112. package/dist/model/ProjectMember.js +22 -22
  113. package/dist/model/ProxyRoute.js +29 -29
  114. package/dist/model/{AddDeviceToFleetsRequest.js → PutDeviceFleetsRequest.js} +26 -26
  115. package/dist/model/QubitroRoute.js +33 -33
  116. package/dist/model/RadRoute.js +31 -31
  117. package/dist/model/Repository.js +22 -22
  118. package/dist/model/Role.js +9 -9
  119. package/dist/model/RouteLog.js +38 -38
  120. package/dist/model/RouteTransformSettings.js +18 -18
  121. package/dist/model/S3ArchiveRoute.js +79 -79
  122. package/dist/model/SatellitePlan.js +26 -26
  123. package/dist/model/SchemaProperty.js +36 -38
  124. package/dist/model/SimUsage.js +19 -19
  125. package/dist/model/SlackBearerNotification.js +25 -25
  126. package/dist/model/SlackRoute.js +48 -48
  127. package/dist/model/SlackWebHookNotification.js +20 -20
  128. package/dist/model/SnowflakeRoute.js +45 -45
  129. package/dist/model/ThingworxRoute.js +33 -33
  130. package/dist/model/TowerLocation.js +54 -54
  131. package/dist/model/TwilioRoute.js +43 -43
  132. package/dist/model/UpdateFleetRequest.js +30 -30
  133. package/dist/model/UploadMetadata.js +64 -64
  134. package/dist/model/UsageData.js +18 -18
  135. package/dist/model/UsageEventsData.js +29 -29
  136. package/dist/model/UsageEventsResponse.js +11 -12
  137. package/dist/model/UsageRouteLogsData.js +27 -27
  138. package/dist/model/UsageSessionsData.js +27 -27
  139. package/dist/model/UserDfuStateMachine.js +20 -20
  140. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  141. package/dist/model/UserFirmwareInfo.js +12 -12
  142. package/dist/model/WebhookSettings.js +15 -15
  143. package/package.json +3 -3
  144. package/dist/model/Notefile.js +0 -147
@@ -14,7 +14,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  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); } /**
16
16
  * Notehub API
17
- * The OpenAPI definition for the Notehub.io API.
17
+ * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
19
  * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
@@ -25,10 +25,10 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
25
  *
26
26
  */
27
27
  /**
28
- * Enum class Role.
29
- * @enum {}
30
- * @readonly
31
- */
28
+ * Enum class Role.
29
+ * @enum {}
30
+ * @readonly
31
+ */
32
32
  var Role = exports["default"] = /*#__PURE__*/function () {
33
33
  function Role() {
34
34
  _classCallCheck(this, Role);
@@ -62,10 +62,10 @@ var Role = exports["default"] = /*#__PURE__*/function () {
62
62
  key: "constructFromObject",
63
63
  value:
64
64
  /**
65
- * Returns a <code>Role</code> enum value from a Javascript object name.
66
- * @param {Object} data The plain JavaScript object containing the name of the enum value.
67
- * @return {module:model/Role} The enum <code>Role</code> value.
68
- */
65
+ * Returns a <code>Role</code> enum value from a Javascript object name.
66
+ * @param {Object} data The plain JavaScript object containing the name of the enum value.
67
+ * @return {module:model/Role} The enum <code>Role</code> value.
68
+ */
69
69
  function constructFromObject(object) {
70
70
  return object;
71
71
  }
@@ -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 RouteLog model module.
28
28
  * @module model/RouteLog
29
- * @version 2.2.1-beta.3
29
+ * @version 2.3.0
30
30
  */
31
31
  var RouteLog = /*#__PURE__*/function () {
32
32
  /**
@@ -59,29 +59,29 @@ var RouteLog = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new RouteLog();
62
- if (data.hasOwnProperty('attn')) {
63
- obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
62
+ if (data.hasOwnProperty("attn")) {
63
+ obj["attn"] = _ApiClient["default"].convertToType(data["attn"], "Boolean");
64
64
  }
65
- if (data.hasOwnProperty('date')) {
66
- obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String');
65
+ if (data.hasOwnProperty("date")) {
66
+ obj["date"] = _ApiClient["default"].convertToType(data["date"], "String");
67
67
  }
68
- if (data.hasOwnProperty('duration')) {
69
- obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
68
+ if (data.hasOwnProperty("duration")) {
69
+ obj["duration"] = _ApiClient["default"].convertToType(data["duration"], "Number");
70
70
  }
71
- if (data.hasOwnProperty('event_uid')) {
72
- obj['event_uid'] = _ApiClient["default"].convertToType(data['event_uid'], 'String');
71
+ if (data.hasOwnProperty("event_uid")) {
72
+ obj["event_uid"] = _ApiClient["default"].convertToType(data["event_uid"], "String");
73
73
  }
74
- if (data.hasOwnProperty('route_uid')) {
75
- obj['route_uid'] = _ApiClient["default"].convertToType(data['route_uid'], 'String');
74
+ if (data.hasOwnProperty("route_uid")) {
75
+ obj["route_uid"] = _ApiClient["default"].convertToType(data["route_uid"], "String");
76
76
  }
77
- if (data.hasOwnProperty('status')) {
78
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
77
+ if (data.hasOwnProperty("status")) {
78
+ obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
79
79
  }
80
- if (data.hasOwnProperty('text')) {
81
- obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String');
80
+ if (data.hasOwnProperty("text")) {
81
+ obj["text"] = _ApiClient["default"].convertToType(data["text"], "String");
82
82
  }
83
- if (data.hasOwnProperty('url')) {
84
- obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
83
+ if (data.hasOwnProperty("url")) {
84
+ obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
85
85
  }
86
86
  } else if (data === null) {
87
87
  return null;
@@ -98,28 +98,28 @@ var RouteLog = /*#__PURE__*/function () {
98
98
  key: "validateJSON",
99
99
  value: function validateJSON(data) {
100
100
  // ensure the json data is a string
101
- if (data['date'] && !(typeof data['date'] === 'string' || data['date'] instanceof String)) {
102
- throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data['date']);
101
+ if (data["date"] && !(typeof data["date"] === "string" || data["date"] instanceof String)) {
102
+ throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data["date"]);
103
103
  }
104
104
  // ensure the json data is a string
105
- if (data['event_uid'] && !(typeof data['event_uid'] === 'string' || data['event_uid'] instanceof String)) {
106
- throw new Error("Expected the field `event_uid` to be a primitive type in the JSON string but got " + data['event_uid']);
105
+ if (data["event_uid"] && !(typeof data["event_uid"] === "string" || data["event_uid"] instanceof String)) {
106
+ throw new Error("Expected the field `event_uid` to be a primitive type in the JSON string but got " + data["event_uid"]);
107
107
  }
108
108
  // ensure the json data is a string
109
- if (data['route_uid'] && !(typeof data['route_uid'] === 'string' || data['route_uid'] instanceof String)) {
110
- throw new Error("Expected the field `route_uid` to be a primitive type in the JSON string but got " + data['route_uid']);
109
+ if (data["route_uid"] && !(typeof data["route_uid"] === "string" || data["route_uid"] instanceof String)) {
110
+ throw new Error("Expected the field `route_uid` to be a primitive type in the JSON string but got " + data["route_uid"]);
111
111
  }
112
112
  // ensure the json data is a string
113
- if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
114
- throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
113
+ if (data["status"] && !(typeof data["status"] === "string" || data["status"] instanceof String)) {
114
+ throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data["status"]);
115
115
  }
116
116
  // ensure the json data is a string
117
- if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) {
118
- throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']);
117
+ if (data["text"] && !(typeof data["text"] === "string" || data["text"] instanceof String)) {
118
+ throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data["text"]);
119
119
  }
120
120
  // ensure the json data is a string
121
- if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
122
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
121
+ if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
122
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
123
123
  }
124
124
  return true;
125
125
  }
@@ -129,47 +129,47 @@ var RouteLog = /*#__PURE__*/function () {
129
129
  * If true, an error was returned when routing
130
130
  * @member {Boolean} attn
131
131
  */
132
- RouteLog.prototype['attn'] = undefined;
132
+ RouteLog.prototype["attn"] = undefined;
133
133
 
134
134
  /**
135
135
  * The date of the logs.
136
136
  * @member {String} date
137
137
  */
138
- RouteLog.prototype['date'] = undefined;
138
+ RouteLog.prototype["date"] = undefined;
139
139
 
140
140
  /**
141
141
  * The duration of the route in milliseconds
142
142
  * @member {Number} duration
143
143
  */
144
- RouteLog.prototype['duration'] = undefined;
144
+ RouteLog.prototype["duration"] = undefined;
145
145
 
146
146
  /**
147
147
  * The event UID.
148
148
  * @member {String} event_uid
149
149
  */
150
- RouteLog.prototype['event_uid'] = undefined;
150
+ RouteLog.prototype["event_uid"] = undefined;
151
151
 
152
152
  /**
153
153
  * The route UID.
154
154
  * @member {String} route_uid
155
155
  */
156
- RouteLog.prototype['route_uid'] = undefined;
156
+ RouteLog.prototype["route_uid"] = undefined;
157
157
 
158
158
  /**
159
159
  * The status of the event.
160
160
  * @member {String} status
161
161
  */
162
- RouteLog.prototype['status'] = undefined;
162
+ RouteLog.prototype["status"] = undefined;
163
163
 
164
164
  /**
165
165
  * The response body of the route.
166
166
  * @member {String} text
167
167
  */
168
- RouteLog.prototype['text'] = undefined;
168
+ RouteLog.prototype["text"] = undefined;
169
169
 
170
170
  /**
171
171
  * The URL of the route.
172
172
  * @member {String} url
173
173
  */
174
- RouteLog.prototype['url'] = undefined;
174
+ RouteLog.prototype["url"] = undefined;
175
175
  var _default = exports["default"] = RouteLog;
@@ -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,12 +26,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The RouteTransformSettings model module.
28
28
  * @module model/RouteTransformSettings
29
- * @version 2.2.1-beta.3
29
+ * @version 2.3.0
30
30
  */
31
31
  var RouteTransformSettings = /*#__PURE__*/function () {
32
32
  /**
33
33
  * Constructs a new <code>RouteTransformSettings</code>.
34
- * Settings for transforming route payloads before delivery. Supports format selection and JSONata-based transformations.
34
+ * Settings for transforming route payloads before delivery. Supports format selection and JSONata-based transformations.
35
35
  * @alias module:model/RouteTransformSettings
36
36
  */
37
37
  function RouteTransformSettings() {
@@ -60,14 +60,14 @@ var RouteTransformSettings = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new RouteTransformSettings();
63
- if (data.hasOwnProperty('format')) {
64
- obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String');
63
+ if (data.hasOwnProperty("format")) {
64
+ obj["format"] = _ApiClient["default"].convertToType(data["format"], "String");
65
65
  }
66
- if (data.hasOwnProperty('jsonata')) {
67
- obj['jsonata'] = _ApiClient["default"].convertToType(data['jsonata'], 'String');
66
+ if (data.hasOwnProperty("jsonata")) {
67
+ obj["jsonata"] = _ApiClient["default"].convertToType(data["jsonata"], "String");
68
68
  }
69
- if (data.hasOwnProperty('jsonata_in')) {
70
- obj['jsonata_in'] = _ApiClient["default"].convertToType(data['jsonata_in'], 'String');
69
+ if (data.hasOwnProperty("jsonata_in")) {
70
+ obj["jsonata_in"] = _ApiClient["default"].convertToType(data["jsonata_in"], "String");
71
71
  }
72
72
  } else if (data === null) {
73
73
  return null;
@@ -84,16 +84,16 @@ var RouteTransformSettings = /*#__PURE__*/function () {
84
84
  key: "validateJSON",
85
85
  value: function validateJSON(data) {
86
86
  // ensure the json data is a string
87
- if (data['format'] && !(typeof data['format'] === 'string' || data['format'] instanceof String)) {
88
- throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data['format']);
87
+ if (data["format"] && !(typeof data["format"] === "string" || data["format"] instanceof String)) {
88
+ throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data["format"]);
89
89
  }
90
90
  // ensure the json data is a string
91
- if (data['jsonata'] && !(typeof data['jsonata'] === 'string' || data['jsonata'] instanceof String)) {
92
- throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data['jsonata']);
91
+ if (data["jsonata"] && !(typeof data["jsonata"] === "string" || data["jsonata"] instanceof String)) {
92
+ throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data["jsonata"]);
93
93
  }
94
94
  // ensure the json data is a string
95
- if (data['jsonata_in'] && !(typeof data['jsonata_in'] === 'string' || data['jsonata_in'] instanceof String)) {
96
- throw new Error("Expected the field `jsonata_in` to be a primitive type in the JSON string but got " + data['jsonata_in']);
95
+ if (data["jsonata_in"] && !(typeof data["jsonata_in"] === "string" || data["jsonata_in"] instanceof String)) {
96
+ throw new Error("Expected the field `jsonata_in` to be a primitive type in the JSON string but got " + data["jsonata_in"]);
97
97
  }
98
98
  return true;
99
99
  }
@@ -103,17 +103,17 @@ var RouteTransformSettings = /*#__PURE__*/function () {
103
103
  * Output format for transformed data (e.g., \"json\", \"xml\", \"text\").
104
104
  * @member {String} format
105
105
  */
106
- RouteTransformSettings.prototype['format'] = undefined;
106
+ RouteTransformSettings.prototype["format"] = undefined;
107
107
 
108
108
  /**
109
109
  * JSONata expression used to transform the data payload (outgoing).
110
110
  * @member {String} jsonata
111
111
  */
112
- RouteTransformSettings.prototype['jsonata'] = undefined;
112
+ RouteTransformSettings.prototype["jsonata"] = undefined;
113
113
 
114
114
  /**
115
115
  * JSONata expression used to transform the data payload (incoming).
116
116
  * @member {String} jsonata_in
117
117
  */
118
- RouteTransformSettings.prototype['jsonata_in'] = undefined;
118
+ RouteTransformSettings.prototype["jsonata_in"] = undefined;
119
119
  var _default = exports["default"] = RouteTransformSettings;
@@ -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 S3ArchiveRoute model module.
30
30
  * @module model/S3ArchiveRoute
31
- * @version 2.2.1-beta.3
31
+ * @version 2.3.0
32
32
  */
33
33
  var S3ArchiveRoute = /*#__PURE__*/function () {
34
34
  /**
@@ -61,56 +61,56 @@ var S3ArchiveRoute = /*#__PURE__*/function () {
61
61
  value: function constructFromObject(data, obj) {
62
62
  if (data) {
63
63
  obj = obj || new S3ArchiveRoute();
64
- if (data.hasOwnProperty('archive_count_exceeds')) {
65
- obj['archive_count_exceeds'] = _ApiClient["default"].convertToType(data['archive_count_exceeds'], 'Number');
64
+ if (data.hasOwnProperty("archive_count_exceeds")) {
65
+ obj["archive_count_exceeds"] = _ApiClient["default"].convertToType(data["archive_count_exceeds"], "Number");
66
66
  }
67
- if (data.hasOwnProperty('archive_every_mins')) {
68
- obj['archive_every_mins'] = _ApiClient["default"].convertToType(data['archive_every_mins'], 'Number');
67
+ if (data.hasOwnProperty("archive_every_mins")) {
68
+ obj["archive_every_mins"] = _ApiClient["default"].convertToType(data["archive_every_mins"], "Number");
69
69
  }
70
- if (data.hasOwnProperty('archive_id')) {
71
- obj['archive_id'] = _ApiClient["default"].convertToType(data['archive_id'], 'String');
70
+ if (data.hasOwnProperty("archive_id")) {
71
+ obj["archive_id"] = _ApiClient["default"].convertToType(data["archive_id"], "String");
72
72
  }
73
- if (data.hasOwnProperty('bucket_endpoint')) {
74
- obj['bucket_endpoint'] = _ApiClient["default"].convertToType(data['bucket_endpoint'], 'String');
73
+ if (data.hasOwnProperty("bucket_endpoint")) {
74
+ obj["bucket_endpoint"] = _ApiClient["default"].convertToType(data["bucket_endpoint"], "String");
75
75
  }
76
- if (data.hasOwnProperty('bucket_name')) {
77
- obj['bucket_name'] = _ApiClient["default"].convertToType(data['bucket_name'], 'String');
76
+ if (data.hasOwnProperty("bucket_name")) {
77
+ obj["bucket_name"] = _ApiClient["default"].convertToType(data["bucket_name"], "String");
78
78
  }
79
- if (data.hasOwnProperty('bucket_region')) {
80
- obj['bucket_region'] = _ApiClient["default"].convertToType(data['bucket_region'], 'String');
79
+ if (data.hasOwnProperty("bucket_region")) {
80
+ obj["bucket_region"] = _ApiClient["default"].convertToType(data["bucket_region"], "String");
81
81
  }
82
- if (data.hasOwnProperty('file_access')) {
83
- obj['file_access'] = _ApiClient["default"].convertToType(data['file_access'], 'String');
82
+ if (data.hasOwnProperty("file_access")) {
83
+ obj["file_access"] = _ApiClient["default"].convertToType(data["file_access"], "String");
84
84
  }
85
- if (data.hasOwnProperty('file_folder')) {
86
- obj['file_folder'] = _ApiClient["default"].convertToType(data['file_folder'], 'String');
85
+ if (data.hasOwnProperty("file_folder")) {
86
+ obj["file_folder"] = _ApiClient["default"].convertToType(data["file_folder"], "String");
87
87
  }
88
- if (data.hasOwnProperty('file_format')) {
89
- obj['file_format'] = _ApiClient["default"].convertToType(data['file_format'], 'String');
88
+ if (data.hasOwnProperty("file_format")) {
89
+ obj["file_format"] = _ApiClient["default"].convertToType(data["file_format"], "String");
90
90
  }
91
- if (data.hasOwnProperty('filter')) {
92
- obj['filter'] = _Filter["default"].constructFromObject(data['filter']);
91
+ if (data.hasOwnProperty("filter")) {
92
+ obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
93
93
  }
94
- if (data.hasOwnProperty('fleets')) {
95
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
94
+ if (data.hasOwnProperty("fleets")) {
95
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
96
96
  }
97
- if (data.hasOwnProperty('key_id')) {
98
- obj['key_id'] = _ApiClient["default"].convertToType(data['key_id'], 'String');
97
+ if (data.hasOwnProperty("key_id")) {
98
+ obj["key_id"] = _ApiClient["default"].convertToType(data["key_id"], "String");
99
99
  }
100
- if (data.hasOwnProperty('key_secret')) {
101
- obj['key_secret'] = _ApiClient["default"].convertToType(data['key_secret'], 'String');
100
+ if (data.hasOwnProperty("key_secret")) {
101
+ obj["key_secret"] = _ApiClient["default"].convertToType(data["key_secret"], "String");
102
102
  }
103
- if (data.hasOwnProperty('throttle_ms')) {
104
- obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
103
+ if (data.hasOwnProperty("throttle_ms")) {
104
+ obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
105
105
  }
106
- if (data.hasOwnProperty('timeout')) {
107
- obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
106
+ if (data.hasOwnProperty("timeout")) {
107
+ obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
108
108
  }
109
- if (data.hasOwnProperty('transform')) {
110
- obj['transform'] = _RouteTransformSettings["default"].constructFromObject(data['transform']);
109
+ if (data.hasOwnProperty("transform")) {
110
+ obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
111
111
  }
112
- if (data.hasOwnProperty('url')) {
113
- obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
112
+ if (data.hasOwnProperty("url")) {
113
+ obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
114
114
  }
115
115
  } else if (data === null) {
116
116
  return null;
@@ -127,58 +127,58 @@ var S3ArchiveRoute = /*#__PURE__*/function () {
127
127
  key: "validateJSON",
128
128
  value: function validateJSON(data) {
129
129
  // ensure the json data is a string
130
- if (data['archive_id'] && !(typeof data['archive_id'] === 'string' || data['archive_id'] instanceof String)) {
131
- throw new Error("Expected the field `archive_id` to be a primitive type in the JSON string but got " + data['archive_id']);
130
+ if (data["archive_id"] && !(typeof data["archive_id"] === "string" || data["archive_id"] instanceof String)) {
131
+ throw new Error("Expected the field `archive_id` to be a primitive type in the JSON string but got " + data["archive_id"]);
132
132
  }
133
133
  // ensure the json data is a string
134
- if (data['bucket_endpoint'] && !(typeof data['bucket_endpoint'] === 'string' || data['bucket_endpoint'] instanceof String)) {
135
- throw new Error("Expected the field `bucket_endpoint` to be a primitive type in the JSON string but got " + data['bucket_endpoint']);
134
+ if (data["bucket_endpoint"] && !(typeof data["bucket_endpoint"] === "string" || data["bucket_endpoint"] instanceof String)) {
135
+ throw new Error("Expected the field `bucket_endpoint` to be a primitive type in the JSON string but got " + data["bucket_endpoint"]);
136
136
  }
137
137
  // ensure the json data is a string
138
- if (data['bucket_name'] && !(typeof data['bucket_name'] === 'string' || data['bucket_name'] instanceof String)) {
139
- throw new Error("Expected the field `bucket_name` to be a primitive type in the JSON string but got " + data['bucket_name']);
138
+ if (data["bucket_name"] && !(typeof data["bucket_name"] === "string" || data["bucket_name"] instanceof String)) {
139
+ throw new Error("Expected the field `bucket_name` to be a primitive type in the JSON string but got " + data["bucket_name"]);
140
140
  }
141
141
  // ensure the json data is a string
142
- if (data['bucket_region'] && !(typeof data['bucket_region'] === 'string' || data['bucket_region'] instanceof String)) {
143
- throw new Error("Expected the field `bucket_region` to be a primitive type in the JSON string but got " + data['bucket_region']);
142
+ if (data["bucket_region"] && !(typeof data["bucket_region"] === "string" || data["bucket_region"] instanceof String)) {
143
+ throw new Error("Expected the field `bucket_region` to be a primitive type in the JSON string but got " + data["bucket_region"]);
144
144
  }
145
145
  // ensure the json data is a string
146
- if (data['file_access'] && !(typeof data['file_access'] === 'string' || data['file_access'] instanceof String)) {
147
- throw new Error("Expected the field `file_access` to be a primitive type in the JSON string but got " + data['file_access']);
146
+ if (data["file_access"] && !(typeof data["file_access"] === "string" || data["file_access"] instanceof String)) {
147
+ throw new Error("Expected the field `file_access` to be a primitive type in the JSON string but got " + data["file_access"]);
148
148
  }
149
149
  // ensure the json data is a string
150
- if (data['file_folder'] && !(typeof data['file_folder'] === 'string' || data['file_folder'] instanceof String)) {
151
- throw new Error("Expected the field `file_folder` to be a primitive type in the JSON string but got " + data['file_folder']);
150
+ if (data["file_folder"] && !(typeof data["file_folder"] === "string" || data["file_folder"] instanceof String)) {
151
+ throw new Error("Expected the field `file_folder` to be a primitive type in the JSON string but got " + data["file_folder"]);
152
152
  }
153
153
  // ensure the json data is a string
154
- if (data['file_format'] && !(typeof data['file_format'] === 'string' || data['file_format'] instanceof String)) {
155
- throw new Error("Expected the field `file_format` to be a primitive type in the JSON string but got " + data['file_format']);
154
+ if (data["file_format"] && !(typeof data["file_format"] === "string" || data["file_format"] instanceof String)) {
155
+ throw new Error("Expected the field `file_format` to be a primitive type in the JSON string but got " + data["file_format"]);
156
156
  }
157
157
  // validate the optional field `filter`
158
- if (data['filter']) {
158
+ if (data["filter"]) {
159
159
  // data not null
160
- _Filter["default"].validateJSON(data['filter']);
160
+ _Filter["default"].validateJSON(data["filter"]);
161
161
  }
162
162
  // ensure the json data is an array
163
- if (!Array.isArray(data['fleets'])) {
164
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
163
+ if (!Array.isArray(data["fleets"])) {
164
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
165
165
  }
166
166
  // ensure the json data is a string
167
- if (data['key_id'] && !(typeof data['key_id'] === 'string' || data['key_id'] instanceof String)) {
168
- throw new Error("Expected the field `key_id` to be a primitive type in the JSON string but got " + data['key_id']);
167
+ if (data["key_id"] && !(typeof data["key_id"] === "string" || data["key_id"] instanceof String)) {
168
+ throw new Error("Expected the field `key_id` to be a primitive type in the JSON string but got " + data["key_id"]);
169
169
  }
170
170
  // ensure the json data is a string
171
- if (data['key_secret'] && !(typeof data['key_secret'] === 'string' || data['key_secret'] instanceof String)) {
172
- throw new Error("Expected the field `key_secret` to be a primitive type in the JSON string but got " + data['key_secret']);
171
+ if (data["key_secret"] && !(typeof data["key_secret"] === "string" || data["key_secret"] instanceof String)) {
172
+ throw new Error("Expected the field `key_secret` to be a primitive type in the JSON string but got " + data["key_secret"]);
173
173
  }
174
174
  // validate the optional field `transform`
175
- if (data['transform']) {
175
+ if (data["transform"]) {
176
176
  // data not null
177
- _RouteTransformSettings["default"].validateJSON(data['transform']);
177
+ _RouteTransformSettings["default"].validateJSON(data["transform"]);
178
178
  }
179
179
  // ensure the json data is a string
180
- if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
181
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
180
+ if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
181
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
182
182
  }
183
183
  return true;
184
184
  }
@@ -187,85 +187,85 @@ var S3ArchiveRoute = /*#__PURE__*/function () {
187
187
  /**
188
188
  * @member {Number} archive_count_exceeds
189
189
  */
190
- S3ArchiveRoute.prototype['archive_count_exceeds'] = undefined;
190
+ S3ArchiveRoute.prototype["archive_count_exceeds"] = undefined;
191
191
 
192
192
  /**
193
193
  * @member {Number} archive_every_mins
194
194
  */
195
- S3ArchiveRoute.prototype['archive_every_mins'] = undefined;
195
+ S3ArchiveRoute.prototype["archive_every_mins"] = undefined;
196
196
 
197
197
  /**
198
198
  * @member {String} archive_id
199
199
  */
200
- S3ArchiveRoute.prototype['archive_id'] = undefined;
200
+ S3ArchiveRoute.prototype["archive_id"] = undefined;
201
201
 
202
202
  /**
203
203
  * @member {String} bucket_endpoint
204
204
  */
205
- S3ArchiveRoute.prototype['bucket_endpoint'] = undefined;
205
+ S3ArchiveRoute.prototype["bucket_endpoint"] = undefined;
206
206
 
207
207
  /**
208
208
  * @member {String} bucket_name
209
209
  */
210
- S3ArchiveRoute.prototype['bucket_name'] = undefined;
210
+ S3ArchiveRoute.prototype["bucket_name"] = undefined;
211
211
 
212
212
  /**
213
213
  * @member {String} bucket_region
214
214
  */
215
- S3ArchiveRoute.prototype['bucket_region'] = undefined;
215
+ S3ArchiveRoute.prototype["bucket_region"] = undefined;
216
216
 
217
217
  /**
218
218
  * @member {String} file_access
219
219
  */
220
- S3ArchiveRoute.prototype['file_access'] = undefined;
220
+ S3ArchiveRoute.prototype["file_access"] = undefined;
221
221
 
222
222
  /**
223
223
  * @member {String} file_folder
224
224
  */
225
- S3ArchiveRoute.prototype['file_folder'] = undefined;
225
+ S3ArchiveRoute.prototype["file_folder"] = undefined;
226
226
 
227
227
  /**
228
228
  * @member {String} file_format
229
229
  */
230
- S3ArchiveRoute.prototype['file_format'] = undefined;
230
+ S3ArchiveRoute.prototype["file_format"] = undefined;
231
231
 
232
232
  /**
233
233
  * @member {module:model/Filter} filter
234
234
  */
235
- S3ArchiveRoute.prototype['filter'] = undefined;
235
+ S3ArchiveRoute.prototype["filter"] = undefined;
236
236
 
237
237
  /**
238
238
  * @member {Array.<String>} fleets
239
239
  */
240
- S3ArchiveRoute.prototype['fleets'] = undefined;
240
+ S3ArchiveRoute.prototype["fleets"] = undefined;
241
241
 
242
242
  /**
243
243
  * @member {String} key_id
244
244
  */
245
- S3ArchiveRoute.prototype['key_id'] = undefined;
245
+ S3ArchiveRoute.prototype["key_id"] = undefined;
246
246
 
247
247
  /**
248
248
  * @member {String} key_secret
249
249
  */
250
- S3ArchiveRoute.prototype['key_secret'] = undefined;
250
+ S3ArchiveRoute.prototype["key_secret"] = undefined;
251
251
 
252
252
  /**
253
253
  * @member {Number} throttle_ms
254
254
  */
255
- S3ArchiveRoute.prototype['throttle_ms'] = undefined;
255
+ S3ArchiveRoute.prototype["throttle_ms"] = undefined;
256
256
 
257
257
  /**
258
258
  * @member {Number} timeout
259
259
  */
260
- S3ArchiveRoute.prototype['timeout'] = undefined;
260
+ S3ArchiveRoute.prototype["timeout"] = undefined;
261
261
 
262
262
  /**
263
263
  * @member {module:model/RouteTransformSettings} transform
264
264
  */
265
- S3ArchiveRoute.prototype['transform'] = undefined;
265
+ S3ArchiveRoute.prototype["transform"] = undefined;
266
266
 
267
267
  /**
268
268
  * @member {String} url
269
269
  */
270
- S3ArchiveRoute.prototype['url'] = undefined;
270
+ S3ArchiveRoute.prototype["url"] = undefined;
271
271
  var _default = exports["default"] = S3ArchiveRoute;