Skip to content

Add config listings, listing types, and listing pricing types#66

Merged
bverbeken merged 1 commit into
mainfrom
ben/seats-459-update-seatsio-types-for-seat-listings
Jun 17, 2026
Merged

Add config listings, listing types, and listing pricing types#66
bverbeken merged 1 commit into
mainfrom
ben/seats-459-update-seatsio-types-for-seat-listings

Conversation

@bverbeken

@bverbeken bverbeken commented Jun 16, 2026

Copy link
Copy Markdown
Member

Adds the public types backing config-driven listings in the chart renderer.

New types: ConfigListing, ListingType, ListingTypes, SimplePricingForListing, MultiLevelPricingForListing, PricingForListing.

The Pricing.prices union is widened to accept listing pricing alongside category and object pricing.

Copilot AI review requested due to automatic review settings June 16, 2026 11:04
@bverbeken bverbeken marked this pull request as ready for review June 16, 2026 11:06
@bverbeken bverbeken requested a review from a team as a code owner June 16, 2026 11:06
@bverbeken bverbeken requested review from PabloNeirotti, mortendevold, mroloux and sdivelbiss and removed request for a team June 16, 2026 11:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds new public TypeScript types to support config-driven “listings” in the chart renderer configuration, including listing type definitions and listing-level pricing entries, and wires them into the existing Pricing.prices union so downstream SDKs can consume them.

Changes:

  • Added listings?: ConfigListing[] and listingTypes?: ListingTypes to ChartRendererConfigOptions.
  • Introduced listing pricing shapes (SimplePricingForListing, MultiLevelPricingForListing, PricingForListing) and widened Pricing.prices to accept them.
  • Updated type-level tests/examples to cover the new config fields and listing pricing entries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/index.ts Adds listings + listingTypes config fields, exports new listing and listing-pricing types, widens Pricing.prices union.
src/index.test.ts Extends compile-time config/pricing fixtures to include the new listing-related config and pricing shapes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bverbeken bverbeken force-pushed the ben/seats-459-update-seatsio-types-for-seat-listings branch from 2b070d2 to afee88b Compare June 16, 2026 12:05
@bverbeken bverbeken merged commit 6a89b7e into main Jun 17, 2026
1 check passed
@bverbeken bverbeken deleted the ben/seats-459-update-seatsio-types-for-seat-listings branch June 17, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants