mailinator-client
Version:
Mailinator REST API client for JavaScript applications.
18 lines (17 loc) • 723 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PublicCustomServiceWebhookRequest = void 0;
const MailinatorRestClient_1 = require("../MailinatorRestClient");
const _resolveTemplateUrl = (customService) => {
return `https://api.mailinator.com/api/v2/domains/public/${customService}`;
};
class PublicCustomServiceWebhookRequest {
constructor(customService, webhook) {
this.customService = customService;
this.webhook = webhook;
}
execute() {
return MailinatorRestClient_1.default.create(_resolveTemplateUrl(this.customService), this.webhook);
}
}
exports.PublicCustomServiceWebhookRequest = PublicCustomServiceWebhookRequest;