@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
44 lines (43 loc) • 1.73 kB
TypeScript
import { DocumentBuilder } from "./documentBuilder";
import { MediaPickerValueBuilder } from "./mediaPickerValueBuilder";
import { URLPickerValueBuilder } from "./urlPickerValueBuilder";
import { ImageCropperValueBuilder } from './imageCropperValueBuilder';
import { BlockGridValueBuilder } from "./blockGridValueBuilder";
import { BlockListValueBuilder } from "./blockListValueBuilder";
export declare class DocumentValueBuilder {
parentBuilder: DocumentBuilder;
culture: string;
segment: string;
alias: string;
value: string | string[];
editorAlias: string;
entityType: string;
mediaPickerValueBuilder: MediaPickerValueBuilder[];
urlPickerValueBuilder: URLPickerValueBuilder[];
imageCropperValueBuilder: ImageCropperValueBuilder;
temporaryFileId: string;
blockGridValueBuilder: BlockGridValueBuilder;
blockListValueBuilder: BlockListValueBuilder;
constructor(parentBuilder: DocumentBuilder);
withCulture(culture: any): this;
withSegment(segment: string): this;
withAlias(alias: string): this;
withValue(value: any): this;
withTemporaryFileId(temporaryFileId: string): this;
addMediaPickerValue(): MediaPickerValueBuilder;
addURLPickerValue(): URLPickerValueBuilder;
addImageCropperValue(): ImageCropperValueBuilder;
addBlockGridValue(): BlockGridValueBuilder;
addBlockListValue(): BlockListValueBuilder;
withEditorAlias(editorAlias: string): this;
withEntityType(entityType: string): this;
done(): DocumentBuilder;
build(): {
culture: string | null;
segment: string | null;
alias: string | null;
value: any;
editorAlias: string | null;
entityType: string | null;
};
}