@blues-inc/notehub-js 4.0.0-beta.4 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (144) hide show
  1. package/README.md +248 -247
  2. package/dist/ApiClient.js +155 -150
  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 +379 -387
  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 +62 -65
  13. package/dist/api/WebhookApi.js +51 -51
  14. package/dist/model/AddDeviceToFleetsRequest.js +8 -8
  15. package/dist/model/Alert.js +74 -76
  16. package/dist/model/AlertDataInner.js +35 -40
  17. package/dist/model/AlertNotificationsInner.js +18 -18
  18. package/dist/model/AwsRoute.js +65 -65
  19. package/dist/model/AzureRoute.js +43 -43
  20. package/dist/model/BillingAccount.js +21 -21
  21. package/dist/model/BillingAccountRole.js +9 -9
  22. package/dist/model/BlynkRoute.js +28 -28
  23. package/dist/model/Body.js +5 -5
  24. package/dist/model/CellularPlan.js +34 -34
  25. package/dist/model/CloneProjectRequest.js +20 -20
  26. package/dist/model/Contact.js +22 -22
  27. package/dist/model/CreateFleetRequest.js +20 -20
  28. package/dist/model/CreateMonitor.js +131 -139
  29. package/dist/model/CreateProductRequest.js +22 -22
  30. package/dist/model/CreateProjectRequest.js +16 -16
  31. package/dist/model/CreateUpdateRepository.js +17 -17
  32. package/dist/model/CurrentFirmware.js +12 -12
  33. package/dist/model/DFUEnv.js +12 -12
  34. package/dist/model/DFUState.js +65 -65
  35. package/dist/model/DataField.js +7 -7
  36. package/dist/model/DataSetField.js +19 -19
  37. package/dist/model/DataUsage.js +14 -14
  38. package/dist/model/DatacakeRoute.js +35 -35
  39. package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
  40. package/dist/model/DeleteNotefilesRequest.js +7 -7
  41. package/dist/model/Device.js +106 -107
  42. package/dist/model/DeviceDfuHistory.js +19 -20
  43. package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
  44. package/dist/model/DeviceDfuHistoryPage.js +12 -13
  45. package/dist/model/DeviceDfuStateMachine.js +24 -25
  46. package/dist/model/DeviceDfuStateMachineNode.js +22 -22
  47. package/dist/model/DeviceDfuStatus.js +20 -20
  48. package/dist/model/DeviceDfuStatusPage.js +12 -13
  49. package/dist/model/DeviceSession.js +221 -221
  50. package/dist/model/DeviceTowerInfo.js +14 -14
  51. package/dist/model/DeviceUsage.js +32 -32
  52. package/dist/model/DfuActionRequest.js +7 -7
  53. package/dist/model/EmailNotification.js +7 -7
  54. package/dist/model/EnvTreeJsonNode.js +67 -69
  55. package/dist/model/EnvVar.js +18 -18
  56. package/dist/model/EnvironmentVariables.js +8 -8
  57. package/dist/model/Error.js +31 -31
  58. package/dist/model/Event.js +248 -248
  59. package/dist/model/Filter.js +16 -16
  60. package/dist/model/Firmware.js +49 -49
  61. package/dist/model/FirmwareInfo.js +60 -60
  62. package/dist/model/Fleet.js +38 -38
  63. package/dist/model/FleetConnectivityAssurance.js +5 -5
  64. package/dist/model/GetAlerts200Response.js +14 -15
  65. package/dist/model/GetBillingAccounts200Response.js +9 -10
  66. package/dist/model/GetDataUsage200Response.js +9 -10
  67. package/dist/model/GetDataUsage200ResponseDataInner.js +40 -50
  68. package/dist/model/GetDbNote200Response.js +13 -13
  69. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
  70. package/dist/model/GetDeviceFleets200Response.js +11 -12
  71. package/dist/model/GetDeviceHealthLog200Response.js +11 -12
  72. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
  73. package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
  74. package/dist/model/GetDevicePlans200Response.js +9 -10
  75. package/dist/model/GetDevicePublicKey200Response.js +16 -16
  76. package/dist/model/GetDevicePublicKeys200Response.js +16 -17
  77. package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  78. package/dist/model/GetDeviceSessions200Response.js +16 -17
  79. package/dist/model/GetDevices200Response.js +16 -17
  80. package/dist/model/GetEvents200Response.js +20 -21
  81. package/dist/model/GetEventsByCursor200Response.js +23 -24
  82. package/dist/model/GetNotefile200Response.js +11 -11
  83. package/dist/model/GetProducts200Response.js +9 -10
  84. package/dist/model/GetProjectMembers200Response.js +11 -12
  85. package/dist/model/GetProjects200Response.js +9 -10
  86. package/dist/model/GetRouteLogsUsage200Response.js +11 -12
  87. package/dist/model/GetSessionsUsage200Response.js +11 -12
  88. package/dist/model/GetWebhooks200Response.js +9 -10
  89. package/dist/model/GoogleRoute.js +33 -33
  90. package/dist/model/HttpRoute.js +35 -35
  91. package/dist/model/Location.js +40 -40
  92. package/dist/model/Login200Response.js +7 -7
  93. package/dist/model/LoginRequest.js +12 -12
  94. package/dist/model/Monitor.js +100 -106
  95. package/dist/model/MonitorAlertRoutesInner.js +10 -9
  96. package/dist/model/MqttRoute.js +68 -68
  97. package/dist/model/Note.js +31 -31
  98. package/dist/model/NoteInput.js +9 -9
  99. package/dist/model/Notefile.js +22 -23
  100. package/dist/model/NotefileSchema.js +18 -19
  101. package/dist/model/NotehubRoute.js +103 -103
  102. package/dist/model/NotehubRouteSummary.js +23 -23
  103. package/dist/model/OAuth2Error.js +20 -20
  104. package/dist/model/OAuth2TokenResponse.js +23 -23
  105. package/dist/model/PersonalAccessToken.js +34 -34
  106. package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
  107. package/dist/model/PersonalAccessTokenInfo.js +18 -18
  108. package/dist/model/PersonalAccessTokenSecret.js +12 -12
  109. package/dist/model/Product.js +26 -26
  110. package/dist/model/Project.js +34 -34
  111. package/dist/model/ProjectMember.js +22 -22
  112. package/dist/model/ProvisionDeviceRequest.js +18 -18
  113. package/dist/model/ProxyRoute.js +29 -29
  114. package/dist/model/QubitroRoute.js +33 -33
  115. package/dist/model/RadRoute.js +31 -31
  116. package/dist/model/Repository.js +22 -22
  117. package/dist/model/Role.js +9 -9
  118. package/dist/model/RouteLog.js +38 -38
  119. package/dist/model/RouteTransformSettings.js +18 -18
  120. package/dist/model/S3ArchiveRoute.js +79 -79
  121. package/dist/model/SatellitePlan.js +26 -26
  122. package/dist/model/SchemaProperty.js +36 -38
  123. package/dist/model/SignalDevice200Response.js +5 -5
  124. package/dist/model/SimUsage.js +19 -19
  125. package/dist/model/SlackBearerNotification.js +25 -25
  126. package/dist/model/SlackRoute.js +48 -48
  127. package/dist/model/SlackWebHookNotification.js +20 -20
  128. package/dist/model/SnowflakeRoute.js +45 -45
  129. package/dist/model/SnowpipeStreamingRoute.js +60 -60
  130. package/dist/model/ThingworxRoute.js +33 -33
  131. package/dist/model/TowerLocation.js +54 -54
  132. package/dist/model/TwilioRoute.js +43 -43
  133. package/dist/model/UpdateFleetRequest.js +33 -33
  134. package/dist/model/UploadMetadata.js +64 -64
  135. package/dist/model/UsageData.js +18 -18
  136. package/dist/model/UsageEventsData.js +37 -37
  137. package/dist/model/UsageEventsResponse.js +11 -12
  138. package/dist/model/UsageRouteLogsData.js +27 -27
  139. package/dist/model/UsageSessionsData.js +32 -32
  140. package/dist/model/UserDfuStateMachine.js +20 -20
  141. package/dist/model/UserDfuStateMachineStatus.js +20 -20
  142. package/dist/model/UserFirmwareInfo.js +12 -12
  143. package/dist/model/WebhookSettings.js +15 -15
  144. package/package.json +3 -3
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
16
16
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
17
  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); } /**
18
18
  * Notehub API
19
- * The OpenAPI definition for the Notehub.io API.
19
+ * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
21
  * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
@@ -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 4.0.0-beta.4
32
+ * @version 4.0.0
33
33
  */
34
34
  var CloneProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -51,8 +51,8 @@ var CloneProjectRequest = /*#__PURE__*/function () {
51
51
  return _createClass(CloneProjectRequest, null, [{
52
52
  key: "initialize",
53
53
  value: function initialize(obj, billingAccountUid, label) {
54
- obj['billing_account_uid'] = billingAccountUid;
55
- obj['label'] = label;
54
+ obj["billing_account_uid"] = billingAccountUid;
55
+ obj["label"] = label;
56
56
  }
57
57
 
58
58
  /**
@@ -67,17 +67,17 @@ var CloneProjectRequest = /*#__PURE__*/function () {
67
67
  value: function constructFromObject(data, obj) {
68
68
  if (data) {
69
69
  obj = obj || new CloneProjectRequest();
70
- if (data.hasOwnProperty('billing_account_uid')) {
71
- obj['billing_account_uid'] = _ApiClient["default"].convertToType(data['billing_account_uid'], 'String');
70
+ if (data.hasOwnProperty("billing_account_uid")) {
71
+ obj["billing_account_uid"] = _ApiClient["default"].convertToType(data["billing_account_uid"], "String");
72
72
  }
73
- if (data.hasOwnProperty('disable_clone_fleets')) {
74
- obj['disable_clone_fleets'] = _ApiClient["default"].convertToType(data['disable_clone_fleets'], 'Boolean');
73
+ if (data.hasOwnProperty("disable_clone_fleets")) {
74
+ obj["disable_clone_fleets"] = _ApiClient["default"].convertToType(data["disable_clone_fleets"], "Boolean");
75
75
  }
76
- if (data.hasOwnProperty('disable_clone_routes')) {
77
- obj['disable_clone_routes'] = _ApiClient["default"].convertToType(data['disable_clone_routes'], 'Boolean');
76
+ if (data.hasOwnProperty("disable_clone_routes")) {
77
+ obj["disable_clone_routes"] = _ApiClient["default"].convertToType(data["disable_clone_routes"], "Boolean");
78
78
  }
79
- if (data.hasOwnProperty('label')) {
80
- obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
79
+ if (data.hasOwnProperty("label")) {
80
+ obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
81
81
  }
82
82
  } else if (data === null) {
83
83
  return null;
@@ -109,12 +109,12 @@ var CloneProjectRequest = /*#__PURE__*/function () {
109
109
  } finally {
110
110
  _iterator.f();
111
111
  }
112
- if (data['billing_account_uid'] && !(typeof data['billing_account_uid'] === 'string' || data['billing_account_uid'] instanceof String)) {
113
- throw new Error("Expected the field `billing_account_uid` to be a primitive type in the JSON string but got " + data['billing_account_uid']);
112
+ if (data["billing_account_uid"] && !(typeof data["billing_account_uid"] === "string" || data["billing_account_uid"] instanceof String)) {
113
+ throw new Error("Expected the field `billing_account_uid` to be a primitive type in the JSON string but got " + data["billing_account_uid"]);
114
114
  }
115
115
  // ensure the json data is a string
116
- if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
117
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
116
+ if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
117
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
118
118
  }
119
119
  return true;
120
120
  }
@@ -126,23 +126,23 @@ CloneProjectRequest.RequiredProperties = ["billing_account_uid", "label"];
126
126
  * The billing account UID for the project. The caller of the API must be able to create projects within the billing account, otherwise an error will be returned.
127
127
  * @member {String} billing_account_uid
128
128
  */
129
- CloneProjectRequest.prototype['billing_account_uid'] = undefined;
129
+ CloneProjectRequest.prototype["billing_account_uid"] = undefined;
130
130
 
131
131
  /**
132
132
  * Whether to disallow the cloning of the fleets from the parent project. Default is false if not specified.
133
133
  * @member {Boolean} disable_clone_fleets
134
134
  */
135
- CloneProjectRequest.prototype['disable_clone_fleets'] = undefined;
135
+ CloneProjectRequest.prototype["disable_clone_fleets"] = undefined;
136
136
 
137
137
  /**
138
138
  * Whether to disallow the cloning of the routes from the parent project. Default is false if not specified.
139
139
  * @member {Boolean} disable_clone_routes
140
140
  */
141
- CloneProjectRequest.prototype['disable_clone_routes'] = undefined;
141
+ CloneProjectRequest.prototype["disable_clone_routes"] = undefined;
142
142
 
143
143
  /**
144
144
  * The label for the project.
145
145
  * @member {String} label
146
146
  */
147
- CloneProjectRequest.prototype['label'] = undefined;
147
+ CloneProjectRequest.prototype["label"] = undefined;
148
148
  var _default = exports["default"] = CloneProjectRequest;
@@ -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 Contact model module.
28
28
  * @module model/Contact
29
- * @version 4.0.0-beta.4
29
+ * @version 4.0.0
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -59,17 +59,17 @@ var Contact = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new Contact();
62
- if (data.hasOwnProperty('email')) {
63
- obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
62
+ if (data.hasOwnProperty("email")) {
63
+ obj["email"] = _ApiClient["default"].convertToType(data["email"], "String");
64
64
  }
65
- if (data.hasOwnProperty('name')) {
66
- obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
65
+ if (data.hasOwnProperty("name")) {
66
+ obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
67
67
  }
68
- if (data.hasOwnProperty('organization')) {
69
- obj['organization'] = _ApiClient["default"].convertToType(data['organization'], 'String');
68
+ if (data.hasOwnProperty("organization")) {
69
+ obj["organization"] = _ApiClient["default"].convertToType(data["organization"], "String");
70
70
  }
71
- if (data.hasOwnProperty('role')) {
72
- obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String');
71
+ if (data.hasOwnProperty("role")) {
72
+ obj["role"] = _ApiClient["default"].convertToType(data["role"], "String");
73
73
  }
74
74
  } else if (data === null) {
75
75
  return null;
@@ -86,20 +86,20 @@ var Contact = /*#__PURE__*/function () {
86
86
  key: "validateJSON",
87
87
  value: function validateJSON(data) {
88
88
  // ensure the json data is a string
89
- if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
90
- throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
89
+ if (data["email"] && !(typeof data["email"] === "string" || data["email"] instanceof String)) {
90
+ throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data["email"]);
91
91
  }
92
92
  // ensure the json data is a string
93
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
94
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
93
+ if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
94
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
95
95
  }
96
96
  // ensure the json data is a string
97
- if (data['organization'] && !(typeof data['organization'] === 'string' || data['organization'] instanceof String)) {
98
- throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data['organization']);
97
+ if (data["organization"] && !(typeof data["organization"] === "string" || data["organization"] instanceof String)) {
98
+ throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data["organization"]);
99
99
  }
100
100
  // ensure the json data is a string
101
- if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) {
102
- throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']);
101
+ if (data["role"] && !(typeof data["role"] === "string" || data["role"] instanceof String)) {
102
+ throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data["role"]);
103
103
  }
104
104
  return true;
105
105
  }
@@ -108,20 +108,20 @@ var Contact = /*#__PURE__*/function () {
108
108
  /**
109
109
  * @member {String} email
110
110
  */
111
- Contact.prototype['email'] = undefined;
111
+ Contact.prototype["email"] = undefined;
112
112
 
113
113
  /**
114
114
  * @member {String} name
115
115
  */
116
- Contact.prototype['name'] = undefined;
116
+ Contact.prototype["name"] = undefined;
117
117
 
118
118
  /**
119
119
  * @member {String} organization
120
120
  */
121
- Contact.prototype['organization'] = undefined;
121
+ Contact.prototype["organization"] = undefined;
122
122
 
123
123
  /**
124
124
  * @member {String} role
125
125
  */
126
- Contact.prototype['role'] = undefined;
126
+ Contact.prototype["role"] = undefined;
127
127
  var _default = exports["default"] = Contact;
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
14
14
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
15
15
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
16
16
  * Notehub API
17
- * The OpenAPI definition for the Notehub.io API.
17
+ * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
19
  * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  /**
28
28
  * The CreateFleetRequest model module.
29
29
  * @module model/CreateFleetRequest
30
- * @version 4.0.0-beta.4
30
+ * @version 4.0.0
31
31
  */
32
32
  var CreateFleetRequest = /*#__PURE__*/function () {
33
33
  /**
@@ -60,17 +60,17 @@ var CreateFleetRequest = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new CreateFleetRequest();
63
- if (data.hasOwnProperty('connectivity_assurance')) {
64
- obj['connectivity_assurance'] = _FleetConnectivityAssurance["default"].constructFromObject(data['connectivity_assurance']);
63
+ if (data.hasOwnProperty("connectivity_assurance")) {
64
+ obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
65
65
  }
66
- if (data.hasOwnProperty('label')) {
67
- obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
66
+ if (data.hasOwnProperty("label")) {
67
+ obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
68
68
  }
69
- if (data.hasOwnProperty('smart_rule')) {
70
- obj['smart_rule'] = _ApiClient["default"].convertToType(data['smart_rule'], 'String');
69
+ if (data.hasOwnProperty("smart_rule")) {
70
+ obj["smart_rule"] = _ApiClient["default"].convertToType(data["smart_rule"], "String");
71
71
  }
72
- if (data.hasOwnProperty('smart_rule_enabled')) {
73
- obj['smart_rule_enabled'] = _ApiClient["default"].convertToType(data['smart_rule_enabled'], 'Boolean');
72
+ if (data.hasOwnProperty("smart_rule_enabled")) {
73
+ obj["smart_rule_enabled"] = _ApiClient["default"].convertToType(data["smart_rule_enabled"], "Boolean");
74
74
  }
75
75
  } else if (data === null) {
76
76
  return null;
@@ -87,17 +87,17 @@ var CreateFleetRequest = /*#__PURE__*/function () {
87
87
  key: "validateJSON",
88
88
  value: function validateJSON(data) {
89
89
  // validate the optional field `connectivity_assurance`
90
- if (data['connectivity_assurance']) {
90
+ if (data["connectivity_assurance"]) {
91
91
  // data not null
92
- _FleetConnectivityAssurance["default"].validateJSON(data['connectivity_assurance']);
92
+ _FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
93
93
  }
94
94
  // ensure the json data is a string
95
- if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
96
- throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
95
+ if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
96
+ throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
97
97
  }
98
98
  // ensure the json data is a string
99
- if (data['smart_rule'] && !(typeof data['smart_rule'] === 'string' || data['smart_rule'] instanceof String)) {
100
- throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data['smart_rule']);
99
+ if (data["smart_rule"] && !(typeof data["smart_rule"] === "string" || data["smart_rule"] instanceof String)) {
100
+ throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data["smart_rule"]);
101
101
  }
102
102
  return true;
103
103
  }
@@ -106,22 +106,22 @@ var CreateFleetRequest = /*#__PURE__*/function () {
106
106
  /**
107
107
  * @member {module:model/FleetConnectivityAssurance} connectivity_assurance
108
108
  */
109
- CreateFleetRequest.prototype['connectivity_assurance'] = undefined;
109
+ CreateFleetRequest.prototype["connectivity_assurance"] = undefined;
110
110
 
111
111
  /**
112
112
  * The label, or name, for the Fleet.
113
113
  * @member {String} label
114
114
  */
115
- CreateFleetRequest.prototype['label'] = undefined;
115
+ CreateFleetRequest.prototype["label"] = undefined;
116
116
 
117
117
  /**
118
118
  * JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.
119
119
  * @member {String} smart_rule
120
120
  */
121
- CreateFleetRequest.prototype['smart_rule'] = undefined;
121
+ CreateFleetRequest.prototype["smart_rule"] = undefined;
122
122
 
123
123
  /**
124
124
  * @member {Boolean} smart_rule_enabled
125
125
  */
126
- CreateFleetRequest.prototype['smart_rule_enabled'] = undefined;
126
+ CreateFleetRequest.prototype["smart_rule_enabled"] = undefined;
127
127
  var _default = exports["default"] = CreateFleetRequest;