@blues-inc/notehub-js 2.2.0 → 2.2.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 (143) hide show
  1. package/README.md +21 -18
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -1
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +1 -13
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +1 -1
  10. package/dist/api/ProjectApi.js +1 -1
  11. package/dist/api/RouteApi.js +10 -10
  12. package/dist/api/UsageApi.js +8 -8
  13. package/dist/api/WebhookApi.js +1 -1
  14. package/dist/index.js +85 -64
  15. package/dist/model/Alert.js +1 -1
  16. package/dist/model/AlertDataInner.js +1 -1
  17. package/dist/model/AlertNotificationsInner.js +1 -1
  18. package/dist/model/{Aws.js → AwsRoute.js} +39 -45
  19. package/dist/model/{Azure.js → AzureRoute.js} +34 -40
  20. package/dist/model/BillingAccount.js +1 -1
  21. package/dist/model/BlynkRoute.js +147 -0
  22. package/dist/model/Body.js +1 -1
  23. package/dist/model/CellularPlan.js +1 -1
  24. package/dist/model/CloneProjectRequest.js +1 -1
  25. package/dist/model/Contact.js +1 -1
  26. package/dist/model/CreateFleetRequest.js +15 -1
  27. package/dist/model/CreateMonitor.js +1 -1
  28. package/dist/model/CreateProductRequest.js +1 -1
  29. package/dist/model/CreateProjectRequest.js +1 -1
  30. package/dist/model/CreateUpdateRepository.js +1 -1
  31. package/dist/model/CurrentFirmware.js +1 -1
  32. package/dist/model/DFUEnv.js +1 -1
  33. package/dist/model/DFUState.js +1 -1
  34. package/dist/model/DataField.js +1 -1
  35. package/dist/model/DataSetField.js +1 -1
  36. package/dist/model/DataUsage.js +1 -1
  37. package/dist/model/DatacakeRoute.js +165 -0
  38. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  39. package/dist/model/Device.js +1 -1
  40. package/dist/model/DeviceDfuHistory.js +1 -1
  41. package/dist/model/DeviceDfuHistoryCurrent.js +1 -1
  42. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  43. package/dist/model/DeviceDfuStateMachine.js +1 -1
  44. package/dist/model/DeviceDfuStateMachineNode.js +1 -1
  45. package/dist/model/DeviceDfuStatus.js +1 -1
  46. package/dist/model/DeviceDfuStatusPage.js +1 -1
  47. package/dist/model/DeviceSession.js +1 -1
  48. package/dist/model/DeviceTowerInfo.js +1 -1
  49. package/dist/model/DeviceUsage.js +1 -1
  50. package/dist/model/DfuActionRequest.js +1 -1
  51. package/dist/model/EmailNotification.js +1 -1
  52. package/dist/model/EnvTreeJsonNode.js +1 -1
  53. package/dist/model/EnvVar.js +1 -1
  54. package/dist/model/EnvironmentVariables.js +1 -1
  55. package/dist/model/Error.js +1 -1
  56. package/dist/model/Event.js +1 -1
  57. package/dist/model/{AwsFilter.js → Filter.js} +25 -47
  58. package/dist/model/Firmware.js +1 -1
  59. package/dist/model/FirmwareInfo.js +1 -1
  60. package/dist/model/Fleet.js +16 -2
  61. package/dist/model/FleetConnectivityAssurance.js +111 -0
  62. package/dist/model/GetAlerts200Response.js +1 -1
  63. package/dist/model/GetBillingAccounts200Response.js +1 -1
  64. package/dist/model/GetDataUsage200Response.js +1 -1
  65. package/dist/model/GetDataUsage200ResponseDataInner.js +1 -1
  66. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +1 -1
  67. package/dist/model/GetDeviceFleets200Response.js +1 -1
  68. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  69. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +1 -1
  70. package/dist/model/GetDeviceLatest200Response.js +1 -1
  71. package/dist/model/GetDevicePlans200Response.js +1 -1
  72. package/dist/model/GetDevicePublicKey200Response.js +1 -1
  73. package/dist/model/GetDeviceSessions200Response.js +1 -1
  74. package/dist/model/GetProducts200Response.js +1 -1
  75. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  76. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +1 -1
  77. package/dist/model/GetProjectDevices200Response.js +1 -1
  78. package/dist/model/GetProjectEvents200Response.js +1 -1
  79. package/dist/model/GetProjectEventsByCursor200Response.js +1 -1
  80. package/dist/model/GetProjectMembers200Response.js +1 -1
  81. package/dist/model/GetProjects200Response.js +1 -1
  82. package/dist/model/GetSessionsUsage200Response.js +1 -1
  83. package/dist/model/GetWebhooks200Response.js +1 -1
  84. package/dist/model/{Google.js → GoogleRoute.js} +32 -37
  85. package/dist/model/HandleNoteChanges200Response.js +1 -1
  86. package/dist/model/HandleNoteGet200Response.js +1 -1
  87. package/dist/model/HandleNoteSignal200Response.js +1 -1
  88. package/dist/model/HandleNotefileChanges200Response.js +1 -1
  89. package/dist/model/HandleNotefileChangesPending200Response.js +1 -1
  90. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  91. package/dist/model/{Http.js → HttpRoute.js} +34 -40
  92. package/dist/model/Location.js +1 -1
  93. package/dist/model/Login200Response.js +1 -1
  94. package/dist/model/LoginRequest.js +1 -1
  95. package/dist/model/Monitor.js +1 -1
  96. package/dist/model/MonitorAlertRoutesInner.js +1 -1
  97. package/dist/model/{Mqtt.js → MqttRoute.js} +45 -50
  98. package/dist/model/Note.js +1 -1
  99. package/dist/model/NotefileSchema.js +1 -1
  100. package/dist/model/NotehubRoute.js +214 -134
  101. package/dist/model/{UserDbRoute.js → NotehubRouteSummary.js} +24 -29
  102. package/dist/model/OAuth2Error.js +1 -1
  103. package/dist/model/OAuth2TokenResponse.js +1 -1
  104. package/dist/model/PersonalAccessToken.js +1 -1
  105. package/dist/model/PersonalAccessTokenCreatedBy.js +1 -1
  106. package/dist/model/PersonalAccessTokenInfo.js +1 -1
  107. package/dist/model/PersonalAccessTokenSecret.js +1 -1
  108. package/dist/model/PostProvisionProjectDeviceRequest.js +1 -1
  109. package/dist/model/Product.js +1 -1
  110. package/dist/model/Project.js +1 -1
  111. package/dist/model/ProjectMember.js +1 -1
  112. package/dist/model/{Proxy.js → ProxyRoute.js} +22 -26
  113. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  114. package/dist/model/QubitroRoute.js +159 -0
  115. package/dist/model/{Radresponder.js → RadRoute.js} +38 -26
  116. package/dist/model/Repository.js +1 -1
  117. package/dist/model/RouteLog.js +1 -1
  118. package/dist/model/{SlackTransform.js → RouteTransformSettings.js} +22 -22
  119. package/dist/model/S3ArchiveRoute.js +271 -0
  120. package/dist/model/SatellitePlan.js +1 -1
  121. package/dist/model/SchemaProperty.js +1 -1
  122. package/dist/model/SimUsage.js +1 -1
  123. package/dist/model/SlackBearerNotification.js +1 -1
  124. package/dist/model/{Slack.js → SlackRoute.js} +35 -58
  125. package/dist/model/SlackWebHookNotification.js +1 -1
  126. package/dist/model/{Snowflake.js → SnowflakeRoute.js} +34 -41
  127. package/dist/model/{Thingworx.js → ThingworxRoute.js} +32 -37
  128. package/dist/model/TowerLocation.js +1 -1
  129. package/dist/model/{Twilio.js → TwilioRoute.js} +30 -39
  130. package/dist/model/UpdateFleetRequest.js +15 -1
  131. package/dist/model/UploadMetadata.js +1 -1
  132. package/dist/model/UsageData.js +1 -1
  133. package/dist/model/UsageEventsData.js +20 -7
  134. package/dist/model/UsageEventsResponse.js +1 -1
  135. package/dist/model/UsageRouteLogsData.js +2 -2
  136. package/dist/model/UsageSessionsData.js +1 -1
  137. package/dist/model/UserDfuStateMachine.js +1 -1
  138. package/dist/model/UserDfuStateMachineStatus.js +1 -1
  139. package/dist/model/UserFirmwareInfo.js +1 -1
  140. package/dist/model/WebhookSettings.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/model/AwsTransform.js +0 -148
  143. package/dist/model/NotehubRouteSchema.js +0 -506
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _AwsFilter = _interopRequireDefault(require("./AwsFilter"));
9
- var _AwsTransform = _interopRequireDefault(require("./AwsTransform"));
8
+ var _Filter = _interopRequireDefault(require("./Filter"));
9
+ var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
11
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
12
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -26,19 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  *
27
27
  */
28
28
  /**
29
- * The Azure model module.
30
- * @module model/Azure
31
- * @version 2.2.0
29
+ * The AzureRoute model module.
30
+ * @module model/AzureRoute
31
+ * @version 2.2.1
32
32
  */
33
- var Azure = /*#__PURE__*/function () {
33
+ var AzureRoute = /*#__PURE__*/function () {
34
34
  /**
35
- * Constructs a new <code>Azure</code>.
36
- * Route settings specific to Azure routes. Only used for Azure route types
37
- * @alias module:model/Azure
35
+ * Constructs a new <code>AzureRoute</code>.
36
+ * @alias module:model/AzureRoute
38
37
  */
39
- function Azure() {
40
- _classCallCheck(this, Azure);
41
- Azure.initialize(this);
38
+ function AzureRoute() {
39
+ _classCallCheck(this, AzureRoute);
40
+ AzureRoute.initialize(this);
42
41
  }
43
42
 
44
43
  /**
@@ -46,24 +45,24 @@ var Azure = /*#__PURE__*/function () {
46
45
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
47
46
  * Only for internal use.
48
47
  */
49
- return _createClass(Azure, null, [{
48
+ return _createClass(AzureRoute, null, [{
50
49
  key: "initialize",
51
50
  value: function initialize(obj) {}
52
51
 
53
52
  /**
54
- * Constructs a <code>Azure</code> from a plain JavaScript object, optionally creating a new instance.
53
+ * Constructs a <code>AzureRoute</code> from a plain JavaScript object, optionally creating a new instance.
55
54
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
56
55
  * @param {Object} data The plain JavaScript object bearing properties of interest.
57
- * @param {module:model/Azure} obj Optional instance to populate.
58
- * @return {module:model/Azure} The populated <code>Azure</code> instance.
56
+ * @param {module:model/AzureRoute} obj Optional instance to populate.
57
+ * @return {module:model/AzureRoute} The populated <code>AzureRoute</code> instance.
59
58
  */
60
59
  }, {
61
60
  key: "constructFromObject",
62
61
  value: function constructFromObject(data, obj) {
63
62
  if (data) {
64
- obj = obj || new Azure();
63
+ obj = obj || new AzureRoute();
65
64
  if (data.hasOwnProperty("filter")) {
66
- obj["filter"] = _AwsFilter["default"].constructFromObject(data["filter"]);
65
+ obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
67
66
  }
68
67
  if (data.hasOwnProperty("fleets")) {
69
68
  obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
@@ -84,7 +83,7 @@ var Azure = /*#__PURE__*/function () {
84
83
  obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
85
84
  }
86
85
  if (data.hasOwnProperty("transform")) {
87
- obj["transform"] = _AwsTransform["default"].constructFromObject(data["transform"]);
86
+ obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
88
87
  }
89
88
  if (data.hasOwnProperty("url")) {
90
89
  obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
@@ -96,9 +95,9 @@ var Azure = /*#__PURE__*/function () {
96
95
  }
97
96
 
98
97
  /**
99
- * Validates the JSON data with respect to <code>Azure</code>.
98
+ * Validates the JSON data with respect to <code>AzureRoute</code>.
100
99
  * @param {Object} data The plain JavaScript object bearing properties of interest.
101
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>Azure</code>.
100
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>AzureRoute</code>.
102
101
  */
103
102
  }, {
104
103
  key: "validateJSON",
@@ -106,7 +105,7 @@ var Azure = /*#__PURE__*/function () {
106
105
  // validate the optional field `filter`
107
106
  if (data["filter"]) {
108
107
  // data not null
109
- _AwsFilter["default"].validateJSON(data["filter"]);
108
+ _Filter["default"].validateJSON(data["filter"]);
110
109
  }
111
110
  // ensure the json data is an array
112
111
  if (!Array.isArray(data["fleets"])) {
@@ -127,7 +126,7 @@ var Azure = /*#__PURE__*/function () {
127
126
  // validate the optional field `transform`
128
127
  if (data["transform"]) {
129
128
  // data not null
130
- _AwsTransform["default"].validateJSON(data["transform"]);
129
+ _RouteTransformSettings["default"].validateJSON(data["transform"]);
131
130
  }
132
131
  // ensure the json data is a string
133
132
  if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
@@ -138,52 +137,47 @@ var Azure = /*#__PURE__*/function () {
138
137
  }]);
139
138
  }();
140
139
  /**
141
- * @member {module:model/AwsFilter} filter
140
+ * @member {module:model/Filter} filter
142
141
  */
143
- Azure.prototype["filter"] = undefined;
142
+ AzureRoute.prototype["filter"] = undefined;
144
143
 
145
144
  /**
146
- * list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
147
145
  * @member {Array.<String>} fleets
148
146
  */
149
- Azure.prototype["fleets"] = undefined;
147
+ AzureRoute.prototype["fleets"] = undefined;
150
148
 
151
149
  /**
152
- * This value is input-only and will be omitted from the response and replaced with a placeholder
153
150
  * @member {String} functions_key_secret
154
151
  */
155
- Azure.prototype["functions_key_secret"] = undefined;
152
+ AzureRoute.prototype["functions_key_secret"] = undefined;
156
153
 
157
154
  /**
158
- * This value is input-only and will be omitted from the response and replaced with a placeholder
159
155
  * @member {String} sas_policy_key
160
156
  */
161
- Azure.prototype["sas_policy_key"] = undefined;
157
+ AzureRoute.prototype["sas_policy_key"] = undefined;
162
158
 
163
159
  /**
164
160
  * @member {String} sas_policy_name
165
161
  */
166
- Azure.prototype["sas_policy_name"] = undefined;
162
+ AzureRoute.prototype["sas_policy_name"] = undefined;
167
163
 
168
164
  /**
169
165
  * @member {Number} throttle_ms
170
166
  */
171
- Azure.prototype["throttle_ms"] = undefined;
167
+ AzureRoute.prototype["throttle_ms"] = undefined;
172
168
 
173
169
  /**
174
- * Timeout in seconds for each request
175
170
  * @member {Number} timeout
176
- * @default 15
177
171
  */
178
- Azure.prototype["timeout"] = 15;
172
+ AzureRoute.prototype["timeout"] = undefined;
179
173
 
180
174
  /**
181
- * @member {module:model/AwsTransform} transform
175
+ * @member {module:model/RouteTransformSettings} transform
182
176
  */
183
- Azure.prototype["transform"] = undefined;
177
+ AzureRoute.prototype["transform"] = undefined;
184
178
 
185
179
  /**
186
180
  * @member {String} url
187
181
  */
188
- Azure.prototype["url"] = undefined;
189
- var _default = exports["default"] = Azure;
182
+ AzureRoute.prototype["url"] = undefined;
183
+ var _default = exports["default"] = AzureRoute;
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The BillingAccount model module.
32
32
  * @module model/BillingAccount
33
- * @version 2.2.0
33
+ * @version 2.2.1
34
34
  */
35
35
  var BillingAccount = /*#__PURE__*/function () {
36
36
  /**
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports["default"] = void 0;
7
+ var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _Filter = _interopRequireDefault(require("./Filter"));
9
+ var _RouteTransformSettings = _interopRequireDefault(require("./RouteTransformSettings"));
10
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
13
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
14
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
15
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
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
+ * Notehub API
18
+ * The OpenAPI definition for the Notehub.io API.
19
+ *
20
+ * The version of the OpenAPI document: 1.2.0
21
+ * Contact: engineering@blues.io
22
+ *
23
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
24
+ * https://openapi-generator.tech
25
+ * Do not edit the class manually.
26
+ *
27
+ */
28
+ /**
29
+ * The BlynkRoute model module.
30
+ * @module model/BlynkRoute
31
+ * @version 2.2.1
32
+ */
33
+ var BlynkRoute = /*#__PURE__*/function () {
34
+ /**
35
+ * Constructs a new <code>BlynkRoute</code>.
36
+ * @alias module:model/BlynkRoute
37
+ */
38
+ function BlynkRoute() {
39
+ _classCallCheck(this, BlynkRoute);
40
+ BlynkRoute.initialize(this);
41
+ }
42
+
43
+ /**
44
+ * Initializes the fields of this object.
45
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
46
+ * Only for internal use.
47
+ */
48
+ return _createClass(BlynkRoute, null, [{
49
+ key: "initialize",
50
+ value: function initialize(obj) {}
51
+
52
+ /**
53
+ * Constructs a <code>BlynkRoute</code> from a plain JavaScript object, optionally creating a new instance.
54
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
55
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
56
+ * @param {module:model/BlynkRoute} obj Optional instance to populate.
57
+ * @return {module:model/BlynkRoute} The populated <code>BlynkRoute</code> instance.
58
+ */
59
+ }, {
60
+ key: "constructFromObject",
61
+ value: function constructFromObject(data, obj) {
62
+ if (data) {
63
+ obj = obj || new BlynkRoute();
64
+ if (data.hasOwnProperty("filter")) {
65
+ obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
66
+ }
67
+ if (data.hasOwnProperty("fleets")) {
68
+ obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
69
+ }
70
+ if (data.hasOwnProperty("region")) {
71
+ obj["region"] = _ApiClient["default"].convertToType(data["region"], "String");
72
+ }
73
+ if (data.hasOwnProperty("throttle_ms")) {
74
+ obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
75
+ }
76
+ if (data.hasOwnProperty("timeout")) {
77
+ obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
78
+ }
79
+ if (data.hasOwnProperty("transform")) {
80
+ obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
81
+ }
82
+ } else if (data === null) {
83
+ return null;
84
+ }
85
+ return obj;
86
+ }
87
+
88
+ /**
89
+ * Validates the JSON data with respect to <code>BlynkRoute</code>.
90
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
91
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>BlynkRoute</code>.
92
+ */
93
+ }, {
94
+ key: "validateJSON",
95
+ value: function validateJSON(data) {
96
+ // validate the optional field `filter`
97
+ if (data["filter"]) {
98
+ // data not null
99
+ _Filter["default"].validateJSON(data["filter"]);
100
+ }
101
+ // ensure the json data is an array
102
+ if (!Array.isArray(data["fleets"])) {
103
+ throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
104
+ }
105
+ // ensure the json data is a string
106
+ if (data["region"] && !(typeof data["region"] === "string" || data["region"] instanceof String)) {
107
+ throw new Error("Expected the field `region` to be a primitive type in the JSON string but got " + data["region"]);
108
+ }
109
+ // validate the optional field `transform`
110
+ if (data["transform"]) {
111
+ // data not null
112
+ _RouteTransformSettings["default"].validateJSON(data["transform"]);
113
+ }
114
+ return true;
115
+ }
116
+ }]);
117
+ }();
118
+ /**
119
+ * @member {module:model/Filter} filter
120
+ */
121
+ BlynkRoute.prototype["filter"] = undefined;
122
+
123
+ /**
124
+ * @member {Array.<String>} fleets
125
+ */
126
+ BlynkRoute.prototype["fleets"] = undefined;
127
+
128
+ /**
129
+ * @member {String} region
130
+ */
131
+ BlynkRoute.prototype["region"] = undefined;
132
+
133
+ /**
134
+ * @member {Number} throttle_ms
135
+ */
136
+ BlynkRoute.prototype["throttle_ms"] = undefined;
137
+
138
+ /**
139
+ * @member {Number} timeout
140
+ */
141
+ BlynkRoute.prototype["timeout"] = undefined;
142
+
143
+ /**
144
+ * @member {module:model/RouteTransformSettings} transform
145
+ */
146
+ BlynkRoute.prototype["transform"] = undefined;
147
+ var _default = exports["default"] = BlynkRoute;
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Body model module.
28
28
  * @module model/Body
29
- * @version 2.2.0
29
+ * @version 2.2.1
30
30
  */
31
31
  var Body = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CellularPlan model module.
29
29
  * @module model/CellularPlan
30
- * @version 2.2.0
30
+ * @version 2.2.1
31
31
  */
32
32
  var CellularPlan = /*#__PURE__*/function () {
33
33
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CloneProjectRequest model module.
31
31
  * @module model/CloneProjectRequest
32
- * @version 2.2.0
32
+ * @version 2.2.1
33
33
  */
34
34
  var CloneProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Contact model module.
28
28
  * @module model/Contact
29
- * @version 2.2.0
29
+ * @version 2.2.1
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
+ var _FleetConnectivityAssurance = _interopRequireDefault(require("./FleetConnectivityAssurance"));
8
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
9
10
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
10
11
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -26,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
27
  /**
27
28
  * The CreateFleetRequest model module.
28
29
  * @module model/CreateFleetRequest
29
- * @version 2.2.0
30
+ * @version 2.2.1
30
31
  */
31
32
  var CreateFleetRequest = /*#__PURE__*/function () {
32
33
  /**
@@ -59,6 +60,9 @@ var CreateFleetRequest = /*#__PURE__*/function () {
59
60
  value: function constructFromObject(data, obj) {
60
61
  if (data) {
61
62
  obj = obj || new CreateFleetRequest();
63
+ if (data.hasOwnProperty("connectivity_assurance")) {
64
+ obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
65
+ }
62
66
  if (data.hasOwnProperty("label")) {
63
67
  obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
64
68
  }
@@ -79,6 +83,11 @@ var CreateFleetRequest = /*#__PURE__*/function () {
79
83
  }, {
80
84
  key: "validateJSON",
81
85
  value: function validateJSON(data) {
86
+ // validate the optional field `connectivity_assurance`
87
+ if (data["connectivity_assurance"]) {
88
+ // data not null
89
+ _FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
90
+ }
82
91
  // ensure the json data is a string
83
92
  if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
84
93
  throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
@@ -91,6 +100,11 @@ var CreateFleetRequest = /*#__PURE__*/function () {
91
100
  }
92
101
  }]);
93
102
  }();
103
+ /**
104
+ * @member {module:model/FleetConnectivityAssurance} connectivity_assurance
105
+ */
106
+ CreateFleetRequest.prototype["connectivity_assurance"] = undefined;
107
+
94
108
  /**
95
109
  * The label, or name, for the Fleet.
96
110
  * @member {String} label
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The CreateMonitor model module.
33
33
  * @module model/CreateMonitor
34
- * @version 2.2.0
34
+ * @version 2.2.1
35
35
  */
36
36
  var CreateMonitor = /*#__PURE__*/function () {
37
37
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProductRequest model module.
31
31
  * @module model/CreateProductRequest
32
- * @version 2.2.0
32
+ * @version 2.2.1
33
33
  */
34
34
  var CreateProductRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The CreateProjectRequest model module.
31
31
  * @module model/CreateProjectRequest
32
- * @version 2.2.0
32
+ * @version 2.2.1
33
33
  */
34
34
  var CreateProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The CreateUpdateRepository model module.
28
28
  * @module model/CreateUpdateRepository
29
- * @version 2.2.0
29
+ * @version 2.2.1
30
30
  */
31
31
  var CreateUpdateRepository = /*#__PURE__*/function () {
32
32
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CurrentFirmware model module.
29
29
  * @module model/CurrentFirmware
30
- * @version 2.2.0
30
+ * @version 2.2.1
31
31
  */
32
32
  var CurrentFirmware = /*#__PURE__*/function () {
33
33
  /**
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The DFUEnv model module.
29
29
  * @module model/DFUEnv
30
- * @version 2.2.0
30
+ * @version 2.2.1
31
31
  */
32
32
  var DFUEnv = /*#__PURE__*/function () {
33
33
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DFUState model module.
28
28
  * @module model/DFUState
29
- * @version 2.2.0
29
+ * @version 2.2.1
30
30
  */
31
31
  var DFUState = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DataField model module.
28
28
  * @module model/DataField
29
- * @version 2.2.0
29
+ * @version 2.2.1
30
30
  */
31
31
  var DataField = /*#__PURE__*/function () {
32
32
  /**
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The DataSetField model module.
28
28
  * @module model/DataSetField
29
- * @version 2.2.0
29
+ * @version 2.2.1
30
30
  */
31
31
  var DataSetField = /*#__PURE__*/function () {
32
32
  /**
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The DataUsage model module.
31
31
  * @module model/DataUsage
32
- * @version 2.2.0
32
+ * @version 2.2.1
33
33
  */
34
34
  var DataUsage = /*#__PURE__*/function () {
35
35
  /**