@blues-inc/notehub-js 6.2.0-beta.3 → 6.2.0-beta.5
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 +292 -285
- package/dist/ApiClient.js +150 -150
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +31 -31
- package/dist/api/BillingAccountApi.js +30 -30
- package/dist/api/DeviceApi.js +356 -356
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/JobsApi.js +74 -127
- package/dist/api/MonitorApi.js +52 -52
- package/dist/api/ProjectApi.js +519 -406
- package/dist/api/RouteApi.js +83 -83
- package/dist/api/UsageApi.js +67 -67
- package/dist/api/WebhookApi.js +366 -53
- package/dist/index.js +14 -0
- package/dist/model/AWSRoleConfig.js +14 -14
- package/dist/model/AddDeviceToFleetsRequest.js +8 -8
- package/dist/model/Alert.js +74 -76
- package/dist/model/AlertDataInner.js +36 -36
- package/dist/model/AlertNotificationsInner.js +18 -18
- package/dist/model/AwsRoute.js +70 -70
- package/dist/model/AzureRoute.js +43 -43
- package/dist/model/BillingAccount.js +21 -21
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/BlynkRoute.js +28 -28
- package/dist/model/Body.js +5 -5
- package/dist/model/CancelJobRun200Response.js +6 -6
- package/dist/model/CellularPlan.js +34 -34
- package/dist/model/CloneProjectRequest.js +20 -20
- package/dist/model/Contact.js +22 -22
- package/dist/model/CreateFleetRequest.js +20 -20
- package/dist/model/CreateJob201Response.js +8 -8
- package/dist/model/CreateLegacyWebhookEventRequest.js +118 -0
- package/dist/model/CreateMonitor.js +127 -128
- package/dist/model/CreateProductRequest.js +22 -22
- package/dist/model/CreateProjectRequest.js +16 -16
- package/dist/model/CreateUpdateRepository.js +17 -17
- package/dist/model/CurrentFirmware.js +12 -12
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +65 -65
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +19 -19
- package/dist/model/DataUsage.js +14 -14
- package/dist/model/DatacakeRoute.js +35 -35
- package/dist/model/DeleteDeviceFromFleetsRequest.js +8 -8
- package/dist/model/DeleteJob200Response.js +6 -6
- package/dist/model/DeleteNotefilesRequest.js +7 -7
- package/dist/model/Device.js +106 -107
- package/dist/model/DeviceDfuHistory.js +19 -20
- package/dist/model/DeviceDfuHistoryCurrent.js +32 -32
- package/dist/model/DeviceDfuHistoryPage.js +12 -13
- package/dist/model/DeviceDfuStateMachine.js +24 -25
- package/dist/model/DeviceDfuStateMachineNode.js +22 -22
- package/dist/model/DeviceDfuStatus.js +20 -20
- package/dist/model/DeviceDfuStatusPage.js +12 -13
- package/dist/model/DeviceSession.js +221 -221
- package/dist/model/DeviceTowerInfo.js +14 -14
- package/dist/model/DeviceUsage.js +32 -32
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +67 -69
- package/dist/model/EnvVar.js +18 -18
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +31 -31
- package/dist/model/Event.js +248 -248
- package/dist/model/Filter.js +16 -16
- package/dist/model/Firmware.js +49 -49
- package/dist/model/FirmwareInfo.js +68 -68
- package/dist/model/Fleet.js +38 -38
- package/dist/model/FleetConnectivityAssurance.js +5 -5
- package/dist/model/GetAlerts200Response.js +14 -15
- package/dist/model/GetBillingAccount200Response.js +25 -25
- package/dist/model/GetBillingAccount200ResponsePlan.js +22 -22
- package/dist/model/GetBillingAccountBalanceHistory200Response.js +9 -10
- package/dist/model/GetBillingAccountBalanceHistory200ResponseDataInner.js +17 -17
- package/dist/model/GetBillingAccounts200Response.js +9 -10
- package/dist/model/GetDataUsage200Response.js +12 -13
- package/dist/model/GetDataUsage200ResponseDataInner.js +43 -44
- package/dist/model/GetDbNote200Response.js +13 -13
- package/dist/model/GetDeviceEnvironmentVariablesByPin200Response.js +16 -16
- package/dist/model/GetDeviceFleets200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200Response.js +11 -12
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +19 -19
- package/dist/model/GetDeviceLatestEvents200Response.js +9 -10
- package/dist/model/GetDevicePlans200Response.js +9 -10
- package/dist/model/GetDevicePublicKey200Response.js +16 -16
- package/dist/model/GetDevicePublicKeys200Response.js +16 -17
- package/dist/model/GetDevicePublicKeys200ResponseDevicePublicKeysInner.js +12 -12
- package/dist/model/GetDeviceSessions200Response.js +16 -17
- package/dist/model/GetDevices200Response.js +16 -17
- package/dist/model/GetEvents200Response.js +20 -21
- package/dist/model/GetEventsByCursor200Response.js +23 -24
- package/dist/model/GetJobRuns200Response.js +11 -12
- package/dist/model/GetJobs200Response.js +11 -12
- package/dist/model/GetNotefile200Response.js +11 -11
- package/dist/model/GetProducts200Response.js +9 -10
- package/dist/model/GetProjectMembers200Response.js +11 -12
- package/dist/model/GetProjects200Response.js +9 -10
- package/dist/model/GetRouteLogsUsage200Response.js +14 -15
- package/dist/model/GetSessionsUsage200Response.js +15 -16
- package/dist/model/GetWebhooks200Response.js +9 -10
- package/dist/model/GoogleRoute.js +33 -33
- package/dist/model/HttpRoute.js +35 -35
- package/dist/model/Job.js +28 -50
- package/dist/model/JobRun.js +57 -57
- package/dist/model/Location.js +40 -40
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +12 -12
- package/dist/model/Monitor.js +101 -102
- package/dist/model/MonitorAlertRoutesInner.js +10 -9
- package/dist/model/MqttRoute.js +68 -68
- package/dist/model/Note.js +31 -31
- package/dist/model/NoteInput.js +9 -9
- package/dist/model/Notefile.js +22 -23
- package/dist/model/NotefileSchema.js +18 -19
- package/dist/model/NotehubRoute.js +103 -103
- package/dist/model/NotehubRouteSummary.js +23 -23
- package/dist/model/OAuth2Error.js +20 -20
- package/dist/model/OAuth2TokenResponse.js +23 -23
- package/dist/model/PersonalAccessToken.js +34 -34
- package/dist/model/PersonalAccessTokenCreatedBy.js +17 -17
- package/dist/model/PersonalAccessTokenInfo.js +18 -18
- package/dist/model/PersonalAccessTokenSecret.js +12 -12
- package/dist/model/Product.js +26 -26
- package/dist/model/Project.js +34 -34
- package/dist/model/ProjectMember.js +22 -22
- package/dist/model/ProvisionDeviceRequest.js +18 -18
- package/dist/model/ProxyRoute.js +29 -29
- package/dist/model/QubitroRoute.js +33 -33
- package/dist/model/RadRoute.js +31 -31
- package/dist/model/Repository.js +22 -22
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +38 -38
- package/dist/model/RouteTransformSettings.js +18 -18
- package/dist/model/RunJob200Response.js +8 -8
- package/dist/model/S3ArchiveRoute.js +79 -79
- package/dist/model/SatelliteDataUsage.js +18 -18
- package/dist/model/SatellitePlan.js +29 -29
- package/dist/model/SchemaProperty.js +36 -38
- package/dist/model/SignalDevice200Response.js +5 -5
- package/dist/model/SimUsage.js +19 -19
- package/dist/model/SlackBearerNotification.js +25 -25
- package/dist/model/SlackRoute.js +48 -48
- package/dist/model/SlackWebHookNotification.js +20 -20
- package/dist/model/SnowflakeRoute.js +45 -45
- package/dist/model/SnowpipeStreamingRoute.js +60 -60
- package/dist/model/ThingworxRoute.js +33 -33
- package/dist/model/TowerLocation.js +54 -54
- package/dist/model/TwilioRoute.js +43 -43
- package/dist/model/UpdateFleetRequest.js +33 -33
- package/dist/model/UpdateHostFirmwareRequest.js +117 -0
- package/dist/model/UploadMetadata.js +64 -64
- package/dist/model/UsageData.js +33 -33
- package/dist/model/UsageEventsData.js +49 -49
- package/dist/model/UsageEventsResponse.js +14 -15
- package/dist/model/UsageRouteLogsData.js +30 -30
- package/dist/model/UsageSessionsData.js +43 -43
- package/dist/model/UserDfuStateMachine.js +20 -20
- package/dist/model/UserDfuStateMachineStatus.js +20 -20
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +3 -3
package/dist/model/HttpRoute.js
CHANGED
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
28
28
|
/**
|
|
29
29
|
* The HttpRoute model module.
|
|
30
30
|
* @module model/HttpRoute
|
|
31
|
-
* @version 6.2.0-beta.
|
|
31
|
+
* @version 6.2.0-beta.5
|
|
32
32
|
*/
|
|
33
33
|
var HttpRoute = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
@@ -61,31 +61,31 @@ var HttpRoute = /*#__PURE__*/function () {
|
|
|
61
61
|
value: function constructFromObject(data, obj) {
|
|
62
62
|
if (data) {
|
|
63
63
|
obj = obj || new HttpRoute();
|
|
64
|
-
if (data.hasOwnProperty(
|
|
65
|
-
obj[
|
|
64
|
+
if (data.hasOwnProperty("disable_http_headers")) {
|
|
65
|
+
obj["disable_http_headers"] = _ApiClient["default"].convertToType(data["disable_http_headers"], "Boolean");
|
|
66
66
|
}
|
|
67
|
-
if (data.hasOwnProperty(
|
|
68
|
-
obj[
|
|
67
|
+
if (data.hasOwnProperty("filter")) {
|
|
68
|
+
obj["filter"] = _Filter["default"].constructFromObject(data["filter"]);
|
|
69
69
|
}
|
|
70
|
-
if (data.hasOwnProperty(
|
|
71
|
-
obj[
|
|
70
|
+
if (data.hasOwnProperty("fleets")) {
|
|
71
|
+
obj["fleets"] = _ApiClient["default"].convertToType(data["fleets"], ["String"]);
|
|
72
72
|
}
|
|
73
|
-
if (data.hasOwnProperty(
|
|
74
|
-
obj[
|
|
75
|
-
|
|
73
|
+
if (data.hasOwnProperty("http_headers")) {
|
|
74
|
+
obj["http_headers"] = _ApiClient["default"].convertToType(data["http_headers"], {
|
|
75
|
+
String: "String"
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
if (data.hasOwnProperty(
|
|
79
|
-
obj[
|
|
78
|
+
if (data.hasOwnProperty("throttle_ms")) {
|
|
79
|
+
obj["throttle_ms"] = _ApiClient["default"].convertToType(data["throttle_ms"], "Number");
|
|
80
80
|
}
|
|
81
|
-
if (data.hasOwnProperty(
|
|
82
|
-
obj[
|
|
81
|
+
if (data.hasOwnProperty("timeout")) {
|
|
82
|
+
obj["timeout"] = _ApiClient["default"].convertToType(data["timeout"], "Number");
|
|
83
83
|
}
|
|
84
|
-
if (data.hasOwnProperty(
|
|
85
|
-
obj[
|
|
84
|
+
if (data.hasOwnProperty("transform")) {
|
|
85
|
+
obj["transform"] = _RouteTransformSettings["default"].constructFromObject(data["transform"]);
|
|
86
86
|
}
|
|
87
|
-
if (data.hasOwnProperty(
|
|
88
|
-
obj[
|
|
87
|
+
if (data.hasOwnProperty("url")) {
|
|
88
|
+
obj["url"] = _ApiClient["default"].convertToType(data["url"], "String");
|
|
89
89
|
}
|
|
90
90
|
} else if (data === null) {
|
|
91
91
|
return null;
|
|
@@ -102,22 +102,22 @@ var HttpRoute = /*#__PURE__*/function () {
|
|
|
102
102
|
key: "validateJSON",
|
|
103
103
|
value: function validateJSON(data) {
|
|
104
104
|
// validate the optional field `filter`
|
|
105
|
-
if (data[
|
|
105
|
+
if (data["filter"]) {
|
|
106
106
|
// data not null
|
|
107
|
-
_Filter["default"].validateJSON(data[
|
|
107
|
+
_Filter["default"].validateJSON(data["filter"]);
|
|
108
108
|
}
|
|
109
109
|
// ensure the json data is an array
|
|
110
|
-
if (!Array.isArray(data[
|
|
111
|
-
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data[
|
|
110
|
+
if (!Array.isArray(data["fleets"])) {
|
|
111
|
+
throw new Error("Expected the field `fleets` to be an array in the JSON data but got " + data["fleets"]);
|
|
112
112
|
}
|
|
113
113
|
// validate the optional field `transform`
|
|
114
|
-
if (data[
|
|
114
|
+
if (data["transform"]) {
|
|
115
115
|
// data not null
|
|
116
|
-
_RouteTransformSettings["default"].validateJSON(data[
|
|
116
|
+
_RouteTransformSettings["default"].validateJSON(data["transform"]);
|
|
117
117
|
}
|
|
118
118
|
// ensure the json data is a string
|
|
119
|
-
if (data[
|
|
120
|
-
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data[
|
|
119
|
+
if (data["url"] && !(typeof data["url"] === "string" || data["url"] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data["url"]);
|
|
121
121
|
}
|
|
122
122
|
return true;
|
|
123
123
|
}
|
|
@@ -126,41 +126,41 @@ var HttpRoute = /*#__PURE__*/function () {
|
|
|
126
126
|
/**
|
|
127
127
|
* @member {Boolean} disable_http_headers
|
|
128
128
|
*/
|
|
129
|
-
HttpRoute.prototype[
|
|
129
|
+
HttpRoute.prototype["disable_http_headers"] = undefined;
|
|
130
130
|
|
|
131
131
|
/**
|
|
132
132
|
* @member {module:model/Filter} filter
|
|
133
133
|
*/
|
|
134
|
-
HttpRoute.prototype[
|
|
134
|
+
HttpRoute.prototype["filter"] = undefined;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* If non-empty, applies only to the listed fleets.
|
|
138
138
|
* @member {Array.<String>} fleets
|
|
139
139
|
*/
|
|
140
|
-
HttpRoute.prototype[
|
|
140
|
+
HttpRoute.prototype["fleets"] = undefined;
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* @member {Object.<String, String>} http_headers
|
|
144
144
|
*/
|
|
145
|
-
HttpRoute.prototype[
|
|
145
|
+
HttpRoute.prototype["http_headers"] = undefined;
|
|
146
146
|
|
|
147
147
|
/**
|
|
148
148
|
* @member {Number} throttle_ms
|
|
149
149
|
*/
|
|
150
|
-
HttpRoute.prototype[
|
|
150
|
+
HttpRoute.prototype["throttle_ms"] = undefined;
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* @member {Number} timeout
|
|
154
154
|
*/
|
|
155
|
-
HttpRoute.prototype[
|
|
155
|
+
HttpRoute.prototype["timeout"] = undefined;
|
|
156
156
|
|
|
157
157
|
/**
|
|
158
158
|
* @member {module:model/RouteTransformSettings} transform
|
|
159
159
|
*/
|
|
160
|
-
HttpRoute.prototype[
|
|
160
|
+
HttpRoute.prototype["transform"] = undefined;
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* @member {String} url
|
|
164
164
|
*/
|
|
165
|
-
HttpRoute.prototype[
|
|
165
|
+
HttpRoute.prototype["url"] = undefined;
|
|
166
166
|
var _default = exports["default"] = HttpRoute;
|
package/dist/model/Job.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The Job model module.
|
|
31
31
|
* @module model/Job
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var Job = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -53,10 +53,10 @@ var Job = /*#__PURE__*/function () {
|
|
|
53
53
|
return _createClass(Job, null, [{
|
|
54
54
|
key: "initialize",
|
|
55
55
|
value: function initialize(obj, created, createdBy, jobUid, name) {
|
|
56
|
-
obj[
|
|
57
|
-
obj[
|
|
58
|
-
obj[
|
|
59
|
-
obj[
|
|
56
|
+
obj["created"] = created;
|
|
57
|
+
obj["created_by"] = createdBy;
|
|
58
|
+
obj["job_uid"] = jobUid;
|
|
59
|
+
obj["name"] = name;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
@@ -71,28 +71,22 @@ var Job = /*#__PURE__*/function () {
|
|
|
71
71
|
value: function constructFromObject(data, obj) {
|
|
72
72
|
if (data) {
|
|
73
73
|
obj = obj || new Job();
|
|
74
|
-
if (data.hasOwnProperty(
|
|
75
|
-
obj[
|
|
74
|
+
if (data.hasOwnProperty("created")) {
|
|
75
|
+
obj["created"] = _ApiClient["default"].convertToType(data["created"], "Number");
|
|
76
76
|
}
|
|
77
|
-
if (data.hasOwnProperty(
|
|
78
|
-
obj[
|
|
77
|
+
if (data.hasOwnProperty("created_by")) {
|
|
78
|
+
obj["created_by"] = _ApiClient["default"].convertToType(data["created_by"], "String");
|
|
79
79
|
}
|
|
80
|
-
if (data.hasOwnProperty(
|
|
81
|
-
obj[
|
|
82
|
-
|
|
80
|
+
if (data.hasOwnProperty("definition")) {
|
|
81
|
+
obj["definition"] = _ApiClient["default"].convertToType(data["definition"], {
|
|
82
|
+
String: Object
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("job_uid")) {
|
|
86
|
+
obj["job_uid"] = _ApiClient["default"].convertToType(data["job_uid"], "String");
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
90
|
-
}
|
|
91
|
-
if (data.hasOwnProperty('last_run_status')) {
|
|
92
|
-
obj['last_run_status'] = _ApiClient["default"].convertToType(data['last_run_status'], 'String');
|
|
93
|
-
}
|
|
94
|
-
if (data.hasOwnProperty('name')) {
|
|
95
|
-
obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
|
|
88
|
+
if (data.hasOwnProperty("name")) {
|
|
89
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
96
90
|
}
|
|
97
91
|
} else if (data === null) {
|
|
98
92
|
return null;
|
|
@@ -124,20 +118,16 @@ var Job = /*#__PURE__*/function () {
|
|
|
124
118
|
} finally {
|
|
125
119
|
_iterator.f();
|
|
126
120
|
}
|
|
127
|
-
if (data[
|
|
128
|
-
throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data[
|
|
121
|
+
if (data["created_by"] && !(typeof data["created_by"] === "string" || data["created_by"] instanceof String)) {
|
|
122
|
+
throw new Error("Expected the field `created_by` to be a primitive type in the JSON string but got " + data["created_by"]);
|
|
129
123
|
}
|
|
130
124
|
// ensure the json data is a string
|
|
131
|
-
if (data[
|
|
132
|
-
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data[
|
|
125
|
+
if (data["job_uid"] && !(typeof data["job_uid"] === "string" || data["job_uid"] instanceof String)) {
|
|
126
|
+
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data["job_uid"]);
|
|
133
127
|
}
|
|
134
128
|
// ensure the json data is a string
|
|
135
|
-
if (data[
|
|
136
|
-
throw new Error("Expected the field `
|
|
137
|
-
}
|
|
138
|
-
// ensure the json data is a string
|
|
139
|
-
if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) {
|
|
140
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']);
|
|
129
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
130
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
141
131
|
}
|
|
142
132
|
return true;
|
|
143
133
|
}
|
|
@@ -149,41 +139,29 @@ Job.RequiredProperties = ["created", "created_by", "job_uid", "name"];
|
|
|
149
139
|
* Unix timestamp when job was created
|
|
150
140
|
* @member {Number} created
|
|
151
141
|
*/
|
|
152
|
-
Job.prototype[
|
|
142
|
+
Job.prototype["created"] = undefined;
|
|
153
143
|
|
|
154
144
|
/**
|
|
155
145
|
* User who created the job
|
|
156
146
|
* @member {String} created_by
|
|
157
147
|
*/
|
|
158
|
-
Job.prototype[
|
|
148
|
+
Job.prototype["created_by"] = undefined;
|
|
159
149
|
|
|
160
150
|
/**
|
|
161
151
|
* Full job definition (only in detail view)
|
|
162
152
|
* @member {Object.<String, Object>} definition
|
|
163
153
|
*/
|
|
164
|
-
Job.prototype[
|
|
154
|
+
Job.prototype["definition"] = undefined;
|
|
165
155
|
|
|
166
156
|
/**
|
|
167
157
|
* Unique identifier for the job
|
|
168
158
|
* @member {String} job_uid
|
|
169
159
|
*/
|
|
170
|
-
Job.prototype[
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Unix timestamp when the job was last run
|
|
174
|
-
* @member {Number} last_run
|
|
175
|
-
*/
|
|
176
|
-
Job.prototype['last_run'] = undefined;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Status of the most recent job run
|
|
180
|
-
* @member {String} last_run_status
|
|
181
|
-
*/
|
|
182
|
-
Job.prototype['last_run_status'] = undefined;
|
|
160
|
+
Job.prototype["job_uid"] = undefined;
|
|
183
161
|
|
|
184
162
|
/**
|
|
185
163
|
* Human-readable job name
|
|
186
164
|
* @member {String} name
|
|
187
165
|
*/
|
|
188
|
-
Job.prototype[
|
|
166
|
+
Job.prototype["name"] = undefined;
|
|
189
167
|
var _default = exports["default"] = Job;
|
package/dist/model/JobRun.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* Notehub API
|
|
19
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
19
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: 1.2.0
|
|
22
22
|
* Contact: engineering@blues.io
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The JobRun model module.
|
|
31
31
|
* @module model/JobRun
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.5
|
|
33
33
|
*/
|
|
34
34
|
var JobRun = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -57,14 +57,14 @@ var JobRun = /*#__PURE__*/function () {
|
|
|
57
57
|
return _createClass(JobRun, null, [{
|
|
58
58
|
key: "initialize",
|
|
59
59
|
value: function initialize(obj, dryRun, jobName, jobUid, reportUid, status, submitted, submittedBy, updated) {
|
|
60
|
-
obj[
|
|
61
|
-
obj[
|
|
62
|
-
obj[
|
|
63
|
-
obj[
|
|
64
|
-
obj[
|
|
65
|
-
obj[
|
|
66
|
-
obj[
|
|
67
|
-
obj[
|
|
60
|
+
obj["dry_run"] = dryRun;
|
|
61
|
+
obj["job_name"] = jobName;
|
|
62
|
+
obj["job_uid"] = jobUid;
|
|
63
|
+
obj["report_uid"] = reportUid;
|
|
64
|
+
obj["status"] = status;
|
|
65
|
+
obj["submitted"] = submitted;
|
|
66
|
+
obj["submitted_by"] = submittedBy;
|
|
67
|
+
obj["updated"] = updated;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -79,43 +79,43 @@ var JobRun = /*#__PURE__*/function () {
|
|
|
79
79
|
value: function constructFromObject(data, obj) {
|
|
80
80
|
if (data) {
|
|
81
81
|
obj = obj || new JobRun();
|
|
82
|
-
if (data.hasOwnProperty(
|
|
83
|
-
obj[
|
|
82
|
+
if (data.hasOwnProperty("cancel")) {
|
|
83
|
+
obj["cancel"] = _ApiClient["default"].convertToType(data["cancel"], "Boolean");
|
|
84
84
|
}
|
|
85
|
-
if (data.hasOwnProperty(
|
|
86
|
-
obj[
|
|
85
|
+
if (data.hasOwnProperty("completed")) {
|
|
86
|
+
obj["completed"] = _ApiClient["default"].convertToType(data["completed"], "Number");
|
|
87
87
|
}
|
|
88
|
-
if (data.hasOwnProperty(
|
|
89
|
-
obj[
|
|
88
|
+
if (data.hasOwnProperty("dry_run")) {
|
|
89
|
+
obj["dry_run"] = _ApiClient["default"].convertToType(data["dry_run"], "Boolean");
|
|
90
90
|
}
|
|
91
|
-
if (data.hasOwnProperty(
|
|
92
|
-
obj[
|
|
91
|
+
if (data.hasOwnProperty("job_name")) {
|
|
92
|
+
obj["job_name"] = _ApiClient["default"].convertToType(data["job_name"], "String");
|
|
93
93
|
}
|
|
94
|
-
if (data.hasOwnProperty(
|
|
95
|
-
obj[
|
|
94
|
+
if (data.hasOwnProperty("job_uid")) {
|
|
95
|
+
obj["job_uid"] = _ApiClient["default"].convertToType(data["job_uid"], "String");
|
|
96
96
|
}
|
|
97
|
-
if (data.hasOwnProperty(
|
|
98
|
-
obj[
|
|
97
|
+
if (data.hasOwnProperty("report_uid")) {
|
|
98
|
+
obj["report_uid"] = _ApiClient["default"].convertToType(data["report_uid"], "String");
|
|
99
99
|
}
|
|
100
|
-
if (data.hasOwnProperty(
|
|
101
|
-
obj[
|
|
102
|
-
|
|
100
|
+
if (data.hasOwnProperty("results")) {
|
|
101
|
+
obj["results"] = _ApiClient["default"].convertToType(data["results"], {
|
|
102
|
+
String: Object
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
if (data.hasOwnProperty(
|
|
106
|
-
obj[
|
|
105
|
+
if (data.hasOwnProperty("started")) {
|
|
106
|
+
obj["started"] = _ApiClient["default"].convertToType(data["started"], "Number");
|
|
107
107
|
}
|
|
108
|
-
if (data.hasOwnProperty(
|
|
109
|
-
obj[
|
|
108
|
+
if (data.hasOwnProperty("status")) {
|
|
109
|
+
obj["status"] = _ApiClient["default"].convertToType(data["status"], "String");
|
|
110
110
|
}
|
|
111
|
-
if (data.hasOwnProperty(
|
|
112
|
-
obj[
|
|
111
|
+
if (data.hasOwnProperty("submitted")) {
|
|
112
|
+
obj["submitted"] = _ApiClient["default"].convertToType(data["submitted"], "Number");
|
|
113
113
|
}
|
|
114
|
-
if (data.hasOwnProperty(
|
|
115
|
-
obj[
|
|
114
|
+
if (data.hasOwnProperty("submitted_by")) {
|
|
115
|
+
obj["submitted_by"] = _ApiClient["default"].convertToType(data["submitted_by"], "String");
|
|
116
116
|
}
|
|
117
|
-
if (data.hasOwnProperty(
|
|
118
|
-
obj[
|
|
117
|
+
if (data.hasOwnProperty("updated")) {
|
|
118
|
+
obj["updated"] = _ApiClient["default"].convertToType(data["updated"], "Number");
|
|
119
119
|
}
|
|
120
120
|
} else if (data === null) {
|
|
121
121
|
return null;
|
|
@@ -147,24 +147,24 @@ var JobRun = /*#__PURE__*/function () {
|
|
|
147
147
|
} finally {
|
|
148
148
|
_iterator.f();
|
|
149
149
|
}
|
|
150
|
-
if (data[
|
|
151
|
-
throw new Error("Expected the field `job_name` to be a primitive type in the JSON string but got " + data[
|
|
150
|
+
if (data["job_name"] && !(typeof data["job_name"] === "string" || data["job_name"] instanceof String)) {
|
|
151
|
+
throw new Error("Expected the field `job_name` to be a primitive type in the JSON string but got " + data["job_name"]);
|
|
152
152
|
}
|
|
153
153
|
// ensure the json data is a string
|
|
154
|
-
if (data[
|
|
155
|
-
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data[
|
|
154
|
+
if (data["job_uid"] && !(typeof data["job_uid"] === "string" || data["job_uid"] instanceof String)) {
|
|
155
|
+
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data["job_uid"]);
|
|
156
156
|
}
|
|
157
157
|
// ensure the json data is a string
|
|
158
|
-
if (data[
|
|
159
|
-
throw new Error("Expected the field `report_uid` to be a primitive type in the JSON string but got " + data[
|
|
158
|
+
if (data["report_uid"] && !(typeof data["report_uid"] === "string" || data["report_uid"] instanceof String)) {
|
|
159
|
+
throw new Error("Expected the field `report_uid` to be a primitive type in the JSON string but got " + data["report_uid"]);
|
|
160
160
|
}
|
|
161
161
|
// ensure the json data is a string
|
|
162
|
-
if (data[
|
|
163
|
-
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data[
|
|
162
|
+
if (data["status"] && !(typeof data["status"] === "string" || data["status"] instanceof String)) {
|
|
163
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data["status"]);
|
|
164
164
|
}
|
|
165
165
|
// ensure the json data is a string
|
|
166
|
-
if (data[
|
|
167
|
-
throw new Error("Expected the field `submitted_by` to be a primitive type in the JSON string but got " + data[
|
|
166
|
+
if (data["submitted_by"] && !(typeof data["submitted_by"] === "string" || data["submitted_by"] instanceof String)) {
|
|
167
|
+
throw new Error("Expected the field `submitted_by` to be a primitive type in the JSON string but got " + data["submitted_by"]);
|
|
168
168
|
}
|
|
169
169
|
return true;
|
|
170
170
|
}
|
|
@@ -176,71 +176,71 @@ JobRun.RequiredProperties = ["dry_run", "job_name", "job_uid", "report_uid", "st
|
|
|
176
176
|
* Whether cancellation was requested
|
|
177
177
|
* @member {Boolean} cancel
|
|
178
178
|
*/
|
|
179
|
-
JobRun.prototype[
|
|
179
|
+
JobRun.prototype["cancel"] = undefined;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
182
|
* Unix timestamp when completed
|
|
183
183
|
* @member {Number} completed
|
|
184
184
|
*/
|
|
185
|
-
JobRun.prototype[
|
|
185
|
+
JobRun.prototype["completed"] = undefined;
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
188
|
* Whether this was a dry run
|
|
189
189
|
* @member {Boolean} dry_run
|
|
190
190
|
*/
|
|
191
|
-
JobRun.prototype[
|
|
191
|
+
JobRun.prototype["dry_run"] = undefined;
|
|
192
192
|
|
|
193
193
|
/**
|
|
194
194
|
* Name of the job
|
|
195
195
|
* @member {String} job_name
|
|
196
196
|
*/
|
|
197
|
-
JobRun.prototype[
|
|
197
|
+
JobRun.prototype["job_name"] = undefined;
|
|
198
198
|
|
|
199
199
|
/**
|
|
200
200
|
* Unique identifier for the job
|
|
201
201
|
* @member {String} job_uid
|
|
202
202
|
*/
|
|
203
|
-
JobRun.prototype[
|
|
203
|
+
JobRun.prototype["job_uid"] = undefined;
|
|
204
204
|
|
|
205
205
|
/**
|
|
206
206
|
* Unique identifier for this run
|
|
207
207
|
* @member {String} report_uid
|
|
208
208
|
*/
|
|
209
|
-
JobRun.prototype[
|
|
209
|
+
JobRun.prototype["report_uid"] = undefined;
|
|
210
210
|
|
|
211
211
|
/**
|
|
212
212
|
* Full results (only in detail view)
|
|
213
213
|
* @member {Object.<String, Object>} results
|
|
214
214
|
*/
|
|
215
|
-
JobRun.prototype[
|
|
215
|
+
JobRun.prototype["results"] = undefined;
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Unix timestamp when started
|
|
219
219
|
* @member {Number} started
|
|
220
220
|
*/
|
|
221
|
-
JobRun.prototype[
|
|
221
|
+
JobRun.prototype["started"] = undefined;
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
224
|
* Current status (submitted, running, completed, cancelled, failed)
|
|
225
225
|
* @member {String} status
|
|
226
226
|
*/
|
|
227
|
-
JobRun.prototype[
|
|
227
|
+
JobRun.prototype["status"] = undefined;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
230
|
* Unix timestamp when submitted
|
|
231
231
|
* @member {Number} submitted
|
|
232
232
|
*/
|
|
233
|
-
JobRun.prototype[
|
|
233
|
+
JobRun.prototype["submitted"] = undefined;
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* User who submitted the run
|
|
237
237
|
* @member {String} submitted_by
|
|
238
238
|
*/
|
|
239
|
-
JobRun.prototype[
|
|
239
|
+
JobRun.prototype["submitted_by"] = undefined;
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
242
|
* Unix timestamp of last update
|
|
243
243
|
* @member {Number} updated
|
|
244
244
|
*/
|
|
245
|
-
JobRun.prototype[
|
|
245
|
+
JobRun.prototype["updated"] = undefined;
|
|
246
246
|
var _default = exports["default"] = JobRun;
|