@rebuy/rebuy 2.1.0 → 2.2.0-rc.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.
Files changed (43) hide show
  1. package/dist/schema/button.d.ts +271 -0
  2. package/dist/schema/button.d.ts.map +1 -0
  3. package/dist/schema/common.d.ts +369 -0
  4. package/dist/schema/common.d.ts.map +1 -0
  5. package/dist/schema/constants.d.ts +165 -0
  6. package/dist/schema/constants.d.ts.map +1 -0
  7. package/dist/schema/data-source.d.ts +11 -0
  8. package/dist/schema/data-source.d.ts.map +1 -0
  9. package/dist/schema/image.d.ts +63 -0
  10. package/dist/schema/image.d.ts.map +1 -0
  11. package/dist/schema/index.d.ts +20 -0
  12. package/dist/schema/index.d.ts.map +1 -0
  13. package/dist/schema/index.mjs +629 -0
  14. package/dist/schema/index.mjs.map +7 -0
  15. package/dist/schema/layout.d.ts +78 -0
  16. package/dist/schema/layout.d.ts.map +1 -0
  17. package/dist/schema/offers.d.ts +67 -0
  18. package/dist/schema/offers.d.ts.map +1 -0
  19. package/dist/schema/product.d.ts +147 -0
  20. package/dist/schema/product.d.ts.map +1 -0
  21. package/dist/schema/products.d.ts +150 -0
  22. package/dist/schema/products.d.ts.map +1 -0
  23. package/dist/schema/quantity.d.ts +19 -0
  24. package/dist/schema/quantity.d.ts.map +1 -0
  25. package/dist/schema/regex.d.ts +7 -0
  26. package/dist/schema/regex.d.ts.map +1 -0
  27. package/dist/schema/reviews.d.ts +8 -0
  28. package/dist/schema/reviews.d.ts.map +1 -0
  29. package/dist/schema/root.d.ts +127 -0
  30. package/dist/schema/root.d.ts.map +1 -0
  31. package/dist/schema/shared.d.ts +38 -0
  32. package/dist/schema/shared.d.ts.map +1 -0
  33. package/dist/schema/subscription.d.ts +8 -0
  34. package/dist/schema/subscription.d.ts.map +1 -0
  35. package/dist/schema/table.d.ts +8 -0
  36. package/dist/schema/table.d.ts.map +1 -0
  37. package/dist/schema/text.d.ts +160 -0
  38. package/dist/schema/text.d.ts.map +1 -0
  39. package/dist/schema/utils.d.ts +8 -0
  40. package/dist/schema/utils.d.ts.map +1 -0
  41. package/dist/schema/variants.d.ts +15 -0
  42. package/dist/schema/variants.d.ts.map +1 -0
  43. package/package.json +11 -1
@@ -0,0 +1,165 @@
1
+ import { z } from 'zod';
2
+ export declare const DEFAULT_ENDPOINTS: readonly [{
3
+ readonly label: "Recommended (AI)";
4
+ readonly value: "/products/recommended";
5
+ }, {
6
+ readonly label: "Top Sellers";
7
+ readonly value: "/products/top_sellers";
8
+ }, {
9
+ readonly label: "Buy It Again";
10
+ readonly value: "/products/purchased";
11
+ }, {
12
+ readonly label: "Recently Viewed";
13
+ readonly value: "/products/viewed";
14
+ }, {
15
+ readonly label: "Products Search";
16
+ readonly value: "/products/search";
17
+ }, {
18
+ readonly label: "Collection Products";
19
+ readonly value: "/products/collections";
20
+ }, {
21
+ readonly label: "Similar Products (AI)";
22
+ readonly value: "/products/similar_products";
23
+ }];
24
+ export declare const STATIC_ENDPOINTS: readonly [{
25
+ readonly label: "Recommended (AI)";
26
+ readonly value: "/products/recommended";
27
+ }, {
28
+ readonly label: "Top Sellers";
29
+ readonly value: "/products/top_sellers";
30
+ }, {
31
+ readonly label: "Trending Products";
32
+ readonly value: "/products/trending_products";
33
+ }, {
34
+ readonly label: "Buy It Again";
35
+ readonly value: "/products/purchased";
36
+ }, {
37
+ readonly label: "Collection Products";
38
+ readonly value: "/products/collections";
39
+ }, {
40
+ readonly label: "Recently Viewed";
41
+ readonly value: "/products/viewed";
42
+ }, {
43
+ readonly label: "Static Products";
44
+ readonly value: "/products/static";
45
+ }, {
46
+ readonly label: "Products Search";
47
+ readonly value: "/products/search";
48
+ }, {
49
+ readonly label: "Similar Products (AI)";
50
+ readonly value: "/products/similar_products";
51
+ }];
52
+ export declare const COMBINED_ENDPOINTS: ({
53
+ readonly label: "Recommended (AI)";
54
+ readonly value: "/products/recommended";
55
+ } | {
56
+ readonly label: "Top Sellers";
57
+ readonly value: "/products/top_sellers";
58
+ } | {
59
+ readonly label: "Buy It Again";
60
+ readonly value: "/products/purchased";
61
+ } | {
62
+ readonly label: "Recently Viewed";
63
+ readonly value: "/products/viewed";
64
+ } | {
65
+ readonly label: "Products Search";
66
+ readonly value: "/products/search";
67
+ } | {
68
+ readonly label: "Collection Products";
69
+ readonly value: "/products/collections";
70
+ } | {
71
+ readonly label: "Similar Products (AI)";
72
+ readonly value: "/products/similar_products";
73
+ } | {
74
+ readonly label: "Trending Products";
75
+ readonly value: "/products/trending_products";
76
+ } | {
77
+ readonly label: "Static Products";
78
+ readonly value: "/products/static";
79
+ })[];
80
+ export declare const targetAreas: {
81
+ readonly checkoutExtension: {
82
+ icon: string;
83
+ label: string;
84
+ width: string;
85
+ }[];
86
+ readonly postPurchaseOffer: null;
87
+ readonly thankYouPage: {
88
+ icon: string;
89
+ label: string;
90
+ width: string;
91
+ }[];
92
+ readonly orderStatusPage: ({
93
+ icon: string;
94
+ label: string;
95
+ width: string;
96
+ fill?: undefined;
97
+ } | {
98
+ fill: true;
99
+ icon: string;
100
+ label: string;
101
+ width: string;
102
+ })[];
103
+ readonly ordersIndexPage: {
104
+ icon: string;
105
+ label: string;
106
+ width: string;
107
+ }[];
108
+ readonly customerProfilePage: {
109
+ icon: string;
110
+ label: string;
111
+ width: string;
112
+ }[];
113
+ };
114
+ export declare const widgetTypes: readonly ["bundle_builder", "cart", "cart_subscription", "dynamic_bundle", "gift_with_purchase", "pre_purchase", "product", "product_addon", "product_upsell", "recharge_checkout", "recharge_customer_portal", "recharge_post_purchase", "shopify_checkout", "shopify_checkout_extension", "shopify_post_purchase", "shopify_post_purchase_extension", "switch_to_subscription", "ui_extension_ad", "ui_extension_button", "ui_extension_content_block", "ui_extension_line_item_editor", "ui_extension_progress_bar"];
115
+ declare const widgetType: z.ZodEnum<{
116
+ product: "product";
117
+ bundle_builder: "bundle_builder";
118
+ cart: "cart";
119
+ cart_subscription: "cart_subscription";
120
+ dynamic_bundle: "dynamic_bundle";
121
+ gift_with_purchase: "gift_with_purchase";
122
+ pre_purchase: "pre_purchase";
123
+ product_addon: "product_addon";
124
+ product_upsell: "product_upsell";
125
+ recharge_checkout: "recharge_checkout";
126
+ recharge_customer_portal: "recharge_customer_portal";
127
+ recharge_post_purchase: "recharge_post_purchase";
128
+ shopify_checkout: "shopify_checkout";
129
+ shopify_checkout_extension: "shopify_checkout_extension";
130
+ shopify_post_purchase: "shopify_post_purchase";
131
+ shopify_post_purchase_extension: "shopify_post_purchase_extension";
132
+ switch_to_subscription: "switch_to_subscription";
133
+ ui_extension_ad: "ui_extension_ad";
134
+ ui_extension_button: "ui_extension_button";
135
+ ui_extension_content_block: "ui_extension_content_block";
136
+ ui_extension_line_item_editor: "ui_extension_line_item_editor";
137
+ ui_extension_progress_bar: "ui_extension_progress_bar";
138
+ }>;
139
+ export declare const WidgetType: {
140
+ product: "product";
141
+ bundle_builder: "bundle_builder";
142
+ cart: "cart";
143
+ cart_subscription: "cart_subscription";
144
+ dynamic_bundle: "dynamic_bundle";
145
+ gift_with_purchase: "gift_with_purchase";
146
+ pre_purchase: "pre_purchase";
147
+ product_addon: "product_addon";
148
+ product_upsell: "product_upsell";
149
+ recharge_checkout: "recharge_checkout";
150
+ recharge_customer_portal: "recharge_customer_portal";
151
+ recharge_post_purchase: "recharge_post_purchase";
152
+ shopify_checkout: "shopify_checkout";
153
+ shopify_checkout_extension: "shopify_checkout_extension";
154
+ shopify_post_purchase: "shopify_post_purchase";
155
+ shopify_post_purchase_extension: "shopify_post_purchase_extension";
156
+ switch_to_subscription: "switch_to_subscription";
157
+ ui_extension_ad: "ui_extension_ad";
158
+ ui_extension_button: "ui_extension_button";
159
+ ui_extension_content_block: "ui_extension_content_block";
160
+ ui_extension_line_item_editor: "ui_extension_line_item_editor";
161
+ ui_extension_progress_bar: "ui_extension_progress_bar";
162
+ };
163
+ export type WidgetType = z.infer<typeof widgetType>;
164
+ export {};
165
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/schema/constants.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;IAA+D,CAAC;AAE/F,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,CAAC;AAEX,eAAO,MAAM,WAAW,yfAuBd,CAAC;AAEX,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;EAAsB,CAAC;AAEvC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;CAAkB,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ export declare const CABDataSourceSection: z.ZodObject<{
3
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
4
+ dataSourcePath: z.ZodDefault<z.ZodString>;
5
+ limit: z.ZodDefault<z.ZodNumber>;
6
+ name: z.ZodDefault<z.ZodString>;
7
+ sectionId: z.ZodDefault<z.ZodUUID>;
8
+ sectionType: z.ZodDefault<z.ZodLiteral<"dataSource">>;
9
+ }, z.core.$strict>;
10
+ export type CABDataSourceSection = z.infer<typeof CABDataSourceSection>;
11
+ //# sourceMappingURL=data-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data-source.d.ts","sourceRoot":"","sources":["../../src/schema/data-source.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,oBAAoB;;;;;;;kBAO/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { z } from 'zod';
2
+ export declare const CABImageSection: z.ZodObject<{
3
+ altText: z.ZodDefault<z.ZodString>;
4
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
5
+ border: z.ZodDefault<z.ZodObject<{
6
+ radius: z.ZodDefault<z.ZodEnum<{
7
+ small: "small";
8
+ none: "none";
9
+ base: "base";
10
+ large: "large";
11
+ fullyRounded: "fullyRounded";
12
+ }>>;
13
+ style: z.ZodDefault<z.ZodEnum<{
14
+ none: "none";
15
+ base: "base";
16
+ dotted: "dotted";
17
+ dashed: "dashed";
18
+ }>>;
19
+ width: z.ZodDefault<z.ZodEnum<{
20
+ base: "base";
21
+ medium: "medium";
22
+ thick: "thick";
23
+ }>>;
24
+ }, z.core.$strict>>;
25
+ buttonField: z.ZodOptional<z.ZodEnum<{
26
+ declineAllOffers: "declineAllOffers";
27
+ declineOffer: "declineOffer";
28
+ removeFromCart: "removeFromCart";
29
+ showVariants: "showVariants";
30
+ addedToCart: "addedToCart";
31
+ addingToCart: "addingToCart";
32
+ addToCart: "addToCart";
33
+ buttonLabel: "buttonLabel";
34
+ destinationUrl: "destinationUrl";
35
+ payNow: "payNow";
36
+ showVariant: "showVariant";
37
+ soldOut: "soldOut";
38
+ switchToOneTimeAction: "switchToOneTimeAction";
39
+ switchToOneTimePurchase: "switchToOneTimePurchase";
40
+ switchToSubscriptionAction: "switchToSubscriptionAction";
41
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
42
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
43
+ }>>;
44
+ category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
45
+ gallery: "gallery";
46
+ icons: "icons";
47
+ "payment-methods": "payment-methods";
48
+ "secure-checkout": "secure-checkout";
49
+ }>>>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ naturalHeight: z.ZodDefault<z.ZodNumber>;
52
+ naturalWidth: z.ZodDefault<z.ZodNumber>;
53
+ objectFit: z.ZodDefault<z.ZodEnum<{
54
+ cover: "cover";
55
+ contain: "contain";
56
+ }>>;
57
+ sectionId: z.ZodDefault<z.ZodUUID>;
58
+ sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
59
+ source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
60
+ width: z.ZodDefault<z.ZodNumber>;
61
+ }, z.core.$strict>;
62
+ export type CABImageSection = z.infer<typeof CABImageSection>;
63
+ //# sourceMappingURL=image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../src/schema/image.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAc1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ export * from '~/schema/button';
2
+ export * from '~/schema/common';
3
+ export * from '~/schema/constants';
4
+ export * from '~/schema/data-source';
5
+ export * from '~/schema/image';
6
+ export * from '~/schema/layout';
7
+ export * from '~/schema/offers';
8
+ export * from '~/schema/product';
9
+ export * from '~/schema/products';
10
+ export * from '~/schema/quantity';
11
+ export * from '~/schema/regex';
12
+ export * from '~/schema/reviews';
13
+ export * from '~/schema/root';
14
+ export * from '~/schema/shared';
15
+ export * from '~/schema/subscription';
16
+ export * from '~/schema/table';
17
+ export * from '~/schema/text';
18
+ export * from '~/schema/utils';
19
+ export * from '~/schema/variants';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schema/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}