UNPKG

@umbraco/json-models-builders

Version:
59 lines (58 loc) 1.78 kB
import { MemberTypeBuilder } from './memberTypeBuilder'; export declare class MemberTypePropertyBuilder { parentBuilder: MemberTypeBuilder; 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: MemberTypeBuilder); 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(): MemberTypeBuilder; 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 | null; regEx: string | null; regExMessage: string | null; }; appearance: { labelOnTop: boolean; }; }; }