@rebuy/rebuy 3.51.0 → 3.51.1
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 +7 -1
- package/dist/index.mjs +7 -1
- package/dist/schema/offerProduct.d.ts +1 -1
- package/dist/server/index.cjs +7 -1
- package/dist/server/index.mjs +7 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1714,7 +1714,13 @@ var OfferProduct = import_zod5.z.object({
|
|
|
1714
1714
|
discount: OfferProductDiscount.optional(),
|
|
1715
1715
|
id: import_zod5.z.number(),
|
|
1716
1716
|
image: import_zod5.z.object({ src: import_zod5.z.string() }).nullish(),
|
|
1717
|
-
|
|
1717
|
+
/**
|
|
1718
|
+
* `variantIds` is optional: the engine omits `variant_ids` (rather than sending `[]`) on an image tied to no
|
|
1719
|
+
* variant — seen live on the `recommended` data source while `top_sellers` sends `[]` for the same image
|
|
1720
|
+
* (REB-24958). A missing list means "not variant-specific", exactly like `[]`, so the image keeps its `src`
|
|
1721
|
+
* and the product is never dropped over it.
|
|
1722
|
+
*/
|
|
1723
|
+
images: import_zod5.z.array(import_zod5.z.object({ src: import_zod5.z.string(), variantIds: import_zod5.z.array(import_zod5.z.number()).optional() })).nullish(),
|
|
1718
1724
|
link: import_zod5.z.string().optional(),
|
|
1719
1725
|
metafields: import_zod5.z.array(import_zod5.z.object({ key: import_zod5.z.string(), namespace: import_zod5.z.string(), value: import_zod5.z.string() })).optional(),
|
|
1720
1726
|
options: import_zod5.z.array(OfferProductOption),
|
package/dist/index.mjs
CHANGED
|
@@ -1242,7 +1242,13 @@ var OfferProduct = z5.object({
|
|
|
1242
1242
|
discount: OfferProductDiscount.optional(),
|
|
1243
1243
|
id: z5.number(),
|
|
1244
1244
|
image: z5.object({ src: z5.string() }).nullish(),
|
|
1245
|
-
|
|
1245
|
+
/**
|
|
1246
|
+
* `variantIds` is optional: the engine omits `variant_ids` (rather than sending `[]`) on an image tied to no
|
|
1247
|
+
* variant — seen live on the `recommended` data source while `top_sellers` sends `[]` for the same image
|
|
1248
|
+
* (REB-24958). A missing list means "not variant-specific", exactly like `[]`, so the image keeps its `src`
|
|
1249
|
+
* and the product is never dropped over it.
|
|
1250
|
+
*/
|
|
1251
|
+
images: z5.array(z5.object({ src: z5.string(), variantIds: z5.array(z5.number()).optional() })).nullish(),
|
|
1246
1252
|
link: z5.string().optional(),
|
|
1247
1253
|
metafields: z5.array(z5.object({ key: z5.string(), namespace: z5.string(), value: z5.string() })).optional(),
|
|
1248
1254
|
options: z5.array(OfferProductOption),
|
|
@@ -21,7 +21,7 @@ export declare const OfferProduct: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>>>;
|
|
22
22
|
images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
23
23
|
src: z.ZodString;
|
|
24
|
-
variantIds: z.ZodArray<z.ZodNumber
|
|
24
|
+
variantIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
25
25
|
}, z.core.$strip>>>>;
|
|
26
26
|
link: z.ZodOptional<z.ZodString>;
|
|
27
27
|
metafields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
package/dist/server/index.cjs
CHANGED
|
@@ -387,7 +387,13 @@ var OfferProduct = import_zod3.z.object({
|
|
|
387
387
|
discount: OfferProductDiscount.optional(),
|
|
388
388
|
id: import_zod3.z.number(),
|
|
389
389
|
image: import_zod3.z.object({ src: import_zod3.z.string() }).nullish(),
|
|
390
|
-
|
|
390
|
+
/**
|
|
391
|
+
* `variantIds` is optional: the engine omits `variant_ids` (rather than sending `[]`) on an image tied to no
|
|
392
|
+
* variant — seen live on the `recommended` data source while `top_sellers` sends `[]` for the same image
|
|
393
|
+
* (REB-24958). A missing list means "not variant-specific", exactly like `[]`, so the image keeps its `src`
|
|
394
|
+
* and the product is never dropped over it.
|
|
395
|
+
*/
|
|
396
|
+
images: import_zod3.z.array(import_zod3.z.object({ src: import_zod3.z.string(), variantIds: import_zod3.z.array(import_zod3.z.number()).optional() })).nullish(),
|
|
391
397
|
link: import_zod3.z.string().optional(),
|
|
392
398
|
metafields: import_zod3.z.array(import_zod3.z.object({ key: import_zod3.z.string(), namespace: import_zod3.z.string(), value: import_zod3.z.string() })).optional(),
|
|
393
399
|
options: import_zod3.z.array(OfferProductOption),
|
package/dist/server/index.mjs
CHANGED
|
@@ -315,7 +315,13 @@ var OfferProduct = z3.object({
|
|
|
315
315
|
discount: OfferProductDiscount.optional(),
|
|
316
316
|
id: z3.number(),
|
|
317
317
|
image: z3.object({ src: z3.string() }).nullish(),
|
|
318
|
-
|
|
318
|
+
/**
|
|
319
|
+
* `variantIds` is optional: the engine omits `variant_ids` (rather than sending `[]`) on an image tied to no
|
|
320
|
+
* variant — seen live on the `recommended` data source while `top_sellers` sends `[]` for the same image
|
|
321
|
+
* (REB-24958). A missing list means "not variant-specific", exactly like `[]`, so the image keeps its `src`
|
|
322
|
+
* and the product is never dropped over it.
|
|
323
|
+
*/
|
|
324
|
+
images: z3.array(z3.object({ src: z3.string(), variantIds: z3.array(z3.number()).optional() })).nullish(),
|
|
319
325
|
link: z3.string().optional(),
|
|
320
326
|
metafields: z3.array(z3.object({ key: z3.string(), namespace: z3.string(), value: z3.string() })).optional(),
|
|
321
327
|
options: z3.array(OfferProductOption),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rebuy/rebuy",
|
|
3
|
-
"version": "3.51.
|
|
3
|
+
"version": "3.51.1",
|
|
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.",
|