@umbraco/json-models-builders
Version:
Builders and models for Umbraco Sites
46 lines (45 loc) • 1.32 kB
TypeScript
import { MemberValueBuilder } from "./memberValueBuilder";
import { MemberVariantBuilder } from "./memberVariantBuilder";
export declare class MemberBuilder {
memberValueBuilder: MemberValueBuilder[];
memberVariantBuilder: MemberVariantBuilder[];
id: string;
email: string;
username: string;
password: string;
memberTypeId: string;
groups: string[];
isApproved: boolean;
constructor();
addValue(): MemberValueBuilder;
addVariant(): MemberVariantBuilder;
withId(id: string): this;
withEmail(email: string): this;
withUsername(username: string): this;
withPassword(password: string): this;
withMemberTypeId(memberTypeId: string): this;
addGroup(group: string): this;
withIsApproved(isApproved: boolean): this;
build(): {
values: {
culture: string | null;
segment: string | null;
alias: string | null;
value: string | null;
}[];
variants: {
culture: string | null;
segment: string | null;
name: string;
}[];
id: string;
email: string;
username: string;
password: string;
memberType: {
id: string;
};
groups: string[];
isApproved: boolean;
};
}