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

    Function supplierShippingMeta

    • Supplier class names mapped to their home country and shipping scope — the fields the drawer's shipping/country filters reason about.

      Returns Record<string, { country: CountryCode; shipping: ShippingRange }>

      Record mapping supplier class names to { country, shipping }.

      supplierShippingMeta().SupplierCarolina; // => { country: "US", shipping: "domestic" }
      
      export function supplierShippingMeta(): Record<
      string,
      { country: CountryCode; shipping: ShippingRange }
      > {
      return Object.fromEntries(
      Object.entries(SUPPLIER_META).map(([key, meta]) => [
      key,
      { country: meta.country, shipping: meta.shipping },
      ]),
      );
      }