@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/CHANGELOG.md +10 -0
- package/dist/{chunk-HMEEWD3P.js → chunk-ZO3MHBVV.js} +18 -1
- package/dist/{chunk-HMEEWD3P.js.map → chunk-ZO3MHBVV.js.map} +1 -1
- package/dist/customer.cjs +17 -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 +17 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -8
- package/dist/index.d.ts +13 -8
- package/dist/index.js +1 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -33,7 +33,6 @@ __export(src_exports, {
|
|
|
33
33
|
ShoppexError: () => ShoppexError,
|
|
34
34
|
ValidationError: () => ValidationError,
|
|
35
35
|
acceptResellerInvite: () => acceptResellerInvite,
|
|
36
|
-
addFavorite: () => addFavorite,
|
|
37
36
|
affiliate: () => affiliate,
|
|
38
37
|
affiliateStats: () => affiliateStats,
|
|
39
38
|
applyForReseller: () => applyForReseller,
|
|
@@ -52,7 +51,6 @@ __export(src_exports, {
|
|
|
52
51
|
emailPreferences: () => emailPreferences,
|
|
53
52
|
enrollAsReseller: () => enrollAsReseller,
|
|
54
53
|
ensureCartLineId: () => ensureCartLineId,
|
|
55
|
-
favorites: () => favorites,
|
|
56
54
|
fetchPublishedBuilderSettings: () => fetchPublishedBuilderSettings,
|
|
57
55
|
fetchPublishedThemeSettings: () => fetchPublishedThemeSettings,
|
|
58
56
|
filterProductsBySearchQuery: () => filterProductsBySearchQuery,
|
|
@@ -87,7 +85,6 @@ __export(src_exports, {
|
|
|
87
85
|
quoteResellerOrder: () => quoteResellerOrder,
|
|
88
86
|
redeemLoyaltyPoints: () => redeemLoyaltyPoints,
|
|
89
87
|
removeAvatar: () => removeAvatar,
|
|
90
|
-
removeFavorite: () => removeFavorite,
|
|
91
88
|
replyToTicket: () => replyToTicket,
|
|
92
89
|
requestOtp: () => requestOtp,
|
|
93
90
|
reseller: () => reseller,
|
|
@@ -24450,6 +24447,17 @@ var customerPortalAffiliateSummarySchema = external_exports.object({
|
|
|
24450
24447
|
custom_links_require_approval: external_exports.boolean(),
|
|
24451
24448
|
affiliate_codes_accepted_at_checkout: external_exports.boolean(),
|
|
24452
24449
|
cash_payout_enabled: external_exports.boolean(),
|
|
24450
|
+
/** "Your rates" (`readAffiliateRatesSummary`); null until the main link is approved and active. */
|
|
24451
|
+
rates: external_exports.object({
|
|
24452
|
+
percent: external_exports.number(),
|
|
24453
|
+
disabled_products: external_exports.array(external_exports.string()),
|
|
24454
|
+
disabled_product_count: external_exports.number(),
|
|
24455
|
+
custom_rate_product_count: external_exports.number(),
|
|
24456
|
+
cap_usd: nullableStringSchema,
|
|
24457
|
+
minimum_order_usd: nullableStringSchema,
|
|
24458
|
+
binding_mode: external_exports.enum(["PER_ORDER", "LIFETIME_FIRST", "LIFETIME_LAST"]),
|
|
24459
|
+
binding_days: external_exports.number().nullable()
|
|
24460
|
+
}).nullable(),
|
|
24453
24461
|
links: external_exports.array(customerPortalAffiliateLinkSchema),
|
|
24454
24462
|
preferred_payout: external_exports.object({
|
|
24455
24463
|
asset: external_exports.string(),
|
|
@@ -24660,6 +24668,12 @@ var customerPortalDashboardSchema = external_exports.object({
|
|
|
24660
24668
|
email: external_exports.string(),
|
|
24661
24669
|
name: external_exports.string()
|
|
24662
24670
|
}),
|
|
24671
|
+
/*
|
|
24672
|
+
* A merchant's portal link opened this session: the redeem and sign-in routes
|
|
24673
|
+
* refuse it with a 403. Undeclared here, the SDK stripped it and the code
|
|
24674
|
+
* storefront kept offering Redeem until the confirm failed.
|
|
24675
|
+
*/
|
|
24676
|
+
opened_by_portal_link: external_exports.boolean(),
|
|
24663
24677
|
stats: external_exports.object({
|
|
24664
24678
|
invoices_count: external_exports.number(),
|
|
24665
24679
|
licenses_count: external_exports.number(),
|
|
@@ -24997,15 +25011,6 @@ function undoSubscriptionCancel(uniqid) {
|
|
|
24997
25011
|
body: {}
|
|
24998
25012
|
});
|
|
24999
25013
|
}
|
|
25000
|
-
function favorites() {
|
|
25001
|
-
return requestCustomer("/favorites");
|
|
25002
|
-
}
|
|
25003
|
-
function addFavorite(productUniqid) {
|
|
25004
|
-
return requestCustomer(`/favorites/${encodeURIComponent(productUniqid)}`, { method: "PUT" });
|
|
25005
|
-
}
|
|
25006
|
-
function removeFavorite(productUniqid) {
|
|
25007
|
-
return requestCustomer(`/favorites/${encodeURIComponent(productUniqid)}`, { method: "DELETE" });
|
|
25008
|
-
}
|
|
25009
25014
|
function affiliate() {
|
|
25010
25015
|
return requestCustomer("/affiliate");
|
|
25011
25016
|
}
|
|
@@ -25171,9 +25176,6 @@ var shoppex = {
|
|
|
25171
25176
|
pauseSubscription,
|
|
25172
25177
|
resumeSubscription,
|
|
25173
25178
|
undoSubscriptionCancel,
|
|
25174
|
-
favorites,
|
|
25175
|
-
addFavorite,
|
|
25176
|
-
removeFavorite,
|
|
25177
25179
|
affiliate,
|
|
25178
25180
|
affiliateStats,
|
|
25179
25181
|
createAffiliateLink,
|
|
@@ -25225,7 +25227,6 @@ if (typeof window !== "undefined") {
|
|
|
25225
25227
|
ShoppexError,
|
|
25226
25228
|
ValidationError,
|
|
25227
25229
|
acceptResellerInvite,
|
|
25228
|
-
addFavorite,
|
|
25229
25230
|
affiliate,
|
|
25230
25231
|
affiliateStats,
|
|
25231
25232
|
applyForReseller,
|
|
@@ -25243,7 +25244,6 @@ if (typeof window !== "undefined") {
|
|
|
25243
25244
|
emailPreferences,
|
|
25244
25245
|
enrollAsReseller,
|
|
25245
25246
|
ensureCartLineId,
|
|
25246
|
-
favorites,
|
|
25247
25247
|
fetchPublishedBuilderSettings,
|
|
25248
25248
|
fetchPublishedThemeSettings,
|
|
25249
25249
|
filterProductsBySearchQuery,
|
|
@@ -25278,7 +25278,6 @@ if (typeof window !== "undefined") {
|
|
|
25278
25278
|
quoteResellerOrder,
|
|
25279
25279
|
redeemLoyaltyPoints,
|
|
25280
25280
|
removeAvatar,
|
|
25281
|
-
removeFavorite,
|
|
25282
25281
|
replyToTicket,
|
|
25283
25282
|
requestOtp,
|
|
25284
25283
|
reseller,
|