Contentful Personalization & Analytics
    Preparing search index...
    • Type guard for PersonalizedEntry.

      Parameters

      • entry: undefined | Entry

        Contentful entry to test.

      Returns entry is {
          fields: {
              nt_experiences: (
                  | { sys: { id: string; linkType: string; type: "Link" } }
                  | {
                      fields: {
                          nt_audience?:
                              | null
                              | {
                                  fields: {
                                      nt_audience_id: string;
                                      nt_description?: string;
                                      nt_name?: string;
                                      [key: string]: JSONType;
                                  };
                                  metadata: { tags: { sys: ... }[]; [key: string]: JSONType };
                                  sys: {
                                      contentType: { sys: { id: ...; linkType: ...; type: ... } };
                                      createdAt: any;
                                      environment: { sys: { id: ...; linkType: ...; type: ... } };
                                      id: string;
                                      locale?: string;
                                      publishedVersion: number;
                                      revision: number;
                                      space: { sys: { id: ...; linkType: ...; type: ... } };
                                      type: "Entry";
                                      updatedAt: any;
                                  };
                              };
                          nt_config: | null
                          | {
                              components?: ((...) | (...))[];
                              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;
                      };
                  }
              )[];
              [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;
          };
      }

      true if the entry conforms to PersonalizedEntry, otherwise false.