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
Merge origin/main into feature/admin-api-spa-cont
Damian Legawiec55c0f3e3ef1a
diff --cc packages/admin-sdk/src/types/generated/index.tsindex 3778ac87eb,bdd43dcfec..3997a78351--- a/packages/admin-sdk/src/types/generated/index.ts+++ b/packages/admin-sdk/src/types/generated/index.ts@@@ -7,8 -7,8 +7,9 @@@ export type { default as AdminUser } frexport type { default as AllowedOrigin } from './AllowedOrigin'export type { default as ApiKey } from './ApiKey'export type { default as Category } from './Category'+ export type { default as Channel } from './Channel'export type { default as Country } from './Country'+export type { default as CouponCode } from './CouponCode'export type { default as CreditCard } from './CreditCard'export type { default as CustomFieldDefinition } from './CustomFieldDefinition'export type { default as CustomField } from './CustomField'@@@ -44,9 -40,9 +45,12 @@@ export type { default as Role } from '.export type { default as State } from './State'export type { default as StockItem } from './StockItem'export type { default as StockLocation } from './StockLocation'+ export type { default as StockReservation } from './StockReservation'+export type { default as StockTransfer } from './StockTransfer'export type { default as StoreCreditCategory } from './StoreCreditCategory'export type { default as StoreCredit } from './StoreCredit'export type { default as Store } from './Store'export type { default as TaxCategory } from './TaxCategory'export type { default as Variant } from './Variant'++</content>++</invoke>diff --cc spree/api/config/routes.rbindex 30ba40ac6e,adc6a58dd8..315727a9a8--- a/spree/api/config/routes.rb+++ b/spree/api/config/routes.rb@@@ -171,42 -171,12 +171,45 @@@ Spree::Core::Engine.add_routes d# Stock Locationsresources :stock_locations++ # Stock Reservations+ resources :stock_reservations, only: [:index, :show]+ # Stock Items (write surface — list/show/update/destroy; creation+ # happens implicitly when variants meet stock locations).+ resources :stock_items, only: [:index, :show, :update, :destroy]++ # Stock Transfers (move inventory between locations, or receive+ # from external vendor when source_location_id is omitted).+ resources :stock_transfers, only: [:index, :show, :create, :destroy]+# Payment Methods- resources :payment_methods, only: [:index, :show]+ resources :payment_methods do+ collection do+ get :types+ end+ end++ # Promotions, with nested actions/rules/coupon codes.+ resources :promotions do+ resources :promotion_actions, only: [:index, :show, :create, :update, :destroy]+ resources :promotion_rules, only: [:index, :show, :create, :update, :destroy]+ resources :coupon_codes, only: [:index, :show]+ end++ # Subclass discovery for the promotion editor: `/promotion_actions/types`+ # and `/promotion_rules/types` enumerate registered subclasses with+ # their preference schemas. Top-level so the SPA can build the+ # "Add action / Add rule" pickers without a parent promotion.+ get 'promotion_actions/types', to: 'promotion_actions#types'+ get 'promotion_rules/types', to: 'promotion_rules#types'++ # Calculator catalog for actions that include CalculatedAdjustments+ # (CreateAdjustment, CreateItemAdjustments). Returns the registered+ # calculator subclasses for the given action type along with each+ # calculator's preference schema, so the SPA can render the picker+ # + nested calculator preferences.+ get 'promotion_actions/calculators', to: 'promotion_actions#calculators'# Tags (autocomplete for product/order/user tag inputs)resources :tags, only: [:index]