bizzabo-api
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -31,2 +31,4 @@ import { HttpClient } from '../http-client'; | ||
upsertSpeaker(eventId: number, speaker: SpeakerPayload): Promise<Speaker>; | ||
getSpeaker(eventId: number, speakerId: number): Promise<any>; | ||
setSpeakerVisibity(eventId: number, speakerId: number, hidden?: boolean): Promise<any>; | ||
} |
@@ -106,4 +106,25 @@ "use strict"; | ||
}; | ||
SpeakersApi.prototype.getSpeaker = function (eventId, speakerId) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.instance.get("/events/".concat(eventId, "/speakers/").concat(speakerId))]; | ||
case 1: return [2 /*return*/, (_a.sent()).data]; | ||
} | ||
}); | ||
}); | ||
}; | ||
SpeakersApi.prototype.setSpeakerVisibity = function (eventId, speakerId, hidden) { | ||
if (hidden === void 0) { hidden = true; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.instance.post("/events/".concat(eventId, "/speakers/").concat(speakerId, "/visibility?hidden=").concat(hidden), {})]; | ||
case 1: return [2 /*return*/, (_a.sent()).data]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return SpeakersApi; | ||
}(http_client_1.HttpClient)); | ||
exports.SpeakersApi = SpeakersApi; |
{ | ||
"name": "bizzabo-api", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "The Bizzabo API is a Typescript client that allows calling Bizzabo public APIs", | ||
@@ -5,0 +5,0 @@ "author": "Bizzabo", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27415
509