@rebuy/rebuy 3.50.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 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
- images: import_zod5.z.array(import_zod5.z.object({ src: import_zod5.z.string(), variantIds: import_zod5.z.array(import_zod5.z.number()) })).nullish(),
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),
@@ -3089,7 +3095,7 @@ var PostPurchaseProgressSchema = import_zod32.z.object({
3089
3095
  var import_zod33 = require("zod");
3090
3096
  var PostPurchaseVariantSelector = import_zod33.z.object({ variantId: PostPurchaseVariantId }).strict();
3091
3097
  var PostPurchaseVariantOption = OfferProduct.shape.options.element.extend({
3092
- id: import_zod33.z.number().int().positive(),
3098
+ id: import_zod33.z.number().int().positive().optional(),
3093
3099
  position: import_zod33.z.number().int().min(1).max(3)
3094
3100
  });
3095
3101
  var PostPurchaseVariantValues = OfferProduct.shape.variants.element.pick({
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
- images: z5.array(z5.object({ src: z5.string(), variantIds: z5.array(z5.number()) })).nullish(),
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),
@@ -2617,7 +2623,7 @@ var PostPurchaseProgressSchema = z32.object({
2617
2623
  import { z as z33 } from "zod";
2618
2624
  var PostPurchaseVariantSelector = z33.object({ variantId: PostPurchaseVariantId }).strict();
2619
2625
  var PostPurchaseVariantOption = OfferProduct.shape.options.element.extend({
2620
- id: z33.number().int().positive(),
2626
+ id: z33.number().int().positive().optional(),
2621
2627
  position: z33.number().int().min(1).max(3)
2622
2628
  });
2623
2629
  var PostPurchaseVariantValues = OfferProduct.shape.variants.element.pick({
@@ -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<{
@@ -14,7 +14,7 @@ export declare const PostPurchaseGroupDescription: z.ZodObject<{
14
14
  options: z.ZodDefault<z.ZodArray<z.ZodObject<{
15
15
  name: z.ZodString;
16
16
  values: z.ZodArray<z.ZodString>;
17
- id: z.ZodNumber;
17
+ id: z.ZodOptional<z.ZodNumber>;
18
18
  position: z.ZodNumber;
19
19
  }, z.core.$strip>>>;
20
20
  }, z.core.$strip>;
@@ -31,7 +31,7 @@ export declare const PostPurchaseGroupCatalog: z.ZodObject<{
31
31
  options: z.ZodArray<z.ZodObject<{
32
32
  name: z.ZodString;
33
33
  values: z.ZodArray<z.ZodString>;
34
- id: z.ZodNumber;
34
+ id: z.ZodOptional<z.ZodNumber>;
35
35
  position: z.ZodNumber;
36
36
  }, z.core.$strip>>;
37
37
  productId: z.ZodNumber;
@@ -74,7 +74,7 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
74
74
  options: z.ZodArray<z.ZodObject<{
75
75
  name: z.ZodString;
76
76
  values: z.ZodArray<z.ZodString>;
77
- id: z.ZodNumber;
77
+ id: z.ZodOptional<z.ZodNumber>;
78
78
  position: z.ZodNumber;
79
79
  }, z.core.$strip>>;
80
80
  productId: z.ZodNumber;
@@ -665,7 +665,7 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
665
665
  options: z.ZodArray<z.ZodObject<{
666
666
  name: z.ZodString;
667
667
  values: z.ZodArray<z.ZodString>;
668
- id: z.ZodNumber;
668
+ id: z.ZodOptional<z.ZodNumber>;
669
669
  position: z.ZodNumber;
670
670
  }, z.core.$strip>>;
671
671
  productId: z.ZodNumber;
@@ -694,7 +694,7 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
694
694
  options: z.ZodArray<z.ZodObject<{
695
695
  name: z.ZodString;
696
696
  values: z.ZodArray<z.ZodString>;
697
- id: z.ZodNumber;
697
+ id: z.ZodOptional<z.ZodNumber>;
698
698
  position: z.ZodNumber;
699
699
  }, z.core.$strip>>;
700
700
  productId: z.ZodNumber;
@@ -1128,7 +1128,7 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
1128
1128
  options: z.ZodArray<z.ZodObject<{
1129
1129
  name: z.ZodString;
1130
1130
  values: z.ZodArray<z.ZodString>;
1131
- id: z.ZodNumber;
1131
+ id: z.ZodOptional<z.ZodNumber>;
1132
1132
  position: z.ZodNumber;
1133
1133
  }, z.core.$strip>>;
1134
1134
  productId: z.ZodNumber;
@@ -77,7 +77,7 @@ export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
77
77
  options: z.ZodArray<z.ZodObject<{
78
78
  name: z.ZodString;
79
79
  values: z.ZodArray<z.ZodString>;
80
- id: z.ZodNumber;
80
+ id: z.ZodOptional<z.ZodNumber>;
81
81
  position: z.ZodNumber;
82
82
  }, z.core.$strip>>;
83
83
  productId: z.ZodNumber;
@@ -668,7 +668,7 @@ export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
668
668
  options: z.ZodArray<z.ZodObject<{
669
669
  name: z.ZodString;
670
670
  values: z.ZodArray<z.ZodString>;
671
- id: z.ZodNumber;
671
+ id: z.ZodOptional<z.ZodNumber>;
672
672
  position: z.ZodNumber;
673
673
  }, z.core.$strip>>;
674
674
  productId: z.ZodNumber;
@@ -697,7 +697,7 @@ export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
697
697
  options: z.ZodArray<z.ZodObject<{
698
698
  name: z.ZodString;
699
699
  values: z.ZodArray<z.ZodString>;
700
- id: z.ZodNumber;
700
+ id: z.ZodOptional<z.ZodNumber>;
701
701
  position: z.ZodNumber;
702
702
  }, z.core.$strip>>;
703
703
  productId: z.ZodNumber;
@@ -1131,7 +1131,7 @@ export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
1131
1131
  options: z.ZodArray<z.ZodObject<{
1132
1132
  name: z.ZodString;
1133
1133
  values: z.ZodArray<z.ZodString>;
1134
- id: z.ZodNumber;
1134
+ id: z.ZodOptional<z.ZodNumber>;
1135
1135
  position: z.ZodNumber;
1136
1136
  }, z.core.$strip>>;
1137
1137
  productId: z.ZodNumber;
@@ -3,10 +3,14 @@ export declare const PostPurchaseVariantSelector: z.ZodObject<{
3
3
  variantId: z.ZodNumber;
4
4
  }, z.core.$strict>;
5
5
  export type PostPurchaseVariantSelector = z.infer<typeof PostPurchaseVariantSelector>;
6
+ /**
7
+ * `position` (1–3, unique, contiguous) is the option's key. `id` is optional because the v2 ranking-worker
8
+ * `/data-source/id/*` product shape omits it (REB-24953); nothing reads it, and a v1 id still passes through.
9
+ */
6
10
  export declare const PostPurchaseVariantOption: z.ZodObject<{
7
11
  name: z.ZodString;
8
12
  values: z.ZodArray<z.ZodString>;
9
- id: z.ZodNumber;
13
+ id: z.ZodOptional<z.ZodNumber>;
10
14
  position: z.ZodNumber;
11
15
  }, z.core.$strip>;
12
16
  export declare const PostPurchaseVariantValues: z.ZodObject<{
@@ -23,7 +27,7 @@ export declare const PostPurchaseVariantCatalog: z.ZodObject<{
23
27
  options: z.ZodArray<z.ZodObject<{
24
28
  name: z.ZodString;
25
29
  values: z.ZodArray<z.ZodString>;
26
- id: z.ZodNumber;
30
+ id: z.ZodOptional<z.ZodNumber>;
27
31
  position: z.ZodNumber;
28
32
  }, z.core.$strip>>;
29
33
  productId: z.ZodNumber;
@@ -0,0 +1,91 @@
1
+ export declare const rankingWorkerResponse: {
2
+ data: {
3
+ admin_graphql_api_id: string;
4
+ body_html: string;
5
+ created_at: string;
6
+ description: string;
7
+ handle: string;
8
+ id: number;
9
+ image: {
10
+ admin_graphql_api_id: string;
11
+ alt: string;
12
+ height: number;
13
+ id: number;
14
+ position: number;
15
+ product_id: number;
16
+ src: string;
17
+ variant_ids: number[];
18
+ width: number;
19
+ };
20
+ images: {
21
+ admin_graphql_api_id: string;
22
+ alt: string;
23
+ height: number;
24
+ id: number;
25
+ position: number;
26
+ product_id: number;
27
+ src: string;
28
+ variant_ids: number[];
29
+ width: number;
30
+ }[];
31
+ options: {
32
+ name: string;
33
+ position: number;
34
+ product_id: number;
35
+ values: string[];
36
+ }[];
37
+ product_type: string;
38
+ published_at: string;
39
+ recommended_variant_ids: never[];
40
+ requires_selling_plan: boolean;
41
+ status: string;
42
+ tags: string;
43
+ template_suffix: string;
44
+ title: string;
45
+ updated_at: string;
46
+ variant_ids: {
47
+ id: number;
48
+ }[];
49
+ variants: {
50
+ admin_graphql_api_id: string;
51
+ barcode: string;
52
+ compare_at_price: null;
53
+ created_at: string;
54
+ fulfillment_service: string;
55
+ grams: number;
56
+ id: number;
57
+ image_id: number;
58
+ inventory_management: string;
59
+ inventory_policy: string;
60
+ inventory_quantity: number;
61
+ metafields: null;
62
+ option1: string;
63
+ option2: string;
64
+ option3: null;
65
+ position: number;
66
+ price: string;
67
+ product_id: number;
68
+ requires_shipping: boolean;
69
+ sku: string;
70
+ tax_code: string;
71
+ taxable: boolean;
72
+ title: string;
73
+ updated_at: string;
74
+ weight: number;
75
+ weight_unit: string;
76
+ }[];
77
+ vendor: string;
78
+ }[];
79
+ metadata: {
80
+ cache_info: {};
81
+ cart_items: never[];
82
+ errors: never[];
83
+ filtered_input_products: never[];
84
+ filtered_oos_products: never[];
85
+ global_excluded_products: never[];
86
+ input_products: never[];
87
+ matched_rules: never[];
88
+ unevaluated_rules: never[];
89
+ unmatched_rules: never[];
90
+ };
91
+ };
@@ -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
- images: import_zod3.z.array(import_zod3.z.object({ src: import_zod3.z.string(), variantIds: import_zod3.z.array(import_zod3.z.number()) })).nullish(),
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),
@@ -6955,7 +6961,7 @@ var import_zod70 = require("zod");
6955
6961
  var import_zod69 = require("zod");
6956
6962
  var PostPurchaseVariantSelector = import_zod69.z.object({ variantId: PostPurchaseVariantId }).strict();
6957
6963
  var PostPurchaseVariantOption = OfferProduct.shape.options.element.extend({
6958
- id: import_zod69.z.number().int().positive(),
6964
+ id: import_zod69.z.number().int().positive().optional(),
6959
6965
  position: import_zod69.z.number().int().min(1).max(3)
6960
6966
  });
6961
6967
  var PostPurchaseVariantValues = OfferProduct.shape.variants.element.pick({
@@ -7402,7 +7408,7 @@ var projectPostPurchaseVariantCatalog = (product, settings) => {
7402
7408
  ...PostPurchaseVariantValues.partial().parse(variant2)
7403
7409
  }));
7404
7410
  const tuples = variants.map(({ option1, option2, option3 }) => [option1, option2, option3]);
7405
- if (new Set(product.variants.map(({ id }) => id)).size !== product.variants.length || product.variants.some(({ productId: productId2 }) => productId2 !== product.id) || new Set(options2.map(({ id }) => id)).size !== options2.length || options2.some(
7411
+ if (new Set(product.variants.map(({ id }) => id)).size !== product.variants.length || product.variants.some(({ productId: productId2 }) => productId2 !== product.id) || options2.some(
7406
7412
  ({ position, values: values2 }, index) => position !== index + 1 || new Set(values2).size !== values2.length
7407
7413
  ) || product.variants.length > 1 && new Set(tuples.map((tuple) => JSON.stringify(tuple))).size !== tuples.length)
7408
7414
  throw new Error("Ambiguous post-purchase variant catalog");
@@ -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
- images: z3.array(z3.object({ src: z3.string(), variantIds: z3.array(z3.number()) })).nullish(),
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),
@@ -6883,7 +6889,7 @@ import { z as z70 } from "zod";
6883
6889
  import { z as z69 } from "zod";
6884
6890
  var PostPurchaseVariantSelector = z69.object({ variantId: PostPurchaseVariantId }).strict();
6885
6891
  var PostPurchaseVariantOption = OfferProduct.shape.options.element.extend({
6886
- id: z69.number().int().positive(),
6892
+ id: z69.number().int().positive().optional(),
6887
6893
  position: z69.number().int().min(1).max(3)
6888
6894
  });
6889
6895
  var PostPurchaseVariantValues = OfferProduct.shape.variants.element.pick({
@@ -7330,7 +7336,7 @@ var projectPostPurchaseVariantCatalog = (product, settings) => {
7330
7336
  ...PostPurchaseVariantValues.partial().parse(variant2)
7331
7337
  }));
7332
7338
  const tuples = variants.map(({ option1, option2, option3 }) => [option1, option2, option3]);
7333
- if (new Set(product.variants.map(({ id }) => id)).size !== product.variants.length || product.variants.some(({ productId: productId2 }) => productId2 !== product.id) || new Set(options2.map(({ id }) => id)).size !== options2.length || options2.some(
7339
+ if (new Set(product.variants.map(({ id }) => id)).size !== product.variants.length || product.variants.some(({ productId: productId2 }) => productId2 !== product.id) || options2.some(
7334
7340
  ({ position, values: values2 }, index) => position !== index + 1 || new Set(values2).size !== values2.length
7335
7341
  ) || product.variants.length > 1 && new Set(tuples.map((tuple) => JSON.stringify(tuple))).size !== tuples.length)
7336
7342
  throw new Error("Ambiguous post-purchase variant catalog");
@@ -326,8 +326,8 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
326
326
  options: {
327
327
  name: string;
328
328
  values: string[];
329
- id: number;
330
329
  position: number;
330
+ id?: number | undefined;
331
331
  }[];
332
332
  productId: number;
333
333
  showSelectors: boolean;
@@ -377,8 +377,8 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
377
377
  options: {
378
378
  name: string;
379
379
  values: string[];
380
- id: number;
381
380
  position: number;
381
+ id?: number | undefined;
382
382
  }[];
383
383
  productId: number;
384
384
  showSelectors: boolean;
@@ -531,8 +531,8 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
531
531
  options: {
532
532
  name: string;
533
533
  values: string[];
534
- id: number;
535
534
  position: number;
535
+ id?: number | undefined;
536
536
  }[];
537
537
  productId: number;
538
538
  showSelectors: boolean;
@@ -585,8 +585,8 @@ export declare const preparePostPurchaseAdmissionView: (widgetId: number, settin
585
585
  options: {
586
586
  name: string;
587
587
  values: string[];
588
- id: number;
589
588
  position: number;
589
+ id?: number | undefined;
590
590
  }[];
591
591
  productId: number;
592
592
  showSelectors: boolean;
@@ -24,8 +24,8 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
24
24
  options: {
25
25
  name: string;
26
26
  values: string[];
27
- id: number;
28
27
  position: number;
28
+ id?: number | undefined;
29
29
  }[];
30
30
  productId: number;
31
31
  showSelectors: boolean;
@@ -387,8 +387,8 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
387
387
  options: {
388
388
  name: string;
389
389
  values: string[];
390
- id: number;
391
390
  position: number;
391
+ id?: number | undefined;
392
392
  }[];
393
393
  productId: number;
394
394
  showSelectors: boolean;
@@ -414,8 +414,8 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
414
414
  options: {
415
415
  name: string;
416
416
  values: string[];
417
- id: number;
418
417
  position: number;
418
+ id?: number | undefined;
419
419
  }[];
420
420
  productId: number;
421
421
  showSelectors: boolean;
@@ -596,8 +596,8 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
596
596
  options: {
597
597
  name: string;
598
598
  values: string[];
599
- id: number;
600
599
  position: number;
600
+ id?: number | undefined;
601
601
  }[];
602
602
  productId: number;
603
603
  showSelectors: boolean;
@@ -622,8 +622,8 @@ export declare const preparePostPurchaseCollectionGroup: (widgetId: number, sett
622
622
  options: {
623
623
  name: string;
624
624
  values: string[];
625
- id: number;
626
625
  position: number;
626
+ id?: number | undefined;
627
627
  }[];
628
628
  productId: number;
629
629
  showSelectors: boolean;
@@ -348,8 +348,8 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
348
348
  options: {
349
349
  name: string;
350
350
  values: string[];
351
- id: number;
352
351
  position: number;
352
+ id?: number | undefined;
353
353
  }[];
354
354
  productId: number;
355
355
  showSelectors: boolean;
@@ -399,8 +399,8 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
399
399
  options: {
400
400
  name: string;
401
401
  values: string[];
402
- id: number;
403
402
  position: number;
403
+ id?: number | undefined;
404
404
  }[];
405
405
  productId: number;
406
406
  showSelectors: boolean;
@@ -553,8 +553,8 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
553
553
  options: {
554
554
  name: string;
555
555
  values: string[];
556
- id: number;
557
556
  position: number;
557
+ id?: number | undefined;
558
558
  }[];
559
559
  productId: number;
560
560
  showSelectors: boolean;
@@ -607,8 +607,8 @@ export declare const preparePostPurchaseCollectionView: (widgetId: number, setti
607
607
  options: {
608
608
  name: string;
609
609
  values: string[];
610
- id: number;
611
610
  position: number;
611
+ id?: number | undefined;
612
612
  }[];
613
613
  productId: number;
614
614
  showSelectors: boolean;
@@ -13,8 +13,8 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
13
13
  options: {
14
14
  name: string;
15
15
  values: string[];
16
- id: number;
17
16
  position: number;
17
+ id?: number | undefined;
18
18
  }[];
19
19
  productId: number;
20
20
  showSelectors: boolean;
@@ -367,8 +367,8 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
367
367
  options: {
368
368
  name: string;
369
369
  values: string[];
370
- id: number;
371
370
  position: number;
371
+ id?: number | undefined;
372
372
  }[];
373
373
  productId: number;
374
374
  showSelectors: boolean;
@@ -418,8 +418,8 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
418
418
  options: {
419
419
  name: string;
420
420
  values: string[];
421
- id: number;
422
421
  position: number;
422
+ id?: number | undefined;
423
423
  }[];
424
424
  productId: number;
425
425
  showSelectors: boolean;
@@ -572,8 +572,8 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
572
572
  options: {
573
573
  name: string;
574
574
  values: string[];
575
- id: number;
576
575
  position: number;
576
+ id?: number | undefined;
577
577
  }[];
578
578
  productId: number;
579
579
  showSelectors: boolean;
@@ -626,8 +626,8 @@ export declare const preparePostPurchaseGroupAdmissionView: (widgetId: number, s
626
626
  options: {
627
627
  name: string;
628
628
  values: string[];
629
- id: number;
630
629
  position: number;
630
+ id?: number | undefined;
631
631
  }[];
632
632
  productId: number;
633
633
  showSelectors: boolean;
@@ -330,8 +330,8 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
330
330
  options: {
331
331
  name: string;
332
332
  values: string[];
333
- id: number;
334
333
  position: number;
334
+ id?: number | undefined;
335
335
  }[];
336
336
  productId: number;
337
337
  showSelectors: boolean;
@@ -378,8 +378,8 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
378
378
  options: {
379
379
  name: string;
380
380
  values: string[];
381
- id: number;
382
381
  position: number;
382
+ id?: number | undefined;
383
383
  }[];
384
384
  productId: number;
385
385
  showSelectors: boolean;
@@ -535,8 +535,8 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
535
535
  options: {
536
536
  name: string;
537
537
  values: string[];
538
- id: number;
539
538
  position: number;
539
+ id?: number | undefined;
540
540
  }[];
541
541
  productId: number;
542
542
  showSelectors: boolean;
@@ -586,8 +586,8 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
586
586
  options: {
587
587
  name: string;
588
588
  values: string[];
589
- id: number;
590
589
  position: number;
590
+ id?: number | undefined;
591
591
  }[];
592
592
  productId: number;
593
593
  showSelectors: boolean;
@@ -612,8 +612,8 @@ export declare const preparePostPurchaseGroupDefault: (widgetId: number, setting
612
612
  options: {
613
613
  name: string;
614
614
  values: string[];
615
- id: number;
616
615
  position: number;
616
+ id?: number | undefined;
617
617
  }[];
618
618
  productId: number;
619
619
  showSelectors: boolean;
@@ -13,8 +13,8 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
13
13
  options: {
14
14
  name: string;
15
15
  values: string[];
16
- id: number;
17
16
  position: number;
17
+ id?: number | undefined;
18
18
  }[];
19
19
  productId: number;
20
20
  showSelectors: boolean;
@@ -366,8 +366,8 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
366
366
  options: {
367
367
  name: string;
368
368
  values: string[];
369
- id: number;
370
369
  position: number;
370
+ id?: number | undefined;
371
371
  }[];
372
372
  productId: number;
373
373
  showSelectors: boolean;
@@ -417,8 +417,8 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
417
417
  options: {
418
418
  name: string;
419
419
  values: string[];
420
- id: number;
421
420
  position: number;
421
+ id?: number | undefined;
422
422
  }[];
423
423
  productId: number;
424
424
  showSelectors: boolean;
@@ -571,8 +571,8 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
571
571
  options: {
572
572
  name: string;
573
573
  values: string[];
574
- id: number;
575
574
  position: number;
575
+ id?: number | undefined;
576
576
  }[];
577
577
  productId: number;
578
578
  showSelectors: boolean;
@@ -625,8 +625,8 @@ export declare const preparePostPurchaseGroupView: (widgetId: number, settings:
625
625
  options: {
626
626
  name: string;
627
627
  values: string[];
628
- id: number;
629
628
  position: number;
629
+ id?: number | undefined;
630
630
  }[];
631
631
  productId: number;
632
632
  showSelectors: boolean;
@@ -329,8 +329,8 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
329
329
  options: {
330
330
  name: string;
331
331
  values: string[];
332
- id: number;
333
332
  position: number;
333
+ id?: number | undefined;
334
334
  }[];
335
335
  productId: number;
336
336
  showSelectors: boolean;
@@ -380,8 +380,8 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
380
380
  options: {
381
381
  name: string;
382
382
  values: string[];
383
- id: number;
384
383
  position: number;
384
+ id?: number | undefined;
385
385
  }[];
386
386
  productId: number;
387
387
  showSelectors: boolean;
@@ -534,8 +534,8 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
534
534
  options: {
535
535
  name: string;
536
536
  values: string[];
537
- id: number;
538
537
  position: number;
538
+ id?: number | undefined;
539
539
  }[];
540
540
  productId: number;
541
541
  showSelectors: boolean;
@@ -588,8 +588,8 @@ export declare const prepareMember: (widgetId: number, settings: unknown, respon
588
588
  options: {
589
589
  name: string;
590
590
  values: string[];
591
- id: number;
592
591
  position: number;
592
+ id?: number | undefined;
593
593
  }[];
594
594
  productId: number;
595
595
  showSelectors: boolean;
@@ -1142,8 +1142,8 @@ export declare const preparePostPurchaseMemberView: (widgetId: number, settings:
1142
1142
  options: {
1143
1143
  name: string;
1144
1144
  values: string[];
1145
- id: number;
1146
1145
  position: number;
1146
+ id?: number | undefined;
1147
1147
  }[];
1148
1148
  productId: number;
1149
1149
  showSelectors: boolean;
@@ -1193,8 +1193,8 @@ export declare const preparePostPurchaseMemberView: (widgetId: number, settings:
1193
1193
  options: {
1194
1194
  name: string;
1195
1195
  values: string[];
1196
- id: number;
1197
1196
  position: number;
1197
+ id?: number | undefined;
1198
1198
  }[];
1199
1199
  productId: number;
1200
1200
  showSelectors: boolean;
@@ -1347,8 +1347,8 @@ export declare const preparePostPurchaseMemberView: (widgetId: number, settings:
1347
1347
  options: {
1348
1348
  name: string;
1349
1349
  values: string[];
1350
- id: number;
1351
1350
  position: number;
1351
+ id?: number | undefined;
1352
1352
  }[];
1353
1353
  productId: number;
1354
1354
  showSelectors: boolean;
@@ -1401,8 +1401,8 @@ export declare const preparePostPurchaseMemberView: (widgetId: number, settings:
1401
1401
  options: {
1402
1402
  name: string;
1403
1403
  values: string[];
1404
- id: number;
1405
1404
  position: number;
1405
+ id?: number | undefined;
1406
1406
  }[];
1407
1407
  productId: number;
1408
1408
  showSelectors: boolean;
@@ -1746,8 +1746,8 @@ export declare const preparePostPurchaseMemberAdmissionView: (widgetId: number,
1746
1746
  options: {
1747
1747
  name: string;
1748
1748
  values: string[];
1749
- id: number;
1750
1749
  position: number;
1750
+ id?: number | undefined;
1751
1751
  }[];
1752
1752
  productId: number;
1753
1753
  showSelectors: boolean;
@@ -1797,8 +1797,8 @@ export declare const preparePostPurchaseMemberAdmissionView: (widgetId: number,
1797
1797
  options: {
1798
1798
  name: string;
1799
1799
  values: string[];
1800
- id: number;
1801
1800
  position: number;
1801
+ id?: number | undefined;
1802
1802
  }[];
1803
1803
  productId: number;
1804
1804
  showSelectors: boolean;
@@ -1951,8 +1951,8 @@ export declare const preparePostPurchaseMemberAdmissionView: (widgetId: number,
1951
1951
  options: {
1952
1952
  name: string;
1953
1953
  values: string[];
1954
- id: number;
1955
1954
  position: number;
1955
+ id?: number | undefined;
1956
1956
  }[];
1957
1957
  productId: number;
1958
1958
  showSelectors: boolean;
@@ -2005,8 +2005,8 @@ export declare const preparePostPurchaseMemberAdmissionView: (widgetId: number,
2005
2005
  options: {
2006
2006
  name: string;
2007
2007
  values: string[];
2008
- id: number;
2009
2008
  position: number;
2009
+ id?: number | undefined;
2010
2010
  }[];
2011
2011
  productId: number;
2012
2012
  showSelectors: boolean;
@@ -347,8 +347,8 @@ export declare const preparePostPurchaseQuantityAdmissionView: (widgetId: number
347
347
  options: {
348
348
  name: string;
349
349
  values: string[];
350
- id: number;
351
350
  position: number;
351
+ id?: number | undefined;
352
352
  }[];
353
353
  productId: number;
354
354
  showSelectors: boolean;
@@ -398,8 +398,8 @@ export declare const preparePostPurchaseQuantityAdmissionView: (widgetId: number
398
398
  options: {
399
399
  name: string;
400
400
  values: string[];
401
- id: number;
402
401
  position: number;
402
+ id?: number | undefined;
403
403
  }[];
404
404
  productId: number;
405
405
  showSelectors: boolean;
@@ -552,8 +552,8 @@ export declare const preparePostPurchaseQuantityAdmissionView: (widgetId: number
552
552
  options: {
553
553
  name: string;
554
554
  values: string[];
555
- id: number;
556
555
  position: number;
556
+ id?: number | undefined;
557
557
  }[];
558
558
  productId: number;
559
559
  showSelectors: boolean;
@@ -606,8 +606,8 @@ export declare const preparePostPurchaseQuantityAdmissionView: (widgetId: number
606
606
  options: {
607
607
  name: string;
608
608
  values: string[];
609
- id: number;
610
609
  position: number;
610
+ id?: number | undefined;
611
611
  }[];
612
612
  productId: number;
613
613
  showSelectors: boolean;
@@ -335,8 +335,8 @@ export declare const preparePostPurchaseQuantityView: (widgetId: number, setting
335
335
  options: {
336
336
  name: string;
337
337
  values: string[];
338
- id: number;
339
338
  position: number;
339
+ id?: number | undefined;
340
340
  }[];
341
341
  productId: number;
342
342
  showSelectors: boolean;
@@ -386,8 +386,8 @@ export declare const preparePostPurchaseQuantityView: (widgetId: number, setting
386
386
  options: {
387
387
  name: string;
388
388
  values: string[];
389
- id: number;
390
389
  position: number;
390
+ id?: number | undefined;
391
391
  }[];
392
392
  productId: number;
393
393
  showSelectors: boolean;
@@ -540,8 +540,8 @@ export declare const preparePostPurchaseQuantityView: (widgetId: number, setting
540
540
  options: {
541
541
  name: string;
542
542
  values: string[];
543
- id: number;
544
543
  position: number;
544
+ id?: number | undefined;
545
545
  }[];
546
546
  productId: number;
547
547
  showSelectors: boolean;
@@ -594,8 +594,8 @@ export declare const preparePostPurchaseQuantityView: (widgetId: number, setting
594
594
  options: {
595
595
  name: string;
596
596
  values: string[];
597
- id: number;
598
597
  position: number;
598
+ id?: number | undefined;
599
599
  }[];
600
600
  productId: number;
601
601
  showSelectors: boolean;
@@ -12,8 +12,8 @@ export declare const readPostPurchaseGroup: (product: ReturnType<typeof normaliz
12
12
  options: {
13
13
  name: string;
14
14
  values: string[];
15
- id: number;
16
15
  position: number;
16
+ id?: number | undefined;
17
17
  }[];
18
18
  productId: number;
19
19
  showSelectors: boolean;
@@ -61,8 +61,8 @@ export declare const readPostPurchaseGroup: (product: ReturnType<typeof normaliz
61
61
  options: {
62
62
  name: string;
63
63
  values: string[];
64
- id: number;
65
64
  position: number;
65
+ id?: number | undefined;
66
66
  }[];
67
67
  sellingPlanGroups: {
68
68
  requiresSellingPlan: boolean;
@@ -82,8 +82,8 @@ export declare const readPostPurchaseGroup: (product: ReturnType<typeof normaliz
82
82
  options: {
83
83
  name: string;
84
84
  values: string[];
85
- id: number;
86
85
  position: number;
86
+ id?: number | undefined;
87
87
  }[];
88
88
  productId: number;
89
89
  showSelectors: boolean;
@@ -12,8 +12,8 @@ export declare const readPostPurchaseGroupSelection: (settings: unknown, respons
12
12
  options: {
13
13
  name: string;
14
14
  values: string[];
15
- id: number;
16
15
  position: number;
16
+ id?: number | undefined;
17
17
  }[];
18
18
  productId: number;
19
19
  showSelectors: boolean;
@@ -67,8 +67,8 @@ export declare const readPostPurchaseGroupSelection: (settings: unknown, respons
67
67
  options: {
68
68
  name: string;
69
69
  values: string[];
70
- id: number;
71
70
  position: number;
71
+ id?: number | undefined;
72
72
  }[];
73
73
  sellingPlanGroups: {
74
74
  requiresSellingPlan: boolean;
@@ -92,8 +92,8 @@ export declare const readPostPurchaseGroupSelection: (settings: unknown, respons
92
92
  options: {
93
93
  name: string;
94
94
  values: string[];
95
- id: number;
96
95
  position: number;
96
+ id?: number | undefined;
97
97
  }[];
98
98
  productId: number;
99
99
  showSelectors: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rebuy/rebuy",
3
- "version": "3.50.0",
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.",