@unified-api/typescript-sdk 1.0.4 → 1.0.6
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/dist/sdk/account.js +1 -1
- package/dist/sdk/accounting.js +5 -5
- package/dist/sdk/activity.js +1 -1
- package/dist/sdk/application.js +1 -1
- package/dist/sdk/ats.js +7 -7
- package/dist/sdk/candidate.js +1 -1
- package/dist/sdk/collection.js +1 -1
- package/dist/sdk/commerce.js +4 -4
- package/dist/sdk/company.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/contact.js +3 -3
- package/dist/sdk/crm.js +6 -6
- package/dist/sdk/customer.js +1 -1
- package/dist/sdk/deal.js +1 -1
- package/dist/sdk/document.js +1 -1
- package/dist/sdk/employee.js +1 -1
- package/dist/sdk/event.js +1 -1
- package/dist/sdk/file.js +1 -1
- package/dist/sdk/group.js +1 -1
- package/dist/sdk/hris.js +2 -2
- package/dist/sdk/interview.js +1 -1
- package/dist/sdk/inventory.js +1 -1
- package/dist/sdk/invoice.js +1 -1
- package/dist/sdk/item.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/lead.js +1 -1
- package/dist/sdk/link.js +1 -1
- package/dist/sdk/list.js +1 -1
- package/dist/sdk/location.js +1 -1
- package/dist/sdk/martech.js +2 -2
- package/dist/sdk/member.js +1 -1
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.d.ts +1 -1
- package/dist/sdk/models/operations/patchunifiedwebhooktrigger.js +1 -1
- package/dist/sdk/models/operations/removeaccountingaccount.d.ts +1 -1
- package/dist/sdk/models/operations/removeaccountingaccount.js +1 -1
- package/dist/sdk/models/operations/removeaccountingcontact.d.ts +1 -1
- package/dist/sdk/models/operations/removeaccountingcontact.js +1 -1
- package/dist/sdk/models/operations/removeaccountinginvoice.d.ts +1 -1
- package/dist/sdk/models/operations/removeaccountinginvoice.js +1 -1
- package/dist/sdk/models/operations/removeaccountingtaxrate.d.ts +1 -1
- package/dist/sdk/models/operations/removeaccountingtaxrate.js +1 -1
- package/dist/sdk/models/operations/removeaccountingtransaction.d.ts +1 -1
- package/dist/sdk/models/operations/removeaccountingtransaction.js +1 -1
- package/dist/sdk/models/operations/removeatsactivity.d.ts +1 -1
- package/dist/sdk/models/operations/removeatsactivity.js +1 -1
- package/dist/sdk/models/operations/removeatsapplication.d.ts +1 -1
- package/dist/sdk/models/operations/removeatsapplication.js +1 -1
- package/dist/sdk/models/operations/removeatscandidate.d.ts +1 -1
- package/dist/sdk/models/operations/removeatscandidate.js +1 -1
- package/dist/sdk/models/operations/removeatsdocument.d.ts +1 -1
- package/dist/sdk/models/operations/removeatsdocument.js +1 -1
- package/dist/sdk/models/operations/removeatsinterview.d.ts +1 -1
- package/dist/sdk/models/operations/removeatsinterview.js +1 -1
- package/dist/sdk/models/operations/removeatsjob.d.ts +1 -1
- package/dist/sdk/models/operations/removeatsjob.js +1 -1
- package/dist/sdk/models/operations/removeatsscorecard.d.ts +1 -1
- package/dist/sdk/models/operations/removeatsscorecard.js +1 -1
- package/dist/sdk/models/operations/removecommercecollection.d.ts +1 -1
- package/dist/sdk/models/operations/removecommercecollection.js +1 -1
- package/dist/sdk/models/operations/removecommerceinventory.d.ts +1 -1
- package/dist/sdk/models/operations/removecommerceinventory.js +1 -1
- package/dist/sdk/models/operations/removecommerceitem.d.ts +1 -1
- package/dist/sdk/models/operations/removecommerceitem.js +1 -1
- package/dist/sdk/models/operations/removecommercelocation.d.ts +1 -1
- package/dist/sdk/models/operations/removecommercelocation.js +1 -1
- package/dist/sdk/models/operations/removecrmcompany.d.ts +1 -1
- package/dist/sdk/models/operations/removecrmcompany.js +1 -1
- package/dist/sdk/models/operations/removecrmcontact.d.ts +1 -1
- package/dist/sdk/models/operations/removecrmcontact.js +1 -1
- package/dist/sdk/models/operations/removecrmdeal.d.ts +1 -1
- package/dist/sdk/models/operations/removecrmdeal.js +1 -1
- package/dist/sdk/models/operations/removecrmevent.d.ts +1 -1
- package/dist/sdk/models/operations/removecrmevent.js +1 -1
- package/dist/sdk/models/operations/removecrmlead.d.ts +1 -1
- package/dist/sdk/models/operations/removecrmlead.js +1 -1
- package/dist/sdk/models/operations/removecrmpipeline.d.ts +1 -1
- package/dist/sdk/models/operations/removecrmpipeline.js +1 -1
- package/dist/sdk/models/operations/removehrisemployee.d.ts +1 -1
- package/dist/sdk/models/operations/removehrisemployee.js +1 -1
- package/dist/sdk/models/operations/removehrisgroup.d.ts +1 -1
- package/dist/sdk/models/operations/removehrisgroup.js +1 -1
- package/dist/sdk/models/operations/removemartechlist.d.ts +1 -1
- package/dist/sdk/models/operations/removemartechlist.js +1 -1
- package/dist/sdk/models/operations/removemartechmember.d.ts +1 -1
- package/dist/sdk/models/operations/removemartechmember.js +1 -1
- package/dist/sdk/models/operations/removepaymentlink.d.ts +1 -1
- package/dist/sdk/models/operations/removepaymentlink.js +1 -1
- package/dist/sdk/models/operations/removepaymentpayment.d.ts +1 -1
- package/dist/sdk/models/operations/removepaymentpayment.js +1 -1
- package/dist/sdk/models/operations/removestoragefile.d.ts +1 -1
- package/dist/sdk/models/operations/removestoragefile.js +1 -1
- package/dist/sdk/models/operations/removeticketingcustomer.d.ts +1 -1
- package/dist/sdk/models/operations/removeticketingcustomer.js +1 -1
- package/dist/sdk/models/operations/removeticketingnote.d.ts +1 -1
- package/dist/sdk/models/operations/removeticketingnote.js +1 -1
- package/dist/sdk/models/operations/removeticketingticket.d.ts +1 -1
- package/dist/sdk/models/operations/removeticketingticket.js +1 -1
- package/dist/sdk/models/operations/removeuccontact.d.ts +1 -1
- package/dist/sdk/models/operations/removeuccontact.js +1 -1
- package/dist/sdk/models/operations/removeunifiedconnection.d.ts +1 -1
- package/dist/sdk/models/operations/removeunifiedconnection.js +1 -1
- package/dist/sdk/models/operations/removeunifiedwebhook.d.ts +1 -1
- package/dist/sdk/models/operations/removeunifiedwebhook.js +1 -1
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.d.ts +1 -1
- package/dist/sdk/models/operations/updateunifiedwebhooktrigger.js +1 -1
- package/dist/sdk/models/shared/propertycrmeventnote.d.ts +1 -0
- package/dist/sdk/models/shared/propertycrmeventnote.js +5 -0
- package/dist/sdk/note.js +1 -1
- package/dist/sdk/payment.js +2 -2
- package/dist/sdk/pipeline.js +1 -1
- package/dist/sdk/scorecard.js +1 -1
- package/dist/sdk/sdk.js +7 -4
- package/dist/sdk/storage.js +1 -1
- package/dist/sdk/taxrate.js +1 -1
- package/dist/sdk/ticket.js +1 -1
- package/dist/sdk/ticketing.js +3 -3
- package/dist/sdk/transaction.js +1 -1
- package/dist/sdk/uc.js +1 -1
- package/dist/sdk/unified.js +4 -4
- package/dist/sdk/webhook.js +3 -3
- package/docs/sdk/models/operations/patchunifiedwebhooktriggerresponse.md +1 -1
- package/docs/sdk/models/operations/removeaccountingaccountresponse.md +1 -1
- package/docs/sdk/models/operations/removeaccountingcontactresponse.md +1 -1
- package/docs/sdk/models/operations/removeaccountinginvoiceresponse.md +1 -1
- package/docs/sdk/models/operations/removeaccountingtaxrateresponse.md +1 -1
- package/docs/sdk/models/operations/removeaccountingtransactionresponse.md +1 -1
- package/docs/sdk/models/operations/removeatsactivityresponse.md +1 -1
- package/docs/sdk/models/operations/removeatsapplicationresponse.md +1 -1
- package/docs/sdk/models/operations/removeatscandidateresponse.md +1 -1
- package/docs/sdk/models/operations/removeatsdocumentresponse.md +1 -1
- package/docs/sdk/models/operations/removeatsinterviewresponse.md +1 -1
- package/docs/sdk/models/operations/removeatsjobresponse.md +1 -1
- package/docs/sdk/models/operations/removeatsscorecardresponse.md +1 -1
- package/docs/sdk/models/operations/removecommercecollectionresponse.md +1 -1
- package/docs/sdk/models/operations/removecommerceinventoryresponse.md +1 -1
- package/docs/sdk/models/operations/removecommerceitemresponse.md +1 -1
- package/docs/sdk/models/operations/removecommercelocationresponse.md +1 -1
- package/docs/sdk/models/operations/removecrmcompanyresponse.md +1 -1
- package/docs/sdk/models/operations/removecrmcontactresponse.md +1 -1
- package/docs/sdk/models/operations/removecrmdealresponse.md +1 -1
- package/docs/sdk/models/operations/removecrmeventresponse.md +1 -1
- package/docs/sdk/models/operations/removecrmleadresponse.md +1 -1
- package/docs/sdk/models/operations/removecrmpipelineresponse.md +1 -1
- package/docs/sdk/models/operations/removehrisemployeeresponse.md +1 -1
- package/docs/sdk/models/operations/removehrisgroupresponse.md +1 -1
- package/docs/sdk/models/operations/removemartechlistresponse.md +1 -1
- package/docs/sdk/models/operations/removemartechmemberresponse.md +1 -1
- package/docs/sdk/models/operations/removepaymentlinkresponse.md +1 -1
- package/docs/sdk/models/operations/removepaymentpaymentresponse.md +1 -1
- package/docs/sdk/models/operations/removestoragefileresponse.md +1 -1
- package/docs/sdk/models/operations/removeticketingcustomerresponse.md +1 -1
- package/docs/sdk/models/operations/removeticketingnoteresponse.md +1 -1
- package/docs/sdk/models/operations/removeticketingticketresponse.md +1 -1
- package/docs/sdk/models/operations/removeuccontactresponse.md +1 -1
- package/docs/sdk/models/operations/removeunifiedconnectionresponse.md +1 -1
- package/docs/sdk/models/operations/removeunifiedwebhookresponse.md +1 -1
- package/docs/sdk/models/operations/updateunifiedwebhooktriggerresponse.md +1 -1
- package/docs/sdk/models/shared/propertycrmeventnote.md +2 -1
- package/package.json +1 -1
package/dist/sdk/note.js
CHANGED
|
@@ -415,7 +415,7 @@ var Note = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/payment.js
CHANGED
|
@@ -935,7 +935,7 @@ var Payment = /** @class */ (function () {
|
|
|
935
935
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
936
936
|
default:
|
|
937
937
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
938
|
-
res.
|
|
938
|
+
res.string = JSON.parse(decodedRes);
|
|
939
939
|
}
|
|
940
940
|
else {
|
|
941
941
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -996,7 +996,7 @@ var Payment = /** @class */ (function () {
|
|
|
996
996
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
997
997
|
default:
|
|
998
998
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
999
|
-
res.
|
|
999
|
+
res.string = JSON.parse(decodedRes);
|
|
1000
1000
|
}
|
|
1001
1001
|
else {
|
|
1002
1002
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/pipeline.js
CHANGED
|
@@ -415,7 +415,7 @@ var Pipeline = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/scorecard.js
CHANGED
|
@@ -415,7 +415,7 @@ var Scorecard = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/sdk.js
CHANGED
|
@@ -81,9 +81,9 @@ var SDKConfiguration = /** @class */ (function () {
|
|
|
81
81
|
function SDKConfiguration(init) {
|
|
82
82
|
this.language = "typescript";
|
|
83
83
|
this.openapiDocVersion = "1.0";
|
|
84
|
-
this.sdkVersion = "1.0.
|
|
85
|
-
this.genVersion = "2.
|
|
86
|
-
this.userAgent = "speakeasy-sdk/typescript 1.0.
|
|
84
|
+
this.sdkVersion = "1.0.6";
|
|
85
|
+
this.genVersion = "2.281.2";
|
|
86
|
+
this.userAgent = "speakeasy-sdk/typescript 1.0.6 2.281.2 1.0 @unified-api/typescript-sdk";
|
|
87
87
|
Object.assign(this, init);
|
|
88
88
|
}
|
|
89
89
|
return SDKConfiguration;
|
|
@@ -96,8 +96,11 @@ var UnifiedTo = /** @class */ (function () {
|
|
|
96
96
|
function UnifiedTo(props) {
|
|
97
97
|
var _a, _b;
|
|
98
98
|
var serverURL = props === null || props === void 0 ? void 0 : props.serverURL;
|
|
99
|
-
var serverIdx = (_a = props === null || props === void 0 ? void 0 : props.serverIdx) !== null && _a !== void 0 ? _a : 0;
|
|
100
99
|
if (!serverURL) {
|
|
100
|
+
var serverIdx = (_a = props === null || props === void 0 ? void 0 : props.serverIdx) !== null && _a !== void 0 ? _a : 0;
|
|
101
|
+
if (serverIdx < 0 || serverIdx >= exports.ServerList.length) {
|
|
102
|
+
throw new Error("Invalid server index ".concat(serverIdx));
|
|
103
|
+
}
|
|
101
104
|
serverURL = exports.ServerList[serverIdx];
|
|
102
105
|
}
|
|
103
106
|
var defaultClient = (_b = props === null || props === void 0 ? void 0 : props.defaultClient) !== null && _b !== void 0 ? _b : axios_1.default.create();
|
package/dist/sdk/storage.js
CHANGED
|
@@ -415,7 +415,7 @@ var Storage = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/taxrate.js
CHANGED
|
@@ -415,7 +415,7 @@ var Taxrate = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/ticket.js
CHANGED
|
@@ -415,7 +415,7 @@ var Ticket = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/ticketing.js
CHANGED
|
@@ -951,7 +951,7 @@ var Ticketing = /** @class */ (function () {
|
|
|
951
951
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
952
952
|
default:
|
|
953
953
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
954
|
-
res.
|
|
954
|
+
res.string = JSON.parse(decodedRes);
|
|
955
955
|
}
|
|
956
956
|
else {
|
|
957
957
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -1012,7 +1012,7 @@ var Ticketing = /** @class */ (function () {
|
|
|
1012
1012
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1013
1013
|
default:
|
|
1014
1014
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1015
|
-
res.
|
|
1015
|
+
res.string = JSON.parse(decodedRes);
|
|
1016
1016
|
}
|
|
1017
1017
|
else {
|
|
1018
1018
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -1073,7 +1073,7 @@ var Ticketing = /** @class */ (function () {
|
|
|
1073
1073
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1074
1074
|
default:
|
|
1075
1075
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1076
|
-
res.
|
|
1076
|
+
res.string = JSON.parse(decodedRes);
|
|
1077
1077
|
}
|
|
1078
1078
|
else {
|
|
1079
1079
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/transaction.js
CHANGED
|
@@ -415,7 +415,7 @@ var Transaction = /** @class */ (function () {
|
|
|
415
415
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
416
416
|
default:
|
|
417
417
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
418
|
-
res.
|
|
418
|
+
res.string = JSON.parse(decodedRes);
|
|
419
419
|
}
|
|
420
420
|
else {
|
|
421
421
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/uc.js
CHANGED
|
@@ -479,7 +479,7 @@ var Uc = /** @class */ (function () {
|
|
|
479
479
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
480
480
|
default:
|
|
481
481
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
482
|
-
res.
|
|
482
|
+
res.string = JSON.parse(decodedRes);
|
|
483
483
|
}
|
|
484
484
|
else {
|
|
485
485
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/unified.js
CHANGED
|
@@ -999,7 +999,7 @@ var Unified = /** @class */ (function () {
|
|
|
999
999
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1000
1000
|
default:
|
|
1001
1001
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1002
|
-
res.
|
|
1002
|
+
res.string = JSON.parse(decodedRes);
|
|
1003
1003
|
}
|
|
1004
1004
|
else {
|
|
1005
1005
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -1060,7 +1060,7 @@ var Unified = /** @class */ (function () {
|
|
|
1060
1060
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1061
1061
|
default:
|
|
1062
1062
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1063
|
-
res.
|
|
1063
|
+
res.string = JSON.parse(decodedRes);
|
|
1064
1064
|
}
|
|
1065
1065
|
else {
|
|
1066
1066
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -1121,7 +1121,7 @@ var Unified = /** @class */ (function () {
|
|
|
1121
1121
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1122
1122
|
default:
|
|
1123
1123
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1124
|
-
res.
|
|
1124
|
+
res.string = JSON.parse(decodedRes);
|
|
1125
1125
|
}
|
|
1126
1126
|
else {
|
|
1127
1127
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -1253,7 +1253,7 @@ var Unified = /** @class */ (function () {
|
|
|
1253
1253
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
1254
1254
|
default:
|
|
1255
1255
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
1256
|
-
res.
|
|
1256
|
+
res.string = JSON.parse(decodedRes);
|
|
1257
1257
|
}
|
|
1258
1258
|
else {
|
|
1259
1259
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
package/dist/sdk/webhook.js
CHANGED
|
@@ -347,7 +347,7 @@ var Webhook = /** @class */ (function () {
|
|
|
347
347
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
348
348
|
default:
|
|
349
349
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
350
|
-
res.
|
|
350
|
+
res.string = JSON.parse(decodedRes);
|
|
351
351
|
}
|
|
352
352
|
else {
|
|
353
353
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -408,7 +408,7 @@ var Webhook = /** @class */ (function () {
|
|
|
408
408
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
409
409
|
default:
|
|
410
410
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
411
|
-
res.
|
|
411
|
+
res.string = JSON.parse(decodedRes);
|
|
412
412
|
}
|
|
413
413
|
else {
|
|
414
414
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -469,7 +469,7 @@ var Webhook = /** @class */ (function () {
|
|
|
469
469
|
throw new errors.SDKError("API error occurred", httpRes.status, decodedRes, httpRes);
|
|
470
470
|
default:
|
|
471
471
|
if (utils.matchContentType(responseContentType, "application/json")) {
|
|
472
|
-
res.
|
|
472
|
+
res.string = JSON.parse(decodedRes);
|
|
473
473
|
}
|
|
474
474
|
else {
|
|
475
475
|
throw new errors.SDKError("unknown content-type received: " + responseContentType, httpRes.status, decodedRes, httpRes);
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
9
9
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
10
10
|
| `rawResponse` | [AxiosResponse](https://axios-http.com/docs/res_schema) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
11
|
-
| `
|
|
11
|
+
| `string` | *string* | :heavy_minus_sign: | Successful |
|
|
@@ -7,4 +7,5 @@ The note object, when type = note
|
|
|
7
7
|
|
|
8
8
|
| Field | Type | Required | Description |
|
|
9
9
|
| ------------------ | ------------------ | ------------------ | ------------------ |
|
|
10
|
-
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
10
|
+
| `description` | *string* | :heavy_minus_sign: | N/A |
|
|
11
|
+
| `title` | *string* | :heavy_minus_sign: | N/A |
|