@blues-inc/notehub-js 6.2.0-beta.1 → 6.2.0-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 +292 -288
- 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 +28 -28
- 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 +435 -435
- 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 +7 -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 -59
- 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 +17 -17
- 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/Contact.js
CHANGED
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
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); } /**
|
|
15
15
|
* Notehub API
|
|
16
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: 1.2.0
|
|
19
19
|
* Contact: engineering@blues.io
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The Contact model module.
|
|
28
28
|
* @module model/Contact
|
|
29
|
-
* @version 6.2.0-beta.
|
|
29
|
+
* @version 6.2.0-beta.10
|
|
30
30
|
*/
|
|
31
31
|
var Contact = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -59,17 +59,17 @@ var Contact = /*#__PURE__*/function () {
|
|
|
59
59
|
value: function constructFromObject(data, obj) {
|
|
60
60
|
if (data) {
|
|
61
61
|
obj = obj || new Contact();
|
|
62
|
-
if (data.hasOwnProperty(
|
|
63
|
-
obj[
|
|
62
|
+
if (data.hasOwnProperty("email")) {
|
|
63
|
+
obj["email"] = _ApiClient["default"].convertToType(data["email"], "String");
|
|
64
64
|
}
|
|
65
|
-
if (data.hasOwnProperty(
|
|
66
|
-
obj[
|
|
65
|
+
if (data.hasOwnProperty("name")) {
|
|
66
|
+
obj["name"] = _ApiClient["default"].convertToType(data["name"], "String");
|
|
67
67
|
}
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("organization")) {
|
|
69
|
+
obj["organization"] = _ApiClient["default"].convertToType(data["organization"], "String");
|
|
70
70
|
}
|
|
71
|
-
if (data.hasOwnProperty(
|
|
72
|
-
obj[
|
|
71
|
+
if (data.hasOwnProperty("role")) {
|
|
72
|
+
obj["role"] = _ApiClient["default"].convertToType(data["role"], "String");
|
|
73
73
|
}
|
|
74
74
|
} else if (data === null) {
|
|
75
75
|
return null;
|
|
@@ -86,20 +86,20 @@ var Contact = /*#__PURE__*/function () {
|
|
|
86
86
|
key: "validateJSON",
|
|
87
87
|
value: function validateJSON(data) {
|
|
88
88
|
// ensure the json data is a string
|
|
89
|
-
if (data[
|
|
90
|
-
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data[
|
|
89
|
+
if (data["email"] && !(typeof data["email"] === "string" || data["email"] instanceof String)) {
|
|
90
|
+
throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data["email"]);
|
|
91
91
|
}
|
|
92
92
|
// ensure the json data is a string
|
|
93
|
-
if (data[
|
|
94
|
-
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data[
|
|
93
|
+
if (data["name"] && !(typeof data["name"] === "string" || data["name"] instanceof String)) {
|
|
94
|
+
throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data["name"]);
|
|
95
95
|
}
|
|
96
96
|
// ensure the json data is a string
|
|
97
|
-
if (data[
|
|
98
|
-
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data[
|
|
97
|
+
if (data["organization"] && !(typeof data["organization"] === "string" || data["organization"] instanceof String)) {
|
|
98
|
+
throw new Error("Expected the field `organization` to be a primitive type in the JSON string but got " + data["organization"]);
|
|
99
99
|
}
|
|
100
100
|
// ensure the json data is a string
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["role"] && !(typeof data["role"] === "string" || data["role"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data["role"]);
|
|
103
103
|
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
@@ -108,20 +108,20 @@ var Contact = /*#__PURE__*/function () {
|
|
|
108
108
|
/**
|
|
109
109
|
* @member {String} email
|
|
110
110
|
*/
|
|
111
|
-
Contact.prototype[
|
|
111
|
+
Contact.prototype["email"] = undefined;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* @member {String} name
|
|
115
115
|
*/
|
|
116
|
-
Contact.prototype[
|
|
116
|
+
Contact.prototype["name"] = undefined;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
119
|
* @member {String} organization
|
|
120
120
|
*/
|
|
121
|
-
Contact.prototype[
|
|
121
|
+
Contact.prototype["organization"] = undefined;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* @member {String} role
|
|
125
125
|
*/
|
|
126
|
-
Contact.prototype[
|
|
126
|
+
Contact.prototype["role"] = undefined;
|
|
127
127
|
var _default = exports["default"] = Contact;
|
|
@@ -14,7 +14,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); } /**
|
|
16
16
|
* Notehub API
|
|
17
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
18
18
|
*
|
|
19
19
|
* The version of the OpenAPI document: 1.2.0
|
|
20
20
|
* Contact: engineering@blues.io
|
|
@@ -27,7 +27,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
27
27
|
/**
|
|
28
28
|
* The CreateFleetRequest model module.
|
|
29
29
|
* @module model/CreateFleetRequest
|
|
30
|
-
* @version 6.2.0-beta.
|
|
30
|
+
* @version 6.2.0-beta.10
|
|
31
31
|
*/
|
|
32
32
|
var CreateFleetRequest = /*#__PURE__*/function () {
|
|
33
33
|
/**
|
|
@@ -60,17 +60,17 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
60
60
|
value: function constructFromObject(data, obj) {
|
|
61
61
|
if (data) {
|
|
62
62
|
obj = obj || new CreateFleetRequest();
|
|
63
|
-
if (data.hasOwnProperty(
|
|
64
|
-
obj[
|
|
63
|
+
if (data.hasOwnProperty("connectivity_assurance")) {
|
|
64
|
+
obj["connectivity_assurance"] = _FleetConnectivityAssurance["default"].constructFromObject(data["connectivity_assurance"]);
|
|
65
65
|
}
|
|
66
|
-
if (data.hasOwnProperty(
|
|
67
|
-
obj[
|
|
66
|
+
if (data.hasOwnProperty("label")) {
|
|
67
|
+
obj["label"] = _ApiClient["default"].convertToType(data["label"], "String");
|
|
68
68
|
}
|
|
69
|
-
if (data.hasOwnProperty(
|
|
70
|
-
obj[
|
|
69
|
+
if (data.hasOwnProperty("smart_rule")) {
|
|
70
|
+
obj["smart_rule"] = _ApiClient["default"].convertToType(data["smart_rule"], "String");
|
|
71
71
|
}
|
|
72
|
-
if (data.hasOwnProperty(
|
|
73
|
-
obj[
|
|
72
|
+
if (data.hasOwnProperty("smart_rule_enabled")) {
|
|
73
|
+
obj["smart_rule_enabled"] = _ApiClient["default"].convertToType(data["smart_rule_enabled"], "Boolean");
|
|
74
74
|
}
|
|
75
75
|
} else if (data === null) {
|
|
76
76
|
return null;
|
|
@@ -87,17 +87,17 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
87
87
|
key: "validateJSON",
|
|
88
88
|
value: function validateJSON(data) {
|
|
89
89
|
// validate the optional field `connectivity_assurance`
|
|
90
|
-
if (data[
|
|
90
|
+
if (data["connectivity_assurance"]) {
|
|
91
91
|
// data not null
|
|
92
|
-
_FleetConnectivityAssurance["default"].validateJSON(data[
|
|
92
|
+
_FleetConnectivityAssurance["default"].validateJSON(data["connectivity_assurance"]);
|
|
93
93
|
}
|
|
94
94
|
// ensure the json data is a string
|
|
95
|
-
if (data[
|
|
96
|
-
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data[
|
|
95
|
+
if (data["label"] && !(typeof data["label"] === "string" || data["label"] instanceof String)) {
|
|
96
|
+
throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data["label"]);
|
|
97
97
|
}
|
|
98
98
|
// ensure the json data is a string
|
|
99
|
-
if (data[
|
|
100
|
-
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data[
|
|
99
|
+
if (data["smart_rule"] && !(typeof data["smart_rule"] === "string" || data["smart_rule"] instanceof String)) {
|
|
100
|
+
throw new Error("Expected the field `smart_rule` to be a primitive type in the JSON string but got " + data["smart_rule"]);
|
|
101
101
|
}
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
@@ -106,22 +106,22 @@ var CreateFleetRequest = /*#__PURE__*/function () {
|
|
|
106
106
|
/**
|
|
107
107
|
* @member {module:model/FleetConnectivityAssurance} connectivity_assurance
|
|
108
108
|
*/
|
|
109
|
-
CreateFleetRequest.prototype[
|
|
109
|
+
CreateFleetRequest.prototype["connectivity_assurance"] = undefined;
|
|
110
110
|
|
|
111
111
|
/**
|
|
112
112
|
* The label, or name, for the Fleet.
|
|
113
113
|
* @member {String} label
|
|
114
114
|
*/
|
|
115
|
-
CreateFleetRequest.prototype[
|
|
115
|
+
CreateFleetRequest.prototype["label"] = undefined;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* JSONata expression that will be evaluated to determine device membership into this fleet, if the expression evaluates to a 1, the device will be included, if it evaluates to -1 it will be removed, and if it evaluates to 0 or errors it will be left unchanged.
|
|
119
119
|
* @member {String} smart_rule
|
|
120
120
|
*/
|
|
121
|
-
CreateFleetRequest.prototype[
|
|
121
|
+
CreateFleetRequest.prototype["smart_rule"] = undefined;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
124
|
* @member {Boolean} smart_rule_enabled
|
|
125
125
|
*/
|
|
126
|
-
CreateFleetRequest.prototype[
|
|
126
|
+
CreateFleetRequest.prototype["smart_rule_enabled"] = undefined;
|
|
127
127
|
var _default = exports["default"] = CreateFleetRequest;
|
|
@@ -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 CreateJob201Response model module.
|
|
31
31
|
* @module model/CreateJob201Response
|
|
32
|
-
* @version 6.2.0-beta.
|
|
32
|
+
* @version 6.2.0-beta.10
|
|
33
33
|
*/
|
|
34
34
|
var CreateJob201Response = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -50,7 +50,7 @@ var CreateJob201Response = /*#__PURE__*/function () {
|
|
|
50
50
|
return _createClass(CreateJob201Response, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
52
|
value: function initialize(obj, jobUid) {
|
|
53
|
-
obj[
|
|
53
|
+
obj["job_uid"] = jobUid;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -65,8 +65,8 @@ var CreateJob201Response = /*#__PURE__*/function () {
|
|
|
65
65
|
value: function constructFromObject(data, obj) {
|
|
66
66
|
if (data) {
|
|
67
67
|
obj = obj || new CreateJob201Response();
|
|
68
|
-
if (data.hasOwnProperty(
|
|
69
|
-
obj[
|
|
68
|
+
if (data.hasOwnProperty("job_uid")) {
|
|
69
|
+
obj["job_uid"] = _ApiClient["default"].convertToType(data["job_uid"], "String");
|
|
70
70
|
}
|
|
71
71
|
} else if (data === null) {
|
|
72
72
|
return null;
|
|
@@ -98,8 +98,8 @@ var CreateJob201Response = /*#__PURE__*/function () {
|
|
|
98
98
|
} finally {
|
|
99
99
|
_iterator.f();
|
|
100
100
|
}
|
|
101
|
-
if (data[
|
|
102
|
-
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data[
|
|
101
|
+
if (data["job_uid"] && !(typeof data["job_uid"] === "string" || data["job_uid"] instanceof String)) {
|
|
102
|
+
throw new Error("Expected the field `job_uid` to be a primitive type in the JSON string but got " + data["job_uid"]);
|
|
103
103
|
}
|
|
104
104
|
return true;
|
|
105
105
|
}
|
|
@@ -111,5 +111,5 @@ CreateJob201Response.RequiredProperties = ["job_uid"];
|
|
|
111
111
|
* The unique identifier for the created job
|
|
112
112
|
* @member {String} job_uid
|
|
113
113
|
*/
|
|
114
|
-
CreateJob201Response.prototype[
|
|
114
|
+
CreateJob201Response.prototype["job_uid"] = undefined;
|
|
115
115
|
var _default = exports["default"] = CreateJob201Response;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
9
|
+
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); }
|
|
10
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
11
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
12
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
13
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
|
+
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); } /**
|
|
15
|
+
* Notehub API
|
|
16
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
17
|
+
*
|
|
18
|
+
* The version of the OpenAPI document: 1.2.0
|
|
19
|
+
* Contact: engineering@blues.io
|
|
20
|
+
*
|
|
21
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
22
|
+
* https://openapi-generator.tech
|
|
23
|
+
* Do not edit the class manually.
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* The CreateLegacyWebhookEventRequest model module.
|
|
28
|
+
* @module model/CreateLegacyWebhookEventRequest
|
|
29
|
+
* @version 6.2.0-beta.10
|
|
30
|
+
*/
|
|
31
|
+
var CreateLegacyWebhookEventRequest = /*#__PURE__*/function () {
|
|
32
|
+
/**
|
|
33
|
+
* Constructs a new <code>CreateLegacyWebhookEventRequest</code>.
|
|
34
|
+
* @alias module:model/CreateLegacyWebhookEventRequest
|
|
35
|
+
* @extends Object
|
|
36
|
+
*/
|
|
37
|
+
function CreateLegacyWebhookEventRequest() {
|
|
38
|
+
_classCallCheck(this, CreateLegacyWebhookEventRequest);
|
|
39
|
+
CreateLegacyWebhookEventRequest.initialize(this);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Initializes the fields of this object.
|
|
44
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
45
|
+
* Only for internal use.
|
|
46
|
+
*/
|
|
47
|
+
return _createClass(CreateLegacyWebhookEventRequest, null, [{
|
|
48
|
+
key: "initialize",
|
|
49
|
+
value: function initialize(obj) {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Constructs a <code>CreateLegacyWebhookEventRequest</code> from a plain JavaScript object, optionally creating a new instance.
|
|
53
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
54
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
55
|
+
* @param {module:model/CreateLegacyWebhookEventRequest} obj Optional instance to populate.
|
|
56
|
+
* @return {module:model/CreateLegacyWebhookEventRequest} The populated <code>CreateLegacyWebhookEventRequest</code> instance.
|
|
57
|
+
*/
|
|
58
|
+
}, {
|
|
59
|
+
key: "constructFromObject",
|
|
60
|
+
value: function constructFromObject(data, obj) {
|
|
61
|
+
if (data) {
|
|
62
|
+
obj = obj || new CreateLegacyWebhookEventRequest();
|
|
63
|
+
_ApiClient["default"].constructFromObject(data, obj, "Object");
|
|
64
|
+
if (data.hasOwnProperty("body")) {
|
|
65
|
+
obj["body"] = _ApiClient["default"].convertToType(data["body"], {
|
|
66
|
+
String: Object
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
if (data.hasOwnProperty("file")) {
|
|
70
|
+
obj["file"] = _ApiClient["default"].convertToType(data["file"], "String");
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty("payload")) {
|
|
73
|
+
obj["payload"] = _ApiClient["default"].convertToType(data["payload"], "String");
|
|
74
|
+
}
|
|
75
|
+
} else if (data === null) {
|
|
76
|
+
return null;
|
|
77
|
+
}
|
|
78
|
+
return obj;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Validates the JSON data with respect to <code>CreateLegacyWebhookEventRequest</code>.
|
|
83
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
84
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>CreateLegacyWebhookEventRequest</code>.
|
|
85
|
+
*/
|
|
86
|
+
}, {
|
|
87
|
+
key: "validateJSON",
|
|
88
|
+
value: function validateJSON(data) {
|
|
89
|
+
// ensure the json data is a string
|
|
90
|
+
if (data["file"] && !(typeof data["file"] === "string" || data["file"] instanceof String)) {
|
|
91
|
+
throw new Error("Expected the field `file` to be a primitive type in the JSON string but got " + data["file"]);
|
|
92
|
+
}
|
|
93
|
+
// ensure the json data is a string
|
|
94
|
+
if (data["payload"] && !(typeof data["payload"] === "string" || data["payload"] instanceof String)) {
|
|
95
|
+
throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data["payload"]);
|
|
96
|
+
}
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
}]);
|
|
100
|
+
}();
|
|
101
|
+
/**
|
|
102
|
+
* Arbitrary JSON event body.
|
|
103
|
+
* @member {Object.<String, Object>} body
|
|
104
|
+
*/
|
|
105
|
+
CreateLegacyWebhookEventRequest.prototype["body"] = undefined;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* The notefile to which the event should be written.
|
|
109
|
+
* @member {String} file
|
|
110
|
+
*/
|
|
111
|
+
CreateLegacyWebhookEventRequest.prototype["file"] = undefined;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Optional base64-encoded binary payload.
|
|
115
|
+
* @member {String} payload
|
|
116
|
+
*/
|
|
117
|
+
CreateLegacyWebhookEventRequest.prototype["payload"] = undefined;
|
|
118
|
+
var _default = exports["default"] = CreateLegacyWebhookEventRequest;
|