@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
27 lines (26 loc) • 733 B
TypeScript
export declare class WebhookBuilder {
enabled: boolean;
name: string;
description: string;
url: string;
contentTypeKeys: string[];
headers: any;
events: string[];
constructor();
withEnabled(enabled: boolean): this;
withName(name: string): this;
withDescription(description: string): this;
withUrl(url: string): this;
withContentTypeKey(contentTypeKey: string): this;
withHeader(headerName: string, headerValue: string): this;
withEventAlias(eventAlias: string): this;
build(): {
enabled: boolean;
name: string;
description: string;
url: string;
contentTypeKeys: string[];
headers: any;
events: string[];
};
}