@blues-inc/notehub-js 2.1.0-beta.9 → 2.2.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 (139) hide show
  1. package/README.md +238 -246
  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 +374 -374
  7. package/dist/api/EventApi.js +118 -118
  8. package/dist/api/ExternalDevicesApi.js +41 -41
  9. package/dist/api/MonitorApi.js +52 -52
  10. package/dist/api/ProjectApi.js +381 -381
  11. package/dist/api/RouteApi.js +77 -77
  12. package/dist/api/UsageApi.js +50 -41
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/model/Alert.js +74 -76
  15. package/dist/model/AlertDataInner.js +35 -35
  16. package/dist/model/AlertNotificationsInner.js +18 -18
  17. package/dist/model/Aws.js +65 -65
  18. package/dist/model/AwsFilter.js +19 -19
  19. package/dist/model/AwsTransform.js +20 -20
  20. package/dist/model/Azure.js +43 -43
  21. package/dist/model/BillingAccount.js +21 -21
  22. package/dist/model/BillingAccountRole.js +9 -9
  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 +12 -12
  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/DeleteDeviceFleetsRequest.js +8 -8
  39. package/dist/model/Device.js +101 -102
  40. package/dist/model/DeviceDfuHistory.js +19 -20
  41. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  42. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  43. package/dist/model/DeviceDfuStateMachine.js +24 -25
  44. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  45. package/dist/model/DeviceDfuStatus.js +20 -20
  46. package/dist/model/DeviceDfuStatusPage.js +12 -13
  47. package/dist/model/DeviceSession.js +221 -221
  48. package/dist/model/DeviceTowerInfo.js +14 -14
  49. package/dist/model/DeviceUsage.js +32 -32
  50. package/dist/model/DfuActionRequest.js +7 -7
  51. package/dist/model/EmailNotification.js +7 -7
  52. package/dist/model/EnvTreeJsonNode.js +67 -69
  53. package/dist/model/EnvVar.js +18 -18
  54. package/dist/model/EnvironmentVariables.js +8 -8
  55. package/dist/model/Error.js +31 -31
  56. package/dist/model/Event.js +248 -248
  57. package/dist/model/Firmware.js +49 -49
  58. package/dist/model/FirmwareInfo.js +60 -60
  59. package/dist/model/Fleet.js +30 -30
  60. package/dist/model/GetAlerts200Response.js +14 -15
  61. package/dist/model/GetBillingAccounts200Response.js +9 -10
  62. package/dist/model/GetDataUsage200Response.js +9 -10
  63. package/dist/model/GetDataUsage200ResponseDataInner.js +53 -43
  64. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  65. package/dist/model/GetDeviceFleets200Response.js +11 -12
  66. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  67. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  68. package/dist/model/GetDeviceLatest200Response.js +9 -10
  69. package/dist/model/GetDevicePlans200Response.js +9 -10
  70. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  71. package/dist/model/GetDeviceSessions200Response.js +16 -17
  72. package/dist/model/GetProducts200Response.js +9 -10
  73. package/dist/model/GetProjectDevicePublicKeys200Response.js +16 -17
  74. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  75. package/dist/model/GetProjectDevices200Response.js +16 -17
  76. package/dist/model/GetProjectEvents200Response.js +20 -21
  77. package/dist/model/GetProjectEventsByCursor200Response.js +23 -24
  78. package/dist/model/GetProjectMembers200Response.js +11 -12
  79. package/dist/model/GetProjects200Response.js +9 -10
  80. package/dist/model/GetSessionsUsage200Response.js +11 -12
  81. package/dist/model/GetWebhooks200Response.js +9 -10
  82. package/dist/model/Google.js +33 -33
  83. package/dist/model/HandleNoteChanges200Response.js +11 -11
  84. package/dist/model/HandleNoteGet200Response.js +13 -13
  85. package/dist/model/HandleNoteSignal200Response.js +5 -5
  86. package/dist/model/HandleNotefileChanges200Response.js +11 -11
  87. package/dist/model/HandleNotefileChangesPending200Response.js +14 -14
  88. package/dist/model/HandleNotefileDeleteRequest.js +7 -7
  89. package/dist/model/Http.js +35 -35
  90. package/dist/model/Location.js +40 -40
  91. package/dist/model/Login200Response.js +7 -7
  92. package/dist/model/LoginRequest.js +12 -12
  93. package/dist/model/Monitor.js +99 -100
  94. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  95. package/dist/model/Mqtt.js +66 -66
  96. package/dist/model/Note.js +10 -10
  97. package/dist/model/NotefileSchema.js +18 -19
  98. package/dist/model/NotehubRoute.js +36 -36
  99. package/dist/model/NotehubRouteSchema.js +46 -45
  100. package/dist/model/OAuth2Error.js +20 -20
  101. package/dist/model/OAuth2TokenResponse.js +23 -23
  102. package/dist/model/PersonalAccessToken.js +34 -34
  103. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  104. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  105. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  106. package/dist/model/PostProvisionProjectDeviceRequest.js +18 -18
  107. package/dist/model/Product.js +26 -26
  108. package/dist/model/Project.js +34 -34
  109. package/dist/model/ProjectMember.js +22 -22
  110. package/dist/model/Proxy.js +24 -24
  111. package/dist/model/PutDeviceFleetsRequest.js +8 -8
  112. package/dist/model/Radresponder.js +25 -25
  113. package/dist/model/Repository.js +22 -22
  114. package/dist/model/Role.js +9 -9
  115. package/dist/model/RouteLog.js +38 -38
  116. package/dist/model/SatellitePlan.js +26 -26
  117. package/dist/model/SchemaProperty.js +36 -38
  118. package/dist/model/SimUsage.js +19 -19
  119. package/dist/model/Slack.js +53 -53
  120. package/dist/model/SlackBearerNotification.js +25 -25
  121. package/dist/model/SlackTransform.js +12 -12
  122. package/dist/model/SlackWebHookNotification.js +20 -20
  123. package/dist/model/Snowflake.js +45 -45
  124. package/dist/model/Thingworx.js +33 -33
  125. package/dist/model/TowerLocation.js +54 -54
  126. package/dist/model/Twilio.js +43 -43
  127. package/dist/model/UpdateFleetRequest.js +25 -25
  128. package/dist/model/UploadMetadata.js +64 -64
  129. package/dist/model/UsageData.js +18 -18
  130. package/dist/model/UsageEventsData.js +38 -28
  131. package/dist/model/UsageEventsResponse.js +11 -12
  132. package/dist/model/UsageRouteLogsData.js +35 -36
  133. package/dist/model/UsageSessionsData.js +38 -28
  134. package/dist/model/UserDbRoute.js +25 -25
  135. package/dist/model/UserDfuStateMachine.js +20 -20
  136. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  137. package/dist/model/UserFirmwareInfo.js +12 -12
  138. package/dist/model/WebhookSettings.js +15 -15
  139. 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 AlertDataInner model module.
28
28
  * @module model/AlertDataInner
29
- * @version 2.1.0-beta.9
29
+ * @version 2.2.0
30
30
  */
31
31
  var AlertDataInner = /*#__PURE__*/function () {
32
32
  /**
@@ -59,23 +59,23 @@ var AlertDataInner = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new AlertDataInner();
62
- if (data.hasOwnProperty('alert_source')) {
63
- obj['alert_source'] = _ApiClient["default"].convertToType(data['alert_source'], 'String');
62
+ if (data.hasOwnProperty("alert_source")) {
63
+ obj["alert_source"] = _ApiClient["default"].convertToType(data["alert_source"], "String");
64
64
  }
65
- if (data.hasOwnProperty('source')) {
66
- obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
65
+ if (data.hasOwnProperty("source")) {
66
+ obj["source"] = _ApiClient["default"].convertToType(data["source"], "String");
67
67
  }
68
- if (data.hasOwnProperty('source_type')) {
69
- obj['source_type'] = _ApiClient["default"].convertToType(data['source_type'], 'String');
68
+ if (data.hasOwnProperty("source_type")) {
69
+ obj["source_type"] = _ApiClient["default"].convertToType(data["source_type"], "String");
70
70
  }
71
- if (data.hasOwnProperty('source_uid')) {
72
- obj['source_uid'] = _ApiClient["default"].convertToType(data['source_uid'], 'String');
71
+ if (data.hasOwnProperty("source_uid")) {
72
+ obj["source_uid"] = _ApiClient["default"].convertToType(data["source_uid"], "String");
73
73
  }
74
- if (data.hasOwnProperty('value')) {
75
- obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
74
+ if (data.hasOwnProperty("value")) {
75
+ obj["value"] = _ApiClient["default"].convertToType(data["value"], "Number");
76
76
  }
77
- if (data.hasOwnProperty('when')) {
78
- obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
77
+ if (data.hasOwnProperty("when")) {
78
+ obj["when"] = _ApiClient["default"].convertToType(data["when"], "String");
79
79
  }
80
80
  } else if (data === null) {
81
81
  return null;
@@ -92,24 +92,24 @@ var AlertDataInner = /*#__PURE__*/function () {
92
92
  key: "validateJSON",
93
93
  value: function validateJSON(data) {
94
94
  // ensure the json data is a string
95
- if (data['alert_source'] && !(typeof data['alert_source'] === 'string' || data['alert_source'] instanceof String)) {
96
- throw new Error("Expected the field `alert_source` to be a primitive type in the JSON string but got " + data['alert_source']);
95
+ if (data["alert_source"] && !(typeof data["alert_source"] === "string" || data["alert_source"] instanceof String)) {
96
+ throw new Error("Expected the field `alert_source` to be a primitive type in the JSON string but got " + data["alert_source"]);
97
97
  }
98
98
  // ensure the json data is a string
99
- if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
100
- throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
99
+ if (data["source"] && !(typeof data["source"] === "string" || data["source"] instanceof String)) {
100
+ throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data["source"]);
101
101
  }
102
102
  // ensure the json data is a string
103
- if (data['source_type'] && !(typeof data['source_type'] === 'string' || data['source_type'] instanceof String)) {
104
- throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data['source_type']);
103
+ if (data["source_type"] && !(typeof data["source_type"] === "string" || data["source_type"] instanceof String)) {
104
+ throw new Error("Expected the field `source_type` to be a primitive type in the JSON string but got " + data["source_type"]);
105
105
  }
106
106
  // ensure the json data is a string
107
- if (data['source_uid'] && !(typeof data['source_uid'] === 'string' || data['source_uid'] instanceof String)) {
108
- throw new Error("Expected the field `source_uid` to be a primitive type in the JSON string but got " + data['source_uid']);
107
+ if (data["source_uid"] && !(typeof data["source_uid"] === "string" || data["source_uid"] instanceof String)) {
108
+ throw new Error("Expected the field `source_uid` to be a primitive type in the JSON string but got " + data["source_uid"]);
109
109
  }
110
110
  // ensure the json data is a string
111
- if (data['when'] && !(typeof data['when'] === 'string' || data['when'] instanceof String)) {
112
- throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data['when']);
111
+ if (data["when"] && !(typeof data["when"] === "string" || data["when"] instanceof String)) {
112
+ throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data["when"]);
113
113
  }
114
114
  return true;
115
115
  }
@@ -119,54 +119,54 @@ var AlertDataInner = /*#__PURE__*/function () {
119
119
  * The source of the alert
120
120
  * @member {module:model/AlertDataInner.AlertSourceEnum} alert_source
121
121
  */
122
- AlertDataInner.prototype['alert_source'] = undefined;
122
+ AlertDataInner.prototype["alert_source"] = undefined;
123
123
 
124
124
  /**
125
125
  * The UID of the source of the alert
126
126
  * @member {String} source
127
127
  */
128
- AlertDataInner.prototype['source'] = undefined;
128
+ AlertDataInner.prototype["source"] = undefined;
129
129
 
130
130
  /**
131
131
  * The type of source.
132
132
  * @member {module:model/AlertDataInner.SourceTypeEnum} source_type
133
133
  */
134
- AlertDataInner.prototype['source_type'] = undefined;
134
+ AlertDataInner.prototype["source_type"] = undefined;
135
135
 
136
136
  /**
137
137
  * The UID of the source of the alert
138
138
  * @member {String} source_uid
139
139
  */
140
- AlertDataInner.prototype['source_uid'] = undefined;
140
+ AlertDataInner.prototype["source_uid"] = undefined;
141
141
 
142
142
  /**
143
143
  * The value that triggered the alert
144
144
  * @member {Number} value
145
145
  */
146
- AlertDataInner.prototype['value'] = undefined;
146
+ AlertDataInner.prototype["value"] = undefined;
147
147
 
148
148
  /**
149
149
  * The time the alert was created
150
150
  * @member {String} when
151
151
  */
152
- AlertDataInner.prototype['when'] = undefined;
152
+ AlertDataInner.prototype["when"] = undefined;
153
153
 
154
154
  /**
155
155
  * Allowed values for the <code>alert_source</code> property.
156
156
  * @enum {String}
157
157
  * @readonly
158
158
  */
159
- AlertDataInner['AlertSourceEnum'] = {
159
+ AlertDataInner["AlertSourceEnum"] = {
160
160
  /**
161
161
  * value: "app"
162
162
  * @const
163
163
  */
164
- "app": "app",
164
+ app: "app",
165
165
  /**
166
166
  * value: "device"
167
167
  * @const
168
168
  */
169
- "device": "device"
169
+ device: "device"
170
170
  };
171
171
 
172
172
  /**
@@ -174,11 +174,11 @@ AlertDataInner['AlertSourceEnum'] = {
174
174
  * @enum {String}
175
175
  * @readonly
176
176
  */
177
- AlertDataInner['SourceTypeEnum'] = {
177
+ AlertDataInner["SourceTypeEnum"] = {
178
178
  /**
179
179
  * value: "event"
180
180
  * @const
181
181
  */
182
- "event": "event"
182
+ event: "event"
183
183
  };
184
184
  var _default = exports["default"] = AlertDataInner;
@@ -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 AlertNotificationsInner model module.
28
28
  * @module model/AlertNotificationsInner
29
- * @version 2.1.0-beta.9
29
+ * @version 2.2.0
30
30
  */
31
31
  var AlertNotificationsInner = /*#__PURE__*/function () {
32
32
  /**
@@ -59,14 +59,14 @@ var AlertNotificationsInner = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new AlertNotificationsInner();
62
- if (data.hasOwnProperty('notification_type')) {
63
- obj['notification_type'] = _ApiClient["default"].convertToType(data['notification_type'], 'String');
62
+ if (data.hasOwnProperty("notification_type")) {
63
+ obj["notification_type"] = _ApiClient["default"].convertToType(data["notification_type"], "String");
64
64
  }
65
- if (data.hasOwnProperty('recipients')) {
66
- obj['recipients'] = _ApiClient["default"].convertToType(data['recipients'], 'String');
65
+ if (data.hasOwnProperty("recipients")) {
66
+ obj["recipients"] = _ApiClient["default"].convertToType(data["recipients"], "String");
67
67
  }
68
- if (data.hasOwnProperty('status')) {
69
- obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number');
68
+ if (data.hasOwnProperty("status")) {
69
+ obj["status"] = _ApiClient["default"].convertToType(data["status"], "Number");
70
70
  }
71
71
  } else if (data === null) {
72
72
  return null;
@@ -83,12 +83,12 @@ var AlertNotificationsInner = /*#__PURE__*/function () {
83
83
  key: "validateJSON",
84
84
  value: function validateJSON(data) {
85
85
  // ensure the json data is a string
86
- if (data['notification_type'] && !(typeof data['notification_type'] === 'string' || data['notification_type'] instanceof String)) {
87
- throw new Error("Expected the field `notification_type` to be a primitive type in the JSON string but got " + data['notification_type']);
86
+ if (data["notification_type"] && !(typeof data["notification_type"] === "string" || data["notification_type"] instanceof String)) {
87
+ throw new Error("Expected the field `notification_type` to be a primitive type in the JSON string but got " + data["notification_type"]);
88
88
  }
89
89
  // ensure the json data is a string
90
- if (data['recipients'] && !(typeof data['recipients'] === 'string' || data['recipients'] instanceof String)) {
91
- throw new Error("Expected the field `recipients` to be a primitive type in the JSON string but got " + data['recipients']);
90
+ if (data["recipients"] && !(typeof data["recipients"] === "string" || data["recipients"] instanceof String)) {
91
+ throw new Error("Expected the field `recipients` to be a primitive type in the JSON string but got " + data["recipients"]);
92
92
  }
93
93
  return true;
94
94
  }
@@ -98,35 +98,35 @@ var AlertNotificationsInner = /*#__PURE__*/function () {
98
98
  * The type of notification
99
99
  * @member {module:model/AlertNotificationsInner.NotificationTypeEnum} notification_type
100
100
  */
101
- AlertNotificationsInner.prototype['notification_type'] = undefined;
101
+ AlertNotificationsInner.prototype["notification_type"] = undefined;
102
102
 
103
103
  /**
104
104
  * The recipients of the notification
105
105
  * @member {String} recipients
106
106
  */
107
- AlertNotificationsInner.prototype['recipients'] = undefined;
107
+ AlertNotificationsInner.prototype["recipients"] = undefined;
108
108
 
109
109
  /**
110
110
  * The status of the notification
111
111
  * @member {Number} status
112
112
  */
113
- AlertNotificationsInner.prototype['status'] = undefined;
113
+ AlertNotificationsInner.prototype["status"] = undefined;
114
114
 
115
115
  /**
116
116
  * Allowed values for the <code>notification_type</code> property.
117
117
  * @enum {String}
118
118
  * @readonly
119
119
  */
120
- AlertNotificationsInner['NotificationTypeEnum'] = {
120
+ AlertNotificationsInner["NotificationTypeEnum"] = {
121
121
  /**
122
122
  * value: "email"
123
123
  * @const
124
124
  */
125
- "email": "email",
125
+ email: "email",
126
126
  /**
127
127
  * value: "slack"
128
128
  * @const
129
129
  */
130
- "slack": "slack"
130
+ slack: "slack"
131
131
  };
132
132
  var _default = exports["default"] = AlertNotificationsInner;
package/dist/model/Aws.js CHANGED
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
15
15
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
16
16
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
17
17
  * Notehub API
18
- * The OpenAPI definition for the Notehub.io API.
18
+ * The OpenAPI definition for the Notehub.io API.
19
19
  *
20
20
  * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: engineering@blues.io
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * The Aws model module.
30
30
  * @module model/Aws
31
- * @version 2.1.0-beta.9
31
+ * @version 2.2.0
32
32
  */
33
33
  var Aws = /*#__PURE__*/function () {
34
34
  /**
@@ -62,49 +62,49 @@ var Aws = /*#__PURE__*/function () {
62
62
  value: function constructFromObject(data, obj) {
63
63
  if (data) {
64
64
  obj = obj || new Aws();
65
- if (data.hasOwnProperty('access_key_id')) {
66
- obj['access_key_id'] = _ApiClient["default"].convertToType(data['access_key_id'], 'String');
65
+ if (data.hasOwnProperty("access_key_id")) {
66
+ obj["access_key_id"] = _ApiClient["default"].convertToType(data["access_key_id"], "String");
67
67
  }
68
- if (data.hasOwnProperty('access_key_secret')) {
69
- obj['access_key_secret'] = _ApiClient["default"].convertToType(data['access_key_secret'], 'String');
68
+ if (data.hasOwnProperty("access_key_secret")) {
69
+ obj["access_key_secret"] = _ApiClient["default"].convertToType(data["access_key_secret"], "String");
70
70
  }
71
- if (data.hasOwnProperty('channel')) {
72
- obj['channel'] = _ApiClient["default"].convertToType(data['channel'], 'String');
71
+ if (data.hasOwnProperty("channel")) {
72
+ obj["channel"] = _ApiClient["default"].convertToType(data["channel"], "String");
73
73
  }
74
- if (data.hasOwnProperty('disable_http_headers')) {
75
- obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
74
+ if (data.hasOwnProperty("disable_http_headers")) {
75
+ obj["disable_http_headers"] = _ApiClient["default"].convertToType(data["disable_http_headers"], "Boolean");
76
76
  }
77
- if (data.hasOwnProperty('filter')) {
78
- obj['filter'] = _AwsFilter["default"].constructFromObject(data['filter']);
77
+ if (data.hasOwnProperty("filter")) {
78
+ obj["filter"] = _AwsFilter["default"].constructFromObject(data["filter"]);
79
79
  }
80
- if (data.hasOwnProperty('fleets')) {
81
- obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
80
+ if (data.hasOwnProperty("fleets")) {
81
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
82
82
  }
83
- if (data.hasOwnProperty('http_headers')) {
84
- obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
85
- 'String': 'String'
83
+ if (data.hasOwnProperty("http_headers")) {
84
+ obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
85
+ String: "String"
86
86
  });
87
87
  }
88
- if (data.hasOwnProperty('message_deduplication_id')) {
89
- obj['message_deduplication_id'] = _ApiClient["default"].convertToType(data['message_deduplication_id'], 'String');
88
+ if (data.hasOwnProperty("message_deduplication_id")) {
89
+ obj["message_deduplication_id"] = _ApiClient["default"].convertToType(data["message_deduplication_id"], "String");
90
90
  }
91
- if (data.hasOwnProperty('message_group_id')) {
92
- obj['message_group_id'] = _ApiClient["default"].convertToType(data['message_group_id'], 'String');
91
+ if (data.hasOwnProperty("message_group_id")) {
92
+ obj["message_group_id"] = _ApiClient["default"].convertToType(data["message_group_id"], "String");
93
93
  }
94
- if (data.hasOwnProperty('region')) {
95
- obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String');
94
+ if (data.hasOwnProperty("region")) {
95
+ obj["region"] = _ApiClient["default"].convertToType(data["region"], "String");
96
96
  }
97
- if (data.hasOwnProperty('throttle_ms')) {
98
- obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
97
+ if (data.hasOwnProperty("throttle_ms")) {
98
+ obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
99
99
  }
100
- if (data.hasOwnProperty('timeout')) {
101
- obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
100
+ if (data.hasOwnProperty("timeout")) {
101
+ obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
102
102
  }
103
- if (data.hasOwnProperty('transform')) {
104
- obj['transform'] = _AwsTransform["default"].constructFromObject(data['transform']);
103
+ if (data.hasOwnProperty("transform")) {
104
+ obj["transform"] = _AwsTransform["default"].constructFromObject(data["transform"]);
105
105
  }
106
- if (data.hasOwnProperty('url')) {
107
- obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
106
+ if (data.hasOwnProperty("url")) {
107
+ obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
108
108
  }
109
109
  } else if (data === null) {
110
110
  return null;
@@ -121,46 +121,46 @@ var Aws = /*#__PURE__*/function () {
121
121
  key: "validateJSON",
122
122
  value: function validateJSON(data) {
123
123
  // ensure the json data is a string
124
- if (data['access_key_id'] && !(typeof data['access_key_id'] === 'string' || data['access_key_id'] instanceof String)) {
125
- throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data['access_key_id']);
124
+ if (data["access_key_id"] && !(typeof data["access_key_id"] === "string" || data["access_key_id"] instanceof String)) {
125
+ throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data["access_key_id"]);
126
126
  }
127
127
  // ensure the json data is a string
128
- if (data['access_key_secret'] && !(typeof data['access_key_secret'] === 'string' || data['access_key_secret'] instanceof String)) {
129
- throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data['access_key_secret']);
128
+ if (data["access_key_secret"] && !(typeof data["access_key_secret"] === "string" || data["access_key_secret"] instanceof String)) {
129
+ throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data["access_key_secret"]);
130
130
  }
131
131
  // ensure the json data is a string
132
- if (data['channel'] && !(typeof data['channel'] === 'string' || data['channel'] instanceof String)) {
133
- throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data['channel']);
132
+ if (data["channel"] && !(typeof data["channel"] === "string" || data["channel"] instanceof String)) {
133
+ throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data["channel"]);
134
134
  }
135
135
  // validate the optional field `filter`
136
- if (data['filter']) {
136
+ if (data["filter"]) {
137
137
  // data not null
138
- _AwsFilter["default"].validateJSON(data['filter']);
138
+ _AwsFilter["default"].validateJSON(data["filter"]);
139
139
  }
140
140
  // ensure the json data is an array
141
- if (!Array.isArray(data['fleets'])) {
142
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
141
+ if (!Array.isArray(data["fleets"])) {
142
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
143
143
  }
144
144
  // ensure the json data is a string
145
- if (data['message_deduplication_id'] && !(typeof data['message_deduplication_id'] === 'string' || data['message_deduplication_id'] instanceof String)) {
146
- throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data['message_deduplication_id']);
145
+ if (data["message_deduplication_id"] && !(typeof data["message_deduplication_id"] === "string" || data["message_deduplication_id"] instanceof String)) {
146
+ throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data["message_deduplication_id"]);
147
147
  }
148
148
  // ensure the json data is a string
149
- if (data['message_group_id'] && !(typeof data['message_group_id'] === 'string' || data['message_group_id'] instanceof String)) {
150
- throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data['message_group_id']);
149
+ if (data["message_group_id"] && !(typeof data["message_group_id"] === "string" || data["message_group_id"] instanceof String)) {
150
+ throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data["message_group_id"]);
151
151
  }
152
152
  // ensure the json data is a string
153
- if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
154
- throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
153
+ if (data["region"] && !(typeof data["region"] === "string" || data["region"] instanceof String)) {
154
+ throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data["region"]);
155
155
  }
156
156
  // validate the optional field `transform`
157
- if (data['transform']) {
157
+ if (data["transform"]) {
158
158
  // data not null
159
- _AwsTransform["default"].validateJSON(data['transform']);
159
+ _AwsTransform["default"].validateJSON(data["transform"]);
160
160
  }
161
161
  // ensure the json data is a string
162
- if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
163
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
162
+ if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
163
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
164
164
  }
165
165
  return true;
166
166
  }
@@ -169,75 +169,75 @@ var Aws = /*#__PURE__*/function () {
169
169
  /**
170
170
  * @member {String} access_key_id
171
171
  */
172
- Aws.prototype['access_key_id'] = undefined;
172
+ Aws.prototype["access_key_id"] = undefined;
173
173
 
174
174
  /**
175
175
  * This value is input-only and will be omitted from the response and replaced with a placeholder
176
176
  * @member {String} access_key_secret
177
177
  */
178
- Aws.prototype['access_key_secret'] = undefined;
178
+ Aws.prototype["access_key_secret"] = undefined;
179
179
 
180
180
  /**
181
181
  * @member {String} channel
182
182
  */
183
- Aws.prototype['channel'] = undefined;
183
+ Aws.prototype["channel"] = undefined;
184
184
 
185
185
  /**
186
186
  * @member {Boolean} disable_http_headers
187
187
  * @default false
188
188
  */
189
- Aws.prototype['disable_http_headers'] = false;
189
+ Aws.prototype["disable_http_headers"] = false;
190
190
 
191
191
  /**
192
192
  * @member {module:model/AwsFilter} filter
193
193
  */
194
- Aws.prototype['filter'] = undefined;
194
+ Aws.prototype["filter"] = undefined;
195
195
 
196
196
  /**
197
197
  * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
198
198
  * @member {Array.<String>} fleets
199
199
  */
200
- Aws.prototype['fleets'] = undefined;
200
+ Aws.prototype["fleets"] = undefined;
201
201
 
202
202
  /**
203
203
  * @member {Object.<String, String>} http_headers
204
204
  */
205
- Aws.prototype['http_headers'] = undefined;
205
+ Aws.prototype["http_headers"] = undefined;
206
206
 
207
207
  /**
208
208
  * @member {String} message_deduplication_id
209
209
  */
210
- Aws.prototype['message_deduplication_id'] = undefined;
210
+ Aws.prototype["message_deduplication_id"] = undefined;
211
211
 
212
212
  /**
213
213
  * @member {String} message_group_id
214
214
  */
215
- Aws.prototype['message_group_id'] = undefined;
215
+ Aws.prototype["message_group_id"] = undefined;
216
216
 
217
217
  /**
218
218
  * @member {String} region
219
219
  */
220
- Aws.prototype['region'] = undefined;
220
+ Aws.prototype["region"] = undefined;
221
221
 
222
222
  /**
223
223
  * @member {Number} throttle_ms
224
224
  */
225
- Aws.prototype['throttle_ms'] = undefined;
225
+ Aws.prototype["throttle_ms"] = undefined;
226
226
 
227
227
  /**
228
228
  * Timeout in seconds for each request
229
229
  * @member {Number} timeout
230
230
  * @default 15
231
231
  */
232
- Aws.prototype['timeout'] = 15;
232
+ Aws.prototype["timeout"] = 15;
233
233
 
234
234
  /**
235
235
  * @member {module:model/AwsTransform} transform
236
236
  */
237
- Aws.prototype['transform'] = undefined;
237
+ Aws.prototype["transform"] = undefined;
238
238
 
239
239
  /**
240
240
  * @member {String} url
241
241
  */
242
- Aws.prototype['url'] = undefined;
242
+ Aws.prototype["url"] = undefined;
243
243
  var _default = exports["default"] = Aws;
@@ -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 AwsFilter model module.
28
28
  * @module model/AwsFilter
29
- * @version 2.1.0-beta.9
29
+ * @version 2.2.0
30
30
  */
31
31
  var AwsFilter = /*#__PURE__*/function () {
32
32
  /**
@@ -60,14 +60,14 @@ var AwsFilter = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new AwsFilter();
63
- if (data.hasOwnProperty('files')) {
64
- obj['files'] = _ApiClient["default"].convertToType(data['files'], ['String']);
63
+ if (data.hasOwnProperty("files")) {
64
+ obj["files"] = _ApiClient["default"].convertToType(data["files"], ["String"]);
65
65
  }
66
- if (data.hasOwnProperty('system_notefiles')) {
67
- obj['system_notefiles'] = _ApiClient["default"].convertToType(data['system_notefiles'], 'Boolean');
66
+ if (data.hasOwnProperty("system_notefiles")) {
67
+ obj["system_notefiles"] = _ApiClient["default"].convertToType(data["system_notefiles"], "Boolean");
68
68
  }
69
- if (data.hasOwnProperty('type')) {
70
- obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
69
+ if (data.hasOwnProperty("type")) {
70
+ obj["type"] = _ApiClient["default"].convertToType(data["type"], "String");
71
71
  }
72
72
  } else if (data === null) {
73
73
  return null;
@@ -84,12 +84,12 @@ var AwsFilter = /*#__PURE__*/function () {
84
84
  key: "validateJSON",
85
85
  value: function validateJSON(data) {
86
86
  // ensure the json data is an array
87
- if (!Array.isArray(data['files'])) {
88
- throw new Error("Expected the field `files` to be an array in the JSON data but got " + data['files']);
87
+ if (!Array.isArray(data["files"])) {
88
+ throw new Error("Expected the field `files` to be an array in the JSON data but got " + data["files"]);
89
89
  }
90
90
  // ensure the json data is a string
91
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
92
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
91
+ if (data["type"] && !(typeof data["type"] === "string" || data["type"] instanceof String)) {
92
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data["type"]);
93
93
  }
94
94
  return true;
95
95
  }
@@ -98,40 +98,40 @@ var AwsFilter = /*#__PURE__*/function () {
98
98
  /**
99
99
  * @member {Array.<String>} files
100
100
  */
101
- AwsFilter.prototype['files'] = undefined;
101
+ AwsFilter.prototype["files"] = undefined;
102
102
 
103
103
  /**
104
104
  * Whether system notefiles should be affected by this route
105
105
  * @member {Boolean} system_notefiles
106
106
  */
107
- AwsFilter.prototype['system_notefiles'] = undefined;
107
+ AwsFilter.prototype["system_notefiles"] = undefined;
108
108
 
109
109
  /**
110
110
  * What notefiles this route applies to.
111
111
  * @member {module:model/AwsFilter.TypeEnum} type
112
112
  */
113
- AwsFilter.prototype['type'] = undefined;
113
+ AwsFilter.prototype["type"] = undefined;
114
114
 
115
115
  /**
116
116
  * Allowed values for the <code>type</code> property.
117
117
  * @enum {String}
118
118
  * @readonly
119
119
  */
120
- AwsFilter['TypeEnum'] = {
120
+ AwsFilter["TypeEnum"] = {
121
121
  /**
122
122
  * value: "all"
123
123
  * @const
124
124
  */
125
- "all": "all",
125
+ all: "all",
126
126
  /**
127
127
  * value: "include"
128
128
  * @const
129
129
  */
130
- "include": "include",
130
+ include: "include",
131
131
  /**
132
132
  * value: "exclude"
133
133
  * @const
134
134
  */
135
- "exclude": "exclude"
135
+ exclude: "exclude"
136
136
  };
137
137
  var _default = exports["default"] = AwsFilter;