@kontent-ai/management-sdk
Version:
Official Kontent.ai management SDK
15 lines • 486 B
JavaScript
import { BaseQuery } from '../base-query';
export class ListWebhooksQuery extends BaseQuery {
constructor(config, queryService) {
super(config, queryService);
this.config = config;
this.queryService = queryService;
}
toPromise() {
return this.queryService.listWebhooksAsync(this.getUrl(), this.queryConfig);
}
getAction() {
return this.apiEndpoints.listWebhooks();
}
}
//# sourceMappingURL=list-webhooks-query.class.js.map