@blues-inc/notehub-js 1.0.37-beta.28 → 1.0.37-beta.29
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.
- package/README.md +2 -5
- package/dist/ApiClient.js +3 -3
- package/dist/api/AlertApi.js +2 -2
- package/dist/api/AuthorizationApi.js +2 -2
- package/dist/api/BillingAccountApi.js +2 -2
- package/dist/api/DeviceApi.js +2 -2
- package/dist/api/EventApi.js +2 -2
- package/dist/api/ExternalDevicesApi.js +2 -2
- package/dist/api/MonitorApi.js +2 -2
- package/dist/api/ProjectApi.js +2 -2
- package/dist/api/RouteApi.js +2 -2
- package/dist/api/UsageApi.js +2 -2
- package/dist/api/WebhookApi.js +2 -2
- package/dist/index.js +0 -21
- package/dist/model/Alert.js +2 -2
- package/dist/model/AlertDataInner.js +2 -2
- package/dist/model/AlertNotificationsInner.js +2 -2
- package/dist/model/Aws.js +2 -2
- package/dist/model/AwsFilter.js +2 -2
- package/dist/model/AwsTransform.js +2 -2
- package/dist/model/Azure.js +2 -2
- package/dist/model/BillingAccount.js +2 -2
- package/dist/model/BillingAccountRole.js +1 -1
- package/dist/model/Body.js +2 -2
- package/dist/model/CloneProjectRequest.js +2 -2
- package/dist/model/Contact.js +2 -2
- package/dist/model/CreateFleetRequest.js +2 -2
- package/dist/model/CreateMonitor.js +2 -2
- package/dist/model/CreateProductRequest.js +2 -2
- package/dist/model/CreateProjectRequest.js +2 -2
- package/dist/model/CreateUpdateRepository.js +2 -2
- package/dist/model/CurrentFirmware.js +2 -2
- package/dist/model/DFUEnv.js +2 -2
- package/dist/model/DFUState.js +2 -2
- package/dist/model/DataField.js +2 -2
- package/dist/model/DataSetField.js +2 -2
- package/dist/model/DeleteDeviceFleetsRequest.js +2 -2
- package/dist/model/Device.js +8 -52
- package/dist/model/DeviceDfuHistory.js +2 -2
- package/dist/model/DeviceDfuHistoryCurrent.js +2 -2
- package/dist/model/DeviceDfuHistoryPage.js +2 -2
- package/dist/model/DeviceDfuStateMachine.js +2 -2
- package/dist/model/DeviceDfuStateMachineNode.js +2 -2
- package/dist/model/DeviceDfuStatus.js +2 -2
- package/dist/model/DeviceDfuStatusPage.js +2 -2
- package/dist/model/DeviceSession.js +2 -2
- package/dist/model/DeviceTowerInfo.js +2 -2
- package/dist/model/DeviceUsage.js +2 -2
- package/dist/model/DfuActionRequest.js +2 -2
- package/dist/model/EmailNotification.js +2 -2
- package/dist/model/EnvTreeJsonNode.js +2 -2
- package/dist/model/EnvVar.js +2 -2
- package/dist/model/EnvironmentVariables.js +2 -2
- package/dist/model/Error.js +2 -2
- package/dist/model/Event.js +2 -2
- package/dist/model/Firmware.js +2 -2
- package/dist/model/FirmwareInfo.js +2 -2
- package/dist/model/Fleet.js +2 -2
- package/dist/model/GetAlerts200Response.js +2 -2
- package/dist/model/GetBillingAccounts200Response.js +2 -2
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +2 -2
- package/dist/model/GetDeviceFleets200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200Response.js +2 -2
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +2 -2
- package/dist/model/GetDeviceLatest200Response.js +2 -2
- package/dist/model/GetDevicePublicKey200Response.js +2 -2
- package/dist/model/GetDeviceSessions200Response.js +2 -2
- package/dist/model/GetProjectDevicePublicKeys200Response.js +2 -2
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +2 -2
- package/dist/model/GetProjectDevices200Response.js +2 -2
- package/dist/model/GetProjectEvents200Response.js +2 -2
- package/dist/model/GetProjectEventsByCursor200Response.js +2 -2
- package/dist/model/GetProjectMembers200Response.js +2 -2
- package/dist/model/GetProjectProducts200Response.js +2 -2
- package/dist/model/GetProjects200Response.js +2 -2
- package/dist/model/GetWebhooks200Response.js +2 -2
- package/dist/model/Google.js +2 -2
- package/dist/model/HandleNoteChanges200Response.js +2 -2
- package/dist/model/HandleNoteGet200Response.js +2 -2
- package/dist/model/HandleNoteSignal200Response.js +2 -2
- package/dist/model/HandleNotefileChanges200Response.js +2 -2
- package/dist/model/HandleNotefileChangesPending200Response.js +2 -2
- package/dist/model/HandleNotefileDeleteRequest.js +2 -2
- package/dist/model/Http.js +2 -2
- package/dist/model/Location.js +2 -2
- package/dist/model/Login200Response.js +2 -2
- package/dist/model/LoginRequest.js +2 -2
- package/dist/model/Monitor.js +2 -2
- package/dist/model/MonitorAlertRoutesInner.js +2 -2
- package/dist/model/Mqtt.js +2 -2
- package/dist/model/Note.js +2 -2
- package/dist/model/NotefileSchema.js +2 -2
- package/dist/model/NotehubRoute.js +2 -2
- package/dist/model/NotehubRouteSchema.js +2 -2
- package/dist/model/OAuth2Error.js +2 -2
- package/dist/model/OAuth2TokenResponse.js +2 -2
- package/dist/model/PersonalAccessToken.js +2 -2
- package/dist/model/PersonalAccessTokenCreatedBy.js +2 -2
- package/dist/model/PersonalAccessTokenInfo.js +2 -2
- package/dist/model/PersonalAccessTokenSecret.js +2 -2
- package/dist/model/PostProvisionProjectDeviceRequest.js +2 -2
- package/dist/model/Product.js +2 -2
- package/dist/model/Project.js +2 -2
- package/dist/model/ProjectMember.js +2 -2
- package/dist/model/Proxy.js +2 -2
- package/dist/model/PutDeviceFleetsRequest.js +2 -2
- package/dist/model/Radresponder.js +2 -2
- package/dist/model/Repository.js +2 -2
- package/dist/model/Role.js +1 -1
- package/dist/model/RouteLog.js +2 -2
- package/dist/model/SchemaProperty.js +2 -2
- package/dist/model/SimUsage.js +2 -2
- package/dist/model/Slack.js +2 -2
- package/dist/model/SlackBearerNotification.js +2 -2
- package/dist/model/SlackTransform.js +2 -2
- package/dist/model/SlackWebHookNotification.js +2 -2
- package/dist/model/Snowflake.js +2 -2
- package/dist/model/Thingworx.js +2 -2
- package/dist/model/TowerLocation.js +2 -2
- package/dist/model/Twilio.js +2 -2
- package/dist/model/UpdateFleetRequest.js +2 -2
- package/dist/model/UploadMetadata.js +2 -2
- package/dist/model/UsageData.js +2 -2
- package/dist/model/UsageEventsData.js +2 -2
- package/dist/model/UsageEventsResponse.js +2 -2
- package/dist/model/UsageRouteLogsData.js +2 -2
- package/dist/model/UsageRouteLogsResponse.js +2 -2
- package/dist/model/UsageSessionsData.js +2 -2
- package/dist/model/UsageSessionsResponse.js +2 -2
- package/dist/model/UserDbRoute.js +2 -2
- package/dist/model/UserDfuStateMachine.js +2 -2
- package/dist/model/UserDfuStateMachineStatus.js +2 -2
- package/dist/model/UserFirmwareInfo.js +2 -2
- package/dist/model/WebhookSettings.js +2 -2
- package/package.json +26 -26
- package/dist/model/CellularPlan.js +0 -168
- package/dist/model/CumulativeDataUsage.js +0 -133
- package/dist/model/SatellitePlan.js +0 -166
|
@@ -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.
|
|
22
|
+
* The version of the OpenAPI document: 1.2.1
|
|
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 UsageSessionsResponse model module.
|
|
32
32
|
* @module model/UsageSessionsResponse
|
|
33
|
-
* @version 1.0.37-beta.
|
|
33
|
+
* @version 1.0.37-beta.29
|
|
34
34
|
*/
|
|
35
35
|
var UsageSessionsResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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.
|
|
18
|
+
* The version of the OpenAPI document: 1.2.1
|
|
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 UserDbRoute model module.
|
|
28
28
|
* @module model/UserDbRoute
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.29
|
|
30
30
|
*/
|
|
31
31
|
var UserDbRoute = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 1.2.
|
|
20
|
+
* The version of the OpenAPI document: 1.2.1
|
|
21
21
|
* Contact: engineering@blues.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserDfuStateMachine model module.
|
|
30
30
|
* @module model/UserDfuStateMachine
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.29
|
|
32
32
|
*/
|
|
33
33
|
var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -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.
|
|
18
|
+
* The version of the OpenAPI document: 1.2.1
|
|
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 UserDfuStateMachineStatus model module.
|
|
28
28
|
* @module model/UserDfuStateMachineStatus
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.29
|
|
30
30
|
*/
|
|
31
31
|
var UserDfuStateMachineStatus = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
17
17
|
* Notehub API
|
|
18
18
|
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
|
-
* The version of the OpenAPI document: 1.2.
|
|
20
|
+
* The version of the OpenAPI document: 1.2.1
|
|
21
21
|
* Contact: engineering@blues.io
|
|
22
22
|
*
|
|
23
23
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserFirmwareInfo model module.
|
|
30
30
|
* @module model/UserFirmwareInfo
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.29
|
|
32
32
|
*/
|
|
33
33
|
var UserFirmwareInfo = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -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.
|
|
18
|
+
* The version of the OpenAPI document: 1.2.1
|
|
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 WebhookSettings model module.
|
|
28
28
|
* @module model/WebhookSettings
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.29
|
|
30
30
|
*/
|
|
31
31
|
var WebhookSettings = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blues-inc/notehub-js",
|
|
3
|
-
"version": "1.0.37-beta.
|
|
3
|
+
"version": "1.0.37-beta.29",
|
|
4
4
|
"description": "The OpenAPI definition for the Notehub.io API. ",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
"registry":"https://registry.npmjs.org"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/cli": "
|
|
25
|
-
"superagent": "
|
|
26
|
-
"querystring": "
|
|
24
|
+
"@babel/cli": "7.28.3",
|
|
25
|
+
"superagent": "10.2.3",
|
|
26
|
+
"querystring": "0.2.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@babel/core": "
|
|
30
|
-
"@babel/plugin-proposal-class-properties": "
|
|
31
|
-
"@babel/plugin-proposal-decorators": "
|
|
32
|
-
"@babel/plugin-proposal-do-expressions": "
|
|
33
|
-
"@babel/plugin-proposal-export-default-from": "
|
|
34
|
-
"@babel/plugin-proposal-export-namespace-from": "
|
|
35
|
-
"@babel/plugin-proposal-function-bind": "
|
|
36
|
-
"@babel/plugin-proposal-function-sent": "
|
|
37
|
-
"@babel/plugin-proposal-json-strings": "
|
|
38
|
-
"@babel/plugin-proposal-logical-assignment-operators": "
|
|
39
|
-
"@babel/plugin-proposal-nullish-coalescing-operator": "
|
|
40
|
-
"@babel/plugin-proposal-numeric-separator": "
|
|
41
|
-
"@babel/plugin-proposal-optional-chaining": "
|
|
42
|
-
"@babel/plugin-proposal-pipeline-operator": "
|
|
43
|
-
"@babel/plugin-proposal-throw-expressions": "
|
|
44
|
-
"@babel/plugin-syntax-dynamic-import": "
|
|
45
|
-
"@babel/plugin-syntax-import-meta": "
|
|
46
|
-
"@babel/preset-env": "
|
|
47
|
-
"@babel/register": "
|
|
48
|
-
"expect.js": "
|
|
49
|
-
"mocha": "
|
|
50
|
-
"sinon": "
|
|
29
|
+
"@babel/core": "7.28.3",
|
|
30
|
+
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
31
|
+
"@babel/plugin-proposal-decorators": "7.28.0",
|
|
32
|
+
"@babel/plugin-proposal-do-expressions": "7.28.3",
|
|
33
|
+
"@babel/plugin-proposal-export-default-from": "7.27.1",
|
|
34
|
+
"@babel/plugin-proposal-export-namespace-from": "7.18.9",
|
|
35
|
+
"@babel/plugin-proposal-function-bind": "7.27.1",
|
|
36
|
+
"@babel/plugin-proposal-function-sent": "7.27.1",
|
|
37
|
+
"@babel/plugin-proposal-json-strings": "7.18.6",
|
|
38
|
+
"@babel/plugin-proposal-logical-assignment-operators": "7.20.7",
|
|
39
|
+
"@babel/plugin-proposal-nullish-coalescing-operator": "7.18.6",
|
|
40
|
+
"@babel/plugin-proposal-numeric-separator": "7.18.6",
|
|
41
|
+
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
42
|
+
"@babel/plugin-proposal-pipeline-operator": "7.27.1",
|
|
43
|
+
"@babel/plugin-proposal-throw-expressions": "7.27.1",
|
|
44
|
+
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
45
|
+
"@babel/plugin-syntax-import-meta": "7.10.4",
|
|
46
|
+
"@babel/preset-env": "7.28.3",
|
|
47
|
+
"@babel/register": "7.28.3",
|
|
48
|
+
"expect.js": "0.3.1",
|
|
49
|
+
"mocha": "8.4.0",
|
|
50
|
+
"sinon": "7.5.0"
|
|
51
51
|
},
|
|
52
52
|
"files": [
|
|
53
53
|
"dist"
|
|
@@ -1,168 +0,0 @@
|
|
|
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 _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
-
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); } }
|
|
13
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
-
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
-
*
|
|
19
|
-
* The version of the OpenAPI document: 1.2.0
|
|
20
|
-
* Contact: engineering@blues.io
|
|
21
|
-
*
|
|
22
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
23
|
-
* https://openapi-generator.tech
|
|
24
|
-
* Do not edit the class manually.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* The CellularPlan model module.
|
|
29
|
-
* @module model/CellularPlan
|
|
30
|
-
* @version 1.0.37-beta.28
|
|
31
|
-
*/
|
|
32
|
-
var CellularPlan = /*#__PURE__*/function () {
|
|
33
|
-
/**
|
|
34
|
-
* Constructs a new <code>CellularPlan</code>.
|
|
35
|
-
* @alias module:model/CellularPlan
|
|
36
|
-
*/
|
|
37
|
-
function CellularPlan() {
|
|
38
|
-
_classCallCheck(this, CellularPlan);
|
|
39
|
-
CellularPlan.initialize(this);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Initializes the fields of this object.
|
|
44
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
-
* Only for internal use.
|
|
46
|
-
*/
|
|
47
|
-
return _createClass(CellularPlan, null, [{
|
|
48
|
-
key: "initialize",
|
|
49
|
-
value: function initialize(obj) {}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Constructs a <code>CellularPlan</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
-
* @param {module:model/CellularPlan} obj Optional instance to populate.
|
|
56
|
-
* @return {module:model/CellularPlan} The populated <code>CellularPlan</code> instance.
|
|
57
|
-
*/
|
|
58
|
-
}, {
|
|
59
|
-
key: "constructFromObject",
|
|
60
|
-
value: function constructFromObject(data, obj) {
|
|
61
|
-
if (data) {
|
|
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');
|
|
71
|
-
}
|
|
72
|
-
if (data.hasOwnProperty('iccid')) {
|
|
73
|
-
obj['iccid'] = _ApiClient["default"].convertToType(data['iccid'], 'String');
|
|
74
|
-
}
|
|
75
|
-
if (data.hasOwnProperty('imsi')) {
|
|
76
|
-
obj['imsi'] = _ApiClient["default"].convertToType(data['imsi'], 'String');
|
|
77
|
-
}
|
|
78
|
-
if (data.hasOwnProperty('is_bundled')) {
|
|
79
|
-
obj['is_bundled'] = _ApiClient["default"].convertToType(data['is_bundled'], 'Boolean');
|
|
80
|
-
}
|
|
81
|
-
if (data.hasOwnProperty('last_updated')) {
|
|
82
|
-
obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'Number');
|
|
83
|
-
}
|
|
84
|
-
if (data.hasOwnProperty('plan_type')) {
|
|
85
|
-
obj['plan_type'] = _ApiClient["default"].convertToType(data['plan_type'], 'String');
|
|
86
|
-
}
|
|
87
|
-
} else if (data === null) {
|
|
88
|
-
return null;
|
|
89
|
-
}
|
|
90
|
-
return obj;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Validates the JSON data with respect to <code>CellularPlan</code>.
|
|
95
|
-
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
96
|
-
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CellularPlan</code>.
|
|
97
|
-
*/
|
|
98
|
-
}, {
|
|
99
|
-
key: "validateJSON",
|
|
100
|
-
value: function validateJSON(data) {
|
|
101
|
-
// validate the optional field `cumulative_data_usage`
|
|
102
|
-
if (data['cumulative_data_usage']) {
|
|
103
|
-
// data not null
|
|
104
|
-
_CumulativeDataUsage["default"].validateJSON(data['cumulative_data_usage']);
|
|
105
|
-
}
|
|
106
|
-
// ensure the json data is a string
|
|
107
|
-
if (data['iccid'] && !(typeof data['iccid'] === 'string' || data['iccid'] instanceof String)) {
|
|
108
|
-
throw new Error("Expected the field `iccid` to be a primitive type in the JSON string but got " + data['iccid']);
|
|
109
|
-
}
|
|
110
|
-
// ensure the json data is a string
|
|
111
|
-
if (data['imsi'] && !(typeof data['imsi'] === 'string' || data['imsi'] instanceof String)) {
|
|
112
|
-
throw new Error("Expected the field `imsi` to be a primitive type in the JSON string but got " + data['imsi']);
|
|
113
|
-
}
|
|
114
|
-
// ensure the json data is a string
|
|
115
|
-
if (data['plan_type'] && !(typeof data['plan_type'] === 'string' || data['plan_type'] instanceof String)) {
|
|
116
|
-
throw new Error("Expected the field `plan_type` to be a primitive type in the JSON string but got " + data['plan_type']);
|
|
117
|
-
}
|
|
118
|
-
return true;
|
|
119
|
-
}
|
|
120
|
-
}]);
|
|
121
|
-
}();
|
|
122
|
-
/**
|
|
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
|
|
130
|
-
*/
|
|
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;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The Integrated Circuit Card Identifier of the SIM card
|
|
141
|
-
* @member {String} iccid
|
|
142
|
-
*/
|
|
143
|
-
CellularPlan.prototype['iccid'] = undefined;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* IMSI of the SIM card
|
|
147
|
-
* @member {String} imsi
|
|
148
|
-
*/
|
|
149
|
-
CellularPlan.prototype['imsi'] = undefined;
|
|
150
|
-
|
|
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
|
-
/**
|
|
158
|
-
* Time this plan information was last updated
|
|
159
|
-
* @member {Number} last_updated
|
|
160
|
-
*/
|
|
161
|
-
CellularPlan.prototype['last_updated'] = undefined;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Description of the SIM plan type including data allowance, region, and validity period
|
|
165
|
-
* @member {String} plan_type
|
|
166
|
-
*/
|
|
167
|
-
CellularPlan.prototype['plan_type'] = undefined;
|
|
168
|
-
var _default = exports["default"] = CellularPlan;
|
|
@@ -1,133 +0,0 @@
|
|
|
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
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
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; } } }; }
|
|
11
|
-
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; } }
|
|
12
|
-
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; }
|
|
13
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
14
|
-
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); } }
|
|
15
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
-
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
-
*
|
|
21
|
-
* The version of the OpenAPI document: 1.2.0
|
|
22
|
-
* Contact: engineering@blues.io
|
|
23
|
-
*
|
|
24
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
25
|
-
* https://openapi-generator.tech
|
|
26
|
-
* Do not edit the class manually.
|
|
27
|
-
*
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* The CumulativeDataUsage model module.
|
|
31
|
-
* @module model/CumulativeDataUsage
|
|
32
|
-
* @version 1.0.37-beta.28
|
|
33
|
-
*/
|
|
34
|
-
var CumulativeDataUsage = /*#__PURE__*/function () {
|
|
35
|
-
/**
|
|
36
|
-
* Constructs a new <code>CumulativeDataUsage</code>.
|
|
37
|
-
* @alias module:model/CumulativeDataUsage
|
|
38
|
-
* @param kbRemaining {Number} Kilobytes remaining in the plan
|
|
39
|
-
* @param kbTotal {Number} Total Kilobytes included in the plan
|
|
40
|
-
* @param kbUsed {Number} Kilobytes used to date
|
|
41
|
-
*/
|
|
42
|
-
function CumulativeDataUsage(kbRemaining, kbTotal, kbUsed) {
|
|
43
|
-
_classCallCheck(this, CumulativeDataUsage);
|
|
44
|
-
CumulativeDataUsage.initialize(this, kbRemaining, kbTotal, kbUsed);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Initializes the fields of this object.
|
|
49
|
-
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
50
|
-
* Only for internal use.
|
|
51
|
-
*/
|
|
52
|
-
return _createClass(CumulativeDataUsage, null, [{
|
|
53
|
-
key: "initialize",
|
|
54
|
-
value: function initialize(obj, kbRemaining, kbTotal, kbUsed) {
|
|
55
|
-
obj['kb_remaining'] = kbRemaining;
|
|
56
|
-
obj['kb_total'] = kbTotal;
|
|
57
|
-
obj['kb_used'] = kbUsed;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Constructs a <code>CumulativeDataUsage</code> from a plain JavaScript object, optionally creating a new instance.
|
|
62
|
-
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
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.
|
|
66
|
-
*/
|
|
67
|
-
}, {
|
|
68
|
-
key: "constructFromObject",
|
|
69
|
-
value: function constructFromObject(data, obj) {
|
|
70
|
-
if (data) {
|
|
71
|
-
obj = obj || new CumulativeDataUsage();
|
|
72
|
-
if (data.hasOwnProperty('kb_remaining')) {
|
|
73
|
-
obj['kb_remaining'] = _ApiClient["default"].convertToType(data['kb_remaining'], 'Number');
|
|
74
|
-
}
|
|
75
|
-
if (data.hasOwnProperty('kb_total')) {
|
|
76
|
-
obj['kb_total'] = _ApiClient["default"].convertToType(data['kb_total'], 'Number');
|
|
77
|
-
}
|
|
78
|
-
if (data.hasOwnProperty('kb_used')) {
|
|
79
|
-
obj['kb_used'] = _ApiClient["default"].convertToType(data['kb_used'], 'Number');
|
|
80
|
-
}
|
|
81
|
-
} else if (data === null) {
|
|
82
|
-
return null;
|
|
83
|
-
}
|
|
84
|
-
return obj;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Validates the JSON data with respect to <code>CumulativeDataUsage</code>.
|
|
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>.
|
|
91
|
-
*/
|
|
92
|
-
}, {
|
|
93
|
-
key: "validateJSON",
|
|
94
|
-
value: function validateJSON(data) {
|
|
95
|
-
// check to make sure all required properties are present in the JSON string
|
|
96
|
-
var _iterator = _createForOfIteratorHelper(CumulativeDataUsage.RequiredProperties),
|
|
97
|
-
_step;
|
|
98
|
-
try {
|
|
99
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
100
|
-
var property = _step.value;
|
|
101
|
-
if (!data[property]) {
|
|
102
|
-
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
} catch (err) {
|
|
106
|
-
_iterator.e(err);
|
|
107
|
-
} finally {
|
|
108
|
-
_iterator.f();
|
|
109
|
-
}
|
|
110
|
-
return true;
|
|
111
|
-
}
|
|
112
|
-
}]);
|
|
113
|
-
}();
|
|
114
|
-
CumulativeDataUsage.RequiredProperties = ["kb_remaining", "kb_total", "kb_used"];
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Kilobytes remaining in the plan
|
|
118
|
-
* @member {Number} kb_remaining
|
|
119
|
-
*/
|
|
120
|
-
CumulativeDataUsage.prototype['kb_remaining'] = undefined;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Total Kilobytes included in the plan
|
|
124
|
-
* @member {Number} kb_total
|
|
125
|
-
*/
|
|
126
|
-
CumulativeDataUsage.prototype['kb_total'] = undefined;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Kilobytes used to date
|
|
130
|
-
* @member {Number} kb_used
|
|
131
|
-
*/
|
|
132
|
-
CumulativeDataUsage.prototype['kb_used'] = undefined;
|
|
133
|
-
var _default = exports["default"] = CumulativeDataUsage;
|
|
@@ -1,166 +0,0 @@
|
|
|
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.28
|
|
34
|
-
*/
|
|
35
|
-
var SatellitePlan = /*#__PURE__*/function () {
|
|
36
|
-
/**
|
|
37
|
-
* Constructs a new <code>SatellitePlan</code>.
|
|
38
|
-
* @alias module:model/SatellitePlan
|
|
39
|
-
* @param activated {Number} Activation date of the satellite plan as Unix timestamp
|
|
40
|
-
* @param cumulativeBillableBytes {module:model/CumulativeDataUsage}
|
|
41
|
-
* @param ntnProvider {String} Non-Terrestrial Network provider name
|
|
42
|
-
* @param psid {String} Provider-specific identifier for the satellite subscription
|
|
43
|
-
*/
|
|
44
|
-
function SatellitePlan(activated, cumulativeBillableBytes, ntnProvider, psid) {
|
|
45
|
-
_classCallCheck(this, SatellitePlan);
|
|
46
|
-
SatellitePlan.initialize(this, activated, cumulativeBillableBytes, ntnProvider, psid);
|
|
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, activated, cumulativeBillableBytes, ntnProvider, psid) {
|
|
57
|
-
obj['activated'] = activated;
|
|
58
|
-
obj['cumulative_billable_bytes'] = cumulativeBillableBytes;
|
|
59
|
-
obj['ntn_provider'] = ntnProvider;
|
|
60
|
-
obj['psid'] = psid;
|
|
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('activated')) {
|
|
76
|
-
obj['activated'] = _ApiClient["default"].convertToType(data['activated'], 'Number');
|
|
77
|
-
}
|
|
78
|
-
if (data.hasOwnProperty('cumulative_billable_bytes')) {
|
|
79
|
-
obj['cumulative_billable_bytes'] = _CumulativeDataUsage["default"].constructFromObject(data['cumulative_billable_bytes']);
|
|
80
|
-
}
|
|
81
|
-
if (data.hasOwnProperty('last_updated')) {
|
|
82
|
-
obj['last_updated'] = _ApiClient["default"].convertToType(data['last_updated'], 'Number');
|
|
83
|
-
}
|
|
84
|
-
if (data.hasOwnProperty('ntn_provider')) {
|
|
85
|
-
obj['ntn_provider'] = _ApiClient["default"].convertToType(data['ntn_provider'], 'String');
|
|
86
|
-
}
|
|
87
|
-
if (data.hasOwnProperty('psid')) {
|
|
88
|
-
obj['psid'] = _ApiClient["default"].convertToType(data['psid'], 'String');
|
|
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
|
-
// validate the optional field `cumulative_billable_bytes`
|
|
115
|
-
} catch (err) {
|
|
116
|
-
_iterator.e(err);
|
|
117
|
-
} finally {
|
|
118
|
-
_iterator.f();
|
|
119
|
-
}
|
|
120
|
-
if (data['cumulative_billable_bytes']) {
|
|
121
|
-
// data not null
|
|
122
|
-
_CumulativeDataUsage["default"].validateJSON(data['cumulative_billable_bytes']);
|
|
123
|
-
}
|
|
124
|
-
// ensure the json data is a string
|
|
125
|
-
if (data['ntn_provider'] && !(typeof data['ntn_provider'] === 'string' || data['ntn_provider'] instanceof String)) {
|
|
126
|
-
throw new Error("Expected the field `ntn_provider` to be a primitive type in the JSON string but got " + data['ntn_provider']);
|
|
127
|
-
}
|
|
128
|
-
// ensure the json data is a string
|
|
129
|
-
if (data['psid'] && !(typeof data['psid'] === 'string' || data['psid'] instanceof String)) {
|
|
130
|
-
throw new Error("Expected the field `psid` to be a primitive type in the JSON string but got " + data['psid']);
|
|
131
|
-
}
|
|
132
|
-
return true;
|
|
133
|
-
}
|
|
134
|
-
}]);
|
|
135
|
-
}();
|
|
136
|
-
SatellitePlan.RequiredProperties = ["activated", "cumulative_billable_bytes", "ntn_provider", "psid"];
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Activation date of the satellite plan as Unix timestamp
|
|
140
|
-
* @member {Number} activated
|
|
141
|
-
*/
|
|
142
|
-
SatellitePlan.prototype['activated'] = undefined;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @member {module:model/CumulativeDataUsage} cumulative_billable_bytes
|
|
146
|
-
*/
|
|
147
|
-
SatellitePlan.prototype['cumulative_billable_bytes'] = undefined;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Time this plan information was last updated
|
|
151
|
-
* @member {Number} last_updated
|
|
152
|
-
*/
|
|
153
|
-
SatellitePlan.prototype['last_updated'] = undefined;
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Non-Terrestrial Network provider name
|
|
157
|
-
* @member {String} ntn_provider
|
|
158
|
-
*/
|
|
159
|
-
SatellitePlan.prototype['ntn_provider'] = undefined;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Provider-specific identifier for the satellite subscription
|
|
163
|
-
* @member {String} psid
|
|
164
|
-
*/
|
|
165
|
-
SatellitePlan.prototype['psid'] = undefined;
|
|
166
|
-
var _default = exports["default"] = SatellitePlan;
|