@vue-storefront/unified-data-model
0.18.0
Minor Changes
- ADDED
toContextualizedNormalizersfunction which allows to create a set of normalizers which have access to the context of the current request.
0.17.0
Minor Changes
- 645259e: Changed
billingAddressto optional inSfOrder
0.16.0
Minor Changes
- 98c8e77: Add a new field
parentCategoryIdto theSfCategory.
0.15.1
Patch Changes
- b41484d: Fix types for SetCartAddressArgs
0.15.0
Minor Changes
- 8260999: - Update
SearchProductsmethod:- remove
categoryHierarchy,currentCategory&subCategoriesfields - Remove
productCountfield fromSfCategory
- remove
0.14.0
Minor Changes
- a8c62a1: Define a new
GetCategorymethod which allows to get the category and its ancestors by category id.
0.13.0
Minor Changes
- d3b0594: Introduce the
SfSortByinterface that defines possible sorting options in the SearchProduct request. Modify thesortByoptions to make it possible to enter the custom options available in API clients.
0.12.0
Minor Changes
- 95f6af6: Support
cartIdargument in cart methods.
0.11.1
Patch Changes
- e13c168: Added
quantityLimitto theSfCartLineItem
0.11.0
Minor Changes
- 3187ae6: Enhance
SfFacetdata model withtypeproperty.
0.10.0
Minor Changes
- 1df82d2c: Enhanced
getCurrenciesmethod to return current currency value
0.9.0
Minor Changes
- Changed method args declaration from interfaces to types. This increases the DX on the SDK side, because now in the IDE you can see the internals of the type, and not just the name of the type. Read more here.
0.8.0
Minor Changes
- Added productId to unified line item
0.7.2
Patch Changes
- Expose SfFacetItem interface from unified-data-model
0.7.1
Patch Changes
- Implemented
PlaceOrdermethod definition inunified-data-model
0.7.0
Minor Changes
- Created ChangeCustomerPassword method
0.6.0
Minor Changes
- Added new entity - SfOrder & SfOrderListItem for representing customer's orders. Also created GetOrders & GetOrderDetails methods for receving those data. Update definition methods for creating API endpoints.
Patch Changes
- Publish
srcdirectory
0.5.0
Minor Changes
- Introduce the possibility of overwrite the normalizers in unified extension. Also provide functions for creating unified extension & define normalizers in Middleware configuration.
0.4.0
Minor Changes
- Changed
SetShippingAddressto accept a new interfaceSfCreateAddressBody. Thanks to that we ensure that all required address fields are passed- Created definition for
Customermethods:CreateCustomerAddress: allows to set a new address for currently logged in customerUpdateCustomerAddress: allows to update an existing address belonging to currently logged in customerGetCustomerAddresses: returns all addresses assigned to currently logged in customerDeleteCustomerAddress: allows to delete an existing address belonging to currently logged in customer
- Created definition for
0.3.0
Minor Changes
- Added a
UpdateCustomermethod data model and implemented for unified-data-mocks.
0.2.0
Minor Changes
- Added a
SfCustomermodel and specification for authenthication methods:type RegisterCustomer = (args: RegisterCustomerArgs): Promise<{ customer: SfCustomer; }>; type LoginCustomer = (args: LoginCustomerArgs): Promise<{ customer: SfCustomer; }>; type GetCustomer = () => Promise<Maybe<SfCustomer>>; type LogoutCustomer = () => Promise<void>; - Split
GetProductsmethod into two methods:GetProductswhich allows to get specific products byidsorskus- and
SearchProductswhich allows to search for products byfacets,category, andsearchphrase with an option to paginate and sort results
0.1.0
Minor Changes
- init package