@blues-inc/notehub-js 1.0.37-beta.17 → 1.0.37-beta.18

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 (136) hide show
  1. package/README.md +14 -10
  2. package/dist/ApiClient.js +2 -2
  3. package/dist/api/AlertApi.js +1 -1
  4. package/dist/api/AuthorizationApi.js +1 -64
  5. package/dist/api/BillingAccountApi.js +1 -1
  6. package/dist/api/DeviceApi.js +8 -8
  7. package/dist/api/EventApi.js +1 -1
  8. package/dist/api/ExternalDevicesApi.js +1 -1
  9. package/dist/api/MonitorApi.js +10 -10
  10. package/dist/api/ProjectApi.js +14 -14
  11. package/dist/api/RouteApi.js +1 -1
  12. package/dist/api/WebhookApi.js +1 -1
  13. package/dist/index.js +87 -52
  14. package/dist/model/Alert.js +91 -91
  15. package/dist/model/AlertDataInner.js +10 -10
  16. package/dist/model/AlertNotificationsInner.js +10 -10
  17. package/dist/model/AnalyticsEventsData.js +14 -14
  18. package/dist/model/AnalyticsEventsResponse.js +1 -1
  19. package/dist/model/AnalyticsRouteLogsData.js +15 -15
  20. package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
  21. package/dist/model/AnalyticsSessionsData.js +14 -14
  22. package/dist/model/AnalyticsSessionsResponse.js +1 -1
  23. package/dist/model/Aws.js +86 -86
  24. package/dist/model/Azure.js +51 -51
  25. package/dist/model/BillingAccount.js +19 -19
  26. package/dist/model/Body.js +1 -1
  27. package/dist/model/CellularPlan.js +168 -0
  28. package/dist/model/CloneProjectRequest.js +25 -25
  29. package/dist/model/Contact.js +19 -19
  30. package/dist/model/CreateFleetRequest.js +1 -1
  31. package/dist/model/CreateMonitor.js +186 -186
  32. package/dist/model/CreateProductRequest.js +30 -30
  33. package/dist/model/CreateProjectRequest.js +20 -20
  34. package/dist/model/CreateUpdateRepository.js +18 -18
  35. package/dist/model/{OAuth2TokenResponse.js → CumulativeDataUsage.js} +41 -62
  36. package/dist/model/CurrentFirmware.js +12 -12
  37. package/dist/model/DFUEnv.js +1 -1
  38. package/dist/model/DFUState.js +60 -60
  39. package/dist/model/DataField.js +1 -1
  40. package/dist/model/DataSet.js +164 -0
  41. package/dist/model/DataSetField.js +14 -14
  42. package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
  43. package/dist/model/Device.js +173 -129
  44. package/dist/model/DeviceDfuHistory.js +15 -15
  45. package/dist/model/DeviceDfuHistoryPage.js +1 -1
  46. package/dist/model/DeviceDfuStateMachine.js +14 -14
  47. package/dist/model/DeviceDfuStateMachineNode.js +27 -27
  48. package/dist/model/DeviceDfuStatus.js +15 -15
  49. package/dist/model/{DeviceDfuHistoryCurrent.js → DeviceDfuStatusCurrent.js} +52 -52
  50. package/dist/model/DeviceDfuStatusPage.js +1 -1
  51. package/dist/model/DeviceSatellitePlan.js +196 -0
  52. package/dist/model/DeviceSession.js +278 -278
  53. package/dist/model/DeviceTowerInfo.js +15 -15
  54. package/dist/model/DeviceUsage.js +36 -36
  55. package/dist/model/DfuActionRequest.js +1 -1
  56. package/dist/model/EmailNotification.js +1 -1
  57. package/dist/model/EnvTreeJsonNode.js +76 -76
  58. package/dist/model/EnvVar.js +9 -9
  59. package/dist/model/EnvironmentVariables.js +1 -1
  60. package/dist/model/Error.js +38 -38
  61. package/dist/model/Event.js +340 -340
  62. package/dist/model/Firmware.js +45 -45
  63. package/dist/model/FirmwareInfo.js +71 -71
  64. package/dist/model/Fleet.js +31 -31
  65. package/dist/model/GetAlerts200Response.js +1 -1
  66. package/dist/model/GetBillingAccounts200Response.js +1 -1
  67. package/dist/model/{GetDeviceEnvironmentVariablesByPin200Response.js → GetDeviceEnvironmentVariables200Response.js} +30 -30
  68. package/dist/model/GetDeviceHealthLog200Response.js +1 -1
  69. package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
  70. package/dist/model/GetDeviceLatest200Response.js +1 -1
  71. package/dist/model/GetDevicePublicKey200Response.js +18 -18
  72. package/dist/model/GetDeviceSessions200Response.js +14 -14
  73. package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
  74. package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
  75. package/dist/model/GetProjectDevices200Response.js +1 -1
  76. package/dist/model/GetProjectEvents200Response.js +1 -1
  77. package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
  78. package/dist/model/{GetDeviceFleets200Response.js → GetProjectFleets200Response.js} +20 -20
  79. package/dist/model/GetProjectMembers200Response.js +1 -1
  80. package/dist/model/GetProjectProducts200Response.js +1 -1
  81. package/dist/model/GetProjects200Response.js +1 -1
  82. package/dist/model/GetWebhooks200Response.js +1 -1
  83. package/dist/model/Google.js +35 -35
  84. package/dist/model/HandleNoteChanges200Response.js +10 -10
  85. package/dist/model/HandleNoteGet200Response.js +1 -1
  86. package/dist/model/HandleNoteSignal200Response.js +1 -1
  87. package/dist/model/HandleNotefileChanges200Response.js +10 -10
  88. package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
  89. package/dist/model/HandleNotefileDeleteRequest.js +1 -1
  90. package/dist/model/Http.js +43 -43
  91. package/dist/model/{AwsFilter.js → HttpFilter.js} +32 -32
  92. package/dist/model/{AwsTransform.js → HttpTransform.js} +21 -21
  93. package/dist/model/Location.js +38 -38
  94. package/dist/model/Login200Response.js +1 -1
  95. package/dist/model/LoginRequest.js +12 -12
  96. package/dist/model/Monitor.js +135 -135
  97. package/dist/model/MonitorAlertRoutesInner.js +12 -12
  98. package/dist/model/Mqtt.js +91 -91
  99. package/dist/model/Note.js +1 -1
  100. package/dist/model/NotefileSchema.js +1 -1
  101. package/dist/model/NotehubRoute.js +30 -30
  102. package/dist/model/NotehubRouteSchema.js +80 -80
  103. package/dist/model/PersonalAccessToken.js +37 -37
  104. package/dist/model/PersonalAccessTokenCreatedBy.js +13 -13
  105. package/dist/model/PersonalAccessTokenInfo.js +13 -13
  106. package/dist/model/PersonalAccessTokenSecret.js +14 -14
  107. package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
  108. package/dist/model/Product.js +29 -29
  109. package/dist/model/Project.js +35 -35
  110. package/dist/model/ProjectMember.js +19 -19
  111. package/dist/model/Proxy.js +21 -21
  112. package/dist/model/PutDeviceFleetsRequest.js +1 -1
  113. package/dist/model/QuestionDataResponseLineChart.js +204 -0
  114. package/dist/model/{OAuth2Error.js → QuestionDataResponseMap.js} +42 -65
  115. package/dist/model/Radresponder.js +28 -28
  116. package/dist/model/Repository.js +22 -22
  117. package/dist/model/RouteLog.js +28 -28
  118. package/dist/model/SatellitePlan.js +166 -0
  119. package/dist/model/SchemaProperty.js +36 -34
  120. package/dist/model/SimUsage.js +20 -20
  121. package/dist/model/Slack.js +71 -71
  122. package/dist/model/SlackBearerNotification.js +14 -14
  123. package/dist/model/SlackWebHookNotification.js +14 -14
  124. package/dist/model/Snowflake.js +57 -57
  125. package/dist/model/{SlackTransform.js → SnowflakeTransform.js} +19 -19
  126. package/dist/model/Thingworx.js +36 -36
  127. package/dist/model/TowerLocation.js +58 -58
  128. package/dist/model/Twilio.js +46 -46
  129. package/dist/model/UpdateFleetRequest.js +14 -14
  130. package/dist/model/UploadMetadata.js +68 -68
  131. package/dist/model/UserDbRoute.js +26 -26
  132. package/dist/model/UserDfuStateMachine.js +14 -14
  133. package/dist/model/UserDfuStateMachineStatus.js +9 -9
  134. package/dist/model/UserFirmwareInfo.js +1 -1
  135. package/dist/model/WebhookSettings.js +1 -1
  136. package/package.json +1 -1
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The RouteLog model module.
28
28
  * @module model/RouteLog
29
- * @version 1.0.37-beta.17
29
+ * @version 1.0.37-beta.18
30
30
  */
31
31
  var RouteLog = /*#__PURE__*/function () {
32
32
  /**
@@ -59,20 +59,17 @@ var RouteLog = /*#__PURE__*/function () {
59
59
  value: function constructFromObject(data, obj) {
60
60
  if (data) {
61
61
  obj = obj || new RouteLog();
62
- if (data.hasOwnProperty('attn')) {
63
- obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
64
- }
65
62
  if (data.hasOwnProperty('date')) {
66
63
  obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String');
67
64
  }
68
- if (data.hasOwnProperty('duration')) {
69
- obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
65
+ if (data.hasOwnProperty('routeUID')) {
66
+ obj['routeUID'] = _ApiClient["default"].convertToType(data['routeUID'], 'String');
70
67
  }
71
- if (data.hasOwnProperty('event_uid')) {
72
- obj['event_uid'] = _ApiClient["default"].convertToType(data['event_uid'], 'String');
68
+ if (data.hasOwnProperty('eventUID')) {
69
+ obj['eventUID'] = _ApiClient["default"].convertToType(data['eventUID'], 'String');
73
70
  }
74
- if (data.hasOwnProperty('route_uid')) {
75
- obj['route_uid'] = _ApiClient["default"].convertToType(data['route_uid'], 'String');
71
+ if (data.hasOwnProperty('attn')) {
72
+ obj['attn'] = _ApiClient["default"].convertToType(data['attn'], 'Boolean');
76
73
  }
77
74
  if (data.hasOwnProperty('status')) {
78
75
  obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
@@ -83,6 +80,9 @@ var RouteLog = /*#__PURE__*/function () {
83
80
  if (data.hasOwnProperty('url')) {
84
81
  obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
85
82
  }
83
+ if (data.hasOwnProperty('duration')) {
84
+ obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number');
85
+ }
86
86
  } else if (data === null) {
87
87
  return null;
88
88
  }
@@ -102,12 +102,12 @@ var RouteLog = /*#__PURE__*/function () {
102
102
  throw new Error("Expected the field `date` to be a primitive type in the JSON string but got " + data['date']);
103
103
  }
104
104
  // ensure the json data is a string
105
- if (data['event_uid'] && !(typeof data['event_uid'] === 'string' || data['event_uid'] instanceof String)) {
106
- throw new Error("Expected the field `event_uid` to be a primitive type in the JSON string but got " + data['event_uid']);
105
+ if (data['routeUID'] && !(typeof data['routeUID'] === 'string' || data['routeUID'] instanceof String)) {
106
+ throw new Error("Expected the field `routeUID` to be a primitive type in the JSON string but got " + data['routeUID']);
107
107
  }
108
108
  // ensure the json data is a string
109
- if (data['route_uid'] && !(typeof data['route_uid'] === 'string' || data['route_uid'] instanceof String)) {
110
- throw new Error("Expected the field `route_uid` to be a primitive type in the JSON string but got " + data['route_uid']);
109
+ if (data['eventUID'] && !(typeof data['eventUID'] === 'string' || data['eventUID'] instanceof String)) {
110
+ throw new Error("Expected the field `eventUID` to be a primitive type in the JSON string but got " + data['eventUID']);
111
111
  }
112
112
  // ensure the json data is a string
113
113
  if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
@@ -125,12 +125,6 @@ var RouteLog = /*#__PURE__*/function () {
125
125
  }
126
126
  }]);
127
127
  }();
128
- /**
129
- * If true, an error was returned when routing
130
- * @member {Boolean} attn
131
- */
132
- RouteLog.prototype['attn'] = undefined;
133
-
134
128
  /**
135
129
  * The date of the logs.
136
130
  * @member {String} date
@@ -138,22 +132,22 @@ RouteLog.prototype['attn'] = undefined;
138
132
  RouteLog.prototype['date'] = undefined;
139
133
 
140
134
  /**
141
- * The duration of the route in milliseconds
142
- * @member {Number} duration
135
+ * The route UID.
136
+ * @member {String} routeUID
143
137
  */
144
- RouteLog.prototype['duration'] = undefined;
138
+ RouteLog.prototype['routeUID'] = undefined;
145
139
 
146
140
  /**
147
141
  * The event UID.
148
- * @member {String} event_uid
142
+ * @member {String} eventUID
149
143
  */
150
- RouteLog.prototype['event_uid'] = undefined;
144
+ RouteLog.prototype['eventUID'] = undefined;
151
145
 
152
146
  /**
153
- * The route UID.
154
- * @member {String} route_uid
147
+ * If true, an error was returned when routing
148
+ * @member {Boolean} attn
155
149
  */
156
- RouteLog.prototype['route_uid'] = undefined;
150
+ RouteLog.prototype['attn'] = undefined;
157
151
 
158
152
  /**
159
153
  * The status of the event.
@@ -172,4 +166,10 @@ RouteLog.prototype['text'] = undefined;
172
166
  * @member {String} url
173
167
  */
174
168
  RouteLog.prototype['url'] = undefined;
169
+
170
+ /**
171
+ * The duration of the route in milliseconds
172
+ * @member {Number} duration
173
+ */
174
+ RouteLog.prototype['duration'] = undefined;
175
175
  var _default = exports["default"] = RouteLog;
@@ -0,0 +1,166 @@
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 _CumulativeDataUsage = _interopRequireDefault(require("./CumulativeDataUsage"));
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
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
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
12
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
15
+ 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); } }
16
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
17
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
18
+ 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); } /**
19
+ * Notehub API
20
+ * The OpenAPI definition for the Notehub.io API.
21
+ *
22
+ * The version of the OpenAPI document: 1.2.0
23
+ * Contact: engineering@blues.io
24
+ *
25
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
26
+ * https://openapi-generator.tech
27
+ * Do not edit the class manually.
28
+ *
29
+ */
30
+ /**
31
+ * The SatellitePlan model module.
32
+ * @module model/SatellitePlan
33
+ * @version 1.0.37-beta.18
34
+ */
35
+ var SatellitePlan = /*#__PURE__*/function () {
36
+ /**
37
+ * Constructs a new <code>SatellitePlan</code>.
38
+ * @alias module:model/SatellitePlan
39
+ * @param ntnProvider {String} Non-Terrestrial Network provider name
40
+ * @param psid {String} Provider-specific identifier for the satellite subscription
41
+ * @param activated {Number} Activation date of the satellite plan as Unix timestamp
42
+ * @param cumulativeBillableBytes {module:model/CumulativeDataUsage}
43
+ */
44
+ function SatellitePlan(ntnProvider, psid, activated, cumulativeBillableBytes) {
45
+ _classCallCheck(this, SatellitePlan);
46
+ SatellitePlan.initialize(this, ntnProvider, psid, activated, cumulativeBillableBytes);
47
+ }
48
+
49
+ /**
50
+ * Initializes the fields of this object.
51
+ * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
52
+ * Only for internal use.
53
+ */
54
+ return _createClass(SatellitePlan, null, [{
55
+ key: "initialize",
56
+ value: function initialize(obj, ntnProvider, psid, activated, cumulativeBillableBytes) {
57
+ obj['ntn_provider'] = ntnProvider;
58
+ obj['psid'] = psid;
59
+ obj['activated'] = activated;
60
+ obj['cumulative_billable_bytes'] = cumulativeBillableBytes;
61
+ }
62
+
63
+ /**
64
+ * Constructs a <code>SatellitePlan</code> from a plain JavaScript object, optionally creating a new instance.
65
+ * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
66
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
67
+ * @param {module:model/SatellitePlan} obj Optional instance to populate.
68
+ * @return {module:model/SatellitePlan} The populated <code>SatellitePlan</code> instance.
69
+ */
70
+ }, {
71
+ key: "constructFromObject",
72
+ value: function constructFromObject(data, obj) {
73
+ if (data) {
74
+ obj = obj || new SatellitePlan();
75
+ if (data.hasOwnProperty('ntn_provider')) {
76
+ obj['ntn_provider'] = _ApiClient["default"].convertToType(data['ntn_provider'], 'String');
77
+ }
78
+ if (data.hasOwnProperty('psid')) {
79
+ obj['psid'] = _ApiClient["default"].convertToType(data['psid'], 'String');
80
+ }
81
+ if (data.hasOwnProperty('activated')) {
82
+ obj['activated'] = _ApiClient["default"].convertToType(data['activated'], 'Number');
83
+ }
84
+ if (data.hasOwnProperty('cumulative_billable_bytes')) {
85
+ obj['cumulative_billable_bytes'] = _CumulativeDataUsage["default"].constructFromObject(data['cumulative_billable_bytes']);
86
+ }
87
+ if (data.hasOwnProperty('last_updated')) {
88
+ obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'Number');
89
+ }
90
+ } else if (data === null) {
91
+ return null;
92
+ }
93
+ return obj;
94
+ }
95
+
96
+ /**
97
+ * Validates the JSON data with respect to <code>SatellitePlan</code>.
98
+ * @param {Object} data The plain JavaScript object bearing properties of interest.
99
+ * @return {boolean} to indicate whether the JSON data is valid with respect to <code>SatellitePlan</code>.
100
+ */
101
+ }, {
102
+ key: "validateJSON",
103
+ value: function validateJSON(data) {
104
+ // check to make sure all required properties are present in the JSON string
105
+ var _iterator = _createForOfIteratorHelper(SatellitePlan.RequiredProperties),
106
+ _step;
107
+ try {
108
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
109
+ var property = _step.value;
110
+ if (!data[property]) {
111
+ throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
112
+ }
113
+ }
114
+ // ensure the json data is a string
115
+ } catch (err) {
116
+ _iterator.e(err);
117
+ } finally {
118
+ _iterator.f();
119
+ }
120
+ if (data['ntn_provider'] && !(typeof data['ntn_provider'] === 'string' || data['ntn_provider'] instanceof String)) {
121
+ throw new Error("Expected the field `ntn_provider` to be a primitive type in the JSON string but got " + data['ntn_provider']);
122
+ }
123
+ // ensure the json data is a string
124
+ if (data['psid'] && !(typeof data['psid'] === 'string' || data['psid'] instanceof String)) {
125
+ throw new Error("Expected the field `psid` to be a primitive type in the JSON string but got " + data['psid']);
126
+ }
127
+ // validate the optional field `cumulative_billable_bytes`
128
+ if (data['cumulative_billable_bytes']) {
129
+ // data not null
130
+ _CumulativeDataUsage["default"].validateJSON(data['cumulative_billable_bytes']);
131
+ }
132
+ return true;
133
+ }
134
+ }]);
135
+ }();
136
+ SatellitePlan.RequiredProperties = ["ntn_provider", "psid", "activated", "cumulative_billable_bytes"];
137
+
138
+ /**
139
+ * Non-Terrestrial Network provider name
140
+ * @member {String} ntn_provider
141
+ */
142
+ SatellitePlan.prototype['ntn_provider'] = undefined;
143
+
144
+ /**
145
+ * Provider-specific identifier for the satellite subscription
146
+ * @member {String} psid
147
+ */
148
+ SatellitePlan.prototype['psid'] = undefined;
149
+
150
+ /**
151
+ * Activation date of the satellite plan as Unix timestamp
152
+ * @member {Number} activated
153
+ */
154
+ SatellitePlan.prototype['activated'] = undefined;
155
+
156
+ /**
157
+ * @member {module:model/CumulativeDataUsage} cumulative_billable_bytes
158
+ */
159
+ SatellitePlan.prototype['cumulative_billable_bytes'] = undefined;
160
+
161
+ /**
162
+ * Time this plan information was last updated
163
+ * @member {Number} last_updated
164
+ */
165
+ SatellitePlan.prototype['last_updated'] = undefined;
166
+ var _default = exports["default"] = SatellitePlan;
@@ -29,17 +29,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
29
29
  /**
30
30
  * The SchemaProperty model module.
31
31
  * @module model/SchemaProperty
32
- * @version 1.0.37-beta.17
32
+ * @version 1.0.37-beta.18
33
33
  */
34
34
  var SchemaProperty = /*#__PURE__*/function () {
35
35
  /**
36
36
  * Constructs a new <code>SchemaProperty</code>.
37
37
  * @alias module:model/SchemaProperty
38
38
  * @param type {module:model/SchemaProperty.TypeEnum}
39
+ * @param updatedAt {Date}
39
40
  */
40
- function SchemaProperty(type) {
41
+ function SchemaProperty(type, updatedAt) {
41
42
  _classCallCheck(this, SchemaProperty);
42
- SchemaProperty.initialize(this, type);
43
+ SchemaProperty.initialize(this, type, updatedAt);
43
44
  }
44
45
 
45
46
  /**
@@ -49,8 +50,9 @@ var SchemaProperty = /*#__PURE__*/function () {
49
50
  */
50
51
  return _createClass(SchemaProperty, null, [{
51
52
  key: "initialize",
52
- value: function initialize(obj, type) {
53
+ value: function initialize(obj, type, updatedAt) {
53
54
  obj['type'] = type;
55
+ obj['updatedAt'] = updatedAt;
54
56
  }
55
57
 
56
58
  /**
@@ -65,20 +67,20 @@ var SchemaProperty = /*#__PURE__*/function () {
65
67
  value: function constructFromObject(data, obj) {
66
68
  if (data) {
67
69
  obj = obj || new SchemaProperty();
68
- if (data.hasOwnProperty('items')) {
69
- obj['items'] = _ApiClient["default"].convertToType(data['items'], [SchemaProperty]);
70
- }
71
70
  if (data.hasOwnProperty('name')) {
72
71
  obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
73
72
  }
74
- if (data.hasOwnProperty('properties')) {
75
- obj['properties'] = _ApiClient["default"].convertToType(data['properties'], [SchemaProperty]);
76
- }
77
73
  if (data.hasOwnProperty('type')) {
78
74
  obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
79
75
  }
80
- if (data.hasOwnProperty('updated_at')) {
81
- obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Date');
76
+ if (data.hasOwnProperty('updatedAt')) {
77
+ obj['updatedAt'] = _ApiClient["default"].convertToType(data['updatedAt'], 'Date');
78
+ }
79
+ if (data.hasOwnProperty('items')) {
80
+ obj['items'] = _ApiClient["default"].convertToType(data['items'], [SchemaProperty]);
81
+ }
82
+ if (data.hasOwnProperty('properties')) {
83
+ obj['properties'] = _ApiClient["default"].convertToType(data['properties'], [SchemaProperty]);
82
84
  }
83
85
  } else if (data === null) {
84
86
  return null;
@@ -104,11 +106,19 @@ var SchemaProperty = /*#__PURE__*/function () {
104
106
  throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
105
107
  }
106
108
  }
109
+ // ensure the json data is a string
107
110
  } catch (err) {
108
111
  _iterator.e(err);
109
112
  } finally {
110
113
  _iterator.f();
111
114
  }
115
+ if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
116
+ throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
117
+ }
118
+ // ensure the json data is a string
119
+ if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
120
+ throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
121
+ }
112
122
  if (data['items']) {
113
123
  // data not null
114
124
  // ensure the json data is an array
@@ -130,10 +140,6 @@ var SchemaProperty = /*#__PURE__*/function () {
130
140
  }
131
141
  ;
132
142
  }
133
- // ensure the json data is a string
134
- if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
135
- throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
136
- }
137
143
  if (data['properties']) {
138
144
  // data not null
139
145
  // ensure the json data is an array
@@ -155,21 +161,11 @@ var SchemaProperty = /*#__PURE__*/function () {
155
161
  }
156
162
  ;
157
163
  }
158
- // ensure the json data is a string
159
- if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
160
- throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
161
- }
162
164
  return true;
163
165
  }
164
166
  }]);
165
167
  }();
166
- SchemaProperty.RequiredProperties = ["type"];
167
-
168
- /**
169
- * Used if type is array
170
- * @member {Array.<module:model/SchemaProperty>} items
171
- */
172
- SchemaProperty.prototype['items'] = undefined;
168
+ SchemaProperty.RequiredProperties = ["type", "updatedAt"];
173
169
 
174
170
  /**
175
171
  * Name of the field (optional for array/object children)
@@ -178,20 +174,26 @@ SchemaProperty.prototype['items'] = undefined;
178
174
  SchemaProperty.prototype['name'] = undefined;
179
175
 
180
176
  /**
181
- * Used if type is object
182
- * @member {Array.<module:model/SchemaProperty>} properties
177
+ * @member {module:model/SchemaProperty.TypeEnum} type
183
178
  */
184
- SchemaProperty.prototype['properties'] = undefined;
179
+ SchemaProperty.prototype['type'] = undefined;
185
180
 
186
181
  /**
187
- * @member {module:model/SchemaProperty.TypeEnum} type
182
+ * @member {Date} updatedAt
188
183
  */
189
- SchemaProperty.prototype['type'] = undefined;
184
+ SchemaProperty.prototype['updatedAt'] = undefined;
185
+
186
+ /**
187
+ * Used if type is array
188
+ * @member {Array.<module:model/SchemaProperty>} items
189
+ */
190
+ SchemaProperty.prototype['items'] = undefined;
190
191
 
191
192
  /**
192
- * @member {Date} updated_at
193
+ * Used if type is object
194
+ * @member {Array.<module:model/SchemaProperty>} properties
193
195
  */
194
- SchemaProperty.prototype['updated_at'] = undefined;
196
+ SchemaProperty.prototype['properties'] = undefined;
195
197
 
196
198
  /**
197
199
  * Allowed values for the <code>type</code> property.
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The SimUsage model module.
28
28
  * @module model/SimUsage
29
- * @version 1.0.37-beta.17
29
+ * @version 1.0.37-beta.18
30
30
  */
31
31
  var SimUsage = /*#__PURE__*/function () {
32
32
  /**
@@ -62,17 +62,17 @@ var SimUsage = /*#__PURE__*/function () {
62
62
  if (data.hasOwnProperty('iccid')) {
63
63
  obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
64
64
  }
65
- if (data.hasOwnProperty('last_updated')) {
66
- obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'Number');
67
- }
68
- if (data.hasOwnProperty('lifetime_used')) {
69
- obj['lifetime_used'] = _ApiClient["default"].convertToType(data['lifetime_used'], 'Number');
65
+ if (data.hasOwnProperty('used')) {
66
+ obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Number');
70
67
  }
71
68
  if (data.hasOwnProperty('limit')) {
72
69
  obj['limit'] = _ApiClient["default"].convertToType(data['limit'], 'Number');
73
70
  }
74
- if (data.hasOwnProperty('used')) {
75
- obj['used'] = _ApiClient["default"].convertToType(data['used'], 'Number');
71
+ if (data.hasOwnProperty('lifetime_used')) {
72
+ obj['lifetime_used'] = _ApiClient["default"].convertToType(data['lifetime_used'], 'Number');
73
+ }
74
+ if (data.hasOwnProperty('last_updated')) {
75
+ obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'Number');
76
76
  }
77
77
  } else if (data === null) {
78
78
  return null;
@@ -103,16 +103,10 @@ var SimUsage = /*#__PURE__*/function () {
103
103
  SimUsage.prototype['iccid'] = undefined;
104
104
 
105
105
  /**
106
- * Time this usage information was last updated
107
- * @member {Number} last_updated
108
- */
109
- SimUsage.prototype['last_updated'] = undefined;
110
-
111
- /**
112
- * Total number of bytes used by SIM
113
- * @member {Number} lifetime_used
106
+ * Bytes used on the SIMs current data plan
107
+ * @member {Number} used
114
108
  */
115
- SimUsage.prototype['lifetime_used'] = undefined;
109
+ SimUsage.prototype['used'] = undefined;
116
110
 
117
111
  /**
118
112
  * Limit in bytes of the SIMs current data plan
@@ -121,8 +115,14 @@ SimUsage.prototype['lifetime_used'] = undefined;
121
115
  SimUsage.prototype['limit'] = undefined;
122
116
 
123
117
  /**
124
- * Bytes used on the SIMs current data plan
125
- * @member {Number} used
118
+ * Total number of bytes used by SIM
119
+ * @member {Number} lifetime_used
126
120
  */
127
- SimUsage.prototype['used'] = undefined;
121
+ SimUsage.prototype['lifetime_used'] = undefined;
122
+
123
+ /**
124
+ * Time this usage information was last updated
125
+ * @member {Number} last_updated
126
+ */
127
+ SimUsage.prototype['last_updated'] = undefined;
128
128
  var _default = exports["default"] = SimUsage;