@waffo/pancake-ts 0.14.0 → 0.15.0
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 +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -327,6 +327,7 @@ interface NotificationSettings {
|
|
|
327
327
|
emailSubscriptionPastDue: boolean;
|
|
328
328
|
emailTrialStarted: boolean;
|
|
329
329
|
emailTrialEnding: boolean;
|
|
330
|
+
emailUpcomingCharge: boolean;
|
|
330
331
|
notifyNewOrders: boolean;
|
|
331
332
|
notifyNewSubscriptions: boolean;
|
|
332
333
|
notifySubscriptionCanceled: boolean;
|
|
@@ -336,17 +337,16 @@ interface NotificationSettings {
|
|
|
336
337
|
notifySubscriptionUncanceled: boolean;
|
|
337
338
|
notifySubscriptionUpdated: boolean;
|
|
338
339
|
notifyChargeback: boolean;
|
|
339
|
-
notifyPayoutCompleted: boolean;
|
|
340
|
-
notifyPayoutFailed: boolean;
|
|
341
340
|
}
|
|
342
341
|
/**
|
|
343
342
|
* Merchant-writable subset of {@link NotificationSettings}.
|
|
344
343
|
*
|
|
345
|
-
* Consumer-email toggles (`email*`) are managed by the PANCAKE platform
|
|
346
|
-
*
|
|
347
|
-
*
|
|
344
|
+
* Consumer-email toggles (`email*`) are managed by the PANCAKE platform and **not**
|
|
345
|
+
* writable from this SDK; they would be silently dropped by the `update-store`
|
|
346
|
+
* endpoint if included. Payout result notifications are platform-managed and always
|
|
347
|
+
* delivered — they have no toggle key. Use this type for any merchant-side update.
|
|
348
348
|
*/
|
|
349
|
-
type MerchantWritableNotificationSettings = Pick<NotificationSettings, "notifyNewOrders" | "notifyNewSubscriptions" | "notifySubscriptionCanceled" | "notifySubscriptionEnded" | "notifySubscriptionPastDue" | "notifySubscriptionRenewed" | "notifySubscriptionUncanceled" | "notifySubscriptionUpdated" | "notifyChargeback"
|
|
349
|
+
type MerchantWritableNotificationSettings = Pick<NotificationSettings, "notifyNewOrders" | "notifyNewSubscriptions" | "notifySubscriptionCanceled" | "notifySubscriptionEnded" | "notifySubscriptionPastDue" | "notifySubscriptionRenewed" | "notifySubscriptionUncanceled" | "notifySubscriptionUpdated" | "notifyChargeback">;
|
|
350
350
|
/**
|
|
351
351
|
* Single-theme checkout page styling.
|
|
352
352
|
* @see docs/api-reference/endpoints/stores/overview.mdx
|
package/dist/index.d.ts
CHANGED
|
@@ -327,6 +327,7 @@ interface NotificationSettings {
|
|
|
327
327
|
emailSubscriptionPastDue: boolean;
|
|
328
328
|
emailTrialStarted: boolean;
|
|
329
329
|
emailTrialEnding: boolean;
|
|
330
|
+
emailUpcomingCharge: boolean;
|
|
330
331
|
notifyNewOrders: boolean;
|
|
331
332
|
notifyNewSubscriptions: boolean;
|
|
332
333
|
notifySubscriptionCanceled: boolean;
|
|
@@ -336,17 +337,16 @@ interface NotificationSettings {
|
|
|
336
337
|
notifySubscriptionUncanceled: boolean;
|
|
337
338
|
notifySubscriptionUpdated: boolean;
|
|
338
339
|
notifyChargeback: boolean;
|
|
339
|
-
notifyPayoutCompleted: boolean;
|
|
340
|
-
notifyPayoutFailed: boolean;
|
|
341
340
|
}
|
|
342
341
|
/**
|
|
343
342
|
* Merchant-writable subset of {@link NotificationSettings}.
|
|
344
343
|
*
|
|
345
|
-
* Consumer-email toggles (`email*`) are managed by the PANCAKE platform
|
|
346
|
-
*
|
|
347
|
-
*
|
|
344
|
+
* Consumer-email toggles (`email*`) are managed by the PANCAKE platform and **not**
|
|
345
|
+
* writable from this SDK; they would be silently dropped by the `update-store`
|
|
346
|
+
* endpoint if included. Payout result notifications are platform-managed and always
|
|
347
|
+
* delivered — they have no toggle key. Use this type for any merchant-side update.
|
|
348
348
|
*/
|
|
349
|
-
type MerchantWritableNotificationSettings = Pick<NotificationSettings, "notifyNewOrders" | "notifyNewSubscriptions" | "notifySubscriptionCanceled" | "notifySubscriptionEnded" | "notifySubscriptionPastDue" | "notifySubscriptionRenewed" | "notifySubscriptionUncanceled" | "notifySubscriptionUpdated" | "notifyChargeback"
|
|
349
|
+
type MerchantWritableNotificationSettings = Pick<NotificationSettings, "notifyNewOrders" | "notifyNewSubscriptions" | "notifySubscriptionCanceled" | "notifySubscriptionEnded" | "notifySubscriptionPastDue" | "notifySubscriptionRenewed" | "notifySubscriptionUncanceled" | "notifySubscriptionUpdated" | "notifyChargeback">;
|
|
350
350
|
/**
|
|
351
351
|
* Single-theme checkout page styling.
|
|
352
352
|
* @see docs/api-reference/endpoints/stores/overview.mdx
|