diff --git a/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts b/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts index 0edc5109953..f3623e64b35 100644 --- a/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts +++ b/packages/commercetools/api-client/src/helpers/commercetoolsLink/restrictedOperations.ts @@ -1,7 +1,8 @@ /* istanbul ignore file */ const restrictedOperations = { anonymous: [ - 'createCart' + 'createCart', + 'createMyShoppingList' ], user: [ 'customerSignMeIn', diff --git a/packages/core/core/src/factories/useWishlistFactory.ts b/packages/core/core/src/factories/useWishlistFactory.ts index 2d3d606bcf9..80f960ec064 100644 --- a/packages/core/core/src/factories/useWishlistFactory.ts +++ b/packages/core/core/src/factories/useWishlistFactory.ts @@ -3,7 +3,7 @@ import { Ref, computed } from '@vue/composition-api'; import { sharedRef, Logger, generateContext } from '../utils'; export interface UseWishlistFactoryParams extends FactoryParams { - load: (context: Context, params: { customQuery?: CustomQuery }) => Promise; + load: (context: Context, params: { customQuery?: any }) => Promise; addItem: ( context: Context, params: { @@ -84,7 +84,6 @@ export const useWishlistFactory = ( const load = async ({ customQuery } = { customQuery: undefined }) => { Logger.debug('useWishlist.load'); - if (wishlist.value) return; try { diff --git a/packages/core/docs/commercetools/changelog.md b/packages/core/docs/commercetools/changelog.md index 117bb7909fc..2f2a0e662a8 100644 --- a/packages/core/docs/commercetools/changelog.md +++ b/packages/core/docs/commercetools/changelog.md @@ -11,6 +11,7 @@ - use updated factories `useUserBillingFactory`, `useUserShippingFactory` and `useWishlistFactory` ([5350](https://github.com/vuestorefront/vue-storefront/pull/5350)) - use updated factories `useUserBillingFactory`, `useUserShippingFactory` and `useWishlistFactory` ([5350](https://github.com/vuestorefront/vue-storefront/pull/5350)) - fix selecting country on checkout payment and shipping ([5386](https://github.com/vuestorefront/vue-storefront/pull/5386)) +- `createMyShoppingList` as a restricted anonymous operation ## 1.0.1-rc.1 - updated version of core diff --git a/packages/core/docs/contributing/changelog.md b/packages/core/docs/contributing/changelog.md index 5afa11de5d1..f947e8a8209 100644 --- a/packages/core/docs/contributing/changelog.md +++ b/packages/core/docs/contributing/changelog.md @@ -14,7 +14,7 @@ - fix adding to cart button on product page ([#5375](https://github.com/vuestorefront/vue-storefront/pull/5375)) - typed error ref for each core's factory ([#4956](https://github.com/vuestorefront/vue-storefront/issues/4956)) - added ID to Loggers in core factories ([#5351](https://github.com/vuestorefront/vue-storefront/issues/5351)) - +- useWishlistFactory.load `customQuery` in second argument's object is typeof `any` not `CustomQuery` anymore ## 2.1.1-rc.1 - updated version of nuxt composition-api