ChemPal Documentation - v1.18.0
    Preparing search index...

    Interface PriceAlert

    A watched product.

    export interface PriceAlert {
    /** The product's {@link productSeriesKey}. */
    id: string;
    /** Display name of the supplier. */
    supplier: string;
    /** What is needed to refetch the product. */
    ref: ProductRef;
    /** Product title. */
    title: string;
    /** Page to open for the product. */
    permalink?: string;
    /** When the alert was added, in epoch ms. */
    createdAt: number;
    /** When the product was last checked, in epoch ms. */
    lastCheckedAt?: number;
    /** Failed checks in a row. */
    failures: number;
    /** How the last check ended. */
    lastStatus?: ProductRefreshStatus;
    /** Prices to compare the next check against, by price-history series id. */
    lastPrices: Record<string, PriceSnapshot>;
    /** The latest drop found. */
    lastDrop?: PriceDrop & { at: number };
    /** Whether the user hasn't seen {@link lastDrop} yet. */
    hasUnseenDrop?: boolean;
    }
    interface PriceAlert {
        id: string;
        supplier: string;
        ref: ProductRef;
        title: string;
        permalink?: string;
        createdAt: number;
        lastCheckedAt?: number;
        failures: number;
        lastStatus?: ProductRefreshStatus;
        lastPrices: Record<string, PriceSnapshot>;
        lastDrop?: PriceDrop & { at: number };
        hasUnseenDrop?: boolean;
    }
    Index

    Properties

    id: string

    The product's productSeriesKey.

    supplier: string

    Display name of the supplier.

    What is needed to refetch the product.

    title: string

    Product title.

    permalink?: string

    Page to open for the product.

    createdAt: number

    When the alert was added, in epoch ms.

    lastCheckedAt?: number

    When the product was last checked, in epoch ms.

    failures: number

    Failed checks in a row.

    How the last check ended.

    lastPrices: Record<string, PriceSnapshot>

    Prices to compare the next check against, by price-history series id.

    lastDrop?: PriceDrop & { at: number }

    The latest drop found.

    hasUnseenDrop?: boolean

    Whether the user hasn't seen lastDrop yet.