@blues-inc/notehub-js 1.0.37-beta.30 → 1.0.37-beta.32

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 +5 -3
  2. package/dist/ApiClient.js +3 -3
  3. package/dist/api/AlertApi.js +2 -2
  4. package/dist/api/AuthorizationApi.js +2 -2
  5. package/dist/api/BillingAccountApi.js +2 -2
  6. package/dist/api/DeviceApi.js +66 -6
  7. package/dist/api/EventApi.js +2 -2
  8. package/dist/api/ExternalDevicesApi.js +2 -2
  9. package/dist/api/MonitorApi.js +2 -2
  10. package/dist/api/ProjectApi.js +2 -2
  11. package/dist/api/RouteApi.js +2 -2
  12. package/dist/api/UsageApi.js +2 -2
  13. package/dist/api/WebhookApi.js +2 -2
  14. package/dist/index.js +14 -7
  15. package/dist/model/Alert.js +2 -2
  16. package/dist/model/AlertDataInner.js +2 -2
  17. package/dist/model/AlertNotificationsInner.js +2 -2
  18. package/dist/model/Aws.js +2 -2
  19. package/dist/model/AwsFilter.js +2 -2
  20. package/dist/model/AwsTransform.js +2 -2
  21. package/dist/model/Azure.js +2 -2
  22. package/dist/model/BillingAccount.js +2 -2
  23. package/dist/model/BillingAccountRole.js +1 -1
  24. package/dist/model/Body.js +2 -2
  25. package/dist/model/CellularPlan.js +10 -37
  26. package/dist/model/CloneProjectRequest.js +2 -2
  27. package/dist/model/Contact.js +2 -2
  28. package/dist/model/CreateFleetRequest.js +2 -2
  29. package/dist/model/CreateMonitor.js +2 -2
  30. package/dist/model/CreateProductRequest.js +2 -2
  31. package/dist/model/CreateProjectRequest.js +2 -2
  32. package/dist/model/CreateUpdateRepository.js +2 -2
  33. package/dist/model/CurrentFirmware.js +2 -2
  34. package/dist/model/DFUEnv.js +2 -2
  35. package/dist/model/DFUState.js +2 -2
  36. package/dist/model/DataField.js +2 -2
  37. package/dist/model/DataSetField.js +2 -2
  38. package/dist/model/{CumulativeDataUsage.js → DataUsage.js} +23 -23
  39. package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
  40. package/dist/model/Device.js +8 -52
  41. package/dist/model/DeviceDfuHistory.js +2 -2
  42. package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
  43. package/dist/model/DeviceDfuHistoryPage.js +2 -2
  44. package/dist/model/DeviceDfuStateMachine.js +2 -2
  45. package/dist/model/DeviceDfuStateMachineNode.js +2 -2
  46. package/dist/model/DeviceDfuStatus.js +2 -2
  47. package/dist/model/DeviceDfuStatusPage.js +2 -2
  48. package/dist/model/DeviceSession.js +2 -2
  49. package/dist/model/DeviceTowerInfo.js +2 -2
  50. package/dist/model/DeviceUsage.js +2 -2
  51. package/dist/model/DfuActionRequest.js +2 -2
  52. package/dist/model/EmailNotification.js +2 -2
  53. package/dist/model/EnvTreeJsonNode.js +2 -2
  54. package/dist/model/EnvVar.js +2 -2
  55. package/dist/model/EnvironmentVariables.js +2 -2
  56. package/dist/model/Error.js +2 -2
  57. package/dist/model/Event.js +2 -2
  58. package/dist/model/Firmware.js +2 -2
  59. package/dist/model/FirmwareInfo.js +2 -2
  60. package/dist/model/Fleet.js +2 -2
  61. package/dist/model/GetAlerts200Response.js +2 -2
  62. package/dist/model/GetBillingAccounts200Response.js +2 -2
  63. package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
  64. package/dist/model/GetDeviceFleets200Response.js +2 -2
  65. package/dist/model/GetDeviceHealthLog200Response.js +2 -2
  66. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +2 -2
  67. package/dist/model/GetDeviceLatest200Response.js +2 -2
  68. package/dist/model/GetDevicePlans200Response.js +112 -0
  69. package/dist/model/GetDevicePublicKey200Response.js +2 -2
  70. package/dist/model/GetDeviceSessions200Response.js +2 -2
  71. package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
  72. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +2 -2
  73. package/dist/model/GetProjectDevices200Response.js +2 -2
  74. package/dist/model/GetProjectEvents200Response.js +2 -2
  75. package/dist/model/GetProjectEventsByCursor200Response.js +2 -2
  76. package/dist/model/GetProjectMembers200Response.js +2 -2
  77. package/dist/model/GetProjectProducts200Response.js +2 -2
  78. package/dist/model/GetProjects200Response.js +2 -2
  79. package/dist/model/GetWebhooks200Response.js +2 -2
  80. package/dist/model/Google.js +2 -2
  81. package/dist/model/HandleNoteChanges200Response.js +2 -2
  82. package/dist/model/HandleNoteGet200Response.js +2 -2
  83. package/dist/model/HandleNoteSignal200Response.js +2 -2
  84. package/dist/model/HandleNotefileChanges200Response.js +2 -2
  85. package/dist/model/HandleNotefileChangesPending200Response.js +2 -2
  86. package/dist/model/HandleNotefileDeleteRequest.js +2 -2
  87. package/dist/model/Http.js +2 -2
  88. package/dist/model/Location.js +2 -2
  89. package/dist/model/Login200Response.js +2 -2
  90. package/dist/model/LoginRequest.js +2 -2
  91. package/dist/model/Monitor.js +2 -2
  92. package/dist/model/MonitorAlertRoutesInner.js +2 -2
  93. package/dist/model/Mqtt.js +2 -2
  94. package/dist/model/Note.js +2 -2
  95. package/dist/model/NotefileSchema.js +2 -2
  96. package/dist/model/NotehubRoute.js +2 -2
  97. package/dist/model/NotehubRouteSchema.js +2 -2
  98. package/dist/model/OAuth2Error.js +2 -2
  99. package/dist/model/OAuth2TokenResponse.js +2 -2
  100. package/dist/model/PersonalAccessToken.js +2 -2
  101. package/dist/model/PersonalAccessTokenCreatedBy.js +2 -2
  102. package/dist/model/PersonalAccessTokenInfo.js +2 -2
  103. package/dist/model/PersonalAccessTokenSecret.js +2 -2
  104. package/dist/model/PostProvisionProjectDeviceRequest.js +2 -2
  105. package/dist/model/Product.js +2 -2
  106. package/dist/model/Project.js +2 -2
  107. package/dist/model/ProjectMember.js +2 -2
  108. package/dist/model/Proxy.js +2 -2
  109. package/dist/model/PutDeviceFleetsRequest.js +2 -2
  110. package/dist/model/Radresponder.js +2 -2
  111. package/dist/model/Repository.js +2 -2
  112. package/dist/model/Role.js +1 -1
  113. package/dist/model/RouteLog.js +2 -2
  114. package/dist/model/SatellitePlan.js +14 -16
  115. package/dist/model/SchemaProperty.js +2 -2
  116. package/dist/model/SimUsage.js +2 -2
  117. package/dist/model/Slack.js +2 -2
  118. package/dist/model/SlackBearerNotification.js +2 -2
  119. package/dist/model/SlackTransform.js +2 -2
  120. package/dist/model/SlackWebHookNotification.js +2 -2
  121. package/dist/model/Snowflake.js +2 -2
  122. package/dist/model/Thingworx.js +2 -2
  123. package/dist/model/TowerLocation.js +2 -2
  124. package/dist/model/Twilio.js +2 -2
  125. package/dist/model/UpdateFleetRequest.js +2 -2
  126. package/dist/model/UploadMetadata.js +2 -2
  127. package/dist/model/UsageData.js +2 -2
  128. package/dist/model/UsageEventsData.js +2 -2
  129. package/dist/model/UsageEventsResponse.js +2 -2
  130. package/dist/model/UsageRouteLogsData.js +2 -2
  131. package/dist/model/UsageRouteLogsResponse.js +2 -2
  132. package/dist/model/UsageSessionsData.js +2 -2
  133. package/dist/model/UsageSessionsResponse.js +2 -2
  134. package/dist/model/UserDbRoute.js +2 -2
  135. package/dist/model/UserDfuStateMachine.js +2 -2
  136. package/dist/model/UserDfuStateMachineStatus.js +2 -2
  137. package/dist/model/UserFirmwareInfo.js +2 -2
  138. package/dist/model/WebhookSettings.js +2 -2
  139. package/package.json +26 -26
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _CumulativeDataUsage = _interopRequireDefault(require("./CumulativeDataUsage"));
8
+ var _DataUsage = _interopRequireDefault(require("./DataUsage"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
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); }
11
11
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
16
  * Notehub API
17
17
  * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
- * The version of the OpenAPI document: 1.2.1
19
+ * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
30
+ * @version 1.0.37-beta.32
31
31
  */
32
32
  var CellularPlan = /*#__PURE__*/function () {
33
33
  /**
@@ -60,14 +60,8 @@ var CellularPlan = /*#__PURE__*/function () {
60
60
  value: function constructFromObject(data, obj) {
61
61
  if (data) {
62
62
  obj = obj || new CellularPlan();
63
- if (data.hasOwnProperty('activated')) {
64
- obj['activated'] = _ApiClient["default"].convertToType(data['activated'], 'Number');
65
- }
66
- if (data.hasOwnProperty('cumulative_data_usage')) {
67
- obj['cumulative_data_usage'] = _CumulativeDataUsage["default"].constructFromObject(data['cumulative_data_usage']);
68
- }
69
- if (data.hasOwnProperty('expires')) {
70
- obj['expires'] = _ApiClient["default"].convertToType(data['expires'], 'Number');
63
+ if (data.hasOwnProperty('data_usage')) {
64
+ obj['data_usage'] = _DataUsage["default"].constructFromObject(data['data_usage']);
71
65
  }
72
66
  if (data.hasOwnProperty('iccid')) {
73
67
  obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
@@ -75,9 +69,6 @@ var CellularPlan = /*#__PURE__*/function () {
75
69
  if (data.hasOwnProperty('imsi')) {
76
70
  obj['imsi'] = _ApiClient["default"].convertToType(data['imsi'], 'String');
77
71
  }
78
- if (data.hasOwnProperty('is_bundled')) {
79
- obj['is_bundled'] = _ApiClient["default"].convertToType(data['is_bundled'], 'Boolean');
80
- }
81
72
  if (data.hasOwnProperty('last_updated')) {
82
73
  obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'Number');
83
74
  }
@@ -98,10 +89,10 @@ var CellularPlan = /*#__PURE__*/function () {
98
89
  }, {
99
90
  key: "validateJSON",
100
91
  value: function validateJSON(data) {
101
- // validate the optional field `cumulative_data_usage`
102
- if (data['cumulative_data_usage']) {
92
+ // validate the optional field `data_usage`
93
+ if (data['data_usage']) {
103
94
  // data not null
104
- _CumulativeDataUsage["default"].validateJSON(data['cumulative_data_usage']);
95
+ _DataUsage["default"].validateJSON(data['data_usage']);
105
96
  }
106
97
  // ensure the json data is a string
107
98
  if (data['iccid'] && !(typeof data['iccid'] === 'string' || data['iccid'] instanceof String)) {
@@ -120,21 +111,9 @@ var CellularPlan = /*#__PURE__*/function () {
120
111
  }]);
121
112
  }();
122
113
  /**
123
- * Activation date of the SIM card as Unix timestamp
124
- * @member {Number} activated
125
- */
126
- CellularPlan.prototype['activated'] = undefined;
127
-
128
- /**
129
- * @member {module:model/CumulativeDataUsage} cumulative_data_usage
114
+ * @member {module:model/DataUsage} data_usage
130
115
  */
131
- CellularPlan.prototype['cumulative_data_usage'] = undefined;
132
-
133
- /**
134
- * Expiration date of the SIM card as Unix timestamp
135
- * @member {Number} expires
136
- */
137
- CellularPlan.prototype['expires'] = undefined;
116
+ CellularPlan.prototype['data_usage'] = undefined;
138
117
 
139
118
  /**
140
119
  * The Integrated Circuit Card Identifier of the SIM card
@@ -148,12 +127,6 @@ CellularPlan.prototype['iccid'] = undefined;
148
127
  */
149
128
  CellularPlan.prototype['imsi'] = undefined;
150
129
 
151
- /**
152
- * Whether this SIM uses an internal bundled data plan (AT&T)
153
- * @member {Boolean} is_bundled
154
- */
155
- CellularPlan.prototype['is_bundled'] = undefined;
156
-
157
130
  /**
158
131
  * Time this plan information was last updated
159
132
  * @member {Number} last_updated
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var CloneProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 Contact model module.
28
28
  * @module model/Contact
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var Contact = /*#__PURE__*/function () {
32
32
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 CreateFleetRequest model module.
28
28
  * @module model/CreateFleetRequest
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var CreateFleetRequest = /*#__PURE__*/function () {
32
32
  /**
@@ -20,7 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
20
  * Notehub API
21
21
  * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
- * The version of the OpenAPI document: 1.2.1
23
+ * The version of the OpenAPI document: 1.2.0
24
24
  * Contact: engineering@blues.io
25
25
  *
26
26
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
34
+ * @version 1.0.37-beta.32
35
35
  */
36
36
  var CreateMonitor = /*#__PURE__*/function () {
37
37
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var CreateProductRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var CreateProjectRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 CreateUpdateRepository model module.
28
28
  * @module model/CreateUpdateRepository
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var CreateUpdateRepository = /*#__PURE__*/function () {
32
32
  /**
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
16
  * Notehub API
17
17
  * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
- * The version of the OpenAPI document: 1.2.1
19
+ * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
30
+ * @version 1.0.37-beta.32
31
31
  */
32
32
  var CurrentFirmware = /*#__PURE__*/function () {
33
33
  /**
@@ -16,7 +16,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
16
  * Notehub API
17
17
  * The OpenAPI definition for the Notehub.io API.
18
18
  *
19
- * The version of the OpenAPI document: 1.2.1
19
+ * The version of the OpenAPI document: 1.2.0
20
20
  * Contact: engineering@blues.io
21
21
  *
22
22
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -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 1.0.37-beta.30
30
+ * @version 1.0.37-beta.32
31
31
  */
32
32
  var DFUEnv = /*#__PURE__*/function () {
33
33
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 DFUState model module.
28
28
  * @module model/DFUState
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var DFUState = /*#__PURE__*/function () {
32
32
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 DataField model module.
28
28
  * @module model/DataField
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var DataField = /*#__PURE__*/function () {
32
32
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 DataSetField model module.
28
28
  * @module model/DataSetField
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var DataSetField = /*#__PURE__*/function () {
32
32
  /**
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -27,21 +27,21 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
27
27
  *
28
28
  */
29
29
  /**
30
- * The CumulativeDataUsage model module.
31
- * @module model/CumulativeDataUsage
32
- * @version 1.0.37-beta.30
30
+ * The DataUsage model module.
31
+ * @module model/DataUsage
32
+ * @version 1.0.37-beta.32
33
33
  */
34
- var CumulativeDataUsage = /*#__PURE__*/function () {
34
+ var DataUsage = /*#__PURE__*/function () {
35
35
  /**
36
- * Constructs a new <code>CumulativeDataUsage</code>.
37
- * @alias module:model/CumulativeDataUsage
36
+ * Constructs a new <code>DataUsage</code>.
37
+ * @alias module:model/DataUsage
38
38
  * @param kbRemaining {Number} Kilobytes remaining in the plan
39
39
  * @param kbTotal {Number} Total Kilobytes included in the plan
40
40
  * @param kbUsed {Number} Kilobytes used to date
41
41
  */
42
- function CumulativeDataUsage(kbRemaining, kbTotal, kbUsed) {
43
- _classCallCheck(this, CumulativeDataUsage);
44
- CumulativeDataUsage.initialize(this, kbRemaining, kbTotal, kbUsed);
42
+ function DataUsage(kbRemaining, kbTotal, kbUsed) {
43
+ _classCallCheck(this, DataUsage);
44
+ DataUsage.initialize(this, kbRemaining, kbTotal, kbUsed);
45
45
  }
46
46
 
47
47
  /**
@@ -49,7 +49,7 @@ var CumulativeDataUsage = /*#__PURE__*/function () {
49
49
  * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
50
50
  * Only for internal use.
51
51
  */
52
- return _createClass(CumulativeDataUsage, null, [{
52
+ return _createClass(DataUsage, null, [{
53
53
  key: "initialize",
54
54
  value: function initialize(obj, kbRemaining, kbTotal, kbUsed) {
55
55
  obj['kb_remaining'] = kbRemaining;
@@ -58,17 +58,17 @@ var CumulativeDataUsage = /*#__PURE__*/function () {
58
58
  }
59
59
 
60
60
  /**
61
- * Constructs a <code>CumulativeDataUsage</code> from a plain JavaScript object, optionally creating a new instance.
61
+ * Constructs a <code>DataUsage</code> from a plain JavaScript object, optionally creating a new instance.
62
62
  * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
63
63
  * @param {Object} data The plain JavaScript object bearing properties of interest.
64
- * @param {module:model/CumulativeDataUsage} obj Optional instance to populate.
65
- * @return {module:model/CumulativeDataUsage} The populated <code>CumulativeDataUsage</code> instance.
64
+ * @param {module:model/DataUsage} obj Optional instance to populate.
65
+ * @return {module:model/DataUsage} The populated <code>DataUsage</code> instance.
66
66
  */
67
67
  }, {
68
68
  key: "constructFromObject",
69
69
  value: function constructFromObject(data, obj) {
70
70
  if (data) {
71
- obj = obj || new CumulativeDataUsage();
71
+ obj = obj || new DataUsage();
72
72
  if (data.hasOwnProperty('kb_remaining')) {
73
73
  obj['kb_remaining'] = _ApiClient["default"].convertToType(data['kb_remaining'], 'Number');
74
74
  }
@@ -85,15 +85,15 @@ var CumulativeDataUsage = /*#__PURE__*/function () {
85
85
  }
86
86
 
87
87
  /**
88
- * Validates the JSON data with respect to <code>CumulativeDataUsage</code>.
88
+ * Validates the JSON data with respect to <code>DataUsage</code>.
89
89
  * @param {Object} data The plain JavaScript object bearing properties of interest.
90
- * @return {boolean} to indicate whether the JSON data is valid with respect to <code>CumulativeDataUsage</code>.
90
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>DataUsage</code>.
91
91
  */
92
92
  }, {
93
93
  key: "validateJSON",
94
94
  value: function validateJSON(data) {
95
95
  // check to make sure all required properties are present in the JSON string
96
- var _iterator = _createForOfIteratorHelper(CumulativeDataUsage.RequiredProperties),
96
+ var _iterator = _createForOfIteratorHelper(DataUsage.RequiredProperties),
97
97
  _step;
98
98
  try {
99
99
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
@@ -111,23 +111,23 @@ var CumulativeDataUsage = /*#__PURE__*/function () {
111
111
  }
112
112
  }]);
113
113
  }();
114
- CumulativeDataUsage.RequiredProperties = ["kb_remaining", "kb_total", "kb_used"];
114
+ DataUsage.RequiredProperties = ["kb_remaining", "kb_total", "kb_used"];
115
115
 
116
116
  /**
117
117
  * Kilobytes remaining in the plan
118
118
  * @member {Number} kb_remaining
119
119
  */
120
- CumulativeDataUsage.prototype['kb_remaining'] = undefined;
120
+ DataUsage.prototype['kb_remaining'] = undefined;
121
121
 
122
122
  /**
123
123
  * Total Kilobytes included in the plan
124
124
  * @member {Number} kb_total
125
125
  */
126
- CumulativeDataUsage.prototype['kb_total'] = undefined;
126
+ DataUsage.prototype['kb_total'] = undefined;
127
127
 
128
128
  /**
129
129
  * Kilobytes used to date
130
130
  * @member {Number} kb_used
131
131
  */
132
- CumulativeDataUsage.prototype['kb_used'] = undefined;
133
- var _default = exports["default"] = CumulativeDataUsage;
132
+ DataUsage.prototype['kb_used'] = undefined;
133
+ var _default = exports["default"] = DataUsage;
@@ -18,7 +18,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
18
18
  * Notehub API
19
19
  * The OpenAPI definition for the Notehub.io API.
20
20
  *
21
- * The version of the OpenAPI document: 1.2.1
21
+ * The version of the OpenAPI document: 1.2.0
22
22
  * Contact: engineering@blues.io
23
23
  *
24
24
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The DeleteDeviceFleetsRequest model module.
31
31
  * @module model/DeleteDeviceFleetsRequest
32
- * @version 1.0.37-beta.30
32
+ * @version 1.0.37-beta.32
33
33
  */
34
34
  var DeleteDeviceFleetsRequest = /*#__PURE__*/function () {
35
35
  /**
@@ -5,12 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _ApiClient = _interopRequireDefault(require("../ApiClient"));
8
- var _CellularPlan = _interopRequireDefault(require("./CellularPlan"));
9
8
  var _Contact = _interopRequireDefault(require("./Contact"));
10
9
  var _DFUEnv = _interopRequireDefault(require("./DFUEnv"));
11
10
  var _DeviceTowerInfo = _interopRequireDefault(require("./DeviceTowerInfo"));
12
11
  var _Location = _interopRequireDefault(require("./Location"));
13
- var _SatellitePlan = _interopRequireDefault(require("./SatellitePlan"));
14
12
  var _SimUsage = _interopRequireDefault(require("./SimUsage"));
15
13
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
16
14
  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); }
@@ -25,7 +23,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
25
23
  * Notehub API
26
24
  * The OpenAPI definition for the Notehub.io API.
27
25
  *
28
- * The version of the OpenAPI document: 1.2.1
26
+ * The version of the OpenAPI document: 1.2.0
29
27
  * Contact: engineering@blues.io
30
28
  *
31
29
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +34,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
36
34
  /**
37
35
  * The Device model module.
38
36
  * @module model/Device
39
- * @version 1.0.37-beta.30
37
+ * @version 1.0.37-beta.32
40
38
  */
41
39
  var Device = /*#__PURE__*/function () {
42
40
  /**
@@ -82,9 +80,6 @@ var Device = /*#__PURE__*/function () {
82
80
  value: function constructFromObject(data, obj) {
83
81
  if (data) {
84
82
  obj = obj || new Device();
85
- if (data.hasOwnProperty('cellular_plan')) {
86
- obj['cellular_plan'] = _ApiClient["default"].convertToType(data['cellular_plan'], [_CellularPlan["default"]]);
87
- }
88
83
  if (data.hasOwnProperty('cellular_usage')) {
89
84
  obj['cellular_usage'] = _ApiClient["default"].convertToType(data['cellular_usage'], [_SimUsage["default"]]);
90
85
  }
@@ -118,9 +113,6 @@ var Device = /*#__PURE__*/function () {
118
113
  if (data.hasOwnProperty('provisioned')) {
119
114
  obj['provisioned'] = _ApiClient["default"].convertToType(data['provisioned'], 'Date');
120
115
  }
121
- if (data.hasOwnProperty('satellite_plan')) {
122
- obj['satellite_plan'] = _SatellitePlan["default"].constructFromObject(data['satellite_plan']);
123
- }
124
116
  if (data.hasOwnProperty('serial_number')) {
125
117
  obj['serial_number'] = _ApiClient["default"].convertToType(data['serial_number'], 'String');
126
118
  }
@@ -174,19 +166,19 @@ var Device = /*#__PURE__*/function () {
174
166
  } finally {
175
167
  _iterator.f();
176
168
  }
177
- if (data['cellular_plan']) {
169
+ if (data['cellular_usage']) {
178
170
  // data not null
179
171
  // ensure the json data is an array
180
- if (!Array.isArray(data['cellular_plan'])) {
181
- throw new Error("Expected the field `cellular_plan` to be an array in the JSON data but got " + data['cellular_plan']);
172
+ if (!Array.isArray(data['cellular_usage'])) {
173
+ throw new Error("Expected the field `cellular_usage` to be an array in the JSON data but got " + data['cellular_usage']);
182
174
  }
183
- // validate the optional field `cellular_plan` (array)
184
- var _iterator2 = _createForOfIteratorHelper(data['cellular_plan']),
175
+ // validate the optional field `cellular_usage` (array)
176
+ var _iterator2 = _createForOfIteratorHelper(data['cellular_usage']),
185
177
  _step2;
186
178
  try {
187
179
  for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
188
180
  var item = _step2.value;
189
- _CellularPlan["default"].validateJsonObject(item);
181
+ _SimUsage["default"].validateJsonObject(item);
190
182
  }
191
183
  } catch (err) {
192
184
  _iterator2.e(err);
@@ -195,27 +187,6 @@ var Device = /*#__PURE__*/function () {
195
187
  }
196
188
  ;
197
189
  }
198
- if (data['cellular_usage']) {
199
- // data not null
200
- // ensure the json data is an array
201
- if (!Array.isArray(data['cellular_usage'])) {
202
- throw new Error("Expected the field `cellular_usage` to be an array in the JSON data but got " + data['cellular_usage']);
203
- }
204
- // validate the optional field `cellular_usage` (array)
205
- var _iterator3 = _createForOfIteratorHelper(data['cellular_usage']),
206
- _step3;
207
- try {
208
- for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
209
- var _item = _step3.value;
210
- _SimUsage["default"].validateJsonObject(_item);
211
- }
212
- } catch (err) {
213
- _iterator3.e(err);
214
- } finally {
215
- _iterator3.f();
216
- }
217
- ;
218
- }
219
190
  // validate the optional field `contact`
220
191
  if (data['contact']) {
221
192
  // data not null
@@ -247,11 +218,6 @@ var Device = /*#__PURE__*/function () {
247
218
  if (data['product_uid'] && !(typeof data['product_uid'] === 'string' || data['product_uid'] instanceof String)) {
248
219
  throw new Error("Expected the field `product_uid` to be a primitive type in the JSON string but got " + data['product_uid']);
249
220
  }
250
- // validate the optional field `satellite_plan`
251
- if (data['satellite_plan']) {
252
- // data not null
253
- _SatellitePlan["default"].validateJSON(data['satellite_plan']);
254
- }
255
221
  // ensure the json data is a string
256
222
  if (data['serial_number'] && !(typeof data['serial_number'] === 'string' || data['serial_number'] instanceof String)) {
257
223
  throw new Error("Expected the field `serial_number` to be a primitive type in the JSON string but got " + data['serial_number']);
@@ -285,11 +251,6 @@ var Device = /*#__PURE__*/function () {
285
251
  }();
286
252
  Device.RequiredProperties = ["fleet_uids", "product_uid", "provisioned", "temperature", "uid", "voltage"];
287
253
 
288
- /**
289
- * @member {Array.<module:model/CellularPlan>} cellular_plan
290
- */
291
- Device.prototype['cellular_plan'] = undefined;
292
-
293
254
  /**
294
255
  * @member {Array.<module:model/SimUsage>} cellular_usage
295
256
  */
@@ -345,11 +306,6 @@ Device.prototype['product_uid'] = undefined;
345
306
  */
346
307
  Device.prototype['provisioned'] = undefined;
347
308
 
348
- /**
349
- * @member {module:model/SatellitePlan} satellite_plan
350
- */
351
- Device.prototype['satellite_plan'] = undefined;
352
-
353
309
  /**
354
310
  * @member {String} serial_number
355
311
  */
@@ -20,7 +20,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
20
20
  * Notehub API
21
21
  * The OpenAPI definition for the Notehub.io API.
22
22
  *
23
- * The version of the OpenAPI document: 1.2.1
23
+ * The version of the OpenAPI document: 1.2.0
24
24
  * Contact: engineering@blues.io
25
25
  *
26
26
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
31
31
  /**
32
32
  * The DeviceDfuHistory model module.
33
33
  * @module model/DeviceDfuHistory
34
- * @version 1.0.37-beta.30
34
+ * @version 1.0.37-beta.32
35
35
  */
36
36
  var DeviceDfuHistory = /*#__PURE__*/function () {
37
37
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * Notehub API
16
16
  * The OpenAPI definition for the Notehub.io API.
17
17
  *
18
- * The version of the OpenAPI document: 1.2.1
18
+ * The version of the OpenAPI document: 1.2.0
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 DeviceDfuHistoryCurrent model module.
28
28
  * @module model/DeviceDfuHistoryCurrent
29
- * @version 1.0.37-beta.30
29
+ * @version 1.0.37-beta.32
30
30
  */
31
31
  var DeviceDfuHistoryCurrent = /*#__PURE__*/function () {
32
32
  /**
@@ -19,7 +19,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
19
19
  * Notehub API
20
20
  * The OpenAPI definition for the Notehub.io API.
21
21
  *
22
- * The version of the OpenAPI document: 1.2.1
22
+ * The version of the OpenAPI document: 1.2.0
23
23
  * Contact: engineering@blues.io
24
24
  *
25
25
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
30
30
  /**
31
31
  * The DeviceDfuHistoryPage model module.
32
32
  * @module model/DeviceDfuHistoryPage
33
- * @version 1.0.37-beta.30
33
+ * @version 1.0.37-beta.32
34
34
  */
35
35
  var DeviceDfuHistoryPage = /*#__PURE__*/function () {
36
36
  /**