@zenky/storefront-vue 0.9.35 → 0.9.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/index.js CHANGED
@@ -579,7 +579,7 @@ const useCategoriesStore = pinia.defineStore({
579
579
  }
580
580
  this.loading = true;
581
581
  try {
582
- this.tree = await api.getCategoriesTree({ visibility: 'visible', with: 'media' });
582
+ this.tree = await api.getCategoriesTree({ visibility: api.Visibility.Visible, with: 'media' });
583
583
  this.loaded = true;
584
584
  }
585
585
  catch (e) {
@@ -754,7 +754,7 @@ const useCollectionsStore = pinia.defineStore({
754
754
  this.loading = true;
755
755
  try {
756
756
  this.collections = (await api.getProductsCollections({
757
- visibility: 'visible',
757
+ visibility: api.Visibility.Visible,
758
758
  order_by: 'name',
759
759
  with: 'media',
760
760
  count: 100,
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ref, computed, watch, unref, inject } from 'vue';
2
2
  import { debounce, isBoolean } from 'lodash-es';
3
- import { getStore, getAddressSuggestions, getCategoriesTree, getProductsCollections, getApiErrorMessage, getCategoryFeatures, getCategoryFeaturesGroups, getArticles, getArticleCategories, getArticle, getAuthenticationStatus, setAxiosToken, getCustomerProfile, login, requestPasswordResetCode, resetPassword, register, resendConfirmationCode, confirm, getApiErrorCode, getCustomerAddresses, deleteAddress, updateAddress, getCustomerOrders, getOrder, getCustomerPaymentMethods, deleteCustomerPaymentMethod, ImageType, getOffers, getOffer, getProductsPricesRange, getProducts } from '@zenky/api';
3
+ import { getStore, getAddressSuggestions, getCategoriesTree, Visibility, getProductsCollections, getApiErrorMessage, getCategoryFeatures, getCategoryFeaturesGroups, getArticles, getArticleCategories, getArticle, getAuthenticationStatus, setAxiosToken, getCustomerProfile, login, requestPasswordResetCode, resetPassword, register, resendConfirmationCode, confirm, getApiErrorCode, getCustomerAddresses, deleteAddress, updateAddress, getCustomerOrders, getOrder, getCustomerPaymentMethods, deleteCustomerPaymentMethod, ImageType, getOffers, getOffer, getProductsPricesRange, getProducts } from '@zenky/api';
4
4
  import { defineStore } from 'pinia';
5
5
  import { useNotification } from '@zenky/ui';
6
6
  import { useCustomerLoaded, useCustomerAuthenticated, useCustomerLoggedOut, useOrderPriceRecalculated, useOrderShouldBeReloaded, useOrderPromotionRewardsShouldBeReloaded, useDisplayOrderPromotionRewardSelection, usePromotionsCheckerCompleted, useOrderPromotionsNotFound, useOrderSubmitted } from '@zenky/events';
@@ -571,7 +571,7 @@ const useCategoriesStore = defineStore({
571
571
  }
572
572
  this.loading = true;
573
573
  try {
574
- this.tree = await getCategoriesTree({ visibility: 'visible', with: 'media' });
574
+ this.tree = await getCategoriesTree({ visibility: Visibility.Visible, with: 'media' });
575
575
  this.loaded = true;
576
576
  }
577
577
  catch (e) {
@@ -746,7 +746,7 @@ const useCollectionsStore = defineStore({
746
746
  this.loading = true;
747
747
  try {
748
748
  this.collections = (await getProductsCollections({
749
- visibility: 'visible',
749
+ visibility: Visibility.Visible,
750
750
  order_by: 'name',
751
751
  with: 'media',
752
752
  count: 100,
package/dist/zenky.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
2
  import * as _zenky_api from '@zenky/api';
3
- import { PaginationRequest, Pagination, PaginatedResponse, ResourceRequest, Address, City, NestedCategory, ProductsCollection, Feature, FeaturesGroupContainer, Article, ArticleCategory, Customer, AuthenticationPhone, Order, OrderCredentials, CustomerPaymentMethod, Medium, Image, Offer, Product, ProductsPricesRange, ProductsPaginationRequest, Schedule, Stock, Store, StoreSettings } from '@zenky/api';
3
+ import { PaginationRequest, Pagination, PaginatedResponse, ResourceRequest, Address, City, NestedCategory, ProductsCollection, Feature, FeaturesGroupContainer, Article, ArticlesPaginationRequest, ArticleCategory, ArticleCategoriesPaginationRequest, Customer, AuthenticationPhone, Order, OrderCredentials, CustomerPaymentMethod, Medium, Image, Offer, OffersPaginationRequest, Product, ProductsPricesRange, ProductsPaginationRequest, Schedule, Stock, Store, StoreSettings } from '@zenky/api';
4
4
  import * as pinia from 'pinia';
5
5
  import Pusher from 'pusher-js';
6
6
 
@@ -210,8 +210,8 @@ declare const useCollectionsStore: pinia.StoreDefinition<"zenky:storefront:colle
210
210
  declare function useCategoryFeaturesList(categoryId: string | null, errorHandler?: OptionalApiErrorHandler): ListLoader<Feature>;
211
211
  declare function useCategoryFeaturesGroupsList(categoryId: string | null, errorHandler?: OptionalApiErrorHandler): ListLoader<FeaturesGroupContainer>;
212
212
 
213
- declare function useArticlesList(errorHandler?: OptionalApiErrorHandler): PaginatedLoader<Article>;
214
- declare function useArticleCategoriesList(errorHandler?: OptionalApiErrorHandler): PaginatedLoader<ArticleCategory>;
213
+ declare function useArticlesList(errorHandler?: OptionalApiErrorHandler): PaginatedLoader<Article, ArticlesPaginationRequest>;
214
+ declare function useArticleCategoriesList(errorHandler?: OptionalApiErrorHandler): PaginatedLoader<ArticleCategory, ArticleCategoriesPaginationRequest>;
215
215
  declare function useArticleItem(errorHandler?: OptionalApiErrorHandler): ItemLoader<Article>;
216
216
 
217
217
  declare enum AuthenticationStage {
@@ -1060,7 +1060,7 @@ declare const useCustomerStore: pinia.StoreDefinition<"zenky:storefront:customer
1060
1060
 
1061
1061
  declare function getFirstMedium(media: Medium | Medium[], sizes?: string[], preferWebp?: boolean): Image | null;
1062
1062
 
1063
- declare function useOffersList(errorHandler?: OptionalApiErrorHandler): PaginatedLoader<Offer>;
1063
+ declare function useOffersList(errorHandler?: OptionalApiErrorHandler): PaginatedLoader<Offer, OffersPaginationRequest>;
1064
1064
  declare function useOfferItem(errorHandler?: OptionalApiErrorHandler): ItemLoader<Offer>;
1065
1065
 
1066
1066
  declare enum ProductsSourceType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenky/storefront-vue",
3
- "version": "0.9.35",
3
+ "version": "0.9.37",
4
4
  "description": "Zenky Storefront library for Vue 3.",
5
5
  "author": "Timur Zurbaev <hello@zurbaev.ru>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "Zenky"
20
20
  ],
21
21
  "peerDependencies": {
22
- "@zenky/api": "^0.9.41",
22
+ "@zenky/api": "^0.9.44",
23
23
  "@zenky/events": "^1.0.2",
24
24
  "@zenky/ui": "^0.9.63",
25
25
  "lodash-es": "^4.17.21",