@adcp/sdk API Reference - v10.0.1
    Preparing search index...

    Function augmentProductWithFormatOptions

    • Augment a single Product. Idempotent — when format_options[] is already present (the seller is v2-native), passes the Product through unchanged. Otherwise projects from format_ids[].

      Returns { product, diagnostics }. diagnostics is empty for a clean projection; populated when individual format_ids don't have a v2 mapping (catalog gap, structural unreachability, etc.).

      Type Parameters

      Parameters

      • product: P

      Returns { product: V2AugmentedProduct<P>; diagnostics: ProjectionDiagnostic[] }

      toCanonicalOnlyProduct — the canonical-only counterpart that DROPS format_ids[] for a fully-migrated consumer.