@shoppexio/storefront 1.0.105 → 1.0.107
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 +8 -0
- package/dist/{chunk-NTLZJQ6I.js → chunk-P7MN6RXP.js} +34 -2
- package/dist/{chunk-NTLZJQ6I.js.map → chunk-P7MN6RXP.js.map} +1 -1
- package/dist/customer.cjs +39 -3
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.d.cts +12 -2
- package/dist/customer.d.ts +12 -2
- package/dist/customer.js +7 -3
- package/dist/customer.js.map +1 -1
- package/dist/index.cjs +38 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.107
|
|
4
|
+
|
|
5
|
+
- Pause policy (Design Batch 4, feature 6). `dashboard()` (`@shoppexio/storefront/customer`) keeps a subscription's `pause` (`state` `scheduled` or `paused`, `starts_at`, `resume_at` or null, `reason`), `pause_options` (`starts_at`, `lengths` of 7, 14, 30, 60 or 90 `days` with their `resume_at`, `reason_enabled`, `pauses_left_after`) `pause_limit` (`pauses_per_year`, `available_again_at`) and `pause_access_roles` (the names of the Discord roles a pause takes, `[]` when it takes none, `null` when not known) instead of stripping them. `pauseSubscription(uniqid, { length_days, reason })` and `HeadlessCustomerClient.pauseSubscription(id, { lengthDays, reason })` send one of the offered lengths and an optional reason (`taking_a_break`, `too_expensive`, `not_using`, `not_working`, `other`); without a length the API pauses for the shop's longest pause. `resumeSubscription` also calls off a scheduled pause. The four fields are optional: absent until the API that sends them is deployed.
|
|
6
|
+
|
|
7
|
+
## 1.0.106
|
|
8
|
+
|
|
9
|
+
- `dashboard()` (`@shoppexio/storefront/customer`) keeps a subscription's `open_renewal` (the renewal invoice to pay now: `uniqid`, `amount`, `currency`, `pay_by`, `pay_url`) and `hold_ends_at` (when an unpaid renewal's hold ends the subscription) instead of stripping them (PR #4099). Show "Pay now" from `open_renewal.pay_url`. It also keeps `ends_at`: when a subscription set to end without renewing ends (cancelled at the period end, or a voided renewal); show "Ends" from it instead of reading `cancel_at_period_end`. The three fields are optional: absent until the API that sends them is deployed.
|
|
10
|
+
|
|
3
11
|
## 1.0.105
|
|
4
12
|
|
|
5
13
|
- The headless customer client drops `walletTopupQuote`, `createWalletTopup`, `resellerTopupQuote` and `createResellerTopup` (PR #4064): `hcs_` tokens no longer reach the top-up routes. Balance and reseller top-ups run on the hosted top-up page (`/topup/{shopId}`, `?for=reseller` for reseller funds).
|
|
@@ -20058,7 +20058,39 @@ var customerPortalSubscriptionSummarySchema = external_exports.object({
|
|
|
20058
20058
|
}),
|
|
20059
20059
|
// The open renewal's hosted checkout ("Pay now"). Optional until the backend
|
|
20060
20060
|
// that sends it is deployed: a storefront script can reach buyers first.
|
|
20061
|
-
renewal_checkout_url: nullableStringSchema.optional()
|
|
20061
|
+
renewal_checkout_url: nullableStringSchema.optional(),
|
|
20062
|
+
// When an unpaid renewal's hold ends the subscription, and the renewal to pay now
|
|
20063
|
+
// (me.routes.ts dashboard wire). Optional for the same deploy order.
|
|
20064
|
+
hold_ends_at: nullableStringSchema.optional(),
|
|
20065
|
+
// Set to end without renewing (cancelled at the period end, or a voided renewal): the instant
|
|
20066
|
+
// it ends; null while it renews. Buyer surfaces read it for "Ends" over "Renews". Same deploy order.
|
|
20067
|
+
ends_at: nullableStringSchema.optional(),
|
|
20068
|
+
open_renewal: external_exports.object({
|
|
20069
|
+
uniqid: external_exports.string(),
|
|
20070
|
+
amount: external_exports.string(),
|
|
20071
|
+
currency: external_exports.string(),
|
|
20072
|
+
pay_by: external_exports.string(),
|
|
20073
|
+
pay_url: external_exports.string(),
|
|
20074
|
+
interval: external_exports.string(),
|
|
20075
|
+
interval_count: external_exports.number()
|
|
20076
|
+
}).nullable().optional(),
|
|
20077
|
+
// The pause policy (me.routes.ts, buyerPauseView): the open pause, the lengths a new pause
|
|
20078
|
+
// can take, or the yearly limit. Optional for the same deploy order.
|
|
20079
|
+
pause: external_exports.object({
|
|
20080
|
+
state: external_exports.enum(["scheduled", "paused"]),
|
|
20081
|
+
starts_at: external_exports.string(),
|
|
20082
|
+
resume_at: nullableStringSchema,
|
|
20083
|
+
reason: external_exports.enum(["taking_a_break", "too_expensive", "not_using", "not_working", "other"]).nullable()
|
|
20084
|
+
}).nullable().optional(),
|
|
20085
|
+
pause_options: external_exports.object({
|
|
20086
|
+
starts_at: external_exports.string(),
|
|
20087
|
+
lengths: external_exports.array(external_exports.object({ days: external_exports.union([external_exports.literal(7), external_exports.literal(14), external_exports.literal(30), external_exports.literal(60), external_exports.literal(90)]), resume_at: external_exports.string() })),
|
|
20088
|
+
reason_enabled: external_exports.boolean(),
|
|
20089
|
+
pauses_left_after: external_exports.number()
|
|
20090
|
+
}).nullable().optional(),
|
|
20091
|
+
pause_limit: external_exports.object({ pauses_per_year: external_exports.number(), available_again_at: external_exports.string() }).nullable().optional(),
|
|
20092
|
+
// The Discord roles a pause takes ([] none); null when not known. Optional for deploy order.
|
|
20093
|
+
pause_access_roles: external_exports.array(external_exports.string()).nullable().optional()
|
|
20062
20094
|
});
|
|
20063
20095
|
var customerLoyaltySchema = external_exports.object({
|
|
20064
20096
|
enabled: external_exports.boolean(),
|
|
@@ -20239,4 +20271,4 @@ export {
|
|
|
20239
20271
|
customerPortalNotificationPreferencesSchema,
|
|
20240
20272
|
customerPortalAffiliateCreateLinkSchema
|
|
20241
20273
|
};
|
|
20242
|
-
//# sourceMappingURL=chunk-
|
|
20274
|
+
//# sourceMappingURL=chunk-P7MN6RXP.js.map
|