@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
59 lines (58 loc) • 1.76 kB
TypeScript
import { MediaTypeBuilder } from "./mediaTypeBuilder";
export declare class MediaTypePropertyBuilder {
parentBuilder: MediaTypeBuilder;
id: string;
containerId: string;
sortOrder: number;
alias: string;
name: string;
description: string;
dataTypeId: string;
variesByCulture: boolean;
variesBySegment: boolean;
mandatory: boolean;
mandatoryMessage: string;
regEx: string;
regExMessage: string;
labelOnTop: boolean;
constructor(parentBuilder: MediaTypeBuilder);
withId(id: string): this;
withContainerId(containerId: string): this;
withSortOrder(sortOrder: number): this;
withAlias(alias: string): this;
withName(name: string): this;
withDescription(description: string): this;
withDataTypeId(dataTypeId: string): this;
withVariesByCulture(variesByCulture: boolean): this;
withVariesBySegment(variesBySegment: boolean): this;
withMandatory(mandatory: boolean): this;
withMandatoryMessage(mandatoryMessage: string): this;
withRegEx(regEx: string): this;
withRegExMessage(regExMessage: string): this;
withLabelOnTop(labelOnTop: boolean): this;
done(): MediaTypeBuilder;
build(): {
id: string;
container: {
id: string | null;
};
sortOrder: number;
alias: string;
name: string;
description: string;
dataType: {
id: string | null;
};
variesByCulture: boolean;
variesBySegment: boolean;
validation: {
mandatory: boolean;
mandatoryMessage: string;
regEx: string;
regExMessage: string;
};
appearance: {
labelOnTop: boolean;
};
};
}