@vue-storefront/unified-data-model
0.18.0
Minor Changes
- ADDED
toContextualizedNormalizers
function 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
billingAddress
to optional inSfOrder
0.16.0
Minor Changes
- 98c8e77: Add a new field
parentCategoryId
to theSfCategory
.
0.15.1
Patch Changes
- b41484d: Fix types for SetCartAddressArgs
0.15.0
Minor Changes
- 8260999: - Update
SearchProducts
method:- remove
categoryHierarchy
,currentCategory
&subCategories
fields - Remove
productCount
field fromSfCategory
- remove
0.14.0
Minor Changes
- a8c62a1: Define a new
GetCategory
method which allows to get the category and its ancestors by category id.
0.13.0
Minor Changes
- d3b0594: Introduce the
SfSortBy
interface that defines possible sorting options in the SearchProduct request. Modify thesortBy
options to make it possible to enter the custom options available in API clients.
0.12.0
Minor Changes
- 95f6af6: Support
cartId
argument in cart methods.
0.11.1
Patch Changes
- e13c168: Added
quantityLimit
to theSfCartLineItem
0.11.0
Minor Changes
- 3187ae6: Enhance
SfFacet
data model withtype
property.
0.10.0
Minor Changes
- 1df82d2c: Enhanced
getCurrencies
method 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
PlaceOrder
method 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
src
directory
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
SetShippingAddress
to accept a new interfaceSfCreateAddressBody
. Thanks to that we ensure that all required address fields are passed- Created definition for
Customer
methods: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
UpdateCustomer
method data model and implemented for unified-data-mocks.
0.2.0
Minor Changes
- Added a
SfCustomer
model 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
GetProducts
method into two methods:GetProducts
which allows to get specific products byids
orskus
- and
SearchProducts
which allows to search for products byfacets
,category
, andsearch
phrase with an option to paginate and sort results
0.1.0
Minor Changes
- init package