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

      ChemPal Documentation - v1.18.0

      Categories & Groups / Group

      Constants

      8 entries across 6 modules.

      constants/amarischemicalsolutions1

      countryData2

      • countryData

        Compact ISO 3166-1 alpha-2 country table: the English name and primary currency code for each country, and nothing else.

        It replaces the runtime country-list-js dependency, which carries provinces, capitals, phone codes and more (~140 kB) for the two fields ChemPal reads. The library is kept as a dev dependency purely so src/constants/__tests__/countryData.test.ts can fail if this table ever drifts from it. Regenerate by re-running the extraction described there.

      • COUNTRY_DATA

        [name, currency] per country, keyed by ISO 3166-1 alpha-2 code. currency is the ISO 4217 code of the country's primary currency (e.g. "EUR").

      constants/fuzzScorers1

      • FuzzScorerFn

        Fuzz-match scorer registry shared between SupplierBase.fuzzyFilter and the Advanced drawer section's override selector. Keys are stored in userSettings.fuzzScorerOverride; when present at search time they replace each supplier's per-class fuzzScorer default.

        distance is intentionally excluded — it's an edit distance (lower = more similar), while all other scorers return 0–100 (higher = more similar), so it doesn't plug into the same cutoff/filter flow.

      httpStatus2

      • httpStatus

        HTTP status codes the extension compares against or documents. Use these instead of bare numbers so a check like error.status === HttpStatus.FORBIDDEN explains itself.

        Deliberately a short list of the codes that matter when talking to supplier sites, not the full registry; add a member here when a new code is needed. It replaced the http-status-codes package, whose ~60-entry enum was bundled for the sake of one constant.

      • HttpStatus

        Common HTTP status codes, named in UPPER_SNAKE_CASE after their reason phrases.

      constants/laboratoriumdiscounter1

      utils/Logger1

      • REMOTE_LOG_LEVELS

        Every severity bucket a remote log sink can opt into, least to most severe. Logger.info and Logger.log both map to 'log'.