@shoppexio/storefront 1.0.106 → 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 +4 -0
- package/dist/{chunk-INBEHRZN.js → chunk-P7MN6RXP.js} +22 -3
- package/dist/{chunk-INBEHRZN.js.map → chunk-P7MN6RXP.js.map} +1 -1
- package/dist/customer.cjs +27 -4
- 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 +26 -4
- 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,9 @@
|
|
|
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
|
+
|
|
3
7
|
## 1.0.106
|
|
4
8
|
|
|
5
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.
|
|
@@ -20070,8 +20070,27 @@ var customerPortalSubscriptionSummarySchema = external_exports.object({
|
|
|
20070
20070
|
amount: external_exports.string(),
|
|
20071
20071
|
currency: external_exports.string(),
|
|
20072
20072
|
pay_by: external_exports.string(),
|
|
20073
|
-
pay_url: external_exports.string()
|
|
20074
|
-
|
|
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()
|
|
20075
20094
|
});
|
|
20076
20095
|
var customerLoyaltySchema = external_exports.object({
|
|
20077
20096
|
enabled: external_exports.boolean(),
|
|
@@ -20252,4 +20271,4 @@ export {
|
|
|
20252
20271
|
customerPortalNotificationPreferencesSchema,
|
|
20253
20272
|
customerPortalAffiliateCreateLinkSchema
|
|
20254
20273
|
};
|
|
20255
|
-
//# sourceMappingURL=chunk-
|
|
20274
|
+
//# sourceMappingURL=chunk-P7MN6RXP.js.map
|