@shoppexio/storefront 1.0.108 → 1.0.109
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/CHANGELOG.md +4 -0
- package/dist/{chunk-HMEEWD3P.js → chunk-RA26HK3B.js} +7 -1
- package/dist/{chunk-HMEEWD3P.js.map → chunk-RA26HK3B.js.map} +1 -1
- package/dist/customer.cjs +6 -35
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.d.cts +2 -7
- package/dist/customer.d.ts +2 -7
- package/dist/customer.js +1 -36
- package/dist/customer.js.map +1 -1
- package/dist/index.cjs +6 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -8
- package/dist/index.d.ts +1 -8
- package/dist/index.js +1 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1983,10 +1983,6 @@ declare function cancelSubscription(uniqid: string, options?: CustomerSubscripti
|
|
|
1983
1983
|
declare function pauseSubscription(uniqid: string, options?: CustomerSubscriptionPauseOptions): Promise<SDKResponse<unknown>>;
|
|
1984
1984
|
declare function resumeSubscription(uniqid: string): Promise<SDKResponse<unknown>>;
|
|
1985
1985
|
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
1986
|
declare function affiliate(): Promise<SDKResponse<unknown>>;
|
|
1991
1987
|
declare function affiliateStats(days?: number): Promise<SDKResponse<unknown>>;
|
|
1992
1988
|
/**
|
|
@@ -2155,9 +2151,6 @@ declare const shoppex: {
|
|
|
2155
2151
|
pauseSubscription: typeof pauseSubscription;
|
|
2156
2152
|
resumeSubscription: typeof resumeSubscription;
|
|
2157
2153
|
undoSubscriptionCancel: typeof undoSubscriptionCancel;
|
|
2158
|
-
favorites: typeof favorites;
|
|
2159
|
-
addFavorite: typeof addFavorite;
|
|
2160
|
-
removeFavorite: typeof removeFavorite;
|
|
2161
2154
|
affiliate: typeof affiliate;
|
|
2162
2155
|
affiliateStats: typeof affiliateStats;
|
|
2163
2156
|
createAffiliateLink: typeof createAffiliateLink;
|
|
@@ -2267,4 +2260,4 @@ declare const shoppex: {
|
|
|
2267
2260
|
trackProductView: typeof src.trackProductView;
|
|
2268
2261
|
};
|
|
2269
2262
|
|
|
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,
|
|
2263
|
+
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
|
@@ -1983,10 +1983,6 @@ declare function cancelSubscription(uniqid: string, options?: CustomerSubscripti
|
|
|
1983
1983
|
declare function pauseSubscription(uniqid: string, options?: CustomerSubscriptionPauseOptions): Promise<SDKResponse<unknown>>;
|
|
1984
1984
|
declare function resumeSubscription(uniqid: string): Promise<SDKResponse<unknown>>;
|
|
1985
1985
|
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
1986
|
declare function affiliate(): Promise<SDKResponse<unknown>>;
|
|
1991
1987
|
declare function affiliateStats(days?: number): Promise<SDKResponse<unknown>>;
|
|
1992
1988
|
/**
|
|
@@ -2155,9 +2151,6 @@ declare const shoppex: {
|
|
|
2155
2151
|
pauseSubscription: typeof pauseSubscription;
|
|
2156
2152
|
resumeSubscription: typeof resumeSubscription;
|
|
2157
2153
|
undoSubscriptionCancel: typeof undoSubscriptionCancel;
|
|
2158
|
-
favorites: typeof favorites;
|
|
2159
|
-
addFavorite: typeof addFavorite;
|
|
2160
|
-
removeFavorite: typeof removeFavorite;
|
|
2161
2154
|
affiliate: typeof affiliate;
|
|
2162
2155
|
affiliateStats: typeof affiliateStats;
|
|
2163
2156
|
createAffiliateLink: typeof createAffiliateLink;
|
|
@@ -2267,4 +2260,4 @@ declare const shoppex: {
|
|
|
2267
2260
|
trackProductView: typeof src.trackProductView;
|
|
2268
2261
|
};
|
|
2269
2262
|
|
|
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,
|
|
2263
|
+
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-
|
|
13
|
+
} from "./chunk-RA26HK3B.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,
|