Skip to content

Releases: moneydevkit/api-contract

v0.1.21

29 Jan 22:08
2bb631e

Choose a tag to compare

What's Changed

  • refactor: add list/listPaginated pattern and reorganize schemas by @martinsaposnic in #15

Full Changelog: v0.1.20...v0.1.21

v0.1.20

28 Jan 22:00
dacc647

Choose a tag to compare

What's Changed

Features

  • Export CheckoutStatusSchema, CheckoutTypeSchema from contracts/checkout.ts
  • Export PriceAmountTypeSchema from schemas/product-price-input.ts

Improvements

  • Use McpCustomerSchema for embedded customer in order/checkout contracts
  • Fix mcpContract.customer to only include MCP routes (exclude getSdk)
  • Consolidate customer schemas for clearer naming

Full Changelog: v0.1.19...v0.1.20

v0.1.19

27 Jan 21:11
29b2180

Choose a tag to compare

What's Changed

  • feat: add subscription and customer schemas and contracts (MDK-401) by @NatElkins in #12

Features

  • Subscription Schemas: Added SubscriptionSchema with status, period dates, cancellation fields, and customerEmail
  • Subscription Webhook Events: Added SubscriptionWebhookPayloadSchema for subscription.created, subscription.renewed, subscription.canceled, subscription.payment_failed events
  • Subscription Contracts: Added ORPC contracts for get, createRenewalCheckout, and cancel operations
  • Customer Schema (SDK): Added CustomerSchema with subscriptions array for SDK customer lookup
  • Customer Contracts (SDK): Added customer.get contract with flexible lookup by externalId, email, or customerId
  • Datetime Validation: Added .datetime() validation to ISO date fields (currentPeriodStart, currentPeriodEnd)

Full Changelog: v0.1.18...v0.1.19

v0.1.18

27 Jan 16:54
b2ff3f5

Choose a tag to compare

Features

  • MCP Contracts: Added comprehensive contracts for MCP API operations
    • Products: full CRUD operations (list, get, create, update, delete)
    • Customers: full CRUD operations (list, get, create, update, delete)
    • Orders: list and get operations
    • Checkouts: list and get summary operations
  • SDK/MCP Contract Exports: Added separate sdkContract and mcpContract exports for different use cases
  • Shared Schemas: Added reusable schemas for products, customers, orders, and pagination

v0.1.17

20 Jan 02:53
967248c

Choose a tag to compare

What's Changed

  • feat(checkout): add product selection fields (MDK-403) by @NatElkins in #11
    • Add productId, productPriceId, customAmount, and product fields to checkout schema
    • Add .max(1) validation to products array (single selection)
    • Remove FREE price type support (only FIXED and CUSTOM remain)

Full Changelog: v0.1.16...v0.1.17

v0.1.16

14 Jan 21:23
958e8df

Choose a tag to compare

What's Changed

  • feat: change product price to prices array by @NatElkins in #9

Full Changelog: v0.1.15...v0.1.16

v0.1.15

14 Jan 19:58
be92ba9

Choose a tag to compare

What's Changed

  • feat(products): simplify to single price per product (Polar model) by @NatElkins in #8

Full Changelog: v0.1.14...v0.1.15

v0.1.14

13 Jan 16:58
93b4a95

Choose a tag to compare

What's Changed

Full Changelog: v0.1.13...v0.1.14

v0.1.13

30 Dec 20:54
34ec3de

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.12...v0.1.13

v0.1.12

12 Dec 19:09
6487a19

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.11...v0.1.12