@reactionary/core 0.3.9 → 0.3.11

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 (106) hide show
  1. package/decorators/reactionary.decorator.js +1 -1
  2. package/package.json +1 -1
  3. package/schemas/capabilities.schema.js +1 -1
  4. package/schemas/errors/generic.error.js +1 -1
  5. package/schemas/errors/invalid-input.error.js +1 -1
  6. package/schemas/errors/invalid-output.error.js +1 -1
  7. package/schemas/errors/not-found.error.js +1 -1
  8. package/schemas/models/base.model.js +11 -11
  9. package/schemas/models/cart.model.js +1 -1
  10. package/schemas/models/category.model.js +1 -1
  11. package/schemas/models/checkout.model.js +2 -2
  12. package/schemas/models/cost.model.js +1 -1
  13. package/schemas/models/currency.model.js +1 -1
  14. package/schemas/models/identifiers.model.js +16 -16
  15. package/schemas/models/identity.model.js +1 -1
  16. package/schemas/models/inventory.model.js +1 -1
  17. package/schemas/models/order-search.model.js +1 -1
  18. package/schemas/models/order.model.js +1 -1
  19. package/schemas/models/payment.model.js +2 -2
  20. package/schemas/models/price.model.js +3 -3
  21. package/schemas/models/product-recommendations.model.js +3 -3
  22. package/schemas/models/product-search.model.js +2 -2
  23. package/schemas/models/product.model.js +24 -24
  24. package/schemas/models/profile.model.js +1 -1
  25. package/schemas/models/shipping-method.model.js +8 -8
  26. package/schemas/models/store.model.js +1 -1
  27. package/schemas/mutations/analytics/index.js +1 -1
  28. package/schemas/mutations/analytics/product-add-to-cart.mutation.js +1 -1
  29. package/schemas/mutations/analytics/product-details-view.mutation.js +1 -1
  30. package/schemas/mutations/analytics/product-summary-click.mutation.js +1 -1
  31. package/schemas/mutations/analytics/product-summary-view.mutation.js +1 -1
  32. package/schemas/mutations/analytics/purchase.mutation.js +1 -1
  33. package/schemas/mutations/base.mutation.js +1 -1
  34. package/schemas/mutations/cart.mutation.js +1 -1
  35. package/schemas/mutations/checkout.mutation.js +1 -1
  36. package/schemas/mutations/identity.mutation.js +1 -1
  37. package/schemas/mutations/inventory.mutation.js +1 -1
  38. package/schemas/mutations/price.mutation.js +1 -1
  39. package/schemas/mutations/product.mutation.js +1 -1
  40. package/schemas/mutations/profile.mutation.js +3 -3
  41. package/schemas/mutations/search.mutation.js +1 -1
  42. package/schemas/queries/analytics.query.js +1 -1
  43. package/schemas/queries/base.query.js +1 -1
  44. package/schemas/queries/category.query.js +1 -1
  45. package/schemas/queries/product-associations.query.js +2 -2
  46. package/schemas/queries/product-recommendations.query.js +12 -12
  47. package/schemas/queries/product-search.query.js +3 -3
  48. package/schemas/queries/product.query.js +1 -1
  49. package/schemas/queries/store.query.js +1 -1
  50. package/schemas/session.schema.js +6 -6
  51. package/src/cache/cache.interface.d.ts +1 -1
  52. package/src/cache/memory-cache.d.ts +1 -1
  53. package/src/cache/noop-cache.d.ts +1 -1
  54. package/src/cache/redis-cache.d.ts +1 -1
  55. package/src/decorators/reactionary.decorator.d.ts +1 -1
  56. package/src/schemas/capabilities.schema.d.ts +1 -1
  57. package/src/schemas/errors/generic.error.d.ts +1 -1
  58. package/src/schemas/errors/invalid-input.error.d.ts +1 -1
  59. package/src/schemas/errors/invalid-output.error.d.ts +1 -1
  60. package/src/schemas/errors/not-found.error.d.ts +1 -1
  61. package/src/schemas/models/analytics.model.d.ts +1 -1
  62. package/src/schemas/models/base.model.d.ts +1 -1
  63. package/src/schemas/models/cart.model.d.ts +1 -1
  64. package/src/schemas/models/category.model.d.ts +1 -1
  65. package/src/schemas/models/checkout.model.d.ts +1 -1
  66. package/src/schemas/models/cost.model.d.ts +1 -1
  67. package/src/schemas/models/currency.model.d.ts +1 -1
  68. package/src/schemas/models/identifiers.model.d.ts +1 -1
  69. package/src/schemas/models/identity.model.d.ts +1 -1
  70. package/src/schemas/models/inventory.model.d.ts +1 -1
  71. package/src/schemas/models/order-search.model.d.ts +1 -1
  72. package/src/schemas/models/order.model.d.ts +1 -1
  73. package/src/schemas/models/payment.model.d.ts +1 -1
  74. package/src/schemas/models/price.model.d.ts +1 -1
  75. package/src/schemas/models/product-recommendations.model.d.ts +1 -1
  76. package/src/schemas/models/product-search.model.d.ts +1 -1
  77. package/src/schemas/models/product.model.d.ts +1 -1
  78. package/src/schemas/models/profile.model.d.ts +1 -1
  79. package/src/schemas/models/shipping-method.model.d.ts +1 -1
  80. package/src/schemas/models/store.model.d.ts +1 -1
  81. package/src/schemas/mutations/analytics/index.d.ts +1 -1
  82. package/src/schemas/mutations/analytics/product-add-to-cart.mutation.d.ts +1 -1
  83. package/src/schemas/mutations/analytics/product-details-view.mutation.d.ts +1 -1
  84. package/src/schemas/mutations/analytics/product-summary-click.mutation.d.ts +1 -1
  85. package/src/schemas/mutations/analytics/product-summary-view.mutation.d.ts +1 -1
  86. package/src/schemas/mutations/analytics/purchase.mutation.d.ts +1 -1
  87. package/src/schemas/mutations/base.mutation.d.ts +1 -1
  88. package/src/schemas/mutations/cart.mutation.d.ts +1 -1
  89. package/src/schemas/mutations/checkout.mutation.d.ts +1 -1
  90. package/src/schemas/mutations/identity.mutation.d.ts +1 -1
  91. package/src/schemas/mutations/profile.mutation.d.ts +1 -1
  92. package/src/schemas/queries/base.query.d.ts +1 -1
  93. package/src/schemas/queries/category.query.d.ts +1 -1
  94. package/src/schemas/queries/checkout.query.d.ts +1 -1
  95. package/src/schemas/queries/identity.query.d.ts +1 -1
  96. package/src/schemas/queries/inventory.query.d.ts +1 -1
  97. package/src/schemas/queries/order.query.d.ts +1 -1
  98. package/src/schemas/queries/price.query.d.ts +1 -1
  99. package/src/schemas/queries/product-associations.query.d.ts +1 -1
  100. package/src/schemas/queries/product-recommendations.query.d.ts +1 -1
  101. package/src/schemas/queries/product-search.query.d.ts +1 -1
  102. package/src/schemas/queries/product.query.d.ts +1 -1
  103. package/src/schemas/queries/profile.query.d.ts +1 -1
  104. package/src/schemas/queries/store.query.d.ts +1 -1
  105. package/src/schemas/session.schema.d.ts +1 -1
  106. package/src/zod-utils.d.ts +1 -1
@@ -1,39 +1,39 @@
1
- import { z } from "zod";
1
+ import * as 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({
5
- numberOfRecommendations: z.number().min(1).max(12).describe("The number of recommendations requested. The provider may return fewer than this number, but should not return more."),
6
- labels: z.array(z.string()).optional().describe("The customer segments, quirks, chirps or other labels to which the recommendations can optimize themselves to be relevant. This can be used by the provider to personalize the recommendations based on the preferences and behaviors of users in these segments.")
5
+ numberOfRecommendations: z.number().min(1).max(12).meta({ description: "The number of recommendations requested. The provider may return fewer than this number, but should not return more." }),
6
+ labels: z.array(z.string()).optional().meta({ description: "The customer segments, quirks, chirps or other labels to which the recommendations can optimize themselves to be relevant. This can be used by the provider to personalize the recommendations based on the preferences and behaviors of users in these segments." })
7
7
  });
8
8
  const ProductRecommendationsByCollectionQuerySchema = ProductRecommendationBaseQuerySchema.extend({
9
- collectionName: z.string().describe("The name of the collection for which to get product recommendations. This is to access either manually curated lists, or interface marketing rules engines that define zones by name"),
10
- sourceProduct: z.array(ProductIdentifierSchema).optional().describe("The products on screen or in the context you are asking for the recommendations. Could be all the variants from the current cart (resolved into their products), or just the variant of the PDP, or the 4 first products of a category."),
9
+ collectionName: z.string().meta({ description: "The name of the collection for which to get product recommendations. This is to access either manually curated lists, or interface marketing rules engines that define zones by name" }),
10
+ sourceProduct: z.array(ProductIdentifierSchema).optional().meta({ description: "The products on screen or in the context you are asking for the recommendations. Could be all the variants from the current cart (resolved into their products), or just the variant of the PDP, or the 4 first products of a category." }),
11
11
  sourceCategory: CategoryIdentifierSchema.optional().describe("The category identifier to use as a seed for the recommendations. The provider should return recommendations that are relevant to this category, e.g., products that are frequently bought together, products that are similar in style or category, or products that are popular among users with similar preferences. This is optional, as the collection may already be curated to be relevant to a specific product or category, but it can be used by the provider to further personalize the recommendations based on the preferences and behaviors of users who have interacted with this category.")
12
12
  });
13
13
  const ProductRecommendationProductBasedBaseQuerySchema = ProductRecommendationBaseQuerySchema.extend({
14
14
  sourceProduct: ProductIdentifierSchema.describe("The product identifiers for which to get recommendations. The provider should return recommendations that are relevant to these products, e.g., products that are frequently bought together, products that are similar in style or category, or products that are popular among users with similar preferences.")
15
15
  });
16
16
  const ProductRecommendationAlgorithmFrequentlyBoughtTogetherQuerySchema = ProductRecommendationProductBasedBaseQuerySchema.extend({
17
- algorithm: z.literal("frequentlyBoughtTogether").describe("The provider should return recommendations based on products that are frequently bought together with the source products. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information.")
17
+ algorithm: z.literal("frequentlyBoughtTogether").meta({ description: "The provider should return recommendations based on products that are frequently bought together with the source products. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information." })
18
18
  });
19
19
  const ProductRecommendationAlgorithmSimilarProductsQuerySchema = ProductRecommendationProductBasedBaseQuerySchema.extend({
20
- algorithm: z.literal("similar").describe("The provider should return recommendations based on products that are similar to the source products either visually or data wise")
20
+ algorithm: z.literal("similar").meta({ description: "The provider should return recommendations based on products that are similar to the source products either visually or data wise" })
21
21
  });
22
22
  const ProductRecommendationAlgorithmRelatedProductsQuerySchema = ProductRecommendationProductBasedBaseQuerySchema.extend({
23
- algorithm: z.literal("related").describe("The provider should return recommendations based on products that are related to the source products. ")
23
+ algorithm: z.literal("related").meta({ description: "The provider should return recommendations based on products that are related to the source products. " })
24
24
  });
25
25
  const ProductRecommendationAlgorithmTrendingInCategoryQuerySchema = ProductRecommendationBaseQuerySchema.extend({
26
- algorithm: z.literal("trendingInCategory").describe("The provider should return recommendations based on products that are trending in the specified category. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information."),
26
+ algorithm: z.literal("trendingInCategory").meta({ description: "The provider should return recommendations based on products that are trending in the specified category. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information." }),
27
27
  sourceCategory: CategoryIdentifierSchema.describe("The category identifier for which to get trending product recommendations. The provider should return recommendations that are relevant to this category, e.g., products that are frequently bought together, products that are similar in style or category, or products that are popular among users with similar preferences.")
28
28
  });
29
29
  const ProductRecommendationAlgorithmPopuplarProductsQuerySchema = ProductRecommendationBaseQuerySchema.extend({
30
- algorithm: z.literal("popular").describe("The provider should return recommendations based on products that are popular among users. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information.")
30
+ algorithm: z.literal("popular").meta({ description: "The provider should return recommendations based on products that are popular among users. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information." })
31
31
  });
32
32
  const ProductRecommendationAlgorithmTopPicksProductsQuerySchema = ProductRecommendationBaseQuerySchema.extend({
33
- algorithm: z.literal("topPicks").describe("The provider should return recommendations based on products that are top picks among users. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information.")
33
+ algorithm: z.literal("topPicks").meta({ description: "The provider should return recommendations based on products that are top picks among users. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information." })
34
34
  });
35
35
  const ProductRecommendationAlgorithmAlsoViewedProductsQuerySchema = ProductRecommendationProductBasedBaseQuerySchema.extend({
36
- algorithm: z.literal("alsoViewed").describe("The provider should return recommendations based on products that are also viewed by users. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information.")
36
+ algorithm: z.literal("alsoViewed").meta({ description: "The provider should return recommendations based on products that are also viewed by users. The provider should leverage the Request Context to personalize the recommendations as much as possible, taking into account factors such as the user's browsing history, purchase history, and demographic information." })
37
37
  });
38
38
  const ProductRecommendationsQuerySchema = z.discriminatedUnion("algorithm", [
39
39
  ProductRecommendationAlgorithmFrequentlyBoughtTogetherQuerySchema,
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { CategorySchema } from "../models/category.model.js";
3
3
  import { ProductSearchIdentifierSchema } from "../models/identifiers.model.js";
4
4
  import { BaseQuerySchema } from "./base.query.js";
@@ -6,8 +6,8 @@ const ProductSearchQueryByTermSchema = BaseQuerySchema.extend({
6
6
  search: ProductSearchIdentifierSchema
7
7
  });
8
8
  const ProductSearchQueryCreateNavigationFilterSchema = z.looseObject({
9
- categoryPath: z.array(CategorySchema).describe("An array representing the breadcrumb path to a category, from root to the specific category.")
10
- }).describe("Payload to create a category navigation filter from a breadcrumb path.");
9
+ categoryPath: z.array(CategorySchema).meta({ description: "An array representing the breadcrumb path to a category, from root to the specific category." })
10
+ }).meta({ description: "Payload to create a category navigation filter from a breadcrumb path." });
11
11
  export {
12
12
  ProductSearchQueryByTermSchema,
13
13
  ProductSearchQueryCreateNavigationFilterSchema
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { BaseQuerySchema } from "./base.query.js";
3
3
  import { PaginationOptionsSchema, ProductIdentifierSchema, ProductVariantIdentifierSchema } from "../models/index.js";
4
4
  const ProductQueryBySlugSchema = BaseQuerySchema.extend({
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { BaseQuerySchema } from "./base.query.js";
3
3
  const StoreQueryByProximitySchema = BaseQuerySchema.extend({
4
4
  longitude: z.number(),
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import { WebStoreIdentifierSchema } from "./models/identifiers.model.js";
3
3
  import { CurrencySchema } from "./models/currency.model.js";
4
4
  import { IdentitySchema } from "./models/identity.model.js";
@@ -25,11 +25,11 @@ const RequestContextSchema = z.looseObject({
25
25
  languageContext: LanguageContextSchema.default(() => LanguageContextSchema.parse({})).describe("ReadOnly. The language and locale context for the current request."),
26
26
  storeIdentifier: WebStoreIdentifierSchema.default(() => WebStoreIdentifierSchema.parse({})).describe("ReadOnly. The identifier of the current web store making the request."),
27
27
  taxJurisdiction: TaxJurisdictionSchema.default(() => TaxJurisdictionSchema.parse({})).describe("ReadOnly. The tax jurisdiction for the current request, typically derived from the store location or carts billing address"),
28
- correlationId: z.string().default("").describe("A unique identifier for the request, can be used for tracing and logging purposes."),
29
- isBot: z.boolean().default(false).describe("Indicates if the request is made by a bot or crawler."),
30
- clientIp: z.string().default("").describe("The IP address of the client making the request, if available. Mostly for logging purposes"),
31
- userAgent: z.string().default("").describe("The user agent string of the client making the request, if available."),
32
- referrer: z.string().default("").describe("The referrer URL, if available.")
28
+ correlationId: z.string().default("").meta({ description: "A unique identifier for the request, can be used for tracing and logging purposes." }),
29
+ isBot: z.boolean().default(false).meta({ description: "Indicates if the request is made by a bot or crawler." }),
30
+ clientIp: z.string().default("").meta({ description: "The IP address of the client making the request, if available. Mostly for logging purposes" }),
31
+ userAgent: z.string().default("").meta({ description: "The user agent string of the client making the request, if available." }),
32
+ referrer: z.string().default("").meta({ description: "The referrer URL, if available." })
33
33
  });
34
34
  export {
35
35
  IdentityContextSchema,
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { BaseModel } from '../schemas/models/index.js';
3
3
  export interface CacheEntryOptions {
4
4
  ttlSeconds: number;
@@ -1,7 +1,7 @@
1
1
  import type { BaseModel } from '../schemas/models/index.js';
2
2
  import type { Result } from '../schemas/result.js';
3
3
  import type { Cache, CacheEntryOptions } from './cache.interface.js';
4
- import type z from 'zod';
4
+ import type * as z from 'zod';
5
5
  /**
6
6
  * Memory version of the cache. Primarily useful for local development.
7
7
  * This is NOT suited for production use.
@@ -1,5 +1,5 @@
1
1
  import type { Cache, CacheEntryOptions } from './cache.interface.js';
2
- import type z from 'zod';
2
+ import type * as z from 'zod';
3
3
  /**
4
4
  * No-op cache implementation that never stores or returns data.
5
5
  * Useful for testing or when caching should be disabled.
@@ -1,6 +1,6 @@
1
1
  import { Redis } from '@upstash/redis';
2
2
  import type { Cache, CacheEntryOptions } from './cache.interface.js';
3
- import type z from 'zod';
3
+ import type * as z from 'zod';
4
4
  export declare class RedisCache implements Cache {
5
5
  protected redis: Redis;
6
6
  protected meter: import("../metrics/metrics.js").ReactionaryCacheMetrics;
@@ -1,5 +1,5 @@
1
1
  import type { Tracer } from '@opentelemetry/api';
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  import type { BaseProvider } from '../providers/index.js';
4
4
  import { type Result } from '../schemas/result.js';
5
5
  export declare function getTracer(): Tracer;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../zod-utils.js';
3
3
  import type { Client } from '../client/client.js';
4
4
  export declare const CapabilitiesSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const GenericErrorSchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"Generic">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const InvalidInputErrorSchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"InvalidInput">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const InvalidOutputErrorSchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"InvalidOutput">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const NotFoundErrorSchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"NotFound">;
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const AnalyticsEventSchema: z.ZodObject<{}, z.core.$loose>;
4
4
  export type AnalyticsEvent = InferType<typeof AnalyticsEventSchema>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const BaseModelSchema: z.ZodObject<{}, z.core.$loose>;
4
4
  export declare const PaginationOptionsSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CartItemSchema: z.ZodObject<{
4
4
  identifier: z.ZodDefault<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CategorySchema: z.ZodObject<{
4
4
  identifier: z.ZodDefault<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CheckoutItemSchema: z.ZodObject<{
4
4
  identifier: z.ZodDefault<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CostBreakDownSchema: z.ZodObject<{
4
4
  totalTax: z.ZodDefault<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CurrencySchema: z.ZodEnum<{
4
4
  AED: "AED";
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const OrderStatusSchema: z.ZodEnum<{
4
4
  AwaitingPayment: "AwaitingPayment";
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const AnonymousIdentitySchema: z.ZodObject<{
4
4
  type: z.ZodLiteral<"Anonymous">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const InventoryStatusSchema: z.ZodEnum<{
4
4
  inStock: "inStock";
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as 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<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import { OrderInventoryStatusSchema, OrderStatusSchema } from '../models/identifiers.model.js';
3
3
  import type { InferType } from '../../zod-utils.js';
4
4
  export declare const OrderItemSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const PaymentStatusSchema: z.ZodEnum<{
4
4
  pending: "pending";
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const MonetaryAmountSchema: z.ZodObject<{
4
4
  value: z.ZodNumber;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { InferType } from "../../zod-utils.js";
3
3
  export declare const BaseProductRecommendationSchema: z.ZodObject<{
4
4
  recommendationIdentifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ProductSearchResultItemVariantSchema: z.ZodObject<{
4
4
  variant: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ProductOptionValueSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const AddressSchema: z.ZodObject<{
4
4
  identifier: z.ZodDefault<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const PickupPointSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const StoreSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as 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">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as 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">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as 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">;
@@ -1,5 +1,5 @@
1
1
  import type { InferType } from '../../../zod-utils.js';
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  export declare const AnalyticsMutationProductSummaryClickEventSchema: z.ZodObject<{
4
4
  event: z.ZodLiteral<"product-summary-click">;
5
5
  product: z.ZodObject<{
@@ -1,5 +1,5 @@
1
1
  import type { InferType } from '../../../zod-utils.js';
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  export declare const AnalyticsMutationProductSummaryViewEventSchema: z.ZodObject<{
4
4
  event: z.ZodLiteral<"product-summary-view">;
5
5
  source: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as 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">;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const BaseMutationSchema: z.ZodObject<{}, z.core.$loose>;
4
4
  export type BaseMutation = InferType<typeof BaseMutationSchema>;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CartMutationItemAddSchema: z.ZodObject<{
4
4
  cart: z.ZodOptional<z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
4
4
  cart: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const IdentityMutationLoginSchema: z.ZodObject<{
4
4
  username: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ProfileMutationUpdateSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const BaseQuerySchema: z.ZodObject<{}, z.core.$loose>;
4
4
  export type BaseQuery = InferType<typeof BaseQuerySchema>;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CategoryQueryByIdSchema: z.ZodObject<{
4
4
  id: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const CheckoutQueryByIdSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const IdentityQuerySelfSchema: z.ZodObject<{}, z.core.$loose>;
4
4
  export type IdentityQuerySelf = InferType<typeof IdentityQuerySelfSchema>;
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const InventoryQueryBySKUSchema: z.ZodObject<{
4
4
  variant: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const OrderQueryByIdSchema: z.ZodObject<{
4
4
  order: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ListPriceQuerySchema: z.ZodObject<{
4
4
  variant: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  export declare const ProductAssociationsGetAccessoriesQuerySchema: z.ZodObject<{
3
3
  forProductVariant: z.ZodObject<{
4
4
  sku: z.ZodString;
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as 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;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ProductSearchQueryByTermSchema: z.ZodObject<{
4
4
  search: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ProductQueryBySlugSchema: z.ZodObject<{
4
4
  slug: z.ZodString;
@@ -1,4 +1,4 @@
1
- import type { z } from 'zod';
1
+ import type * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const ProfileQueryByIdSchema: z.ZodObject<{
4
4
  identifier: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  import type { InferType } from '../../zod-utils.js';
3
3
  export declare const StoreQueryByProximitySchema: z.ZodObject<{
4
4
  longitude: z.ZodNumber;
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod';
2
2
  /**
3
3
  * The language and locale context for the current request.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type z from "zod";
1
+ import type * as z from "zod";
2
2
  export type StripIndexSignature<T> = T extends (infer U)[] ? StripIndexSignature<U>[] : T extends readonly (infer U)[] ? readonly StripIndexSignature<U>[] : T extends Set<infer U> ? Set<StripIndexSignature<U>> : T extends Map<infer K, infer V> ? Map<StripIndexSignature<K>, StripIndexSignature<V>> : T extends Promise<infer U> ? Promise<StripIndexSignature<U>> : T extends object ? {
3
3
  [K in keyof T as K extends string ? string extends K ? never : K : K]: StripIndexSignature<T[K]>;
4
4
  } : T;