Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
Fix SDK/next docs
Damian Legawiec24fa7953b10c
diff --git a/docs/developer/storefront/nextjs/spree-next-package.mdx b/docs/developer/storefront/nextjs/spree-next-package.mdxindex 2b5767b870..118e68fc5c 100644--- a/docs/developer/storefront/nextjs/spree-next-package.mdx+++ b/docs/developer/storefront/nextjs/spree-next-package.mdx@@ -288,25 +288,24 @@ All types are re-exported from `@spree/sdk`:```typescriptimport type {- StoreProduct,- StoreOrder,- StoreLineItem,- StoreVariant,- StoreCategory,- StoreCountry,- StoreCurrency,- StoreLocale,- StoreStore,- StoreAddress,- StoreCustomer,- StoreCreditCard,- StoreGiftCard,- StoreFulfillment,- StoreDeliveryRate,- StorePayment,- StorePaymentMethod,- StorePaymentSession,- StorePaymentSetupSession,+ Product,+ Order,+ LineItem,+ Variant,+ Category,+ Country,+ Currency,+ Locale,+ Address,+ Customer,+ CreditCard,+ GiftCard,+ Fulfillment,+ DeliveryRate,+ Payment,+ PaymentMethod,+ PaymentSession,+ PaymentSetupSession,PaginatedResponse,ProductFiltersResponse,AddressParams,diff --git a/packages/sdk/README.md b/packages/sdk/README.mdindex 4697ed40db..68da39f705 100644--- a/packages/sdk/README.md+++ b/packages/sdk/README.md@@ -652,73 +652,74 @@ The SDK includes full TypeScript support with generated types from the API seria```typescriptimport type {- StoreProduct,- StoreCart,- StoreOrder,- StoreVariant,- StoreCategory,- StoreLineItem,- StoreAddress,- StoreCustomer,+ Product,+ Cart,+ Order,+ Variant,+ Category,+ LineItem,+ Address,+ Customer,PaginatedResponse,} from '@spree/sdk';// All responses are fully typed-const products: PaginatedResponse<StoreProduct> = await client.products.list();-const category: StoreCategory = await client.categories.get('clothing');-const cart: StoreCart = await client.carts.get('cart_xxx');+const products: PaginatedResponse<Product> = await client.products.list();+const category: Category = await client.categories.get('clothing');+const cart: Cart = await client.carts.get('cart_xxx');```## Available Types-The SDK exports all Store API types:+All types are exported as unprefixed names (e.g., `Product`, `Order`). Legacy `Store*` prefixed aliases (e.g., `StoreProduct`) are still available for backward compatibility.### Core Types-- `StoreProduct` - Product data-- `StoreVariant` - Variant data-- `StoreCart` - Cart data (uses `cart_` prefixed IDs)-- `StoreOrder` - Completed order data (uses `or_` prefixed IDs)-- `StoreLineItem` - Line item in cart-- `StoreCategory` - Category-- `StoreCountry` - Country with states-- `StoreState` - State/province-- `StoreAddress` - Customer address-- `StoreCustomer` - Customer profile-- `StoreMarket` - Market configuration (currency, locales, countries)-- `StoreStore` - Store configuration+- `Product` - Product data+- `Variant` - Variant data+- `Cart` - Cart data (uses `cart_` prefixed IDs)+- `Order` - Completed order data (uses `or_` prefixed IDs)+- `LineItem` - Line item in cart+- `Category` - Category+- `Country` - Country with states+- `State` - State/province+- `Address` - Customer address+- `Customer` - Customer profile+- `Market` - Market configuration (currency, locales, countries)### Commerce Types-- `StorePayment` - Payment record-- `StorePaymentMethod` - Payment method-- `StorePaymentSession` - Provider-agnostic payment session-- `StoreFulfillment` - Fulfillment record-- `StoreDeliveryRate` - Delivery rate option-- `StoreDeliveryMethod` - Delivery method-- `StoreCreditCard` - Saved credit card-- `StoreGiftCard` - Gift card-- `StoreCartPromotion` - Promotion applied to a cart (uses `cpromo_` prefixed IDs)-- `StoreOrderPromotion` - Promotion applied to an order (uses `oprom_` prefixed IDs)+- `Payment` - Payment record+- `PaymentMethod` - Payment method+- `PaymentSession` - Provider-agnostic payment session+- `Fulfillment` - Fulfillment record+- `DeliveryRate` - Delivery rate option+- `DeliveryMethod` - Delivery method+- `CreditCard` - Saved credit card+- `GiftCard` - Gift card+- `CartPromotion` - Promotion applied to a cart (uses `cpromo_` prefixed IDs)+- `OrderPromotion` - Promotion applied to an order (uses `oprom_` prefixed IDs)### Product Types-- `StoreMedia` - Product media (images, videos)-- `StorePrice` - Price data-- `StoreOptionType` - Option type (e.g., Size, Color)-- `StoreOptionValue` - Option value (e.g., Small, Red)-- `StoreDigitalLink` - Digital download link+- `Media` - Product media (images, videos)+- `Price` - Price data+- `OptionType` - Option type (e.g., Size, Color)+- `OptionValue` - Option value (e.g., Small, Red)+- `DigitalLink` - Digital download link+- `Metafield` - Custom metafield data### Wishlist Types-- `StoreWishlist` - Wishlist-- `StoreWishedItem` - Wishlist item+- `Wishlist` - Wishlist+- `WishedItem` - Wishlist item### Client Types- `Client` - Main client interface-- `StoreClient` - Store API client+- `StoreClient` - Store API client class- `ClientConfig` - Client configuration- `RequestOptions` - Per-request options- `RetryConfig` - Retry behavior configuration### Utility Types- `PaginatedResponse<T>` - Paginated API response+- `ListResponse<T>` - List API response- `AuthTokens` - JWT tokens from login- `AddressParams` - Address input parameters- `UpdateCartParams` - Cart update parameters (email, addresses, etc.)