Contentful Personalization & Analytics
    Preparing search index...

    Type Alias Entry<EntrySkeleton, Modifiers, Locales>

    Entry: BaseEntry & {
        fields: ChainModifiers extends Modifiers
            ? | {
                [FieldName in keyof EntrySkeleton["fields"]]: {
                    [LocaleName in Locales]?: ResolvedField<
                        EntrySkeleton["fields"][FieldName],
                        Modifiers,
                        Locales,
                    >
                }
            }
            | {
                [FieldName in keyof EntrySkeleton["fields"]]: ResolvedField<
                    EntrySkeleton["fields"][FieldName],
                    Modifiers,
                    Locales,
                >
            }
            : "WITH_ALL_LOCALES" extends Modifiers
                ? {
                    [FieldName in keyof EntrySkeleton["fields"]]: {
                        [LocaleName in Locales]?: ResolvedField<
                            EntrySkeleton["fields"][FieldName],
                            Modifiers,
                            Locales,
                        >
                    }
                }
                : {
                    [FieldName in keyof EntrySkeleton["fields"]]: ResolvedField<
                        EntrySkeleton["fields"][FieldName],
                        Modifiers,
                        Locales,
                    >
                };
        sys: { contentType: { sys: { id: EntrySkeleton["contentTypeId"] } } };
    }

    Entry represents anything defined as a Content Type in a space

    Type Parameters

    • EntrySkeleton extends EntrySkeletonType = EntrySkeletonType

      Shape of entry fields used to calculate dynamic keys

    • Modifiers extends ChainModifiers = ChainModifiers

      The chain modifiers used to configure the client. They’re set automatically when using the client chain modifiers.

    • Locales extends LocaleCode = LocaleCode

      If provided for a client using allLocales modifier, response type defines locale keys for entry field values.