Parameters
- params: {
personalizedEntry: {
fields: {
nt_experiences: (
| { sys: { id: string; linkType: string; type: "Link" } }
| {
fields: {
nt_audience?:
| null
| {
fields: {
nt_audience_id: ...;
nt_description?: ...;
nt_name?: ...;
[key: ...]: ...;
};
metadata: { tags: ...; [key: ...]: ... };
sys: {
contentType: ...;
createdAt: ...;
environment: ...;
id: ...;
locale?: ...;
publishedVersion: ...;
revision: ...;
space: ...;
type: ...;
updatedAt: ...;
};
};
nt_config: | null
| {
components?: (...)
| (...);
distribution?: (...) | (...);
sticky?: (...) | (...) | (...);
traffic?: (...) | (...);
};
nt_description?: null
| string;
nt_experience_id: string;
nt_name: string;
nt_type: "nt_experiment" | "nt_personalization";
nt_variants?: Entry[];
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: ...; linkType: ...; type: ... } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
}
)[];
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
};
selectedPersonalizations: {
experienceId: string;
sticky?: boolean;
variantIndex: number;
variants: Record<string, string>;
}[];
} - skipValidation: boolean = false
Returns
| undefined
| {
fields: {
nt_audience?: | null
| {
fields: {
nt_audience_id: string;
nt_description?: string;
nt_name?: string;
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
};
nt_config: | null
| {
components?: (
| {
baseline: { hidden: ...; id: ... };
type?: (...) | (...);
variants: (...)[];
}
| {
baseline: { value: ... };
key: string;
type: "InlineVariable";
valueType: (...) | (...) | (...) | (...);
variants: (...)[];
}
)[];
distribution?: number[];
sticky?: boolean;
traffic?: number;
};
nt_description?: null
| string;
nt_experience_id: string;
nt_name: string;
nt_type: "nt_experiment" | "nt_personalization";
nt_variants?: Entry[];
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
}
The matching PersonalizationEntry, or undefined if not found/invalid.
- undefined
- {
fields: {
nt_audience?:
| null
| {
fields: {
nt_audience_id: string;
nt_description?: string;
nt_name?: string;
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
};
nt_config: | null
| {
components?: (
| {
baseline: { hidden: ...; id: ... };
type?: (...) | (...);
variants: (...)[];
}
| {
baseline: { value: ... };
key: string;
type: "InlineVariable";
valueType: (...) | (...) | (...) | (...);
variants: (...)[];
}
)[];
distribution?: number[];
sticky?: boolean;
traffic?: number;
};
nt_description?: null
| string;
nt_experience_id: string;
nt_name: string;
nt_type: "nt_experiment" | "nt_personalization";
nt_variants?: Entry[];
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
}fields: {
nt_audience?:
| null
| {
fields: {
nt_audience_id: string;
nt_description?: string;
nt_name?: string;
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
};
nt_config: | null
| {
components?: (
| {
baseline: { hidden: ...; id: ... };
type?: (...) | (...);
variants: (...)[];
}
| {
baseline: { value: ... };
key: string;
type: "InlineVariable";
valueType: (...) | (...) | (...) | (...);
variants: (...)[];
}
)[];
distribution?: number[];
sticky?: boolean;
traffic?: number;
};
nt_description?: null
| string;
nt_experience_id: string;
nt_name: string;
nt_type: "nt_experiment" | "nt_personalization";
nt_variants?: Entry[];
[key: string]: JSONType;
}
Optionalnt_audience?:
| null
| {
fields: {
nt_audience_id: string;
nt_description?: string;
nt_name?: string;
[key: string]: JSONType;
};
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
};
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: {
sys: { id: string; linkType: "Environment"; type: "Link" };
};
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
};
}
nt_config:
| null
| {
components?: (
| {
baseline: { hidden: ...; id: ... };
type?: (...) | (...);
variants: (...)[];
}
| {
baseline: { value: ... };
key: string;
type: "InlineVariable";
valueType: (...) | (...) | (...) | (...);
variants: (...)[];
}
)[];
distribution?: number[];
sticky?: boolean;
traffic?: number;
}
Optionalnt_description?: null | string
nt_experience_id: string
nt_name: string
nt_type: "nt_experiment" | "nt_personalization"
Optionalnt_variants?: Entry[]
metadata: {
tags: { sys: { id: string; linkType: "Tag"; type: "Link" } }[];
[key: string]: JSONType;
}
sys: {
contentType: {
sys: { id: string; linkType: "ContentType"; type: "Link" };
};
createdAt: any;
environment: { sys: { id: string; linkType: "Environment"; type: "Link" } };
id: string;
locale?: string;
publishedVersion: number;
revision: number;
space: { sys: { id: string; linkType: "Space"; type: "Link" } };
type: "Entry";
updatedAt: any;
}
Resolve a personalized Contentful entry to the correct variant for the current selections.