@ecomiq/core 0.1.6 → 0.1.7

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 (59) hide show
  1. package/dist/client.cjs +40 -38
  2. package/dist/client.cjs.map +1 -1
  3. package/dist/client.d.cts +1 -0
  4. package/dist/client.d.ts +1 -0
  5. package/dist/client.js +40 -38
  6. package/dist/client.js.map +1 -1
  7. package/dist/index.cjs +41 -38
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.d.cts +2 -1
  10. package/dist/index.d.ts +2 -1
  11. package/dist/index.js +41 -39
  12. package/dist/index.js.map +1 -1
  13. package/dist/models/geo.cjs +10 -2
  14. package/dist/models/geo.cjs.map +1 -1
  15. package/dist/models/geo.d.cts +14 -14
  16. package/dist/models/geo.d.ts +14 -14
  17. package/dist/models/geo.js +10 -2
  18. package/dist/models/geo.js.map +1 -1
  19. package/dist/models/ids.cjs +17 -0
  20. package/dist/models/ids.cjs.map +1 -0
  21. package/dist/models/ids.d.cts +12 -0
  22. package/dist/models/ids.d.ts +12 -0
  23. package/dist/models/ids.js +13 -0
  24. package/dist/models/ids.js.map +1 -0
  25. package/dist/models/products.cjs +12 -4
  26. package/dist/models/products.cjs.map +1 -1
  27. package/dist/models/products.d.cts +4 -4
  28. package/dist/models/products.d.ts +4 -4
  29. package/dist/models/products.js +12 -4
  30. package/dist/models/products.js.map +1 -1
  31. package/dist/models/search.cjs +11 -5
  32. package/dist/models/search.cjs.map +1 -1
  33. package/dist/models/search.d.cts +1 -1
  34. package/dist/models/search.d.ts +1 -1
  35. package/dist/models/search.js +11 -5
  36. package/dist/models/search.js.map +1 -1
  37. package/dist/models/settings.cjs +12 -9
  38. package/dist/models/settings.cjs.map +1 -1
  39. package/dist/models/settings.d.cts +23 -25
  40. package/dist/models/settings.d.ts +23 -25
  41. package/dist/models/settings.js +12 -10
  42. package/dist/models/settings.js.map +1 -1
  43. package/dist/models/storefront-cart.cjs +23 -15
  44. package/dist/models/storefront-cart.cjs.map +1 -1
  45. package/dist/models/storefront-cart.d.cts +23 -23
  46. package/dist/models/storefront-cart.d.ts +23 -23
  47. package/dist/models/storefront-cart.js +23 -15
  48. package/dist/models/storefront-cart.js.map +1 -1
  49. package/dist/models/storefront-checkout.cjs +28 -22
  50. package/dist/models/storefront-checkout.cjs.map +1 -1
  51. package/dist/models/storefront-checkout.d.cts +43 -43
  52. package/dist/models/storefront-checkout.d.ts +43 -43
  53. package/dist/models/storefront-checkout.js +28 -22
  54. package/dist/models/storefront-checkout.js.map +1 -1
  55. package/dist/models/storefront-reviews.cjs +12 -4
  56. package/dist/models/storefront-reviews.cjs.map +1 -1
  57. package/dist/models/storefront-reviews.js +12 -4
  58. package/dist/models/storefront-reviews.js.map +1 -1
  59. package/package.json +6 -1
package/dist/index.d.cts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { Api } from './api.cjs';
2
2
  export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.cjs';
3
3
  export { C as CreateClientOptions, a as CustomerAddressMutationResponse, b as CustomerAddressMutationResponseSchema, c as CustomerAddressRequestOptions, d as CustomerOrderRequestOptions, e as CustomerRequestOptions, S as StorefrontClient, f as createClient, g as createCustomerAddress, h as createStorefrontClient, i as deleteCustomerAddress, j as getCustomerAddresses, k as getCustomerMe, l as getCustomerOrder, m as getCustomerOrders, p as patchCustomer, r as registerCustomer, u as updateCustomerAddress } from './client-BpX4yR6S.cjs';
4
+ export { EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from './models/ids.cjs';
4
5
  import { CmsPageDetailsDto } from './models/settings.cjs';
5
- export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, EntityIdSchema, JsonElement, JsonElementSchema, NullableEntityIdSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.cjs';
6
+ export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.cjs';
6
7
  export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.cjs';
7
8
  import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.cjs';
8
9
  export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.cjs';
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
1
  import { Api } from './api.js';
2
2
  export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.js';
3
3
  export { C as CreateClientOptions, a as CustomerAddressMutationResponse, b as CustomerAddressMutationResponseSchema, c as CustomerAddressRequestOptions, d as CustomerOrderRequestOptions, e as CustomerRequestOptions, S as StorefrontClient, f as createClient, g as createCustomerAddress, h as createStorefrontClient, i as deleteCustomerAddress, j as getCustomerAddresses, k as getCustomerMe, l as getCustomerOrder, m as getCustomerOrders, p as patchCustomer, r as registerCustomer, u as updateCustomerAddress } from './client-4ZTG2RZ3.js';
4
+ export { EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from './models/ids.js';
4
5
  import { CmsPageDetailsDto } from './models/settings.js';
5
- export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, EntityIdSchema, JsonElement, JsonElementSchema, NullableEntityIdSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.js';
6
+ export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.js';
6
7
  export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.js';
7
8
  import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.js';
8
9
  export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.js';
package/dist/index.js CHANGED
@@ -114,6 +114,14 @@ var CollectionSchema = z.object({
114
114
  productCount: z.number().optional()
115
115
  });
116
116
  var CollectionsSchema = z.array(CollectionSchema);
117
+ var EntityIdSchema = z.union([
118
+ z.string().uuid(),
119
+ z.string().regex(/^\d+$/, "Expected numeric id")
120
+ ]);
121
+ var NullableEntityIdSchema = EntityIdSchema.nullable();
122
+ var OptionalEntityIdSchema = EntityIdSchema.optional();
123
+
124
+ // src/models/products.ts
117
125
  var ProductPublicIdSchema = z.union([
118
126
  z.string().regex(/^[1-9]\d*$/),
119
127
  z.number().int().safe().positive()
@@ -174,7 +182,7 @@ var ProductsParamsSchema = z.object({
174
182
  page: z.number().int().positive().default(1),
175
183
  pageSize: z.number().int().positive().max(100).default(24),
176
184
  sort: ProductSortSchema.optional(),
177
- sellerId: z.string().uuid().optional(),
185
+ sellerId: OptionalEntityIdSchema,
178
186
  search: z.string().optional(),
179
187
  collection: z.string().optional(),
180
188
  collections: z.array(z.string()).optional(),
@@ -188,18 +196,18 @@ var ProductsParamsSchema = z.object({
188
196
  tag: z.string().optional(),
189
197
  tags: z.array(z.string()).optional(),
190
198
  filters: z.array(z.string()).optional(),
191
- locationId: z.string().uuid().optional(),
199
+ locationId: OptionalEntityIdSchema,
192
200
  inStock: z.boolean().optional(),
193
201
  minPrice: z.number().nonnegative().optional(),
194
202
  maxPrice: z.number().nonnegative().optional()
195
203
  });
196
204
  var ProductDetailParamsSchema = z.object({
197
- sellerId: z.string().uuid().optional()
205
+ sellerId: OptionalEntityIdSchema
198
206
  });
199
207
  var RelatedProductsParamsSchema = z.object({
200
208
  productId: ProductPublicIdSchema,
201
209
  limit: z.number().int().positive().max(12).default(8),
202
- sellerId: z.string().uuid().optional()
210
+ sellerId: OptionalEntityIdSchema
203
211
  });
204
212
  var SpecItemSchema = z.object({
205
213
  key: z.string(),
@@ -306,12 +314,6 @@ var JsonElementSchema = z.lazy(
306
314
  );
307
315
  var DateTimeOffsetSchema = z.string().datetime({ offset: true });
308
316
  var NullableDateTimeOffsetSchema = DateTimeOffsetSchema.nullable();
309
- var NullableUuidSchema = z.string().uuid().nullable();
310
- var EntityIdSchema = z.union([
311
- z.string().uuid(),
312
- z.string().regex(/^\d+$/, "Expected numeric id")
313
- ]);
314
- var NullableEntityIdSchema = EntityIdSchema.nullable();
315
317
  var StoreTypeSchema = z.enum([
316
318
  "b2C",
317
319
  "marketplace",
@@ -483,11 +485,11 @@ var CmsPageDetailsDtoSchema = z.object({
483
485
  status: CmsPageStatusSchema,
484
486
  hasPublishedVersion: z.boolean(),
485
487
  publishedOn: NullableDateTimeOffsetSchema,
486
- publishedBy: NullableUuidSchema,
488
+ publishedBy: NullableEntityIdSchema,
487
489
  createdOn: DateTimeOffsetSchema,
488
490
  updatedOn: NullableDateTimeOffsetSchema,
489
- createdBy: NullableUuidSchema,
490
- updatedBy: NullableUuidSchema,
491
+ createdBy: NullableEntityIdSchema,
492
+ updatedBy: NullableEntityIdSchema,
491
493
  lastModifiedBy: z.string().nullable()
492
494
  }).strict();
493
495
  var CmsSnapshotDtoSchema = z.object({
@@ -598,7 +600,7 @@ async function getRelatedProducts(api, params) {
598
600
  var ProductAutocompleteParamsSchema = z.object({
599
601
  search: z.string().min(2).max(80),
600
602
  limit: z.number().int().positive().max(20).default(8),
601
- sellerId: z.string().uuid().optional()
603
+ sellerId: OptionalEntityIdSchema
602
604
  });
603
605
  var ProductSuggestionSchema = z.object({
604
606
  id: ProductPublicIdSchema,
@@ -722,7 +724,7 @@ var StorefrontCartBundleItemSchema = z.object({
722
724
  quantity: z.number().int().positive()
723
725
  });
724
726
  var StorefrontCartItemSchema = z.object({
725
- id: z.string().uuid(),
727
+ id: EntityIdSchema,
726
728
  productId: z.number().int().safe().nonnegative(),
727
729
  title: z.string(),
728
730
  variantLabel: z.string().nullable(),
@@ -736,20 +738,20 @@ var StorefrontCartItemSchema = z.object({
736
738
  bundleItems: z.array(StorefrontCartBundleItemSchema)
737
739
  });
738
740
  var StorefrontCartShippingMethodSchema = z.object({
739
- id: z.string().uuid(),
740
- shippingMethodId: z.string().uuid().nullable(),
741
- rateId: z.string().uuid().nullable(),
741
+ id: EntityIdSchema,
742
+ shippingMethodId: NullableEntityIdSchema,
743
+ rateId: NullableEntityIdSchema,
742
744
  name: z.string(),
743
745
  description: z.string().nullable(),
744
746
  total: z.number(),
745
- locationId: z.string().uuid().nullable(),
747
+ locationId: NullableEntityIdSchema,
746
748
  estimatedDays: z.number().int().nullable(),
747
- pickupPointId: z.string().uuid().nullable(),
749
+ pickupPointId: NullableEntityIdSchema,
748
750
  scheduledDate: z.string().nullable(),
749
751
  scheduledTime: z.string().nullable(),
750
752
  serviceCode: z.string().nullable(),
751
- sellerId: z.string().uuid().nullable(),
752
- shippingProfileId: z.string().uuid().nullable()
753
+ sellerId: NullableEntityIdSchema,
754
+ shippingProfileId: NullableEntityIdSchema
753
755
  });
754
756
  var StorefrontCartTotalsSchema = z.object({
755
757
  subtotal: z.number(),
@@ -770,7 +772,7 @@ var StorefrontCartStatusSchema = z.enum([
770
772
  "failed"
771
773
  ]);
772
774
  var StorefrontCartSchema = z.object({
773
- id: z.string().uuid(),
775
+ id: EntityIdSchema,
774
776
  cartNumber: z.string(),
775
777
  email: z.string().nullable(),
776
778
  phone: z.string().nullable(),
@@ -792,26 +794,26 @@ var CreateCartParamsSchema = z.object({
792
794
  email: z.string().email().optional()
793
795
  });
794
796
  var GetCartParamsSchema = z.object({
795
- cartId: z.string().uuid()
797
+ cartId: EntityIdSchema
796
798
  });
797
799
  var CartItemModifierSchema = z.object({
798
800
  modifierGroupId: z.number().int().safe().positive(),
799
801
  optionIds: z.array(z.number().int().safe().positive()).min(1)
800
802
  });
801
803
  var AddCartItemParamsSchema = z.object({
802
- cartId: z.string().uuid(),
804
+ cartId: EntityIdSchema,
803
805
  variantId: z.number().int().safe().positive(),
804
806
  quantity: z.number().int().positive(),
805
807
  modifiers: z.array(CartItemModifierSchema).optional()
806
808
  });
807
809
  var UpdateCartItemQuantityParamsSchema = z.object({
808
- cartId: z.string().uuid(),
809
- cartItemId: z.string().uuid(),
810
+ cartId: EntityIdSchema,
811
+ cartItemId: EntityIdSchema,
810
812
  quantity: z.number().int().nonnegative()
811
813
  });
812
814
  var RemoveCartItemParamsSchema = z.object({
813
- cartId: z.string().uuid(),
814
- cartItemId: z.string().uuid()
815
+ cartId: EntityIdSchema,
816
+ cartItemId: EntityIdSchema
815
817
  });
816
818
 
817
819
  // src/services/cart.service.ts
@@ -877,7 +879,7 @@ async function getPageBySlug(api, pageSlug) {
877
879
  return api.get(`pages/${encodeURIComponent(pageSlug)}`, CmsPageDetailsDtoSchema);
878
880
  }
879
881
  var CartBuyerParamsSchema = z.object({
880
- cartId: z.string().uuid(),
882
+ cartId: EntityIdSchema,
881
883
  email: z.string().email(),
882
884
  firstName: z.string().min(1),
883
885
  lastName: z.string().min(1),
@@ -903,7 +905,7 @@ var CartAddressWriteSchema = z.object({
903
905
  }).nullable().optional()
904
906
  });
905
907
  var CartAddressesParamsSchema = z.object({
906
- cartId: z.string().uuid(),
908
+ cartId: EntityIdSchema,
907
909
  shippingAddress: CartAddressWriteSchema,
908
910
  billingAddress: CartAddressWriteSchema
909
911
  });
@@ -936,7 +938,7 @@ var StorefrontOrderBumpSchema = z.object({
936
938
  description: z.string().nullable().optional()
937
939
  });
938
940
  var CartCheckoutReadParamsSchema = z.object({
939
- cartId: z.string().uuid()
941
+ cartId: EntityIdSchema
940
942
  });
941
943
  var CartCheckoutReadResponseSchema = z.object({
942
944
  cart: StorefrontCartSchema,
@@ -983,7 +985,7 @@ var CartCheckoutResponseSchema = z.object({
983
985
  cart: StorefrontCartSchema.optional()
984
986
  }).passthrough();
985
987
  var CartCheckoutParamsSchema = z.object({
986
- cartId: z.string().uuid(),
988
+ cartId: EntityIdSchema,
987
989
  paymentMethodCode: z.string().min(1),
988
990
  externalRef: z.string().min(1),
989
991
  receiptUrl: z.string().min(1).optional()
@@ -1016,11 +1018,11 @@ var ShippingOptionsResponseSchema = z.object({
1016
1018
  groups: z.array(ShippingOptionGroupSchema)
1017
1019
  });
1018
1020
  var GetShippingOptionsParamsSchema = z.object({
1019
- cartId: z.string().uuid(),
1021
+ cartId: EntityIdSchema,
1020
1022
  postalCode: z.string().min(1)
1021
1023
  });
1022
1024
  var PutShippingMethodParamsSchema = z.object({
1023
- cartId: z.string().uuid(),
1025
+ cartId: EntityIdSchema,
1024
1026
  rateId: z.string().min(1),
1025
1027
  shippingMethodId: z.string().min(1),
1026
1028
  serviceCode: z.string().nullable().optional(),
@@ -1036,7 +1038,7 @@ var CartPaymentReceiptResponseSchema = z.object({
1036
1038
  url: z.string()
1037
1039
  });
1038
1040
  var CartPromotionCodeParamsSchema = z.object({
1039
- cartId: z.string().uuid(),
1041
+ cartId: EntityIdSchema,
1040
1042
  code: z.string().min(1)
1041
1043
  });
1042
1044
 
@@ -1132,12 +1134,12 @@ var CountrySchema = z.object({
1132
1134
  var CountriesSchema = z.array(CountrySchema);
1133
1135
  var GeoDivisionTypeSchema = z.enum(["level1", "level2", "level3"]);
1134
1136
  var GeoDivisionSchema = z.object({
1135
- id: z.string().uuid(),
1137
+ id: EntityIdSchema,
1136
1138
  countryCode: z.string().length(2),
1137
1139
  type: GeoDivisionTypeSchema,
1138
1140
  code: z.string().min(1),
1139
1141
  name: z.string().min(1),
1140
- parentId: z.string().uuid().nullable(),
1142
+ parentId: NullableEntityIdSchema,
1141
1143
  source: z.string().min(1)
1142
1144
  }).strict();
1143
1145
  var DepartmentSchema = GeoDivisionSchema;
@@ -1893,6 +1895,6 @@ function stripHtml(html) {
1893
1895
  return html.replace(/<br\s*\/?>/gi, " ").replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
1894
1896
  }
1895
1897
 
1896
- export { AddCartItemParamsSchema, ApiError, BundleItemSchema, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartItemModifierSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, CollectionSchema, CollectionsSchema, CountriesSchema, CountrySchema, CreateCartParamsSchema, CreateProductReviewParamsSchema, CustomerAddressMutationResponseSchema, CustomerAddressSchema, CustomerAddressUpsertInputSchema, CustomerAddressesSchema, CustomerMeSchema, CustomerOrderDetailSchema, CustomerOrderLineItemSchema, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPaymentSchema, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineSchema, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegisterRequestSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, EntityIdSchema, FacetItemSchema, FacetSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetCartParamsSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, GetShippingOptionsParamsSchema, JsonElementSchema, ListProductReviewsParamsSchema, NullableEntityIdSchema, PriceTierSchema, ProductAutocompleteParamsSchema, ProductDetailParamsSchema, ProductDetailSchema, ProductImageSchema, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSortSchema, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummarySchema, ProductsParamsSchema, ProductsResponseSchema, ProvinceSchema, ProvincesSchema, PutShippingMethodParamsSchema, RelatedProductsParamsSchema, RemoveCartItemParamsSchema, SearchFilterSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, SizeGuideMeasurementSchema, SizeGuideRowSchema, SizeGuideSchema, SpecItemSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBumpSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, UpdateCartItemQuantityParamsSchema, VariantItemSchema, VariantOptionSchema, VariantSchema, addCartItem, addCartPromotionCode, autocompleteProducts, cartVariantIdFromProduct, checkoutCart, createApi, createCart, createClient, createCustomerAddress, createProductReview, createStorefrontClient, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, getCart, getCartCheckout, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getDepartments, getDistricts, getMenuItems, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartItem, removeCartPromotionCode, resolveApiBaseUrl, sanitizeHtml, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadPaymentReceipt };
1898
+ export { AddCartItemParamsSchema, ApiError, BundleItemSchema, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartItemModifierSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, CollectionSchema, CollectionsSchema, CountriesSchema, CountrySchema, CreateCartParamsSchema, CreateProductReviewParamsSchema, CustomerAddressMutationResponseSchema, CustomerAddressSchema, CustomerAddressUpsertInputSchema, CustomerAddressesSchema, CustomerMeSchema, CustomerOrderDetailSchema, CustomerOrderLineItemSchema, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPaymentSchema, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineSchema, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegisterRequestSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, EntityIdSchema, FacetItemSchema, FacetSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetCartParamsSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, GetShippingOptionsParamsSchema, JsonElementSchema, ListProductReviewsParamsSchema, NullableEntityIdSchema, OptionalEntityIdSchema, PriceTierSchema, ProductAutocompleteParamsSchema, ProductDetailParamsSchema, ProductDetailSchema, ProductImageSchema, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSortSchema, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummarySchema, ProductsParamsSchema, ProductsResponseSchema, ProvinceSchema, ProvincesSchema, PutShippingMethodParamsSchema, RelatedProductsParamsSchema, RemoveCartItemParamsSchema, SearchFilterSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, SizeGuideMeasurementSchema, SizeGuideRowSchema, SizeGuideSchema, SpecItemSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBumpSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, UpdateCartItemQuantityParamsSchema, VariantItemSchema, VariantOptionSchema, VariantSchema, addCartItem, addCartPromotionCode, autocompleteProducts, cartVariantIdFromProduct, checkoutCart, createApi, createCart, createClient, createCustomerAddress, createProductReview, createStorefrontClient, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, getCart, getCartCheckout, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getDepartments, getDistricts, getMenuItems, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, patchCustomer, putCartShippingMethod, registerCustomer, removeCartItem, removeCartPromotionCode, resolveApiBaseUrl, sanitizeHtml, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadPaymentReceipt };
1897
1899
  //# sourceMappingURL=index.js.map
1898
1900
  //# sourceMappingURL=index.js.map