@rebuy/rebuy 3.24.0 → 3.26.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 +779 -712
- package/dist/index.mjs +779 -712
- package/dist/schema/checkout-and-beyond/index.cjs +7 -0
- package/dist/schema/checkout-and-beyond/index.mjs +7 -0
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/postPurchaseEligibility.d.ts +12 -0
- package/dist/schema/postPurchaseIdentity.d.ts +18 -0
- package/dist/schema/postPurchaseShadow.d.ts +69 -0
- package/dist/schema/postPurchaseSkipTrace.d.ts +19 -0
- package/dist/schema/widget-data.cjs +6 -0
- package/dist/schema/widget-data.mjs +6 -0
- package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/icons.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +2 -2
- package/dist/schema/widgets/checkout-and-beyond/monetize.d.ts +15 -0
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +1 -1
- package/dist/server/adsEngine.d.ts +10 -1
- package/dist/server/index.cjs +30 -13
- package/dist/server/index.mjs +30 -13
- package/dist/server/monetizeOffers.d.ts +3 -1
- package/dist/server/requestSchemas.d.ts +1 -1
- package/dist/transforms/index.cjs +6 -0
- package/dist/transforms/index.mjs +6 -0
- package/package.json +1 -1
|
@@ -904,8 +904,14 @@ var CABDiscountSection = z13.object({
|
|
|
904
904
|
// src/schema/widgets/checkout-and-beyond/monetize.ts
|
|
905
905
|
import { v7 as uuidv78 } from "uuid";
|
|
906
906
|
import { z as z14 } from "zod";
|
|
907
|
+
var CABMonetizeAds = z14.object({
|
|
908
|
+
requestId: z14.string().optional(),
|
|
909
|
+
/** Defaulted here, never in the beacon: absence of information is `ads` itself being absent. */
|
|
910
|
+
testing: z14.boolean().default(false)
|
|
911
|
+
});
|
|
907
912
|
var CABMonetizeSection = z14.object({
|
|
908
913
|
...CABVariableFields,
|
|
914
|
+
ads: CABMonetizeAds.optional(),
|
|
909
915
|
name: z14.string().optional(),
|
|
910
916
|
/**
|
|
911
917
|
* Server-hydrated offer cards (inline hydration): when `/cab/sections` was asked with a `monetize`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.26.0",
|
|
4
4
|
"description": "Shared zod schemas, legacy-to-CAB widget transforms, and server orchestrators for Rebuy's Shopify consumers (rebuy-api, admin-nextjs, rebuy-shopify-extensions)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Rebuy, Inc.",
|