@rebuy/rebuy 3.52.0 → 3.53.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.
@@ -1,4 +1,5 @@
1
1
  import type { z } from 'zod';
2
+ import type { PostPurchaseStsContext } from '../schema/postPurchaseOfferEligibility';
2
3
  import { PostPurchaseExcludedProductIds } from '../schema/postPurchaseProductCollectionView';
3
4
  import type { PostPurchaseVariantDefaultContext } from '../schema/postPurchaseVariantDefaultContext';
4
5
  import type { Reporter } from '../server/shared';
@@ -17,7 +18,9 @@ declare const CollectionChoice: z.ZodObject<{
17
18
  * no variant: a multi-variant plain member stays `unsupported` here, and `prepareMember` (the member and
18
19
  * quantity views) is the path that takes an exact `variantId` or resolves defaults for it.
19
20
  */
20
- export declare const preparePostPurchaseCollectionView: (widgetId: number, settings: unknown, response: unknown, report?: Reporter, requested?: z.input<typeof CollectionChoice>, excludedProductIds?: PostPurchaseExcludedProductIds, defaults?: PostPurchaseVariantDefaultContext) => {
21
+ export declare const preparePostPurchaseCollectionView: (widgetId: number, settings: unknown, response: unknown, report?: Reporter, requested?: z.input<typeof CollectionChoice>, excludedProductIds?: PostPurchaseExcludedProductIds, defaults?: PostPurchaseVariantDefaultContext,
22
+ /** STS opt-in: an STS-enabled Offer then lists only its STS members, exclusions aside. */
23
+ sts?: PostPurchaseStsContext) => {
21
24
  members: {
22
25
  reportingProduct?: {
23
26
  id: number;
@@ -36,6 +36,13 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
36
36
  id: number;
37
37
  title: string;
38
38
  };
39
+ sts?: {
40
+ emailRefundNotice: boolean;
41
+ originalLine: {
42
+ quantity: number;
43
+ variantId: number;
44
+ };
45
+ } | undefined;
39
46
  quantityPolicy: {
40
47
  enabled: boolean;
41
48
  initialQuantity: number;
@@ -636,6 +636,13 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
636
636
  id: number;
637
637
  title: string;
638
638
  };
639
+ sts?: {
640
+ emailRefundNotice: boolean;
641
+ originalLine: {
642
+ quantity: number;
643
+ variantId: number;
644
+ };
645
+ } | undefined;
639
646
  quantityPolicy: {
640
647
  enabled: boolean;
641
648
  initialQuantity: number;
@@ -36,6 +36,13 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
36
36
  id: number;
37
37
  title: string;
38
38
  };
39
+ sts?: {
40
+ emailRefundNotice: boolean;
41
+ originalLine: {
42
+ quantity: number;
43
+ variantId: number;
44
+ };
45
+ } | undefined;
39
46
  quantityPolicy: {
40
47
  enabled: boolean;
41
48
  initialQuantity: number;