@blues-inc/notehub-js 1.0.4
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 +297 -0
- package/dist/ApiClient.js +699 -0
- package/dist/api/AuthorizationApi.js +74 -0
- package/dist/api/BillingAccountApi.js +68 -0
- package/dist/api/DeviceApi.js +784 -0
- package/dist/api/DevicesApi.js +293 -0
- package/dist/api/EnvironmentVariablesApi.js +567 -0
- package/dist/api/EventApi.js +284 -0
- package/dist/api/FilesApi.js +193 -0
- package/dist/api/FleetApi.js +715 -0
- package/dist/api/NotesApi.js +435 -0
- package/dist/api/ProductApi.js +163 -0
- package/dist/api/ProjectApi.js +716 -0
- package/dist/api/RouteApi.js +266 -0
- package/dist/index.js +566 -0
- package/dist/model/Aws.js +233 -0
- package/dist/model/Azure.js +166 -0
- package/dist/model/BillingAccount.js +130 -0
- package/dist/model/BillingAccountRole.js +42 -0
- package/dist/model/Body.js +78 -0
- package/dist/model/Contact.js +118 -0
- package/dist/model/CreateFleetRequest.js +83 -0
- package/dist/model/CreateProductRequest.js +142 -0
- package/dist/model/CreateProjectRequest.js +119 -0
- package/dist/model/DFUEnv.js +97 -0
- package/dist/model/DFUState.js +276 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +106 -0
- package/dist/model/Device.js +267 -0
- package/dist/model/DeviceSession.js +537 -0
- package/dist/model/DeviceTowerInfo.js +102 -0
- package/dist/model/DeviceUsage.js +150 -0
- package/dist/model/EnvironmentVariables.js +103 -0
- package/dist/model/Error.js +164 -0
- package/dist/model/Event.js +676 -0
- package/dist/model/Fleet.js +129 -0
- package/dist/model/GetBillingAccounts200Response.js +103 -0
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +117 -0
- package/dist/model/GetDeviceHealthLog200Response.js +123 -0
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +125 -0
- package/dist/model/GetDeviceLatest200Response.js +104 -0
- package/dist/model/GetDevicePublicKey200Response.js +119 -0
- package/dist/model/GetDeviceSessions200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200Response.js +133 -0
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +94 -0
- package/dist/model/GetProjectDevices200Response.js +133 -0
- package/dist/model/GetProjectEvents200Response.js +149 -0
- package/dist/model/GetProjectEventsByCursor200Response.js +149 -0
- package/dist/model/GetProjectFleets200Response.js +123 -0
- package/dist/model/GetProjectMembers200Response.js +123 -0
- package/dist/model/GetProjectProducts200Response.js +103 -0
- package/dist/model/GetProjects200Response.js +103 -0
- package/dist/model/Google.js +142 -0
- package/dist/model/HandleNoteChanges200Response.js +97 -0
- package/dist/model/HandleNoteGet200Response.js +101 -0
- package/dist/model/HandleNoteSignal200Response.js +79 -0
- package/dist/model/HandleNotefileChanges200Response.js +97 -0
- package/dist/model/HandleNotefileChangesPending200Response.js +106 -0
- package/dist/model/HandleNotefileDeleteRequest.js +83 -0
- package/dist/model/Http.js +163 -0
- package/dist/model/HttpFilter.js +128 -0
- package/dist/model/HttpTransform.js +139 -0
- package/dist/model/Location.js +167 -0
- package/dist/model/Login200Response.js +82 -0
- package/dist/model/LoginRequest.js +94 -0
- package/dist/model/Mqtt.js +240 -0
- package/dist/model/Note.js +90 -0
- package/dist/model/Product.js +141 -0
- package/dist/model/Project.js +165 -0
- package/dist/model/ProjectMember.js +131 -0
- package/dist/model/Proxy.js +128 -0
- package/dist/model/PutDeviceFleetsRequest.js +106 -0
- package/dist/model/Radresponder.js +130 -0
- package/dist/model/Role.js +43 -0
- package/dist/model/Route.js +245 -0
- package/dist/model/RouteSchema.js +427 -0
- package/dist/model/Snowflake.js +185 -0
- package/dist/model/SnowflakeTransform.js +97 -0
- package/dist/model/Thingworx.js +154 -0
- package/dist/model/TowerLocation.js +204 -0
- package/dist/model/Twilio.js +181 -0
- package/dist/model/UpdateFleetRequest.js +109 -0
- package/dist/model/UserDbRoute.js +131 -0
- package/package.json +49 -0
|
@@ -0,0 +1,128 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
/**
|
|
16
|
+
* The HttpFilter model module.
|
|
17
|
+
* @module model/HttpFilter
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HttpFilter = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HttpFilter</code>.
|
|
23
|
+
* Route filtering settings
|
|
24
|
+
* @alias module:model/HttpFilter
|
|
25
|
+
*/
|
|
26
|
+
function HttpFilter() {
|
|
27
|
+
_classCallCheck(this, HttpFilter);
|
|
28
|
+
HttpFilter.initialize(this);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Initializes the fields of this object.
|
|
33
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
34
|
+
* Only for internal use.
|
|
35
|
+
*/
|
|
36
|
+
_createClass(HttpFilter, null, [{
|
|
37
|
+
key: "initialize",
|
|
38
|
+
value: function initialize(obj) {}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a <code>HttpFilter</code> from a plain JavaScript object, optionally creating a new instance.
|
|
42
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
43
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
44
|
+
* @param {module:model/HttpFilter} obj Optional instance to populate.
|
|
45
|
+
* @return {module:model/HttpFilter} The populated <code>HttpFilter</code> instance.
|
|
46
|
+
*/
|
|
47
|
+
}, {
|
|
48
|
+
key: "constructFromObject",
|
|
49
|
+
value: function constructFromObject(data, obj) {
|
|
50
|
+
if (data) {
|
|
51
|
+
obj = obj || new HttpFilter();
|
|
52
|
+
if (data.hasOwnProperty('type')) {
|
|
53
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
54
|
+
}
|
|
55
|
+
if (data.hasOwnProperty('system_notefiles')) {
|
|
56
|
+
obj['system_notefiles'] = _ApiClient["default"].convertToType(data['system_notefiles'], 'Boolean');
|
|
57
|
+
}
|
|
58
|
+
if (data.hasOwnProperty('files')) {
|
|
59
|
+
obj['files'] = _ApiClient["default"].convertToType(data['files'], ['String']);
|
|
60
|
+
}
|
|
61
|
+
} else if (data === null) {
|
|
62
|
+
return null;
|
|
63
|
+
}
|
|
64
|
+
return obj;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Validates the JSON data with respect to <code>HttpFilter</code>.
|
|
69
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
70
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>HttpFilter</code>.
|
|
71
|
+
*/
|
|
72
|
+
}, {
|
|
73
|
+
key: "validateJSON",
|
|
74
|
+
value: function validateJSON(data) {
|
|
75
|
+
// ensure the json data is a string
|
|
76
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
77
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
78
|
+
}
|
|
79
|
+
// ensure the json data is an array
|
|
80
|
+
if (!Array.isArray(data['files'])) {
|
|
81
|
+
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data['files']);
|
|
82
|
+
}
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
}]);
|
|
86
|
+
return HttpFilter;
|
|
87
|
+
}();
|
|
88
|
+
/**
|
|
89
|
+
* What notefiles this route applies to.
|
|
90
|
+
* @member {module:model/HttpFilter.TypeEnum} type
|
|
91
|
+
*/
|
|
92
|
+
HttpFilter.prototype['type'] = undefined;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Whether system notefiles should be affected by this route
|
|
96
|
+
* @member {Boolean} system_notefiles
|
|
97
|
+
*/
|
|
98
|
+
HttpFilter.prototype['system_notefiles'] = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @member {Array.<String>} files
|
|
102
|
+
*/
|
|
103
|
+
HttpFilter.prototype['files'] = undefined;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Allowed values for the <code>type</code> property.
|
|
107
|
+
* @enum {String}
|
|
108
|
+
* @readonly
|
|
109
|
+
*/
|
|
110
|
+
HttpFilter['TypeEnum'] = {
|
|
111
|
+
/**
|
|
112
|
+
* value: "all"
|
|
113
|
+
* @const
|
|
114
|
+
*/
|
|
115
|
+
"all": "all",
|
|
116
|
+
/**
|
|
117
|
+
* value: "include"
|
|
118
|
+
* @const
|
|
119
|
+
*/
|
|
120
|
+
"include": "include",
|
|
121
|
+
/**
|
|
122
|
+
* value: "exclude"
|
|
123
|
+
* @const
|
|
124
|
+
*/
|
|
125
|
+
"exclude": "exclude"
|
|
126
|
+
};
|
|
127
|
+
var _default = HttpFilter;
|
|
128
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,139 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
/**
|
|
16
|
+
* The HttpTransform model module.
|
|
17
|
+
* @module model/HttpTransform
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HttpTransform = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HttpTransform</code>.
|
|
23
|
+
* @alias module:model/HttpTransform
|
|
24
|
+
*/
|
|
25
|
+
function HttpTransform() {
|
|
26
|
+
_classCallCheck(this, HttpTransform);
|
|
27
|
+
HttpTransform.initialize(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes the fields of this object.
|
|
32
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
+
* Only for internal use.
|
|
34
|
+
*/
|
|
35
|
+
_createClass(HttpTransform, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>HttpTransform</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
+
* @param {module:model/HttpTransform} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/HttpTransform} The populated <code>HttpTransform</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new HttpTransform();
|
|
51
|
+
if (data.hasOwnProperty('format')) {
|
|
52
|
+
obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String');
|
|
53
|
+
}
|
|
54
|
+
if (data.hasOwnProperty('jsonata')) {
|
|
55
|
+
obj['jsonata'] = _ApiClient["default"].convertToType(data['jsonata'], 'String');
|
|
56
|
+
}
|
|
57
|
+
} else if (data === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return obj;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Validates the JSON data with respect to <code>HttpTransform</code>.
|
|
65
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
66
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>HttpTransform</code>.
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "validateJSON",
|
|
70
|
+
value: function validateJSON(data) {
|
|
71
|
+
// ensure the json data is a string
|
|
72
|
+
if (data['format'] && !(typeof data['format'] === 'string' || data['format'] instanceof String)) {
|
|
73
|
+
throw new Error("Expected the field `format` to be a primitive type in the JSON string but got " + data['format']);
|
|
74
|
+
}
|
|
75
|
+
// ensure the json data is a string
|
|
76
|
+
if (data['jsonata'] && !(typeof data['jsonata'] === 'string' || data['jsonata'] instanceof String)) {
|
|
77
|
+
throw new Error("Expected the field `jsonata` to be a primitive type in the JSON string but got " + data['jsonata']);
|
|
78
|
+
}
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
}]);
|
|
82
|
+
return HttpTransform;
|
|
83
|
+
}();
|
|
84
|
+
/**
|
|
85
|
+
* Data transformation to apply. Options of \"\" for none, \"bridge\" for Azure IoT, \"jsonata\" for JSONata expression, or \"flatten\", \"simple\", \"body\" or \"payload\"
|
|
86
|
+
* @member {module:model/HttpTransform.FormatEnum} format
|
|
87
|
+
*/
|
|
88
|
+
HttpTransform.prototype['format'] = undefined;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* JSONata transformation, if JSONata
|
|
92
|
+
* @member {String} jsonata
|
|
93
|
+
*/
|
|
94
|
+
HttpTransform.prototype['jsonata'] = undefined;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Allowed values for the <code>format</code> property.
|
|
98
|
+
* @enum {String}
|
|
99
|
+
* @readonly
|
|
100
|
+
*/
|
|
101
|
+
HttpTransform['FormatEnum'] = {
|
|
102
|
+
/**
|
|
103
|
+
* value: ""
|
|
104
|
+
* @const
|
|
105
|
+
*/
|
|
106
|
+
"empty": "",
|
|
107
|
+
/**
|
|
108
|
+
* value: "bridge"
|
|
109
|
+
* @const
|
|
110
|
+
*/
|
|
111
|
+
"bridge": "bridge",
|
|
112
|
+
/**
|
|
113
|
+
* value: "jsonata"
|
|
114
|
+
* @const
|
|
115
|
+
*/
|
|
116
|
+
"jsonata": "jsonata",
|
|
117
|
+
/**
|
|
118
|
+
* value: "flatten"
|
|
119
|
+
* @const
|
|
120
|
+
*/
|
|
121
|
+
"flatten": "flatten",
|
|
122
|
+
/**
|
|
123
|
+
* value: "simple"
|
|
124
|
+
* @const
|
|
125
|
+
*/
|
|
126
|
+
"simple": "simple",
|
|
127
|
+
/**
|
|
128
|
+
* value: "body"
|
|
129
|
+
* @const
|
|
130
|
+
*/
|
|
131
|
+
"body": "body",
|
|
132
|
+
/**
|
|
133
|
+
* value: "payload"
|
|
134
|
+
* @const
|
|
135
|
+
*/
|
|
136
|
+
"payload": "payload"
|
|
137
|
+
};
|
|
138
|
+
var _default = HttpTransform;
|
|
139
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,167 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, 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 normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
11
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
12
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
13
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
/**
|
|
19
|
+
* The Location model module.
|
|
20
|
+
* @module model/Location
|
|
21
|
+
* @version 1.0.4
|
|
22
|
+
*/
|
|
23
|
+
var Location = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>Location</code>.
|
|
26
|
+
* @alias module:model/Location
|
|
27
|
+
* @param when {String}
|
|
28
|
+
* @param name {String}
|
|
29
|
+
* @param country {String}
|
|
30
|
+
* @param timezone {String}
|
|
31
|
+
* @param latitude {Number}
|
|
32
|
+
* @param longitude {Number}
|
|
33
|
+
*/
|
|
34
|
+
function Location(when, name, country, timezone, latitude, longitude) {
|
|
35
|
+
_classCallCheck(this, Location);
|
|
36
|
+
Location.initialize(this, when, name, country, timezone, latitude, longitude);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Initializes the fields of this object.
|
|
41
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
42
|
+
* Only for internal use.
|
|
43
|
+
*/
|
|
44
|
+
_createClass(Location, null, [{
|
|
45
|
+
key: "initialize",
|
|
46
|
+
value: function initialize(obj, when, name, country, timezone, latitude, longitude) {
|
|
47
|
+
obj['when'] = when;
|
|
48
|
+
obj['name'] = name;
|
|
49
|
+
obj['country'] = country;
|
|
50
|
+
obj['timezone'] = timezone;
|
|
51
|
+
obj['latitude'] = latitude;
|
|
52
|
+
obj['longitude'] = longitude;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Constructs a <code>Location</code> from a plain JavaScript object, optionally creating a new instance.
|
|
57
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
58
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
59
|
+
* @param {module:model/Location} obj Optional instance to populate.
|
|
60
|
+
* @return {module:model/Location} The populated <code>Location</code> instance.
|
|
61
|
+
*/
|
|
62
|
+
}, {
|
|
63
|
+
key: "constructFromObject",
|
|
64
|
+
value: function constructFromObject(data, obj) {
|
|
65
|
+
if (data) {
|
|
66
|
+
obj = obj || new Location();
|
|
67
|
+
if (data.hasOwnProperty('when')) {
|
|
68
|
+
obj['when'] = _ApiClient["default"].convertToType(data['when'], 'String');
|
|
69
|
+
}
|
|
70
|
+
if (data.hasOwnProperty('name')) {
|
|
71
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('country')) {
|
|
74
|
+
obj['country'] = _ApiClient["default"].convertToType(data['country'], 'String');
|
|
75
|
+
}
|
|
76
|
+
if (data.hasOwnProperty('timezone')) {
|
|
77
|
+
obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String');
|
|
78
|
+
}
|
|
79
|
+
if (data.hasOwnProperty('latitude')) {
|
|
80
|
+
obj['latitude'] = _ApiClient["default"].convertToType(data['latitude'], 'Number');
|
|
81
|
+
}
|
|
82
|
+
if (data.hasOwnProperty('longitude')) {
|
|
83
|
+
obj['longitude'] = _ApiClient["default"].convertToType(data['longitude'], 'Number');
|
|
84
|
+
}
|
|
85
|
+
} else if (data === null) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
return obj;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Validates the JSON data with respect to <code>Location</code>.
|
|
93
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
94
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Location</code>.
|
|
95
|
+
*/
|
|
96
|
+
}, {
|
|
97
|
+
key: "validateJSON",
|
|
98
|
+
value: function validateJSON(data) {
|
|
99
|
+
// check to make sure all required properties are present in the JSON string
|
|
100
|
+
var _iterator = _createForOfIteratorHelper(Location.RequiredProperties),
|
|
101
|
+
_step;
|
|
102
|
+
try {
|
|
103
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
104
|
+
var property = _step.value;
|
|
105
|
+
if (!data[property]) {
|
|
106
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
// ensure the json data is a string
|
|
110
|
+
} catch (err) {
|
|
111
|
+
_iterator.e(err);
|
|
112
|
+
} finally {
|
|
113
|
+
_iterator.f();
|
|
114
|
+
}
|
|
115
|
+
if (data['when'] && !(typeof data['when'] === 'string' || data['when'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `when` to be a primitive type in the JSON string but got " + data['when']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
121
|
+
}
|
|
122
|
+
// ensure the json data is a string
|
|
123
|
+
if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) {
|
|
124
|
+
throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']);
|
|
125
|
+
}
|
|
126
|
+
// ensure the json data is a string
|
|
127
|
+
if (data['timezone'] && !(typeof data['timezone'] === 'string' || data['timezone'] instanceof String)) {
|
|
128
|
+
throw new Error("Expected the field `timezone` to be a primitive type in the JSON string but got " + data['timezone']);
|
|
129
|
+
}
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
}]);
|
|
133
|
+
return Location;
|
|
134
|
+
}();
|
|
135
|
+
Location.RequiredProperties = ["when", "name", "country", "timezone", "latitude", "longitude"];
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @member {String} when
|
|
139
|
+
*/
|
|
140
|
+
Location.prototype['when'] = undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @member {String} name
|
|
144
|
+
*/
|
|
145
|
+
Location.prototype['name'] = undefined;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @member {String} country
|
|
149
|
+
*/
|
|
150
|
+
Location.prototype['country'] = undefined;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* @member {String} timezone
|
|
154
|
+
*/
|
|
155
|
+
Location.prototype['timezone'] = undefined;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* @member {Number} latitude
|
|
159
|
+
*/
|
|
160
|
+
Location.prototype['latitude'] = undefined;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* @member {Number} longitude
|
|
164
|
+
*/
|
|
165
|
+
Location.prototype['longitude'] = undefined;
|
|
166
|
+
var _default = Location;
|
|
167
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,82 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
/**
|
|
16
|
+
* The Login200Response model module.
|
|
17
|
+
* @module model/Login200Response
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var Login200Response = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>Login200Response</code>.
|
|
23
|
+
* @alias module:model/Login200Response
|
|
24
|
+
*/
|
|
25
|
+
function Login200Response() {
|
|
26
|
+
_classCallCheck(this, Login200Response);
|
|
27
|
+
Login200Response.initialize(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes the fields of this object.
|
|
32
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
+
* Only for internal use.
|
|
34
|
+
*/
|
|
35
|
+
_createClass(Login200Response, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>Login200Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
+
* @param {module:model/Login200Response} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/Login200Response} The populated <code>Login200Response</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new Login200Response();
|
|
51
|
+
if (data.hasOwnProperty('session_token')) {
|
|
52
|
+
obj['session_token'] = _ApiClient["default"].convertToType(data['session_token'], 'String');
|
|
53
|
+
}
|
|
54
|
+
} else if (data === null) {
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
return obj;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Validates the JSON data with respect to <code>Login200Response</code>.
|
|
62
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
63
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Login200Response</code>.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "validateJSON",
|
|
67
|
+
value: function validateJSON(data) {
|
|
68
|
+
// ensure the json data is a string
|
|
69
|
+
if (data['session_token'] && !(typeof data['session_token'] === 'string' || data['session_token'] instanceof String)) {
|
|
70
|
+
throw new Error("Expected the field `session_token` to be a primitive type in the JSON string but got " + data['session_token']);
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
return Login200Response;
|
|
76
|
+
}();
|
|
77
|
+
/**
|
|
78
|
+
* @member {String} session_token
|
|
79
|
+
*/
|
|
80
|
+
Login200Response.prototype['session_token'] = undefined;
|
|
81
|
+
var _default = Login200Response;
|
|
82
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
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(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
9
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
11
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
/**
|
|
16
|
+
* The LoginRequest model module.
|
|
17
|
+
* @module model/LoginRequest
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var LoginRequest = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>LoginRequest</code>.
|
|
23
|
+
* @alias module:model/LoginRequest
|
|
24
|
+
*/
|
|
25
|
+
function LoginRequest() {
|
|
26
|
+
_classCallCheck(this, LoginRequest);
|
|
27
|
+
LoginRequest.initialize(this);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Initializes the fields of this object.
|
|
32
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
33
|
+
* Only for internal use.
|
|
34
|
+
*/
|
|
35
|
+
_createClass(LoginRequest, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>LoginRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
41
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
42
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
43
|
+
* @param {module:model/LoginRequest} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/LoginRequest} The populated <code>LoginRequest</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new LoginRequest();
|
|
51
|
+
if (data.hasOwnProperty('username')) {
|
|
52
|
+
obj['username'] = _ApiClient["default"].convertToType(data['username'], 'String');
|
|
53
|
+
}
|
|
54
|
+
if (data.hasOwnProperty('password')) {
|
|
55
|
+
obj['password'] = _ApiClient["default"].convertToType(data['password'], 'String');
|
|
56
|
+
}
|
|
57
|
+
} else if (data === null) {
|
|
58
|
+
return null;
|
|
59
|
+
}
|
|
60
|
+
return obj;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Validates the JSON data with respect to <code>LoginRequest</code>.
|
|
65
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
66
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>LoginRequest</code>.
|
|
67
|
+
*/
|
|
68
|
+
}, {
|
|
69
|
+
key: "validateJSON",
|
|
70
|
+
value: function validateJSON(data) {
|
|
71
|
+
// ensure the json data is a string
|
|
72
|
+
if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) {
|
|
73
|
+
throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']);
|
|
74
|
+
}
|
|
75
|
+
// ensure the json data is a string
|
|
76
|
+
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
77
|
+
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
78
|
+
}
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
}]);
|
|
82
|
+
return LoginRequest;
|
|
83
|
+
}();
|
|
84
|
+
/**
|
|
85
|
+
* @member {String} username
|
|
86
|
+
*/
|
|
87
|
+
LoginRequest.prototype['username'] = undefined;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @member {String} password
|
|
91
|
+
*/
|
|
92
|
+
LoginRequest.prototype['password'] = undefined;
|
|
93
|
+
var _default = LoginRequest;
|
|
94
|
+
exports["default"] = _default;
|