Contentful Personalization & Analytics
    Preparing search index...

    Interface ResolvedData<S, M, L>

    interface ResolvedData<
        S extends EntrySkeletonType,
        M extends ChainModifiers = ChainModifiers,
        L extends LocaleCode = LocaleCode,
    > {
        entry: Entry<S, M, L>;
        personalization?: {
            experienceId: string;
            sticky?: boolean;
            variantIndex: number;
            variants: Record<string, string>;
        };
    }

    Type Parameters

    • S extends EntrySkeletonType

      Entry skeleton type.

    • M extends ChainModifiers = ChainModifiers

      Chain modifiers.

    • L extends LocaleCode = LocaleCode

      Locale code.

    Index

    Properties

    entry

    entry: Entry<S, M, L>

    The baseline or resolved variant entry.

    personalization?: {
        experienceId: string;
        sticky?: boolean;
        variantIndex: number;
        variants: Record<string, string>;
    }

    The selected personalization metadata, if a non‑baseline variant was chosen.

    Type declaration

    • experienceId: string

      Identifier of the personalization or experiment experience.

    • Optionalsticky?: boolean

      Indicates whether this personalization selection is sticky for the user.

      false
      

      Sticky selections should be reused on subsequent requests for the same user, rather than re-allocating a new variant.

    • variantIndex: number

      Index of the selected variant within the experience configuration.

      Typically corresponds to the index of the selected PersonalizationConfig entry.

    • variants: Record<string, string>

      Mapping of baseline entry IDs to their selected variant entry IDs.

      The keys are component identifiers and the values are the identifiers of the selected variant for that component.