@blues-inc/notehub-js 1.0.37-beta.1 → 1.0.37-beta.10
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 +11 -10
- package/dist/ApiClient.js +2 -2
- package/dist/api/AlertApi.js +1 -1
- package/dist/api/AuthorizationApi.js +3 -3
- package/dist/api/BillingAccountApi.js +1 -1
- package/dist/api/DeviceApi.js +8 -8
- package/dist/api/EventApi.js +1 -1
- package/dist/api/ExternalDevicesApi.js +1 -1
- package/dist/api/MonitorApi.js +10 -10
- package/dist/api/ProjectApi.js +28 -18
- package/dist/api/RouteApi.js +1 -1
- package/dist/api/WebhookApi.js +1 -1
- package/dist/index.js +66 -59
- package/dist/model/Alert.js +91 -91
- package/dist/model/AlertDataInner.js +10 -10
- package/dist/model/AlertNotificationsInner.js +10 -10
- package/dist/model/AnalyticsEventsData.js +14 -14
- package/dist/model/AnalyticsEventsResponse.js +1 -1
- package/dist/model/AnalyticsRouteLogsData.js +15 -15
- package/dist/model/AnalyticsRouteLogsResponse.js +1 -1
- package/dist/model/AnalyticsSessionsData.js +14 -14
- package/dist/model/AnalyticsSessionsResponse.js +1 -1
- package/dist/model/Aws.js +86 -86
- package/dist/model/{HttpFilter.js → AwsFilter.js} +32 -32
- package/dist/model/{HttpTransform.js → AwsTransform.js} +21 -21
- package/dist/model/Azure.js +51 -51
- package/dist/model/BillingAccount.js +19 -19
- package/dist/model/Body.js +1 -1
- package/dist/model/CloneProjectRequest.js +25 -25
- package/dist/model/Contact.js +19 -19
- package/dist/model/CreateFleetRequest.js +1 -1
- package/dist/model/CreateMonitor.js +186 -186
- package/dist/model/CreateProductRequest.js +30 -30
- package/dist/model/CreateProjectRequest.js +20 -20
- package/dist/model/CreateUpdateRepository.js +18 -18
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +1 -1
- package/dist/model/DFUState.js +60 -60
- package/dist/model/DataField.js +1 -1
- package/dist/model/DataSetField.js +14 -14
- package/dist/model/DeleteDeviceFleetsRequest.js +1 -1
- package/dist/model/Device.js +134 -134
- package/dist/model/DeviceDfuHistory.js +15 -15
- package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +52 -52
- package/dist/model/DeviceDfuHistoryPage.js +1 -1
- package/dist/model/DeviceDfuStateMachine.js +14 -14
- package/dist/model/DeviceDfuStateMachineNode.js +27 -27
- package/dist/model/DeviceDfuStatus.js +15 -15
- package/dist/model/DeviceDfuStatusPage.js +1 -1
- package/dist/model/DeviceSession.js +278 -278
- package/dist/model/DeviceTowerInfo.js +15 -15
- package/dist/model/DeviceUsage.js +36 -36
- package/dist/model/DfuActionRequest.js +1 -1
- package/dist/model/EmailNotification.js +1 -1
- package/dist/model/EnvTreeJsonNode.js +76 -76
- package/dist/model/EnvVar.js +9 -9
- package/dist/model/EnvironmentVariables.js +1 -1
- package/dist/model/Error.js +38 -38
- package/dist/model/Event.js +340 -340
- package/dist/model/Firmware.js +45 -45
- package/dist/model/FirmwareInfo.js +71 -71
- package/dist/model/Fleet.js +31 -31
- package/dist/model/GetAlerts200Response.js +1 -1
- package/dist/model/GetBillingAccounts200Response.js +1 -1
- package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +30 -30
- package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +20 -20
- package/dist/model/GetDeviceHealthLog200Response.js +1 -1
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +15 -15
- package/dist/model/GetDeviceLatest200Response.js +1 -1
- package/dist/model/GetDevicePublicKey200Response.js +18 -18
- package/dist/model/GetDeviceSessions200Response.js +14 -14
- package/dist/model/GetProjectDevicePublicKeys200Response.js +1 -1
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetProjectDevices200Response.js +1 -1
- package/dist/model/GetProjectEvents200Response.js +1 -1
- package/dist/model/GetProjectEventsByCursor200Response.js +16 -16
- package/dist/model/GetProjectMembers200Response.js +1 -1
- package/dist/model/GetProjectProducts200Response.js +1 -1
- package/dist/model/GetProjects200Response.js +1 -1
- package/dist/model/GetWebhooks200Response.js +1 -1
- package/dist/model/Google.js +35 -35
- package/dist/model/HandleNoteChanges200Response.js +10 -10
- package/dist/model/HandleNoteGet200Response.js +1 -1
- package/dist/model/HandleNoteSignal200Response.js +1 -1
- package/dist/model/HandleNotefileChanges200Response.js +10 -10
- package/dist/model/HandleNotefileChangesPending200Response.js +15 -15
- package/dist/model/HandleNotefileDeleteRequest.js +1 -1
- package/dist/model/Http.js +43 -43
- package/dist/model/Location.js +38 -38
- package/dist/model/Login200Response.js +1 -1
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +135 -135
- package/dist/model/MonitorAlertRoutesInner.js +12 -12
- package/dist/model/Mqtt.js +91 -91
- package/dist/model/Note.js +1 -1
- package/dist/model/NotefileSchema.js +1 -1
- package/dist/model/NotehubRoute.js +30 -30
- package/dist/model/NotehubRouteSchema.js +80 -80
- package/dist/model/PersonalAccessToken.js +168 -0
- package/dist/model/PersonalAccessTokenCreatedBy.js +116 -0
- package/dist/model/PersonalAccessTokenInfo.js +121 -0
- package/dist/model/PersonalAccessTokenSecret.js +105 -0
- package/dist/model/PostProvisionProjectDeviceRequest.js +14 -14
- package/dist/model/Product.js +29 -29
- package/dist/model/Project.js +35 -35
- package/dist/model/ProjectMember.js +19 -19
- package/dist/model/Proxy.js +21 -21
- package/dist/model/PutDeviceFleetsRequest.js +1 -1
- package/dist/model/Radresponder.js +28 -28
- package/dist/model/Repository.js +22 -22
- package/dist/model/RouteLog.js +28 -28
- package/dist/model/SchemaProperty.js +34 -36
- package/dist/model/SimUsage.js +19 -50
- package/dist/model/Slack.js +71 -71
- package/dist/model/SlackBearerNotification.js +14 -14
- package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +19 -19
- package/dist/model/SlackWebHookNotification.js +14 -14
- package/dist/model/Snowflake.js +57 -57
- package/dist/model/Thingworx.js +36 -36
- package/dist/model/TowerLocation.js +58 -58
- package/dist/model/Twilio.js +46 -46
- package/dist/model/UpdateFleetRequest.js +14 -14
- package/dist/model/UploadMetadata.js +77 -64
- package/dist/model/UserDbRoute.js +26 -26
- package/dist/model/UserDfuStateMachine.js +14 -14
- package/dist/model/UserDfuStateMachineStatus.js +9 -9
- package/dist/model/UserFirmwareInfo.js +1 -1
- package/dist/model/WebhookSettings.js +1 -1
- package/package.json +1 -1
- package/dist/model/DataSet.js +0 -164
- package/dist/model/QuestionDataResponseLineChart.js +0 -204
- package/dist/model/QuestionDataResponseMap.js +0 -143
package/dist/model/Twilio.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
-
var
|
|
8
|
+
var _AwsFilter = _interopRequireDefault(require("./AwsFilter"));
|
|
9
9
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
11
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The Twilio model module.
|
|
29
29
|
* @module model/Twilio
|
|
30
|
-
* @version 1.0.37-beta.
|
|
30
|
+
* @version 1.0.37-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var Twilio = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -61,23 +61,17 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new Twilio();
|
|
64
|
-
if (data.hasOwnProperty('fleets')) {
|
|
65
|
-
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
66
|
-
}
|
|
67
|
-
if (data.hasOwnProperty('filter')) {
|
|
68
|
-
obj['filter'] = _HttpFilter["default"].constructFromObject(data['filter']);
|
|
69
|
-
}
|
|
70
|
-
if (data.hasOwnProperty('timeout')) {
|
|
71
|
-
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
72
|
-
}
|
|
73
64
|
if (data.hasOwnProperty('account_sid')) {
|
|
74
65
|
obj['account_sid'] = _ApiClient["default"].convertToType(data['account_sid'], 'String');
|
|
75
66
|
}
|
|
76
67
|
if (data.hasOwnProperty('auth_token')) {
|
|
77
68
|
obj['auth_token'] = _ApiClient["default"].convertToType(data['auth_token'], 'String');
|
|
78
69
|
}
|
|
79
|
-
if (data.hasOwnProperty('
|
|
80
|
-
obj['
|
|
70
|
+
if (data.hasOwnProperty('filter')) {
|
|
71
|
+
obj['filter'] = _AwsFilter["default"].constructFromObject(data['filter']);
|
|
72
|
+
}
|
|
73
|
+
if (data.hasOwnProperty('fleets')) {
|
|
74
|
+
obj['fleets'] = _ApiClient["default"].convertToType(data['fleets'], ['String']);
|
|
81
75
|
}
|
|
82
76
|
if (data.hasOwnProperty('from')) {
|
|
83
77
|
obj['from'] = _ApiClient["default"].convertToType(data['from'], 'String');
|
|
@@ -88,6 +82,12 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
88
82
|
if (data.hasOwnProperty('throttle_ms')) {
|
|
89
83
|
obj['throttle_ms'] = _ApiClient["default"].convertToType(data['throttle_ms'], 'Number');
|
|
90
84
|
}
|
|
85
|
+
if (data.hasOwnProperty('timeout')) {
|
|
86
|
+
obj['timeout'] = _ApiClient["default"].convertToType(data['timeout'], 'Number');
|
|
87
|
+
}
|
|
88
|
+
if (data.hasOwnProperty('to')) {
|
|
89
|
+
obj['to'] = _ApiClient["default"].convertToType(data['to'], 'String');
|
|
90
|
+
}
|
|
91
91
|
} else if (data === null) {
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
@@ -102,15 +102,6 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
102
102
|
}, {
|
|
103
103
|
key: "validateJSON",
|
|
104
104
|
value: function validateJSON(data) {
|
|
105
|
-
// ensure the json data is an array
|
|
106
|
-
if (!Array.isArray(data['fleets'])) {
|
|
107
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
108
|
-
}
|
|
109
|
-
// validate the optional field `filter`
|
|
110
|
-
if (data['filter']) {
|
|
111
|
-
// data not null
|
|
112
|
-
_HttpFilter["default"].validateJSON(data['filter']);
|
|
113
|
-
}
|
|
114
105
|
// ensure the json data is a string
|
|
115
106
|
if (data['account_sid'] && !(typeof data['account_sid'] === 'string' || data['account_sid'] instanceof String)) {
|
|
116
107
|
throw new Error("Expected the field `account_sid` to be a primitive type in the JSON string but got " + data['account_sid']);
|
|
@@ -119,9 +110,14 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
119
110
|
if (data['auth_token'] && !(typeof data['auth_token'] === 'string' || data['auth_token'] instanceof String)) {
|
|
120
111
|
throw new Error("Expected the field `auth_token` to be a primitive type in the JSON string but got " + data['auth_token']);
|
|
121
112
|
}
|
|
122
|
-
//
|
|
123
|
-
if (data['
|
|
124
|
-
|
|
113
|
+
// validate the optional field `filter`
|
|
114
|
+
if (data['filter']) {
|
|
115
|
+
// data not null
|
|
116
|
+
_AwsFilter["default"].validateJSON(data['filter']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is an array
|
|
119
|
+
if (!Array.isArray(data['fleets'])) {
|
|
120
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data['fleets']);
|
|
125
121
|
}
|
|
126
122
|
// ensure the json data is a string
|
|
127
123
|
if (data['from'] && !(typeof data['from'] === 'string' || data['from'] instanceof String)) {
|
|
@@ -131,28 +127,14 @@ var Twilio = /*#__PURE__*/function () {
|
|
|
131
127
|
if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) {
|
|
132
128
|
throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']);
|
|
133
129
|
}
|
|
130
|
+
// ensure the json data is a string
|
|
131
|
+
if (data['to'] && !(typeof data['to'] === 'string' || data['to'] instanceof String)) {
|
|
132
|
+
throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data['to']);
|
|
133
|
+
}
|
|
134
134
|
return true;
|
|
135
135
|
}
|
|
136
136
|
}]);
|
|
137
137
|
}();
|
|
138
|
-
/**
|
|
139
|
-
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
140
|
-
* @member {Array.<String>} fleets
|
|
141
|
-
*/
|
|
142
|
-
Twilio.prototype['fleets'] = undefined;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* @member {module:model/HttpFilter} filter
|
|
146
|
-
*/
|
|
147
|
-
Twilio.prototype['filter'] = undefined;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Timeout in seconds for each request
|
|
151
|
-
* @member {Number} timeout
|
|
152
|
-
* @default 15
|
|
153
|
-
*/
|
|
154
|
-
Twilio.prototype['timeout'] = 15;
|
|
155
|
-
|
|
156
138
|
/**
|
|
157
139
|
* Twilio Account SID
|
|
158
140
|
* @member {String} account_sid
|
|
@@ -166,10 +148,15 @@ Twilio.prototype['account_sid'] = undefined;
|
|
|
166
148
|
Twilio.prototype['auth_token'] = undefined;
|
|
167
149
|
|
|
168
150
|
/**
|
|
169
|
-
*
|
|
170
|
-
* @member {String} to
|
|
151
|
+
* @member {module:model/AwsFilter} filter
|
|
171
152
|
*/
|
|
172
|
-
Twilio.prototype['
|
|
153
|
+
Twilio.prototype['filter'] = undefined;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* list of Fleet UIDs to apply route to, if any. If empty, applies to all Fleets
|
|
157
|
+
* @member {Array.<String>} fleets
|
|
158
|
+
*/
|
|
159
|
+
Twilio.prototype['fleets'] = undefined;
|
|
173
160
|
|
|
174
161
|
/**
|
|
175
162
|
* Phone number to send SMS from, leave blank to use notefile, must use E.164 format
|
|
@@ -187,4 +174,17 @@ Twilio.prototype['message'] = undefined;
|
|
|
187
174
|
* @member {Number} throttle_ms
|
|
188
175
|
*/
|
|
189
176
|
Twilio.prototype['throttle_ms'] = undefined;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Timeout in seconds for each request
|
|
180
|
+
* @member {Number} timeout
|
|
181
|
+
* @default 15
|
|
182
|
+
*/
|
|
183
|
+
Twilio.prototype['timeout'] = 15;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Phone number to send SMS to, leave blank to use notefile, must use E.164 format
|
|
187
|
+
* @member {String} to
|
|
188
|
+
*/
|
|
189
|
+
Twilio.prototype['to'] = undefined;
|
|
190
190
|
var _default = exports["default"] = Twilio;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UpdateFleetRequest model module.
|
|
28
28
|
* @module model/UpdateFleetRequest
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,12 +59,12 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new UpdateFleetRequest();
|
|
62
|
-
if (data.hasOwnProperty('label')) {
|
|
63
|
-
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
64
|
-
}
|
|
65
62
|
if (data.hasOwnProperty('addDevices')) {
|
|
66
63
|
obj['addDevices'] = _ApiClient["default"].convertToType(data['addDevices'], ['String']);
|
|
67
64
|
}
|
|
65
|
+
if (data.hasOwnProperty('label')) {
|
|
66
|
+
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
67
|
+
}
|
|
68
68
|
if (data.hasOwnProperty('removeDevices')) {
|
|
69
69
|
obj['removeDevices'] = _ApiClient["default"].convertToType(data['removeDevices'], ['String']);
|
|
70
70
|
}
|
|
@@ -88,14 +88,14 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "validateJSON",
|
|
90
90
|
value: function validateJSON(data) {
|
|
91
|
-
// ensure the json data is a string
|
|
92
|
-
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
93
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
94
|
-
}
|
|
95
91
|
// ensure the json data is an array
|
|
96
92
|
if (!Array.isArray(data['addDevices'])) {
|
|
97
93
|
throw new Error("Expected the field `addDevices` to be an array in the JSON data but got " + data['addDevices']);
|
|
98
94
|
}
|
|
95
|
+
// ensure the json data is a string
|
|
96
|
+
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
97
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
98
|
+
}
|
|
99
99
|
// ensure the json data is an array
|
|
100
100
|
if (!Array.isArray(data['removeDevices'])) {
|
|
101
101
|
throw new Error("Expected the field `removeDevices` to be an array in the JSON data but got " + data['removeDevices']);
|
|
@@ -108,18 +108,18 @@ var UpdateFleetRequest = /*#__PURE__*/function () {
|
|
|
108
108
|
}
|
|
109
109
|
}]);
|
|
110
110
|
}();
|
|
111
|
-
/**
|
|
112
|
-
* The label for the Fleet.
|
|
113
|
-
* @member {String} label
|
|
114
|
-
*/
|
|
115
|
-
UpdateFleetRequest.prototype['label'] = undefined;
|
|
116
|
-
|
|
117
111
|
/**
|
|
118
112
|
* List of DeviceUIDs to add to fleet
|
|
119
113
|
* @member {Array.<String>} addDevices
|
|
120
114
|
*/
|
|
121
115
|
UpdateFleetRequest.prototype['addDevices'] = undefined;
|
|
122
116
|
|
|
117
|
+
/**
|
|
118
|
+
* The label for the Fleet.
|
|
119
|
+
* @member {String} label
|
|
120
|
+
*/
|
|
121
|
+
UpdateFleetRequest.prototype['label'] = undefined;
|
|
122
|
+
|
|
123
123
|
/**
|
|
124
124
|
* List of DeviceUIDs to remove from fleet
|
|
125
125
|
* @member {Array.<String>} removeDevices
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The UploadMetadata model module.
|
|
29
29
|
* @module model/UploadMetadata
|
|
30
|
-
* @version 1.0.37-beta.
|
|
30
|
+
* @version 1.0.37-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var UploadMetadata = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,14 +60,8 @@ var UploadMetadata = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new UploadMetadata();
|
|
63
|
-
if (data.hasOwnProperty('
|
|
64
|
-
obj['
|
|
65
|
-
}
|
|
66
|
-
if (data.hasOwnProperty('length')) {
|
|
67
|
-
obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number');
|
|
68
|
-
}
|
|
69
|
-
if (data.hasOwnProperty('md5')) {
|
|
70
|
-
obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
|
|
63
|
+
if (data.hasOwnProperty('contains')) {
|
|
64
|
+
obj['contains'] = _ApiClient["default"].convertToType(data['contains'], 'String');
|
|
71
65
|
}
|
|
72
66
|
if (data.hasOwnProperty('crc32')) {
|
|
73
67
|
obj['crc32'] = _ApiClient["default"].convertToType(data['crc32'], 'Number');
|
|
@@ -75,29 +69,38 @@ var UploadMetadata = /*#__PURE__*/function () {
|
|
|
75
69
|
if (data.hasOwnProperty('created')) {
|
|
76
70
|
obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Number');
|
|
77
71
|
}
|
|
72
|
+
if (data.hasOwnProperty('firmware')) {
|
|
73
|
+
obj['firmware'] = _Firmware["default"].constructFromObject(data['firmware']);
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('found')) {
|
|
76
|
+
obj['found'] = _ApiClient["default"].convertToType(data['found'], 'String');
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('length')) {
|
|
79
|
+
obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number');
|
|
80
|
+
}
|
|
81
|
+
if (data.hasOwnProperty('md5')) {
|
|
82
|
+
obj['md5'] = _ApiClient["default"].convertToType(data['md5'], 'String');
|
|
83
|
+
}
|
|
78
84
|
if (data.hasOwnProperty('modified')) {
|
|
79
85
|
obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'Number');
|
|
80
86
|
}
|
|
81
|
-
if (data.hasOwnProperty('
|
|
82
|
-
obj['
|
|
83
|
-
}
|
|
84
|
-
if (data.hasOwnProperty('contains')) {
|
|
85
|
-
obj['contains'] = _ApiClient["default"].convertToType(data['contains'], 'String');
|
|
87
|
+
if (data.hasOwnProperty('name')) {
|
|
88
|
+
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
86
89
|
}
|
|
87
|
-
if (data.hasOwnProperty('
|
|
88
|
-
obj['
|
|
90
|
+
if (data.hasOwnProperty('notes')) {
|
|
91
|
+
obj['notes'] = _ApiClient["default"].convertToType(data['notes'], 'String');
|
|
89
92
|
}
|
|
90
|
-
if (data.hasOwnProperty('
|
|
91
|
-
obj['
|
|
93
|
+
if (data.hasOwnProperty('source')) {
|
|
94
|
+
obj['source'] = _ApiClient["default"].convertToType(data['source'], 'String');
|
|
92
95
|
}
|
|
93
96
|
if (data.hasOwnProperty('tags')) {
|
|
94
97
|
obj['tags'] = _ApiClient["default"].convertToType(data['tags'], 'String');
|
|
95
98
|
}
|
|
96
|
-
if (data.hasOwnProperty('
|
|
97
|
-
obj['
|
|
99
|
+
if (data.hasOwnProperty('type')) {
|
|
100
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
98
101
|
}
|
|
99
|
-
if (data.hasOwnProperty('
|
|
100
|
-
obj['
|
|
102
|
+
if (data.hasOwnProperty('version')) {
|
|
103
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
101
104
|
}
|
|
102
105
|
} else if (data === null) {
|
|
103
106
|
return null;
|
|
@@ -114,95 +117,104 @@ var UploadMetadata = /*#__PURE__*/function () {
|
|
|
114
117
|
key: "validateJSON",
|
|
115
118
|
value: function validateJSON(data) {
|
|
116
119
|
// ensure the json data is a string
|
|
117
|
-
if (data['
|
|
118
|
-
throw new Error("Expected the field `
|
|
120
|
+
if (data['contains'] && !(typeof data['contains'] === 'string' || data['contains'] instanceof String)) {
|
|
121
|
+
throw new Error("Expected the field `contains` to be a primitive type in the JSON string but got " + data['contains']);
|
|
122
|
+
}
|
|
123
|
+
// validate the optional field `firmware`
|
|
124
|
+
if (data['firmware']) {
|
|
125
|
+
// data not null
|
|
126
|
+
_Firmware["default"].validateJSON(data['firmware']);
|
|
119
127
|
}
|
|
120
128
|
// ensure the json data is a string
|
|
121
|
-
if (data['
|
|
122
|
-
throw new Error("Expected the field `
|
|
129
|
+
if (data['found'] && !(typeof data['found'] === 'string' || data['found'] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `found` to be a primitive type in the JSON string but got " + data['found']);
|
|
123
131
|
}
|
|
124
132
|
// ensure the json data is a string
|
|
125
|
-
if (data['
|
|
126
|
-
throw new Error("Expected the field `
|
|
133
|
+
if (data['md5'] && !(typeof data['md5'] === 'string' || data['md5'] instanceof String)) {
|
|
134
|
+
throw new Error("Expected the field `md5` to be a primitive type in the JSON string but got " + data['md5']);
|
|
127
135
|
}
|
|
128
136
|
// ensure the json data is a string
|
|
129
|
-
if (data['
|
|
130
|
-
throw new Error("Expected the field `
|
|
137
|
+
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
138
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
131
139
|
}
|
|
132
140
|
// ensure the json data is a string
|
|
133
|
-
if (data['
|
|
134
|
-
throw new Error("Expected the field `
|
|
141
|
+
if (data['notes'] && !(typeof data['notes'] === 'string' || data['notes'] instanceof String)) {
|
|
142
|
+
throw new Error("Expected the field `notes` to be a primitive type in the JSON string but got " + data['notes']);
|
|
135
143
|
}
|
|
136
144
|
// ensure the json data is a string
|
|
137
|
-
if (data['
|
|
138
|
-
throw new Error("Expected the field `
|
|
145
|
+
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
|
|
146
|
+
throw new Error("Expected the field `source` to be a primitive type in the JSON string but got " + data['source']);
|
|
139
147
|
}
|
|
140
148
|
// ensure the json data is a string
|
|
141
149
|
if (data['tags'] && !(typeof data['tags'] === 'string' || data['tags'] instanceof String)) {
|
|
142
150
|
throw new Error("Expected the field `tags` to be a primitive type in the JSON string but got " + data['tags']);
|
|
143
151
|
}
|
|
144
152
|
// ensure the json data is a string
|
|
145
|
-
if (data['
|
|
146
|
-
throw new Error("Expected the field `
|
|
153
|
+
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
154
|
+
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
147
155
|
}
|
|
148
|
-
//
|
|
149
|
-
if (data['
|
|
150
|
-
|
|
151
|
-
_Firmware["default"].validateJSON(data['firmware']);
|
|
156
|
+
// ensure the json data is a string
|
|
157
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
158
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
152
159
|
}
|
|
153
160
|
return true;
|
|
154
161
|
}
|
|
155
162
|
}]);
|
|
156
163
|
}();
|
|
157
164
|
/**
|
|
158
|
-
* @member {String}
|
|
165
|
+
* @member {String} contains
|
|
159
166
|
*/
|
|
160
|
-
UploadMetadata.prototype['
|
|
167
|
+
UploadMetadata.prototype['contains'] = undefined;
|
|
161
168
|
|
|
162
169
|
/**
|
|
163
|
-
* @member {Number}
|
|
170
|
+
* @member {Number} crc32
|
|
164
171
|
*/
|
|
165
|
-
UploadMetadata.prototype['
|
|
172
|
+
UploadMetadata.prototype['crc32'] = undefined;
|
|
166
173
|
|
|
167
174
|
/**
|
|
168
|
-
* @member {
|
|
175
|
+
* @member {Number} created
|
|
169
176
|
*/
|
|
170
|
-
UploadMetadata.prototype['
|
|
177
|
+
UploadMetadata.prototype['created'] = undefined;
|
|
171
178
|
|
|
172
179
|
/**
|
|
173
|
-
* @member {
|
|
180
|
+
* @member {module:model/Firmware} firmware
|
|
174
181
|
*/
|
|
175
|
-
UploadMetadata.prototype['
|
|
182
|
+
UploadMetadata.prototype['firmware'] = undefined;
|
|
176
183
|
|
|
177
184
|
/**
|
|
178
|
-
* @member {
|
|
185
|
+
* @member {String} found
|
|
179
186
|
*/
|
|
180
|
-
UploadMetadata.prototype['
|
|
187
|
+
UploadMetadata.prototype['found'] = undefined;
|
|
181
188
|
|
|
182
189
|
/**
|
|
183
|
-
* @member {Number}
|
|
190
|
+
* @member {Number} length
|
|
184
191
|
*/
|
|
185
|
-
UploadMetadata.prototype['
|
|
192
|
+
UploadMetadata.prototype['length'] = undefined;
|
|
186
193
|
|
|
187
194
|
/**
|
|
188
|
-
* @member {String}
|
|
195
|
+
* @member {String} md5
|
|
189
196
|
*/
|
|
190
|
-
UploadMetadata.prototype['
|
|
197
|
+
UploadMetadata.prototype['md5'] = undefined;
|
|
191
198
|
|
|
192
199
|
/**
|
|
193
|
-
* @member {
|
|
200
|
+
* @member {Number} modified
|
|
194
201
|
*/
|
|
195
|
-
UploadMetadata.prototype['
|
|
202
|
+
UploadMetadata.prototype['modified'] = undefined;
|
|
196
203
|
|
|
197
204
|
/**
|
|
198
|
-
* @member {String}
|
|
205
|
+
* @member {String} name
|
|
199
206
|
*/
|
|
200
|
-
UploadMetadata.prototype['
|
|
207
|
+
UploadMetadata.prototype['name'] = undefined;
|
|
201
208
|
|
|
202
209
|
/**
|
|
203
|
-
* @member {String}
|
|
210
|
+
* @member {String} notes
|
|
204
211
|
*/
|
|
205
|
-
UploadMetadata.prototype['
|
|
212
|
+
UploadMetadata.prototype['notes'] = undefined;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* @member {String} source
|
|
216
|
+
*/
|
|
217
|
+
UploadMetadata.prototype['source'] = undefined;
|
|
206
218
|
|
|
207
219
|
/**
|
|
208
220
|
* @member {String} tags
|
|
@@ -210,12 +222,13 @@ UploadMetadata.prototype['type'] = undefined;
|
|
|
210
222
|
UploadMetadata.prototype['tags'] = undefined;
|
|
211
223
|
|
|
212
224
|
/**
|
|
213
|
-
* @member {String}
|
|
225
|
+
* @member {String} type
|
|
214
226
|
*/
|
|
215
|
-
UploadMetadata.prototype['
|
|
227
|
+
UploadMetadata.prototype['type'] = undefined;
|
|
216
228
|
|
|
217
229
|
/**
|
|
218
|
-
*
|
|
230
|
+
* User-specified version string provided at time of upload
|
|
231
|
+
* @member {String} version
|
|
219
232
|
*/
|
|
220
|
-
UploadMetadata.prototype['
|
|
233
|
+
UploadMetadata.prototype['version'] = undefined;
|
|
221
234
|
var _default = exports["default"] = UploadMetadata;
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The UserDbRoute model module.
|
|
28
28
|
* @module model/UserDbRoute
|
|
29
|
-
* @version 1.0.37-beta.
|
|
29
|
+
* @version 1.0.37-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var UserDbRoute = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,20 +59,20 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new UserDbRoute();
|
|
62
|
-
if (data.hasOwnProperty('
|
|
63
|
-
obj['
|
|
62
|
+
if (data.hasOwnProperty('disabled')) {
|
|
63
|
+
obj['disabled'] = _ApiClient["default"].convertToType(data['disabled'], 'Boolean');
|
|
64
64
|
}
|
|
65
65
|
if (data.hasOwnProperty('label')) {
|
|
66
66
|
obj['label'] = _ApiClient["default"].convertToType(data['label'], 'String');
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty('type')) {
|
|
69
|
-
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
70
|
-
}
|
|
71
68
|
if (data.hasOwnProperty('modified')) {
|
|
72
69
|
obj['modified'] = _ApiClient["default"].convertToType(data['modified'], 'String');
|
|
73
70
|
}
|
|
74
|
-
if (data.hasOwnProperty('
|
|
75
|
-
obj['
|
|
71
|
+
if (data.hasOwnProperty('type')) {
|
|
72
|
+
obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
|
|
73
|
+
}
|
|
74
|
+
if (data.hasOwnProperty('uid')) {
|
|
75
|
+
obj['uid'] = _ApiClient["default"].convertToType(data['uid'], 'String');
|
|
76
76
|
}
|
|
77
77
|
} else if (data === null) {
|
|
78
78
|
return null;
|
|
@@ -88,31 +88,31 @@ var UserDbRoute = /*#__PURE__*/function () {
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "validateJSON",
|
|
90
90
|
value: function validateJSON(data) {
|
|
91
|
-
// ensure the json data is a string
|
|
92
|
-
if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
|
|
93
|
-
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
|
|
94
|
-
}
|
|
95
91
|
// ensure the json data is a string
|
|
96
92
|
if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) {
|
|
97
93
|
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']);
|
|
98
94
|
}
|
|
99
95
|
// ensure the json data is a string
|
|
96
|
+
if (data['modified'] && !(typeof data['modified'] === 'string' || data['modified'] instanceof String)) {
|
|
97
|
+
throw new Error("Expected the field `modified` to be a primitive type in the JSON string but got " + data['modified']);
|
|
98
|
+
}
|
|
99
|
+
// ensure the json data is a string
|
|
100
100
|
if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) {
|
|
101
101
|
throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']);
|
|
102
102
|
}
|
|
103
103
|
// ensure the json data is a string
|
|
104
|
-
if (data['
|
|
105
|
-
throw new Error("Expected the field `
|
|
104
|
+
if (data['uid'] && !(typeof data['uid'] === 'string' || data['uid'] instanceof String)) {
|
|
105
|
+
throw new Error("Expected the field `uid` to be a primitive type in the JSON string but got " + data['uid']);
|
|
106
106
|
}
|
|
107
107
|
return true;
|
|
108
108
|
}
|
|
109
109
|
}]);
|
|
110
110
|
}();
|
|
111
111
|
/**
|
|
112
|
-
* @member {
|
|
113
|
-
* @default
|
|
112
|
+
* @member {Boolean} disabled
|
|
113
|
+
* @default false
|
|
114
114
|
*/
|
|
115
|
-
UserDbRoute.prototype['
|
|
115
|
+
UserDbRoute.prototype['disabled'] = false;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* @member {String} label
|
|
@@ -120,12 +120,6 @@ UserDbRoute.prototype['uid'] = 'route:8d65a087d5d290ce5bdf03aeff2becc0';
|
|
|
120
120
|
*/
|
|
121
121
|
UserDbRoute.prototype['label'] = 'success route';
|
|
122
122
|
|
|
123
|
-
/**
|
|
124
|
-
* @member {String} type
|
|
125
|
-
* @default 'http'
|
|
126
|
-
*/
|
|
127
|
-
UserDbRoute.prototype['type'] = 'http';
|
|
128
|
-
|
|
129
123
|
/**
|
|
130
124
|
* @member {String} modified
|
|
131
125
|
* @default '2020-03-09T17:58:37Z'
|
|
@@ -133,8 +127,14 @@ UserDbRoute.prototype['type'] = 'http';
|
|
|
133
127
|
UserDbRoute.prototype['modified'] = '2020-03-09T17:58:37Z';
|
|
134
128
|
|
|
135
129
|
/**
|
|
136
|
-
* @member {
|
|
137
|
-
* @default
|
|
130
|
+
* @member {String} type
|
|
131
|
+
* @default 'http'
|
|
138
132
|
*/
|
|
139
|
-
UserDbRoute.prototype['
|
|
133
|
+
UserDbRoute.prototype['type'] = 'http';
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* @member {String} uid
|
|
137
|
+
* @default 'route:8d65a087d5d290ce5bdf03aeff2becc0'
|
|
138
|
+
*/
|
|
139
|
+
UserDbRoute.prototype['uid'] = 'route:8d65a087d5d290ce5bdf03aeff2becc0';
|
|
140
140
|
var _default = exports["default"] = UserDbRoute;
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The UserDfuStateMachine model module.
|
|
30
30
|
* @module model/UserDfuStateMachine
|
|
31
|
-
* @version 1.0.37-beta.
|
|
31
|
+
* @version 1.0.37-beta.10
|
|
32
32
|
*/
|
|
33
33
|
var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,9 +61,6 @@ var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new UserDfuStateMachine();
|
|
64
|
-
if (data.hasOwnProperty('status')) {
|
|
65
|
-
obj['status'] = _UserDfuStateMachineStatus["default"].constructFromObject(data['status']);
|
|
66
|
-
}
|
|
67
64
|
if (data.hasOwnProperty('created')) {
|
|
68
65
|
obj['created'] = _ApiClient["default"].convertToType(data['created'], 'Date');
|
|
69
66
|
}
|
|
@@ -73,6 +70,9 @@ var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
|
73
70
|
if (data.hasOwnProperty('metadata')) {
|
|
74
71
|
obj['metadata'] = _UploadMetadata["default"].constructFromObject(data['metadata']);
|
|
75
72
|
}
|
|
73
|
+
if (data.hasOwnProperty('status')) {
|
|
74
|
+
obj['status'] = _UserDfuStateMachineStatus["default"].constructFromObject(data['status']);
|
|
75
|
+
}
|
|
76
76
|
} else if (data === null) {
|
|
77
77
|
return null;
|
|
78
78
|
}
|
|
@@ -87,11 +87,6 @@ var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
|
87
87
|
}, {
|
|
88
88
|
key: "validateJSON",
|
|
89
89
|
value: function validateJSON(data) {
|
|
90
|
-
// validate the optional field `status`
|
|
91
|
-
if (data['status']) {
|
|
92
|
-
// data not null
|
|
93
|
-
_UserDfuStateMachineStatus["default"].validateJSON(data['status']);
|
|
94
|
-
}
|
|
95
90
|
// ensure the json data is a string
|
|
96
91
|
if (data['from_version'] && !(typeof data['from_version'] === 'string' || data['from_version'] instanceof String)) {
|
|
97
92
|
throw new Error("Expected the field `from_version` to be a primitive type in the JSON string but got " + data['from_version']);
|
|
@@ -101,15 +96,15 @@ var UserDfuStateMachine = /*#__PURE__*/function () {
|
|
|
101
96
|
// data not null
|
|
102
97
|
_UploadMetadata["default"].validateJSON(data['metadata']);
|
|
103
98
|
}
|
|
99
|
+
// validate the optional field `status`
|
|
100
|
+
if (data['status']) {
|
|
101
|
+
// data not null
|
|
102
|
+
_UserDfuStateMachineStatus["default"].validateJSON(data['status']);
|
|
103
|
+
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
106
106
|
}]);
|
|
107
107
|
}();
|
|
108
|
-
/**
|
|
109
|
-
* @member {module:model/UserDfuStateMachineStatus} status
|
|
110
|
-
*/
|
|
111
|
-
UserDfuStateMachine.prototype['status'] = undefined;
|
|
112
|
-
|
|
113
108
|
/**
|
|
114
109
|
* @member {Date} created
|
|
115
110
|
*/
|
|
@@ -124,4 +119,9 @@ UserDfuStateMachine.prototype['from_version'] = undefined;
|
|
|
124
119
|
* @member {module:model/UploadMetadata} metadata
|
|
125
120
|
*/
|
|
126
121
|
UserDfuStateMachine.prototype['metadata'] = undefined;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @member {module:model/UserDfuStateMachineStatus} status
|
|
125
|
+
*/
|
|
126
|
+
UserDfuStateMachine.prototype['status'] = undefined;
|
|
127
127
|
var _default = exports["default"] = UserDfuStateMachine;
|