@shoppexio/storefront 1.0.108 → 1.0.110

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/index.d.cts CHANGED
@@ -353,6 +353,8 @@ interface Product {
353
353
  terms_of_service?: string | null;
354
354
  warranty?: number;
355
355
  warranty_text?: string | null;
356
+ /** The warranty a buyer claims per purchase in their account, in days; null for none. */
357
+ warranty_period_days?: number | null;
356
358
  sort_priority?: number;
357
359
  pay_what_you_want?: boolean | number;
358
360
  video_link?: string | null;
@@ -363,6 +365,10 @@ interface ProductFeedback {
363
365
  neutral: number;
364
366
  negative: number;
365
367
  numbers?: Record<number, number>;
368
+ /** Reviews among `total` written on a delivered order; absent from an API that predates it. */
369
+ verified?: number;
370
+ /** The `verified` reviews' own average, one decimal; null when none is verified. */
371
+ verified_average?: number | null;
366
372
  list?: Array<{
367
373
  score: number;
368
374
  message: string | null;
@@ -493,6 +499,10 @@ interface ShopReviewsSummary {
493
499
  neutral: number;
494
500
  negative: number;
495
501
  average_score: number | null;
502
+ /** Reviews among `total` written on a delivered order; absent from an API that predates it. */
503
+ verified?: number;
504
+ /** The `verified` reviews' own 1-5 average, null when none is verified. */
505
+ verified_average_score?: number | null;
496
506
  }
497
507
  interface ShopReviewsPage {
498
508
  feedback: Feedback[];
@@ -813,6 +823,8 @@ interface StorefrontOnlineUsers {
813
823
  }
814
824
  interface StorefrontRecentSaleEntry {
815
825
  product_title: string;
826
+ /** The sold product's public id (`Product.uniqid`), to link the sale; absent until the API that sends it is deployed. */
827
+ product_uniqid?: string;
816
828
  seconds_ago: number;
817
829
  }
818
830
  interface StorefrontRecentSales {
@@ -1983,10 +1995,6 @@ declare function cancelSubscription(uniqid: string, options?: CustomerSubscripti
1983
1995
  declare function pauseSubscription(uniqid: string, options?: CustomerSubscriptionPauseOptions): Promise<SDKResponse<unknown>>;
1984
1996
  declare function resumeSubscription(uniqid: string): Promise<SDKResponse<unknown>>;
1985
1997
  declare function undoSubscriptionCancel(uniqid: string): Promise<SDKResponse<unknown>>;
1986
- declare function favorites(): Promise<SDKResponse<unknown>>;
1987
- /** Idempotent upstream, and a PUT — `customer-favorites.ts` has no POST route. */
1988
- declare function addFavorite(productUniqid: string): Promise<SDKResponse<unknown>>;
1989
- declare function removeFavorite(productUniqid: string): Promise<SDKResponse<unknown>>;
1990
1998
  declare function affiliate(): Promise<SDKResponse<unknown>>;
1991
1999
  declare function affiliateStats(days?: number): Promise<SDKResponse<unknown>>;
1992
2000
  /**
@@ -2155,9 +2163,6 @@ declare const shoppex: {
2155
2163
  pauseSubscription: typeof pauseSubscription;
2156
2164
  resumeSubscription: typeof resumeSubscription;
2157
2165
  undoSubscriptionCancel: typeof undoSubscriptionCancel;
2158
- favorites: typeof favorites;
2159
- addFavorite: typeof addFavorite;
2160
- removeFavorite: typeof removeFavorite;
2161
2166
  affiliate: typeof affiliate;
2162
2167
  affiliateStats: typeof affiliateStats;
2163
2168
  createAffiliateLink: typeof createAffiliateLink;
@@ -2267,4 +2272,4 @@ declare const shoppex: {
2267
2272
  trackProductView: typeof src.trackProductView;
2268
2273
  };
2269
2274
 
2270
- export { type AffiliateValidation, ApiError, type ApiResponse, type BlockDefinition, type BlockInstance, type BuyerRewardActivityItem, type BuyerRewards, CURRENCY_UNAVAILABLE_ERROR_CODE, type CartAddOptions, type CartAddon, type CartAppliedDiscount, type CartBasketMergeLine, type CartCodeSource, CartError, type CartItem, type CartItemUpdate, type CartLineIdentityInput, type CartMetadata, type CartPayload, type CartQuote, type CartQuoteLine, type CartStats, type Category, CheckoutCreateError, type CheckoutOptions, type CheckoutResult, type CouponValidation, type CouponValidationOptions, type CursorPagination, type CustomFieldDefinition, type CustomerAffiliateLinkInput, type CustomerEmailPreferencesPatch, type CustomerInvoicePdf, type CustomerNotificationPreferencesPatch, type CustomerProfilePatch, type CustomerSubscriptionCancelOptions, type CustomerSubscriptionPauseOptions, type CustomerSubscriptionPauseReason, type CustomerTicketPayload, type EligibleBundleDeal, type EligibleBundleDealProduct, type EligibleCartDeal, type Feedback, type Invoice, type InvoiceProduct, type Menu, type MenuItem, NetworkError, NotInitializedError, PRODUCT_FILTER_UNSUPPORTED, type Page, type PageLayout, type PriceVariant, type Product, type ProductAddon, type ProductBundle, type ProductBundleProduct, type ProductCategory, type ProductDescriptionTab, type ProductFaq, type ProductFeedback, type ProductGroup, type ProductImage, type ProductVariant, type PublishedBuilderSettings, type PublishedThemeSettingsPayload, type ResellerCatalogQuery, type ResellerOrderItem, type ResellerOrdersQuery, type ResolvedThemeSettings, type RewardActionType, type RewardGrantStatus, type RewardProgramSummary, type RewardProgramTeaserItem, type RewardReason, type SDKResponse, type SearchOptions, type SectionDefinition, type SettingField, type Shop, type ShopFeedback, type ShopReviewsPage, type ShopReviewsSummary, type ShopTheme, type ShoppexConfig, ShoppexError, type ShoppexInitOptions, type StorefrontAddon, type StorefrontAddonBootstrap, type StorefrontAnnouncementBarAddon, type StorefrontCatalogSearchItem, type StorefrontContactTicketInput, type StorefrontContactTicketResult, type StorefrontCountdownBarAddon, type StorefrontCouponPopupModalAddon, type StorefrontCustomField, type StorefrontData, type StorefrontItem, type StorefrontOnlineUsers, type StorefrontPromoInfoCardAddon, type StorefrontRecentPurchasePopupAddon, type StorefrontRecentSaleEntry, type StorefrontRecentSales, type StorefrontSearchFilterOptions, type StorefrontSocialLinks, type Subscription, type SubscriptionFlags, type SubscriptionInterval, type ThemeBlockManifest, type ThemeConfig, type TrustedChecks, ValidationError, acceptResellerInvite, addFavorite, affiliate, affiliateStats, applyForReseller, buildStorefrontContactMessage, buildStorefrontCustomFieldPayload, buildStorefrontProductLookup, cancelSubscription, claimWarranty, collectProductSearchHaystack, computeCartLineId, createAffiliateLink, createTicket, dashboard, shoppex as default, discardTicketImage, emailPreferences, enrollAsReseller, ensureCartLineId, favorites, fetchPublishedBuilderSettings, fetchPublishedThemeSettings, filterProductsBySearchQuery, getMenu, getMenuBySlot, getMenuByTitle, getMenuSlotTitles, getMenus, getMergedStorefrontProducts, getShopReviewsPage, getStorefrontGroupProducts, getStorefrontOnlineUsers, getStorefrontRecentSales, groupMatchesSearchQuery, invoicePdf, isProductInStock, isProductOutOfStock, isStorefrontCheckboxCustomFieldValueChecked, isVariantOutOfStock, logout, loyalty, me, mergeSettings, normalizeSearchQuery, normalizeStorefrontCustomFields, notificationPreferences, order, orderReview, orders, pauseSubscription, productMatchesSearchQuery, quoteResellerOrder, redeemLoyaltyPoints, removeAvatar, removeFavorite, replyToTicket, requestOtp, reseller, resellerApiKeys, resellerCatalog, resellerOrder, resellerOrders, resellerWallet, resetLicenseHwid, resolveDefaults, resolveDisplayStock, resolveStorefrontApiBaseUrl, resolveStorefrontSocialLinks, resolveVariantStockValue, resumeSubscription, revokeAllSessions, revokeSession, searchMergedStorefrontCatalog, searchMergedStorefrontCatalogItems, sessions, shoppex, stripHtmlFromText, submitStorefrontContactTicket, subscriptionBillingHistory, ticket, touchStorefrontPresence, trackCartActivity, trackPageView, trackProductView, undoSubscriptionCancel, updateAvatar, updateEmailPreferences, updateNotificationPreferences, updateProfile, uploadTicketImage, validateStorefrontCustomFieldValue, verifyOtp, warranties };
2275
+ export { type AffiliateValidation, ApiError, type ApiResponse, type BlockDefinition, type BlockInstance, type BuyerRewardActivityItem, type BuyerRewards, CURRENCY_UNAVAILABLE_ERROR_CODE, type CartAddOptions, type CartAddon, type CartAppliedDiscount, type CartBasketMergeLine, type CartCodeSource, CartError, type CartItem, type CartItemUpdate, type CartLineIdentityInput, type CartMetadata, type CartPayload, type CartQuote, type CartQuoteLine, type CartStats, type Category, CheckoutCreateError, type CheckoutOptions, type CheckoutResult, type CouponValidation, type CouponValidationOptions, type CursorPagination, type CustomFieldDefinition, type CustomerAffiliateLinkInput, type CustomerEmailPreferencesPatch, type CustomerInvoicePdf, type CustomerNotificationPreferencesPatch, type CustomerProfilePatch, type CustomerSubscriptionCancelOptions, type CustomerSubscriptionPauseOptions, type CustomerSubscriptionPauseReason, type CustomerTicketPayload, type EligibleBundleDeal, type EligibleBundleDealProduct, type EligibleCartDeal, type Feedback, type Invoice, type InvoiceProduct, type Menu, type MenuItem, NetworkError, NotInitializedError, PRODUCT_FILTER_UNSUPPORTED, type Page, type PageLayout, type PriceVariant, type Product, type ProductAddon, type ProductBundle, type ProductBundleProduct, type ProductCategory, type ProductDescriptionTab, type ProductFaq, type ProductFeedback, type ProductGroup, type ProductImage, type ProductVariant, type PublishedBuilderSettings, type PublishedThemeSettingsPayload, type ResellerCatalogQuery, type ResellerOrderItem, type ResellerOrdersQuery, type ResolvedThemeSettings, type RewardActionType, type RewardGrantStatus, type RewardProgramSummary, type RewardProgramTeaserItem, type RewardReason, type SDKResponse, type SearchOptions, type SectionDefinition, type SettingField, type Shop, type ShopFeedback, type ShopReviewsPage, type ShopReviewsSummary, type ShopTheme, type ShoppexConfig, ShoppexError, type ShoppexInitOptions, type StorefrontAddon, type StorefrontAddonBootstrap, type StorefrontAnnouncementBarAddon, type StorefrontCatalogSearchItem, type StorefrontContactTicketInput, type StorefrontContactTicketResult, type StorefrontCountdownBarAddon, type StorefrontCouponPopupModalAddon, type StorefrontCustomField, type StorefrontData, type StorefrontItem, type StorefrontOnlineUsers, type StorefrontPromoInfoCardAddon, type StorefrontRecentPurchasePopupAddon, type StorefrontRecentSaleEntry, type StorefrontRecentSales, type StorefrontSearchFilterOptions, type StorefrontSocialLinks, type Subscription, type SubscriptionFlags, type SubscriptionInterval, type ThemeBlockManifest, type ThemeConfig, type TrustedChecks, ValidationError, acceptResellerInvite, affiliate, affiliateStats, applyForReseller, buildStorefrontContactMessage, buildStorefrontCustomFieldPayload, buildStorefrontProductLookup, cancelSubscription, claimWarranty, collectProductSearchHaystack, computeCartLineId, createAffiliateLink, createTicket, dashboard, shoppex as default, discardTicketImage, emailPreferences, enrollAsReseller, ensureCartLineId, fetchPublishedBuilderSettings, fetchPublishedThemeSettings, filterProductsBySearchQuery, getMenu, getMenuBySlot, getMenuByTitle, getMenuSlotTitles, getMenus, getMergedStorefrontProducts, getShopReviewsPage, getStorefrontGroupProducts, getStorefrontOnlineUsers, getStorefrontRecentSales, groupMatchesSearchQuery, invoicePdf, isProductInStock, isProductOutOfStock, isStorefrontCheckboxCustomFieldValueChecked, isVariantOutOfStock, logout, loyalty, me, mergeSettings, normalizeSearchQuery, normalizeStorefrontCustomFields, notificationPreferences, order, orderReview, orders, pauseSubscription, productMatchesSearchQuery, quoteResellerOrder, redeemLoyaltyPoints, removeAvatar, replyToTicket, requestOtp, reseller, resellerApiKeys, resellerCatalog, resellerOrder, resellerOrders, resellerWallet, resetLicenseHwid, resolveDefaults, resolveDisplayStock, resolveStorefrontApiBaseUrl, resolveStorefrontSocialLinks, resolveVariantStockValue, resumeSubscription, revokeAllSessions, revokeSession, searchMergedStorefrontCatalog, searchMergedStorefrontCatalogItems, sessions, shoppex, stripHtmlFromText, submitStorefrontContactTicket, subscriptionBillingHistory, ticket, touchStorefrontPresence, trackCartActivity, trackPageView, trackProductView, undoSubscriptionCancel, updateAvatar, updateEmailPreferences, updateNotificationPreferences, updateProfile, uploadTicketImage, validateStorefrontCustomFieldValue, verifyOtp, warranties };
package/dist/index.d.ts CHANGED
@@ -353,6 +353,8 @@ interface Product {
353
353
  terms_of_service?: string | null;
354
354
  warranty?: number;
355
355
  warranty_text?: string | null;
356
+ /** The warranty a buyer claims per purchase in their account, in days; null for none. */
357
+ warranty_period_days?: number | null;
356
358
  sort_priority?: number;
357
359
  pay_what_you_want?: boolean | number;
358
360
  video_link?: string | null;
@@ -363,6 +365,10 @@ interface ProductFeedback {
363
365
  neutral: number;
364
366
  negative: number;
365
367
  numbers?: Record<number, number>;
368
+ /** Reviews among `total` written on a delivered order; absent from an API that predates it. */
369
+ verified?: number;
370
+ /** The `verified` reviews' own average, one decimal; null when none is verified. */
371
+ verified_average?: number | null;
366
372
  list?: Array<{
367
373
  score: number;
368
374
  message: string | null;
@@ -493,6 +499,10 @@ interface ShopReviewsSummary {
493
499
  neutral: number;
494
500
  negative: number;
495
501
  average_score: number | null;
502
+ /** Reviews among `total` written on a delivered order; absent from an API that predates it. */
503
+ verified?: number;
504
+ /** The `verified` reviews' own 1-5 average, null when none is verified. */
505
+ verified_average_score?: number | null;
496
506
  }
497
507
  interface ShopReviewsPage {
498
508
  feedback: Feedback[];
@@ -813,6 +823,8 @@ interface StorefrontOnlineUsers {
813
823
  }
814
824
  interface StorefrontRecentSaleEntry {
815
825
  product_title: string;
826
+ /** The sold product's public id (`Product.uniqid`), to link the sale; absent until the API that sends it is deployed. */
827
+ product_uniqid?: string;
816
828
  seconds_ago: number;
817
829
  }
818
830
  interface StorefrontRecentSales {
@@ -1983,10 +1995,6 @@ declare function cancelSubscription(uniqid: string, options?: CustomerSubscripti
1983
1995
  declare function pauseSubscription(uniqid: string, options?: CustomerSubscriptionPauseOptions): Promise<SDKResponse<unknown>>;
1984
1996
  declare function resumeSubscription(uniqid: string): Promise<SDKResponse<unknown>>;
1985
1997
  declare function undoSubscriptionCancel(uniqid: string): Promise<SDKResponse<unknown>>;
1986
- declare function favorites(): Promise<SDKResponse<unknown>>;
1987
- /** Idempotent upstream, and a PUT — `customer-favorites.ts` has no POST route. */
1988
- declare function addFavorite(productUniqid: string): Promise<SDKResponse<unknown>>;
1989
- declare function removeFavorite(productUniqid: string): Promise<SDKResponse<unknown>>;
1990
1998
  declare function affiliate(): Promise<SDKResponse<unknown>>;
1991
1999
  declare function affiliateStats(days?: number): Promise<SDKResponse<unknown>>;
1992
2000
  /**
@@ -2155,9 +2163,6 @@ declare const shoppex: {
2155
2163
  pauseSubscription: typeof pauseSubscription;
2156
2164
  resumeSubscription: typeof resumeSubscription;
2157
2165
  undoSubscriptionCancel: typeof undoSubscriptionCancel;
2158
- favorites: typeof favorites;
2159
- addFavorite: typeof addFavorite;
2160
- removeFavorite: typeof removeFavorite;
2161
2166
  affiliate: typeof affiliate;
2162
2167
  affiliateStats: typeof affiliateStats;
2163
2168
  createAffiliateLink: typeof createAffiliateLink;
@@ -2267,4 +2272,4 @@ declare const shoppex: {
2267
2272
  trackProductView: typeof src.trackProductView;
2268
2273
  };
2269
2274
 
2270
- export { type AffiliateValidation, ApiError, type ApiResponse, type BlockDefinition, type BlockInstance, type BuyerRewardActivityItem, type BuyerRewards, CURRENCY_UNAVAILABLE_ERROR_CODE, type CartAddOptions, type CartAddon, type CartAppliedDiscount, type CartBasketMergeLine, type CartCodeSource, CartError, type CartItem, type CartItemUpdate, type CartLineIdentityInput, type CartMetadata, type CartPayload, type CartQuote, type CartQuoteLine, type CartStats, type Category, CheckoutCreateError, type CheckoutOptions, type CheckoutResult, type CouponValidation, type CouponValidationOptions, type CursorPagination, type CustomFieldDefinition, type CustomerAffiliateLinkInput, type CustomerEmailPreferencesPatch, type CustomerInvoicePdf, type CustomerNotificationPreferencesPatch, type CustomerProfilePatch, type CustomerSubscriptionCancelOptions, type CustomerSubscriptionPauseOptions, type CustomerSubscriptionPauseReason, type CustomerTicketPayload, type EligibleBundleDeal, type EligibleBundleDealProduct, type EligibleCartDeal, type Feedback, type Invoice, type InvoiceProduct, type Menu, type MenuItem, NetworkError, NotInitializedError, PRODUCT_FILTER_UNSUPPORTED, type Page, type PageLayout, type PriceVariant, type Product, type ProductAddon, type ProductBundle, type ProductBundleProduct, type ProductCategory, type ProductDescriptionTab, type ProductFaq, type ProductFeedback, type ProductGroup, type ProductImage, type ProductVariant, type PublishedBuilderSettings, type PublishedThemeSettingsPayload, type ResellerCatalogQuery, type ResellerOrderItem, type ResellerOrdersQuery, type ResolvedThemeSettings, type RewardActionType, type RewardGrantStatus, type RewardProgramSummary, type RewardProgramTeaserItem, type RewardReason, type SDKResponse, type SearchOptions, type SectionDefinition, type SettingField, type Shop, type ShopFeedback, type ShopReviewsPage, type ShopReviewsSummary, type ShopTheme, type ShoppexConfig, ShoppexError, type ShoppexInitOptions, type StorefrontAddon, type StorefrontAddonBootstrap, type StorefrontAnnouncementBarAddon, type StorefrontCatalogSearchItem, type StorefrontContactTicketInput, type StorefrontContactTicketResult, type StorefrontCountdownBarAddon, type StorefrontCouponPopupModalAddon, type StorefrontCustomField, type StorefrontData, type StorefrontItem, type StorefrontOnlineUsers, type StorefrontPromoInfoCardAddon, type StorefrontRecentPurchasePopupAddon, type StorefrontRecentSaleEntry, type StorefrontRecentSales, type StorefrontSearchFilterOptions, type StorefrontSocialLinks, type Subscription, type SubscriptionFlags, type SubscriptionInterval, type ThemeBlockManifest, type ThemeConfig, type TrustedChecks, ValidationError, acceptResellerInvite, addFavorite, affiliate, affiliateStats, applyForReseller, buildStorefrontContactMessage, buildStorefrontCustomFieldPayload, buildStorefrontProductLookup, cancelSubscription, claimWarranty, collectProductSearchHaystack, computeCartLineId, createAffiliateLink, createTicket, dashboard, shoppex as default, discardTicketImage, emailPreferences, enrollAsReseller, ensureCartLineId, favorites, fetchPublishedBuilderSettings, fetchPublishedThemeSettings, filterProductsBySearchQuery, getMenu, getMenuBySlot, getMenuByTitle, getMenuSlotTitles, getMenus, getMergedStorefrontProducts, getShopReviewsPage, getStorefrontGroupProducts, getStorefrontOnlineUsers, getStorefrontRecentSales, groupMatchesSearchQuery, invoicePdf, isProductInStock, isProductOutOfStock, isStorefrontCheckboxCustomFieldValueChecked, isVariantOutOfStock, logout, loyalty, me, mergeSettings, normalizeSearchQuery, normalizeStorefrontCustomFields, notificationPreferences, order, orderReview, orders, pauseSubscription, productMatchesSearchQuery, quoteResellerOrder, redeemLoyaltyPoints, removeAvatar, removeFavorite, replyToTicket, requestOtp, reseller, resellerApiKeys, resellerCatalog, resellerOrder, resellerOrders, resellerWallet, resetLicenseHwid, resolveDefaults, resolveDisplayStock, resolveStorefrontApiBaseUrl, resolveStorefrontSocialLinks, resolveVariantStockValue, resumeSubscription, revokeAllSessions, revokeSession, searchMergedStorefrontCatalog, searchMergedStorefrontCatalogItems, sessions, shoppex, stripHtmlFromText, submitStorefrontContactTicket, subscriptionBillingHistory, ticket, touchStorefrontPresence, trackCartActivity, trackPageView, trackProductView, undoSubscriptionCancel, updateAvatar, updateEmailPreferences, updateNotificationPreferences, updateProfile, uploadTicketImage, validateStorefrontCustomFieldValue, verifyOtp, warranties };
2275
+ export { type AffiliateValidation, ApiError, type ApiResponse, type BlockDefinition, type BlockInstance, type BuyerRewardActivityItem, type BuyerRewards, CURRENCY_UNAVAILABLE_ERROR_CODE, type CartAddOptions, type CartAddon, type CartAppliedDiscount, type CartBasketMergeLine, type CartCodeSource, CartError, type CartItem, type CartItemUpdate, type CartLineIdentityInput, type CartMetadata, type CartPayload, type CartQuote, type CartQuoteLine, type CartStats, type Category, CheckoutCreateError, type CheckoutOptions, type CheckoutResult, type CouponValidation, type CouponValidationOptions, type CursorPagination, type CustomFieldDefinition, type CustomerAffiliateLinkInput, type CustomerEmailPreferencesPatch, type CustomerInvoicePdf, type CustomerNotificationPreferencesPatch, type CustomerProfilePatch, type CustomerSubscriptionCancelOptions, type CustomerSubscriptionPauseOptions, type CustomerSubscriptionPauseReason, type CustomerTicketPayload, type EligibleBundleDeal, type EligibleBundleDealProduct, type EligibleCartDeal, type Feedback, type Invoice, type InvoiceProduct, type Menu, type MenuItem, NetworkError, NotInitializedError, PRODUCT_FILTER_UNSUPPORTED, type Page, type PageLayout, type PriceVariant, type Product, type ProductAddon, type ProductBundle, type ProductBundleProduct, type ProductCategory, type ProductDescriptionTab, type ProductFaq, type ProductFeedback, type ProductGroup, type ProductImage, type ProductVariant, type PublishedBuilderSettings, type PublishedThemeSettingsPayload, type ResellerCatalogQuery, type ResellerOrderItem, type ResellerOrdersQuery, type ResolvedThemeSettings, type RewardActionType, type RewardGrantStatus, type RewardProgramSummary, type RewardProgramTeaserItem, type RewardReason, type SDKResponse, type SearchOptions, type SectionDefinition, type SettingField, type Shop, type ShopFeedback, type ShopReviewsPage, type ShopReviewsSummary, type ShopTheme, type ShoppexConfig, ShoppexError, type ShoppexInitOptions, type StorefrontAddon, type StorefrontAddonBootstrap, type StorefrontAnnouncementBarAddon, type StorefrontCatalogSearchItem, type StorefrontContactTicketInput, type StorefrontContactTicketResult, type StorefrontCountdownBarAddon, type StorefrontCouponPopupModalAddon, type StorefrontCustomField, type StorefrontData, type StorefrontItem, type StorefrontOnlineUsers, type StorefrontPromoInfoCardAddon, type StorefrontRecentPurchasePopupAddon, type StorefrontRecentSaleEntry, type StorefrontRecentSales, type StorefrontSearchFilterOptions, type StorefrontSocialLinks, type Subscription, type SubscriptionFlags, type SubscriptionInterval, type ThemeBlockManifest, type ThemeConfig, type TrustedChecks, ValidationError, acceptResellerInvite, affiliate, affiliateStats, applyForReseller, buildStorefrontContactMessage, buildStorefrontCustomFieldPayload, buildStorefrontProductLookup, cancelSubscription, claimWarranty, collectProductSearchHaystack, computeCartLineId, createAffiliateLink, createTicket, dashboard, shoppex as default, discardTicketImage, emailPreferences, enrollAsReseller, ensureCartLineId, fetchPublishedBuilderSettings, fetchPublishedThemeSettings, filterProductsBySearchQuery, getMenu, getMenuBySlot, getMenuByTitle, getMenuSlotTitles, getMenus, getMergedStorefrontProducts, getShopReviewsPage, getStorefrontGroupProducts, getStorefrontOnlineUsers, getStorefrontRecentSales, groupMatchesSearchQuery, invoicePdf, isProductInStock, isProductOutOfStock, isStorefrontCheckboxCustomFieldValueChecked, isVariantOutOfStock, logout, loyalty, me, mergeSettings, normalizeSearchQuery, normalizeStorefrontCustomFields, notificationPreferences, order, orderReview, orders, pauseSubscription, productMatchesSearchQuery, quoteResellerOrder, redeemLoyaltyPoints, removeAvatar, replyToTicket, requestOtp, reseller, resellerApiKeys, resellerCatalog, resellerOrder, resellerOrders, resellerWallet, resetLicenseHwid, resolveDefaults, resolveDisplayStock, resolveStorefrontApiBaseUrl, resolveStorefrontSocialLinks, resolveVariantStockValue, resumeSubscription, revokeAllSessions, revokeSession, searchMergedStorefrontCatalog, searchMergedStorefrontCatalogItems, sessions, shoppex, stripHtmlFromText, submitStorefrontContactTicket, subscriptionBillingHistory, ticket, touchStorefrontPresence, trackCartActivity, trackPageView, trackProductView, undoSubscriptionCancel, updateAvatar, updateEmailPreferences, updateNotificationPreferences, updateProfile, uploadTicketImage, validateStorefrontCustomFieldValue, verifyOtp, warranties };
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  customerWarrantyClaimSchema,
11
11
  customerWarrantyListSchema,
12
12
  storefrontStorageKey
13
- } from "./chunk-HMEEWD3P.js";
13
+ } from "./chunk-ZO3MHBVV.js";
14
14
 
15
15
  // ../sdk/src/core/errors.ts
16
16
  var CURRENCY_UNAVAILABLE_ERROR_CODE = "errors.storefront.currency_unavailable";
@@ -4595,15 +4595,6 @@ function undoSubscriptionCancel(uniqid) {
4595
4595
  body: {}
4596
4596
  });
4597
4597
  }
4598
- function favorites() {
4599
- return requestCustomer("/favorites");
4600
- }
4601
- function addFavorite(productUniqid) {
4602
- return requestCustomer(`/favorites/${encodeURIComponent(productUniqid)}`, { method: "PUT" });
4603
- }
4604
- function removeFavorite(productUniqid) {
4605
- return requestCustomer(`/favorites/${encodeURIComponent(productUniqid)}`, { method: "DELETE" });
4606
- }
4607
4598
  function affiliate() {
4608
4599
  return requestCustomer("/affiliate");
4609
4600
  }
@@ -4769,9 +4760,6 @@ var shoppex = {
4769
4760
  pauseSubscription,
4770
4761
  resumeSubscription,
4771
4762
  undoSubscriptionCancel,
4772
- favorites,
4773
- addFavorite,
4774
- removeFavorite,
4775
4763
  affiliate,
4776
4764
  affiliateStats,
4777
4765
  createAffiliateLink,
@@ -4822,7 +4810,6 @@ export {
4822
4810
  ShoppexError,
4823
4811
  ValidationError,
4824
4812
  acceptResellerInvite,
4825
- addFavorite,
4826
4813
  affiliate,
4827
4814
  affiliateStats,
4828
4815
  applyForReseller,
@@ -4841,7 +4828,6 @@ export {
4841
4828
  emailPreferences,
4842
4829
  enrollAsReseller,
4843
4830
  ensureCartLineId,
4844
- favorites,
4845
4831
  fetchPublishedBuilderSettings,
4846
4832
  fetchPublishedThemeSettings,
4847
4833
  filterProductsBySearchQuery,
@@ -4876,7 +4862,6 @@ export {
4876
4862
  quoteResellerOrder,
4877
4863
  redeemLoyaltyPoints,
4878
4864
  removeAvatar,
4879
- removeFavorite,
4880
4865
  replyToTicket,
4881
4866
  requestOtp,
4882
4867
  reseller,