ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...

    Interface Product

    Represents a chemical product with its complete details, extending the Variant interface. This is the main product type used throughout the application.

    const product: Product = {
    supplier: "Loudwolf",
    title: "Sodium Chloride ACS Grade",
    url: "/products/sodium-chloride-acs",
    price: 19.99,
    currencyCode: "USD",
    currencySymbol: "$",
    quantity: 500,
    uom: "g",
    cas: "7647-14-5",
    formula: "NaCl"
    };
    interface Product {
        baseQuantity?: number;
        baseUom?: any;
        usdPrice?: number;
        localPrice?: number;
        sku?: string | number;
        id?: string | number;
        uuid?: string | number;
        grade?: string;
        conc?: string;
        status?: string;
        statusTxt?: string;
        shippingInformation?: string;
        availability?: any;
        attributes?: { name: string; value: string }[];
        moles?: number;
        supplier: string;
        title: string;
        url: string;
        price: number;
        currencyCode: valueof;
        currencySymbol: valueof;
        quantity: number;
        uom: valueof<any>;
        description?: string;
        manufacturer?: string;
        cas?: `${string}-${string}-${string}`;
        formula?: string;
        vendor?: string;
        variants?: Variant[];
        docLinks?: string[];
        supplierCountry?: string;
        supplierShipping?: ShippingRange;
        paymentMethods?: PaymentMethod[];
        _fuzz?: { score: number; idx: number };
        matchPercentage?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    baseQuantity?: number

    Reference quantity for unit conversion calculations

    500
    
    baseUom?: any

    Reference unit of measurement for conversions

    "g"
    
    usdPrice?: number

    Price converted to USD for comparison

    19.99
    
    localPrice?: number

    The price convert to the users local currency

    sku?: string | number

    Stock keeping unit identifier for inventory tracking

    "NaCl-500"
    
    id?: string | number

    Unique identifier within the system

    12345
    
    uuid?: string | number

    Globally unique identifier

    "550e8400-e29b-41d4-a716-446655440000"
    
    grade?: string

    Chemical grade specification (e.g., 'ACS', 'Technical')

    "ACS"
    
    conc?: string

    Chemical concentration specification

    "98%"
    
    status?: string

    Current status code of the variant

    "IN_STOCK"
    
    statusTxt?: string

    Human-readable status description

    "In Stock"
    
    shippingInformation?: string

    Special shipping requirements or information

    "Hazardous material - special shipping required"
    
    availability?: any

    Availability of the variant

    "IN_STOCK"
    
    attributes?: { name: string; value: string }[]

    Attributes of the variant

    `[{ name: "Size", value: "500g" }]`
    
    moles?: number

    Number of moles of the variant

    23.5
    
    supplier: string

    Name of the supplier providing the product

    "Loudwolf"
    
    title: string

    Full product title/name

    "Sodium Chloride ACS Grade 500g"
    
    url: string

    Absolute URL to the product's detail page

    "https://supplier.com/products/sodium-chloride-500g"
    
    price: number

    Current price of the product

    19.99
    
    currencyCode: valueof

    ISO currency code for the price

    "USD"
    
    currencySymbol: valueof

    Display symbol for the currency

    "$"
    
    quantity: number

    Available quantity in stock

    100
    
    uom: valueof<any>

    Standardized unit of measurement

    "g"
    
    description?: string

    Detailed product description

    "ACS grade sodium chloride suitable for analytical use"
    
    manufacturer?: string

    Name of the product manufacturer

    "Sigma-Aldrich"
    
    cas?: `${string}-${string}-${string}`

    Chemical Abstracts Service registry number

    "7647-14-5"
    
    formula?: string

    Chemical molecular formula

    "NaCl"
    
    vendor?: string

    Alternative name for the supplier

    "Sigma"
    
    variants?: Variant[]

    Array of available product variations

    docLinks?: string[]

    URLs to related documentation (MSDS, SDS, etc.)

    ["https://supplier.com/msds/nacl.pdf"]
    
    supplierCountry?: string

    Country of the supplier

    "US"
    
    supplierShipping?: ShippingRange

    Shipping scope of the supplier

    "worldwide" | "domestic" | "international" | "local"
    
    paymentMethods?: PaymentMethod[]

    Payment methods accepted by the supplier

    ["visa", "mastercard"]
    
    _fuzz?: { score: number; idx: number }

    Levenshtein result of the product title and the search string

    95
    
    matchPercentage?: number

    Match percentage of the product title and the search string

    95