@blues-inc/notehub-js 1.0.21 → 1.0.23-beta.1

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 (98) hide show
  1. package/README.md +188 -178
  2. package/dist/ApiClient.js +156 -156
  3. package/dist/api/AlertApi.js +23 -20
  4. package/dist/api/AuthorizationApi.js +17 -17
  5. package/dist/api/BillingAccountApi.js +15 -15
  6. package/dist/api/DeviceApi.js +380 -329
  7. package/dist/api/EventApi.js +162 -121
  8. package/dist/api/MonitorApi.js +53 -53
  9. package/dist/api/ProjectApi.js +246 -246
  10. package/dist/api/RouteApi.js +77 -77
  11. package/dist/model/Alert.js +72 -57
  12. package/dist/model/AlertDataInner.js +36 -36
  13. package/dist/model/AlertNotificationsInner.js +19 -19
  14. package/dist/model/Aws.js +66 -66
  15. package/dist/model/Azure.js +44 -44
  16. package/dist/model/BillingAccount.js +22 -22
  17. package/dist/model/BillingAccountRole.js +10 -10
  18. package/dist/model/Body.js +6 -6
  19. package/dist/model/CloneProjectRequest.js +21 -21
  20. package/dist/model/Contact.js +23 -23
  21. package/dist/model/CreateFleetRequest.js +8 -8
  22. package/dist/model/CreateMonitor.js +127 -126
  23. package/dist/model/CreateProductRequest.js +23 -23
  24. package/dist/model/CreateProjectRequest.js +17 -17
  25. package/dist/model/DFUEnv.js +13 -13
  26. package/dist/model/DFUState.js +66 -66
  27. package/dist/model/DeleteDeviceFleetsRequest.js +9 -9
  28. package/dist/model/Device.js +85 -85
  29. package/dist/model/DeviceSession.js +183 -183
  30. package/dist/model/DeviceTowerInfo.js +15 -15
  31. package/dist/model/DeviceUsage.js +33 -33
  32. package/dist/model/EmailNotification.js +8 -8
  33. package/dist/model/EnvironmentVariables.js +9 -9
  34. package/dist/model/Error.js +32 -32
  35. package/dist/model/Event.js +224 -224
  36. package/dist/model/FirmwareInfo.js +61 -61
  37. package/dist/model/FirmwareStatus.js +28 -28
  38. package/dist/model/Fleet.js +22 -22
  39. package/dist/model/GetAlerts200Response.js +16 -15
  40. package/dist/model/GetBillingAccounts200Response.js +11 -10
  41. package/dist/model/GetDeviceEnvironmentVariables200Response.js +13 -13
  42. package/dist/model/GetDeviceHealthLog200Response.js +13 -12
  43. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +20 -20
  44. package/dist/model/GetDeviceLatest200Response.js +11 -10
  45. package/dist/model/GetDevicePublicKey200Response.js +17 -17
  46. package/dist/model/GetDeviceSessions200Response.js +18 -17
  47. package/dist/model/GetProjectDevicePublicKeys200Response.js +18 -17
  48. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +13 -13
  49. package/dist/model/GetProjectDevices200Response.js +18 -17
  50. package/dist/model/GetProjectEvents200Response.js +30 -16
  51. package/dist/model/GetProjectEventsByCursor200Response.js +25 -24
  52. package/dist/model/GetProjectFleets200Response.js +13 -12
  53. package/dist/model/GetProjectMembers200Response.js +13 -12
  54. package/dist/model/GetProjectProducts200Response.js +11 -10
  55. package/dist/model/GetProjects200Response.js +11 -10
  56. package/dist/model/GetRouteLogsByRoute200ResponseInner.js +36 -36
  57. package/dist/model/Google.js +34 -34
  58. package/dist/model/HandleNoteChanges200Response.js +12 -12
  59. package/dist/model/HandleNoteGet200Response.js +14 -14
  60. package/dist/model/HandleNoteSignal200Response.js +6 -6
  61. package/dist/model/HandleNotefileChanges200Response.js +12 -12
  62. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  63. package/dist/model/HandleNotefileDeleteRequest.js +8 -8
  64. package/dist/model/Http.js +36 -36
  65. package/dist/model/HttpFilter.js +20 -20
  66. package/dist/model/HttpTransform.js +21 -21
  67. package/dist/model/Location.js +41 -41
  68. package/dist/model/Login200Response.js +8 -8
  69. package/dist/model/LoginRequest.js +13 -13
  70. package/dist/model/Monitor.js +101 -100
  71. package/dist/model/MonitorAlertRoutesInner.js +10 -11
  72. package/dist/model/Mqtt.js +67 -67
  73. package/dist/model/Note.js +11 -11
  74. package/dist/model/OTAStatus.js +89 -89
  75. package/dist/model/OTAStatusList.js +14 -13
  76. package/dist/model/OTAUpdateRequest.js +54 -54
  77. package/dist/model/OTAUpdateStatus.js +18 -18
  78. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  79. package/dist/model/Product.js +27 -27
  80. package/dist/model/Project.js +35 -35
  81. package/dist/model/ProjectMember.js +23 -23
  82. package/dist/model/Proxy.js +25 -25
  83. package/dist/model/PutDeviceFleetsRequest.js +9 -9
  84. package/dist/model/Radresponder.js +26 -26
  85. package/dist/model/Role.js +10 -10
  86. package/dist/model/Route.js +37 -37
  87. package/dist/model/RouteSchema.js +46 -47
  88. package/dist/model/Slack.js +54 -54
  89. package/dist/model/SlackBearerNotification.js +26 -26
  90. package/dist/model/SlackWebHookNotification.js +21 -21
  91. package/dist/model/Snowflake.js +46 -46
  92. package/dist/model/SnowflakeTransform.js +13 -13
  93. package/dist/model/Thingworx.js +34 -34
  94. package/dist/model/TowerLocation.js +53 -53
  95. package/dist/model/Twilio.js +44 -44
  96. package/dist/model/UpdateFleetRequest.js +18 -18
  97. package/dist/model/UserDbRoute.js +26 -26
  98. package/package.json +4 -4
@@ -13,9 +13,9 @@ 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. Beta test change
17
17
  *
18
- * The version of the OpenAPI document: 1.1.0
18
+ * The version of the OpenAPI document: 1.1.2
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.21
29
+ * @version 1.0.23-beta.1
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("value")) {
72
- obj["value"] = _ApiClient["default"].convertToType(data["value"], "Number");
71
+ if (data.hasOwnProperty('value')) {
72
+ obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number');
73
73
  }
74
- if (data.hasOwnProperty("source_uid")) {
75
- obj["source_uid"] = _ApiClient["default"].convertToType(data["source_uid"], "String");
74
+ if (data.hasOwnProperty('source_uid')) {
75
+ obj['source_uid'] = _ApiClient["default"].convertToType(data['source_uid'], 'String');
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 value that triggered the alert
138
138
  * @member {Number} value
139
139
  */
140
- AlertDataInner.prototype["value"] = undefined;
140
+ AlertDataInner.prototype['value'] = undefined;
141
141
 
142
142
  /**
143
143
  * The UID of the source of the alert
144
144
  * @member {String} source_uid
145
145
  */
146
- AlertDataInner.prototype["source_uid"] = undefined;
146
+ AlertDataInner.prototype['source_uid'] = 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,9 +13,9 @@ 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. Beta test change
17
17
  *
18
- * The version of the OpenAPI document: 1.1.0
18
+ * The version of the OpenAPI document: 1.1.2
19
19
  * Contact: engineering@blues.io
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.21
29
+ * @version 1.0.23-beta.1
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("status")) {
66
- obj["status"] = _ApiClient["default"].convertToType(data["status"], "Number");
65
+ if (data.hasOwnProperty('status')) {
66
+ obj['status'] = _ApiClient["default"].convertToType(data['status'], 'Number');
67
67
  }
68
- if (data.hasOwnProperty("recipients")) {
69
- obj["recipients"] = _ApiClient["default"].convertToType(data["recipients"], "String");
68
+ if (data.hasOwnProperty('recipients')) {
69
+ obj['recipients'] = _ApiClient["default"].convertToType(data['recipients'], 'String');
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 status of the notification
105
105
  * @member {Number} status
106
106
  */
107
- AlertNotificationsInner.prototype["status"] = undefined;
107
+ AlertNotificationsInner.prototype['status'] = undefined;
108
108
 
109
109
  /**
110
110
  * The recipients of the notification
111
111
  * @member {String} recipients
112
112
  */
113
- AlertNotificationsInner.prototype["recipients"] = undefined;
113
+ AlertNotificationsInner.prototype['recipients'] = 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,9 +15,9 @@ 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. Beta test change
19
19
  *
20
- * The version of the OpenAPI document: 1.1.0
20
+ * The version of the OpenAPI document: 1.1.2
21
21
  * Contact: engineering@blues.io
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.21
31
+ * @version 1.0.23-beta.1
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("fleets")) {
66
- obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
65
+ if (data.hasOwnProperty('fleets')) {
66
+ obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
67
67
  }
68
- if (data.hasOwnProperty("filter")) {
69
- obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
68
+ if (data.hasOwnProperty('filter')) {
69
+ obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
70
70
  }
71
- if (data.hasOwnProperty("transform")) {
72
- obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
71
+ if (data.hasOwnProperty('transform')) {
72
+ obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
73
73
  }
74
- if (data.hasOwnProperty("throttle_ms")) {
75
- obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
74
+ if (data.hasOwnProperty('throttle_ms')) {
75
+ obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
76
76
  }
77
- if (data.hasOwnProperty("url")) {
78
- obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
77
+ if (data.hasOwnProperty('url')) {
78
+ obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
79
79
  }
80
- if (data.hasOwnProperty("http_headers")) {
81
- obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
82
- String: "String"
80
+ if (data.hasOwnProperty('http_headers')) {
81
+ obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
82
+ 'String': 'String'
83
83
  });
84
84
  }
85
- if (data.hasOwnProperty("disable_http_headers")) {
86
- obj["disable_http_headers"] = _ApiClient["default"].convertToType(data["disable_http_headers"], "Boolean");
85
+ if (data.hasOwnProperty('disable_http_headers')) {
86
+ obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
87
87
  }
88
- if (data.hasOwnProperty("timeout")) {
89
- obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
88
+ if (data.hasOwnProperty('timeout')) {
89
+ obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
90
90
  }
91
- if (data.hasOwnProperty("region")) {
92
- obj["region"] = _ApiClient["default"].convertToType(data["region"], "String");
91
+ if (data.hasOwnProperty('region')) {
92
+ obj['region'] = _ApiClient["default"].convertToType(data['region'], 'String');
93
93
  }
94
- if (data.hasOwnProperty("access_key_id")) {
95
- obj["access_key_id"] = _ApiClient["default"].convertToType(data["access_key_id"], "String");
94
+ if (data.hasOwnProperty('access_key_id')) {
95
+ obj['access_key_id'] = _ApiClient["default"].convertToType(data['access_key_id'], 'String');
96
96
  }
97
- if (data.hasOwnProperty("access_key_secret")) {
98
- obj["access_key_secret"] = _ApiClient["default"].convertToType(data["access_key_secret"], "String");
97
+ if (data.hasOwnProperty('access_key_secret')) {
98
+ obj['access_key_secret'] = _ApiClient["default"].convertToType(data['access_key_secret'], 'String');
99
99
  }
100
- if (data.hasOwnProperty("message_group_id")) {
101
- obj["message_group_id"] = _ApiClient["default"].convertToType(data["message_group_id"], "String");
100
+ if (data.hasOwnProperty('message_group_id')) {
101
+ obj['message_group_id'] = _ApiClient["default"].convertToType(data['message_group_id'], 'String');
102
102
  }
103
- if (data.hasOwnProperty("message_deduplication_id")) {
104
- obj["message_deduplication_id"] = _ApiClient["default"].convertToType(data["message_deduplication_id"], "String");
103
+ if (data.hasOwnProperty('message_deduplication_id')) {
104
+ obj['message_deduplication_id'] = _ApiClient["default"].convertToType(data['message_deduplication_id'], 'String');
105
105
  }
106
- if (data.hasOwnProperty("channel")) {
107
- obj["channel"] = _ApiClient["default"].convertToType(data["channel"], "String");
106
+ if (data.hasOwnProperty('channel')) {
107
+ obj['channel'] = _ApiClient["default"].convertToType(data['channel'], '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 an array
124
- if (!Array.isArray(data["fleets"])) {
125
- throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
124
+ if (!Array.isArray(data['fleets'])) {
125
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
126
126
  }
127
127
  // validate the optional field `filter`
128
- if (data["filter"]) {
128
+ if (data['filter']) {
129
129
  // data not null
130
- _HttpFilter["default"].validateJSON(data["filter"]);
130
+ _HttpFilter["default"].validateJSON(data['filter']);
131
131
  }
132
132
  // validate the optional field `transform`
133
- if (data["transform"]) {
133
+ if (data['transform']) {
134
134
  // data not null
135
- _HttpTransform["default"].validateJSON(data["transform"]);
135
+ _HttpTransform["default"].validateJSON(data['transform']);
136
136
  }
137
137
  // ensure the json data is a string
138
- if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
139
- throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
138
+ if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
139
+ throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
140
140
  }
141
141
  // ensure the json data is a string
142
- if (data["region"] && !(typeof data["region"] === "string" || data["region"] instanceof String)) {
143
- throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data["region"]);
142
+ if (data['region'] && !(typeof data['region'] === 'string' || data['region'] instanceof String)) {
143
+ throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data['region']);
144
144
  }
145
145
  // ensure the json data is a string
146
- if (data["access_key_id"] && !(typeof data["access_key_id"] === "string" || data["access_key_id"] instanceof String)) {
147
- throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data["access_key_id"]);
146
+ if (data['access_key_id'] && !(typeof data['access_key_id'] === 'string' || data['access_key_id'] instanceof String)) {
147
+ throw new Error("Expected the field `access_key_id` to be a primitive type in the JSON string but got " + data['access_key_id']);
148
148
  }
149
149
  // ensure the json data is a string
150
- if (data["access_key_secret"] && !(typeof data["access_key_secret"] === "string" || data["access_key_secret"] instanceof String)) {
151
- throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data["access_key_secret"]);
150
+ if (data['access_key_secret'] && !(typeof data['access_key_secret'] === 'string' || data['access_key_secret'] instanceof String)) {
151
+ throw new Error("Expected the field `access_key_secret` to be a primitive type in the JSON string but got " + data['access_key_secret']);
152
152
  }
153
153
  // ensure the json data is a string
154
- if (data["message_group_id"] && !(typeof data["message_group_id"] === "string" || data["message_group_id"] instanceof String)) {
155
- throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data["message_group_id"]);
154
+ if (data['message_group_id'] && !(typeof data['message_group_id'] === 'string' || data['message_group_id'] instanceof String)) {
155
+ throw new Error("Expected the field `message_group_id` to be a primitive type in the JSON string but got " + data['message_group_id']);
156
156
  }
157
157
  // ensure the json data is a string
158
- if (data["message_deduplication_id"] && !(typeof data["message_deduplication_id"] === "string" || data["message_deduplication_id"] instanceof String)) {
159
- throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data["message_deduplication_id"]);
158
+ if (data['message_deduplication_id'] && !(typeof data['message_deduplication_id'] === 'string' || data['message_deduplication_id'] instanceof String)) {
159
+ throw new Error("Expected the field `message_deduplication_id` to be a primitive type in the JSON string but got " + data['message_deduplication_id']);
160
160
  }
161
161
  // ensure the json data is a string
162
- if (data["channel"] && !(typeof data["channel"] === "string" || data["channel"] instanceof String)) {
163
- throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data["channel"]);
162
+ if (data['channel'] && !(typeof data['channel'] === 'string' || data['channel'] instanceof String)) {
163
+ throw new Error("Expected the field `channel` to be a primitive type in the JSON string but got " + data['channel']);
164
164
  }
165
165
  return true;
166
166
  }
@@ -170,74 +170,74 @@ var Aws = /*#__PURE__*/function () {
170
170
  * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
171
171
  * @member {Array.<String>} fleets
172
172
  */
173
- Aws.prototype["fleets"] = undefined;
173
+ Aws.prototype['fleets'] = undefined;
174
174
 
175
175
  /**
176
176
  * @member {module:model/HttpFilter} filter
177
177
  */
178
- Aws.prototype["filter"] = undefined;
178
+ Aws.prototype['filter'] = undefined;
179
179
 
180
180
  /**
181
181
  * @member {module:model/HttpTransform} transform
182
182
  */
183
- Aws.prototype["transform"] = undefined;
183
+ Aws.prototype['transform'] = undefined;
184
184
 
185
185
  /**
186
186
  * @member {Number} throttle_ms
187
187
  */
188
- Aws.prototype["throttle_ms"] = undefined;
188
+ Aws.prototype['throttle_ms'] = undefined;
189
189
 
190
190
  /**
191
191
  * @member {String} url
192
192
  */
193
- Aws.prototype["url"] = undefined;
193
+ Aws.prototype['url'] = undefined;
194
194
 
195
195
  /**
196
196
  * @member {Object.<String, String>} http_headers
197
197
  */
198
- Aws.prototype["http_headers"] = undefined;
198
+ Aws.prototype['http_headers'] = undefined;
199
199
 
200
200
  /**
201
201
  * @member {Boolean} disable_http_headers
202
202
  * @default false
203
203
  */
204
- Aws.prototype["disable_http_headers"] = false;
204
+ Aws.prototype['disable_http_headers'] = false;
205
205
 
206
206
  /**
207
207
  * Timeout in seconds for each request
208
208
  * @member {Number} timeout
209
209
  * @default 15
210
210
  */
211
- Aws.prototype["timeout"] = 15;
211
+ Aws.prototype['timeout'] = 15;
212
212
 
213
213
  /**
214
214
  * @member {String} region
215
215
  */
216
- Aws.prototype["region"] = undefined;
216
+ Aws.prototype['region'] = undefined;
217
217
 
218
218
  /**
219
219
  * @member {String} access_key_id
220
220
  */
221
- Aws.prototype["access_key_id"] = undefined;
221
+ Aws.prototype['access_key_id'] = undefined;
222
222
 
223
223
  /**
224
224
  * This value is input-only and will be omitted from the response and replaced with a placeholder
225
225
  * @member {String} access_key_secret
226
226
  */
227
- Aws.prototype["access_key_secret"] = undefined;
227
+ Aws.prototype['access_key_secret'] = undefined;
228
228
 
229
229
  /**
230
230
  * @member {String} message_group_id
231
231
  */
232
- Aws.prototype["message_group_id"] = undefined;
232
+ Aws.prototype['message_group_id'] = undefined;
233
233
 
234
234
  /**
235
235
  * @member {String} message_deduplication_id
236
236
  */
237
- Aws.prototype["message_deduplication_id"] = undefined;
237
+ Aws.prototype['message_deduplication_id'] = undefined;
238
238
 
239
239
  /**
240
240
  * @member {String} channel
241
241
  */
242
- Aws.prototype["channel"] = undefined;
242
+ Aws.prototype['channel'] = undefined;
243
243
  var _default = exports["default"] = Aws;