@rebuy/rebuy 3.43.0 → 3.44.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 CHANGED
@@ -185,6 +185,7 @@ __export(src_exports, {
185
185
  PostPurchaseCommonReviewRating: () => PostPurchaseCommonReviewRating,
186
186
  PostPurchaseDiscount: () => PostPurchaseDiscount,
187
187
  PostPurchaseDisplayPrice: () => PostPurchaseDisplayPrice,
188
+ PostPurchaseEndReasonSchema: () => PostPurchaseEndReasonSchema,
188
189
  PostPurchaseExcludedProductIds: () => PostPurchaseExcludedProductIds,
189
190
  PostPurchaseGroupCatalog: () => PostPurchaseGroupCatalog,
190
191
  PostPurchaseGroupChoice: () => PostPurchaseGroupChoice,
@@ -3139,7 +3140,7 @@ var PostPurchaseSubscriptionDisplay = import_zod35.z.object({
3139
3140
  var { currencyCode: CurrencyCode, priceMinor: Minor3, savingPercent: Percent } = PostPurchaseSubscriptionDisplay.shape;
3140
3141
  var PostPurchaseDisplayPrice = import_zod36.z.object({
3141
3142
  currencyCode: CurrencyCode,
3142
- savingFormat: import_zod36.z.enum(["amount", "percent"]),
3143
+ savingFormat: import_zod36.z.enum(["amount", "percent"]).nullable(),
3143
3144
  savingMinor: Minor3,
3144
3145
  savingPercent: Percent,
3145
3146
  subscriptionUnit: PostPurchaseSubscriptionDisplay.optional(),
@@ -4483,7 +4484,8 @@ var PostPurchaseProductView = import_zod67.z.union([
4483
4484
  planCatalog: PostPurchasePlanCatalog.nullable().optional(),
4484
4485
  preparation: PostPurchasePreparation.options[1],
4485
4486
  purchaseOptions: PostPurchaseOptions.optional(),
4486
- sections: import_zod67.z.null(),
4487
+ /** A choice-level unavailable product keeps its card (values resolve blank); configuration failures send null. */
4488
+ sections: CABRootSection.nullable(),
4487
4489
  variantCatalog: PostPurchaseVariantCatalog.optional()
4488
4490
  })
4489
4491
  ]);
@@ -4906,12 +4908,19 @@ var OfferTransitionRequestSchema = DecideRequestSchema.extend({
4906
4908
  entryRevision: PostPurchaseProgressSchema.shape.entryRevision,
4907
4909
  progressRevision: PostPurchaseProgressSchema.shape.revision
4908
4910
  }).strict();
4911
+ var PostPurchaseEndReasonSchema = import_zod88.z.enum(["no-child", "no-products", "accept-cap"]);
4912
+ var TransitionBaseSchema = import_zod88.z.object({
4913
+ attemptedSkips: PostPurchaseSkipTraceSchema.optional(),
4914
+ progress: PostPurchaseProgressSchema
4915
+ });
4909
4916
  var OfferTransitionResponseSchema = import_zod88.z.object({
4910
- data: import_zod88.z.object({
4911
- attemptedSkips: PostPurchaseSkipTraceSchema.optional(),
4912
- progress: PostPurchaseProgressSchema,
4913
- status: import_zod88.z.enum(["advanced", "no-child", "unavailable"])
4914
- }),
4917
+ data: import_zod88.z.discriminatedUnion("status", [
4918
+ TransitionBaseSchema.extend({ status: import_zod88.z.enum(["advanced", "unavailable"]) }),
4919
+ TransitionBaseSchema.extend({
4920
+ endReason: PostPurchaseEndReasonSchema.optional(),
4921
+ status: import_zod88.z.literal("no-child")
4922
+ })
4923
+ ]),
4915
4924
  successful: import_zod88.z.literal(true)
4916
4925
  });
4917
4926
 
@@ -6871,6 +6880,7 @@ var postPurchaseDisplayPrice = (prepared, currencyCode) => {
6871
6880
  });
6872
6881
  return PostPurchaseDisplayPrice.parse({
6873
6882
  ...facts,
6883
+ ...!prepared.display.shouldShowSavingText && { savingFormat: null },
6874
6884
  ...subscription && { subscriptionUnit: postPurchaseSubscriptionDisplay(subscription, currencyCode) }
6875
6885
  });
6876
6886
  };
package/dist/index.mjs CHANGED
@@ -2670,7 +2670,7 @@ var PostPurchaseSubscriptionDisplay = z35.object({
2670
2670
  var { currencyCode: CurrencyCode, priceMinor: Minor3, savingPercent: Percent } = PostPurchaseSubscriptionDisplay.shape;
2671
2671
  var PostPurchaseDisplayPrice = z36.object({
2672
2672
  currencyCode: CurrencyCode,
2673
- savingFormat: z36.enum(["amount", "percent"]),
2673
+ savingFormat: z36.enum(["amount", "percent"]).nullable(),
2674
2674
  savingMinor: Minor3,
2675
2675
  savingPercent: Percent,
2676
2676
  subscriptionUnit: PostPurchaseSubscriptionDisplay.optional(),
@@ -4014,7 +4014,8 @@ var PostPurchaseProductView = z67.union([
4014
4014
  planCatalog: PostPurchasePlanCatalog.nullable().optional(),
4015
4015
  preparation: PostPurchasePreparation.options[1],
4016
4016
  purchaseOptions: PostPurchaseOptions.optional(),
4017
- sections: z67.null(),
4017
+ /** A choice-level unavailable product keeps its card (values resolve blank); configuration failures send null. */
4018
+ sections: CABRootSection.nullable(),
4018
4019
  variantCatalog: PostPurchaseVariantCatalog.optional()
4019
4020
  })
4020
4021
  ]);
@@ -4437,12 +4438,19 @@ var OfferTransitionRequestSchema = DecideRequestSchema.extend({
4437
4438
  entryRevision: PostPurchaseProgressSchema.shape.entryRevision,
4438
4439
  progressRevision: PostPurchaseProgressSchema.shape.revision
4439
4440
  }).strict();
4441
+ var PostPurchaseEndReasonSchema = z88.enum(["no-child", "no-products", "accept-cap"]);
4442
+ var TransitionBaseSchema = z88.object({
4443
+ attemptedSkips: PostPurchaseSkipTraceSchema.optional(),
4444
+ progress: PostPurchaseProgressSchema
4445
+ });
4440
4446
  var OfferTransitionResponseSchema = z88.object({
4441
- data: z88.object({
4442
- attemptedSkips: PostPurchaseSkipTraceSchema.optional(),
4443
- progress: PostPurchaseProgressSchema,
4444
- status: z88.enum(["advanced", "no-child", "unavailable"])
4445
- }),
4447
+ data: z88.discriminatedUnion("status", [
4448
+ TransitionBaseSchema.extend({ status: z88.enum(["advanced", "unavailable"]) }),
4449
+ TransitionBaseSchema.extend({
4450
+ endReason: PostPurchaseEndReasonSchema.optional(),
4451
+ status: z88.literal("no-child")
4452
+ })
4453
+ ]),
4446
4454
  successful: z88.literal(true)
4447
4455
  });
4448
4456
 
@@ -6402,6 +6410,7 @@ var postPurchaseDisplayPrice = (prepared, currencyCode) => {
6402
6410
  });
6403
6411
  return PostPurchaseDisplayPrice.parse({
6404
6412
  ...facts,
6413
+ ...!prepared.display.shouldShowSavingText && { savingFormat: null },
6405
6414
  ...subscription && { subscriptionUnit: postPurchaseSubscriptionDisplay(subscription, currencyCode) }
6406
6415
  });
6407
6416
  };
@@ -6571,6 +6580,7 @@ export {
6571
6580
  PostPurchaseCommonReviewRating,
6572
6581
  PostPurchaseDiscount,
6573
6582
  PostPurchaseDisplayPrice,
6583
+ PostPurchaseEndReasonSchema,
6574
6584
  PostPurchaseExcludedProductIds,
6575
6585
  PostPurchaseGroupCatalog,
6576
6586
  PostPurchaseGroupChoice,
@@ -4,5 +4,7 @@ import type { PreparedPostPurchaseProduct } from '../schema/postPurchaseProduct'
4
4
  /**
5
5
  * The prepared view's `displayPrice` for the choice this preparation binds — one-time or a plan — derived from the
6
6
  * same preparation the changeset is, in the buyer's presentment currency. A plan choice also carries the unit estimate.
7
+ * The chosen mode's `shouldShowSavingText` off hides the saving text by value (`savingFormat: null`), never by a
8
+ * client setting check.
7
9
  */
8
10
  export declare const postPurchaseDisplayPrice: (prepared: z.infer<typeof PreparedPostPurchaseProduct>, currencyCode: string) => PostPurchaseDisplayPrice;
@@ -4,7 +4,8 @@ import { z } from 'zod';
4
4
  * only formats minor units into cab-checkout's tokens: `variantPriceMinor` → `{{variantPrice}}` (× quantity →
5
5
  * `{{variantTotalPrice}}`), `variantCompareAtPriceMinor` → `{{variantCompareAtPrice}}` (null: nothing struck,
6
6
  * the exemplar's ''). The saving is the struck price minus the price; `savingFormat` is which of
7
- * `savingMinor` / `savingPercent` the saving text shows (L140: currency for a fixed amount). A plan choice also
7
+ * `savingMinor` / `savingPercent` the saving text shows (L140: currency for a fixed amount), or `null` when the
8
+ * chosen mode's `shouldShowSavingText` is off: no saving text, while the strike and amounts stay. A plan choice also
8
9
  * carries `postPurchaseSubscriptionDisplay`'s unit estimate, which must restate these facts: with the saving tied
9
10
  * to its own comparison, its comparison is the struck price when one is struck and at most the price when none is
10
11
  * (a plan `price` above the regular price compares below it, so equality to the price would be too strict). A
@@ -12,10 +13,10 @@ import { z } from 'zod';
12
13
  */
13
14
  export declare const PostPurchaseDisplayPrice: z.ZodObject<{
14
15
  currencyCode: z.ZodString;
15
- savingFormat: z.ZodEnum<{
16
+ savingFormat: z.ZodNullable<z.ZodEnum<{
16
17
  amount: "amount";
17
18
  percent: "percent";
18
- }>;
19
+ }>>;
19
20
  savingMinor: z.ZodNumber;
20
21
  savingPercent: z.ZodNumber;
21
22
  subscriptionUnit: z.ZodOptional<z.ZodObject<{
@@ -45,10 +45,10 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
45
45
  }, z.core.$strip>>;
46
46
  displayPrice: z.ZodOptional<z.ZodObject<{
47
47
  currencyCode: z.ZodString;
48
- savingFormat: z.ZodEnum<{
48
+ savingFormat: z.ZodNullable<z.ZodEnum<{
49
49
  amount: "amount";
50
50
  percent: "percent";
51
- }>;
51
+ }>>;
52
52
  savingMinor: z.ZodNumber;
53
53
  savingPercent: z.ZodNumber;
54
54
  subscriptionUnit: z.ZodOptional<z.ZodObject<{
@@ -757,7 +757,369 @@ export declare const PostPurchaseProductCollectionView: z.ZodObject<{
757
757
  dropdown: "dropdown";
758
758
  }>>>;
759
759
  }, z.core.$strip>>;
760
- sections: z.ZodNull;
760
+ sections: z.ZodNullable<z.ZodObject<{
761
+ alignment: z.ZodDefault<z.ZodObject<{
762
+ horizontal: z.ZodDefault<z.ZodEnum<{
763
+ start: "start";
764
+ center: "center";
765
+ end: "end";
766
+ }>>;
767
+ vertical: z.ZodDefault<z.ZodEnum<{
768
+ top: "top";
769
+ middle: "middle";
770
+ bottom: "bottom";
771
+ }>>;
772
+ }, z.core.$strip>>;
773
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
774
+ radius: z.ZodDefault<z.ZodEnum<{
775
+ small: "small";
776
+ none: "none";
777
+ base: "base";
778
+ large: "large";
779
+ fullyRounded: "fullyRounded";
780
+ }>>;
781
+ style: z.ZodDefault<z.ZodEnum<{
782
+ none: "none";
783
+ base: "base";
784
+ dotted: "dotted";
785
+ dashed: "dashed";
786
+ }>>;
787
+ width: z.ZodDefault<z.ZodEnum<{
788
+ base: "base";
789
+ medium: "medium";
790
+ thick: "thick";
791
+ }>>;
792
+ }, z.core.$strip>>>;
793
+ buttonField: z.ZodOptional<z.ZodEnum<{
794
+ declineAllOffers: "declineAllOffers";
795
+ declineOffer: "declineOffer";
796
+ removeFromOrder: "removeFromOrder";
797
+ undoAddToOrder: "undoAddToOrder";
798
+ activePage: "activePage";
799
+ addedToCart: "addedToCart";
800
+ addingToCart: "addingToCart";
801
+ addToCart: "addToCart";
802
+ buttonLabel: "buttonLabel";
803
+ destinationUrl: "destinationUrl";
804
+ inactivePage: "inactivePage";
805
+ overlayContent: "overlayContent";
806
+ payNow: "payNow";
807
+ progressReached: "progressReached";
808
+ progressRemaining: "progressRemaining";
809
+ redirectToCheckout: "redirectToCheckout";
810
+ showVariant: "showVariant";
811
+ showVariants: "showVariants";
812
+ soldOut: "soldOut";
813
+ subscriptionOption: "subscriptionOption";
814
+ switchToOneTimePurchase: "switchToOneTimePurchase";
815
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
816
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
817
+ }>>;
818
+ direction: z.ZodDefault<z.ZodEnum<{
819
+ columns: "columns";
820
+ rows: "rows";
821
+ grid: "grid";
822
+ }>>;
823
+ frame: z.ZodOptional<z.ZodEnum<{
824
+ callout: "callout";
825
+ "offer-content": "offer-content";
826
+ }>>;
827
+ grid: z.ZodOptional<z.ZodDefault<z.ZodObject<{
828
+ columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
829
+ rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
830
+ }, z.core.$strip>>>;
831
+ name: z.ZodOptional<z.ZodString>;
832
+ padding: z.ZodDefault<z.ZodEnum<{
833
+ none: "none";
834
+ base: "base";
835
+ extraTight: "extraTight";
836
+ tight: "tight";
837
+ loose: "loose";
838
+ extraLoose: "extraLoose";
839
+ }>>;
840
+ sectionId: z.ZodDefault<z.ZodUUID>;
841
+ sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import(".").CABSection, unknown, z.core.$ZodTypeInternals<import(".").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
842
+ sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
843
+ spacing: z.ZodDefault<z.ZodEnum<{
844
+ none: "none";
845
+ base: "base";
846
+ extraTight: "extraTight";
847
+ tight: "tight";
848
+ loose: "loose";
849
+ extraLoose: "extraLoose";
850
+ }>>;
851
+ viewUrl: z.ZodOptional<z.ZodString>;
852
+ width: z.ZodDefault<z.ZodNumber>;
853
+ wrapping: z.ZodOptional<z.ZodObject<{
854
+ breakAt: z.ZodNumber;
855
+ maxPerLine: z.ZodNumber;
856
+ }, z.core.$strip>>;
857
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
858
+ effect: z.ZodDefault<z.ZodEnum<{
859
+ set_false: "set_false";
860
+ set_true: "set_true";
861
+ toggle: "toggle";
862
+ }>>;
863
+ variable: z.ZodString;
864
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
865
+ operator: z.ZodDefault<z.ZodEnum<{
866
+ is_empty: "is_empty";
867
+ is_not_empty: "is_not_empty";
868
+ }>>;
869
+ type: z.ZodLiteral<"content">;
870
+ }, z.core.$strip>, z.ZodObject<{
871
+ event: z.ZodEnum<{
872
+ item_added: "item_added";
873
+ quantity_changed: "quantity_changed";
874
+ variant_selected: "variant_selected";
875
+ }>;
876
+ type: z.ZodLiteral<"event">;
877
+ }, z.core.$strip>, z.ZodObject<{
878
+ operator: z.ZodDefault<z.ZodEnum<{
879
+ equals: "equals";
880
+ greater_than: "greater_than";
881
+ less_than: "less_than";
882
+ }>>;
883
+ type: z.ZodLiteral<"result_count">;
884
+ value: z.ZodDefault<z.ZodNumber>;
885
+ }, z.core.$strip>, z.ZodObject<{
886
+ operator: z.ZodDefault<z.ZodEnum<{
887
+ contains: "contains";
888
+ does_not_contain: "does_not_contain";
889
+ }>>;
890
+ type: z.ZodLiteral<"result_tag">;
891
+ value: z.ZodString;
892
+ }, z.core.$strip>], "type">;
893
+ }, z.core.$strip>>>;
894
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
895
+ defaultValue: z.ZodString;
896
+ name: z.ZodString;
897
+ seed: z.ZodOptional<z.ZodNever>;
898
+ type: z.ZodLiteral<"text">;
899
+ }, z.core.$strip>, z.ZodObject<{
900
+ defaultValue: z.ZodNumber;
901
+ name: z.ZodString;
902
+ seed: z.ZodOptional<z.ZodNever>;
903
+ type: z.ZodLiteral<"number">;
904
+ }, z.core.$strip>, z.ZodObject<{
905
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
906
+ name: z.ZodString;
907
+ seed: z.ZodOptional<z.ZodObject<{
908
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
909
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
910
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
911
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
912
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
913
+ operator: z.ZodDefault<z.ZodEnum<{
914
+ equals: "equals";
915
+ greater_than: "greater_than";
916
+ less_than: "less_than";
917
+ contains: "contains";
918
+ does_not_contain: "does_not_contain";
919
+ after: "after";
920
+ anything: "anything";
921
+ before: "before";
922
+ contains_any: "contains_any";
923
+ does_not_contain_any: "does_not_contain_any";
924
+ does_not_equal: "does_not_equal";
925
+ }>>;
926
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
927
+ type: z.ZodDefault<z.ZodEnum<{
928
+ product: "product";
929
+ date: "date";
930
+ cart: "cart";
931
+ cart_count: "cart_count";
932
+ cart_item_count: "cart_item_count";
933
+ cart_line_count: "cart_line_count";
934
+ cart_subtotal: "cart_subtotal";
935
+ collection: "collection";
936
+ customer: "customer";
937
+ customer_order_count: "customer_order_count";
938
+ customer_tag: "customer_tag";
939
+ customer_total_spent: "customer_total_spent";
940
+ product_tag: "product_tag";
941
+ product_title: "product_title";
942
+ product_type: "product_type";
943
+ product_vendor: "product_vendor";
944
+ }>>;
945
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
946
+ }, z.core.$strip>>>;
947
+ }, z.core.$strip>>>;
948
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
949
+ key: z.ZodDefault<z.ZodString>;
950
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
951
+ value: z.ZodDefault<z.ZodString>;
952
+ }, z.core.$strip>>>;
953
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
954
+ exitIfMatched: boolean;
955
+ logic: {
956
+ rules: {
957
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
958
+ products: never[] | unknown[];
959
+ type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
960
+ value: string;
961
+ }[];
962
+ }[];
963
+ output: {
964
+ key: string;
965
+ type: "data_json";
966
+ value: string;
967
+ }[];
968
+ }[], Record<string, never>>>]>>;
969
+ }, z.core.$strip>>;
970
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
971
+ }, z.core.$strip>]>, z.ZodTransform<{
972
+ defaultValue: string;
973
+ name: string;
974
+ type: "text";
975
+ seed?: undefined;
976
+ } | {
977
+ defaultValue: number;
978
+ name: string;
979
+ type: "number";
980
+ seed?: undefined;
981
+ } | {
982
+ defaultValue: boolean;
983
+ name: string;
984
+ type: "boolean";
985
+ seed?: {
986
+ dataSourceId: number | null;
987
+ ruleset: {
988
+ exitIfMatched: boolean;
989
+ logic: {
990
+ rules: {
991
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
992
+ products: never[] | unknown[];
993
+ type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
994
+ value: string;
995
+ }[];
996
+ }[];
997
+ output: {
998
+ key: string;
999
+ type: "data_json";
1000
+ value: string;
1001
+ }[];
1002
+ }[];
1003
+ } | undefined;
1004
+ }, {
1005
+ name: string;
1006
+ type: "boolean";
1007
+ defaultValue?: boolean | undefined;
1008
+ seed?: {
1009
+ dataSourceId: number | null;
1010
+ ruleset: {
1011
+ exitIfMatched: boolean;
1012
+ logic: {
1013
+ rules: {
1014
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
1015
+ products: never[] | unknown[];
1016
+ type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
1017
+ value: string;
1018
+ }[];
1019
+ }[];
1020
+ output: {
1021
+ key: string;
1022
+ type: "data_json";
1023
+ value: string;
1024
+ }[];
1025
+ }[];
1026
+ } | undefined;
1027
+ } | {
1028
+ defaultValue: string;
1029
+ name: string;
1030
+ type: "text";
1031
+ seed?: undefined;
1032
+ } | {
1033
+ defaultValue: number;
1034
+ name: string;
1035
+ type: "number";
1036
+ seed?: undefined;
1037
+ }>>>>;
1038
+ visibility: z.ZodOptional<z.ZodObject<{
1039
+ variable: z.ZodString;
1040
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
1041
+ }, z.core.$strip>>;
1042
+ editorMode: z.ZodDefault<z.ZodEnum<{
1043
+ checkoutExtension: "checkoutExtension";
1044
+ postPurchaseOffer: "postPurchaseOffer";
1045
+ thankYouPage: "thankYouPage";
1046
+ orderStatusPage: "orderStatusPage";
1047
+ ordersIndexPage: "ordersIndexPage";
1048
+ customerProfilePage: "customerProfilePage";
1049
+ }>>;
1050
+ experiment: z.ZodOptional<z.ZodObject<{
1051
+ elementId: z.ZodNumber;
1052
+ experimentId: z.ZodNumber;
1053
+ experimentType: z.ZodString;
1054
+ selectedId: z.ZodNumber;
1055
+ }, z.core.$strip>>;
1056
+ previewMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
1057
+ storeId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1058
+ targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
1059
+ fill: z.ZodOptional<z.ZodBoolean>;
1060
+ flip: z.ZodOptional<z.ZodEnum<{
1061
+ vertical: "vertical";
1062
+ horizontal: "horizontal";
1063
+ both: "both";
1064
+ }>>;
1065
+ icon: z.ZodString;
1066
+ label: z.ZodString;
1067
+ width: z.ZodString;
1068
+ }, z.core.$strip>>>;
1069
+ tracking: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
1070
+ enableAttribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
1071
+ enableSource: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
1072
+ enableWidget: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
1073
+ }, z.core.$strip>>>, z.ZodTransform<{
1074
+ enableAttribution: boolean;
1075
+ enableSource: boolean;
1076
+ enableWidget: boolean;
1077
+ }, {
1078
+ enableAttribution: boolean;
1079
+ enableSource: boolean;
1080
+ enableWidget: boolean;
1081
+ } | null | undefined>>;
1082
+ type: z.ZodDefault<z.ZodEnum<{
1083
+ product: "product";
1084
+ bundle_builder: "bundle_builder";
1085
+ cart: "cart";
1086
+ cart_subscription: "cart_subscription";
1087
+ dynamic_bundle: "dynamic_bundle";
1088
+ gift_with_purchase: "gift_with_purchase";
1089
+ placeholder: "placeholder";
1090
+ pre_purchase: "pre_purchase";
1091
+ product_addon: "product_addon";
1092
+ product_upsell: "product_upsell";
1093
+ recharge_checkout: "recharge_checkout";
1094
+ recharge_customer_portal: "recharge_customer_portal";
1095
+ recharge_post_purchase: "recharge_post_purchase";
1096
+ shopify_checkout: "shopify_checkout";
1097
+ shopify_checkout_extension: "shopify_checkout_extension";
1098
+ shopify_post_purchase: "shopify_post_purchase";
1099
+ shopify_post_purchase_extension: "shopify_post_purchase_extension";
1100
+ switch_to_subscription: "switch_to_subscription";
1101
+ ui_extension_ad: "ui_extension_ad";
1102
+ ui_extension_button: "ui_extension_button";
1103
+ ui_extension_content_block: "ui_extension_content_block";
1104
+ ui_extension_line_item_editor: "ui_extension_line_item_editor";
1105
+ ui_extension_progress_bar: "ui_extension_progress_bar";
1106
+ }>>;
1107
+ uiLabels: z.ZodDefault<z.ZodObject<{
1108
+ currentPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1109
+ guest: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1110
+ loadingOptions: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1111
+ nextPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1112
+ offerCarousel: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1113
+ offerDialog: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1114
+ page: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1115
+ previousPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1116
+ selected: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1117
+ subscriptionOptions: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1118
+ updating: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
1119
+ }, z.core.$strip>>;
1120
+ version: z.ZodDefault<z.ZodLiteral<2>>;
1121
+ widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
1122
+ }, z.core.$strip>>;
761
1123
  variantCatalog: z.ZodOptional<z.ZodObject<{
762
1124
  displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
763
1125
  single: "single";