@ecomiq/core 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/README.md +16 -2
  2. package/dist/client.cjs +180 -23
  3. package/dist/client.d.cts +8 -2
  4. package/dist/client.d.ts +8 -2
  5. package/dist/client.js +183 -26
  6. package/dist/index.cjs +8 -3
  7. package/dist/index.d.cts +3 -3
  8. package/dist/index.d.ts +3 -3
  9. package/dist/index.js +6 -6
  10. package/dist/libs/{graphql-_6Y8lR_Q.js → graphql-8PZkrq66.js} +12 -8
  11. package/dist/libs/{graphql-wJH7HaQU.cjs → graphql-BICZrYlZ.cjs} +12 -7
  12. package/dist/libs/graphql-batch-AFRui-4Y.js +125 -0
  13. package/dist/libs/graphql-batch-B0xSD6G2.cjs +125 -0
  14. package/dist/libs/graphql-batch.d.cts +2 -0
  15. package/dist/libs/graphql-batch.d.ts +2 -0
  16. package/dist/models/collections.cjs +5 -0
  17. package/dist/models/collections.d.cts +109 -1
  18. package/dist/models/collections.d.ts +109 -1
  19. package/dist/models/collections.js +4 -1
  20. package/dist/models/storefront-reviews.cjs +9 -2
  21. package/dist/models/storefront-reviews.d.cts +99 -0
  22. package/dist/models/storefront-reviews.d.ts +99 -0
  23. package/dist/models/storefront-reviews.js +7 -3
  24. package/dist/services/layout.service-C6zG6zY7.cjs +65 -0
  25. package/dist/services/layout.service-DufBhrOR.js +65 -0
  26. package/dist/services/layout.service.d.cts +1 -0
  27. package/dist/services/layout.service.d.ts +1 -0
  28. package/dist/services/{review.service-CO2icjpu.cjs → review.service-BgRGfq4t.cjs} +0 -8
  29. package/dist/services/{review.service-De1YkhFp.js → review.service-DMgxbO94.js} +2 -9
  30. package/package.json +1 -1
  31. package/dist/services/layout.service-BkvLzl1g.cjs +0 -50
  32. package/dist/services/layout.service-DmbeMOkK.js +0 -50
package/dist/client.js CHANGED
@@ -1,11 +1,18 @@
1
1
  import { ApiError, createApi } from "./api.js";
2
- import { executeGraphQL } from "./libs/graphql-_6Y8lR_Q.js";
3
- import { catalogLinkKey } from "./libs/catalog-link-key-B7l5KZsF.js";
2
+ import { executeGraphQL, sendGraphQL } from "./libs/graphql-8PZkrq66.js";
3
+ import { createGraphQLBatcher } from "./libs/graphql-batch-AFRui-4Y.js";
4
+ import { graphQLSelection } from "./libs/graphql-selection-H1RMh6VD.js";
5
+ import { StorefrontPaymentMethodSchema, StorefrontPaymentMethodsSchema } from "./models/payment-methods--VUUZpMz.js";
6
+ import { CollectionSchema, CollectionWithProductsSchema } from "./models/collections.js";
4
7
  import { catalogLinkCandidates, readCatalogLink } from "./models/catalog-links-BzJeyBy4.js";
8
+ import { catalogLinkKey } from "./libs/catalog-link-key-B7l5KZsF.js";
5
9
  import { getLinks } from "./services/catalog-link.service-BQ2d-EPX.js";
6
- import { getLayout } from "./services/layout.service-DmbeMOkK.js";
7
- import { ProductsParamsSchema } from "./models/products.js";
10
+ import { getLayout } from "./services/layout.service-DufBhrOR.js";
11
+ import { ArticleSummarySchema, ArticlesSchema, ListArticlesParamsSchema } from "./models/articles-C-4JvT2Z.js";
12
+ import { ProductSortSchema, ProductSummarySchema, ProductsParamsSchema, ProductsResponseSchema } from "./models/products.js";
8
13
  import { BoundedReadCache } from "./libs/bounded-read-cache-Abmb5VnJ.js";
14
+ import { ListStoreReviewsParamsSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductWithReviewsSchema, StorefrontReviewSchema, StorefrontStoreReviewSchema } from "./models/storefront-reviews.js";
15
+ import { SellerSummarySchema, SellersSchema } from "./models/sellers.js";
9
16
  import { completeCustomerRegistration, getCustomerRegistration } from "./services/customer-registration.service-CxcWD2hf.js";
10
17
  import { createCustomerSession, deleteCustomerSession, getCustomerSession, upsertCustomerAuthConfiguration } from "./services/customer-session.service-4YgfbWRB.js";
11
18
  import { authenticateOrderPayment, getOrderStatus, startOrderPayment, uploadOrderPaymentReceipt } from "./services/order-status.service-MC9hVpP-.js";
@@ -14,22 +21,49 @@ import { createComplaintBookEntry, getComplaintBook } from "./services/complaint
14
21
  import { StorefrontSettingsSchema } from "./models/settings.js";
15
22
  import { getProductBySlug, getProducts, getRelatedProducts } from "./services/product.service-B05Qmbuh.js";
16
23
  import { autocompleteProducts } from "./services/search.service-DSBMhaSY.js";
17
- import { createCustomerProductReview, createProductReview, listProductReviews, listStoreReviews } from "./services/review.service-De1YkhFp.js";
24
+ import { createCustomerProductReview, createProductReview, listProductReviews } from "./services/review.service-DMgxbO94.js";
18
25
  import { addCartItem, createCart, getCart, removeCartItem, updateCartItemQuantity } from "./services/cart.service-yMCz9oQP.js";
19
26
  import { getCollectionBySlug, getCollections } from "./services/collection.service-C4QETpuI.js";
20
27
  import { getPageBySlug } from "./services/page.service-CWhWCjMQ.js";
21
28
  import { getCategoryBySlug } from "./services/category.service-8tieYX2r.js";
22
29
  import { getSitemap, resolveUrl } from "./services/url.service-CLW0Tc7S.js";
23
- import { getArticleBySlug, listArticles } from "./services/article.service-DBsOvflH.js";
30
+ import { getArticleBySlug } from "./services/article.service-DBsOvflH.js";
24
31
  import { addCartPromotionCode, checkoutCart, getCartCheckout, getShippingOptions, patchCartAddresses, patchCartBuyer, putCartPaymentMethod, putCartShippingMethod, removeCartPromotionCode, uploadPaymentReceipt } from "./services/checkout.service-CC-3tm2y.js";
25
32
  import { getCountries, getDepartments, getDistricts, getProvinces } from "./services/geo.service-C32R7N8W.js";
26
33
  import { createCustomerAddress, deleteCustomerAddress, getCustomerAddresses, updateCustomerAddress } from "./services/customer-address.service-xEThx7cQ.js";
27
34
  import { getCustomerMe, patchCustomer } from "./services/customer.service-BoU6l2-R.js";
28
35
  import { getCustomerOrder, getCustomerOrders, requestCustomerOrderCancellation, requestCustomerOrderReturn } from "./services/customer-order.service-qHoRBuyX.js";
29
- import { getSellerBySlug, getSellers } from "./services/seller.service-DUptDTv4.js";
30
- import { getPaymentMethods } from "./services/payment-method.service-CjKbAsOh.js";
36
+ import { getSellerBySlug } from "./services/seller.service-DUptDTv4.js";
37
+ import { z } from "zod";
31
38
  // src/client.ts
32
39
  const DEFAULT_SETTINGS_CACHE_TTL_MS = 3e4;
40
+ const PRODUCTS_SELECTION = graphQLSelection(ProductsResponseSchema);
41
+ const PAYMENT_METHOD_SELECTION = graphQLSelection(StorefrontPaymentMethodSchema);
42
+ const ARTICLE_SELECTION = graphQLSelection(ArticleSummarySchema);
43
+ const STORE_REVIEW_SELECTION = graphQLSelection(StorefrontStoreReviewSchema);
44
+ const SELLER_SELECTION = graphQLSelection(SellerSummarySchema);
45
+ const REVIEW_SELECTION = graphQLSelection(StorefrontReviewSchema);
46
+ const ProductsWithReviewsSchema = z.object({ products: z.array(ProductWithReviewsSchema) });
47
+ const MAX_PRODUCT_REVIEWS = 10;
48
+ const COLLECTION_SELECTION = graphQLSelection(CollectionSchema);
49
+ const PRODUCT_SUMMARY_SELECTION = graphQLSelection(ProductSummarySchema);
50
+ const CollectionCoverRowsSchema = z.array(CollectionSchema.extend({ products: z.array(ProductSummarySchema.pick({ imageUrl: true })) })).nullable();
51
+ const CollectionProductRowsSchema = z.array(CollectionWithProductsSchema).nullable();
52
+ const MAX_COLLECTIONS = 100;
53
+ const MAX_COLLECTION_PRODUCTS = 24;
54
+ function boundedCount(value, fallback, max) {
55
+ if (!Number.isFinite(value)) return fallback;
56
+ return Math.min(max, Math.max(1, Math.trunc(value)));
57
+ }
58
+ function graphQLProductsInput(input) {
59
+ const { categoryId: _categoryId, sellers, sort, productTypes, ...rest } = input;
60
+ return {
61
+ ...rest,
62
+ sellerSlugs: sellers,
63
+ sort: sort?.toUpperCase(),
64
+ productTypes: productTypes?.map((type) => type.toUpperCase())
65
+ };
66
+ }
33
67
  const PRODUCT_READ_CACHE_TTL_MS = 3e4;
34
68
  const COLLECTION_READ_CACHE_TTL_MS = 6e4;
35
69
  const CATEGORY_READ_CACHE_TTL_MS = 3e4;
@@ -56,6 +90,7 @@ function createClient(options) {
56
90
  function graphql(document, dataSchema, variables, requestOptions = {}) {
57
91
  return executeGraphQL(graphQLApi, domain, document, dataSchema, variables, requestOptions);
58
92
  }
93
+ const batcher = createGraphQLBatcher((document, variables, options) => sendGraphQL(graphQLApi, domain, document, variables, options));
59
94
  const apiClient = async () => {
60
95
  const storeId = await getStoreId();
61
96
  return createApi({
@@ -72,6 +107,9 @@ function createClient(options) {
72
107
  const productsCache = new BoundedReadCache(32);
73
108
  const productCache = new BoundedReadCache(100);
74
109
  const collectionsCache = new BoundedReadCache(1);
110
+ const collectionCoversCache = new BoundedReadCache(8);
111
+ const collectionProductsCache = new BoundedReadCache(8);
112
+ const productReviewsCache = new BoundedReadCache(16);
75
113
  const collectionCache = new BoundedReadCache(50);
76
114
  const categoryCache = new BoundedReadCache(50);
77
115
  const urlCache = new BoundedReadCache(200);
@@ -84,6 +122,9 @@ function createClient(options) {
84
122
  productsCache.clear();
85
123
  productCache.clear();
86
124
  collectionsCache.clear();
125
+ collectionCoversCache.clear();
126
+ collectionProductsCache.clear();
127
+ productReviewsCache.clear();
87
128
  collectionCache.clear();
88
129
  categoryCache.clear();
89
130
  urlCache.clear();
@@ -114,6 +155,7 @@ function createClient(options) {
114
155
  const key = JSON.stringify(links);
115
156
  if (layoutRead?.key === key && layoutRead.expiresAt > Date.now()) return layoutRead.data;
116
157
  const read = getLayout({
158
+ batcher,
117
159
  graphql,
118
160
  links
119
161
  }).catch(async (error) => {
@@ -155,9 +197,47 @@ function createClient(options) {
155
197
  return getCollections(client);
156
198
  });
157
199
  }
158
- async function getPaymentMethods$1() {
159
- const client = await apiClient();
160
- return getPaymentMethods(client);
200
+ function collectionLimitArgument(limit) {
201
+ return {
202
+ name: "limit",
203
+ type: "Int",
204
+ value: limit === void 0 ? void 0 : boundedCount(limit, MAX_COLLECTIONS, MAX_COLLECTIONS)
205
+ };
206
+ }
207
+ async function getCollectionCovers(options = {}) {
208
+ const limit = collectionLimitArgument(options.limit);
209
+ const candidates = boundedCount(options.candidates ?? 8, 8, MAX_COLLECTION_PRODUCTS);
210
+ return collectionCoversCache.read(`${cacheDomain}\u0000${limit.value ?? ""}\u0000${candidates}`, COLLECTION_READ_CACHE_TTL_MS, async () => {
211
+ return (await batcher.request({
212
+ field: "collections",
213
+ arguments: [limit],
214
+ selection: `${COLLECTION_SELECTION} products(limit: ${candidates}) { imageUrl }`,
215
+ schema: CollectionCoverRowsSchema
216
+ }) ?? []).map(({ products, ...collection }) => ({
217
+ ...collection,
218
+ imageCandidates: products.map((product) => product.imageUrl).filter((image) => image !== "")
219
+ }));
220
+ });
221
+ }
222
+ async function getCollectionsWithProducts(options) {
223
+ const limit = collectionLimitArgument(options.limit);
224
+ const products = boundedCount(options.products, 8, MAX_COLLECTION_PRODUCTS);
225
+ const sort = options.sort === void 0 ? "" : `, sort: ${ProductSortSchema.parse(options.sort).toUpperCase()}`;
226
+ return collectionProductsCache.read(`${cacheDomain}\u0000${limit.value ?? ""}\u0000${products}\u0000${sort}`, PRODUCT_READ_CACHE_TTL_MS, async () => {
227
+ return await batcher.request({
228
+ field: "collections",
229
+ arguments: [limit],
230
+ selection: `${COLLECTION_SELECTION} products(limit: ${products}${sort}) { ${PRODUCT_SUMMARY_SELECTION} }`,
231
+ schema: CollectionProductRowsSchema
232
+ }) ?? [];
233
+ });
234
+ }
235
+ async function getPaymentMethods() {
236
+ return batcher.request({
237
+ field: "paymentMethods",
238
+ selection: PAYMENT_METHOD_SELECTION,
239
+ schema: StorefrontPaymentMethodsSchema
240
+ }, { allowStale: false });
161
241
  }
162
242
  async function getCollectionBySlug$1(collectionSlug) {
163
243
  return collectionCache.read(`${cacheDomain}\u0000${collectionSlug}`, COLLECTION_READ_CACHE_TTL_MS, async () => {
@@ -208,17 +288,46 @@ function createClient(options) {
208
288
  await Promise.all(batches);
209
289
  return input.map((link) => resolved.get(catalogLinkKey(link)) ?? link);
210
290
  }
211
- async function listArticles$1(params = {}) {
212
- const client = await apiClient();
213
- return listArticles(client, params);
291
+ async function listArticles(params = {}) {
292
+ const input = ListArticlesParamsSchema.parse(params);
293
+ return batcher.request({
294
+ field: "articles",
295
+ arguments: [
296
+ {
297
+ name: "search",
298
+ type: "String",
299
+ value: input.search
300
+ },
301
+ {
302
+ name: "folder",
303
+ type: "String",
304
+ value: input.folder
305
+ },
306
+ {
307
+ name: "tag",
308
+ type: "String",
309
+ value: input.tag
310
+ },
311
+ {
312
+ name: "limit",
313
+ type: "Int",
314
+ value: input.limit
315
+ }
316
+ ],
317
+ selection: ARTICLE_SELECTION,
318
+ schema: ArticlesSchema
319
+ });
214
320
  }
215
321
  async function getArticleBySlug$1(articleSlug) {
216
322
  const client = await apiClient();
217
323
  return getArticleBySlug(client, articleSlug);
218
324
  }
219
- async function getSellers$1() {
220
- const client = await apiClient();
221
- return getSellers(client);
325
+ async function getSellers() {
326
+ return batcher.request({
327
+ field: "sellers",
328
+ selection: SELLER_SELECTION,
329
+ schema: SellersSchema
330
+ });
222
331
  }
223
332
  async function getSellerBySlug$1(sellerSlug) {
224
333
  const client = await apiClient();
@@ -227,8 +336,40 @@ function createClient(options) {
227
336
  async function getProducts$1(params = {}) {
228
337
  const input = ProductsParamsSchema.parse(params);
229
338
  return productsCache.read(`${cacheDomain}\u0000${JSON.stringify(input)}`, PRODUCT_READ_CACHE_TTL_MS, async () => {
230
- const client = await apiClient();
231
- return getProducts(client, input);
339
+ if (input.categoryId !== void 0) {
340
+ const client = await apiClient();
341
+ return getProducts(client, input);
342
+ }
343
+ return batcher.request({
344
+ field: "products",
345
+ arguments: [{
346
+ name: "input",
347
+ type: "StorefrontProductsInput",
348
+ value: graphQLProductsInput(input)
349
+ }],
350
+ selection: PRODUCTS_SELECTION,
351
+ schema: ProductsResponseSchema
352
+ });
353
+ });
354
+ }
355
+ async function getProductsWithReviews(params, reviews = {}) {
356
+ const input = ProductsParamsSchema.parse(params);
357
+ if (input.categoryId !== void 0) throw new Error("getProductsWithReviews filtra por categories, no por categoryId");
358
+ const limit = boundedCount(reviews.limit ?? 3, 3, MAX_PRODUCT_REVIEWS);
359
+ const sortBy = reviews.sortBy === void 0 ? "" : `, sortBy: ${JSON.stringify(ProductReviewSortSchema.parse(reviews.sortBy))}`;
360
+ const sortDirection = reviews.sortDirection === void 0 ? "" : `, sortDirection: ${ProductReviewDirectionSchema.parse(reviews.sortDirection).toUpperCase()}`;
361
+ const selection = `products { ${PRODUCT_SUMMARY_SELECTION} reviews(limit: ${limit}${sortBy}${sortDirection}) { ${REVIEW_SELECTION} } }`;
362
+ return productReviewsCache.read(`${cacheDomain}\u0000${JSON.stringify(input)}\u0000${selection}`, PRODUCT_READ_CACHE_TTL_MS, async () => {
363
+ return (await batcher.request({
364
+ field: "products",
365
+ arguments: [{
366
+ name: "input",
367
+ type: "StorefrontProductsInput",
368
+ value: graphQLProductsInput(input)
369
+ }],
370
+ selection,
371
+ schema: ProductsWithReviewsSchema
372
+ })).products;
232
373
  });
233
374
  }
234
375
  async function getProductBySlug$1(productSlug, options = {}) {
@@ -253,9 +394,22 @@ function createClient(options) {
253
394
  const client = await apiClient();
254
395
  return listProductReviews(client, params);
255
396
  }
256
- async function listStoreReviews$1(params) {
257
- const client = await apiClient();
258
- return listStoreReviews(client, params);
397
+ async function listStoreReviews(params = {}) {
398
+ const input = ListStoreReviewsParamsSchema.parse(params);
399
+ return batcher.request({
400
+ field: "storeReviews",
401
+ arguments: [{
402
+ name: "limit",
403
+ type: "Int",
404
+ value: input.limit
405
+ }, {
406
+ name: "minRating",
407
+ type: "Int",
408
+ value: input.minRating
409
+ }],
410
+ selection: STORE_REVIEW_SELECTION,
411
+ schema: StorefrontStoreReviewSchema.array()
412
+ });
259
413
  }
260
414
  async function createProductReview$1(params) {
261
415
  const client = await apiClient();
@@ -434,24 +588,27 @@ function createClient(options) {
434
588
  getLayout: getLayout$1,
435
589
  getStoreId,
436
590
  getCollections: getCollections$1,
437
- getPaymentMethods: getPaymentMethods$1,
591
+ getCollectionCovers,
592
+ getCollectionsWithProducts,
593
+ getPaymentMethods,
438
594
  getCollectionBySlug: getCollectionBySlug$1,
439
595
  getPageBySlug: getPageBySlug$1,
440
596
  getCategoryBySlug: getCategoryBySlug$1,
441
597
  resolveUrl: resolveUrl$1,
442
598
  getLinks: getLinks$1,
443
599
  getSitemap: getSitemap$1,
444
- listArticles: listArticles$1,
600
+ listArticles,
445
601
  getArticleBySlug: getArticleBySlug$1,
446
602
  clearCache,
447
- getSellers: getSellers$1,
603
+ getSellers,
448
604
  getSellerBySlug: getSellerBySlug$1,
449
605
  getProducts: getProducts$1,
606
+ getProductsWithReviews,
450
607
  getProductBySlug: getProductBySlug$1,
451
608
  getRelatedProducts: getRelatedProducts$1,
452
609
  autocompleteProducts: autocompleteProducts$1,
453
610
  listProductReviews: listProductReviews$1,
454
- listStoreReviews: listStoreReviews$1,
611
+ listStoreReviews,
455
612
  createProductReview: createProductReview$1,
456
613
  createCustomerProductReview: createCustomerProductReview$1,
457
614
  createCart: createCart$1,
package/dist/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_api = require("./api.cjs");
3
- const require_graphql = require("./libs/graphql-wJH7HaQU.cjs");
3
+ const require_graphql = require("./libs/graphql-BICZrYlZ.cjs");
4
4
  const require_graphql_selection = require("./libs/graphql-selection-Cj51WkJn.cjs");
5
5
  const require_client = require("./client.cjs");
6
6
  const require_models_ids = require("./models/ids.cjs");
7
- const require_catalog_link_key = require("./libs/catalog-link-key-CZTHJBGD.cjs");
8
7
  const require_models_settings = require("./models/settings.cjs");
9
8
  const require_models_collections = require("./models/collections.cjs");
10
9
  const require_categories = require("./models/categories-DZ5i5kwi.cjs");
10
+ const require_catalog_link_key = require("./libs/catalog-link-key-CZTHJBGD.cjs");
11
11
  const require_urls = require("./models/urls-B0ZODOwH.cjs");
12
12
  const require_catalog_links = require("./models/catalog-links-c4LADGf_.cjs");
13
13
  const require_payment_methods = require("./models/payment-methods-CmK08zBM.cjs");
@@ -29,7 +29,7 @@ const require_customer_registration_service = require("./services/customer-regis
29
29
  const require_models_customer_order = require("./models/customer-order.cjs");
30
30
  const require_product_service = require("./services/product.service-B7OFZWB1.cjs");
31
31
  const require_search_service = require("./services/search.service-Bx1zbTHJ.cjs");
32
- const require_review_service = require("./services/review.service-CO2icjpu.cjs");
32
+ const require_review_service = require("./services/review.service-BgRGfq4t.cjs");
33
33
  const require_cart_service = require("./services/cart.service-B0D8s6jI.cjs");
34
34
  const require_payment_method_service = require("./services/payment-method.service-CEt_nB4R.cjs");
35
35
  const require_checkout_service = require("./services/checkout.service-CG8KrDNY.cjs");
@@ -107,6 +107,8 @@ exports.CmsSnapshotDtoSchema = require_models_settings.CmsSnapshotDtoSchema;
107
107
  exports.CmsSocialLinksDtoSchema = require_models_settings.CmsSocialLinksDtoSchema;
108
108
  exports.CmsTrackingSettingsDtoSchema = require_models_settings.CmsTrackingSettingsDtoSchema;
109
109
  exports.CollectionSchema = require_models_collections.CollectionSchema;
110
+ exports.CollectionWithCoversSchema = require_models_collections.CollectionWithCoversSchema;
111
+ exports.CollectionWithProductsSchema = require_models_collections.CollectionWithProductsSchema;
110
112
  exports.CollectionsSchema = require_models_collections.CollectionsSchema;
111
113
  exports.ComplaintBookDocumentTypeSchema = require_complaint_book.ComplaintBookDocumentTypeSchema;
112
114
  exports.ComplaintBookEntryInputSchema = require_complaint_book.ComplaintBookEntryInputSchema;
@@ -188,12 +190,15 @@ exports.ProductImageSchema = require_models_products.ProductImageSchema;
188
190
  exports.ProductMediaTypeSchema = require_models_products.ProductMediaTypeSchema;
189
191
  exports.ProductOptionGroupSchema = require_models_products.ProductOptionGroupSchema;
190
192
  exports.ProductPriceTierSchema = require_models_products.ProductPriceTierSchema;
193
+ exports.ProductReviewDirectionSchema = require_models_storefront_reviews.ProductReviewDirectionSchema;
194
+ exports.ProductReviewSortSchema = require_models_storefront_reviews.ProductReviewSortSchema;
191
195
  exports.ProductSellerSchema = require_models_products.ProductSellerSchema;
192
196
  exports.ProductSortSchema = require_models_products.ProductSortSchema;
193
197
  exports.ProductSuggestionSchema = require_models_search.ProductSuggestionSchema;
194
198
  exports.ProductSuggestionsSchema = require_models_search.ProductSuggestionsSchema;
195
199
  exports.ProductSummariesSchema = require_models_products.ProductSummariesSchema;
196
200
  exports.ProductSummarySchema = require_models_products.ProductSummarySchema;
201
+ exports.ProductWithReviewsSchema = require_models_storefront_reviews.ProductWithReviewsSchema;
197
202
  exports.ProductsParamsSchema = require_models_products.ProductsParamsSchema;
198
203
  exports.ProductsResponseSchema = require_models_products.ProductsResponseSchema;
199
204
  exports.ProvinceSchema = require_models_geo.ProvinceSchema;
package/dist/index.d.cts CHANGED
@@ -5,8 +5,8 @@ import { CreateClientOptions, StorefrontClient, createClient } from "./client.cj
5
5
  import { StorefrontLayout } from "./services/layout.service.cjs";
6
6
  import { CartToken, CartTokenSchema, EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from "./models/ids.cjs";
7
7
  import { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, getMenuItems } from "./models/settings.cjs";
8
+ import { Collection, CollectionCoversOptions, CollectionSchema, CollectionWithCovers, CollectionWithCoversSchema, CollectionWithProducts, CollectionWithProductsSchema, Collections, CollectionsSchema, CollectionsWithProductsOptions } from "./models/collections.cjs";
8
9
  import { catalogLinkKey } from "./libs/catalog-link-key.cjs";
9
- import { Collection, CollectionSchema, Collections, CollectionsSchema } from "./models/collections.cjs";
10
10
  import { CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema } from "./models/categories.cjs";
11
11
  import { SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, UrlResolution, UrlResolutionOptions, UrlResolutionSchema } from "./models/urls.cjs";
12
12
  import { CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, catalogLinkCandidates, isCatalogLinkCandidate, readCatalogLink } from "./models/catalog-links.cjs";
@@ -18,7 +18,7 @@ import { lineTotal, lineUnitPrice, modifierLabel, modifiersUnitPrice } from "./m
18
18
  import { ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.cjs";
19
19
  import { AddCartItemParams, AddCartItemParamsSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartShippingMethodTypeSchema, CreateCartParams, CreateCartParamsSchema, GetCartParams, GetCartParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema } from "./models/storefront-cart.cjs";
20
20
  import { CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, PaymentBankAccount, PaymentBankAccountSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, UploadPaymentReceiptParams } from "./models/storefront-checkout.cjs";
21
- import { CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema } from "./models/storefront-reviews.cjs";
21
+ import { CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductReviewsOptions, ProductWithReviews, ProductWithReviewsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema } from "./models/storefront-reviews.cjs";
22
22
  import { Countries, CountriesSchema, Country, CountrySchema, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, Province, ProvinceSchema, Provinces, ProvincesSchema } from "./models/geo.cjs";
23
23
  import { SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema } from "./models/sellers.cjs";
24
24
  import { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from "./models/customer-address.cjs";
@@ -52,4 +52,4 @@ import { getPageBySlug } from "./services/page.service.cjs";
52
52
  import { getArticleBySlug, listArticles } from "./services/article.service.cjs";
53
53
  import { sanitizeHtml, stripHtml } from "./utils.cjs";
54
54
  import { EmbeddedVideo, embeddedVideo } from "./video-links.cjs";
55
- export { AddCartItemParams, AddCartItemParamsSchema, type Api, ApiError, Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, BundleItem, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartToken, CartTokenSchema, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, Collection, CollectionSchema, Collections, CollectionsSchema, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, Countries, CountriesSchema, Country, CountrySchema, type CreateApiOptions, CreateCartParams, CreateCartParamsSchema, type CreateClientOptions, CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, CustomerAddress, type CustomerAddressCreated, CustomerAddressCreatedSchema, type CustomerAddressRequestOptions, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerMe, CustomerMeSchema, type CustomerOrderCancellationInput, CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, type CustomerOrderListOptions, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderRequestOptions, type CustomerOrderReturnInput, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusFilter, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema, type CustomerRequestOptions, CustomerSavedAddress, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, EmbeddedVideo, EntityId, EntityIdSchema, FacetItem, FacetItemSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetCartParams, GetCartParamsSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, type GraphQLError, type GraphQLRequestOptions, GraphQLResponseError, type GraphQLVariables, ItemModifier, ItemModifierSchema, JsonElement, JsonElementSchema, ListArticlesParams, ListArticlesParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema, type OrderReviewRequestOptions, OrderStatusView, OrderStatusViewSchema, OrderStep, OrderStepSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentBankAccount, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, Province, ProvinceSchema, Provinces, ProvincesSchema, PublicOrderTracking, PublicOrderTrackingSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, RelatedProductsParams, RelatedProductsParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilter, SearchFilterSchema, SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, type StartOrderPaymentInput, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, type StorefrontClient, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, type StorefrontLayout, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, type TrackingRequestOptions, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema, type UploadOrderPaymentReceiptInput, UploadPaymentReceiptParams, UrlResolution, UrlResolutionOptions, UrlResolutionSchema, VariantItem, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };
55
+ export { AddCartItemParams, AddCartItemParamsSchema, type Api, ApiError, Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, BundleItem, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartToken, CartTokenSchema, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, Collection, CollectionCoversOptions, CollectionSchema, CollectionWithCovers, CollectionWithCoversSchema, CollectionWithProducts, CollectionWithProductsSchema, Collections, CollectionsSchema, CollectionsWithProductsOptions, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, Countries, CountriesSchema, Country, CountrySchema, type CreateApiOptions, CreateCartParams, CreateCartParamsSchema, type CreateClientOptions, CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, CustomerAddress, type CustomerAddressCreated, CustomerAddressCreatedSchema, type CustomerAddressRequestOptions, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerMe, CustomerMeSchema, type CustomerOrderCancellationInput, CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, type CustomerOrderListOptions, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderRequestOptions, type CustomerOrderReturnInput, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusFilter, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema, type CustomerRequestOptions, CustomerSavedAddress, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, EmbeddedVideo, EntityId, EntityIdSchema, FacetItem, FacetItemSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetCartParams, GetCartParamsSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, type GraphQLError, type GraphQLRequestOptions, GraphQLResponseError, type GraphQLVariables, ItemModifier, ItemModifierSchema, JsonElement, JsonElementSchema, ListArticlesParams, ListArticlesParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema, type OrderReviewRequestOptions, OrderStatusView, OrderStatusViewSchema, OrderStep, OrderStepSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentBankAccount, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductReviewsOptions, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductWithReviews, ProductWithReviewsSchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, Province, ProvinceSchema, Provinces, ProvincesSchema, PublicOrderTracking, PublicOrderTrackingSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, RelatedProductsParams, RelatedProductsParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilter, SearchFilterSchema, SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, type StartOrderPaymentInput, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, type StorefrontClient, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, type StorefrontLayout, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, type TrackingRequestOptions, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema, type UploadOrderPaymentReceiptInput, UploadPaymentReceiptParams, UrlResolution, UrlResolutionOptions, UrlResolutionSchema, VariantItem, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ import { CreateClientOptions, StorefrontClient, createClient } from "./client.js
5
5
  import { StorefrontLayout } from "./services/layout.service.js";
6
6
  import { CartToken, CartTokenSchema, EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from "./models/ids.js";
7
7
  import { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, getMenuItems } from "./models/settings.js";
8
+ import { Collection, CollectionCoversOptions, CollectionSchema, CollectionWithCovers, CollectionWithCoversSchema, CollectionWithProducts, CollectionWithProductsSchema, Collections, CollectionsSchema, CollectionsWithProductsOptions } from "./models/collections.js";
8
9
  import { catalogLinkKey } from "./libs/catalog-link-key.js";
9
- import { Collection, CollectionSchema, Collections, CollectionsSchema } from "./models/collections.js";
10
10
  import { CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema } from "./models/categories.js";
11
11
  import { SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, UrlResolution, UrlResolutionOptions, UrlResolutionSchema } from "./models/urls.js";
12
12
  import { CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, catalogLinkCandidates, isCatalogLinkCandidate, readCatalogLink } from "./models/catalog-links.js";
@@ -18,7 +18,7 @@ import { lineTotal, lineUnitPrice, modifierLabel, modifiersUnitPrice } from "./m
18
18
  import { ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.js";
19
19
  import { AddCartItemParams, AddCartItemParamsSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartShippingMethodTypeSchema, CreateCartParams, CreateCartParamsSchema, GetCartParams, GetCartParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema } from "./models/storefront-cart.js";
20
20
  import { CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, PaymentBankAccount, PaymentBankAccountSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, UploadPaymentReceiptParams } from "./models/storefront-checkout.js";
21
- import { CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema } from "./models/storefront-reviews.js";
21
+ import { CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductReviewsOptions, ProductWithReviews, ProductWithReviewsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema } from "./models/storefront-reviews.js";
22
22
  import { Countries, CountriesSchema, Country, CountrySchema, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, Province, ProvinceSchema, Provinces, ProvincesSchema } from "./models/geo.js";
23
23
  import { SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema } from "./models/sellers.js";
24
24
  import { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from "./models/customer-address.js";
@@ -52,4 +52,4 @@ import { getPageBySlug } from "./services/page.service.js";
52
52
  import { getArticleBySlug, listArticles } from "./services/article.service.js";
53
53
  import { sanitizeHtml, stripHtml } from "./utils.js";
54
54
  import { EmbeddedVideo, embeddedVideo } from "./video-links.js";
55
- export { AddCartItemParams, AddCartItemParamsSchema, type Api, ApiError, Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, BundleItem, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartToken, CartTokenSchema, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, Collection, CollectionSchema, Collections, CollectionsSchema, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, Countries, CountriesSchema, Country, CountrySchema, type CreateApiOptions, CreateCartParams, CreateCartParamsSchema, type CreateClientOptions, CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, CustomerAddress, type CustomerAddressCreated, CustomerAddressCreatedSchema, type CustomerAddressRequestOptions, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerMe, CustomerMeSchema, type CustomerOrderCancellationInput, CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, type CustomerOrderListOptions, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderRequestOptions, type CustomerOrderReturnInput, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusFilter, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema, type CustomerRequestOptions, CustomerSavedAddress, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, EmbeddedVideo, EntityId, EntityIdSchema, FacetItem, FacetItemSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetCartParams, GetCartParamsSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, type GraphQLError, type GraphQLRequestOptions, GraphQLResponseError, type GraphQLVariables, ItemModifier, ItemModifierSchema, JsonElement, JsonElementSchema, ListArticlesParams, ListArticlesParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema, type OrderReviewRequestOptions, OrderStatusView, OrderStatusViewSchema, OrderStep, OrderStepSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentBankAccount, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, Province, ProvinceSchema, Provinces, ProvincesSchema, PublicOrderTracking, PublicOrderTrackingSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, RelatedProductsParams, RelatedProductsParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilter, SearchFilterSchema, SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, type StartOrderPaymentInput, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, type StorefrontClient, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, type StorefrontLayout, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, type TrackingRequestOptions, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema, type UploadOrderPaymentReceiptInput, UploadPaymentReceiptParams, UrlResolution, UrlResolutionOptions, UrlResolutionSchema, VariantItem, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };
55
+ export { AddCartItemParams, AddCartItemParamsSchema, type Api, ApiError, Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInput, AuthenticateOrderPaymentInputSchema, BundleItem, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWrite, CartAddressWriteSchema, CartAddressesParams, CartAddressesParamsSchema, CartBuyerParams, CartBuyerParamsSchema, CartCheckoutParams, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethod, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParams, CartCheckoutReadParamsSchema, CartCheckoutReadResponse, CartCheckoutReadResponseSchema, CartCheckoutResponse, CartCheckoutResponseSchema, CartItemModifierInput, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponse, CartPaymentReceiptResponseSchema, CartPromotionCodeParams, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartToken, CartTokenSchema, CatalogLink, CatalogLinkReference, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestor, CategoryAncestorSchema, CategoryChild, CategoryChildSchema, CategoryDetail, CategoryDetailSchema, CategoryItem, CategoryItemSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, CheckoutMode, CheckoutModeSchema, CheckoutPaymentCharge, CheckoutPaymentChargeSchema, CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDto, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, Collection, CollectionCoversOptions, CollectionSchema, CollectionWithCovers, CollectionWithCoversSchema, CollectionWithProducts, CollectionWithProductsSchema, Collections, CollectionsSchema, CollectionsWithProductsOptions, ComplaintBook, ComplaintBookDocumentType, ComplaintBookDocumentTypeSchema, ComplaintBookEntry, ComplaintBookEntryInput, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, Countries, CountriesSchema, Country, CountrySchema, type CreateApiOptions, CreateCartParams, CreateCartParamsSchema, type CreateClientOptions, CreateCustomerProductReviewParams, CreateCustomerProductReviewParamsSchema, CreateProductReviewParams, CreateProductReviewParamsSchema, CustomerAddress, type CustomerAddressCreated, CustomerAddressCreatedSchema, type CustomerAddressRequestOptions, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerAuthConfiguration, CustomerAuthConfigurationSchema, CustomerMe, CustomerMeSchema, type CustomerOrderCancellationInput, CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, type CustomerOrderListOptions, CustomerOrderListSchema, CustomerOrderPage, CustomerOrderPageSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderRequestOptions, type CustomerOrderReturnInput, CustomerOrderShipment, CustomerOrderShipmentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusFilter, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistration, CustomerRegistrationFieldModeSchema, CustomerRegistrationFields, CustomerRegistrationFieldsSchema, CustomerRegistrationInput, CustomerRegistrationInputSchema, CustomerRegistrationSchema, type CustomerRequestOptions, CustomerSavedAddress, CustomerSession, CustomerSessionCreate, CustomerSessionCreateSchema, CustomerSessionCreated, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, Department, DepartmentSchema, Departments, DepartmentsSchema, District, DistrictSchema, Districts, DistrictsSchema, EmbeddedVideo, EntityId, EntityIdSchema, FacetItem, FacetItemSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetCartParams, GetCartParamsSchema, GetDepartmentsParams, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParams, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParams, GetProvincesParamsParsed, GetProvincesParamsSchema, GetShippingOptionsParams, GetShippingOptionsParamsSchema, type GraphQLError, type GraphQLRequestOptions, GraphQLResponseError, type GraphQLVariables, ItemModifier, ItemModifierSchema, JsonElement, JsonElementSchema, ListArticlesParams, ListArticlesParamsSchema, ListProductReviewsParams, ListProductReviewsParamsSchema, ListStoreReviewsParams, ListStoreReviewsParamsSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraft, OrderDraftCheckout, OrderDraftCheckoutSchema, OrderDraftItem, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReview, OrderPaymentInReviewSchema, OrderPaymentMethod, OrderPaymentMethodSchema, OrderPaymentStart, OrderPaymentStartSchema, OrderReviewContext, OrderReviewContextItem, OrderReviewContextItemSchema, OrderReviewContextSchema, type OrderReviewRequestOptions, OrderStatusView, OrderStatusViewSchema, OrderStep, OrderStepSchema, PaymentAuthentication3DS, PaymentAuthentication3DSSchema, PaymentBankAccount, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductReviewsOptions, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductWithReviews, ProductWithReviewsSchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, Province, ProvinceSchema, Provinces, ProvincesSchema, PublicOrderTracking, PublicOrderTrackingSchema, PutCartPaymentMethodParams, PutCartPaymentMethodParamsSchema, PutShippingMethodParams, PutShippingMethodParamsSchema, RelatedProductsParams, RelatedProductsParamsSchema, RemoveCartItemParams, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilter, SearchFilterSchema, SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelection, ShippingMethodTargetSelectionSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponse, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, SitemapItem, SitemapItemSchema, SitemapPage, SitemapPageSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, type StartOrderPaymentInput, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, type StorefrontClient, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceType, StorefrontInvoiceTypeSchema, type StorefrontLayout, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBump, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreReview, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, type TrackingRequestOptions, UpdateCartItemQuantityParams, UpdateCartItemQuantityParamsSchema, type UploadOrderPaymentReceiptInput, UploadPaymentReceiptParams, UrlResolution, UrlResolutionOptions, UrlResolutionSchema, VariantItem, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { ApiError, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from "./api.js";
2
- import { GraphQLResponseError } from "./libs/graphql-_6Y8lR_Q.js";
2
+ import { GraphQLResponseError } from "./libs/graphql-8PZkrq66.js";
3
3
  import { graphQLSelection } from "./libs/graphql-selection-H1RMh6VD.js";
4
4
  import { createClient } from "./client.js";
5
5
  import { CartTokenSchema, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from "./models/ids.js";
6
- import { catalogLinkKey } from "./libs/catalog-link-key-B7l5KZsF.js";
7
6
  import { CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElementSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, getMenuItems } from "./models/settings.js";
8
- import { CollectionSchema, CollectionsSchema } from "./models/collections.js";
7
+ import { CollectionSchema, CollectionWithCoversSchema, CollectionWithProductsSchema, CollectionsSchema } from "./models/collections.js";
9
8
  import { CategoryAncestorSchema, CategoryChildSchema, CategoryDetailSchema, CategoryItemSchema } from "./models/categories-CKkJY8_P.js";
9
+ import { catalogLinkKey } from "./libs/catalog-link-key-B7l5KZsF.js";
10
10
  import { SitemapItemSchema, SitemapPageSchema, UrlResolutionSchema } from "./models/urls-Dt_dTt4Q.js";
11
11
  import { CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, catalogLinkCandidates, isCatalogLinkCandidate, readCatalogLink } from "./models/catalog-links-BzJeyBy4.js";
12
12
  import { StorefrontPaymentCodeSchema, StorefrontPaymentMethodSchema, StorefrontPaymentMethodsSchema } from "./models/payment-methods--VUUZpMz.js";
@@ -17,7 +17,7 @@ import { lineTotal, lineUnitPrice, modifierLabel, modifiersUnitPrice } from "./m
17
17
  import { ProductAutocompleteParamsSchema, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.js";
18
18
  import { AddCartItemParamsSchema, CartItemModifierOptionSchema, CartItemModifierSchema, CartShippingMethodTypeSchema, CreateCartParamsSchema, GetCartParamsSchema, RemoveCartItemParamsSchema, ShippingMethodTargetSelectionSchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontInvoiceTypeSchema, UpdateCartItemQuantityParamsSchema } from "./models/storefront-cart.js";
19
19
  import { CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CheckoutMetadataValueSchema, CheckoutModeSchema, CheckoutPaymentChargeSchema, GetShippingOptionsParamsSchema, PaymentBankAccountSchema, PutCartPaymentMethodParamsSchema, PutShippingMethodParamsSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, StorefrontOrderBumpSchema } from "./models/storefront-checkout.js";
20
- import { CreateCustomerProductReviewParamsSchema, CreateProductReviewParamsSchema, ListProductReviewsParamsSchema, ListStoreReviewsParamsSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontStoreReviewSchema } from "./models/storefront-reviews.js";
20
+ import { CreateCustomerProductReviewParamsSchema, CreateProductReviewParamsSchema, ListProductReviewsParamsSchema, ListStoreReviewsParamsSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductWithReviewsSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontStoreReviewSchema } from "./models/storefront-reviews.js";
21
21
  import { CountriesSchema, CountrySchema, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, ProvinceSchema, ProvincesSchema } from "./models/geo.js";
22
22
  import { SellerLinkStyleSchema, SellerLinksSchema, SellerProfileSchema, SellerRatingSchema, SellerSummarySchema, SellersSchema } from "./models/sellers.js";
23
23
  import { CustomerAddressSchema, CustomerAddressUpsertInputSchema, CustomerAddressesSchema, toCustomerSavedAddresses } from "./models/customer-address.js";
@@ -28,7 +28,7 @@ import { completeCustomerRegistration, getCustomerRegistration } from "./service
28
28
  import { CustomerOrderDetailSchema, CustomerOrderLineItemSchema, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPageSchema, CustomerOrderPaymentSchema, CustomerOrderShipmentSchema, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineSchema, OrderStepSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime } from "./models/customer-order.js";
29
29
  import { getProductBySlug, getProducts, getRelatedProducts } from "./services/product.service-B05Qmbuh.js";
30
30
  import { autocompleteProducts } from "./services/search.service-DSBMhaSY.js";
31
- import { createProductReview, listProductReviews } from "./services/review.service-De1YkhFp.js";
31
+ import { createProductReview, listProductReviews } from "./services/review.service-DMgxbO94.js";
32
32
  import { addCartItem, createCart, getCart, removeCartItem, updateCartItemQuantity } from "./services/cart.service-yMCz9oQP.js";
33
33
  import { getPaymentMethods } from "./services/payment-method.service-CjKbAsOh.js";
34
34
  import { addCartPromotionCode, checkoutCart, getCartCheckout, getShippingOptions, patchCartAddresses, patchCartBuyer, putCartPaymentMethod, putCartShippingMethod, removeCartPromotionCode, uploadPaymentReceipt } from "./services/checkout.service-CC-3tm2y.js";
@@ -51,4 +51,4 @@ import { getPageBySlug } from "./services/page.service-CWhWCjMQ.js";
51
51
  import { getArticleBySlug, listArticles } from "./services/article.service-DBsOvflH.js";
52
52
  import { sanitizeHtml, stripHtml } from "./utils-DK7qa54o.js";
53
53
  import { embeddedVideo } from "./video-links-CbRO0m8V.js";
54
- export { AddCartItemParamsSchema, ApiError, ArticleSchema, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInputSchema, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartTokenSchema, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestorSchema, CategoryChildSchema, CategoryDetailSchema, CategoryItemSchema, CheckoutMetadataValueSchema, CheckoutModeSchema, CheckoutPaymentChargeSchema, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, CollectionSchema, CollectionsSchema, ComplaintBookDocumentTypeSchema, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, CountriesSchema, CountrySchema, CreateCartParamsSchema, CreateCustomerProductReviewParamsSchema, CreateProductReviewParamsSchema, CustomerAddressCreatedSchema, CustomerAddressSchema, CustomerAddressUpsertInputSchema, CustomerAddressesSchema, CustomerAuthConfigurationSchema, CustomerMeSchema, CustomerOrderDetailSchema, CustomerOrderLineItemSchema, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPageSchema, CustomerOrderPaymentSchema, CustomerOrderShipmentSchema, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineSchema, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistrationFieldModeSchema, CustomerRegistrationFieldsSchema, CustomerRegistrationInputSchema, CustomerRegistrationSchema, CustomerSessionCreateSchema, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, EntityIdSchema, FacetItemSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetCartParamsSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, GetShippingOptionsParamsSchema, GraphQLResponseError, ItemModifierSchema, JsonElementSchema, ListArticlesParamsSchema, ListProductReviewsParamsSchema, ListStoreReviewsParamsSchema, ModifierDisplaySchema, ModifierGroupItemSchema, ModifierOptionItemSchema, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraftCheckoutSchema, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReviewSchema, OrderPaymentMethodSchema, OrderPaymentStartSchema, OrderReviewContextItemSchema, OrderReviewContextSchema, OrderStatusViewSchema, OrderStepSchema, PaymentAuthentication3DSSchema, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParamsSchema, ProductDetailSchema, ProductImageSchema, ProductMediaTypeSchema, ProductOptionGroupSchema, ProductPriceTierSchema, ProductSellerSchema, ProductSortSchema, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummarySchema, ProductsParamsSchema, ProductsResponseSchema, ProvinceSchema, ProvincesSchema, PublicOrderTrackingSchema, PutCartPaymentMethodParamsSchema, PutShippingMethodParamsSchema, RelatedProductsParamsSchema, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilterSchema, SellerLinkStyleSchema, SellerLinksSchema, SellerProfileSchema, SellerRatingSchema, SellerSummarySchema, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelectionSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, SitemapItemSchema, SitemapPageSchema, SizeGuideMeasurementSchema, SizeGuideRowSchema, SizeGuideSchema, SpecItemSchema, SpecificationTypeSchema, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceTypeSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethodSchema, StorefrontPaymentMethodsSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontSettingsSchema, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, UpdateCartItemQuantityParamsSchema, UrlResolutionSchema, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };
54
+ export { AddCartItemParamsSchema, ApiError, ArticleSchema, ArticleSummarySchema, ArticlesSchema, AuthenticateOrderPaymentInputSchema, BundleItemSchema, CATALOG_LINK_ID, CATALOG_LINK_MAX_LENGTH, COMPLAINT_BOOK_ATTACHMENT_TYPES, COMPLAINT_BOOK_MAX_ATTACHMENTS, COMPLAINT_BOOK_MAX_ATTACHMENT_BYTES, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentMethodSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartItemModifierOptionSchema, CartItemModifierSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CartShippingMethodTypeSchema, CartTokenSchema, CatalogLinkReferenceSchema, CatalogLinkSchema, CatalogLinksResponseSchema, CategoryAncestorSchema, CategoryChildSchema, CategoryDetailSchema, CategoryItemSchema, CheckoutMetadataValueSchema, CheckoutModeSchema, CheckoutPaymentChargeSchema, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, CollectionSchema, CollectionWithCoversSchema, CollectionWithProductsSchema, CollectionsSchema, ComplaintBookDocumentTypeSchema, ComplaintBookEntryInputSchema, ComplaintBookEntrySchema, ComplaintBookSchema, CountriesSchema, CountrySchema, CreateCartParamsSchema, CreateCustomerProductReviewParamsSchema, CreateProductReviewParamsSchema, CustomerAddressCreatedSchema, CustomerAddressSchema, CustomerAddressUpsertInputSchema, CustomerAddressesSchema, CustomerAuthConfigurationSchema, CustomerMeSchema, CustomerOrderDetailSchema, CustomerOrderLineItemSchema, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPageSchema, CustomerOrderPaymentSchema, CustomerOrderShipmentSchema, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineSchema, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegistrationFieldModeSchema, CustomerRegistrationFieldsSchema, CustomerRegistrationInputSchema, CustomerRegistrationSchema, CustomerSessionCreateSchema, CustomerSessionCreatedSchema, CustomerSessionProfileSchema, CustomerSessionSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, EntityIdSchema, FacetItemSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetCartParamsSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, GetShippingOptionsParamsSchema, GraphQLResponseError, ItemModifierSchema, JsonElementSchema, ListArticlesParamsSchema, ListProductReviewsParamsSchema, ListStoreReviewsParamsSchema, ModifierDisplaySchema, ModifierGroupItemSchema, ModifierOptionItemSchema, ModifierSelectionTypeSchema, NullableEntityIdSchema, OptionalEntityIdSchema, OrderDraftCheckoutSchema, OrderDraftItemSchema, OrderDraftSchema, OrderPaymentInReviewSchema, OrderPaymentMethodSchema, OrderPaymentStartSchema, OrderReviewContextItemSchema, OrderReviewContextSchema, OrderStatusViewSchema, OrderStepSchema, PaymentAuthentication3DSSchema, PaymentBankAccountSchema, PaymentPublicConfigurationSchema, ProductAutocompleteParamsSchema, ProductDetailSchema, ProductImageSchema, ProductMediaTypeSchema, ProductOptionGroupSchema, ProductPriceTierSchema, ProductReviewDirectionSchema, ProductReviewSortSchema, ProductSellerSchema, ProductSortSchema, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummarySchema, ProductWithReviewsSchema, ProductsParamsSchema, ProductsResponseSchema, ProvinceSchema, ProvincesSchema, PublicOrderTrackingSchema, PutCartPaymentMethodParamsSchema, PutShippingMethodParamsSchema, RelatedProductsParamsSchema, RemoveCartItemParamsSchema, STOREFRONT_SETTINGS_SCHEMA_VERSION, SearchFilterSchema, SellerLinkStyleSchema, SellerLinksSchema, SellerProfileSchema, SellerRatingSchema, SellerSummarySchema, SellersSchema, ShipmentTrackingEventSchema, ShippingMethodTargetSelectionSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, SitemapItemSchema, SitemapPageSchema, SizeGuideMeasurementSchema, SizeGuideRowSchema, SizeGuideSchema, SpecItemSchema, SpecificationTypeSchema, StoreBusinessSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontInvoiceTypeSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBumpSchema, StorefrontPaymentCodeSchema, StorefrontPaymentMethodSchema, StorefrontPaymentMethodsSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontSettingsSchema, StorefrontStoreReviewSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, TRACKING_STATUS_LABELS, UpdateCartItemQuantityParamsSchema, UrlResolutionSchema, VariantItemSchema, addCartItem, addCartPromotionCode, authenticateOrderPayment, autocompleteProducts, catalogLinkCandidates, catalogLinkKey, checkoutCart, checkoutOrderDraft, completeCustomerRegistration, createApi, createCart, createClient, createComplaintBookEntry, createCustomerAddress, createProductReview, customerMeToProfile, customerMeToProfilePatch, customerOrderStatusTone, customerProfileToPatch, deleteCustomerAddress, embeddedVideo, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime, formatTrackingStatus, getArticleBySlug, getCart, getCartCheckout, getComplaintBook, getCountries, getCustomerAddresses, getCustomerMe, getCustomerOrder, getCustomerOrders, getCustomerRegistration, getDepartments, getDistricts, getMenuItems, getOrderDraft, getOrderReviewContext, getOrderStatus, getOrderTracking, getPageBySlug, getPaymentMethods, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getSellerBySlug, getSellers, getShippingOptions, graphQLSelection, isCatalogLinkCandidate, lineTotal, lineUnitPrice, listArticles, listProductReviews, modifierLabel, modifiersUnitPrice, patchCartAddresses, patchCartBuyer, patchCustomer, putCartPaymentMethod, putCartShippingMethod, readCatalogLink, removeCartItem, removeCartPromotionCode, requestCustomerOrderCancellation, requestCustomerOrderReturn, resolveApiBaseUrl, sanitizeHtml, startOrderPayment, stripHtml, toCustomerSavedAddresses, updateCartItemQuantity, updateCustomerAddress, uploadOrderPaymentReceipt, uploadPaymentReceipt };