@reactionary/core 0.3.7 → 0.3.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/core",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "main": "index.js",
5
5
  "types": "src/index.d.ts",
6
6
  "dependencies": {
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { BaseModelSchema, createPaginatedResponseSchema } from "./base.model.js";
3
3
  import { IdentityIdentifierSchema, OrderIdentifierSchema, OrderInventoryStatusSchema, OrderSearchIdentifierSchema, OrderStatusSchema } from "./identifiers.model.js";
4
4
  import { MonetaryAmountSchema } from "./price.model.js";
@@ -1,7 +1,8 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { ProductIdentifierSchema, ProductRecommendationIdentifierSchema, ProductVariantIdentifierSchema } from "./identifiers.model.js";
3
3
  import { ProductSearchResultItemSchema } from "./product-search.model.js";
4
- const BaseProductRecommendationSchema = z.looseObject({
4
+ import { BaseModelSchema } from "./base.model.js";
5
+ const BaseProductRecommendationSchema = BaseModelSchema.extend({
5
6
  recommendationIdentifier: ProductRecommendationIdentifierSchema.describe("The identifier for the product recommendation, which includes a key and an algorithm and any other vendor specific/instance specific data ")
6
7
  });
7
8
  const ProductRecommendationIdOnlySchema = BaseProductRecommendationSchema.extend({
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { AnalyticsMutationProductAddToCartEventSchema } from "./product-add-to-cart.mutation.js";
3
3
  import { AnalyticsMutationProductDetailsViewEventSchema } from "./product-details-view.mutation.js";
4
4
  import { AnalyticsMutationProductSummaryClickEventSchema } from "./product-summary-click.mutation.js";
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import {
3
3
  ProductSearchIdentifierSchema,
4
4
  ProductIdentifierSchema
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { ProductIdentifierSchema } from "../../models/identifiers.model.js";
3
3
  import { BaseMutationSchema } from "../base.mutation.js";
4
4
  const AnalyticsMutationProductDetailsViewEventSchema = BaseMutationSchema.extend({
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { BaseMutationSchema } from "../base.mutation.js";
3
3
  import { OrderSchema } from "../../models/order.model.js";
4
4
  const AnalyticsMutationPurchaseEventSchema = BaseMutationSchema.extend({
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { BaseQuerySchema } from "./base.query.js";
3
3
  import { ProductIdentifierSchema, ProductVariantIdentifierSchema } from "../models/identifiers.model.js";
4
4
  import { CartItemSchema } from "../models/cart.model.js";
@@ -1,4 +1,4 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import { CategoryIdentifierSchema, ProductIdentifierSchema } from "../models/identifiers.model.js";
3
3
  import { BaseQuerySchema } from "./base.query.js";
4
4
  const ProductRecommendationBaseQuerySchema = BaseQuerySchema.extend({
@@ -1,17 +1,17 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import type { InferType } from "../../zod-utils.js";
3
3
  export declare const OrderSearchResultItemSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
5
5
  key: z.ZodString;
6
- }, z.z.core.$loose>;
6
+ }, z.core.$loose>;
7
7
  userId: z.ZodObject<{
8
8
  userId: z.ZodString;
9
- }, z.z.core.$loose>;
9
+ }, z.core.$loose>;
10
10
  customerName: z.ZodString;
11
11
  shippingAddress: z.ZodOptional<z.ZodObject<{
12
12
  identifier: z.ZodDefault<z.ZodObject<{
13
13
  nickName: z.ZodString;
14
- }, z.z.core.$loose>>;
14
+ }, z.core.$loose>>;
15
15
  firstName: z.ZodString;
16
16
  lastName: z.ZodString;
17
17
  streetAddress: z.ZodString;
@@ -20,7 +20,7 @@ export declare const OrderSearchResultItemSchema: z.ZodObject<{
20
20
  region: z.ZodString;
21
21
  postalCode: z.ZodString;
22
22
  countryCode: z.ZodString;
23
- }, z.z.core.$loose>>;
23
+ }, z.core.$loose>>;
24
24
  orderDate: z.ZodString;
25
25
  orderStatus: z.ZodEnum<{
26
26
  AwaitingPayment: "AwaitingPayment";
@@ -219,8 +219,8 @@ export declare const OrderSearchResultItemSchema: z.ZodObject<{
219
219
  ZMW: "ZMW";
220
220
  ZWL: "ZWL";
221
221
  }>;
222
- }, z.z.core.$loose>;
223
- }, z.z.core.$loose>;
222
+ }, z.core.$loose>;
223
+ }, z.core.$loose>;
224
224
  export declare const OrderSearchResultSchema: z.ZodObject<{
225
225
  pageNumber: z.ZodNumber;
226
226
  pageSize: z.ZodNumber;
@@ -229,15 +229,15 @@ export declare const OrderSearchResultSchema: z.ZodObject<{
229
229
  items: z.ZodArray<z.ZodObject<{
230
230
  identifier: z.ZodObject<{
231
231
  key: z.ZodString;
232
- }, z.z.core.$loose>;
232
+ }, z.core.$loose>;
233
233
  userId: z.ZodObject<{
234
234
  userId: z.ZodString;
235
- }, z.z.core.$loose>;
235
+ }, z.core.$loose>;
236
236
  customerName: z.ZodString;
237
237
  shippingAddress: z.ZodOptional<z.ZodObject<{
238
238
  identifier: z.ZodDefault<z.ZodObject<{
239
239
  nickName: z.ZodString;
240
- }, z.z.core.$loose>>;
240
+ }, z.core.$loose>>;
241
241
  firstName: z.ZodString;
242
242
  lastName: z.ZodString;
243
243
  streetAddress: z.ZodString;
@@ -246,7 +246,7 @@ export declare const OrderSearchResultSchema: z.ZodObject<{
246
246
  region: z.ZodString;
247
247
  postalCode: z.ZodString;
248
248
  countryCode: z.ZodString;
249
- }, z.z.core.$loose>>;
249
+ }, z.core.$loose>>;
250
250
  orderDate: z.ZodString;
251
251
  orderStatus: z.ZodEnum<{
252
252
  AwaitingPayment: "AwaitingPayment";
@@ -445,8 +445,8 @@ export declare const OrderSearchResultSchema: z.ZodObject<{
445
445
  ZMW: "ZMW";
446
446
  ZWL: "ZWL";
447
447
  }>;
448
- }, z.z.core.$loose>;
449
- }, z.z.core.$loose>>;
448
+ }, z.core.$loose>;
449
+ }, z.core.$loose>>;
450
450
  identifier: z.ZodObject<{
451
451
  term: z.ZodString;
452
452
  partNumber: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -458,15 +458,15 @@ export declare const OrderSearchResultSchema: z.ZodObject<{
458
458
  }>>>;
459
459
  user: z.ZodOptional<z.ZodObject<{
460
460
  userId: z.ZodString;
461
- }, z.z.core.$loose>>;
461
+ }, z.core.$loose>>;
462
462
  startDate: z.ZodOptional<z.ZodString>;
463
463
  endDate: z.ZodOptional<z.ZodString>;
464
464
  filters: z.ZodArray<z.ZodString>;
465
465
  paginationOptions: z.ZodObject<{
466
466
  pageNumber: z.ZodDefault<z.ZodNumber>;
467
467
  pageSize: z.ZodDefault<z.ZodNumber>;
468
- }, z.z.core.$loose>;
469
- }, z.z.core.$loose>;
470
- }, z.z.core.$strip>;
468
+ }, z.core.$loose>;
469
+ }, z.core.$loose>;
470
+ }, z.core.$strip>;
471
471
  export type OrderSearchResult = InferType<typeof OrderSearchResultSchema>;
472
472
  export type OrderSearchResultItem = InferType<typeof OrderSearchResultItemSchema>;
@@ -1,109 +1,110 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
+ import type { InferType } from "../../zod-utils.js";
2
3
  export declare const BaseProductRecommendationSchema: z.ZodObject<{
3
4
  recommendationIdentifier: z.ZodObject<{
4
5
  key: z.ZodString;
5
6
  algorithm: z.ZodString;
6
- }, z.z.core.$loose>;
7
- }, z.z.core.$loose>;
7
+ }, z.core.$loose>;
8
+ }, z.core.$loose>;
8
9
  export declare const ProductRecommendationIdOnlySchema: z.ZodObject<{
9
10
  recommendationIdentifier: z.ZodObject<{
10
11
  key: z.ZodString;
11
12
  algorithm: z.ZodString;
12
- }, z.z.core.$loose>;
13
+ }, z.core.$loose>;
13
14
  recommendationReturnType: z.ZodLiteral<"idOnly">;
14
15
  product: z.ZodObject<{
15
16
  key: z.ZodString;
16
- }, z.z.core.$loose>;
17
- }, z.z.core.$loose>;
17
+ }, z.core.$loose>;
18
+ }, z.core.$loose>;
18
19
  export declare const ProductRecommendationProductSearchResultItemSchema: z.ZodObject<{
19
20
  recommendationIdentifier: z.ZodObject<{
20
21
  key: z.ZodString;
21
22
  algorithm: z.ZodString;
22
- }, z.z.core.$loose>;
23
+ }, z.core.$loose>;
23
24
  recommendationReturnType: z.ZodLiteral<"productSearchResultItem">;
24
25
  product: z.ZodObject<{
25
26
  identifier: z.ZodObject<{
26
27
  key: z.ZodString;
27
- }, z.z.core.$loose>;
28
+ }, z.core.$loose>;
28
29
  name: z.ZodString;
29
30
  slug: z.ZodString;
30
31
  variants: z.ZodArray<z.ZodObject<{
31
32
  variant: z.ZodObject<{
32
33
  sku: z.ZodString;
33
- }, z.z.core.$loose>;
34
+ }, z.core.$loose>;
34
35
  image: z.ZodObject<{
35
36
  sourceUrl: z.ZodDefault<z.ZodString>;
36
37
  altText: z.ZodDefault<z.ZodString>;
37
38
  width: z.ZodOptional<z.ZodNumber>;
38
39
  height: z.ZodOptional<z.ZodNumber>;
39
- }, z.z.core.$loose>;
40
+ }, z.core.$loose>;
40
41
  options: z.ZodOptional<z.ZodObject<{
41
42
  identifier: z.ZodObject<{
42
43
  key: z.ZodString;
43
- }, z.z.core.$loose>;
44
+ }, z.core.$loose>;
44
45
  name: z.ZodString;
45
46
  value: z.ZodObject<{
46
47
  identifier: z.ZodObject<{
47
48
  option: z.ZodObject<{
48
49
  key: z.ZodString;
49
- }, z.z.core.$loose>;
50
+ }, z.core.$loose>;
50
51
  key: z.ZodString;
51
- }, z.z.core.$loose>;
52
+ }, z.core.$loose>;
52
53
  label: z.ZodString;
53
- }, z.z.core.$loose>;
54
- }, z.z.core.$loose>>;
55
- }, z.z.core.$loose>>;
56
- }, z.z.core.$loose>;
57
- }, z.z.core.$loose>;
54
+ }, z.core.$loose>;
55
+ }, z.core.$loose>>;
56
+ }, z.core.$loose>>;
57
+ }, z.core.$loose>;
58
+ }, z.core.$loose>;
58
59
  export declare const ProductRecommendationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
59
60
  recommendationIdentifier: z.ZodObject<{
60
61
  key: z.ZodString;
61
62
  algorithm: z.ZodString;
62
- }, z.z.core.$loose>;
63
+ }, z.core.$loose>;
63
64
  recommendationReturnType: z.ZodLiteral<"idOnly">;
64
65
  product: z.ZodObject<{
65
66
  key: z.ZodString;
66
- }, z.z.core.$loose>;
67
- }, z.z.core.$loose>, z.ZodObject<{
67
+ }, z.core.$loose>;
68
+ }, z.core.$loose>, z.ZodObject<{
68
69
  recommendationIdentifier: z.ZodObject<{
69
70
  key: z.ZodString;
70
71
  algorithm: z.ZodString;
71
- }, z.z.core.$loose>;
72
+ }, z.core.$loose>;
72
73
  recommendationReturnType: z.ZodLiteral<"productSearchResultItem">;
73
74
  product: z.ZodObject<{
74
75
  identifier: z.ZodObject<{
75
76
  key: z.ZodString;
76
- }, z.z.core.$loose>;
77
+ }, z.core.$loose>;
77
78
  name: z.ZodString;
78
79
  slug: z.ZodString;
79
80
  variants: z.ZodArray<z.ZodObject<{
80
81
  variant: z.ZodObject<{
81
82
  sku: z.ZodString;
82
- }, z.z.core.$loose>;
83
+ }, z.core.$loose>;
83
84
  image: z.ZodObject<{
84
85
  sourceUrl: z.ZodDefault<z.ZodString>;
85
86
  altText: z.ZodDefault<z.ZodString>;
86
87
  width: z.ZodOptional<z.ZodNumber>;
87
88
  height: z.ZodOptional<z.ZodNumber>;
88
- }, z.z.core.$loose>;
89
+ }, z.core.$loose>;
89
90
  options: z.ZodOptional<z.ZodObject<{
90
91
  identifier: z.ZodObject<{
91
92
  key: z.ZodString;
92
- }, z.z.core.$loose>;
93
+ }, z.core.$loose>;
93
94
  name: z.ZodString;
94
95
  value: z.ZodObject<{
95
96
  identifier: z.ZodObject<{
96
97
  option: z.ZodObject<{
97
98
  key: z.ZodString;
98
- }, z.z.core.$loose>;
99
+ }, z.core.$loose>;
99
100
  key: z.ZodString;
100
- }, z.z.core.$loose>;
101
+ }, z.core.$loose>;
101
102
  label: z.ZodString;
102
- }, z.z.core.$loose>;
103
- }, z.z.core.$loose>>;
104
- }, z.z.core.$loose>>;
105
- }, z.z.core.$loose>;
106
- }, z.z.core.$loose>], "recommendationReturnType">;
107
- export type ProductRecommendationIdOnly = z.infer<typeof ProductRecommendationIdOnlySchema>;
108
- export type ProductRecommendationSearchItem = z.infer<typeof ProductRecommendationProductSearchResultItemSchema>;
109
- export type ProductRecommendation = z.infer<typeof ProductRecommendationSchema>;
103
+ }, z.core.$loose>;
104
+ }, z.core.$loose>>;
105
+ }, z.core.$loose>>;
106
+ }, z.core.$loose>;
107
+ }, z.core.$loose>], "recommendationReturnType">;
108
+ export type ProductRecommendationIdOnly = InferType<typeof ProductRecommendationIdOnlySchema>;
109
+ export type ProductRecommendationSearchItem = InferType<typeof ProductRecommendationProductSearchResultItemSchema>;
110
+ export type ProductRecommendation = InferType<typeof ProductRecommendationSchema>;
@@ -1,4 +1,4 @@
1
- import z from 'zod';
1
+ import { z } from 'zod';
2
2
  import type { InferType } from '../../../zod-utils.js';
3
3
  export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
4
  event: z.ZodLiteral<"product-summary-view">;
@@ -9,30 +9,30 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
9
9
  facets: z.ZodArray<z.ZodObject<{
10
10
  facet: z.ZodObject<{
11
11
  key: z.ZodString;
12
- }, z.z.core.$loose>;
12
+ }, z.core.$loose>;
13
13
  key: z.ZodString;
14
- }, z.z.core.$strip>>;
14
+ }, z.core.$strip>>;
15
15
  filters: z.ZodArray<z.ZodString>;
16
16
  paginationOptions: z.ZodObject<{
17
17
  pageNumber: z.ZodDefault<z.ZodNumber>;
18
18
  pageSize: z.ZodDefault<z.ZodNumber>;
19
- }, z.z.core.$loose>;
19
+ }, z.core.$loose>;
20
20
  categoryFilter: z.ZodOptional<z.ZodObject<{
21
21
  facet: z.ZodObject<{
22
22
  key: z.ZodString;
23
- }, z.z.core.$loose>;
23
+ }, z.core.$loose>;
24
24
  key: z.ZodString;
25
- }, z.z.core.$strip>>;
26
- }, z.z.core.$loose>;
27
- }, z.z.core.$strip>], "type">>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$loose>;
27
+ }, z.core.$strip>], "type">>;
28
28
  products: z.ZodArray<z.ZodObject<{
29
29
  key: z.ZodString;
30
- }, z.z.core.$loose>>;
31
- }, z.z.core.$loose>, z.ZodObject<{
30
+ }, z.core.$loose>>;
31
+ }, z.core.$loose>, z.ZodObject<{
32
32
  event: z.ZodLiteral<"product-summary-click">;
33
33
  product: z.ZodObject<{
34
34
  key: z.ZodString;
35
- }, z.z.core.$loose>;
35
+ }, z.core.$loose>;
36
36
  source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
37
37
  type: z.ZodLiteral<"search">;
38
38
  identifier: z.ZodObject<{
@@ -40,29 +40,29 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
40
40
  facets: z.ZodArray<z.ZodObject<{
41
41
  facet: z.ZodObject<{
42
42
  key: z.ZodString;
43
- }, z.z.core.$loose>;
43
+ }, z.core.$loose>;
44
44
  key: z.ZodString;
45
- }, z.z.core.$strip>>;
45
+ }, z.core.$strip>>;
46
46
  filters: z.ZodArray<z.ZodString>;
47
47
  paginationOptions: z.ZodObject<{
48
48
  pageNumber: z.ZodDefault<z.ZodNumber>;
49
49
  pageSize: z.ZodDefault<z.ZodNumber>;
50
- }, z.z.core.$loose>;
50
+ }, z.core.$loose>;
51
51
  categoryFilter: z.ZodOptional<z.ZodObject<{
52
52
  facet: z.ZodObject<{
53
53
  key: z.ZodString;
54
- }, z.z.core.$loose>;
54
+ }, z.core.$loose>;
55
55
  key: z.ZodString;
56
- }, z.z.core.$strip>>;
57
- }, z.z.core.$loose>;
58
- }, z.z.core.$strip>], "type">>;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$loose>;
58
+ }, z.core.$strip>], "type">>;
59
59
  position: z.ZodNumber;
60
- }, z.z.core.$loose>, z.ZodObject<{
60
+ }, z.core.$loose>, z.ZodObject<{
61
61
  event: z.ZodLiteral<"product-details-view">;
62
62
  product: z.ZodObject<{
63
63
  key: z.ZodString;
64
- }, z.z.core.$loose>;
65
- }, z.z.core.$loose>, z.ZodObject<{
64
+ }, z.core.$loose>;
65
+ }, z.core.$loose>, z.ZodObject<{
66
66
  event: z.ZodLiteral<"product-cart-add">;
67
67
  source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
68
68
  type: z.ZodLiteral<"search">;
@@ -71,41 +71,41 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
71
71
  facets: z.ZodArray<z.ZodObject<{
72
72
  facet: z.ZodObject<{
73
73
  key: z.ZodString;
74
- }, z.z.core.$loose>;
74
+ }, z.core.$loose>;
75
75
  key: z.ZodString;
76
- }, z.z.core.$strip>>;
76
+ }, z.core.$strip>>;
77
77
  filters: z.ZodArray<z.ZodString>;
78
78
  paginationOptions: z.ZodObject<{
79
79
  pageNumber: z.ZodDefault<z.ZodNumber>;
80
80
  pageSize: z.ZodDefault<z.ZodNumber>;
81
- }, z.z.core.$loose>;
81
+ }, z.core.$loose>;
82
82
  categoryFilter: z.ZodOptional<z.ZodObject<{
83
83
  facet: z.ZodObject<{
84
84
  key: z.ZodString;
85
- }, z.z.core.$loose>;
85
+ }, z.core.$loose>;
86
86
  key: z.ZodString;
87
- }, z.z.core.$strip>>;
88
- }, z.z.core.$loose>;
89
- }, z.z.core.$strip>], "type">>;
87
+ }, z.core.$strip>>;
88
+ }, z.core.$loose>;
89
+ }, z.core.$strip>], "type">>;
90
90
  product: z.ZodObject<{
91
91
  key: z.ZodString;
92
- }, z.z.core.$loose>;
93
- }, z.z.core.$loose>, z.ZodObject<{
92
+ }, z.core.$loose>;
93
+ }, z.core.$loose>, z.ZodObject<{
94
94
  event: z.ZodLiteral<"purchase">;
95
95
  order: z.ZodObject<{
96
96
  identifier: z.ZodObject<{
97
97
  key: z.ZodString;
98
- }, z.z.core.$loose>;
98
+ }, z.core.$loose>;
99
99
  userId: z.ZodObject<{
100
100
  userId: z.ZodString;
101
- }, z.z.core.$loose>;
101
+ }, z.core.$loose>;
102
102
  items: z.ZodArray<z.ZodObject<{
103
103
  identifier: z.ZodObject<{
104
104
  key: z.ZodString;
105
- }, z.z.core.$loose>;
105
+ }, z.core.$loose>;
106
106
  variant: z.ZodObject<{
107
107
  sku: z.ZodString;
108
- }, z.z.core.$loose>;
108
+ }, z.core.$loose>;
109
109
  quantity: z.ZodNumber;
110
110
  price: z.ZodObject<{
111
111
  unitPrice: z.ZodDefault<z.ZodObject<{
@@ -293,7 +293,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
293
293
  ZMW: "ZMW";
294
294
  ZWL: "ZWL";
295
295
  }>;
296
- }, z.z.core.$loose>>;
296
+ }, z.core.$loose>>;
297
297
  unitDiscount: z.ZodDefault<z.ZodObject<{
298
298
  value: z.ZodNumber;
299
299
  currency: z.ZodEnum<{
@@ -479,7 +479,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
479
479
  ZMW: "ZMW";
480
480
  ZWL: "ZWL";
481
481
  }>;
482
- }, z.z.core.$loose>>;
482
+ }, z.core.$loose>>;
483
483
  totalPrice: z.ZodDefault<z.ZodObject<{
484
484
  value: z.ZodNumber;
485
485
  currency: z.ZodEnum<{
@@ -665,7 +665,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
665
665
  ZMW: "ZMW";
666
666
  ZWL: "ZWL";
667
667
  }>;
668
- }, z.z.core.$loose>>;
668
+ }, z.core.$loose>>;
669
669
  totalDiscount: z.ZodDefault<z.ZodObject<{
670
670
  value: z.ZodNumber;
671
671
  currency: z.ZodEnum<{
@@ -851,15 +851,15 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
851
851
  ZMW: "ZMW";
852
852
  ZWL: "ZWL";
853
853
  }>;
854
- }, z.z.core.$loose>>;
855
- }, z.z.core.$loose>;
854
+ }, z.core.$loose>>;
855
+ }, z.core.$loose>;
856
856
  inventoryStatus: z.ZodEnum<{
857
857
  NotAllocated: "NotAllocated";
858
858
  Allocated: "Allocated";
859
859
  Backordered: "Backordered";
860
860
  Preordered: "Preordered";
861
861
  }>;
862
- }, z.z.core.$loose>>;
862
+ }, z.core.$loose>>;
863
863
  price: z.ZodObject<{
864
864
  totalTax: z.ZodDefault<z.ZodObject<{
865
865
  value: z.ZodNumber;
@@ -1046,7 +1046,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1046
1046
  ZMW: "ZMW";
1047
1047
  ZWL: "ZWL";
1048
1048
  }>;
1049
- }, z.z.core.$loose>>;
1049
+ }, z.core.$loose>>;
1050
1050
  totalDiscount: z.ZodDefault<z.ZodObject<{
1051
1051
  value: z.ZodNumber;
1052
1052
  currency: z.ZodEnum<{
@@ -1232,7 +1232,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1232
1232
  ZMW: "ZMW";
1233
1233
  ZWL: "ZWL";
1234
1234
  }>;
1235
- }, z.z.core.$loose>>;
1235
+ }, z.core.$loose>>;
1236
1236
  totalSurcharge: z.ZodDefault<z.ZodObject<{
1237
1237
  value: z.ZodNumber;
1238
1238
  currency: z.ZodEnum<{
@@ -1418,7 +1418,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1418
1418
  ZMW: "ZMW";
1419
1419
  ZWL: "ZWL";
1420
1420
  }>;
1421
- }, z.z.core.$loose>>;
1421
+ }, z.core.$loose>>;
1422
1422
  totalShipping: z.ZodDefault<z.ZodObject<{
1423
1423
  value: z.ZodNumber;
1424
1424
  currency: z.ZodEnum<{
@@ -1604,7 +1604,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1604
1604
  ZMW: "ZMW";
1605
1605
  ZWL: "ZWL";
1606
1606
  }>;
1607
- }, z.z.core.$loose>>;
1607
+ }, z.core.$loose>>;
1608
1608
  totalProductPrice: z.ZodDefault<z.ZodObject<{
1609
1609
  value: z.ZodNumber;
1610
1610
  currency: z.ZodEnum<{
@@ -1790,7 +1790,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1790
1790
  ZMW: "ZMW";
1791
1791
  ZWL: "ZWL";
1792
1792
  }>;
1793
- }, z.z.core.$loose>>;
1793
+ }, z.core.$loose>>;
1794
1794
  grandTotal: z.ZodDefault<z.ZodObject<{
1795
1795
  value: z.ZodNumber;
1796
1796
  currency: z.ZodEnum<{
@@ -1976,14 +1976,14 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1976
1976
  ZMW: "ZMW";
1977
1977
  ZWL: "ZWL";
1978
1978
  }>;
1979
- }, z.z.core.$loose>>;
1980
- }, z.z.core.$loose>;
1979
+ }, z.core.$loose>>;
1980
+ }, z.core.$loose>;
1981
1981
  name: z.ZodOptional<z.ZodString>;
1982
1982
  description: z.ZodOptional<z.ZodString>;
1983
1983
  shippingAddress: z.ZodOptional<z.ZodObject<{
1984
1984
  identifier: z.ZodDefault<z.ZodObject<{
1985
1985
  nickName: z.ZodString;
1986
- }, z.z.core.$loose>>;
1986
+ }, z.core.$loose>>;
1987
1987
  firstName: z.ZodString;
1988
1988
  lastName: z.ZodString;
1989
1989
  streetAddress: z.ZodString;
@@ -1992,11 +1992,11 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
1992
1992
  region: z.ZodString;
1993
1993
  postalCode: z.ZodString;
1994
1994
  countryCode: z.ZodString;
1995
- }, z.z.core.$loose>>;
1995
+ }, z.core.$loose>>;
1996
1996
  billingAddress: z.ZodOptional<z.ZodObject<{
1997
1997
  identifier: z.ZodDefault<z.ZodObject<{
1998
1998
  nickName: z.ZodString;
1999
- }, z.z.core.$loose>>;
1999
+ }, z.core.$loose>>;
2000
2000
  firstName: z.ZodString;
2001
2001
  lastName: z.ZodString;
2002
2002
  streetAddress: z.ZodString;
@@ -2005,11 +2005,11 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2005
2005
  region: z.ZodString;
2006
2006
  postalCode: z.ZodString;
2007
2007
  countryCode: z.ZodString;
2008
- }, z.z.core.$loose>>;
2008
+ }, z.core.$loose>>;
2009
2009
  shippingMethod: z.ZodOptional<z.ZodObject<{
2010
2010
  identifier: z.ZodObject<{
2011
2011
  key: z.ZodString;
2012
- }, z.z.core.$loose>;
2012
+ }, z.core.$loose>;
2013
2013
  name: z.ZodString;
2014
2014
  description: z.ZodString;
2015
2015
  logo: z.ZodOptional<z.ZodObject<{
@@ -2017,7 +2017,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2017
2017
  altText: z.ZodDefault<z.ZodString>;
2018
2018
  width: z.ZodOptional<z.ZodNumber>;
2019
2019
  height: z.ZodOptional<z.ZodNumber>;
2020
- }, z.z.core.$loose>>;
2020
+ }, z.core.$loose>>;
2021
2021
  price: z.ZodObject<{
2022
2022
  value: z.ZodNumber;
2023
2023
  currency: z.ZodEnum<{
@@ -2203,10 +2203,10 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2203
2203
  ZMW: "ZMW";
2204
2204
  ZWL: "ZWL";
2205
2205
  }>;
2206
- }, z.z.core.$loose>;
2206
+ }, z.core.$loose>;
2207
2207
  deliveryTime: z.ZodString;
2208
2208
  carrier: z.ZodOptional<z.ZodString>;
2209
- }, z.z.core.$loose>>;
2209
+ }, z.core.$loose>>;
2210
2210
  orderStatus: z.ZodEnum<{
2211
2211
  AwaitingPayment: "AwaitingPayment";
2212
2212
  ReleasedToFulfillment: "ReleasedToFulfillment";
@@ -2222,7 +2222,7 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2222
2222
  paymentInstructions: z.ZodArray<z.ZodObject<{
2223
2223
  identifier: z.ZodObject<{
2224
2224
  key: z.ZodString;
2225
- }, z.z.core.$loose>;
2225
+ }, z.core.$loose>;
2226
2226
  amount: z.ZodObject<{
2227
2227
  value: z.ZodNumber;
2228
2228
  currency: z.ZodEnum<{
@@ -2408,16 +2408,16 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2408
2408
  ZMW: "ZMW";
2409
2409
  ZWL: "ZWL";
2410
2410
  }>;
2411
- }, z.z.core.$loose>;
2411
+ }, z.core.$loose>;
2412
2412
  paymentMethod: z.ZodObject<{
2413
2413
  method: z.ZodString;
2414
2414
  name: z.ZodString;
2415
2415
  paymentProcessor: z.ZodString;
2416
- }, z.z.core.$loose>;
2416
+ }, z.core.$loose>;
2417
2417
  protocolData: z.ZodArray<z.ZodObject<{
2418
2418
  key: z.ZodString;
2419
2419
  value: z.ZodString;
2420
- }, z.z.core.$loose>>;
2420
+ }, z.core.$loose>>;
2421
2421
  status: z.ZodEnum<{
2422
2422
  pending: "pending";
2423
2423
  authorized: "authorized";
@@ -2427,12 +2427,12 @@ export declare const AnalyticsMutationSchema: z.ZodDiscriminatedUnion<[z.ZodObje
2427
2427
  refunded: "refunded";
2428
2428
  partial_refund: "partial_refund";
2429
2429
  }>;
2430
- }, z.z.core.$loose>>;
2430
+ }, z.core.$loose>>;
2431
2431
  cartReference: z.ZodOptional<z.ZodObject<{
2432
2432
  key: z.ZodString;
2433
- }, z.z.core.$loose>>;
2434
- }, z.z.core.$loose>;
2435
- }, z.z.core.$loose>], "event">;
2433
+ }, z.core.$loose>>;
2434
+ }, z.core.$loose>;
2435
+ }, z.core.$loose>], "event">;
2436
2436
  export type AnalyticsMutation = InferType<typeof AnalyticsMutationSchema>;
2437
2437
  export * from './product-add-to-cart.mutation.js';
2438
2438
  export * from './product-details-view.mutation.js';
@@ -1,4 +1,4 @@
1
- import z from 'zod';
1
+ import { z } from 'zod';
2
2
  import type { InferType } from '../../../zod-utils.js';
3
3
  export declare const AnalyticsMutationProductAddToCartEventSchema: z.ZodObject<{
4
4
  event: z.ZodLiteral<"product-cart-add">;
@@ -9,24 +9,24 @@ export declare const AnalyticsMutationProductAddToCartEventSchema: z.ZodObject<{
9
9
  facets: z.ZodArray<z.ZodObject<{
10
10
  facet: z.ZodObject<{
11
11
  key: z.ZodString;
12
- }, z.z.core.$loose>;
12
+ }, z.core.$loose>;
13
13
  key: z.ZodString;
14
- }, z.z.core.$strip>>;
14
+ }, z.core.$strip>>;
15
15
  filters: z.ZodArray<z.ZodString>;
16
16
  paginationOptions: z.ZodObject<{
17
17
  pageNumber: z.ZodDefault<z.ZodNumber>;
18
18
  pageSize: z.ZodDefault<z.ZodNumber>;
19
- }, z.z.core.$loose>;
19
+ }, z.core.$loose>;
20
20
  categoryFilter: z.ZodOptional<z.ZodObject<{
21
21
  facet: z.ZodObject<{
22
22
  key: z.ZodString;
23
- }, z.z.core.$loose>;
23
+ }, z.core.$loose>;
24
24
  key: z.ZodString;
25
- }, z.z.core.$strip>>;
26
- }, z.z.core.$loose>;
27
- }, z.z.core.$strip>], "type">>;
25
+ }, z.core.$strip>>;
26
+ }, z.core.$loose>;
27
+ }, z.core.$strip>], "type">>;
28
28
  product: z.ZodObject<{
29
29
  key: z.ZodString;
30
- }, z.z.core.$loose>;
31
- }, z.z.core.$loose>;
30
+ }, z.core.$loose>;
31
+ }, z.core.$loose>;
32
32
  export type AnalyticsMutationProductAddToCartEvent = InferType<typeof AnalyticsMutationProductAddToCartEventSchema>;
@@ -1,9 +1,9 @@
1
- import z from 'zod';
1
+ import { z } from 'zod';
2
2
  import type { InferType } from '../../../zod-utils.js';
3
3
  export declare const AnalyticsMutationProductDetailsViewEventSchema: z.ZodObject<{
4
4
  event: z.ZodLiteral<"product-details-view">;
5
5
  product: z.ZodObject<{
6
6
  key: z.ZodString;
7
- }, z.z.core.$loose>;
8
- }, z.z.core.$loose>;
7
+ }, z.core.$loose>;
8
+ }, z.core.$loose>;
9
9
  export type AnalyticsMutationProductDetailsViewEvent = InferType<typeof AnalyticsMutationProductDetailsViewEventSchema>;
@@ -1,21 +1,21 @@
1
- import z from 'zod';
1
+ import { z } from 'zod';
2
2
  import type { InferType } from '../../../zod-utils.js';
3
3
  export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
4
4
  event: z.ZodLiteral<"purchase">;
5
5
  order: z.ZodObject<{
6
6
  identifier: z.ZodObject<{
7
7
  key: z.ZodString;
8
- }, z.z.core.$loose>;
8
+ }, z.core.$loose>;
9
9
  userId: z.ZodObject<{
10
10
  userId: z.ZodString;
11
- }, z.z.core.$loose>;
11
+ }, z.core.$loose>;
12
12
  items: z.ZodArray<z.ZodObject<{
13
13
  identifier: z.ZodObject<{
14
14
  key: z.ZodString;
15
- }, z.z.core.$loose>;
15
+ }, z.core.$loose>;
16
16
  variant: z.ZodObject<{
17
17
  sku: z.ZodString;
18
- }, z.z.core.$loose>;
18
+ }, z.core.$loose>;
19
19
  quantity: z.ZodNumber;
20
20
  price: z.ZodObject<{
21
21
  unitPrice: z.ZodDefault<z.ZodObject<{
@@ -203,7 +203,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
203
203
  ZMW: "ZMW";
204
204
  ZWL: "ZWL";
205
205
  }>;
206
- }, z.z.core.$loose>>;
206
+ }, z.core.$loose>>;
207
207
  unitDiscount: z.ZodDefault<z.ZodObject<{
208
208
  value: z.ZodNumber;
209
209
  currency: z.ZodEnum<{
@@ -389,7 +389,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
389
389
  ZMW: "ZMW";
390
390
  ZWL: "ZWL";
391
391
  }>;
392
- }, z.z.core.$loose>>;
392
+ }, z.core.$loose>>;
393
393
  totalPrice: z.ZodDefault<z.ZodObject<{
394
394
  value: z.ZodNumber;
395
395
  currency: z.ZodEnum<{
@@ -575,7 +575,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
575
575
  ZMW: "ZMW";
576
576
  ZWL: "ZWL";
577
577
  }>;
578
- }, z.z.core.$loose>>;
578
+ }, z.core.$loose>>;
579
579
  totalDiscount: z.ZodDefault<z.ZodObject<{
580
580
  value: z.ZodNumber;
581
581
  currency: z.ZodEnum<{
@@ -761,15 +761,15 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
761
761
  ZMW: "ZMW";
762
762
  ZWL: "ZWL";
763
763
  }>;
764
- }, z.z.core.$loose>>;
765
- }, z.z.core.$loose>;
764
+ }, z.core.$loose>>;
765
+ }, z.core.$loose>;
766
766
  inventoryStatus: z.ZodEnum<{
767
767
  NotAllocated: "NotAllocated";
768
768
  Allocated: "Allocated";
769
769
  Backordered: "Backordered";
770
770
  Preordered: "Preordered";
771
771
  }>;
772
- }, z.z.core.$loose>>;
772
+ }, z.core.$loose>>;
773
773
  price: z.ZodObject<{
774
774
  totalTax: z.ZodDefault<z.ZodObject<{
775
775
  value: z.ZodNumber;
@@ -956,7 +956,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
956
956
  ZMW: "ZMW";
957
957
  ZWL: "ZWL";
958
958
  }>;
959
- }, z.z.core.$loose>>;
959
+ }, z.core.$loose>>;
960
960
  totalDiscount: z.ZodDefault<z.ZodObject<{
961
961
  value: z.ZodNumber;
962
962
  currency: z.ZodEnum<{
@@ -1142,7 +1142,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1142
1142
  ZMW: "ZMW";
1143
1143
  ZWL: "ZWL";
1144
1144
  }>;
1145
- }, z.z.core.$loose>>;
1145
+ }, z.core.$loose>>;
1146
1146
  totalSurcharge: z.ZodDefault<z.ZodObject<{
1147
1147
  value: z.ZodNumber;
1148
1148
  currency: z.ZodEnum<{
@@ -1328,7 +1328,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1328
1328
  ZMW: "ZMW";
1329
1329
  ZWL: "ZWL";
1330
1330
  }>;
1331
- }, z.z.core.$loose>>;
1331
+ }, z.core.$loose>>;
1332
1332
  totalShipping: z.ZodDefault<z.ZodObject<{
1333
1333
  value: z.ZodNumber;
1334
1334
  currency: z.ZodEnum<{
@@ -1514,7 +1514,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1514
1514
  ZMW: "ZMW";
1515
1515
  ZWL: "ZWL";
1516
1516
  }>;
1517
- }, z.z.core.$loose>>;
1517
+ }, z.core.$loose>>;
1518
1518
  totalProductPrice: z.ZodDefault<z.ZodObject<{
1519
1519
  value: z.ZodNumber;
1520
1520
  currency: z.ZodEnum<{
@@ -1700,7 +1700,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1700
1700
  ZMW: "ZMW";
1701
1701
  ZWL: "ZWL";
1702
1702
  }>;
1703
- }, z.z.core.$loose>>;
1703
+ }, z.core.$loose>>;
1704
1704
  grandTotal: z.ZodDefault<z.ZodObject<{
1705
1705
  value: z.ZodNumber;
1706
1706
  currency: z.ZodEnum<{
@@ -1886,14 +1886,14 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1886
1886
  ZMW: "ZMW";
1887
1887
  ZWL: "ZWL";
1888
1888
  }>;
1889
- }, z.z.core.$loose>>;
1890
- }, z.z.core.$loose>;
1889
+ }, z.core.$loose>>;
1890
+ }, z.core.$loose>;
1891
1891
  name: z.ZodOptional<z.ZodString>;
1892
1892
  description: z.ZodOptional<z.ZodString>;
1893
1893
  shippingAddress: z.ZodOptional<z.ZodObject<{
1894
1894
  identifier: z.ZodDefault<z.ZodObject<{
1895
1895
  nickName: z.ZodString;
1896
- }, z.z.core.$loose>>;
1896
+ }, z.core.$loose>>;
1897
1897
  firstName: z.ZodString;
1898
1898
  lastName: z.ZodString;
1899
1899
  streetAddress: z.ZodString;
@@ -1902,11 +1902,11 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1902
1902
  region: z.ZodString;
1903
1903
  postalCode: z.ZodString;
1904
1904
  countryCode: z.ZodString;
1905
- }, z.z.core.$loose>>;
1905
+ }, z.core.$loose>>;
1906
1906
  billingAddress: z.ZodOptional<z.ZodObject<{
1907
1907
  identifier: z.ZodDefault<z.ZodObject<{
1908
1908
  nickName: z.ZodString;
1909
- }, z.z.core.$loose>>;
1909
+ }, z.core.$loose>>;
1910
1910
  firstName: z.ZodString;
1911
1911
  lastName: z.ZodString;
1912
1912
  streetAddress: z.ZodString;
@@ -1915,11 +1915,11 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1915
1915
  region: z.ZodString;
1916
1916
  postalCode: z.ZodString;
1917
1917
  countryCode: z.ZodString;
1918
- }, z.z.core.$loose>>;
1918
+ }, z.core.$loose>>;
1919
1919
  shippingMethod: z.ZodOptional<z.ZodObject<{
1920
1920
  identifier: z.ZodObject<{
1921
1921
  key: z.ZodString;
1922
- }, z.z.core.$loose>;
1922
+ }, z.core.$loose>;
1923
1923
  name: z.ZodString;
1924
1924
  description: z.ZodString;
1925
1925
  logo: z.ZodOptional<z.ZodObject<{
@@ -1927,7 +1927,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
1927
1927
  altText: z.ZodDefault<z.ZodString>;
1928
1928
  width: z.ZodOptional<z.ZodNumber>;
1929
1929
  height: z.ZodOptional<z.ZodNumber>;
1930
- }, z.z.core.$loose>>;
1930
+ }, z.core.$loose>>;
1931
1931
  price: z.ZodObject<{
1932
1932
  value: z.ZodNumber;
1933
1933
  currency: z.ZodEnum<{
@@ -2113,10 +2113,10 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
2113
2113
  ZMW: "ZMW";
2114
2114
  ZWL: "ZWL";
2115
2115
  }>;
2116
- }, z.z.core.$loose>;
2116
+ }, z.core.$loose>;
2117
2117
  deliveryTime: z.ZodString;
2118
2118
  carrier: z.ZodOptional<z.ZodString>;
2119
- }, z.z.core.$loose>>;
2119
+ }, z.core.$loose>>;
2120
2120
  orderStatus: z.ZodEnum<{
2121
2121
  AwaitingPayment: "AwaitingPayment";
2122
2122
  ReleasedToFulfillment: "ReleasedToFulfillment";
@@ -2132,7 +2132,7 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
2132
2132
  paymentInstructions: z.ZodArray<z.ZodObject<{
2133
2133
  identifier: z.ZodObject<{
2134
2134
  key: z.ZodString;
2135
- }, z.z.core.$loose>;
2135
+ }, z.core.$loose>;
2136
2136
  amount: z.ZodObject<{
2137
2137
  value: z.ZodNumber;
2138
2138
  currency: z.ZodEnum<{
@@ -2318,16 +2318,16 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
2318
2318
  ZMW: "ZMW";
2319
2319
  ZWL: "ZWL";
2320
2320
  }>;
2321
- }, z.z.core.$loose>;
2321
+ }, z.core.$loose>;
2322
2322
  paymentMethod: z.ZodObject<{
2323
2323
  method: z.ZodString;
2324
2324
  name: z.ZodString;
2325
2325
  paymentProcessor: z.ZodString;
2326
- }, z.z.core.$loose>;
2326
+ }, z.core.$loose>;
2327
2327
  protocolData: z.ZodArray<z.ZodObject<{
2328
2328
  key: z.ZodString;
2329
2329
  value: z.ZodString;
2330
- }, z.z.core.$loose>>;
2330
+ }, z.core.$loose>>;
2331
2331
  status: z.ZodEnum<{
2332
2332
  pending: "pending";
2333
2333
  authorized: "authorized";
@@ -2337,10 +2337,10 @@ export declare const AnalyticsMutationPurchaseEventSchema: z.ZodObject<{
2337
2337
  refunded: "refunded";
2338
2338
  partial_refund: "partial_refund";
2339
2339
  }>;
2340
- }, z.z.core.$loose>>;
2340
+ }, z.core.$loose>>;
2341
2341
  cartReference: z.ZodOptional<z.ZodObject<{
2342
2342
  key: z.ZodString;
2343
- }, z.z.core.$loose>>;
2344
- }, z.z.core.$loose>;
2345
- }, z.z.core.$loose>;
2343
+ }, z.core.$loose>>;
2344
+ }, z.core.$loose>;
2345
+ }, z.core.$loose>;
2346
2346
  export type AnalyticsMutationPurchaseEvent = InferType<typeof AnalyticsMutationPurchaseEventSchema>;
@@ -1,20 +1,20 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  export declare const ProductAssociationsGetAccessoriesQuerySchema: z.ZodObject<{
3
3
  forProductVariant: z.ZodObject<{
4
4
  sku: z.ZodString;
5
- }, z.z.core.$loose>;
5
+ }, z.core.$loose>;
6
6
  numberOfAccessories: z.ZodNumber;
7
- }, z.z.core.$loose>;
7
+ }, z.core.$loose>;
8
8
  export declare const ProductAssociationsGetSparepartsQuerySchema: z.ZodObject<{
9
9
  forProductVariant: z.ZodObject<{
10
10
  sku: z.ZodString;
11
- }, z.z.core.$loose>;
12
- }, z.z.core.$loose>;
11
+ }, z.core.$loose>;
12
+ }, z.core.$loose>;
13
13
  export declare const ProductAssociationsGetReplacementsQuerySchema: z.ZodObject<{
14
14
  forProductVariant: z.ZodObject<{
15
15
  sku: z.ZodString;
16
- }, z.z.core.$loose>;
17
- }, z.z.core.$loose>;
16
+ }, z.core.$loose>;
17
+ }, z.core.$loose>;
18
18
  export type ProductAssociationsGetAccessoriesQuery = z.infer<typeof ProductAssociationsGetAccessoriesQuerySchema>;
19
19
  export type ProductAssociationsGetSparepartsQuery = z.infer<typeof ProductAssociationsGetSparepartsQuerySchema>;
20
20
  export type ProductAssociationsGetReplacementsQuery = z.infer<typeof ProductAssociationsGetReplacementsQuerySchema>;
@@ -1,121 +1,121 @@
1
- import z from "zod";
1
+ import { z } from "zod";
2
2
  import type { InferType } from "../../zod-utils.js";
3
3
  export declare const ProductRecommendationBaseQuerySchema: z.ZodObject<{
4
4
  numberOfRecommendations: z.ZodNumber;
5
5
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
6
- }, z.z.core.$loose>;
6
+ }, z.core.$loose>;
7
7
  export declare const ProductRecommendationsByCollectionQuerySchema: z.ZodObject<{
8
8
  numberOfRecommendations: z.ZodNumber;
9
9
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
10
  collectionName: z.ZodString;
11
11
  sourceProduct: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
12
  key: z.ZodString;
13
- }, z.z.core.$loose>>>;
13
+ }, z.core.$loose>>>;
14
14
  sourceCategory: z.ZodOptional<z.ZodObject<{
15
15
  key: z.ZodString;
16
- }, z.z.core.$loose>>;
17
- }, z.z.core.$loose>;
16
+ }, z.core.$loose>>;
17
+ }, z.core.$loose>;
18
18
  export declare const ProductRecommendationProductBasedBaseQuerySchema: z.ZodObject<{
19
19
  numberOfRecommendations: z.ZodNumber;
20
20
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
21
21
  sourceProduct: z.ZodObject<{
22
22
  key: z.ZodString;
23
- }, z.z.core.$loose>;
24
- }, z.z.core.$loose>;
23
+ }, z.core.$loose>;
24
+ }, z.core.$loose>;
25
25
  export declare const ProductRecommendationAlgorithmFrequentlyBoughtTogetherQuerySchema: z.ZodObject<{
26
26
  numberOfRecommendations: z.ZodNumber;
27
27
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
28
  sourceProduct: z.ZodObject<{
29
29
  key: z.ZodString;
30
- }, z.z.core.$loose>;
30
+ }, z.core.$loose>;
31
31
  algorithm: z.ZodLiteral<"frequentlyBoughtTogether">;
32
- }, z.z.core.$loose>;
32
+ }, z.core.$loose>;
33
33
  export declare const ProductRecommendationAlgorithmSimilarProductsQuerySchema: z.ZodObject<{
34
34
  numberOfRecommendations: z.ZodNumber;
35
35
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
36
  sourceProduct: z.ZodObject<{
37
37
  key: z.ZodString;
38
- }, z.z.core.$loose>;
38
+ }, z.core.$loose>;
39
39
  algorithm: z.ZodLiteral<"similar">;
40
- }, z.z.core.$loose>;
40
+ }, z.core.$loose>;
41
41
  export declare const ProductRecommendationAlgorithmRelatedProductsQuerySchema: z.ZodObject<{
42
42
  numberOfRecommendations: z.ZodNumber;
43
43
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
44
44
  sourceProduct: z.ZodObject<{
45
45
  key: z.ZodString;
46
- }, z.z.core.$loose>;
46
+ }, z.core.$loose>;
47
47
  algorithm: z.ZodLiteral<"related">;
48
- }, z.z.core.$loose>;
48
+ }, z.core.$loose>;
49
49
  export declare const ProductRecommendationAlgorithmTrendingInCategoryQuerySchema: z.ZodObject<{
50
50
  numberOfRecommendations: z.ZodNumber;
51
51
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
52
52
  algorithm: z.ZodLiteral<"trendingInCategory">;
53
53
  sourceCategory: z.ZodObject<{
54
54
  key: z.ZodString;
55
- }, z.z.core.$loose>;
56
- }, z.z.core.$loose>;
55
+ }, z.core.$loose>;
56
+ }, z.core.$loose>;
57
57
  export declare const ProductRecommendationAlgorithmPopuplarProductsQuerySchema: z.ZodObject<{
58
58
  numberOfRecommendations: z.ZodNumber;
59
59
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
60
  algorithm: z.ZodLiteral<"popular">;
61
- }, z.z.core.$loose>;
61
+ }, z.core.$loose>;
62
62
  export declare const ProductRecommendationAlgorithmTopPicksProductsQuerySchema: z.ZodObject<{
63
63
  numberOfRecommendations: z.ZodNumber;
64
64
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
65
65
  algorithm: z.ZodLiteral<"topPicks">;
66
- }, z.z.core.$loose>;
66
+ }, z.core.$loose>;
67
67
  export declare const ProductRecommendationAlgorithmAlsoViewedProductsQuerySchema: z.ZodObject<{
68
68
  numberOfRecommendations: z.ZodNumber;
69
69
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
70
70
  sourceProduct: z.ZodObject<{
71
71
  key: z.ZodString;
72
- }, z.z.core.$loose>;
72
+ }, z.core.$loose>;
73
73
  algorithm: z.ZodLiteral<"alsoViewed">;
74
- }, z.z.core.$loose>;
74
+ }, z.core.$loose>;
75
75
  export declare const ProductRecommendationsQuerySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
76
76
  numberOfRecommendations: z.ZodNumber;
77
77
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
78
  sourceProduct: z.ZodObject<{
79
79
  key: z.ZodString;
80
- }, z.z.core.$loose>;
80
+ }, z.core.$loose>;
81
81
  algorithm: z.ZodLiteral<"frequentlyBoughtTogether">;
82
- }, z.z.core.$loose>, z.ZodObject<{
82
+ }, z.core.$loose>, z.ZodObject<{
83
83
  numberOfRecommendations: z.ZodNumber;
84
84
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
85
85
  algorithm: z.ZodLiteral<"trendingInCategory">;
86
86
  sourceCategory: z.ZodObject<{
87
87
  key: z.ZodString;
88
- }, z.z.core.$loose>;
89
- }, z.z.core.$loose>, z.ZodObject<{
88
+ }, z.core.$loose>;
89
+ }, z.core.$loose>, z.ZodObject<{
90
90
  numberOfRecommendations: z.ZodNumber;
91
91
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
92
92
  sourceProduct: z.ZodObject<{
93
93
  key: z.ZodString;
94
- }, z.z.core.$loose>;
94
+ }, z.core.$loose>;
95
95
  algorithm: z.ZodLiteral<"similar">;
96
- }, z.z.core.$loose>, z.ZodObject<{
96
+ }, z.core.$loose>, z.ZodObject<{
97
97
  numberOfRecommendations: z.ZodNumber;
98
98
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
99
  sourceProduct: z.ZodObject<{
100
100
  key: z.ZodString;
101
- }, z.z.core.$loose>;
101
+ }, z.core.$loose>;
102
102
  algorithm: z.ZodLiteral<"related">;
103
- }, z.z.core.$loose>, z.ZodObject<{
103
+ }, z.core.$loose>, z.ZodObject<{
104
104
  numberOfRecommendations: z.ZodNumber;
105
105
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
106
106
  algorithm: z.ZodLiteral<"popular">;
107
- }, z.z.core.$loose>, z.ZodObject<{
107
+ }, z.core.$loose>, z.ZodObject<{
108
108
  numberOfRecommendations: z.ZodNumber;
109
109
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
110
110
  algorithm: z.ZodLiteral<"topPicks">;
111
- }, z.z.core.$loose>, z.ZodObject<{
111
+ }, z.core.$loose>, z.ZodObject<{
112
112
  numberOfRecommendations: z.ZodNumber;
113
113
  labels: z.ZodOptional<z.ZodArray<z.ZodString>>;
114
114
  sourceProduct: z.ZodObject<{
115
115
  key: z.ZodString;
116
- }, z.z.core.$loose>;
116
+ }, z.core.$loose>;
117
117
  algorithm: z.ZodLiteral<"alsoViewed">;
118
- }, z.z.core.$loose>], "algorithm">;
118
+ }, z.core.$loose>], "algorithm">;
119
119
  export type ProductRecommendationsQuery = InferType<typeof ProductRecommendationsQuerySchema>;
120
120
  export type ProductRecommendationsByCollectionQuery = InferType<typeof ProductRecommendationsByCollectionQuerySchema>;
121
121
  export type ProductRecommendationAlgorithmTopPicksProductsQuery = InferType<typeof ProductRecommendationAlgorithmTopPicksProductsQuerySchema>;