@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.
- package/dist/index.cjs +44 -34
- package/dist/index.mjs +44 -34
- package/dist/schema/index.d.ts +1 -1
- package/dist/schema/postPurchaseAdmission.d.ts +6 -6
- package/dist/schema/postPurchaseFollowups.d.ts +1 -1
- package/dist/schema/postPurchaseOfferEligibility.d.ts +24 -1
- package/dist/schema/postPurchaseRecovery.d.ts +1 -1
- package/dist/schema/{postPurchaseUpgrade.d.ts → postPurchaseSts.d.ts} +14 -14
- package/dist/server/__fixtures__/postPurchaseSts.d.ts +98 -0
- package/dist/server/classifyPostPurchaseOffer.d.ts +4 -2
- package/dist/server/index.cjs +163 -82
- package/dist/server/index.mjs +163 -82
- package/dist/server/postPurchaseProductGallery.d.ts +3 -2
- package/dist/server/postPurchaseSts.d.ts +1293 -0
- package/dist/server/preparePostPurchaseCollectionView.d.ts +4 -1
- package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +7 -0
- package/dist/server/preparePostPurchaseGroupDefault.d.ts +7 -0
- package/dist/server/preparePostPurchaseGroupView.d.ts +7 -0
- package/dist/server/preparePostPurchaseMemberView.d.ts +815 -1
- package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +11 -1
- package/dist/server/preparePostPurchaseQuantityView.d.ts +11 -1
- package/dist/server/preparePostPurchaseStsMember.d.ts +824 -0
- package/dist/server/readPostPurchaseQuantity.d.ts +4 -1
- package/package.json +1 -1
|
@@ -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;
|