-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(UST-1217): UDM enhancements release (#1499)
* feat(IN-3927): udm enhancements (#1486) * feat: categorylistquery * feat: categorysearchquery * feat: productlistquery * chore: regenerate fixtures * chore: changeset * chore: udpate changelog * chore: update changelog * feat: pre-release * ci: release (rc) (#1487) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(IN-3927): UDM enhancements 2 (#1488) * feat: extend categoryList query * chore: changeset * chore: recreate fixtures * ci: release (rc) (#1489) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(UST-1217): UDM enhancements 3 (#1490) * feat: update product details query * chore: changeset * chore: regenerate fixtures * fix: fixtures * ci: release (rc) (#1491) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(UST-1217): UDM enhancements 3 (#1492) * feat: cart response * chore: update fixtures * chore: enhance cart prices query * chore: changeset * ci: release (rc) (#1493) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(UST-1217): UDM enhancements 4 (#1494) * fix: updateCustomerAddress types * chore: extend createCustomerAddress query * chore: update CreateCustomerAddressMutation types * chore: changeset * chore: changeset * chore: restore fixtures * ci: release (rc) (#1496) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * feat(UST-1217): UDM enhancements 5 (#1497) * fix: getAvailableShippingMethods type args * chore: changeset * ci: release (rc) (#1498) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: exit pre-release * Revert "chore: exit pre-release" This reverts commit 2c9253d. * feat(UDM-1217): UDM enhancements 6 (#1500) * feat: align cart requests response * chore: changeset * chore: fix unit-test config * ci: release (rc) (#1501) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * chore: exit pre-release * chore: remove pre-release mode * chore: revert rc release changes * chore: update fixtures --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Andrzej Kurek <[email protected]>
- Loading branch information
1 parent
77acf91
commit 7ce4f9e
Showing
80 changed files
with
3,245 additions
and
992 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@vue-storefront/magento-api": patch | ||
"@vue-storefront/magento-types": patch | ||
--- | ||
|
||
**[FIXED]** [`CategoryListQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CategoryListQuery) returns `url_key` property on each children level | ||
|
||
**[CHANGED]** Enhanced default GQL queries | ||
|
||
- [`CategoryListQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CategoryListQuery) | ||
- fetch up to 5th level nested categories `children` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@vue-storefront/magento-api": patch | ||
"@vue-storefront/magento-types": patch | ||
--- | ||
|
||
**[CHANGED]** Enhanced default GQL queries | ||
|
||
- [`ProductDetailsQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/ProductDetailsQuery) | ||
- enhanced [`ConfigurableProduct`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/ConfigurableProduct) response with [`ConfigurableVariants`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/ConfigurableVariants) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"@vue-storefront/magento-api": patch | ||
"@vue-storefront/magento-types": patch | ||
--- | ||
|
||
**[CHANGED]** Enhanced default GQL queries with new fields | ||
|
||
- [`CartQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CartQuery) | ||
- [`CustomerCartQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CustomerCartQuery) | ||
- [`ApplyCouponToCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/ApplyCouponToCartMutation) | ||
- [`RemoveCouponFromCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/RemoveCouponFromCartMutation) | ||
- [`AddProductsToCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/AddProductsToCartMutation) | ||
- [`RemoveItemFromCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/RemoveItemFromCartMutation) | ||
- [`SetShippingMethodsOnCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/SetShippingMethodsOnCartMutation) | ||
- [`MergeCartsMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/MergeCartsMutation) | ||
|
||
with new fields: | ||
|
||
- `prices` | ||
- `subtotal_with_discount_excluding_tax` | ||
- `configured_variant` | ||
- `sku` | ||
- `name` | ||
- `only_x_left_in_stock` | ||
- `price_range` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@vue-storefront/magento-types": patch | ||
--- | ||
|
||
**[FIXED]** [`getAvailableShippingMethods`](https://docs.vuestorefront.io/integrations/magento/api/magento-api/getAvailableShippingMethods) method declaration argument type. Using `cart_id` instead of `cartId`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
"@vue-storefront/magento-api": patch | ||
"@vue-storefront/magento-types": patch | ||
--- | ||
|
||
**[FIXED]** [`updateCustomerAddress`](https://docs.vuestorefront.io/integrations/magento/api/magento-api/updateCustomerAddress) method declaration argument type. Use `id` instead of `addressId`. | ||
|
||
**[CHANGED]** Enhanced default GQL queries | ||
|
||
- [`CreateCustomerAddress`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CreateCustomerAddress) response with fields | ||
- `firstname` | ||
- `lastname` | ||
- `prefix` | ||
- `suffix` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
"@vue-storefront/magento-api": patch | ||
"@vue-storefront/magento-types": patch | ||
--- | ||
|
||
**[CHANGED]** Enhanced default GQL queries with new fields | ||
|
||
- [`SetGuestEmailOnCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/SetBillingAddressOnCartMutation) | ||
- [`SetBillingAddressOnCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/SetBillingAddressOnCartMutation) | ||
- [`SetPaymentMethodOnCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/SetPaymentMethodOnCartMutation) | ||
- [`SetShippingAddressesOnCartMutation`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/SetShippingAddressesOnCartMutation) | ||
|
||
with new fields: | ||
|
||
- `prices` | ||
- `subtotal_with_discount_excluding_tax` | ||
- `configured_variant` | ||
- `sku` | ||
- `name` | ||
- `only_x_left_in_stock` | ||
- `price_range` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
"@vue-storefront/magento-api": minor | ||
"@vue-storefront/magento-types": minor | ||
--- | ||
|
||
**[CHANGED]** Enhanced default GQL queries | ||
|
||
- [`CategorySearchQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CategorySearchQuery) new fields: | ||
- `url_key` - The url key assigned to the category. | ||
- `children` - Child categories tree. | ||
- `include_in_menu` | ||
- `is_anchor` | ||
- `level` | ||
- `name` | ||
- `position` | ||
- `product_count` | ||
- `uid` | ||
- `url_key` | ||
- `url_path` | ||
- `url_suffix` | ||
|
||
```js | ||
// get category `children` categories | ||
|
||
const category = sdk.commerce.categorySearch(); | ||
const children = category.children; | ||
``` | ||
|
||
- [`CategoryListQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/CategoryListQuery) new fields: | ||
- `children.url_key` - The url key assigned to the category. | ||
|
||
```js | ||
// get `url_key` of category children | ||
|
||
const categoryList = sdk.commerce.categoryList(); | ||
|
||
for (let categoryChildren of categoryList.children) { | ||
const url_key = categoryChildren.url_key; | ||
} | ||
``` | ||
|
||
- [`ProductListsQuery`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/ProductListsQuery) new fields: | ||
- `variants` - An array of variants of [`ConfigurableProduct`](https://docs.vuestorefront.io/integrations/magento/api/magento-types/ConfigurableProduct) | ||
|
||
```js | ||
// get ConfigurableProduct `variants` products | ||
|
||
const products = sdk.commerce.products(); | ||
|
||
for (let product of products) { | ||
if (product.__typename === "ConfigurableProduct") { | ||
const variants = products.variants; | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.