@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,101 @@
|
|
|
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 HandleNoteGet200Response model module.
|
|
17
|
+
* @module model/HandleNoteGet200Response
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HandleNoteGet200Response = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HandleNoteGet200Response</code>.
|
|
23
|
+
* @alias module:model/HandleNoteGet200Response
|
|
24
|
+
*/
|
|
25
|
+
function HandleNoteGet200Response() {
|
|
26
|
+
_classCallCheck(this, HandleNoteGet200Response);
|
|
27
|
+
HandleNoteGet200Response.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(HandleNoteGet200Response, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>HandleNoteGet200Response</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/HandleNoteGet200Response} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/HandleNoteGet200Response} The populated <code>HandleNoteGet200Response</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new HandleNoteGet200Response();
|
|
51
|
+
if (data.hasOwnProperty('body')) {
|
|
52
|
+
obj['body'] = _ApiClient["default"].convertToType(data['body'], Object);
|
|
53
|
+
}
|
|
54
|
+
if (data.hasOwnProperty('payload')) {
|
|
55
|
+
obj['payload'] = _ApiClient["default"].convertToType(data['payload'], 'String');
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty('time')) {
|
|
58
|
+
obj['time'] = _ApiClient["default"].convertToType(data['time'], 'Number');
|
|
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>HandleNoteGet200Response</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>HandleNoteGet200Response</code>.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "validateJSON",
|
|
73
|
+
value: function validateJSON(data) {
|
|
74
|
+
// ensure the json data is a string
|
|
75
|
+
if (data['payload'] && !(typeof data['payload'] === 'string' || data['payload'] instanceof String)) {
|
|
76
|
+
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data['payload']);
|
|
77
|
+
}
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
}]);
|
|
81
|
+
return HandleNoteGet200Response;
|
|
82
|
+
}();
|
|
83
|
+
/**
|
|
84
|
+
* The note body
|
|
85
|
+
* @member {Object} body
|
|
86
|
+
*/
|
|
87
|
+
HandleNoteGet200Response.prototype['body'] = undefined;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The note payload
|
|
91
|
+
* @member {String} payload
|
|
92
|
+
*/
|
|
93
|
+
HandleNoteGet200Response.prototype['payload'] = undefined;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* The time the Note was added to the Notecard or Notehub
|
|
97
|
+
* @member {Number} time
|
|
98
|
+
*/
|
|
99
|
+
HandleNoteGet200Response.prototype['time'] = undefined;
|
|
100
|
+
var _default = HandleNoteGet200Response;
|
|
101
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,79 @@
|
|
|
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 HandleNoteSignal200Response model module.
|
|
17
|
+
* @module model/HandleNoteSignal200Response
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HandleNoteSignal200Response = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HandleNoteSignal200Response</code>.
|
|
23
|
+
* @alias module:model/HandleNoteSignal200Response
|
|
24
|
+
*/
|
|
25
|
+
function HandleNoteSignal200Response() {
|
|
26
|
+
_classCallCheck(this, HandleNoteSignal200Response);
|
|
27
|
+
HandleNoteSignal200Response.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(HandleNoteSignal200Response, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>HandleNoteSignal200Response</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/HandleNoteSignal200Response} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/HandleNoteSignal200Response} The populated <code>HandleNoteSignal200Response</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new HandleNoteSignal200Response();
|
|
51
|
+
if (data.hasOwnProperty('connected')) {
|
|
52
|
+
obj['connected'] = _ApiClient["default"].convertToType(data['connected'], 'Boolean');
|
|
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>HandleNoteSignal200Response</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>HandleNoteSignal200Response</code>.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "validateJSON",
|
|
67
|
+
value: function validateJSON(data) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
}]);
|
|
71
|
+
return HandleNoteSignal200Response;
|
|
72
|
+
}();
|
|
73
|
+
/**
|
|
74
|
+
* true if the Notecard is connected to Notehub.
|
|
75
|
+
* @member {Boolean} connected
|
|
76
|
+
*/
|
|
77
|
+
HandleNoteSignal200Response.prototype['connected'] = undefined;
|
|
78
|
+
var _default = HandleNoteSignal200Response;
|
|
79
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,97 @@
|
|
|
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 HandleNotefileChanges200Response model module.
|
|
17
|
+
* @module model/HandleNotefileChanges200Response
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HandleNotefileChanges200Response</code>.
|
|
23
|
+
* @alias module:model/HandleNotefileChanges200Response
|
|
24
|
+
*/
|
|
25
|
+
function HandleNotefileChanges200Response() {
|
|
26
|
+
_classCallCheck(this, HandleNotefileChanges200Response);
|
|
27
|
+
HandleNotefileChanges200Response.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(HandleNotefileChanges200Response, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>HandleNotefileChanges200Response</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/HandleNotefileChanges200Response} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/HandleNotefileChanges200Response} The populated <code>HandleNotefileChanges200Response</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new HandleNotefileChanges200Response();
|
|
51
|
+
if (data.hasOwnProperty('total')) {
|
|
52
|
+
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
|
|
53
|
+
}
|
|
54
|
+
if (data.hasOwnProperty('changes')) {
|
|
55
|
+
obj['changes'] = _ApiClient["default"].convertToType(data['changes'], 'Number');
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty('info')) {
|
|
58
|
+
obj['info'] = _ApiClient["default"].convertToType(data['info'], Object);
|
|
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>HandleNotefileChanges200Response</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>HandleNotefileChanges200Response</code>.
|
|
70
|
+
*/
|
|
71
|
+
}, {
|
|
72
|
+
key: "validateJSON",
|
|
73
|
+
value: function validateJSON(data) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
}]);
|
|
77
|
+
return HandleNotefileChanges200Response;
|
|
78
|
+
}();
|
|
79
|
+
/**
|
|
80
|
+
* The total number of files.
|
|
81
|
+
* @member {Number} total
|
|
82
|
+
*/
|
|
83
|
+
HandleNotefileChanges200Response.prototype['total'] = undefined;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The number of pending changes in the Notefile.
|
|
87
|
+
* @member {Number} changes
|
|
88
|
+
*/
|
|
89
|
+
HandleNotefileChanges200Response.prototype['changes'] = undefined;
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
93
|
+
* @member {Object} info
|
|
94
|
+
*/
|
|
95
|
+
HandleNotefileChanges200Response.prototype['info'] = undefined;
|
|
96
|
+
var _default = HandleNotefileChanges200Response;
|
|
97
|
+
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 _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 HandleNotefileChangesPending200Response model module.
|
|
17
|
+
* @module model/HandleNotefileChangesPending200Response
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HandleNotefileChangesPending200Response</code>.
|
|
23
|
+
* @alias module:model/HandleNotefileChangesPending200Response
|
|
24
|
+
*/
|
|
25
|
+
function HandleNotefileChangesPending200Response() {
|
|
26
|
+
_classCallCheck(this, HandleNotefileChangesPending200Response);
|
|
27
|
+
HandleNotefileChangesPending200Response.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(HandleNotefileChangesPending200Response, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>HandleNotefileChangesPending200Response</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/HandleNotefileChangesPending200Response} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/HandleNotefileChangesPending200Response} The populated <code>HandleNotefileChangesPending200Response</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new HandleNotefileChangesPending200Response();
|
|
51
|
+
if (data.hasOwnProperty('total')) {
|
|
52
|
+
obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number');
|
|
53
|
+
}
|
|
54
|
+
if (data.hasOwnProperty('changes')) {
|
|
55
|
+
obj['changes'] = _ApiClient["default"].convertToType(data['changes'], 'Number');
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty('pending')) {
|
|
58
|
+
obj['pending'] = _ApiClient["default"].convertToType(data['pending'], 'Boolean');
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty('info')) {
|
|
61
|
+
obj['info'] = _ApiClient["default"].convertToType(data['info'], Object);
|
|
62
|
+
}
|
|
63
|
+
} else if (data === null) {
|
|
64
|
+
return null;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Validates the JSON data with respect to <code>HandleNotefileChangesPending200Response</code>.
|
|
71
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
72
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>HandleNotefileChangesPending200Response</code>.
|
|
73
|
+
*/
|
|
74
|
+
}, {
|
|
75
|
+
key: "validateJSON",
|
|
76
|
+
value: function validateJSON(data) {
|
|
77
|
+
return true;
|
|
78
|
+
}
|
|
79
|
+
}]);
|
|
80
|
+
return HandleNotefileChangesPending200Response;
|
|
81
|
+
}();
|
|
82
|
+
/**
|
|
83
|
+
* The total number of files.
|
|
84
|
+
* @member {Number} total
|
|
85
|
+
*/
|
|
86
|
+
HandleNotefileChangesPending200Response.prototype['total'] = undefined;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The number of pending changes in the Notefile.
|
|
90
|
+
* @member {Number} changes
|
|
91
|
+
*/
|
|
92
|
+
HandleNotefileChangesPending200Response.prototype['changes'] = undefined;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Whether there are pending changes.
|
|
96
|
+
* @member {Boolean} pending
|
|
97
|
+
*/
|
|
98
|
+
HandleNotefileChangesPending200Response.prototype['pending'] = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* An object with a key for each Notefile that matched the request parameters, and value object with the changes and total for each file.
|
|
102
|
+
* @member {Object} info
|
|
103
|
+
*/
|
|
104
|
+
HandleNotefileChangesPending200Response.prototype['info'] = undefined;
|
|
105
|
+
var _default = HandleNotefileChangesPending200Response;
|
|
106
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,83 @@
|
|
|
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 HandleNotefileDeleteRequest model module.
|
|
17
|
+
* @module model/HandleNotefileDeleteRequest
|
|
18
|
+
* @version 1.0.4
|
|
19
|
+
*/
|
|
20
|
+
var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
21
|
+
/**
|
|
22
|
+
* Constructs a new <code>HandleNotefileDeleteRequest</code>.
|
|
23
|
+
* @alias module:model/HandleNotefileDeleteRequest
|
|
24
|
+
*/
|
|
25
|
+
function HandleNotefileDeleteRequest() {
|
|
26
|
+
_classCallCheck(this, HandleNotefileDeleteRequest);
|
|
27
|
+
HandleNotefileDeleteRequest.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(HandleNotefileDeleteRequest, null, [{
|
|
36
|
+
key: "initialize",
|
|
37
|
+
value: function initialize(obj) {}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Constructs a <code>HandleNotefileDeleteRequest</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/HandleNotefileDeleteRequest} obj Optional instance to populate.
|
|
44
|
+
* @return {module:model/HandleNotefileDeleteRequest} The populated <code>HandleNotefileDeleteRequest</code> instance.
|
|
45
|
+
*/
|
|
46
|
+
}, {
|
|
47
|
+
key: "constructFromObject",
|
|
48
|
+
value: function constructFromObject(data, obj) {
|
|
49
|
+
if (data) {
|
|
50
|
+
obj = obj || new HandleNotefileDeleteRequest();
|
|
51
|
+
if (data.hasOwnProperty('files')) {
|
|
52
|
+
obj['files'] = _ApiClient["default"].convertToType(data['files'], ['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>HandleNotefileDeleteRequest</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>HandleNotefileDeleteRequest</code>.
|
|
64
|
+
*/
|
|
65
|
+
}, {
|
|
66
|
+
key: "validateJSON",
|
|
67
|
+
value: function validateJSON(data) {
|
|
68
|
+
// ensure the json data is an array
|
|
69
|
+
if (!Array.isArray(data['files'])) {
|
|
70
|
+
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data['files']);
|
|
71
|
+
}
|
|
72
|
+
return true;
|
|
73
|
+
}
|
|
74
|
+
}]);
|
|
75
|
+
return HandleNotefileDeleteRequest;
|
|
76
|
+
}();
|
|
77
|
+
/**
|
|
78
|
+
* One or more files to obtain change information from.
|
|
79
|
+
* @member {Array.<String>} files
|
|
80
|
+
*/
|
|
81
|
+
HandleNotefileDeleteRequest.prototype['files'] = undefined;
|
|
82
|
+
var _default = HandleNotefileDeleteRequest;
|
|
83
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,163 @@
|
|
|
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 _HttpFilter = _interopRequireDefault(require("./HttpFilter"));
|
|
9
|
+
var _HttpTransform = _interopRequireDefault(require("./HttpTransform"));
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
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); }
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
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); } }
|
|
14
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
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); }
|
|
17
|
+
/**
|
|
18
|
+
* The Http model module.
|
|
19
|
+
* @module model/Http
|
|
20
|
+
* @version 1.0.4
|
|
21
|
+
*/
|
|
22
|
+
var Http = /*#__PURE__*/function () {
|
|
23
|
+
/**
|
|
24
|
+
* Constructs a new <code>Http</code>.
|
|
25
|
+
* Route settings specific to HTTP routes.
|
|
26
|
+
* @alias module:model/Http
|
|
27
|
+
*/
|
|
28
|
+
function Http() {
|
|
29
|
+
_classCallCheck(this, Http);
|
|
30
|
+
Http.initialize(this);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Initializes the fields of this object.
|
|
35
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
36
|
+
* Only for internal use.
|
|
37
|
+
*/
|
|
38
|
+
_createClass(Http, null, [{
|
|
39
|
+
key: "initialize",
|
|
40
|
+
value: function initialize(obj) {}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Constructs a <code>Http</code> from a plain JavaScript object, optionally creating a new instance.
|
|
44
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
45
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
46
|
+
* @param {module:model/Http} obj Optional instance to populate.
|
|
47
|
+
* @return {module:model/Http} The populated <code>Http</code> instance.
|
|
48
|
+
*/
|
|
49
|
+
}, {
|
|
50
|
+
key: "constructFromObject",
|
|
51
|
+
value: function constructFromObject(data, obj) {
|
|
52
|
+
if (data) {
|
|
53
|
+
obj = obj || new Http();
|
|
54
|
+
if (data.hasOwnProperty('fleets')) {
|
|
55
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
56
|
+
}
|
|
57
|
+
if (data.hasOwnProperty('filter')) {
|
|
58
|
+
obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
|
|
59
|
+
}
|
|
60
|
+
if (data.hasOwnProperty('transform')) {
|
|
61
|
+
obj['transform'] = _HttpTransform["default"].constructFromObject(data['transform']);
|
|
62
|
+
}
|
|
63
|
+
if (data.hasOwnProperty('throttle_ms')) {
|
|
64
|
+
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
65
|
+
}
|
|
66
|
+
if (data.hasOwnProperty('url')) {
|
|
67
|
+
obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty('http_headers')) {
|
|
70
|
+
obj['http_headers'] = _ApiClient["default"].convertToType(data['http_headers'], {
|
|
71
|
+
'String': 'String'
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('disable_http_headers')) {
|
|
75
|
+
obj['disable_http_headers'] = _ApiClient["default"].convertToType(data['disable_http_headers'], 'Boolean');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('timeout')) {
|
|
78
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
79
|
+
}
|
|
80
|
+
} else if (data === null) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
return obj;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Validates the JSON data with respect to <code>Http</code>.
|
|
88
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
89
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Http</code>.
|
|
90
|
+
*/
|
|
91
|
+
}, {
|
|
92
|
+
key: "validateJSON",
|
|
93
|
+
value: function validateJSON(data) {
|
|
94
|
+
// ensure the json data is an array
|
|
95
|
+
if (!Array.isArray(data['fleets'])) {
|
|
96
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
97
|
+
}
|
|
98
|
+
// validate the optional field `filter`
|
|
99
|
+
if (data['filter']) {
|
|
100
|
+
// data not null
|
|
101
|
+
_HttpFilter["default"].validateJSON(data['filter']);
|
|
102
|
+
}
|
|
103
|
+
// validate the optional field `transform`
|
|
104
|
+
if (data['transform']) {
|
|
105
|
+
// data not null
|
|
106
|
+
_HttpTransform["default"].validateJSON(data['transform']);
|
|
107
|
+
}
|
|
108
|
+
// ensure the json data is a string
|
|
109
|
+
if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']);
|
|
111
|
+
}
|
|
112
|
+
return true;
|
|
113
|
+
}
|
|
114
|
+
}]);
|
|
115
|
+
return Http;
|
|
116
|
+
}();
|
|
117
|
+
/**
|
|
118
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
119
|
+
* @member {Array.<String>} fleets
|
|
120
|
+
*/
|
|
121
|
+
Http.prototype['fleets'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @member {module:model/HttpFilter} filter
|
|
125
|
+
*/
|
|
126
|
+
Http.prototype['filter'] = undefined;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @member {module:model/HttpTransform} transform
|
|
130
|
+
*/
|
|
131
|
+
Http.prototype['transform'] = undefined;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Minimum time between requests in Miliseconds
|
|
135
|
+
* @member {Number} throttle_ms
|
|
136
|
+
*/
|
|
137
|
+
Http.prototype['throttle_ms'] = undefined;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Route URL
|
|
141
|
+
* @member {String} url
|
|
142
|
+
*/
|
|
143
|
+
Http.prototype['url'] = undefined;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @member {Object.<String, String>} http_headers
|
|
147
|
+
*/
|
|
148
|
+
Http.prototype['http_headers'] = undefined;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @member {Boolean} disable_http_headers
|
|
152
|
+
* @default false
|
|
153
|
+
*/
|
|
154
|
+
Http.prototype['disable_http_headers'] = false;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Timeout in seconds for each request
|
|
158
|
+
* @member {Number} timeout
|
|
159
|
+
* @default 15
|
|
160
|
+
*/
|
|
161
|
+
Http.prototype['timeout'] = 15;
|
|
162
|
+
var _default = Http;
|
|
163
|
+
exports["default"] = _default;
|