@rebuy/rebuy 3.54.0 → 3.55.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/schema/postPurchaseProductSource.d.ts +4 -1
- package/dist/server/index.cjs +475 -429
- package/dist/server/index.d.ts +3 -2
- package/dist/server/index.mjs +475 -429
- package/dist/server/normalizePostPurchaseCollection.d.ts +11 -2
- package/dist/server/normalizePostPurchaseProduct.d.ts +260 -1
- package/dist/server/postPurchasePlanCatalog.d.ts +5 -0
- package/dist/server/readPostPurchaseProductSource.d.ts +70 -0
- package/dist/server/shared.d.ts +2 -1
- package/package.json +1 -1
|
@@ -4,7 +4,10 @@ export declare const PostPurchaseAmount: z.ZodString;
|
|
|
4
4
|
export declare const PostPurchaseProductId: z.ZodNumber;
|
|
5
5
|
export declare const PostPurchaseVariantId: z.ZodNumber;
|
|
6
6
|
/**
|
|
7
|
-
* The data-source product/variant response shape `normalizePostPurchaseProduct` validates
|
|
7
|
+
* The data-source product/variant response shape `normalizePostPurchaseProduct` validates, one product at a
|
|
8
|
+
* time (`readPostPurchaseProductSource`, Slice 102): a product this rejects is dropped with a `product` drift,
|
|
9
|
+
* and only the envelope fails the read. A product's `productIndex` is always its position in the raw `data`
|
|
10
|
+
* array, never among the survivors, so a drop never renumbers the members Decision and Render identify.
|
|
8
11
|
*
|
|
9
12
|
* `metadata.productQuantity` is **new behaviour**, kept per decision 15 because the rebuild already implemented
|
|
10
13
|
* it: legacy `initializeProduct.ts:100-104` read it, but its schema stripped `metadata` first, so no merchant ever
|