Contentful Personalization & Analytics
    Preparing search index...
    • Determines whether a change represents a variable-backed optimization.

      Parameters

      • change:
            | {
                key: string;
                meta: { experienceId: string; variantIndex: number };
                type: "Variable";
                value: string | number | boolean | Record<string, JSONType> | null;
            }
            | {
                id: string;
                meta: { optimizationId: string; variantIndex: number };
                type: "Experience";
                variantId: string;
            }
            | {
                id: string;
                meta: { optimizationId: string; variantIndex: number };
                type: "Fragment";
                variantId: string;
            }
        • {
              key: string;
              meta: { experienceId: string; variantIndex: number };
              type: "Variable";
              value: string | number | boolean | Record<string, JSONType> | null;
          }
          • key: string

            Key identifying the subject of the change.

          • meta: { experienceId: string; variantIndex: number }

            Metadata describing the originating experience and variant index.

            • experienceId: string

              Identifier of the personalization or experiment experience.

            • variantIndex: number

              Index of the variant within the experience configuration.

              Typically corresponds to the array index in the experience's distribution.

          • type: "Variable"

            Discriminator for a variable change.

          • value: string | number | boolean | Record<string, JSONType> | null

            New value for the variable identified by ChangeBase.key.

        • {
              id: string;
              meta: { optimizationId: string; variantIndex: number };
              type: "Experience";
              variantId: string;
          }
          • id: string

            Identifier of the entity affected by the change.

          • meta: { optimizationId: string; variantIndex: number }

            Metadata describing the originating optimization and variant index.

            • optimizationId: string

              Identifier of the optimization that produced this change.

            • variantIndex: number

              Index of the variant within the optimization's distribution.

          • type: "Experience"

            Discriminator for an experience change.

          • variantId: string

            Identifier of the selected variant.

        • {
              id: string;
              meta: { optimizationId: string; variantIndex: number };
              type: "Fragment";
              variantId: string;
          }
          • id: string

            Identifier of the entity affected by the change.

          • meta: { optimizationId: string; variantIndex: number }

            Metadata describing the originating optimization and variant index.

            • optimizationId: string

              Identifier of the optimization that produced this change.

            • variantIndex: number

              Index of the variant within the optimization's distribution.

          • type: "Fragment"

            Discriminator for a fragment change.

          • variantId: string

            Identifier of the selected variant.

      Returns change is {
          key: string;
          meta: { experienceId: string; variantIndex: number };
          type: "Variable";
          value: string | number | boolean | Record<string, JSONType> | null;
      }