@shoppexio/storefront 1.0.91 → 1.0.93
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 +15 -0
- package/dist/{chunk-UW6DFRB5.js → chunk-ESI3HWQF.js} +2 -1
- package/dist/{chunk-UW6DFRB5.js.map → chunk-ESI3HWQF.js.map} +1 -1
- package/dist/customer.cjs +13 -1
- package/dist/customer.cjs.map +1 -1
- package/dist/customer.d.cts +2 -0
- package/dist/customer.d.ts +2 -0
- package/dist/customer.js +13 -2
- package/dist/customer.js.map +1 -1
- package/dist/index.cjs +22080 -22049
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +577 -566
- package/dist/index.d.ts +577 -566
- package/dist/index.js +3365 -3336
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/customer.cjs
CHANGED
|
@@ -20039,6 +20039,7 @@ var customerPortalSubscriptionSummarySchema = external_exports.object({
|
|
|
20039
20039
|
can_pause: external_exports.boolean(),
|
|
20040
20040
|
can_resume: external_exports.boolean(),
|
|
20041
20041
|
can_cancel: external_exports.boolean(),
|
|
20042
|
+
can_undo_cancel: external_exports.boolean(),
|
|
20042
20043
|
can_manage_payment_method: external_exports.boolean()
|
|
20043
20044
|
})
|
|
20044
20045
|
});
|
|
@@ -20393,7 +20394,9 @@ var customerResellerCustomFieldSchema = external_exports.object({
|
|
|
20393
20394
|
default_value: external_exports.string(),
|
|
20394
20395
|
regex: nullableStringSchema2,
|
|
20395
20396
|
min_length: external_exports.number().nullable(),
|
|
20396
|
-
format: external_exports.enum(["number", "discord_invite", "url"]).nullable()
|
|
20397
|
+
format: external_exports.enum(["number", "discord_invite", "url"]).nullable(),
|
|
20398
|
+
/** Only on a `select`: the answer must be one of these labels. */
|
|
20399
|
+
options: external_exports.array(external_exports.string()).optional()
|
|
20397
20400
|
});
|
|
20398
20401
|
var customerResellerCatalogSchema = external_exports.object({
|
|
20399
20402
|
tier: customerResellerTierSchema,
|
|
@@ -20971,6 +20974,15 @@ var HeadlessCustomerClient = class {
|
|
|
20971
20974
|
schema: customerPortalSubscriptionStatusSchema
|
|
20972
20975
|
});
|
|
20973
20976
|
}
|
|
20977
|
+
/** Takes back a cancellation scheduled for the period end (`actions.can_undo_cancel`). */
|
|
20978
|
+
undoSubscriptionCancel(subscriptionId) {
|
|
20979
|
+
return this.request(`/subscriptions/${encodeURIComponent(subscriptionId)}/undo-cancel`, {
|
|
20980
|
+
method: "POST",
|
|
20981
|
+
authenticated: true,
|
|
20982
|
+
body: {},
|
|
20983
|
+
schema: customerPortalSubscriptionCancelSchema
|
|
20984
|
+
});
|
|
20985
|
+
}
|
|
20974
20986
|
loyalty() {
|
|
20975
20987
|
return this.request("/loyalty", {
|
|
20976
20988
|
authenticated: true,
|