@haven_ai/sdk 0.0.0-dev.202609171245.99e72cd → 0.0.0-dev.202609171731.2cc18e0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3079,7 +3079,18 @@ function mapCatalogEntry(entry) {
3079
3079
  verifiedAt: entry.verified_at,
3080
3080
  source: entry.source,
3081
3081
  domainVerified: entry.domain_verified,
3082
- verifiedPayable: entry.verified_payable
3082
+ verifiedPayable: entry.verified_payable,
3083
+ // #3078: absent (older backend) or null (unresolved join) both mean "no
3084
+ // merchant known" — the public field is then absent, never null.
3085
+ ...entry.merchant ? {
3086
+ merchant: {
3087
+ id: entry.merchant.id,
3088
+ slug: entry.merchant.slug,
3089
+ name: entry.merchant.name,
3090
+ listingStatus: entry.merchant.listing_status,
3091
+ isTestMerchant: entry.merchant.is_test_merchant
3092
+ }
3093
+ } : {}
3083
3094
  };
3084
3095
  }
3085
3096
  var HavenClient = class {