@lightspeed/ecom-headless 0.1.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/CHANGELOG.md +11 -0
- package/README.md +82 -0
- package/UPGRADE.md +0 -0
- package/dist/api/index.cjs +1 -0
- package/dist/api/index.d.cts +1339 -0
- package/dist/api/index.d.mts +1339 -0
- package/dist/api/index.d.ts +1339 -0
- package/dist/api/index.mjs +1 -0
- package/dist/chunks/download-product-file-mock.cjs +1 -0
- package/dist/chunks/download-product-file-mock.mjs +1 -0
- package/dist/chunks/get-product-mock.cjs +1 -0
- package/dist/chunks/get-product-mock.mjs +1 -0
- package/dist/chunks/get-store-profile-mock.cjs +5 -0
- package/dist/chunks/get-store-profile-mock.mjs +5 -0
- package/dist/chunks/search-categories-mock.cjs +1 -0
- package/dist/chunks/search-categories-mock.mjs +1 -0
- package/dist/chunks/search-products-mock.cjs +1 -0
- package/dist/chunks/search-products-mock.mjs +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +1 -0
- package/dist/shared/ecom-headless.BCjY03ea.mjs +1 -0
- package/dist/shared/ecom-headless.Cr34mwOt.cjs +1 -0
- package/dist/storefront/index.cjs +1 -0
- package/dist/storefront/index.d.cts +5 -0
- package/dist/storefront/index.d.mts +5 -0
- package/dist/storefront/index.d.ts +5 -0
- package/dist/storefront/index.mjs +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{d as downloadProductFile,g as getApiConfig,a as getProduct,c as getStoreProfile,i as initStorefrontApi,b as searchCategories,s as searchProducts}from"../shared/ecom-headless.BCjY03ea.mjs";import"../storefront/index.mjs";import"axios";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";async function downloadProductFileMock(){const n=new Uint8Array([]);return new Blob([n],{type:"application/pdf"})}exports.default=downloadProductFileMock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function o(){const n=new Uint8Array([]);return new Blob([n],{type:"application/pdf"})}export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const getProductMock={id:692730761,sku:"123123",thumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",unlimited:!0,inStock:!0,name:"Toys",nameTranslated:{cs:"",en:"Toys"},price:10,priceInProductList:10,defaultDisplayedPrice:10,defaultDisplayedPriceFormatted:"\u20AC10,00",tax:{taxable:!0,defaultLocationIncludedTaxRate:10,enabledManualTaxes:[947976181],taxClassCode:"default"},lowestPrice:10,defaultDisplayedLowestPrice:10,defaultDisplayedLowestPriceFormatted:"\u20AC10,00",lowestPriceSettings:{lowestPriceEnabled:!0},isShippingRequired:!1,hasFreeShipping:!1,url:"https://store1003.company.site/products/toys-692730761",autogeneratedSlug:"toys-692730761",customSlug:"",created:"2024-09-04 07:20:11 +0000",updated:"2024-09-04 07:20:12 +0000",createTimestamp:1725434411,updateTimestamp:1725434412,productClassId:0,enabled:!0,options:[],warningLimit:1,fixedShippingRateOnly:!1,fixedShippingRate:0,shipping:{type:"GLOBAL_METHODS",methodMarkup:0,flatRate:0,disabledMethods:[],enabledMethods:[]},defaultCombinationId:0,imageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",smallThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",hdThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",originalImageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",originalImage:{url:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",width:225,height:225},borderInfo:{dominatingColor:{red:255,green:255,blue:255,alpha:255},homogeneity:!0},description:"",descriptionTranslated:{cs:"",en:""},galleryImages:[],media:{images:[{id:"0",isMain:!0,orderBy:0,image160pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",image400pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",image800pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",image1500pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",imageOriginalUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",alt:{translated:{}}}],videos:[]},categoryIds:[],categories:[],defaultCategoryId:0,seoTitle:"Toys",seoTitleTranslated:{cs:"",en:"Toys"},seoDescription:"",seoDescriptionTranslated:{cs:"",en:""},favorites:{count:0,displayedCount:"0"},attributes:[],files:[{id:96178524,name:"image.jpeg",description:"",size:12006,adminUrl:"https://app.ecwid.com/api/v3/1003/products/692730761/files/96178524"}],relatedProducts:{productIds:[],relatedCategory:{enabled:!1,categoryId:0,productCount:5}},combinations:[],dimensions:{length:0,width:0,height:0},shippingPreparationTime:{},showDeliveryTimeInStorefront:!1,volume:0,showOnFrontpage:11,isSampleProduct:!1,googleItemCondition:"NEW",isGiftCard:!1,discountsAllowed:!0,nameYourPriceEnabled:!1,subscriptionSettings:{subscriptionAllowed:!1,oneTimePurchaseAllowed:!0,recurringChargeSettings:[{recurringInterval:"MONTH",recurringIntervalCount:1}]},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW",outOfStockVisibilityBehaviour:"SHOW"};exports.default=getProductMock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={id:692730761,sku:"123123",thumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",unlimited:!0,inStock:!0,name:"Toys",nameTranslated:{cs:"",en:"Toys"},price:10,priceInProductList:10,defaultDisplayedPrice:10,defaultDisplayedPriceFormatted:"\u20AC10,00",tax:{taxable:!0,defaultLocationIncludedTaxRate:10,enabledManualTaxes:[947976181],taxClassCode:"default"},lowestPrice:10,defaultDisplayedLowestPrice:10,defaultDisplayedLowestPriceFormatted:"\u20AC10,00",lowestPriceSettings:{lowestPriceEnabled:!0},isShippingRequired:!1,hasFreeShipping:!1,url:"https://store1003.company.site/products/toys-692730761",autogeneratedSlug:"toys-692730761",customSlug:"",created:"2024-09-04 07:20:11 +0000",updated:"2024-09-04 07:20:12 +0000",createTimestamp:1725434411,updateTimestamp:1725434412,productClassId:0,enabled:!0,options:[],warningLimit:1,fixedShippingRateOnly:!1,fixedShippingRate:0,shipping:{type:"GLOBAL_METHODS",methodMarkup:0,flatRate:0,disabledMethods:[],enabledMethods:[]},defaultCombinationId:0,imageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",smallThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",hdThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",originalImageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",originalImage:{url:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",width:225,height:225},borderInfo:{dominatingColor:{red:255,green:255,blue:255,alpha:255},homogeneity:!0},description:"",descriptionTranslated:{cs:"",en:""},galleryImages:[],media:{images:[{id:"0",isMain:!0,orderBy:0,image160pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",image400pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",image800pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",image1500pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",imageOriginalUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",alt:{translated:{}}}],videos:[]},categoryIds:[],categories:[],defaultCategoryId:0,seoTitle:"Toys",seoTitleTranslated:{cs:"",en:"Toys"},seoDescription:"",seoDescriptionTranslated:{cs:"",en:""},favorites:{count:0,displayedCount:"0"},attributes:[],files:[{id:96178524,name:"image.jpeg",description:"",size:12006,adminUrl:"https://app.ecwid.com/api/v3/1003/products/692730761/files/96178524"}],relatedProducts:{productIds:[],relatedCategory:{enabled:!1,categoryId:0,productCount:5}},combinations:[],dimensions:{length:0,width:0,height:0},shippingPreparationTime:{},showDeliveryTimeInStorefront:!1,volume:0,showOnFrontpage:11,isSampleProduct:!1,googleItemCondition:"NEW",isGiftCard:!1,discountsAllowed:!0,nameYourPriceEnabled:!1,subscriptionSettings:{subscriptionAllowed:!1,oneTimePurchaseAllowed:!0,recurringChargeSettings:[{recurringInterval:"MONTH",recurringIntervalCount:1}]},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW",outOfStockVisibilityBehaviour:"SHOW"};export{e as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";const getStoreProfileMock={shippingSettings:{shippingZones:[]},generalInfo:{storeId:1003,storeUrl:"https://store1003.company.site/products",websitePlatform:"instantsite",profileId:"p3855016",email:"",creationDate:"",fbPixelId:"",name:"",storeLogoUrl:"",starterSite:{generatedUrl:"https://store1003.company.site",storeLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",ecwidSubdomainSuffix:"company.site",customDomain:""}},account:{accountId:1234,accountBilling:{activeSubscriptionPeriod:"",planName:"",subscriptionFee:12},accountCurrency:"",availableFunctionality:[],accountCurrencyFormat:{code:"",decimalPlaces:1,decimalSeparator:"",symbol:"",symbolPosition:"",thousandsSeparator:""},accountName:"API Team Store",accountNickName:"Support team",accountEmail:"ec.apps@lightspeedhq.com",whiteLabel:!1,brandName:"Ecwid",supportEmail:"support@ecwid.com",suspended:!1,itunesSubscriptionsAvailable:!1,googlePlaySubscriptionsAvailable:!0,trackStorefrontStats:!0,availableFeatures:["AFFILIATE","BULK_INVOICE_PRINTING","BULK_PRICES","CDN","COMBINATIONS","COMPARE_TO_PRICE","CSV_EXPORT","CUSTOM_NOTIFICATIONS","CUSTOMER_GROUPS","DESTINATION_ZONES_LIMIT","DISCOUNT_COUPONS","DISCOUNTS","EBAY_AMAZON_THIRD_PARTY","GOOGLE_SHOPPING","EDIT_INVOICE","EGOODS","EGOODS_LIMITS","FACEBOOK_STORE","FB_SYNC_PRODUCTS","TRACKING_PIXELS","AUTO_FACEBOOK_ADS","GOOGLE_REMARKETING","INVENTORY_TRACKING","LOCAL_PICKUP","MARKETPLACES","ORDER_AMOUNT_LIMITS","PREMIUM","API","SHIPMENT_TRACKING","CUSTOM_DOMAIN","CUSTOM_DOMAIN_STARTER_SITE","HIDE_POWERED_BY_ECWID_BADGE_INSTANTSITE","LINKUP_HIDE_BRANDING","LINKUP_ACTIVATE_ANALYTICS","STORE_STATS","XERO","PRODUCT_FILTERS","FAVORITES","HIDE_POWERED_BY_ECWID_NOTIFICATIONS","VEND","SQUARE_PAYMENTS","HANDLING_FEE","CHECKOUT","ORDER_EDITOR","PRIVATE_ADMIN_NOTES","STRIPE_PAYMENTS","STRIPE_STORED_CREDIT_CARD","MOBILE","ECWID_LIVE_CHAT","ECWID_LIVE_CHAT_TRIAL","AUTOMATIC_TAXES_US","AUTOMATIC_TAXES_REST_OF_THE_WORLD","VK_MARKET","PRODUCT_DIMENSIONS","PRINT_SHIPPING_LABELS","SEO_FIELDS","TAX_EXEMPT_CUSTOMERS","CUSTOMER_TAX_ID","FB_MESSENGER","AUTO_ABANDONED_SALES_RECOVERY","LEGACY_ABANDONED_SALES_VIEW","MULTIADMIN","SCHEDULED_PICKUP_OR_DELIVERY","INSTAGRAM_SHOPPING","STARTERSITE_SITEMAP","INSTANT_SITE_VERIFICATION_CODE","INSTANT_SITE_VERIFICATION_CODE_API","INSTANT_SITE_CUSTOM_JS_CODE","EXPORT_CONTACTS","SHIPPING_PER_PRODUCT","PRINTFUL","CLOVER_PAY","MULTILINGUAL_STORE","GIFT_CARDS","AUTO_YANDEX_ADS","TRIGGERED_EMAILS","MAILCHIMP","WHOLESALE2B","STOREFRONT_LABEL_EDITOR","SET_DELIVERY_REGION_ON_MAP","TIPS","INSTANT_SITE_SALE_FEATURE","WEBSITES_SALE_FEATURE","BUY_BUTTONS_SALE_FEATURE","WORDPRESS_SALE_FEATURE","JOOMLA_SALE_FEATURE","WIX_SALE_FEATURE","WEEBLY_SALE_FEATURE","SQUARESPACE_SALE_FEATURE","RAPID_WEAVER_SALE_FEATURE","PRODUCT_SUBTITLES_FEATURE","PRODUCT_RIBBONS_FEATURE","NAME_YOUR_PRICE_FEATURE","TAX_INVOICES_FEATURE","RECURRING_SUBSCRIPTION_FEATURE","TIKTOK_SHOPS","CHECKOUT_CUSTOM_FIELDS","PRODUCT_DELIVERY_TIME_FEATURE","COST_PRICE_FEATURE","PREORDERS_FEATURE","PRODUCT_PURCHASE_LIMITS_FEATURE","DOMAIN_PURCHASE_FEATURE","PAYMENT_METHOD_SURCHARGE_FEATURE","PAYPAL_GUEST_CHECKOUT_FEATURE","CUSTOM_ORDER_STATUSES","STAFF_SCOPES","VIDEO_EMBED_IN_GALLERY_FEATURE","CUSTOM_REDIRECTS_FOR_INSTANT_SITES","CUSTOM_URL_SLUGS_FOR_CATALOG_PAGES","INVITE_STAFF_FEATURE","ADVANCED_DISCOUNTS_FEATURE","NEW_INSTANT_SITE_PAGES","LOWEST_PRICE_FEATURE","PRODUCT_REVIEWS_FEATURE","BASIC_ECOMMERCE_FEATURE","LINKUP_EXTERNAL_LINKS","FACEBOOK_PIXEL","ALL_TRAFFIC","NEW_VS_RETURNING_VISITORS","VISITORS_BY_DEVICE","VISITORS_BY_LANGUAGE","VISITORS_BY_COUNTRY","ALL_ORDERS","NEW_ORDERS_VS_REPEAT_ORDERS","INVENTORY_REPORT","TOP_OF_SHIPPING_METHODS_BY_ORDERS","TOP_OF_PAYMENT_METHODS_BY_ORDERS","ALL_REVENUE","ALL_EXPENSES","CONVERSION_REPORT","ADD_TO_CART_CONVERSION","CHECKOUT_SALES_FUNNEL","TOP_OF_MARKETING_SOURCES","CUSTOMERS_BY_MARKETING_CONSENT"],registrationDate:"2018-11-23 14:39:14 +0000",paid:!0,limitsAndRestrictions:{maxProductLimit:2500}},settings:{checkoutHeaderLogoUrl:"",defaultLanguage:"",favIconUrl:"",languages:[],storeEmail:"",storeTitle:"",shippingOrigin:{city:"",country:"",postalCode:"",stateOrProvince:"",street:""},showPricePerUnit:!0,closed:!1,storeName:"API Team Store",storeDescription:"",storeDescriptionTranslated:{cs:"",en:""},invoiceLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",emailLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",googleRemarketingEnabled:!1,googleAnalyticsId:"UA-132449871-2",orderCommentsCaption:"Leave order comments here:",orderCommentsCaptionTranslated:{en:"Leave order comments here:"},orderCommentsRequired:!0,hideOutOfStockProductsInStorefront:!1,askCompanyName:!0,favoritesEnabled:!0,defaultProductSortOrder:"DEFINED_BY_STORE_OWNER",productSortOrderInCart:"TIME_ADDED_TO_CART_ASC",salePrice:{displayOnProductList:!0,oldPriceLabel:"",oldPriceLabelTranslated:{cs:"",en:""},displayDiscount:"PERCENT",displayLowestPrice:!0},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW"},mailNotifications:{adminNotificationEmails:["ec.apps@lightspeedhq.com"],customerNotificationFromEmail:"ec.support@lightspeedhq.com",customerOrderMessages:{orderConfirmation:{enabled:!0,marketingBlockEnabled:!0},orderStatusChanged:{enabled:!0},orderIsReadyForPickup:{enabled:!0},downloadEgoods:{enabled:!0},orderShipped:{enabled:!0},orderDelivered:{enabled:!1}},adminMessages:{newOrderPlaced:{enabled:!0},lowStockNotification:{enabled:!0},weeklyStatsReport:{enabled:!0}}},phoneNotifications:{adminNotificationPhones:[]},company:{companyName:"Ecwid API Team Store",email:"ec.apps@lightspeedhq.com",street:"Test st., 1",city:"Tbilisi",countryCode:"GE",postalCode:"0164",stateOrProvinceCode:"TB",phone:"0123456789"},formatsAndUnits:{currency:"EUR",currencyPrefix:"\u20AC",currencySuffix:"",currencyGroupSeparator:" ",currencyDecimalSeparator:",",currencyPrecision:2,currencyTruncateZeroFractional:!1,currencyRate:1.060951674,weightUnit:"KILOGRAM",weightGroupSeparator:" ",weightDecimalSeparator:".",weightTruncateZeroFractional:!1,timeFormat:"HH:mm:ss",dateFormat:"dd.MM.yyyy",timezone:"Europe/London",dimensionsUnit:"CM",volumeUnit:"ML",orderNumberPrefix:"",orderNumberSuffix:"",addressFormat:{plain:"%NAME%, %COMPANY_NAME%, %STREET%, %POSTAL% %CITY% %STATE_NAME%, %COUNTRY_NAME%",multiline:`%NAME%
|
|
2
|
+
%COMPANY_NAME%
|
|
3
|
+
%STREET%
|
|
4
|
+
%POSTAL% %CITY% %STATE_NAME%
|
|
5
|
+
%COUNTRY_NAME%`}},languages:{enabledLanguages:["en","cs"],facebookPreferredLocale:"en_US",defaultLanguage:"en"},shipping:{handlingFee:{value:0},shippingOrigin:{street:"Industrieweg 9-C",city:"Oirschot",countryCode:"NL",countryName:"Netherlands",postalCode:"5688 DP",stateOrProvinceCode:"NBR"},shippingOptions:[{id:"6589-1709547151586",title:"Standard shipping",titleTranslated:{cs:"",en:"Standard shipping"},enabled:!0,orderby:30,fulfilmentType:"shipping",ratesCalculationType:"flat",destinationZone:{id:"WORLD",name:"WORLD"},businessHours:'{"THU":[["00:00","00:00"]],"TUE":[["00:00","00:00"]],"WED":[["00:00","00:00"]],"SAT":[["00:00","00:00"]],"FRI":[["00:00","00:00"]],"MON":[["00:00","00:00"]],"SUN":[["00:00","00:00"]]}',minimumOrderSubtotal:0,businessHoursLimitationType:"ALLOW_ORDERS_AND_DONT_INFORM_CUSTOMERS",flatRate:{rateType:"ABSOLUTE",rate:20},carrier:"",estimatedShippingTimeAtCheckoutSettings:{estimatedDeliveryDateAtCheckoutEnabled:!0,estimatedTransitTimeInDays:[2,4],fulfillmentTimeInDays:[3,3],cutoffTimeForSameDayPacking:"16:00",shippingBusinessDays:["MON","TUE","WED","THU","FRI"],deliveryDays:["MON","TUE","WED","THU","FRI","SAT"]}},{id:"3919-1640004025851",title:"FREE Shipping",titleTranslated:{cs:"",en:"FREE Shipping"},enabled:!0,orderby:40,fulfilmentType:"shipping",destinationZone:{id:"WORLD",name:"WORLD"},businessHours:'{"THU":[["00:00","00:00"]],"TUE":[["00:00","00:00"]],"WED":[["00:00","00:00"]],"SAT":[["00:00","00:00"]],"FRI":[["00:00","00:00"]],"MON":[["00:00","00:00"]],"SUN":[["00:00","00:00"]]}',minimumOrderSubtotal:0,businessHoursLimitationType:"ALLOW_ORDERS_AND_DONT_INFORM_CUSTOMERS",estimatedShippingTimeAtCheckoutSettings:{estimatedDeliveryDateAtCheckoutEnabled:!1,estimatedTransitTimeInDays:[null,null],fulfillmentTimeInDays:[2,2],cutoffTimeForSameDayPacking:"16:00",shippingBusinessDays:["MON","TUE","WED","THU","FRI"],deliveryDays:[]}},{id:"4959-1595934622523",title:"Pickup",titleTranslated:{cs:"",en:"Pickup"},enabled:!0,orderby:50,fulfilmentType:"pickup",destinationZone:{id:"WORLD",name:"WORLD"},minimumOrderSubtotal:0,businessHoursLimitationType:"ALLOW_ORDERS_AND_DONT_INFORM_CUSTOMERS",businessHours:'{"MON":[["00:00","00:00"]], "TUE":[["00:00","00:00"]], "WED":[["00:00","00:00"]], "THU":[["00:00","00:00"]], "FRI":[["00:00","00:00"]]}',scheduled:!1,fulfillmentTimeInMinutes:0,pickupInstruction:"",pickupInstructionTranslated:{cs:"",en:""},scheduledPickup:!1,pickupPreparationTimeHours:0,pickupBusinessHours:'{"MON":[["00:00","00:00"]], "TUE":[["00:00","00:00"]], "WED":[["00:00","00:00"]], "THU":[["00:00","00:00"]], "FRI":[["00:00","00:00"]]}',flatRate:{rateType:"ABSOLUTE",rate:0}}]},zones:[{id:"2686-1580712192121",name:"\u0412\u0435\u0441\u044C \u043C\u0438\u0440",countryCodes:["AF","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","HR","CW","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RO","RU","RW","RE","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","ES","IC","LK","SD","SR","SJ","SZ","SE","CH","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW","AX"]},{id:"WORLD",name:"WORLD"}],taxes:[{id:947976181,name:"10% Tax",enabled:!0,includeInPrice:!0,useShippingAddress:!0,taxShipping:!1,appliedByDefault:!0,defaultTax:10,rules:[]}],taxSettings:{automaticTaxEnabled:!1,euIossEnabled:!1,ukVatRegistered:!1,taxes:[{id:947976181,name:"10% Tax",enabled:!0,includeInPrice:!0,useShippingAddress:!0,taxShipping:!1,appliedByDefault:!0,defaultTax:10,rules:[]}],pricesIncludeTax:!0,taxExemptBusiness:!1,b2b_b2c:"b2c",electronicInvoiceFieldsAtCheckoutEnabled:!1,taxOnShippingCalculationScheme:"AUTOMATIC"},payment:{paymentOptions:[{id:"13379-1606718590771",enabled:!0,configured:!0,checkoutTitle:"Offline",checkoutTitleTranslated:{cs:"",en:"Offline"},checkoutDescription:"",paymentProcessorId:"offline",paymentProcessorTitle:"",orderBy:0,appClientId:"",appNamespace:"",paymentSurcharges:{type:"ABSOLUTE",value:0},instructionsForCustomer:{instructionsTitle:"",instructions:"<p>TEST</p>",instructionsTranslated:{cs:"",en:"<p>TEST</p>"}},methods:[]},{id:"110084370-1655211194360",enabled:!0,configured:!0,checkoutTitle:"Amazon Pay",checkoutTitleTranslated:{cs:"",en:"Amazon Pay"},checkoutDescription:"",paymentProcessorId:"customPaymentApp",paymentProcessorTitle:"CUSTOM_PAYMENT_APP-infiniteapps-dev",orderBy:10,appClientId:"infiniteapps-dev",appNamespace:"infiniteapps-dev",instructionsForCustomer:{instructionsTitle:"",instructions:"",instructionsTranslated:{cs:"",en:""}},methods:[]},{id:"217779581-1724151534488",enabled:!0,configured:!0,checkoutTitle:"TEST PAYMENT",checkoutTitleTranslated:{cs:"",en:"TEST PAYMENT"},checkoutDescription:"",paymentProcessorId:"customPaymentApp",paymentProcessorTitle:"CUSTOM_PAYMENT_APP-custom-app-15695068-1",orderBy:20,appClientId:"custom-app-15695068-1",appNamespace:"custom-app-15695068-1",instructionsForCustomer:{instructionsTitle:"",instructions:"",instructionsTranslated:{cs:"",en:""}},methods:[]}],applePay:{enabled:!1,available:!1},applePayOptions:[]},featureToggles:[{name:"ALLOW_EMPTY_AND_NON_UNIQUE_SKU",visible:!1,enabled:!1},{name:"CONSECUTIVE_ORDER_IDS",visible:!1,enabled:!1},{name:"INSTANT_SITE_V2",visible:!0,enabled:!0},{name:"NEW_STARTERSITE",visible:!1,enabled:!0},{name:"RANDOM_ORDER_IDS",visible:!1,enabled:!0},{name:"REGIONAL_ADDRESS_RULES_ON_CHECKOUT",visible:!0,enabled:!0}],legalPagesSettings:{requireTermsAgreementAtCheckout:!1,legalPages:[]},designSettings:{enable_catalog_on_one_page:!1,product_list_image_size:"SMALL",cart_widget_layout:"",product_details_layout:"",product_list_product_info_layout:"",product_details_show_product_sku:!0,product_list_show_product_images:!1,show_breadcrumbs:!0,show_footer_menu:!0},productFiltersSettings:{enabledInStorefront:!0,filterSections:[{type:"IN_STOCK",enabled:!0},{type:"ON_SALE",enabled:!0},{type:"PRICE",enabled:!0},{type:"CATEGORIES",enabled:!0},{type:"SEARCH",enabled:!0},{name:"Custom Attribute 1",type:"ATTRIBUTE",enabled:!0}]},orderInvoiceSettings:{invoiceLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",attachInvoiceToOrderEmailNotifications:"DO_NOT_ATTACH"},socialLinksSettings:{facebook:{},instagram:{},twitter:{},youtube:{},vk:{},pinterest:{}},registrationAnswers:{alreadySelling:"offline_only",goods:"health",forSomeone:"yes",website:"no"},tipsSettings:{enabled:!1,type:"PERCENT",options:[0,5,10],defaultOption:0,title:"Support us with a donation",titleTranslated:{cs:"",en:"Support us with a donation"},subtitleTranslated:{cs:"",en:"We appreciate all donations, and even the tiniest bit helps us continue what we\u2019re doing."},subTitle:""},taxInvoiceSettings:{taxInvoiceLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",attachTaxInvoiceToOrderEmailNotifications:"ATTACH_TO_ALL_EMAILS",enableTaxInvoices:!0,generateInvoicesAutomatically:"ON_ORDER_PLACED",taxInvoiceIdPrefix:"",taxInvoiceIdSuffix:"",taxInvoiceIdMinDigitsAmount:2,taxInvoiceIdNextNumber:28}};exports.default=getStoreProfileMock;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const e={shippingSettings:{shippingZones:[]},generalInfo:{storeId:1003,storeUrl:"https://store1003.company.site/products",websitePlatform:"instantsite",profileId:"p3855016",email:"",creationDate:"",fbPixelId:"",name:"",storeLogoUrl:"",starterSite:{generatedUrl:"https://store1003.company.site",storeLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",ecwidSubdomainSuffix:"company.site",customDomain:""}},account:{accountId:1234,accountBilling:{activeSubscriptionPeriod:"",planName:"",subscriptionFee:12},accountCurrency:"",availableFunctionality:[],accountCurrencyFormat:{code:"",decimalPlaces:1,decimalSeparator:"",symbol:"",symbolPosition:"",thousandsSeparator:""},accountName:"API Team Store",accountNickName:"Support team",accountEmail:"ec.apps@lightspeedhq.com",whiteLabel:!1,brandName:"Ecwid",supportEmail:"support@ecwid.com",suspended:!1,itunesSubscriptionsAvailable:!1,googlePlaySubscriptionsAvailable:!0,trackStorefrontStats:!0,availableFeatures:["AFFILIATE","BULK_INVOICE_PRINTING","BULK_PRICES","CDN","COMBINATIONS","COMPARE_TO_PRICE","CSV_EXPORT","CUSTOM_NOTIFICATIONS","CUSTOMER_GROUPS","DESTINATION_ZONES_LIMIT","DISCOUNT_COUPONS","DISCOUNTS","EBAY_AMAZON_THIRD_PARTY","GOOGLE_SHOPPING","EDIT_INVOICE","EGOODS","EGOODS_LIMITS","FACEBOOK_STORE","FB_SYNC_PRODUCTS","TRACKING_PIXELS","AUTO_FACEBOOK_ADS","GOOGLE_REMARKETING","INVENTORY_TRACKING","LOCAL_PICKUP","MARKETPLACES","ORDER_AMOUNT_LIMITS","PREMIUM","API","SHIPMENT_TRACKING","CUSTOM_DOMAIN","CUSTOM_DOMAIN_STARTER_SITE","HIDE_POWERED_BY_ECWID_BADGE_INSTANTSITE","LINKUP_HIDE_BRANDING","LINKUP_ACTIVATE_ANALYTICS","STORE_STATS","XERO","PRODUCT_FILTERS","FAVORITES","HIDE_POWERED_BY_ECWID_NOTIFICATIONS","VEND","SQUARE_PAYMENTS","HANDLING_FEE","CHECKOUT","ORDER_EDITOR","PRIVATE_ADMIN_NOTES","STRIPE_PAYMENTS","STRIPE_STORED_CREDIT_CARD","MOBILE","ECWID_LIVE_CHAT","ECWID_LIVE_CHAT_TRIAL","AUTOMATIC_TAXES_US","AUTOMATIC_TAXES_REST_OF_THE_WORLD","VK_MARKET","PRODUCT_DIMENSIONS","PRINT_SHIPPING_LABELS","SEO_FIELDS","TAX_EXEMPT_CUSTOMERS","CUSTOMER_TAX_ID","FB_MESSENGER","AUTO_ABANDONED_SALES_RECOVERY","LEGACY_ABANDONED_SALES_VIEW","MULTIADMIN","SCHEDULED_PICKUP_OR_DELIVERY","INSTAGRAM_SHOPPING","STARTERSITE_SITEMAP","INSTANT_SITE_VERIFICATION_CODE","INSTANT_SITE_VERIFICATION_CODE_API","INSTANT_SITE_CUSTOM_JS_CODE","EXPORT_CONTACTS","SHIPPING_PER_PRODUCT","PRINTFUL","CLOVER_PAY","MULTILINGUAL_STORE","GIFT_CARDS","AUTO_YANDEX_ADS","TRIGGERED_EMAILS","MAILCHIMP","WHOLESALE2B","STOREFRONT_LABEL_EDITOR","SET_DELIVERY_REGION_ON_MAP","TIPS","INSTANT_SITE_SALE_FEATURE","WEBSITES_SALE_FEATURE","BUY_BUTTONS_SALE_FEATURE","WORDPRESS_SALE_FEATURE","JOOMLA_SALE_FEATURE","WIX_SALE_FEATURE","WEEBLY_SALE_FEATURE","SQUARESPACE_SALE_FEATURE","RAPID_WEAVER_SALE_FEATURE","PRODUCT_SUBTITLES_FEATURE","PRODUCT_RIBBONS_FEATURE","NAME_YOUR_PRICE_FEATURE","TAX_INVOICES_FEATURE","RECURRING_SUBSCRIPTION_FEATURE","TIKTOK_SHOPS","CHECKOUT_CUSTOM_FIELDS","PRODUCT_DELIVERY_TIME_FEATURE","COST_PRICE_FEATURE","PREORDERS_FEATURE","PRODUCT_PURCHASE_LIMITS_FEATURE","DOMAIN_PURCHASE_FEATURE","PAYMENT_METHOD_SURCHARGE_FEATURE","PAYPAL_GUEST_CHECKOUT_FEATURE","CUSTOM_ORDER_STATUSES","STAFF_SCOPES","VIDEO_EMBED_IN_GALLERY_FEATURE","CUSTOM_REDIRECTS_FOR_INSTANT_SITES","CUSTOM_URL_SLUGS_FOR_CATALOG_PAGES","INVITE_STAFF_FEATURE","ADVANCED_DISCOUNTS_FEATURE","NEW_INSTANT_SITE_PAGES","LOWEST_PRICE_FEATURE","PRODUCT_REVIEWS_FEATURE","BASIC_ECOMMERCE_FEATURE","LINKUP_EXTERNAL_LINKS","FACEBOOK_PIXEL","ALL_TRAFFIC","NEW_VS_RETURNING_VISITORS","VISITORS_BY_DEVICE","VISITORS_BY_LANGUAGE","VISITORS_BY_COUNTRY","ALL_ORDERS","NEW_ORDERS_VS_REPEAT_ORDERS","INVENTORY_REPORT","TOP_OF_SHIPPING_METHODS_BY_ORDERS","TOP_OF_PAYMENT_METHODS_BY_ORDERS","ALL_REVENUE","ALL_EXPENSES","CONVERSION_REPORT","ADD_TO_CART_CONVERSION","CHECKOUT_SALES_FUNNEL","TOP_OF_MARKETING_SOURCES","CUSTOMERS_BY_MARKETING_CONSENT"],registrationDate:"2018-11-23 14:39:14 +0000",paid:!0,limitsAndRestrictions:{maxProductLimit:2500}},settings:{checkoutHeaderLogoUrl:"",defaultLanguage:"",favIconUrl:"",languages:[],storeEmail:"",storeTitle:"",shippingOrigin:{city:"",country:"",postalCode:"",stateOrProvince:"",street:""},showPricePerUnit:!0,closed:!1,storeName:"API Team Store",storeDescription:"",storeDescriptionTranslated:{cs:"",en:""},invoiceLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",emailLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",googleRemarketingEnabled:!1,googleAnalyticsId:"UA-132449871-2",orderCommentsCaption:"Leave order comments here:",orderCommentsCaptionTranslated:{en:"Leave order comments here:"},orderCommentsRequired:!0,hideOutOfStockProductsInStorefront:!1,askCompanyName:!0,favoritesEnabled:!0,defaultProductSortOrder:"DEFINED_BY_STORE_OWNER",productSortOrderInCart:"TIME_ADDED_TO_CART_ASC",salePrice:{displayOnProductList:!0,oldPriceLabel:"",oldPriceLabelTranslated:{cs:"",en:""},displayDiscount:"PERCENT",displayLowestPrice:!0},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW"},mailNotifications:{adminNotificationEmails:["ec.apps@lightspeedhq.com"],customerNotificationFromEmail:"ec.support@lightspeedhq.com",customerOrderMessages:{orderConfirmation:{enabled:!0,marketingBlockEnabled:!0},orderStatusChanged:{enabled:!0},orderIsReadyForPickup:{enabled:!0},downloadEgoods:{enabled:!0},orderShipped:{enabled:!0},orderDelivered:{enabled:!1}},adminMessages:{newOrderPlaced:{enabled:!0},lowStockNotification:{enabled:!0},weeklyStatsReport:{enabled:!0}}},phoneNotifications:{adminNotificationPhones:[]},company:{companyName:"Ecwid API Team Store",email:"ec.apps@lightspeedhq.com",street:"Test st., 1",city:"Tbilisi",countryCode:"GE",postalCode:"0164",stateOrProvinceCode:"TB",phone:"0123456789"},formatsAndUnits:{currency:"EUR",currencyPrefix:"\u20AC",currencySuffix:"",currencyGroupSeparator:" ",currencyDecimalSeparator:",",currencyPrecision:2,currencyTruncateZeroFractional:!1,currencyRate:1.060951674,weightUnit:"KILOGRAM",weightGroupSeparator:" ",weightDecimalSeparator:".",weightTruncateZeroFractional:!1,timeFormat:"HH:mm:ss",dateFormat:"dd.MM.yyyy",timezone:"Europe/London",dimensionsUnit:"CM",volumeUnit:"ML",orderNumberPrefix:"",orderNumberSuffix:"",addressFormat:{plain:"%NAME%, %COMPANY_NAME%, %STREET%, %POSTAL% %CITY% %STATE_NAME%, %COUNTRY_NAME%",multiline:`%NAME%
|
|
2
|
+
%COMPANY_NAME%
|
|
3
|
+
%STREET%
|
|
4
|
+
%POSTAL% %CITY% %STATE_NAME%
|
|
5
|
+
%COUNTRY_NAME%`}},languages:{enabledLanguages:["en","cs"],facebookPreferredLocale:"en_US",defaultLanguage:"en"},shipping:{handlingFee:{value:0},shippingOrigin:{street:"Industrieweg 9-C",city:"Oirschot",countryCode:"NL",countryName:"Netherlands",postalCode:"5688 DP",stateOrProvinceCode:"NBR"},shippingOptions:[{id:"6589-1709547151586",title:"Standard shipping",titleTranslated:{cs:"",en:"Standard shipping"},enabled:!0,orderby:30,fulfilmentType:"shipping",ratesCalculationType:"flat",destinationZone:{id:"WORLD",name:"WORLD"},businessHours:'{"THU":[["00:00","00:00"]],"TUE":[["00:00","00:00"]],"WED":[["00:00","00:00"]],"SAT":[["00:00","00:00"]],"FRI":[["00:00","00:00"]],"MON":[["00:00","00:00"]],"SUN":[["00:00","00:00"]]}',minimumOrderSubtotal:0,businessHoursLimitationType:"ALLOW_ORDERS_AND_DONT_INFORM_CUSTOMERS",flatRate:{rateType:"ABSOLUTE",rate:20},carrier:"",estimatedShippingTimeAtCheckoutSettings:{estimatedDeliveryDateAtCheckoutEnabled:!0,estimatedTransitTimeInDays:[2,4],fulfillmentTimeInDays:[3,3],cutoffTimeForSameDayPacking:"16:00",shippingBusinessDays:["MON","TUE","WED","THU","FRI"],deliveryDays:["MON","TUE","WED","THU","FRI","SAT"]}},{id:"3919-1640004025851",title:"FREE Shipping",titleTranslated:{cs:"",en:"FREE Shipping"},enabled:!0,orderby:40,fulfilmentType:"shipping",destinationZone:{id:"WORLD",name:"WORLD"},businessHours:'{"THU":[["00:00","00:00"]],"TUE":[["00:00","00:00"]],"WED":[["00:00","00:00"]],"SAT":[["00:00","00:00"]],"FRI":[["00:00","00:00"]],"MON":[["00:00","00:00"]],"SUN":[["00:00","00:00"]]}',minimumOrderSubtotal:0,businessHoursLimitationType:"ALLOW_ORDERS_AND_DONT_INFORM_CUSTOMERS",estimatedShippingTimeAtCheckoutSettings:{estimatedDeliveryDateAtCheckoutEnabled:!1,estimatedTransitTimeInDays:[null,null],fulfillmentTimeInDays:[2,2],cutoffTimeForSameDayPacking:"16:00",shippingBusinessDays:["MON","TUE","WED","THU","FRI"],deliveryDays:[]}},{id:"4959-1595934622523",title:"Pickup",titleTranslated:{cs:"",en:"Pickup"},enabled:!0,orderby:50,fulfilmentType:"pickup",destinationZone:{id:"WORLD",name:"WORLD"},minimumOrderSubtotal:0,businessHoursLimitationType:"ALLOW_ORDERS_AND_DONT_INFORM_CUSTOMERS",businessHours:'{"MON":[["00:00","00:00"]], "TUE":[["00:00","00:00"]], "WED":[["00:00","00:00"]], "THU":[["00:00","00:00"]], "FRI":[["00:00","00:00"]]}',scheduled:!1,fulfillmentTimeInMinutes:0,pickupInstruction:"",pickupInstructionTranslated:{cs:"",en:""},scheduledPickup:!1,pickupPreparationTimeHours:0,pickupBusinessHours:'{"MON":[["00:00","00:00"]], "TUE":[["00:00","00:00"]], "WED":[["00:00","00:00"]], "THU":[["00:00","00:00"]], "FRI":[["00:00","00:00"]]}',flatRate:{rateType:"ABSOLUTE",rate:0}}]},zones:[{id:"2686-1580712192121",name:"\u0412\u0435\u0441\u044C \u043C\u0438\u0440",countryCodes:["AF","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BQ","BA","BW","BV","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CX","CC","CO","KM","CG","CD","CK","CR","HR","CW","CY","CZ","CI","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","ET","FK","FO","FJ","FI","FR","GF","PF","TF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HM","VA","HN","HK","HU","IS","IN","ID","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","YT","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","NF","MK","MP","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PN","PL","PT","PR","QA","RO","RU","RW","RE","BL","SH","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","GS","ES","IC","LK","SD","SR","SJ","SZ","SE","CH","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UM","UY","UZ","VU","VE","VN","VG","VI","WF","EH","YE","ZM","ZW","AX"]},{id:"WORLD",name:"WORLD"}],taxes:[{id:947976181,name:"10% Tax",enabled:!0,includeInPrice:!0,useShippingAddress:!0,taxShipping:!1,appliedByDefault:!0,defaultTax:10,rules:[]}],taxSettings:{automaticTaxEnabled:!1,euIossEnabled:!1,ukVatRegistered:!1,taxes:[{id:947976181,name:"10% Tax",enabled:!0,includeInPrice:!0,useShippingAddress:!0,taxShipping:!1,appliedByDefault:!0,defaultTax:10,rules:[]}],pricesIncludeTax:!0,taxExemptBusiness:!1,b2b_b2c:"b2c",electronicInvoiceFieldsAtCheckoutEnabled:!1,taxOnShippingCalculationScheme:"AUTOMATIC"},payment:{paymentOptions:[{id:"13379-1606718590771",enabled:!0,configured:!0,checkoutTitle:"Offline",checkoutTitleTranslated:{cs:"",en:"Offline"},checkoutDescription:"",paymentProcessorId:"offline",paymentProcessorTitle:"",orderBy:0,appClientId:"",appNamespace:"",paymentSurcharges:{type:"ABSOLUTE",value:0},instructionsForCustomer:{instructionsTitle:"",instructions:"<p>TEST</p>",instructionsTranslated:{cs:"",en:"<p>TEST</p>"}},methods:[]},{id:"110084370-1655211194360",enabled:!0,configured:!0,checkoutTitle:"Amazon Pay",checkoutTitleTranslated:{cs:"",en:"Amazon Pay"},checkoutDescription:"",paymentProcessorId:"customPaymentApp",paymentProcessorTitle:"CUSTOM_PAYMENT_APP-infiniteapps-dev",orderBy:10,appClientId:"infiniteapps-dev",appNamespace:"infiniteapps-dev",instructionsForCustomer:{instructionsTitle:"",instructions:"",instructionsTranslated:{cs:"",en:""}},methods:[]},{id:"217779581-1724151534488",enabled:!0,configured:!0,checkoutTitle:"TEST PAYMENT",checkoutTitleTranslated:{cs:"",en:"TEST PAYMENT"},checkoutDescription:"",paymentProcessorId:"customPaymentApp",paymentProcessorTitle:"CUSTOM_PAYMENT_APP-custom-app-15695068-1",orderBy:20,appClientId:"custom-app-15695068-1",appNamespace:"custom-app-15695068-1",instructionsForCustomer:{instructionsTitle:"",instructions:"",instructionsTranslated:{cs:"",en:""}},methods:[]}],applePay:{enabled:!1,available:!1},applePayOptions:[]},featureToggles:[{name:"ALLOW_EMPTY_AND_NON_UNIQUE_SKU",visible:!1,enabled:!1},{name:"CONSECUTIVE_ORDER_IDS",visible:!1,enabled:!1},{name:"INSTANT_SITE_V2",visible:!0,enabled:!0},{name:"NEW_STARTERSITE",visible:!1,enabled:!0},{name:"RANDOM_ORDER_IDS",visible:!1,enabled:!0},{name:"REGIONAL_ADDRESS_RULES_ON_CHECKOUT",visible:!0,enabled:!0}],legalPagesSettings:{requireTermsAgreementAtCheckout:!1,legalPages:[]},designSettings:{enable_catalog_on_one_page:!1,product_list_image_size:"SMALL",cart_widget_layout:"",product_details_layout:"",product_list_product_info_layout:"",product_details_show_product_sku:!0,product_list_show_product_images:!1,show_breadcrumbs:!0,show_footer_menu:!0},productFiltersSettings:{enabledInStorefront:!0,filterSections:[{type:"IN_STOCK",enabled:!0},{type:"ON_SALE",enabled:!0},{type:"PRICE",enabled:!0},{type:"CATEGORIES",enabled:!0},{type:"SEARCH",enabled:!0},{name:"Custom Attribute 1",type:"ATTRIBUTE",enabled:!0}]},orderInvoiceSettings:{invoiceLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",attachInvoiceToOrderEmailNotifications:"DO_NOT_ATTACH"},socialLinksSettings:{facebook:{},instagram:{},twitter:{},youtube:{},vk:{},pinterest:{}},registrationAnswers:{alreadySelling:"offline_only",goods:"health",forSomeone:"yes",website:"no"},tipsSettings:{enabled:!1,type:"PERCENT",options:[0,5,10],defaultOption:0,title:"Support us with a donation",titleTranslated:{cs:"",en:"Support us with a donation"},subtitleTranslated:{cs:"",en:"We appreciate all donations, and even the tiniest bit helps us continue what we\u2019re doing."},subTitle:""},taxInvoiceSettings:{taxInvoiceLogoUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/15695068/1107529597.jpg",attachTaxInvoiceToOrderEmailNotifications:"ATTACH_TO_ALL_EMAILS",enableTaxInvoices:!0,generateInvoicesAutomatically:"ON_ORDER_PLACED",taxInvoiceIdPrefix:"",taxInvoiceIdSuffix:"",taxInvoiceIdMinDigitsAmount:2,taxInvoiceIdNextNumber:28}};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const searchCategoriesMock={total:2,count:2,offset:0,limit:100,items:[{id:9691094,orderBy:10,hdThumbnailUrl:"https://dpbfm6h358sh7.cloudfront.net/images/1003/397690775.jpg",thumbnailUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/123412341234.jpg",imageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/images/1003/461717703.jpg",originalImageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/124124125.jpg",originalImage:{url:"https://app.ecwid.com/default-store/fruit-230-sq.jpg",width:123,height:456},thumbnail:{url:"https://app.ecwid.com/default-store/fruit-400-sq.jpg",width:100,height:400},name:"Fruit",nameTranslated:{en:"Fruit"},url:"https://mdemo.ecwid.com/products/Fruit",autogeneratedSlug:"Fruit",customSlug:"",productCount:6,enabledProductCount:5,description:"",descriptionTranslated:{en:""},enabled:!0},{id:9691095,orderBy:20,hdThumbnailUrl:"https://dpbfm6h358sh7.cloudfront.net/images/1003/397690772.jpg",thumbnailUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/123412341254.jpg",imageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/images/1003/461717702.jpg",originalImageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/124124124.jpg",originalImage:{url:"https://dqzrr9k4bjpzk.cloudfront.net/1003/124124124.jpg",width:123,height:456},thumbnail:{url:"https://dqzrr9k4bjpzk.cloudfront.net/1003/1241222224.jpg",width:100,height:400},name:"Vegetables",nameTranslated:{en:"Vegetables"},url:"http://app.ecwid.com/store/4870020#!/Vegetables/c/9691095",productCount:4,enabledProductCount:3,enabled:!1}]};exports.default=searchCategoriesMock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={total:2,count:2,offset:0,limit:100,items:[{id:9691094,orderBy:10,hdThumbnailUrl:"https://dpbfm6h358sh7.cloudfront.net/images/1003/397690775.jpg",thumbnailUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/123412341234.jpg",imageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/images/1003/461717703.jpg",originalImageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/124124125.jpg",originalImage:{url:"https://app.ecwid.com/default-store/fruit-230-sq.jpg",width:123,height:456},thumbnail:{url:"https://app.ecwid.com/default-store/fruit-400-sq.jpg",width:100,height:400},name:"Fruit",nameTranslated:{en:"Fruit"},url:"https://mdemo.ecwid.com/products/Fruit",autogeneratedSlug:"Fruit",customSlug:"",productCount:6,enabledProductCount:5,description:"",descriptionTranslated:{en:""},enabled:!0},{id:9691095,orderBy:20,hdThumbnailUrl:"https://dpbfm6h358sh7.cloudfront.net/images/1003/397690772.jpg",thumbnailUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/123412341254.jpg",imageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/images/1003/461717702.jpg",originalImageUrl:"https://dqzrr9k4bjpzk.cloudfront.net/1003/124124124.jpg",originalImage:{url:"https://dqzrr9k4bjpzk.cloudfront.net/1003/124124124.jpg",width:123,height:456},thumbnail:{url:"https://dqzrr9k4bjpzk.cloudfront.net/1003/1241222224.jpg",width:100,height:400},name:"Vegetables",nameTranslated:{en:"Vegetables"},url:"http://app.ecwid.com/store/4870020#!/Vegetables/c/9691095",productCount:4,enabledProductCount:3,enabled:!1}]};export{t as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const searchProductsMock={total:2,count:2,offset:0,limit:100,items:[{id:692730761,sku:"123123",thumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",unlimited:!0,inStock:!0,name:"Toys",nameTranslated:{cs:"",en:"Toys"},price:10,priceInProductList:10,defaultDisplayedPrice:10,defaultDisplayedPriceFormatted:"\u20AC10,00",tax:{taxable:!0,defaultLocationIncludedTaxRate:10,enabledManualTaxes:[947976181],taxClassCode:"default"},lowestPrice:10,defaultDisplayedLowestPrice:10,defaultDisplayedLowestPriceFormatted:"\u20AC10,00",lowestPriceSettings:{lowestPriceEnabled:!0},isShippingRequired:!1,hasFreeShipping:!1,url:"https://store1003.company.site/products/toys",autogeneratedSlug:"toys-692730761",customSlug:"",created:"2024-09-04 07:20:11 +0000",updated:"2024-09-04 07:20:12 +0000",createTimestamp:1725434411,updateTimestamp:1725434412,productClassId:0,enabled:!0,options:[],warningLimit:1,fixedShippingRateOnly:!1,fixedShippingRate:0,shipping:{type:"GLOBAL_METHODS",methodMarkup:0,flatRate:0,disabledMethods:[],enabledMethods:[]},defaultCombinationId:0,imageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",smallThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",hdThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",originalImageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",originalImage:{url:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",width:225,height:225},borderInfo:{dominatingColor:{red:255,green:255,blue:255,alpha:255},homogeneity:!0},description:"",descriptionTranslated:{cs:"",en:""},galleryImages:[],media:{images:[{id:"0",isMain:!0,orderBy:0,image160pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",image400pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",image800pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",image1500pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",imageOriginalUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",alt:{translated:{}}}],videos:[]},categoryIds:[],categories:[],defaultCategoryId:0,seoTitle:"Toys",seoTitleTranslated:{cs:"",en:"Toys"},seoDescription:"",seoDescriptionTranslated:{cs:"",en:""},favorites:{count:0,displayedCount:"0"},attributes:[],files:[{id:96178524,name:"image.jpeg",description:"",size:12006,adminUrl:"https://app.ecwid.com/api/v3/1003/products/692730761/files/96178524"}],relatedProducts:{productIds:[],relatedCategory:{enabled:!1,categoryId:0,productCount:5}},combinations:[],dimensions:{length:0,width:0,height:0},shippingPreparationTime:{},showDeliveryTimeInStorefront:!1,volume:0,showOnFrontpage:11,isSampleProduct:!1,googleItemCondition:"NEW",isGiftCard:!1,discountsAllowed:!0,nameYourPriceEnabled:!1,subscriptionSettings:{subscriptionAllowed:!1,oneTimePurchaseAllowed:!0,recurringChargeSettings:[{recurringInterval:"MONTH",recurringIntervalCount:1}]},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW",outOfStockVisibilityBehaviour:"SHOW"},{id:689454040,sku:"00001",thumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679704.jpg",unlimited:!0,inStock:!0,name:"Best Pizza",nameTranslated:{cs:"",en:"Best Pizza"},price:50,priceInProductList:50,defaultDisplayedPrice:50,defaultDisplayedPriceFormatted:"\u20AC50,00",tax:{taxable:!0,defaultLocationIncludedTaxRate:10,enabledManualTaxes:[947976181],taxClassCode:"default"},lowestPrice:50,defaultDisplayedLowestPrice:50,defaultDisplayedLowestPriceFormatted:"\u20AC50,00",lowestPriceSettings:{lowestPriceEnabled:!0},compareToPrice:40,compareToPriceFormatted:"\u20AC40,00",compareToPriceDiscount:-10,compareToPriceDiscountFormatted:"\u20AC-10,00",compareToPriceDiscountPercent:-25,compareToPriceDiscountPercentFormatted:"",defaultDisplayedCompareToPrice:40,defaultDisplayedCompareToPriceFormatted:"\u20AC40,00",defaultDisplayedCompareToPriceDiscount:-10,defaultDisplayedCompareToPriceDiscountFormatted:"\u20AC-10,00",defaultDisplayedCompareToPriceDiscountPercent:-25,defaultDisplayedCompareToPriceDiscountPercentFormatted:"",isShippingRequired:!0,hasFreeShipping:!1,weight:.5,url:"https://store1003.company.site/products/pizza",autogeneratedSlug:"pizza-689454040",customSlug:"pizza",created:"2024-08-19 08:49:01 +0000",updated:"2024-09-05 07:58:07 +0000",createTimestamp:1724057341,updateTimestamp:1725523087,productClassId:0,enabled:!0,options:[{type:"RADIO",name:"Size",nameTranslated:{cs:"",en:"Size"},choices:[{text:"24",textTranslated:{cs:"",en:"24"},priceModifier:0,priceModifierType:"ABSOLUTE"},{text:"28",textTranslated:{cs:"",en:"28"},priceModifier:10,priceModifierType:"ABSOLUTE"},{text:"32",textTranslated:{cs:"",en:"32"},priceModifier:20,priceModifierType:"ABSOLUTE"}],required:!0}],warningLimit:1,fixedShippingRateOnly:!1,fixedShippingRate:0,shipping:{type:"GLOBAL_METHODS",methodMarkup:0,flatRate:0,disabledMethods:[],enabledMethods:[]},defaultCombinationId:0,imageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679702.jpg",smallThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679701.jpg",hdThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679703.jpg",originalImageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679700.jpg",originalImage:{url:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679700.jpg",width:683,height:512},borderInfo:{dominatingColor:{red:129,green:96,blue:73,alpha:255},homogeneity:!1},description:"",descriptionTranslated:{cs:"",en:""},galleryImages:[],media:{images:[{id:"0",isMain:!0,orderBy:0,image160pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679701.jpg",image400pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679704.jpg",image800pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679703.jpg",image1500pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679702.jpg",imageOriginalUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679700.jpg",alt:{main:"alt_tag",translated:{en:"alt_tag",cz:"alt_tag_cz"}}}],videos:[]},categoryIds:[],categories:[],defaultCategoryId:0,seoTitle:"Best Pizza",seoTitleTranslated:{cs:"",en:"Best Pizza"},seoDescription:"",seoDescriptionTranslated:{cs:"",en:""},favorites:{count:0,displayedCount:"0"},attributes:[],files:[],relatedProducts:{productIds:[],relatedCategory:{enabled:!1,categoryId:0,productCount:5}},combinations:[{id:421616046,combinationNumber:2,options:[{name:"Size",nameTranslated:{cs:"",en:"Size"},value:"32",valueTranslated:{cs:"",en:"32"}}],inStock:!0,unlimited:!0,attributes:[],defaultDisplayedPrice:70,defaultDisplayedPriceFormatted:"\u20AC70,00",dimensions:{length:0,width:0,height:0},volume:0,outOfStockVisibilityBehaviour:"SHOW",lowestPrice:50,defaultDisplayedLowestPrice:50,defaultDisplayedLowestPriceFormatted:"\u20AC50,00",lowestPriceSettings:{lowestPriceEnabled:!0},alt:{main:"alt_tag",translated:{cz:"alt_tag_cz",en:"alt_tag"}}},{id:421616047,combinationNumber:1,options:[{name:"Size",nameTranslated:{cs:"",en:"Size"},value:"28",valueTranslated:{cs:"",en:"28"}}],inStock:!0,unlimited:!0,attributes:[],defaultDisplayedPrice:60,defaultDisplayedPriceFormatted:"\u20AC60,00",dimensions:{length:0,width:0,height:0},volume:0,outOfStockVisibilityBehaviour:"SHOW",lowestPrice:50,defaultDisplayedLowestPrice:50,defaultDisplayedLowestPriceFormatted:"\u20AC50,00",lowestPriceSettings:{lowestPriceEnabled:!0},alt:{main:"alt_tag",translated:{cz:"alt_tag_cz",en:"alt_tag"}}}],dimensions:{length:0,width:0,height:0},shippingPreparationTime:{},showDeliveryTimeInStorefront:!1,volume:0,showOnFrontpage:10,isSampleProduct:!1,googleItemCondition:"NEW",isGiftCard:!1,discountsAllowed:!0,nameYourPriceEnabled:!1,subscriptionSettings:{subscriptionAllowed:!1,oneTimePurchaseAllowed:!0,recurringChargeSettings:[{recurringInterval:"MONTH",recurringIntervalCount:1}]},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW",outOfStockVisibilityBehaviour:"SHOW"}]};exports.default=searchProductsMock;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={total:2,count:2,offset:0,limit:100,items:[{id:692730761,sku:"123123",thumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",unlimited:!0,inStock:!0,name:"Toys",nameTranslated:{cs:"",en:"Toys"},price:10,priceInProductList:10,defaultDisplayedPrice:10,defaultDisplayedPriceFormatted:"\u20AC10,00",tax:{taxable:!0,defaultLocationIncludedTaxRate:10,enabledManualTaxes:[947976181],taxClassCode:"default"},lowestPrice:10,defaultDisplayedLowestPrice:10,defaultDisplayedLowestPriceFormatted:"\u20AC10,00",lowestPriceSettings:{lowestPriceEnabled:!0},isShippingRequired:!1,hasFreeShipping:!1,url:"https://store1003.company.site/products/toys",autogeneratedSlug:"toys-692730761",customSlug:"",created:"2024-09-04 07:20:11 +0000",updated:"2024-09-04 07:20:12 +0000",createTimestamp:1725434411,updateTimestamp:1725434412,productClassId:0,enabled:!0,options:[],warningLimit:1,fixedShippingRateOnly:!1,fixedShippingRate:0,shipping:{type:"GLOBAL_METHODS",methodMarkup:0,flatRate:0,disabledMethods:[],enabledMethods:[]},defaultCombinationId:0,imageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",smallThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",hdThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",originalImageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",originalImage:{url:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",width:225,height:225},borderInfo:{dominatingColor:{red:255,green:255,blue:255,alpha:255},homogeneity:!0},description:"",descriptionTranslated:{cs:"",en:""},galleryImages:[],media:{images:[{id:"0",isMain:!0,orderBy:0,image160pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591920.jpg",image400pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591923.jpg",image800pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591922.jpg",image1500pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591921.jpg",imageOriginalUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4519591919.jpg",alt:{translated:{}}}],videos:[]},categoryIds:[],categories:[],defaultCategoryId:0,seoTitle:"Toys",seoTitleTranslated:{cs:"",en:"Toys"},seoDescription:"",seoDescriptionTranslated:{cs:"",en:""},favorites:{count:0,displayedCount:"0"},attributes:[],files:[{id:96178524,name:"image.jpeg",description:"",size:12006,adminUrl:"https://app.ecwid.com/api/v3/1003/products/692730761/files/96178524"}],relatedProducts:{productIds:[],relatedCategory:{enabled:!1,categoryId:0,productCount:5}},combinations:[],dimensions:{length:0,width:0,height:0},shippingPreparationTime:{},showDeliveryTimeInStorefront:!1,volume:0,showOnFrontpage:11,isSampleProduct:!1,googleItemCondition:"NEW",isGiftCard:!1,discountsAllowed:!0,nameYourPriceEnabled:!1,subscriptionSettings:{subscriptionAllowed:!1,oneTimePurchaseAllowed:!0,recurringChargeSettings:[{recurringInterval:"MONTH",recurringIntervalCount:1}]},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW",outOfStockVisibilityBehaviour:"SHOW"},{id:689454040,sku:"00001",thumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679704.jpg",unlimited:!0,inStock:!0,name:"Best Pizza",nameTranslated:{cs:"",en:"Best Pizza"},price:50,priceInProductList:50,defaultDisplayedPrice:50,defaultDisplayedPriceFormatted:"\u20AC50,00",tax:{taxable:!0,defaultLocationIncludedTaxRate:10,enabledManualTaxes:[947976181],taxClassCode:"default"},lowestPrice:50,defaultDisplayedLowestPrice:50,defaultDisplayedLowestPriceFormatted:"\u20AC50,00",lowestPriceSettings:{lowestPriceEnabled:!0},compareToPrice:40,compareToPriceFormatted:"\u20AC40,00",compareToPriceDiscount:-10,compareToPriceDiscountFormatted:"\u20AC-10,00",compareToPriceDiscountPercent:-25,compareToPriceDiscountPercentFormatted:"",defaultDisplayedCompareToPrice:40,defaultDisplayedCompareToPriceFormatted:"\u20AC40,00",defaultDisplayedCompareToPriceDiscount:-10,defaultDisplayedCompareToPriceDiscountFormatted:"\u20AC-10,00",defaultDisplayedCompareToPriceDiscountPercent:-25,defaultDisplayedCompareToPriceDiscountPercentFormatted:"",isShippingRequired:!0,hasFreeShipping:!1,weight:.5,url:"https://store1003.company.site/products/pizza",autogeneratedSlug:"pizza-689454040",customSlug:"pizza",created:"2024-08-19 08:49:01 +0000",updated:"2024-09-05 07:58:07 +0000",createTimestamp:1724057341,updateTimestamp:1725523087,productClassId:0,enabled:!0,options:[{type:"RADIO",name:"Size",nameTranslated:{cs:"",en:"Size"},choices:[{text:"24",textTranslated:{cs:"",en:"24"},priceModifier:0,priceModifierType:"ABSOLUTE"},{text:"28",textTranslated:{cs:"",en:"28"},priceModifier:10,priceModifierType:"ABSOLUTE"},{text:"32",textTranslated:{cs:"",en:"32"},priceModifier:20,priceModifierType:"ABSOLUTE"}],required:!0}],warningLimit:1,fixedShippingRateOnly:!1,fixedShippingRate:0,shipping:{type:"GLOBAL_METHODS",methodMarkup:0,flatRate:0,disabledMethods:[],enabledMethods:[]},defaultCombinationId:0,imageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679702.jpg",smallThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679701.jpg",hdThumbnailUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679703.jpg",originalImageUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679700.jpg",originalImage:{url:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679700.jpg",width:683,height:512},borderInfo:{dominatingColor:{red:129,green:96,blue:73,alpha:255},homogeneity:!1},description:"",descriptionTranslated:{cs:"",en:""},galleryImages:[],media:{images:[{id:"0",isMain:!0,orderBy:0,image160pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679701.jpg",image400pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679704.jpg",image800pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679703.jpg",image1500pxUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679702.jpg",imageOriginalUrl:"https://d2j6dbq0eux0bg.cloudfront.net/images/1003/4493679700.jpg",alt:{main:"alt_tag",translated:{en:"alt_tag",cz:"alt_tag_cz"}}}],videos:[]},categoryIds:[],categories:[],defaultCategoryId:0,seoTitle:"Best Pizza",seoTitleTranslated:{cs:"",en:"Best Pizza"},seoDescription:"",seoDescriptionTranslated:{cs:"",en:""},favorites:{count:0,displayedCount:"0"},attributes:[],files:[],relatedProducts:{productIds:[],relatedCategory:{enabled:!1,categoryId:0,productCount:5}},combinations:[{id:421616046,combinationNumber:2,options:[{name:"Size",nameTranslated:{cs:"",en:"Size"},value:"32",valueTranslated:{cs:"",en:"32"}}],inStock:!0,unlimited:!0,attributes:[],defaultDisplayedPrice:70,defaultDisplayedPriceFormatted:"\u20AC70,00",dimensions:{length:0,width:0,height:0},volume:0,outOfStockVisibilityBehaviour:"SHOW",lowestPrice:50,defaultDisplayedLowestPrice:50,defaultDisplayedLowestPriceFormatted:"\u20AC50,00",lowestPriceSettings:{lowestPriceEnabled:!0},alt:{main:"alt_tag",translated:{cz:"alt_tag_cz",en:"alt_tag"}}},{id:421616047,combinationNumber:1,options:[{name:"Size",nameTranslated:{cs:"",en:"Size"},value:"28",valueTranslated:{cs:"",en:"28"}}],inStock:!0,unlimited:!0,attributes:[],defaultDisplayedPrice:60,defaultDisplayedPriceFormatted:"\u20AC60,00",dimensions:{length:0,width:0,height:0},volume:0,outOfStockVisibilityBehaviour:"SHOW",lowestPrice:50,defaultDisplayedLowestPrice:50,defaultDisplayedLowestPriceFormatted:"\u20AC50,00",lowestPriceSettings:{lowestPriceEnabled:!0},alt:{main:"alt_tag",translated:{cz:"alt_tag_cz",en:"alt_tag"}}}],dimensions:{length:0,width:0,height:0},shippingPreparationTime:{},showDeliveryTimeInStorefront:!1,volume:0,showOnFrontpage:10,isSampleProduct:!1,googleItemCondition:"NEW",isGiftCard:!1,discountsAllowed:!0,nameYourPriceEnabled:!1,subscriptionSettings:{subscriptionAllowed:!1,oneTimePurchaseAllowed:!0,recurringChargeSettings:[{recurringInterval:"MONTH",recurringIntervalCount:1}]},googleProductCategory:412,googleProductCategoryName:"Food, Beverages & Tobacco",productCondition:"NEW",outOfStockVisibilityBehaviour:"SHOW"}]};export{e as default};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const index=require("./shared/ecom-headless.Cr34mwOt.cjs"),storefront_index=require("./storefront/index.cjs");require("axios"),exports.downloadProductFile=index.downloadProductFile,exports.getApiConfig=index.getApiConfig,exports.getProduct=index.getProduct,exports.getStoreProfile=index.getStoreProfile,exports.initStorefrontApi=index.initStorefrontApi,exports.searchCategories=index.searchCategories,exports.searchProducts=index.searchProducts,exports.getShouldUseMocks=storefront_index.getShouldUseMocks,exports.getStoreId=storefront_index.getStoreId;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Account, AccountBilling, Address, AddressFormat, ApplePay, Category, Company, CurrencyFormat, DesignSettings, DestinationZone, DownloadProductFileParams, DownloadProductFileResponse, EstimatedShippingTimeAtCheckoutSettings, FeatureToggle, FilterSection, FlatRate, FormatsAndUnits, GeneralInfo, GetProductParams, GetProductResponse, GetStoreProfileParams, GetStoreProfileResponse, HandlingFee, InstructionsForCustomer, Languages, LegalPage, LegalPagesSettings, LowestPriceSettings, MailNotifications, NotificationSetting, OrderInvoiceSettings, Payment, PaymentOption, PhoneNotifications, Product, ProductAttribute, ProductBorderInfo, ProductCategory, ProductColor, ProductCombination, ProductCombinationOption, ProductDimensions, ProductFavorites, ProductFile, ProductFiltersSettings, ProductGalleryImage, ProductImage, ProductImageAlt, ProductMedia, ProductMediaImage, ProductMediaVideo, ProductOption, ProductOptionChoice, ProductRecurringChargeSettings, ProductRelatedCategory, ProductRelatedProducts, ProductShipping, ProductSubscriptionSettings, ProductTax, RegistrationAnswers, SalePrice, SearchCategoriesParams, SearchCategoriesResponse, SearchProductsParams, SearchProductsResponse, Shipping, ShippingOption, ShippingOrigin, ShippingSettings, ShippingZone, SocialLink, SocialLinksSettings, StarterSite, StoreProfile, StoreSettings, Tax, TaxInvoiceSettings, TaxSettings, TipsSettings, WholesalePrice, Zone, downloadProductFile, getApiConfig, getProduct, getStoreProfile, initStorefrontApi, searchCategories, searchProducts } from './api/index.cjs';
|
|
2
|
+
export { getShouldUseMocks, getStoreId } from './storefront/index.cjs';
|
|
3
|
+
import 'buffer';
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Account, AccountBilling, Address, AddressFormat, ApplePay, Category, Company, CurrencyFormat, DesignSettings, DestinationZone, DownloadProductFileParams, DownloadProductFileResponse, EstimatedShippingTimeAtCheckoutSettings, FeatureToggle, FilterSection, FlatRate, FormatsAndUnits, GeneralInfo, GetProductParams, GetProductResponse, GetStoreProfileParams, GetStoreProfileResponse, HandlingFee, InstructionsForCustomer, Languages, LegalPage, LegalPagesSettings, LowestPriceSettings, MailNotifications, NotificationSetting, OrderInvoiceSettings, Payment, PaymentOption, PhoneNotifications, Product, ProductAttribute, ProductBorderInfo, ProductCategory, ProductColor, ProductCombination, ProductCombinationOption, ProductDimensions, ProductFavorites, ProductFile, ProductFiltersSettings, ProductGalleryImage, ProductImage, ProductImageAlt, ProductMedia, ProductMediaImage, ProductMediaVideo, ProductOption, ProductOptionChoice, ProductRecurringChargeSettings, ProductRelatedCategory, ProductRelatedProducts, ProductShipping, ProductSubscriptionSettings, ProductTax, RegistrationAnswers, SalePrice, SearchCategoriesParams, SearchCategoriesResponse, SearchProductsParams, SearchProductsResponse, Shipping, ShippingOption, ShippingOrigin, ShippingSettings, ShippingZone, SocialLink, SocialLinksSettings, StarterSite, StoreProfile, StoreSettings, Tax, TaxInvoiceSettings, TaxSettings, TipsSettings, WholesalePrice, Zone, downloadProductFile, getApiConfig, getProduct, getStoreProfile, initStorefrontApi, searchCategories, searchProducts } from './api/index.mjs';
|
|
2
|
+
export { getShouldUseMocks, getStoreId } from './storefront/index.mjs';
|
|
3
|
+
import 'buffer';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Account, AccountBilling, Address, AddressFormat, ApplePay, Category, Company, CurrencyFormat, DesignSettings, DestinationZone, DownloadProductFileParams, DownloadProductFileResponse, EstimatedShippingTimeAtCheckoutSettings, FeatureToggle, FilterSection, FlatRate, FormatsAndUnits, GeneralInfo, GetProductParams, GetProductResponse, GetStoreProfileParams, GetStoreProfileResponse, HandlingFee, InstructionsForCustomer, Languages, LegalPage, LegalPagesSettings, LowestPriceSettings, MailNotifications, NotificationSetting, OrderInvoiceSettings, Payment, PaymentOption, PhoneNotifications, Product, ProductAttribute, ProductBorderInfo, ProductCategory, ProductColor, ProductCombination, ProductCombinationOption, ProductDimensions, ProductFavorites, ProductFile, ProductFiltersSettings, ProductGalleryImage, ProductImage, ProductImageAlt, ProductMedia, ProductMediaImage, ProductMediaVideo, ProductOption, ProductOptionChoice, ProductRecurringChargeSettings, ProductRelatedCategory, ProductRelatedProducts, ProductShipping, ProductSubscriptionSettings, ProductTax, RegistrationAnswers, SalePrice, SearchCategoriesParams, SearchCategoriesResponse, SearchProductsParams, SearchProductsResponse, Shipping, ShippingOption, ShippingOrigin, ShippingSettings, ShippingZone, SocialLink, SocialLinksSettings, StarterSite, StoreProfile, StoreSettings, Tax, TaxInvoiceSettings, TaxSettings, TipsSettings, WholesalePrice, Zone, downloadProductFile, getApiConfig, getProduct, getStoreProfile, initStorefrontApi, searchCategories, searchProducts } from './api/index.js';
|
|
2
|
+
export { getShouldUseMocks, getStoreId } from './storefront/index.js';
|
|
3
|
+
import 'buffer';
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{d as downloadProductFile,g as getApiConfig,a as getProduct,c as getStoreProfile,i as initStorefrontApi,b as searchCategories,s as searchProducts}from"./shared/ecom-headless.BCjY03ea.mjs";export{getShouldUseMocks,getStoreId}from"./storefront/index.mjs";import"axios";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{getStoreId as C,getShouldUseMocks as R}from"../storefront/index.mjs";import m,{CanceledError as _}from"axios";const A="https://app.ecwid.com/api/v3/",I=1e4,T=500,a=new Map;let p;const u=()=>{if(p===void 0)throw new Error("Error initializing Storefront API: Please call initStorefrontApi() method first.");return p},w=async e=>{if(e.publicToken===void 0)throw new Error("Error initializing Storefront API: publicToken is required");const t=e.storeId??await C();if(t===void 0)throw new Error("Error initializing Storefront API: storeId id is not found");const o=R()??e.useMocks??!1;p={baseURL:e.baseURL??A,publicToken:e.publicToken,storeId:t,useMocks:o}};function f(e){const{url:t,method:o,params:r={},data:s={}}=e;return`${o?.toUpperCase()}:${t}:${JSON.stringify(r)}:${JSON.stringify(s)}`}function h(e){return m.isCancel(e)&&"existingPromise"in e&&e.existingPromise!==void 0}function k(e){Object.entries(a).forEach(([t,o])=>{e-o.timestamp>T&&a.delete(t)})}function $(e){const t=f(e),o=Date.now();k(o);const r=a.get(t);if(r){const c=new _(`Duplicate request: ${t}`);return c.existingPromise=r.promise,Promise.reject(c)}const s=m.CancelToken.source();e.cancelToken=s.token;const n=new Promise((c,d)=>{e.resolvePromise=c,e.rejectPromise=d});return a.set(t,{promise:n,timestamp:o}),e}function M(e){return Promise.reject(e)}const E={onFulfilled:$,onRejected:M};function v(e){const t=f(e.config),o=a.get(t);if(o){const r=e.config.resolvePromise;r&&r(e),a.set(t,{...o,timestamp:Date.now()})}return e}function U(e){if(h(e))return e.existingPromise;if(e.config){const t=f(e.config),o=a.get(t);if(o){const r=e.config.rejectPromise;r&&r(e),a.set(t,{...o,timestamp:Date.now()})}}return Promise.reject(e)}const S={onFulfilled:v,onRejected:U};var b=(e=>(e.RELEVANCE="RELEVANCE",e.DEFINED_BY_STORE_OWNER="DEFINED_BY_STORE_OWNER",e.ADDED_TIME_DESC="ADDED_TIME_DESC",e.ADDED_TIME_ASC="ADDED_TIME_ASC",e.NAME_ASC="NAME_ASC",e.NAME_DESC="NAME_DESC",e.PRICE_ASC="PRICE_ASC",e.PRICE_DESC="PRICE_DESC",e.UPDATED_TIME_ASC="UPDATED_TIME_ASC",e.UPDATED_TIME_DESC="UPDATED_TIME_DESC",e))(b||{}),i=(e=>(e.GetStoreProfile="GetStoreProfile",e.GetProduct="GetProduct",e.SearchProducts="SearchProducts",e.DownloadProductFile="DownloadProductFile",e.SearchCategories="SearchCategories",e))(i||{});const D={[i.GetStoreProfile]:()=>import("../chunks/get-store-profile-mock.mjs"),[i.GetProduct]:()=>import("../chunks/get-product-mock.mjs"),[i.SearchProducts]:()=>import("../chunks/search-products-mock.mjs"),[i.DownloadProductFile]:()=>import("../chunks/download-product-file-mock.mjs"),[i.SearchCategories]:()=>import("../chunks/search-categories-mock.mjs")};async function q(e){return e?D[e]?(await D[e]()).default:Promise.resolve({message:`Mock request "${e}" not found`}):Promise.resolve({message:"Please provide a valid mock request"})}async function N(e){return Promise.reject({status:200,data:await q(e.mockRequest),statusText:"Ok",headers:{}})}function j(e){return Promise.resolve({status:e.status,data:e.data,statusText:e.statusText,headers:e.headers})}const g={onFulfilled:N,onRejected:j};let P=null;function y(){const e=u(),t=m.create({timeout:I,headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.publicToken}`}});return t.interceptors.request.use(E.onFulfilled,E.onRejected),t.interceptors.response.use(S.onFulfilled,S.onRejected),e.useMocks&&(t.interceptors.request.use(g.onFulfilled),t.interceptors.response.use(o=>o,g.onRejected)),t}const l=()=>(P===null&&(P=y()),P),F=async e=>{const t=l(),{storeId:o,baseURL:r}=u(),s={mockRequest:i.SearchProducts};e!==void 0&&(s.params=e);const n=`${r}${o}/products`;return(await t.get(n,s)).data},O=async e=>{const t=l(),{storeId:o,baseURL:r}=u(),{productId:s,...n}=e,c={params:n,mockRequest:i.GetProduct},d=`${r}${o}/products/${s}`;return(await t.get(d,c)).data},G=async e=>{const t=l(),{storeId:o,baseURL:r}=u(),{productId:s,fileId:n}=e,c={responseType:"blob",mockRequest:i.DownloadProductFile},d=`${r}${o}/products/${s}/files/${n}`;return(await t.get(d,c)).data},L=async e=>{const t=l(),{storeId:o,baseURL:r}=u(),s={mockRequest:i.SearchCategories};e!==void 0&&(s.params=e);const n=`${r}${o}/categories`;return(await t.get(n,s)).data},x=async e=>{const t=l(),{storeId:o,baseURL:r}=u(),s={mockRequest:i.GetStoreProfile};e!==void 0&&(s.params=e);const n=`${r}${o}/profile`;return(await t.get(n,s)).data};export{O as a,L as b,x as c,G as d,u as g,w as i,F as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const storefront_index=require("../storefront/index.cjs"),o$1=require("axios");function _interopDefaultCompat(e){return e&&typeof e=="object"&&"default"in e?e.default:e}const o__default=_interopDefaultCompat(o$1),API_BASE_URL="https://app.ecwid.com/api/v3/",API_TIMEOUT=1e4,API_CACHE_DURATION=500,ONGOING_REQUESTS=new Map;let i;const getApiConfig=()=>{if(i===void 0)throw new Error("Error initializing Storefront API: Please call initStorefrontApi() method first.");return i},initStorefrontApi=async e=>{if(e.publicToken===void 0)throw new Error("Error initializing Storefront API: publicToken is required");const u=e.storeId??await storefront_index.getStoreId();if(u===void 0)throw new Error("Error initializing Storefront API: storeId id is not found");const d=storefront_index.getShouldUseMocks()??e.useMocks??!1;i={baseURL:e.baseURL??API_BASE_URL,publicToken:e.publicToken,storeId:u,useMocks:d}};function generateRequestKey(e){const{url:u,method:d,params:p={},data:P={}}=e;return`${d?.toUpperCase()}:${u}:${JSON.stringify(p)}:${JSON.stringify(P)}`}function isErrorWithExistingPromise(e){return o__default.isCancel(e)&&"existingPromise"in e&&e.existingPromise!==void 0}function R(e){Object.entries(ONGOING_REQUESTS).forEach(([u,d])=>{e-d.timestamp>API_CACHE_DURATION&&ONGOING_REQUESTS.delete(u)})}function f(e){const u=generateRequestKey(e),d=Date.now();R(d);const p=ONGOING_REQUESTS.get(u);if(p){const S=new o$1.CanceledError(`Duplicate request: ${u}`);return S.existingPromise=p.promise,Promise.reject(S)}const P=o__default.CancelToken.source();e.cancelToken=P.token;const E=new Promise((S,g)=>{e.resolvePromise=S,e.rejectPromise=g});return ONGOING_REQUESTS.set(u,{promise:E,timestamp:d}),e}function q(e){return Promise.reject(e)}const n={onFulfilled:f,onRejected:q};function c(e){const u=generateRequestKey(e.config),d=ONGOING_REQUESTS.get(u);if(d){const p=e.config.resolvePromise;p&&p(e),ONGOING_REQUESTS.set(u,{...d,timestamp:Date.now()})}return e}function m(e){if(isErrorWithExistingPromise(e))return e.existingPromise;if(e.config){const u=generateRequestKey(e.config),d=ONGOING_REQUESTS.get(u);if(d){const p=e.config.rejectPromise;p&&p(e),ONGOING_REQUESTS.set(u,{...d,timestamp:Date.now()})}}return Promise.reject(e)}const r={onFulfilled:c,onRejected:m};var SortBy=(e=>(e.RELEVANCE="RELEVANCE",e.DEFINED_BY_STORE_OWNER="DEFINED_BY_STORE_OWNER",e.ADDED_TIME_DESC="ADDED_TIME_DESC",e.ADDED_TIME_ASC="ADDED_TIME_ASC",e.NAME_ASC="NAME_ASC",e.NAME_DESC="NAME_DESC",e.PRICE_ASC="PRICE_ASC",e.PRICE_DESC="PRICE_DESC",e.UPDATED_TIME_ASC="UPDATED_TIME_ASC",e.UPDATED_TIME_DESC="UPDATED_TIME_DESC",e))(SortBy||{}),MockedRequest=(e=>(e.GetStoreProfile="GetStoreProfile",e.GetProduct="GetProduct",e.SearchProducts="SearchProducts",e.DownloadProductFile="DownloadProductFile",e.SearchCategories="SearchCategories",e))(MockedRequest||{});const MOCK_REGISTRY={[MockedRequest.GetStoreProfile]:()=>import("../chunks/get-store-profile-mock.cjs"),[MockedRequest.GetProduct]:()=>import("../chunks/get-product-mock.cjs"),[MockedRequest.SearchProducts]:()=>import("../chunks/search-products-mock.cjs"),[MockedRequest.DownloadProductFile]:()=>import("../chunks/download-product-file-mock.cjs"),[MockedRequest.SearchCategories]:()=>import("../chunks/search-categories-mock.cjs")};async function s(e){return e?MOCK_REGISTRY[e]?(await MOCK_REGISTRY[e]()).default:Promise.resolve({message:`Mock request "${e}" not found`}):Promise.resolve({message:"Please provide a valid mock request"})}async function a(e){return Promise.reject({status:200,data:await s(e.mockRequest),statusText:"Ok",headers:{}})}function o(e){return Promise.resolve({status:e.status,data:e.data,statusText:e.statusText,headers:e.headers})}const s$1={onFulfilled:a,onRejected:o};let t=null;function l(){const e=getApiConfig(),u=o__default.create({timeout:API_TIMEOUT,headers:{"Content-Type":"application/json",Authorization:`Bearer ${e.publicToken}`}});return u.interceptors.request.use(n.onFulfilled,n.onRejected),u.interceptors.response.use(r.onFulfilled,r.onRejected),e.useMocks&&(u.interceptors.request.use(s$1.onFulfilled),u.interceptors.response.use(d=>d,s$1.onRejected)),u}const getApiClient=()=>(t===null&&(t=l()),t),searchProducts=async e=>{const u=getApiClient(),{storeId:d,baseURL:p}=getApiConfig(),P={mockRequest:MockedRequest.SearchProducts};e!==void 0&&(P.params=e);const E=`${p}${d}/products`;return(await u.get(E,P)).data},getProduct=async e=>{const u=getApiClient(),{storeId:d,baseURL:p}=getApiConfig(),{productId:P,...E}=e,S={params:E,mockRequest:MockedRequest.GetProduct},g=`${p}${d}/products/${P}`;return(await u.get(g,S)).data},downloadProductFile=async e=>{const u=getApiClient(),{storeId:d,baseURL:p}=getApiConfig(),{productId:P,fileId:E}=e,S={responseType:"blob",mockRequest:MockedRequest.DownloadProductFile},g=`${p}${d}/products/${P}/files/${E}`;return(await u.get(g,S)).data},searchCategories=async e=>{const u=getApiClient(),{storeId:d,baseURL:p}=getApiConfig(),P={mockRequest:MockedRequest.SearchCategories};e!==void 0&&(P.params=e);const E=`${p}${d}/categories`;return(await u.get(E,P)).data},getStoreProfile=async e=>{const u=getApiClient(),{storeId:d,baseURL:p}=getApiConfig(),P={mockRequest:MockedRequest.GetStoreProfile};e!==void 0&&(P.params=e);const E=`${p}${d}/profile`;return(await u.get(E,P)).data};exports.downloadProductFile=downloadProductFile,exports.getApiConfig=getApiConfig,exports.getProduct=getProduct,exports.getStoreProfile=getStoreProfile,exports.initStorefrontApi=initStorefrontApi,exports.searchCategories=searchCategories,exports.searchProducts=searchProducts;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function n(){return globalThis.window?.Ecwid?.getOwnerId()}async function getStoreId(){const e=globalThis.window?.Ecwid?.OnApiLoaded;if(e!==void 0)return new Promise(s=>{e.add(()=>{const t=n();s(t)})});const o=n();return Promise.resolve(o)}function getShouldUseMocks(){return globalThis.window?.HeadlessAPI?.shouldUseMocks}exports.getShouldUseMocks=getShouldUseMocks,exports.getStoreId=getStoreId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(){return globalThis.window?.Ecwid?.getOwnerId()}async function i(){const o=globalThis.window?.Ecwid?.OnApiLoaded;if(o!==void 0)return new Promise(s=>{o.add(()=>{const d=e();s(d)})});const n=e();return Promise.resolve(n)}function r(){return globalThis.window?.HeadlessAPI?.shouldUseMocks}export{r as getShouldUseMocks,i as getStoreId};
|
package/package.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lightspeed/ecom-headless",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"module": "dist/index.mjs",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./api": {
|
|
15
|
+
"types": "./dist/api/index.d.ts",
|
|
16
|
+
"import": "./dist/api/index.mjs",
|
|
17
|
+
"require": "./dist/api/index.cjs"
|
|
18
|
+
},
|
|
19
|
+
"./storefront": {
|
|
20
|
+
"types": "./dist/storefront/index.d.ts",
|
|
21
|
+
"import": "./dist/storefront/index.mjs",
|
|
22
|
+
"require": "./dist/storefront/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist",
|
|
27
|
+
"CHANGELOG.md",
|
|
28
|
+
"UPGRADE.md"
|
|
29
|
+
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "npm run clean && unbuild",
|
|
32
|
+
"clean": "rm -rf dist",
|
|
33
|
+
"prepublishOnly": "npm run build",
|
|
34
|
+
"typecheck": "tsc --noEmit",
|
|
35
|
+
"lint": "eslint \"./{src,tests}/**/*.{js,ts}\"",
|
|
36
|
+
"lint:all": "yarn lint && yarn typecheck",
|
|
37
|
+
"test": "jest"
|
|
38
|
+
},
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"axios": "1.10.0"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@jest/globals": "^29.7.0",
|
|
45
|
+
"@lightspeed/eslint-config-crane": "1.1.1",
|
|
46
|
+
"@types/jest": "^29.5.12",
|
|
47
|
+
"@types/node": "^22.15.33",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
|
49
|
+
"@typescript-eslint/parser": "^8.35.0",
|
|
50
|
+
"eslint": "^9.29.0",
|
|
51
|
+
"jest": "^29.7.0",
|
|
52
|
+
"ts-jest": "^29.1.5",
|
|
53
|
+
"tsc-alias": "^1.8.16",
|
|
54
|
+
"typescript": "5.4.5",
|
|
55
|
+
"unbuild": "^3.5.0"
|
|
56
|
+
},
|
|
57
|
+
"description": "Headless JS client for Ecwid public API",
|
|
58
|
+
"keywords": [
|
|
59
|
+
"lightspeed",
|
|
60
|
+
"ecwid",
|
|
61
|
+
"storefront",
|
|
62
|
+
"ecommerce",
|
|
63
|
+
"headless",
|
|
64
|
+
"api",
|
|
65
|
+
"typescript"
|
|
66
|
+
]
|
|
67
|
+
}
|