Member Junction
    Preparing search index...

    Interface IClonePreset

    A named clone scope a user can pick instead of adjusting options one by one. Options apply as if the request had sent them (so UserEditable still limits them); Relationships override edge policies by related entity name, like Clone.Relationships.

    interface IClonePreset {
        Description?: string;
        Key: string;
        Label: string;
        Options?: Record<string, unknown>;
        Relationships?: Record<string, { Policy: "Deep" | "Reference" | "Skip" }>;
        TemplateSourceField?: string;
    }
    Index

    Properties

    Description?: string
    Key: string

    Stable identifier sent by clients in Options.Preset.

    Label: string

    Name shown in the preset picker.

    Options?: Record<string, unknown>

    Plan options this preset sets, e.g. { "MaxDepth": 2 }.

    Relationships?: Record<string, { Policy: "Deep" | "Reference" | "Skip" }>

    Edge policy overrides, keyed by related entity name.

    TemplateSourceField?: string

    Makes this a template preset. Names a boolean field on the root entity; the preset is offered and applied only when the source record has it set (e.g. IsTemplate on MJ: Users), and the plan is blocked otherwise. A template preset may open edges the configuration Locks and copy children whose entity is CloneableFromTemplate: those protections keep a person's private records from being copied to someone else, which does not apply to a record built to be copied.