@blues-inc/notehub-js 1.0.10 → 1.0.11
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 +181 -178
- package/dist/ApiClient.js +157 -154
- package/dist/api/AuthorizationApi.js +63 -18
- package/dist/api/BillingAccountApi.js +15 -15
- package/dist/api/DeviceApi.js +159 -159
- package/dist/api/DevicesApi.js +58 -58
- package/dist/api/EnvironmentVariablesApi.js +110 -110
- package/dist/api/EventApi.js +94 -94
- package/dist/api/FilesApi.js +42 -42
- package/dist/api/FleetApi.js +160 -160
- package/dist/api/NotesApi.js +105 -105
- package/dist/api/ProductApi.js +29 -29
- package/dist/api/ProjectApi.js +139 -139
- package/dist/api/RouteApi.js +51 -51
- package/dist/index.js +7 -0
- package/dist/model/Aws.js +64 -64
- package/dist/model/Azure.js +42 -42
- package/dist/model/BillingAccount.js +20 -20
- package/dist/model/Body.js +4 -4
- package/dist/model/Contact.js +21 -21
- package/dist/model/CreateFleetRequest.js +6 -6
- package/dist/model/CreateProductRequest.js +21 -21
- package/dist/model/CreateProjectRequest.js +13 -13
- package/dist/model/DFUEnv.js +11 -11
- package/dist/model/DFUState.js +64 -64
- package/dist/model/DeleteDeviceFleetsRequest.js +7 -7
- package/dist/model/Device.js +82 -82
- package/dist/model/DeviceSession.js +181 -181
- package/dist/model/DeviceTowerInfo.js +13 -13
- package/dist/model/DeviceUsage.js +31 -31
- package/dist/model/EnvironmentVariables.js +7 -7
- package/dist/model/Error.js +30 -30
- package/dist/model/Event.js +222 -222
- package/dist/model/Fleet.js +20 -20
- package/dist/model/GenerateAuthToken200Response.js +114 -0
- package/dist/model/GetBillingAccounts200Response.js +8 -9
- package/dist/model/GetDeviceEnvironmentVariables200Response.js +11 -11
- package/dist/model/GetDeviceHealthLog200Response.js +10 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +18 -18
- package/dist/model/GetDeviceLatest200Response.js +8 -9
- package/dist/model/GetDevicePublicKey200Response.js +15 -15
- package/dist/model/GetDeviceSessions200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200Response.js +15 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +11 -11
- package/dist/model/GetProjectDevices200Response.js +15 -16
- package/dist/model/GetProjectEvents200Response.js +20 -21
- package/dist/model/GetProjectEventsByCursor200Response.js +22 -23
- package/dist/model/GetProjectFleets200Response.js +10 -11
- package/dist/model/GetProjectMembers200Response.js +10 -11
- package/dist/model/GetProjectProducts200Response.js +8 -9
- package/dist/model/GetProjects200Response.js +8 -9
- package/dist/model/Google.js +27 -27
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +12 -12
- package/dist/model/HandleNoteSignal200Response.js +4 -4
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +13 -13
- package/dist/model/HandleNotefileDeleteRequest.js +6 -6
- package/dist/model/Http.js +34 -34
- package/dist/model/HttpFilter.js +18 -18
- package/dist/model/HttpTransform.js +19 -19
- package/dist/model/Location.js +39 -39
- package/dist/model/Login200Response.js +6 -6
- package/dist/model/LoginRequest.js +11 -11
- package/dist/model/Mqtt.js +65 -65
- package/dist/model/Note.js +9 -9
- package/dist/model/Product.js +25 -25
- package/dist/model/Project.js +33 -33
- package/dist/model/ProjectMember.js +21 -21
- package/dist/model/Proxy.js +23 -23
- package/dist/model/PutDeviceFleetsRequest.js +7 -7
- package/dist/model/Radresponder.js +24 -24
- package/dist/model/Route.js +35 -35
- package/dist/model/RouteSchema.js +39 -38
- package/dist/model/Snowflake.js +44 -44
- package/dist/model/SnowflakeTransform.js +11 -11
- package/dist/model/Thingworx.js +32 -32
- package/dist/model/TowerLocation.js +51 -51
- package/dist/model/Twilio.js +42 -42
- package/dist/model/UpdateFleetRequest.js +16 -16
- package/dist/model/UserDbRoute.js +24 -24
- package/package.json +3 -3
|
@@ -19,13 +19,13 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The GetProjectMembers200Response model module.
|
|
21
21
|
* @module model/GetProjectMembers200Response
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
26
26
|
* Constructs a new <code>GetProjectMembers200Response</code>.
|
|
27
27
|
* @alias module:model/GetProjectMembers200Response
|
|
28
|
-
* @param members {Array.<module:model/ProjectMember>}
|
|
28
|
+
* @param members {Array.<module:model/ProjectMember>}
|
|
29
29
|
*/
|
|
30
30
|
function GetProjectMembers200Response(members) {
|
|
31
31
|
_classCallCheck(this, GetProjectMembers200Response);
|
|
@@ -40,7 +40,7 @@ var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
|
40
40
|
_createClass(GetProjectMembers200Response, null, [{
|
|
41
41
|
key: "initialize",
|
|
42
42
|
value: function initialize(obj, members) {
|
|
43
|
-
obj[
|
|
43
|
+
obj["members"] = members;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/**
|
|
@@ -55,8 +55,8 @@ var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
|
55
55
|
value: function constructFromObject(data, obj) {
|
|
56
56
|
if (data) {
|
|
57
57
|
obj = obj || new GetProjectMembers200Response();
|
|
58
|
-
if (data.hasOwnProperty(
|
|
59
|
-
obj[
|
|
58
|
+
if (data.hasOwnProperty("members")) {
|
|
59
|
+
obj["members"] = _ApiClient["default"].convertToType(data["members"], [_ProjectMember["default"]]);
|
|
60
60
|
}
|
|
61
61
|
} else if (data === null) {
|
|
62
62
|
return null;
|
|
@@ -87,14 +87,14 @@ var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
|
87
87
|
} finally {
|
|
88
88
|
_iterator.f();
|
|
89
89
|
}
|
|
90
|
-
if (data[
|
|
90
|
+
if (data["members"]) {
|
|
91
91
|
// data not null
|
|
92
92
|
// ensure the json data is an array
|
|
93
|
-
if (!Array.isArray(data[
|
|
94
|
-
throw new Error("Expected the field `members` to be an array in the JSON data but got " + data[
|
|
93
|
+
if (!Array.isArray(data["members"])) {
|
|
94
|
+
throw new Error("Expected the field `members` to be an array in the JSON data but got " + data["members"]);
|
|
95
95
|
}
|
|
96
96
|
// validate the optional field `members` (array)
|
|
97
|
-
var _iterator2 = _createForOfIteratorHelper(data[
|
|
97
|
+
var _iterator2 = _createForOfIteratorHelper(data["members"]),
|
|
98
98
|
_step2;
|
|
99
99
|
try {
|
|
100
100
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
@@ -106,7 +106,6 @@ var GetProjectMembers200Response = /*#__PURE__*/function () {
|
|
|
106
106
|
} finally {
|
|
107
107
|
_iterator2.f();
|
|
108
108
|
}
|
|
109
|
-
;
|
|
110
109
|
}
|
|
111
110
|
return true;
|
|
112
111
|
}
|
|
@@ -118,6 +117,6 @@ GetProjectMembers200Response.RequiredProperties = ["members"];
|
|
|
118
117
|
/**
|
|
119
118
|
* @member {Array.<module:model/ProjectMember>} members
|
|
120
119
|
*/
|
|
121
|
-
GetProjectMembers200Response.prototype[
|
|
120
|
+
GetProjectMembers200Response.prototype["members"] = undefined;
|
|
122
121
|
var _default = GetProjectMembers200Response;
|
|
123
122
|
exports["default"] = _default;
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The GetProjectProducts200Response model module.
|
|
21
21
|
* @module model/GetProjectProducts200Response
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var GetProjectProducts200Response = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
@@ -52,8 +52,8 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
|
|
|
52
52
|
value: function constructFromObject(data, obj) {
|
|
53
53
|
if (data) {
|
|
54
54
|
obj = obj || new GetProjectProducts200Response();
|
|
55
|
-
if (data.hasOwnProperty(
|
|
56
|
-
obj[
|
|
55
|
+
if (data.hasOwnProperty("products")) {
|
|
56
|
+
obj["products"] = _ApiClient["default"].convertToType(data["products"], [_Product["default"]]);
|
|
57
57
|
}
|
|
58
58
|
} else if (data === null) {
|
|
59
59
|
return null;
|
|
@@ -69,14 +69,14 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
|
|
|
69
69
|
}, {
|
|
70
70
|
key: "validateJSON",
|
|
71
71
|
value: function validateJSON(data) {
|
|
72
|
-
if (data[
|
|
72
|
+
if (data["products"]) {
|
|
73
73
|
// data not null
|
|
74
74
|
// ensure the json data is an array
|
|
75
|
-
if (!Array.isArray(data[
|
|
76
|
-
throw new Error("Expected the field `products` to be an array in the JSON data but got " + data[
|
|
75
|
+
if (!Array.isArray(data["products"])) {
|
|
76
|
+
throw new Error("Expected the field `products` to be an array in the JSON data but got " + data["products"]);
|
|
77
77
|
}
|
|
78
78
|
// validate the optional field `products` (array)
|
|
79
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
79
|
+
var _iterator = _createForOfIteratorHelper(data["products"]),
|
|
80
80
|
_step;
|
|
81
81
|
try {
|
|
82
82
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -88,7 +88,6 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
|
|
|
88
88
|
} finally {
|
|
89
89
|
_iterator.f();
|
|
90
90
|
}
|
|
91
|
-
;
|
|
92
91
|
}
|
|
93
92
|
return true;
|
|
94
93
|
}
|
|
@@ -98,6 +97,6 @@ var GetProjectProducts200Response = /*#__PURE__*/function () {
|
|
|
98
97
|
/**
|
|
99
98
|
* @member {Array.<module:model/Product>} products
|
|
100
99
|
*/
|
|
101
|
-
GetProjectProducts200Response.prototype[
|
|
100
|
+
GetProjectProducts200Response.prototype["products"] = undefined;
|
|
102
101
|
var _default = GetProjectProducts200Response;
|
|
103
102
|
exports["default"] = _default;
|
|
@@ -19,7 +19,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
19
19
|
/**
|
|
20
20
|
* The GetProjects200Response model module.
|
|
21
21
|
* @module model/GetProjects200Response
|
|
22
|
-
* @version 1.0.
|
|
22
|
+
* @version 1.0.11
|
|
23
23
|
*/
|
|
24
24
|
var GetProjects200Response = /*#__PURE__*/function () {
|
|
25
25
|
/**
|
|
@@ -52,8 +52,8 @@ var GetProjects200Response = /*#__PURE__*/function () {
|
|
|
52
52
|
value: function constructFromObject(data, obj) {
|
|
53
53
|
if (data) {
|
|
54
54
|
obj = obj || new GetProjects200Response();
|
|
55
|
-
if (data.hasOwnProperty(
|
|
56
|
-
obj[
|
|
55
|
+
if (data.hasOwnProperty("projects")) {
|
|
56
|
+
obj["projects"] = _ApiClient["default"].convertToType(data["projects"], [_Project["default"]]);
|
|
57
57
|
}
|
|
58
58
|
} else if (data === null) {
|
|
59
59
|
return null;
|
|
@@ -69,14 +69,14 @@ var GetProjects200Response = /*#__PURE__*/function () {
|
|
|
69
69
|
}, {
|
|
70
70
|
key: "validateJSON",
|
|
71
71
|
value: function validateJSON(data) {
|
|
72
|
-
if (data[
|
|
72
|
+
if (data["projects"]) {
|
|
73
73
|
// data not null
|
|
74
74
|
// ensure the json data is an array
|
|
75
|
-
if (!Array.isArray(data[
|
|
76
|
-
throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data[
|
|
75
|
+
if (!Array.isArray(data["projects"])) {
|
|
76
|
+
throw new Error("Expected the field `projects` to be an array in the JSON data but got " + data["projects"]);
|
|
77
77
|
}
|
|
78
78
|
// validate the optional field `projects` (array)
|
|
79
|
-
var _iterator = _createForOfIteratorHelper(data[
|
|
79
|
+
var _iterator = _createForOfIteratorHelper(data["projects"]),
|
|
80
80
|
_step;
|
|
81
81
|
try {
|
|
82
82
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -88,7 +88,6 @@ var GetProjects200Response = /*#__PURE__*/function () {
|
|
|
88
88
|
} finally {
|
|
89
89
|
_iterator.f();
|
|
90
90
|
}
|
|
91
|
-
;
|
|
92
91
|
}
|
|
93
92
|
return true;
|
|
94
93
|
}
|
|
@@ -98,6 +97,6 @@ var GetProjects200Response = /*#__PURE__*/function () {
|
|
|
98
97
|
/**
|
|
99
98
|
* @member {Array.<module:model/Project>} projects
|
|
100
99
|
*/
|
|
101
|
-
GetProjects200Response.prototype[
|
|
100
|
+
GetProjects200Response.prototype["projects"] = undefined;
|
|
102
101
|
var _default = GetProjects200Response;
|
|
103
102
|
exports["default"] = _default;
|
package/dist/model/Google.js
CHANGED
|
@@ -17,7 +17,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
17
17
|
/**
|
|
18
18
|
* The Google model module.
|
|
19
19
|
* @module model/Google
|
|
20
|
-
* @version 1.0.
|
|
20
|
+
* @version 1.0.11
|
|
21
21
|
*/
|
|
22
22
|
var Google = /*#__PURE__*/function () {
|
|
23
23
|
/**
|
|
@@ -51,23 +51,23 @@ var Google = /*#__PURE__*/function () {
|
|
|
51
51
|
value: function constructFromObject(data, obj) {
|
|
52
52
|
if (data) {
|
|
53
53
|
obj = obj || new Google();
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("fleets")) {
|
|
55
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("filter")) {
|
|
58
|
+
obj["filter"] = _HttpFilter["default"].constructFromObject(data["filter"]);
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("transform")) {
|
|
61
|
+
obj["transform"] = _HttpTransform["default"].constructFromObject(data["transform"]);
|
|
62
62
|
}
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
64
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("url")) {
|
|
67
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("timeout")) {
|
|
70
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
71
71
|
}
|
|
72
72
|
} else if (data === null) {
|
|
73
73
|
return null;
|
|
@@ -84,22 +84,22 @@ var Google = /*#__PURE__*/function () {
|
|
|
84
84
|
key: "validateJSON",
|
|
85
85
|
value: function validateJSON(data) {
|
|
86
86
|
// ensure the json data is an array
|
|
87
|
-
if (!Array.isArray(data[
|
|
88
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
87
|
+
if (!Array.isArray(data["fleets"])) {
|
|
88
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
89
89
|
}
|
|
90
90
|
// validate the optional field `filter`
|
|
91
|
-
if (data[
|
|
91
|
+
if (data["filter"]) {
|
|
92
92
|
// data not null
|
|
93
|
-
_HttpFilter["default"].validateJSON(data[
|
|
93
|
+
_HttpFilter["default"].validateJSON(data["filter"]);
|
|
94
94
|
}
|
|
95
95
|
// validate the optional field `transform`
|
|
96
|
-
if (data[
|
|
96
|
+
if (data["transform"]) {
|
|
97
97
|
// data not null
|
|
98
|
-
_HttpTransform["default"].validateJSON(data[
|
|
98
|
+
_HttpTransform["default"].validateJSON(data["transform"]);
|
|
99
99
|
}
|
|
100
100
|
// ensure the json data is a string
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
103
103
|
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
@@ -110,33 +110,33 @@ var Google = /*#__PURE__*/function () {
|
|
|
110
110
|
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
111
111
|
* @member {Array.<String>} fleets
|
|
112
112
|
*/
|
|
113
|
-
Google.prototype[
|
|
113
|
+
Google.prototype["fleets"] = undefined;
|
|
114
114
|
|
|
115
115
|
/**
|
|
116
116
|
* @member {module:model/HttpFilter} filter
|
|
117
117
|
*/
|
|
118
|
-
Google.prototype[
|
|
118
|
+
Google.prototype["filter"] = undefined;
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* @member {module:model/HttpTransform} transform
|
|
122
122
|
*/
|
|
123
|
-
Google.prototype[
|
|
123
|
+
Google.prototype["transform"] = undefined;
|
|
124
124
|
|
|
125
125
|
/**
|
|
126
126
|
* @member {Number} throttle_ms
|
|
127
127
|
*/
|
|
128
|
-
Google.prototype[
|
|
128
|
+
Google.prototype["throttle_ms"] = undefined;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
131
|
* @member {String} url
|
|
132
132
|
*/
|
|
133
|
-
Google.prototype[
|
|
133
|
+
Google.prototype["url"] = undefined;
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
136
|
* Timeout in seconds for each request
|
|
137
137
|
* @member {Number} timeout
|
|
138
138
|
* @default 15
|
|
139
139
|
*/
|
|
140
|
-
Google.prototype[
|
|
140
|
+
Google.prototype["timeout"] = 15;
|
|
141
141
|
var _default = Google;
|
|
142
142
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The HandleNoteChanges200Response model module.
|
|
17
17
|
* @module model/HandleNoteChanges200Response
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var HandleNoteChanges200Response = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,14 +48,14 @@ var HandleNoteChanges200Response = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new HandleNoteChanges200Response();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("total")) {
|
|
52
|
+
obj["total"] = _ApiClient["default"].convertToType(data["total"], "Number");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("changes")) {
|
|
55
|
+
obj["changes"] = _ApiClient["default"].convertToType(data["changes"], "Number");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("notes")) {
|
|
58
|
+
obj["notes"] = _ApiClient["default"].convertToType(data["notes"], Object);
|
|
59
59
|
}
|
|
60
60
|
} else if (data === null) {
|
|
61
61
|
return null;
|
|
@@ -80,18 +80,18 @@ var HandleNoteChanges200Response = /*#__PURE__*/function () {
|
|
|
80
80
|
* The total number of notes.
|
|
81
81
|
* @member {Number} total
|
|
82
82
|
*/
|
|
83
|
-
HandleNoteChanges200Response.prototype[
|
|
83
|
+
HandleNoteChanges200Response.prototype["total"] = undefined;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The number of pending changes in the Notefile.
|
|
87
87
|
* @member {Number} changes
|
|
88
88
|
*/
|
|
89
|
-
HandleNoteChanges200Response.prototype[
|
|
89
|
+
HandleNoteChanges200Response.prototype["changes"] = undefined;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* An object with a key for each note and a value object with the body of each Note and the time the Note was added.
|
|
93
93
|
* @member {Object} notes
|
|
94
94
|
*/
|
|
95
|
-
HandleNoteChanges200Response.prototype[
|
|
95
|
+
HandleNoteChanges200Response.prototype["notes"] = undefined;
|
|
96
96
|
var _default = HandleNoteChanges200Response;
|
|
97
97
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The HandleNoteGet200Response model module.
|
|
17
17
|
* @module model/HandleNoteGet200Response
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var HandleNoteGet200Response = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,14 +48,14 @@ var HandleNoteGet200Response = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new HandleNoteGet200Response();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("body")) {
|
|
52
|
+
obj["body"] = _ApiClient["default"].convertToType(data["body"], Object);
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("payload")) {
|
|
55
|
+
obj["payload"] = _ApiClient["default"].convertToType(data["payload"], "String");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("time")) {
|
|
58
|
+
obj["time"] = _ApiClient["default"].convertToType(data["time"], "Number");
|
|
59
59
|
}
|
|
60
60
|
} else if (data === null) {
|
|
61
61
|
return null;
|
|
@@ -72,8 +72,8 @@ var HandleNoteGet200Response = /*#__PURE__*/function () {
|
|
|
72
72
|
key: "validateJSON",
|
|
73
73
|
value: function validateJSON(data) {
|
|
74
74
|
// ensure the json data is a string
|
|
75
|
-
if (data[
|
|
76
|
-
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data[
|
|
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
77
|
}
|
|
78
78
|
return true;
|
|
79
79
|
}
|
|
@@ -84,18 +84,18 @@ var HandleNoteGet200Response = /*#__PURE__*/function () {
|
|
|
84
84
|
* The note body
|
|
85
85
|
* @member {Object} body
|
|
86
86
|
*/
|
|
87
|
-
HandleNoteGet200Response.prototype[
|
|
87
|
+
HandleNoteGet200Response.prototype["body"] = undefined;
|
|
88
88
|
|
|
89
89
|
/**
|
|
90
90
|
* The note payload
|
|
91
91
|
* @member {String} payload
|
|
92
92
|
*/
|
|
93
|
-
HandleNoteGet200Response.prototype[
|
|
93
|
+
HandleNoteGet200Response.prototype["payload"] = undefined;
|
|
94
94
|
|
|
95
95
|
/**
|
|
96
96
|
* The time the Note was added to the Notecard or Notehub
|
|
97
97
|
* @member {Number} time
|
|
98
98
|
*/
|
|
99
|
-
HandleNoteGet200Response.prototype[
|
|
99
|
+
HandleNoteGet200Response.prototype["time"] = undefined;
|
|
100
100
|
var _default = HandleNoteGet200Response;
|
|
101
101
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The HandleNoteSignal200Response model module.
|
|
17
17
|
* @module model/HandleNoteSignal200Response
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var HandleNoteSignal200Response = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,8 +48,8 @@ var HandleNoteSignal200Response = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new HandleNoteSignal200Response();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("connected")) {
|
|
52
|
+
obj["connected"] = _ApiClient["default"].convertToType(data["connected"], "Boolean");
|
|
53
53
|
}
|
|
54
54
|
} else if (data === null) {
|
|
55
55
|
return null;
|
|
@@ -74,6 +74,6 @@ var HandleNoteSignal200Response = /*#__PURE__*/function () {
|
|
|
74
74
|
* true if the Notecard is connected to Notehub.
|
|
75
75
|
* @member {Boolean} connected
|
|
76
76
|
*/
|
|
77
|
-
HandleNoteSignal200Response.prototype[
|
|
77
|
+
HandleNoteSignal200Response.prototype["connected"] = undefined;
|
|
78
78
|
var _default = HandleNoteSignal200Response;
|
|
79
79
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The HandleNotefileChanges200Response model module.
|
|
17
17
|
* @module model/HandleNotefileChanges200Response
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,14 +48,14 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new HandleNotefileChanges200Response();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("total")) {
|
|
52
|
+
obj["total"] = _ApiClient["default"].convertToType(data["total"], "Number");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("changes")) {
|
|
55
|
+
obj["changes"] = _ApiClient["default"].convertToType(data["changes"], "Number");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("info")) {
|
|
58
|
+
obj["info"] = _ApiClient["default"].convertToType(data["info"], Object);
|
|
59
59
|
}
|
|
60
60
|
} else if (data === null) {
|
|
61
61
|
return null;
|
|
@@ -80,18 +80,18 @@ var HandleNotefileChanges200Response = /*#__PURE__*/function () {
|
|
|
80
80
|
* The total number of files.
|
|
81
81
|
* @member {Number} total
|
|
82
82
|
*/
|
|
83
|
-
HandleNotefileChanges200Response.prototype[
|
|
83
|
+
HandleNotefileChanges200Response.prototype["total"] = undefined;
|
|
84
84
|
|
|
85
85
|
/**
|
|
86
86
|
* The number of pending changes in the Notefile.
|
|
87
87
|
* @member {Number} changes
|
|
88
88
|
*/
|
|
89
|
-
HandleNotefileChanges200Response.prototype[
|
|
89
|
+
HandleNotefileChanges200Response.prototype["changes"] = undefined;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
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
93
|
* @member {Object} info
|
|
94
94
|
*/
|
|
95
|
-
HandleNotefileChanges200Response.prototype[
|
|
95
|
+
HandleNotefileChanges200Response.prototype["info"] = undefined;
|
|
96
96
|
var _default = HandleNotefileChanges200Response;
|
|
97
97
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The HandleNotefileChangesPending200Response model module.
|
|
17
17
|
* @module model/HandleNotefileChangesPending200Response
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,17 +48,17 @@ var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new HandleNotefileChangesPending200Response();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("total")) {
|
|
52
|
+
obj["total"] = _ApiClient["default"].convertToType(data["total"], "Number");
|
|
53
53
|
}
|
|
54
|
-
if (data.hasOwnProperty(
|
|
55
|
-
obj[
|
|
54
|
+
if (data.hasOwnProperty("changes")) {
|
|
55
|
+
obj["changes"] = _ApiClient["default"].convertToType(data["changes"], "Number");
|
|
56
56
|
}
|
|
57
|
-
if (data.hasOwnProperty(
|
|
58
|
-
obj[
|
|
57
|
+
if (data.hasOwnProperty("pending")) {
|
|
58
|
+
obj["pending"] = _ApiClient["default"].convertToType(data["pending"], "Boolean");
|
|
59
59
|
}
|
|
60
|
-
if (data.hasOwnProperty(
|
|
61
|
-
obj[
|
|
60
|
+
if (data.hasOwnProperty("info")) {
|
|
61
|
+
obj["info"] = _ApiClient["default"].convertToType(data["info"], Object);
|
|
62
62
|
}
|
|
63
63
|
} else if (data === null) {
|
|
64
64
|
return null;
|
|
@@ -83,24 +83,24 @@ var HandleNotefileChangesPending200Response = /*#__PURE__*/function () {
|
|
|
83
83
|
* The total number of files.
|
|
84
84
|
* @member {Number} total
|
|
85
85
|
*/
|
|
86
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
86
|
+
HandleNotefileChangesPending200Response.prototype["total"] = undefined;
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* The number of pending changes in the Notefile.
|
|
90
90
|
* @member {Number} changes
|
|
91
91
|
*/
|
|
92
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
92
|
+
HandleNotefileChangesPending200Response.prototype["changes"] = undefined;
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Whether there are pending changes.
|
|
96
96
|
* @member {Boolean} pending
|
|
97
97
|
*/
|
|
98
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
98
|
+
HandleNotefileChangesPending200Response.prototype["pending"] = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
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
102
|
* @member {Object} info
|
|
103
103
|
*/
|
|
104
|
-
HandleNotefileChangesPending200Response.prototype[
|
|
104
|
+
HandleNotefileChangesPending200Response.prototype["info"] = undefined;
|
|
105
105
|
var _default = HandleNotefileChangesPending200Response;
|
|
106
106
|
exports["default"] = _default;
|
|
@@ -15,7 +15,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
15
15
|
/**
|
|
16
16
|
* The HandleNotefileDeleteRequest model module.
|
|
17
17
|
* @module model/HandleNotefileDeleteRequest
|
|
18
|
-
* @version 1.0.
|
|
18
|
+
* @version 1.0.11
|
|
19
19
|
*/
|
|
20
20
|
var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
21
21
|
/**
|
|
@@ -48,8 +48,8 @@ var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
|
48
48
|
value: function constructFromObject(data, obj) {
|
|
49
49
|
if (data) {
|
|
50
50
|
obj = obj || new HandleNotefileDeleteRequest();
|
|
51
|
-
if (data.hasOwnProperty(
|
|
52
|
-
obj[
|
|
51
|
+
if (data.hasOwnProperty("files")) {
|
|
52
|
+
obj["files"] = _ApiClient["default"].convertToType(data["files"], ["String"]);
|
|
53
53
|
}
|
|
54
54
|
} else if (data === null) {
|
|
55
55
|
return null;
|
|
@@ -66,8 +66,8 @@ var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
|
66
66
|
key: "validateJSON",
|
|
67
67
|
value: function validateJSON(data) {
|
|
68
68
|
// ensure the json data is an array
|
|
69
|
-
if (!Array.isArray(data[
|
|
70
|
-
throw new Error("Expected the field `files` to be an array in the JSON data but got " + data[
|
|
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
71
|
}
|
|
72
72
|
return true;
|
|
73
73
|
}
|
|
@@ -78,6 +78,6 @@ var HandleNotefileDeleteRequest = /*#__PURE__*/function () {
|
|
|
78
78
|
* One or more files to obtain change information from.
|
|
79
79
|
* @member {Array.<String>} files
|
|
80
80
|
*/
|
|
81
|
-
HandleNotefileDeleteRequest.prototype[
|
|
81
|
+
HandleNotefileDeleteRequest.prototype["files"] = undefined;
|
|
82
82
|
var _default = HandleNotefileDeleteRequest;
|
|
83
83
|
exports["default"] = _default;
|