@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,131 @@
|
|
|
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 _Role = _interopRequireDefault(require("./Role"));
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
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); }
|
|
11
|
+
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; } } }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
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); } }
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
18
|
+
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); }
|
|
19
|
+
/**
|
|
20
|
+
* The ProjectMember model module.
|
|
21
|
+
* @module model/ProjectMember
|
|
22
|
+
* @version 1.0.4
|
|
23
|
+
*/
|
|
24
|
+
var ProjectMember = /*#__PURE__*/function () {
|
|
25
|
+
/**
|
|
26
|
+
* Constructs a new <code>ProjectMember</code>.
|
|
27
|
+
* @alias module:model/ProjectMember
|
|
28
|
+
* @param name {String}
|
|
29
|
+
* @param email {String} The email address of the project member. This property will only be populated if the viewer is an owner of the project.
|
|
30
|
+
* @param role {module:model/Role}
|
|
31
|
+
*/
|
|
32
|
+
function ProjectMember(name, email, role) {
|
|
33
|
+
_classCallCheck(this, ProjectMember);
|
|
34
|
+
ProjectMember.initialize(this, name, email, role);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Initializes the fields of this object.
|
|
39
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
40
|
+
* Only for internal use.
|
|
41
|
+
*/
|
|
42
|
+
_createClass(ProjectMember, null, [{
|
|
43
|
+
key: "initialize",
|
|
44
|
+
value: function initialize(obj, name, email, role) {
|
|
45
|
+
obj['name'] = name;
|
|
46
|
+
obj['email'] = email;
|
|
47
|
+
obj['role'] = role;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Constructs a <code>ProjectMember</code> from a plain JavaScript object, optionally creating a new instance.
|
|
52
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
53
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
54
|
+
* @param {module:model/ProjectMember} obj Optional instance to populate.
|
|
55
|
+
* @return {module:model/ProjectMember} The populated <code>ProjectMember</code> instance.
|
|
56
|
+
*/
|
|
57
|
+
}, {
|
|
58
|
+
key: "constructFromObject",
|
|
59
|
+
value: function constructFromObject(data, obj) {
|
|
60
|
+
if (data) {
|
|
61
|
+
obj = obj || new ProjectMember();
|
|
62
|
+
if (data.hasOwnProperty('name')) {
|
|
63
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
64
|
+
}
|
|
65
|
+
if (data.hasOwnProperty('email')) {
|
|
66
|
+
obj['email'] = _ApiClient["default"].convertToType(data['email'], 'String');
|
|
67
|
+
}
|
|
68
|
+
if (data.hasOwnProperty('role')) {
|
|
69
|
+
obj['role'] = _Role["default"].constructFromObject(data['role']);
|
|
70
|
+
}
|
|
71
|
+
} else if (data === null) {
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
return obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Validates the JSON data with respect to <code>ProjectMember</code>.
|
|
79
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
80
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>ProjectMember</code>.
|
|
81
|
+
*/
|
|
82
|
+
}, {
|
|
83
|
+
key: "validateJSON",
|
|
84
|
+
value: function validateJSON(data) {
|
|
85
|
+
// check to make sure all required properties are present in the JSON string
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(ProjectMember.RequiredProperties),
|
|
87
|
+
_step;
|
|
88
|
+
try {
|
|
89
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
90
|
+
var property = _step.value;
|
|
91
|
+
if (!data[property]) {
|
|
92
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
// ensure the json data is a string
|
|
96
|
+
} catch (err) {
|
|
97
|
+
_iterator.e(err);
|
|
98
|
+
} finally {
|
|
99
|
+
_iterator.f();
|
|
100
|
+
}
|
|
101
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
103
|
+
}
|
|
104
|
+
// ensure the json data is a string
|
|
105
|
+
if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) {
|
|
106
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']);
|
|
107
|
+
}
|
|
108
|
+
return true;
|
|
109
|
+
}
|
|
110
|
+
}]);
|
|
111
|
+
return ProjectMember;
|
|
112
|
+
}();
|
|
113
|
+
ProjectMember.RequiredProperties = ["name", "email", "role"];
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @member {String} name
|
|
117
|
+
*/
|
|
118
|
+
ProjectMember.prototype['name'] = undefined;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* The email address of the project member. This property will only be populated if the viewer is an owner of the project.
|
|
122
|
+
* @member {String} email
|
|
123
|
+
*/
|
|
124
|
+
ProjectMember.prototype['email'] = undefined;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @member {module:model/Role} role
|
|
128
|
+
*/
|
|
129
|
+
ProjectMember.prototype['role'] = undefined;
|
|
130
|
+
var _default = ProjectMember;
|
|
131
|
+
exports["default"] = _default;
|
|
@@ -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 Proxy model module.
|
|
17
|
+
* @module model/Proxy
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var Proxy = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>Proxy</code>.
|
|
23
|
+
* Route settings specific to Proxy routes.
|
|
24
|
+
* @alias module:model/Proxy
|
|
25
|
+
*/
|
|
26
|
+
function Proxy() {
|
|
27
|
+
_classCallCheck(this, Proxy);
|
|
28
|
+
Proxy.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(Proxy, null, [{
|
|
37
|
+
key: "initialize",
|
|
38
|
+
value: function initialize(obj) {}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a <code>Proxy</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/Proxy} obj Optional instance to populate.
|
|
45
|
+
* @return {module:model/Proxy} The populated <code>Proxy</code> instance.
|
|
46
|
+
*/
|
|
47
|
+
}, {
|
|
48
|
+
key: "constructFromObject",
|
|
49
|
+
value: function constructFromObject(data, obj) {
|
|
50
|
+
if (data) {
|
|
51
|
+
obj = obj || new Proxy();
|
|
52
|
+
if (data.hasOwnProperty('fleets')) {
|
|
53
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
54
|
+
}
|
|
55
|
+
if (data.hasOwnProperty('url')) {
|
|
56
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
57
|
+
}
|
|
58
|
+
if (data.hasOwnProperty('alias')) {
|
|
59
|
+
obj['alias'] = _ApiClient["default"].convertToType(data['alias'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('http_headers')) {
|
|
62
|
+
obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
|
|
63
|
+
'String': 'String'
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('timeout')) {
|
|
67
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
68
|
+
}
|
|
69
|
+
} else if (data === null) {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
return obj;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Validates the JSON data with respect to <code>Proxy</code>.
|
|
77
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
78
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Proxy</code>.
|
|
79
|
+
*/
|
|
80
|
+
}, {
|
|
81
|
+
key: "validateJSON",
|
|
82
|
+
value: function validateJSON(data) {
|
|
83
|
+
// ensure the json data is an array
|
|
84
|
+
if (!Array.isArray(data['fleets'])) {
|
|
85
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
86
|
+
}
|
|
87
|
+
// ensure the json data is a string
|
|
88
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
89
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
90
|
+
}
|
|
91
|
+
// ensure the json data is a string
|
|
92
|
+
if (data['alias'] && !(typeof data['alias'] === 'string' || data['alias'] instanceof String)) {
|
|
93
|
+
throw new Error("Expected the field `alias` to be a primitive type in the JSON string but got " + data['alias']);
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}]);
|
|
98
|
+
return Proxy;
|
|
99
|
+
}();
|
|
100
|
+
/**
|
|
101
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
102
|
+
* @member {Array.<String>} fleets
|
|
103
|
+
*/
|
|
104
|
+
Proxy.prototype['fleets'] = undefined;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @member {String} url
|
|
108
|
+
*/
|
|
109
|
+
Proxy.prototype['url'] = undefined;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @member {String} alias
|
|
113
|
+
*/
|
|
114
|
+
Proxy.prototype['alias'] = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @member {Object.<String, String>} http_headers
|
|
118
|
+
*/
|
|
119
|
+
Proxy.prototype['http_headers'] = undefined;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Timeout in seconds for each request
|
|
123
|
+
* @member {Number} timeout
|
|
124
|
+
* @default 15
|
|
125
|
+
*/
|
|
126
|
+
Proxy.prototype['timeout'] = 15;
|
|
127
|
+
var _default = Proxy;
|
|
128
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,106 @@
|
|
|
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 PutDeviceFleetsRequest model module.
|
|
20
|
+
* @module model/PutDeviceFleetsRequest
|
|
21
|
+
* @version 1.0.4
|
|
22
|
+
*/
|
|
23
|
+
var PutDeviceFleetsRequest = /*#__PURE__*/function () {
|
|
24
|
+
/**
|
|
25
|
+
* Constructs a new <code>PutDeviceFleetsRequest</code>.
|
|
26
|
+
* @alias module:model/PutDeviceFleetsRequest
|
|
27
|
+
* @param fleetUids {Array.<String>} The fleetUIDs to add to the device.
|
|
28
|
+
*/
|
|
29
|
+
function PutDeviceFleetsRequest(fleetUids) {
|
|
30
|
+
_classCallCheck(this, PutDeviceFleetsRequest);
|
|
31
|
+
PutDeviceFleetsRequest.initialize(this, fleetUids);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Initializes the fields of this object.
|
|
36
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
37
|
+
* Only for internal use.
|
|
38
|
+
*/
|
|
39
|
+
_createClass(PutDeviceFleetsRequest, null, [{
|
|
40
|
+
key: "initialize",
|
|
41
|
+
value: function initialize(obj, fleetUids) {
|
|
42
|
+
obj['fleet_uids'] = fleetUids;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Constructs a <code>PutDeviceFleetsRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
47
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
48
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
49
|
+
* @param {module:model/PutDeviceFleetsRequest} obj Optional instance to populate.
|
|
50
|
+
* @return {module:model/PutDeviceFleetsRequest} The populated <code>PutDeviceFleetsRequest</code> instance.
|
|
51
|
+
*/
|
|
52
|
+
}, {
|
|
53
|
+
key: "constructFromObject",
|
|
54
|
+
value: function constructFromObject(data, obj) {
|
|
55
|
+
if (data) {
|
|
56
|
+
obj = obj || new PutDeviceFleetsRequest();
|
|
57
|
+
if (data.hasOwnProperty('fleet_uids')) {
|
|
58
|
+
obj['fleet_uids'] = _ApiClient["default"].convertToType(data['fleet_uids'], ['String']);
|
|
59
|
+
}
|
|
60
|
+
} else if (data === null) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
return obj;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Validates the JSON data with respect to <code>PutDeviceFleetsRequest</code>.
|
|
68
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
69
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>PutDeviceFleetsRequest</code>.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "validateJSON",
|
|
73
|
+
value: function validateJSON(data) {
|
|
74
|
+
// check to make sure all required properties are present in the JSON string
|
|
75
|
+
var _iterator = _createForOfIteratorHelper(PutDeviceFleetsRequest.RequiredProperties),
|
|
76
|
+
_step;
|
|
77
|
+
try {
|
|
78
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
79
|
+
var property = _step.value;
|
|
80
|
+
if (!data[property]) {
|
|
81
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
// ensure the json data is an array
|
|
85
|
+
} catch (err) {
|
|
86
|
+
_iterator.e(err);
|
|
87
|
+
} finally {
|
|
88
|
+
_iterator.f();
|
|
89
|
+
}
|
|
90
|
+
if (!Array.isArray(data['fleet_uids'])) {
|
|
91
|
+
throw new Error("Expected the field `fleet_uids` to be an array in the JSON data but got " + data['fleet_uids']);
|
|
92
|
+
}
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
}]);
|
|
96
|
+
return PutDeviceFleetsRequest;
|
|
97
|
+
}();
|
|
98
|
+
PutDeviceFleetsRequest.RequiredProperties = ["fleet_uids"];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The fleetUIDs to add to the device.
|
|
102
|
+
* @member {Array.<String>} fleet_uids
|
|
103
|
+
*/
|
|
104
|
+
PutDeviceFleetsRequest.prototype['fleet_uids'] = undefined;
|
|
105
|
+
var _default = PutDeviceFleetsRequest;
|
|
106
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,130 @@
|
|
|
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 Radresponder model module.
|
|
17
|
+
* @module model/Radresponder
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var Radresponder = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>Radresponder</code>.
|
|
23
|
+
* Route settings specific to RadResponder routes. Only used for RadResponder route types
|
|
24
|
+
* @alias module:model/Radresponder
|
|
25
|
+
*/
|
|
26
|
+
function Radresponder() {
|
|
27
|
+
_classCallCheck(this, Radresponder);
|
|
28
|
+
Radresponder.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(Radresponder, null, [{
|
|
37
|
+
key: "initialize",
|
|
38
|
+
value: function initialize(obj) {}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Constructs a <code>Radresponder</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/Radresponder} obj Optional instance to populate.
|
|
45
|
+
* @return {module:model/Radresponder} The populated <code>Radresponder</code> instance.
|
|
46
|
+
*/
|
|
47
|
+
}, {
|
|
48
|
+
key: "constructFromObject",
|
|
49
|
+
value: function constructFromObject(data, obj) {
|
|
50
|
+
if (data) {
|
|
51
|
+
obj = obj || new Radresponder();
|
|
52
|
+
if (data.hasOwnProperty('fleets')) {
|
|
53
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
54
|
+
}
|
|
55
|
+
if (data.hasOwnProperty('test_api')) {
|
|
56
|
+
obj['test_api'] = _ApiClient["default"].convertToType(data['test_api'], 'Boolean');
|
|
57
|
+
}
|
|
58
|
+
if (data.hasOwnProperty('data_feed_key')) {
|
|
59
|
+
obj['data_feed_key'] = _ApiClient["default"].convertToType(data['data_feed_key'], 'String');
|
|
60
|
+
}
|
|
61
|
+
if (data.hasOwnProperty('client_id')) {
|
|
62
|
+
obj['client_id'] = _ApiClient["default"].convertToType(data['client_id'], 'String');
|
|
63
|
+
}
|
|
64
|
+
if (data.hasOwnProperty('client_secret')) {
|
|
65
|
+
obj['client_secret'] = _ApiClient["default"].convertToType(data['client_secret'], 'String');
|
|
66
|
+
}
|
|
67
|
+
} else if (data === null) {
|
|
68
|
+
return null;
|
|
69
|
+
}
|
|
70
|
+
return obj;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Validates the JSON data with respect to <code>Radresponder</code>.
|
|
75
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
76
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Radresponder</code>.
|
|
77
|
+
*/
|
|
78
|
+
}, {
|
|
79
|
+
key: "validateJSON",
|
|
80
|
+
value: function validateJSON(data) {
|
|
81
|
+
// ensure the json data is an array
|
|
82
|
+
if (!Array.isArray(data['fleets'])) {
|
|
83
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
84
|
+
}
|
|
85
|
+
// ensure the json data is a string
|
|
86
|
+
if (data['data_feed_key'] && !(typeof data['data_feed_key'] === 'string' || data['data_feed_key'] instanceof String)) {
|
|
87
|
+
throw new Error("Expected the field `data_feed_key` to be a primitive type in the JSON string but got " + data['data_feed_key']);
|
|
88
|
+
}
|
|
89
|
+
// ensure the json data is a string
|
|
90
|
+
if (data['client_id'] && !(typeof data['client_id'] === 'string' || data['client_id'] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `client_id` to be a primitive type in the JSON string but got " + data['client_id']);
|
|
92
|
+
}
|
|
93
|
+
// ensure the json data is a string
|
|
94
|
+
if (data['client_secret'] && !(typeof data['client_secret'] === 'string' || data['client_secret'] instanceof String)) {
|
|
95
|
+
throw new Error("Expected the field `client_secret` to be a primitive type in the JSON string but got " + data['client_secret']);
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
}]);
|
|
100
|
+
return Radresponder;
|
|
101
|
+
}();
|
|
102
|
+
/**
|
|
103
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
104
|
+
* @member {Array.<String>} fleets
|
|
105
|
+
*/
|
|
106
|
+
Radresponder.prototype['fleets'] = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @member {Boolean} test_api
|
|
110
|
+
* @default false
|
|
111
|
+
*/
|
|
112
|
+
Radresponder.prototype['test_api'] = false;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @member {String} data_feed_key
|
|
116
|
+
*/
|
|
117
|
+
Radresponder.prototype['data_feed_key'] = undefined;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* @member {String} client_id
|
|
121
|
+
*/
|
|
122
|
+
Radresponder.prototype['client_id'] = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Client Secret is input only, will not display on GET operations
|
|
126
|
+
* @member {String} client_secret
|
|
127
|
+
*/
|
|
128
|
+
Radresponder.prototype['client_secret'] = undefined;
|
|
129
|
+
var _default = Radresponder;
|
|
130
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
15
|
+
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); }
|
|
16
|
+
/**
|
|
17
|
+
* Enum class Role.
|
|
18
|
+
* @enum {}
|
|
19
|
+
* @readonly
|
|
20
|
+
*/
|
|
21
|
+
var Role = /*#__PURE__*/function () {
|
|
22
|
+
function Role() {
|
|
23
|
+
_classCallCheck(this, Role);
|
|
24
|
+
_defineProperty(this, "owner", "owner");
|
|
25
|
+
_defineProperty(this, "developer", "developer");
|
|
26
|
+
_defineProperty(this, "viewer", "viewer");
|
|
27
|
+
_defineProperty(this, "null", "null");
|
|
28
|
+
}
|
|
29
|
+
_createClass(Role, null, [{
|
|
30
|
+
key: "constructFromObject",
|
|
31
|
+
value:
|
|
32
|
+
/**
|
|
33
|
+
* Returns a <code>Role</code> enum value from a Javascript object name.
|
|
34
|
+
* @param {Object} data The plain JavaScript object containing the name of the enum value.
|
|
35
|
+
* @return {module:model/Role} The enum <code>Role</code> value.
|
|
36
|
+
*/
|
|
37
|
+
function constructFromObject(object) {
|
|
38
|
+
return object;
|
|
39
|
+
}
|
|
40
|
+
}]);
|
|
41
|
+
return Role;
|
|
42
|
+
}();
|
|
43
|
+
exports["default"] = Role;
|