@ecomiq/core 1.1.0 → 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.
- package/README.md +16 -2
- package/dist/client.cjs +181 -24
- package/dist/client.d.cts +8 -2
- package/dist/client.d.ts +8 -2
- package/dist/client.js +184 -27
- package/dist/index.cjs +16 -10
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +10 -9
- package/dist/libs/{graphql-_6Y8lR_Q.js → graphql-8PZkrq66.js} +12 -8
- package/dist/libs/{graphql-wJH7HaQU.cjs → graphql-BICZrYlZ.cjs} +12 -7
- package/dist/libs/graphql-batch-AFRui-4Y.js +125 -0
- package/dist/libs/graphql-batch-B0xSD6G2.cjs +125 -0
- package/dist/libs/graphql-batch.d.cts +2 -0
- package/dist/libs/graphql-batch.d.ts +2 -0
- package/dist/models/collections.cjs +5 -0
- package/dist/models/collections.d.cts +109 -1
- package/dist/models/collections.d.ts +109 -1
- package/dist/models/collections.js +4 -1
- package/dist/models/customer-order.cjs +1 -1
- package/dist/models/customer-order.js +1 -1
- package/dist/models/{order-draft-C-2WRbjl.cjs → order-draft-DWKoM7Lu.cjs} +1 -1
- package/dist/models/{order-draft-CSIWRIV0.js → order-draft-DhEKDqI8.js} +1 -1
- package/dist/models/{personalization-BPFmkdJ0.js → personalization-CdwIzzSn.js} +1 -22
- package/dist/models/{personalization-CQosKg8O.cjs → personalization-Uh_MWts-.cjs} +0 -25
- package/dist/models/personalization-lines-BurVHB4o.cjs +26 -0
- package/dist/models/personalization-lines-DigNu6OK.js +23 -0
- package/dist/models/personalization-lines.d.cts +15 -0
- package/dist/models/personalization-lines.d.ts +15 -0
- package/dist/models/personalization.d.cts +1 -15
- package/dist/models/personalization.d.ts +1 -15
- package/dist/models/products.cjs +1 -1
- package/dist/models/products.js +1 -1
- package/dist/models/storefront-cart.cjs +1 -1
- package/dist/models/storefront-cart.js +1 -1
- package/dist/models/storefront-reviews.cjs +9 -2
- package/dist/models/storefront-reviews.d.cts +99 -0
- package/dist/models/storefront-reviews.d.ts +99 -0
- package/dist/models/storefront-reviews.js +7 -3
- package/dist/services/layout.service-C6zG6zY7.cjs +65 -0
- package/dist/services/layout.service-DufBhrOR.js +65 -0
- package/dist/services/layout.service.d.cts +1 -0
- package/dist/services/layout.service.d.ts +1 -0
- package/dist/services/{order-draft.service-Dlu6eEkV.cjs → order-draft.service-CdJbIUT6.cjs} +1 -1
- package/dist/services/{order-draft.service-B0VcmWhn.js → order-draft.service-DHhae1Ct.js} +1 -1
- package/dist/services/{review.service-CO2icjpu.cjs → review.service-BgRGfq4t.cjs} +0 -8
- package/dist/services/{review.service-De1YkhFp.js → review.service-DMgxbO94.js} +2 -9
- package/package.json +1 -1
- package/dist/services/layout.service-BkvLzl1g.cjs +0 -50
- package/dist/services/layout.service-DmbeMOkK.js +0 -50
package/dist/client.js
CHANGED
|
@@ -1,35 +1,69 @@
|
|
|
1
1
|
import { ApiError, createApi } from "./api.js";
|
|
2
|
-
import { executeGraphQL } from "./libs/graphql-
|
|
3
|
-
import {
|
|
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-
|
|
7
|
-
import {
|
|
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";
|
|
12
|
-
import { checkoutOrderDraft, getOrderDraft } from "./services/order-draft.service-
|
|
19
|
+
import { checkoutOrderDraft, getOrderDraft } from "./services/order-draft.service-DHhae1Ct.js";
|
|
13
20
|
import { createComplaintBookEntry, getComplaintBook } from "./services/complaint-book.service-DXiVyKdD.js";
|
|
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
|
|
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
|
|
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
|
|
30
|
-
import {
|
|
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
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
|
212
|
-
const
|
|
213
|
-
return
|
|
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
|
|
220
|
-
|
|
221
|
-
|
|
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
|
-
|
|
231
|
-
|
|
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
|
|
257
|
-
const
|
|
258
|
-
return
|
|
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
|
-
|
|
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
|
|
600
|
+
listArticles,
|
|
445
601
|
getArticleBySlug: getArticleBySlug$1,
|
|
446
602
|
clearCache,
|
|
447
|
-
getSellers
|
|
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
|
|
611
|
+
listStoreReviews,
|
|
455
612
|
createProductReview: createProductReview$1,
|
|
456
613
|
createCustomerProductReview: createCustomerProductReview$1,
|
|
457
614
|
createCart: createCart$1,
|
package/dist/index.cjs
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_api = require("./api.cjs");
|
|
3
|
-
const require_graphql = require("./libs/graphql-
|
|
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");
|
|
14
14
|
const require_articles = require("./models/articles-xHCXLKDK.cjs");
|
|
15
15
|
const require_models_products = require("./models/products.cjs");
|
|
16
|
-
const require_personalization = require("./models/personalization-
|
|
16
|
+
const require_personalization = require("./models/personalization-Uh_MWts-.cjs");
|
|
17
|
+
const require_personalization_lines = require("./models/personalization-lines-BurVHB4o.cjs");
|
|
17
18
|
const require_models_search = require("./models/search.cjs");
|
|
18
19
|
const require_models_storefront_cart = require("./models/storefront-cart.cjs");
|
|
19
20
|
const require_models_storefront_checkout = require("./models/storefront-checkout.cjs");
|
|
@@ -28,7 +29,7 @@ const require_customer_registration_service = require("./services/customer-regis
|
|
|
28
29
|
const require_models_customer_order = require("./models/customer-order.cjs");
|
|
29
30
|
const require_product_service = require("./services/product.service-B7OFZWB1.cjs");
|
|
30
31
|
const require_search_service = require("./services/search.service-Bx1zbTHJ.cjs");
|
|
31
|
-
const require_review_service = require("./services/review.service-
|
|
32
|
+
const require_review_service = require("./services/review.service-BgRGfq4t.cjs");
|
|
32
33
|
const require_cart_service = require("./services/cart.service-B0D8s6jI.cjs");
|
|
33
34
|
const require_payment_method_service = require("./services/payment-method.service-CEt_nB4R.cjs");
|
|
34
35
|
const require_checkout_service = require("./services/checkout.service-CG8KrDNY.cjs");
|
|
@@ -43,8 +44,8 @@ const require_order_review = require("./models/order-review--xGlZKtS.cjs");
|
|
|
43
44
|
const require_order_review_service = require("./services/order-review.service-BEr-FB6_.cjs");
|
|
44
45
|
const require_order_status = require("./models/order-status-CS_OeSPY.cjs");
|
|
45
46
|
const require_order_status_service = require("./services/order-status.service-Cn7dsaJo.cjs");
|
|
46
|
-
const require_order_draft = require("./models/order-draft-
|
|
47
|
-
const require_order_draft_service = require("./services/order-draft.service-
|
|
47
|
+
const require_order_draft = require("./models/order-draft-DWKoM7Lu.cjs");
|
|
48
|
+
const require_order_draft_service = require("./services/order-draft.service-CdJbIUT6.cjs");
|
|
48
49
|
const require_complaint_book = require("./models/complaint-book-D5INpuI2.cjs");
|
|
49
50
|
const require_complaint_book_service = require("./services/complaint-book.service-C7TxltQe.cjs");
|
|
50
51
|
const require_page_service = require("./services/page.service-DmCSeMiR.cjs");
|
|
@@ -106,6 +107,8 @@ exports.CmsSnapshotDtoSchema = require_models_settings.CmsSnapshotDtoSchema;
|
|
|
106
107
|
exports.CmsSocialLinksDtoSchema = require_models_settings.CmsSocialLinksDtoSchema;
|
|
107
108
|
exports.CmsTrackingSettingsDtoSchema = require_models_settings.CmsTrackingSettingsDtoSchema;
|
|
108
109
|
exports.CollectionSchema = require_models_collections.CollectionSchema;
|
|
110
|
+
exports.CollectionWithCoversSchema = require_models_collections.CollectionWithCoversSchema;
|
|
111
|
+
exports.CollectionWithProductsSchema = require_models_collections.CollectionWithProductsSchema;
|
|
109
112
|
exports.CollectionsSchema = require_models_collections.CollectionsSchema;
|
|
110
113
|
exports.ComplaintBookDocumentTypeSchema = require_complaint_book.ComplaintBookDocumentTypeSchema;
|
|
111
114
|
exports.ComplaintBookEntryInputSchema = require_complaint_book.ComplaintBookEntryInputSchema;
|
|
@@ -187,12 +190,15 @@ exports.ProductImageSchema = require_models_products.ProductImageSchema;
|
|
|
187
190
|
exports.ProductMediaTypeSchema = require_models_products.ProductMediaTypeSchema;
|
|
188
191
|
exports.ProductOptionGroupSchema = require_models_products.ProductOptionGroupSchema;
|
|
189
192
|
exports.ProductPriceTierSchema = require_models_products.ProductPriceTierSchema;
|
|
193
|
+
exports.ProductReviewDirectionSchema = require_models_storefront_reviews.ProductReviewDirectionSchema;
|
|
194
|
+
exports.ProductReviewSortSchema = require_models_storefront_reviews.ProductReviewSortSchema;
|
|
190
195
|
exports.ProductSellerSchema = require_models_products.ProductSellerSchema;
|
|
191
196
|
exports.ProductSortSchema = require_models_products.ProductSortSchema;
|
|
192
197
|
exports.ProductSuggestionSchema = require_models_search.ProductSuggestionSchema;
|
|
193
198
|
exports.ProductSuggestionsSchema = require_models_search.ProductSuggestionsSchema;
|
|
194
199
|
exports.ProductSummariesSchema = require_models_products.ProductSummariesSchema;
|
|
195
200
|
exports.ProductSummarySchema = require_models_products.ProductSummarySchema;
|
|
201
|
+
exports.ProductWithReviewsSchema = require_models_storefront_reviews.ProductWithReviewsSchema;
|
|
196
202
|
exports.ProductsParamsSchema = require_models_products.ProductsParamsSchema;
|
|
197
203
|
exports.ProductsResponseSchema = require_models_products.ProductsResponseSchema;
|
|
198
204
|
exports.ProvinceSchema = require_models_geo.ProvinceSchema;
|
|
@@ -317,12 +323,12 @@ exports.getSellers = require_seller_service.getSellers;
|
|
|
317
323
|
exports.getShippingOptions = require_checkout_service.getShippingOptions;
|
|
318
324
|
exports.graphQLSelection = require_graphql_selection.graphQLSelection;
|
|
319
325
|
exports.isCatalogLinkCandidate = require_catalog_links.isCatalogLinkCandidate;
|
|
320
|
-
exports.lineTotal =
|
|
321
|
-
exports.lineUnitPrice =
|
|
326
|
+
exports.lineTotal = require_personalization_lines.lineTotal;
|
|
327
|
+
exports.lineUnitPrice = require_personalization_lines.lineUnitPrice;
|
|
322
328
|
exports.listArticles = require_article_service.listArticles;
|
|
323
329
|
exports.listProductReviews = require_review_service.listProductReviews;
|
|
324
|
-
exports.modifierLabel =
|
|
325
|
-
exports.modifiersUnitPrice =
|
|
330
|
+
exports.modifierLabel = require_personalization_lines.modifierLabel;
|
|
331
|
+
exports.modifiersUnitPrice = require_personalization_lines.modifiersUnitPrice;
|
|
326
332
|
exports.patchCartAddresses = require_checkout_service.patchCartAddresses;
|
|
327
333
|
exports.patchCartBuyer = require_checkout_service.patchCartBuyer;
|
|
328
334
|
exports.patchCustomer = require_customer_service.patchCustomer;
|
package/dist/index.d.cts
CHANGED
|
@@ -5,19 +5,20 @@ 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";
|
|
13
13
|
import { StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema } from "./models/payment-methods.cjs";
|
|
14
14
|
import { Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, ListArticlesParams, ListArticlesParamsSchema } from "./models/articles.cjs";
|
|
15
15
|
import { BundleItem, BundleItemSchema, FacetItem, FacetItemSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParams, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, VariantItem, VariantItemSchema } from "./models/products.cjs";
|
|
16
|
-
import { ItemModifier, ItemModifierSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema
|
|
16
|
+
import { ItemModifier, ItemModifierSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema } from "./models/personalization.cjs";
|
|
17
|
+
import { lineTotal, lineUnitPrice, modifierLabel, modifiersUnitPrice } from "./models/personalization-lines.cjs";
|
|
17
18
|
import { ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.cjs";
|
|
18
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";
|
|
19
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";
|
|
20
|
-
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";
|
|
21
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";
|
|
22
23
|
import { SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema } from "./models/sellers.cjs";
|
|
23
24
|
import { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from "./models/customer-address.cjs";
|
|
@@ -51,4 +52,4 @@ import { getPageBySlug } from "./services/page.service.cjs";
|
|
|
51
52
|
import { getArticleBySlug, listArticles } from "./services/article.service.cjs";
|
|
52
53
|
import { sanitizeHtml, stripHtml } from "./utils.cjs";
|
|
53
54
|
import { EmbeddedVideo, embeddedVideo } from "./video-links.cjs";
|
|
54
|
-
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,19 +5,20 @@ 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";
|
|
13
13
|
import { StorefrontPaymentCodeSchema, StorefrontPaymentMethod, StorefrontPaymentMethodSchema, StorefrontPaymentMethods, StorefrontPaymentMethodsSchema } from "./models/payment-methods.js";
|
|
14
14
|
import { Article, ArticleSchema, ArticleSummary, ArticleSummarySchema, ArticlesSchema, ListArticlesParams, ListArticlesParamsSchema } from "./models/articles.js";
|
|
15
15
|
import { BundleItem, BundleItemSchema, FacetItem, FacetItemSchema, ProductBySlugOptions, ProductDetail, ProductDetailSchema, ProductImage, ProductImageSchema, ProductMediaType, ProductMediaTypeSchema, ProductOptionGroup, ProductOptionGroupSchema, ProductPriceTier, ProductPriceTierSchema, ProductSeller, ProductSellerSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsInput, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParams, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, SpecificationTypeSchema, VariantItem, VariantItemSchema } from "./models/products.js";
|
|
16
|
-
import { ItemModifier, ItemModifierSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema
|
|
16
|
+
import { ItemModifier, ItemModifierSchema, ModifierDisplay, ModifierDisplaySchema, ModifierGroupItem, ModifierGroupItemSchema, ModifierOptionItem, ModifierOptionItemSchema, ModifierSelectionType, ModifierSelectionTypeSchema } from "./models/personalization.js";
|
|
17
|
+
import { lineTotal, lineUnitPrice, modifierLabel, modifiersUnitPrice } from "./models/personalization-lines.js";
|
|
17
18
|
import { ProductAutocompleteParams, ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from "./models/search.js";
|
|
18
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";
|
|
19
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";
|
|
20
|
-
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";
|
|
21
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";
|
|
22
23
|
import { SellerLinkStyle, SellerLinkStyleSchema, SellerLinks, SellerLinksSchema, SellerProfile, SellerProfileSchema, SellerRating, SellerRatingSchema, SellerSummary, SellerSummarySchema, Sellers, SellersSchema } from "./models/sellers.js";
|
|
23
24
|
import { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from "./models/customer-address.js";
|
|
@@ -51,4 +52,4 @@ import { getPageBySlug } from "./services/page.service.js";
|
|
|
51
52
|
import { getArticleBySlug, listArticles } from "./services/article.service.js";
|
|
52
53
|
import { sanitizeHtml, stripHtml } from "./utils.js";
|
|
53
54
|
import { EmbeddedVideo, embeddedVideo } from "./video-links.js";
|
|
54
|
-
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 };
|