@ecomiq/core 0.1.1 → 0.1.3
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/dist/client.cjs +14 -4
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +10 -7
- package/dist/client.d.ts +10 -7
- package/dist/client.js +14 -4
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +15 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/package.json +7 -8
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Api } from './api.cjs';
|
|
2
2
|
export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.cjs';
|
|
3
3
|
export { CreateClientOptions, StorefrontClient, createClient, createStorefrontClient } from './client.cjs';
|
|
4
|
-
|
|
4
|
+
import { CmsPageDetailsDto } from './models/settings.cjs';
|
|
5
|
+
export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.cjs';
|
|
5
6
|
export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.cjs';
|
|
6
7
|
import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.cjs';
|
|
7
8
|
export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.cjs';
|
|
@@ -1102,8 +1103,11 @@ declare function getProvinces(api: Api, params: GetProvincesParams): Promise<Pro
|
|
|
1102
1103
|
/** GET /v1/geo/districts?countryCode=&provinceCode=&source=&search=&limit= */
|
|
1103
1104
|
declare function getDistricts(api: Api, params: GetDistrictsParams): Promise<Districts>;
|
|
1104
1105
|
|
|
1106
|
+
/** GET /v1/pages/{slug} */
|
|
1107
|
+
declare function getPageBySlug(api: Api, pageSlug: string): Promise<CmsPageDetailsDto>;
|
|
1108
|
+
|
|
1105
1109
|
declare function sanitizeHtml(html: string): string;
|
|
1106
1110
|
/** Convierte HTML en texto plano (metadata, JSON-LD). */
|
|
1107
1111
|
declare function stripHtml(html: string): string;
|
|
1108
1112
|
|
|
1109
|
-
export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
|
1113
|
+
export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, CmsPageDetailsDto, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Api } from './api.js';
|
|
2
2
|
export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.js';
|
|
3
3
|
export { CreateClientOptions, StorefrontClient, createClient, createStorefrontClient } from './client.js';
|
|
4
|
-
|
|
4
|
+
import { CmsPageDetailsDto } from './models/settings.js';
|
|
5
|
+
export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.js';
|
|
5
6
|
export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.js';
|
|
6
7
|
import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.js';
|
|
7
8
|
export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.js';
|
|
@@ -1102,8 +1103,11 @@ declare function getProvinces(api: Api, params: GetProvincesParams): Promise<Pro
|
|
|
1102
1103
|
/** GET /v1/geo/districts?countryCode=&provinceCode=&source=&search=&limit= */
|
|
1103
1104
|
declare function getDistricts(api: Api, params: GetDistrictsParams): Promise<Districts>;
|
|
1104
1105
|
|
|
1106
|
+
/** GET /v1/pages/{slug} */
|
|
1107
|
+
declare function getPageBySlug(api: Api, pageSlug: string): Promise<CmsPageDetailsDto>;
|
|
1108
|
+
|
|
1105
1109
|
declare function sanitizeHtml(html: string): string;
|
|
1106
1110
|
/** Convierte HTML en texto plano (metadata, JSON-LD). */
|
|
1107
1111
|
declare function stripHtml(html: string): string;
|
|
1108
1112
|
|
|
1109
|
-
export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
|
1113
|
+
export { AddCartItemParams, Api, CartAddressesParams, CartBuyerParams, CartCheckoutParams, CartCheckoutReadParams, CartCheckoutReadResponse, CartCheckoutResponse, CartPaymentReceiptResponse, CartPromotionCodeParams, CmsPageDetailsDto, Countries, CreateCartParams, CreateProductReviewParams, Departments, Districts, GetCartParams, GetDepartmentsParams, GetDistrictsParams, GetProvincesParams, GetShippingOptionsParams, ListProductReviewsParams, ProductAutocompleteParams, ProductDetailParams, ProductsParamsInput, Provinces, PutShippingMethodParams, RelatedProductsParams, RemoveCartItemParams, ShippingOptionsResponse, UpdateCartItemQuantityParams, UploadPaymentReceiptParams, addCartItem, addCartPromotionCode, autocompleteProducts, checkoutCart, createCart, createProductReview, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
package/dist/index.js
CHANGED
|
@@ -852,6 +852,11 @@ async function getCollections(api) {
|
|
|
852
852
|
async function getCollectionBySlug(api, collectionSlug) {
|
|
853
853
|
return api.get(`collections/${encodeURIComponent(collectionSlug)}`, CollectionSchema);
|
|
854
854
|
}
|
|
855
|
+
|
|
856
|
+
// src/services/page.service.ts
|
|
857
|
+
async function getPageBySlug(api, pageSlug) {
|
|
858
|
+
return api.get(`pages/${encodeURIComponent(pageSlug)}`, CmsPageDetailsDtoSchema);
|
|
859
|
+
}
|
|
855
860
|
var CartBuyerParamsSchema = z.object({
|
|
856
861
|
cartId: z.string().uuid(),
|
|
857
862
|
email: z.string().email(),
|
|
@@ -1187,12 +1192,12 @@ async function getDistricts(api, params) {
|
|
|
1187
1192
|
var DEFAULT_SETTINGS_CACHE_TTL_MS = 3e4;
|
|
1188
1193
|
function createClient(options) {
|
|
1189
1194
|
const {
|
|
1190
|
-
|
|
1195
|
+
domain,
|
|
1191
1196
|
settingsCacheTtlMs = DEFAULT_SETTINGS_CACHE_TTL_MS,
|
|
1192
1197
|
...apiOptions
|
|
1193
1198
|
} = options;
|
|
1194
|
-
if (!
|
|
1195
|
-
throw new Error("createClient requiere `
|
|
1199
|
+
if (!domain?.trim()) {
|
|
1200
|
+
throw new Error("createClient requiere `domain` (config.domain de ecomiq.config.js)");
|
|
1196
1201
|
}
|
|
1197
1202
|
if (!Number.isFinite(settingsCacheTtlMs) || settingsCacheTtlMs < 0) {
|
|
1198
1203
|
throw new Error("settingsCacheTtlMs debe ser un n\xFAmero mayor o igual a 0");
|
|
@@ -1220,7 +1225,7 @@ function createClient(options) {
|
|
|
1220
1225
|
if (inflight) return inflight;
|
|
1221
1226
|
const previous = cache?.data;
|
|
1222
1227
|
inflight = api.get("settings", StorefrontSettingsSchema, {
|
|
1223
|
-
headers: { "x-Store-Domain":
|
|
1228
|
+
headers: { "x-Store-Domain": domain }
|
|
1224
1229
|
}).then((data) => {
|
|
1225
1230
|
cache = { data, expiresAt: Date.now() + settingsCacheTtlMs };
|
|
1226
1231
|
return data;
|
|
@@ -1244,6 +1249,10 @@ function createClient(options) {
|
|
|
1244
1249
|
const client = await apiClient();
|
|
1245
1250
|
return getCollectionBySlug(client, collectionSlug);
|
|
1246
1251
|
}
|
|
1252
|
+
async function getPageBySlug2(pageSlug) {
|
|
1253
|
+
const client = await apiClient();
|
|
1254
|
+
return getPageBySlug(client, pageSlug);
|
|
1255
|
+
}
|
|
1247
1256
|
async function getProducts2(params = {}) {
|
|
1248
1257
|
const client = await apiClient();
|
|
1249
1258
|
return getProducts(client, params);
|
|
@@ -1342,6 +1351,7 @@ function createClient(options) {
|
|
|
1342
1351
|
getStoreId,
|
|
1343
1352
|
getCollections: getCollections2,
|
|
1344
1353
|
getCollectionBySlug: getCollectionBySlug2,
|
|
1354
|
+
getPageBySlug: getPageBySlug2,
|
|
1345
1355
|
clearCache,
|
|
1346
1356
|
getProducts: getProducts2,
|
|
1347
1357
|
getProductBySlug: getProductBySlug2,
|
|
@@ -1445,6 +1455,6 @@ function stripHtml(html) {
|
|
|
1445
1455
|
return html.replace(/<br\s*\/?>/gi, " ").replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim();
|
|
1446
1456
|
}
|
|
1447
1457
|
|
|
1448
|
-
export { AddCartItemParamsSchema, ApiError, BundleItemSchema, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartItemModifierSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, CollectionSchema, CollectionsSchema, CountriesSchema, CountrySchema, CreateCartParamsSchema, CreateProductReviewParamsSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, FacetItemSchema, FacetSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetCartParamsSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, GetShippingOptionsParamsSchema, JsonElementSchema, ListProductReviewsParamsSchema, PriceTierSchema, ProductAutocompleteParamsSchema, ProductDetailParamsSchema, ProductDetailSchema, ProductImageSchema, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSortSchema, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummarySchema, ProductsParamsSchema, ProductsResponseSchema, ProvinceSchema, ProvincesSchema, PutShippingMethodParamsSchema, RelatedProductsParamsSchema, RemoveCartItemParamsSchema, SearchFilterSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, SizeGuideMeasurementSchema, SizeGuideRowSchema, SizeGuideSchema, SpecItemSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBumpSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, UpdateCartItemQuantityParamsSchema, VariantItemSchema, VariantOptionSchema, VariantSchema, addCartItem, addCartPromotionCode, autocompleteProducts, cartVariantIdFromProduct, checkoutCart, createApi, createCart, createClient, createProductReview, createStorefrontClient, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getMenuItems, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, resolveApiBaseUrl, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
|
1458
|
+
export { AddCartItemParamsSchema, ApiError, BundleItemSchema, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartItemModifierSchema, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDtoSchema, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, CollectionSchema, CollectionsSchema, CountriesSchema, CountrySchema, CreateCartParamsSchema, CreateProductReviewParamsSchema, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, DepartmentSchema, DepartmentsSchema, DistrictSchema, DistrictsSchema, FacetItemSchema, FacetSchema, GeoDivisionSchema, GeoDivisionTypeSchema, GetCartParamsSchema, GetDepartmentsParamsSchema, GetDistrictsParamsSchema, GetProvincesParamsSchema, GetShippingOptionsParamsSchema, JsonElementSchema, ListProductReviewsParamsSchema, PriceTierSchema, ProductAutocompleteParamsSchema, ProductDetailParamsSchema, ProductDetailSchema, ProductImageSchema, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSortSchema, ProductSuggestionSchema, ProductSuggestionsSchema, ProductSummariesSchema, ProductSummarySchema, ProductsParamsSchema, ProductsResponseSchema, ProvinceSchema, ProvincesSchema, PutShippingMethodParamsSchema, RelatedProductsParamsSchema, RemoveCartItemParamsSchema, SearchFilterSchema, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRateSchema, SizeGuideMeasurementSchema, SizeGuideRowSchema, SizeGuideSchema, SpecItemSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModelSchema, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontAddressSchema, StorefrontCartBundleItemSchema, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotalsSchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontOrderBumpSchema, StorefrontReviewSchema, StorefrontReviewsSchema, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, UpdateCartItemQuantityParamsSchema, VariantItemSchema, VariantOptionSchema, VariantSchema, addCartItem, addCartPromotionCode, autocompleteProducts, cartVariantIdFromProduct, checkoutCart, createApi, createCart, createClient, createProductReview, createStorefrontClient, getCart, getCartCheckout, getCountries, getDepartments, getDistricts, getMenuItems, getPageBySlug, getProductBySlug, getProducts, getProvinces, getRelatedProducts, getShippingOptions, listProductReviews, patchCartAddresses, patchCartBuyer, putCartShippingMethod, removeCartItem, removeCartPromotionCode, resolveApiBaseUrl, sanitizeHtml, stripHtml, updateCartItemQuantity, uploadPaymentReceipt };
|
|
1449
1459
|
//# sourceMappingURL=index.js.map
|
|
1450
1460
|
//# sourceMappingURL=index.js.map
|