@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 type { PostPurchaseExcludedProductIds } from '../schema/postPurchaseProductCollectionView';
|
|
3
4
|
import type { PostPurchaseVariantDefaultContext } from '../schema/postPurchaseVariantDefaultContext';
|
|
4
5
|
import type { Reporter } from '../server/shared';
|
|
@@ -14,7 +15,16 @@ declare const selection: z.ZodObject<{
|
|
|
14
15
|
quantity: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
|
|
15
16
|
}, z.core.$strict>;
|
|
16
17
|
/** Expected initial quantity is identity; a different value must satisfy today's picker policy. */
|
|
17
|
-
export declare const preparePostPurchaseQuantityAdmissionView: (widgetId: number, settings: unknown, response: unknown, expected: z.infer<typeof selection>, report?: Reporter, excludedProductIds?: PostPurchaseExcludedProductIds, defaults?: PostPurchaseVariantDefaultContext
|
|
18
|
+
export declare const preparePostPurchaseQuantityAdmissionView: (widgetId: number, settings: unknown, response: unknown, expected: z.infer<typeof selection>, report?: Reporter, excludedProductIds?: PostPurchaseExcludedProductIds, defaults?: PostPurchaseVariantDefaultContext,
|
|
19
|
+
/** STS opt-in: absent keeps today's output; see `PostPurchaseStsContext`. */
|
|
20
|
+
sts?: PostPurchaseStsContext) => {
|
|
21
|
+
sts?: {
|
|
22
|
+
emailRefundNotice: boolean;
|
|
23
|
+
originalLine: {
|
|
24
|
+
quantity: number;
|
|
25
|
+
variantId: number;
|
|
26
|
+
};
|
|
27
|
+
} | undefined;
|
|
18
28
|
quantityPolicy: {
|
|
19
29
|
enabled: boolean;
|
|
20
30
|
initialQuantity: number;
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
+
import type { PostPurchaseStsContext } from '../schema/postPurchaseOfferEligibility';
|
|
1
2
|
import type { PostPurchaseExcludedProductIds } from '../schema/postPurchaseProductCollectionView';
|
|
2
3
|
import { PostPurchaseQuantityChoice } from '../schema/postPurchaseQuantity';
|
|
3
4
|
import type { PostPurchaseVariantDefaultContext } from '../schema/postPurchaseVariantDefaultContext';
|
|
4
5
|
import type { Reporter } from '../server/shared';
|
|
5
6
|
/** Explicit pure capability; existing consumer preparation keeps its fixed-quantity guards. */
|
|
6
|
-
export declare const preparePostPurchaseQuantityView: (widgetId: number, settings: unknown, response: unknown, requested: PostPurchaseQuantityChoice, report?: Reporter, excludedProductIds?: PostPurchaseExcludedProductIds, defaults?: PostPurchaseVariantDefaultContext
|
|
7
|
+
export declare const preparePostPurchaseQuantityView: (widgetId: number, settings: unknown, response: unknown, requested: PostPurchaseQuantityChoice, report?: Reporter, excludedProductIds?: PostPurchaseExcludedProductIds, defaults?: PostPurchaseVariantDefaultContext,
|
|
8
|
+
/** STS opt-in: absent keeps today's output; see `PostPurchaseStsContext`. */
|
|
9
|
+
sts?: PostPurchaseStsContext) => {
|
|
10
|
+
sts?: {
|
|
11
|
+
emailRefundNotice: boolean;
|
|
12
|
+
originalLine: {
|
|
13
|
+
quantity: number;
|
|
14
|
+
variantId: number;
|
|
15
|
+
};
|
|
16
|
+
} | undefined;
|
|
7
17
|
quantityPolicy: {
|
|
8
18
|
enabled: boolean;
|
|
9
19
|
initialQuantity: number;
|