@misiki/gocommerce-connector 0.3.1 → 0.4.1

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/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Address, a as AddressService, b as AppliedDiscount, c as Approval, d as AuthResponse, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, C as Cart, l as CartLine, m as CartService, n as CatalogService, o as Category, p as CategoryService, q as ChatService, r as CheckoutOptions, s as CheckoutResult, t as CheckoutService, u as CmsPage, v as Collection, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, F as Credentials, G as Credit, H as CurrencyService, I as Customer, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, N as Envelope, O as Faq, P as FaqService, Q as FeedbackService, R as Fulfillment, S as GalleryService, T as HomeService, U as IdentityAddress, V as InitService, W as Invitation, X as Lead, Y as ListMeta, Z as MeilisearchService, _ as Member, $ as Menu, a0 as MenuItem, a1 as MenuService, a2 as MenuSummary, a3 as Money, a4 as NewsletterService, a5 as Offer, a6 as Order, a7 as OrderLine, a8 as OrderService, a9 as PageService, aa as PaymentIntent, ab as PaymentMethodService, ac as Plugin, ad as PluginService, ad as PluginsService, ae as PopularSearchService, af as PopularityService, ag as Product, ah as ProductOption, ai as ProductService, aj as ProfileService, ak as Quote, al as REDIRECT_GATEWAYS, am as ReelsService, an as RegionService, ao as RejectedLine, ap as Review, aq as ReviewPage, ar as ReviewService, as as SearchDoc, at as SearchResult, au as SearchService, av as SettingService, av as SettingsService, aw as ShippingRate, ax as StateService, ay as StoreService, az as StorefrontCategory, aA as StorefrontMenu, aB as StorefrontOrder, aC as StorefrontProduct, aD as UploadService, aE as UserService, aF as Variant, aG as VariantImage, aH as VariantService, aI as VarniCustomDesignService, aJ as VarniCustomProductService, aK as Vendor, aL as VendorService, aM as WarrantyService, aN as Wishlist, aO as WishlistItem, aP as WishlistService, aQ as addressService, aR as authService, aS as autocompleteService, aT as b2bService, aU as bannerService, aV as blogService, aW as cartService, aX as categoryService, aY as chatService, aZ as checkoutService, a_ as collectionService, a$ as contactService, b0 as countryService, b1 as couponService, b2 as currencyExponent, b3 as currencyService, b4 as dealService, b5 as demoRequestService, b6 as emptyCart, b7 as emptyPage, b8 as enquiryService, b9 as faqService, ba as feedbackService, bb as fromEngineAddress, bc as fromIdentityAddress, bd as fromSearchDoc, be as galleryService, bf as homeService, bg as initService, bh as mediaUrl, bi as meilisearchService, bj as menuService, bk as minorToMajor, bl as newsletterService, bm as orderService, bn as pageService, bo as paymentMethodService, bp as pluginService, bq as pluginsService, br as popularSearchService, bs as popularityService, bt as priceOf, bu as productImages, bv as productService, bw as profileService, bx as qs, by as reelsService, bz as regionService, bA as reviewService, bB as searchService, bC as settingService, bD as settingsService, bE as stateService, bF as staticStore, bG as storeService, bH as toCart, bI as toCartLine, bJ as toCategory, bK as toCmsPage, bL as toCollection, bM as toEngineAddress, bN as toIdentityAddress, bO as toMajor, bP as toMinor, bQ as toOrder, bR as toPage, bS as toProduct, bT as toRating, bU as toUser, bV as toVariant, bW as toVendor, bX as uploadService, bY as userService, bZ as variantService, b_ as varniCustomDesignService, b$ as varniCustomProductService, c0 as vendorService, c1 as warrantyService, c2 as wishlistService } from './index-D8lNRhqJ.cjs';
1
+ export { A as Address, a as AddressService, b as AppliedDiscount, c as Approval, d as AuthResponse, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, C as Cart, l as CartLine, m as CartService, n as CatalogService, o as Category, p as CategoryService, q as ChatService, r as CheckoutOptions, s as CheckoutResult, t as CheckoutService, u as CmsPage, v as Collection, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, F as Credentials, G as Credit, H as CurrencyService, I as Customer, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, N as Envelope, O as Faq, P as FaqService, Q as FeedbackService, R as Fulfillment, S as GalleryService, T as HomeService, U as IdentityAddress, V as InitService, W as Invitation, X as Lead, Y as ListMeta, Z as MeilisearchService, _ as Member, $ as Menu, a0 as MenuItem, a1 as MenuService, a2 as MenuSummary, a3 as Money, a4 as NewsletterService, a5 as Offer, a6 as Order, a7 as OrderLine, a8 as OrderService, a9 as PageService, aa as PaymentIntent, ab as PaymentMethodService, ac as Plugin, ad as PluginService, ad as PluginsService, ae as PopularSearchService, af as PopularityService, ag as Product, ah as ProductOption, ai as ProductService, aj as ProfileService, ak as Quote, al as REDIRECT_GATEWAYS, am as ReelsService, an as RegionService, ao as RejectedLine, ap as Review, aq as ReviewPage, ar as ReviewService, as as SearchDoc, at as SearchResult, au as SearchService, av as SettingService, av as SettingsService, aw as ShippingRate, ax as StateService, ay as StoreProfile, az as StoreService, aA as StorefrontCategory, aB as StorefrontMenu, aC as StorefrontOrder, aD as StorefrontProduct, aE as UploadService, aF as UserService, aG as Variant, aH as VariantImage, aI as VariantService, aJ as VarniCustomDesignService, aK as VarniCustomProductService, aL as Vendor, aM as VendorService, aN as WarrantyService, aO as Wishlist, aP as WishlistItem, aQ as WishlistService, aR as addressService, aS as authService, aT as autocompleteService, aU as b2bService, aV as bannerService, aW as blogService, aX as cartService, aY as categoryService, aZ as chatService, a_ as checkoutService, a$ as collectionService, b0 as contactService, b1 as countryService, b2 as couponService, b3 as currencyExponent, b4 as currencyService, b5 as dealService, b6 as demoRequestService, b7 as emptyCart, b8 as emptyPage, b9 as enquiryService, ba as faqService, bb as feedbackService, bc as fromEngineAddress, bd as fromIdentityAddress, be as fromSearchDoc, bf as galleryService, bg as homeService, bh as initService, bi as mediaUrl, bj as meilisearchService, bk as menuService, bl as minorToMajor, bm as newsletterService, bn as orderService, bo as pageService, bp as paymentMethodService, bq as pluginService, br as pluginsService, bs as popularSearchService, bt as popularityService, bu as priceOf, bv as productImages, bw as productService, bx as profileService, by as qs, bz as reelsService, bA as regionService, bB as reviewService, bC as searchService, bD as setRequestHost, bE as settingService, bF as settingsService, bG as stateService, bH as staticStore, bI as storeForHost, bJ as storeService, bK as toCart, bL as toCartLine, bM as toCategory, bN as toCmsPage, bO as toCollection, bP as toEngineAddress, bQ as toIdentityAddress, bR as toMajor, bS as toMinor, bT as toOrder, bU as toPage, bV as toProduct, bW as toRating, bX as toUser, bY as toVariant, bZ as toVendor, b_ as uploadService, b$ as userService, c0 as variantService, c1 as varniCustomDesignService, c2 as varniCustomProductService, c3 as vendorService, c4 as warrantyService, c5 as wishlistService } from './index-DIj1rK1d.cjs';
2
2
 
3
3
  /**
4
4
  * The two ways a call through this connector fails.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Address, a as AddressService, b as AppliedDiscount, c as Approval, d as AuthResponse, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, C as Cart, l as CartLine, m as CartService, n as CatalogService, o as Category, p as CategoryService, q as ChatService, r as CheckoutOptions, s as CheckoutResult, t as CheckoutService, u as CmsPage, v as Collection, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, F as Credentials, G as Credit, H as CurrencyService, I as Customer, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, N as Envelope, O as Faq, P as FaqService, Q as FeedbackService, R as Fulfillment, S as GalleryService, T as HomeService, U as IdentityAddress, V as InitService, W as Invitation, X as Lead, Y as ListMeta, Z as MeilisearchService, _ as Member, $ as Menu, a0 as MenuItem, a1 as MenuService, a2 as MenuSummary, a3 as Money, a4 as NewsletterService, a5 as Offer, a6 as Order, a7 as OrderLine, a8 as OrderService, a9 as PageService, aa as PaymentIntent, ab as PaymentMethodService, ac as Plugin, ad as PluginService, ad as PluginsService, ae as PopularSearchService, af as PopularityService, ag as Product, ah as ProductOption, ai as ProductService, aj as ProfileService, ak as Quote, al as REDIRECT_GATEWAYS, am as ReelsService, an as RegionService, ao as RejectedLine, ap as Review, aq as ReviewPage, ar as ReviewService, as as SearchDoc, at as SearchResult, au as SearchService, av as SettingService, av as SettingsService, aw as ShippingRate, ax as StateService, ay as StoreService, az as StorefrontCategory, aA as StorefrontMenu, aB as StorefrontOrder, aC as StorefrontProduct, aD as UploadService, aE as UserService, aF as Variant, aG as VariantImage, aH as VariantService, aI as VarniCustomDesignService, aJ as VarniCustomProductService, aK as Vendor, aL as VendorService, aM as WarrantyService, aN as Wishlist, aO as WishlistItem, aP as WishlistService, aQ as addressService, aR as authService, aS as autocompleteService, aT as b2bService, aU as bannerService, aV as blogService, aW as cartService, aX as categoryService, aY as chatService, aZ as checkoutService, a_ as collectionService, a$ as contactService, b0 as countryService, b1 as couponService, b2 as currencyExponent, b3 as currencyService, b4 as dealService, b5 as demoRequestService, b6 as emptyCart, b7 as emptyPage, b8 as enquiryService, b9 as faqService, ba as feedbackService, bb as fromEngineAddress, bc as fromIdentityAddress, bd as fromSearchDoc, be as galleryService, bf as homeService, bg as initService, bh as mediaUrl, bi as meilisearchService, bj as menuService, bk as minorToMajor, bl as newsletterService, bm as orderService, bn as pageService, bo as paymentMethodService, bp as pluginService, bq as pluginsService, br as popularSearchService, bs as popularityService, bt as priceOf, bu as productImages, bv as productService, bw as profileService, bx as qs, by as reelsService, bz as regionService, bA as reviewService, bB as searchService, bC as settingService, bD as settingsService, bE as stateService, bF as staticStore, bG as storeService, bH as toCart, bI as toCartLine, bJ as toCategory, bK as toCmsPage, bL as toCollection, bM as toEngineAddress, bN as toIdentityAddress, bO as toMajor, bP as toMinor, bQ as toOrder, bR as toPage, bS as toProduct, bT as toRating, bU as toUser, bV as toVariant, bW as toVendor, bX as uploadService, bY as userService, bZ as variantService, b_ as varniCustomDesignService, b$ as varniCustomProductService, c0 as vendorService, c1 as warrantyService, c2 as wishlistService } from './index-D8lNRhqJ.js';
1
+ export { A as Address, a as AddressService, b as AppliedDiscount, c as Approval, d as AuthResponse, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, C as Cart, l as CartLine, m as CartService, n as CatalogService, o as Category, p as CategoryService, q as ChatService, r as CheckoutOptions, s as CheckoutResult, t as CheckoutService, u as CmsPage, v as Collection, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, F as Credentials, G as Credit, H as CurrencyService, I as Customer, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, N as Envelope, O as Faq, P as FaqService, Q as FeedbackService, R as Fulfillment, S as GalleryService, T as HomeService, U as IdentityAddress, V as InitService, W as Invitation, X as Lead, Y as ListMeta, Z as MeilisearchService, _ as Member, $ as Menu, a0 as MenuItem, a1 as MenuService, a2 as MenuSummary, a3 as Money, a4 as NewsletterService, a5 as Offer, a6 as Order, a7 as OrderLine, a8 as OrderService, a9 as PageService, aa as PaymentIntent, ab as PaymentMethodService, ac as Plugin, ad as PluginService, ad as PluginsService, ae as PopularSearchService, af as PopularityService, ag as Product, ah as ProductOption, ai as ProductService, aj as ProfileService, ak as Quote, al as REDIRECT_GATEWAYS, am as ReelsService, an as RegionService, ao as RejectedLine, ap as Review, aq as ReviewPage, ar as ReviewService, as as SearchDoc, at as SearchResult, au as SearchService, av as SettingService, av as SettingsService, aw as ShippingRate, ax as StateService, ay as StoreProfile, az as StoreService, aA as StorefrontCategory, aB as StorefrontMenu, aC as StorefrontOrder, aD as StorefrontProduct, aE as UploadService, aF as UserService, aG as Variant, aH as VariantImage, aI as VariantService, aJ as VarniCustomDesignService, aK as VarniCustomProductService, aL as Vendor, aM as VendorService, aN as WarrantyService, aO as Wishlist, aP as WishlistItem, aQ as WishlistService, aR as addressService, aS as authService, aT as autocompleteService, aU as b2bService, aV as bannerService, aW as blogService, aX as cartService, aY as categoryService, aZ as chatService, a_ as checkoutService, a$ as collectionService, b0 as contactService, b1 as countryService, b2 as couponService, b3 as currencyExponent, b4 as currencyService, b5 as dealService, b6 as demoRequestService, b7 as emptyCart, b8 as emptyPage, b9 as enquiryService, ba as faqService, bb as feedbackService, bc as fromEngineAddress, bd as fromIdentityAddress, be as fromSearchDoc, bf as galleryService, bg as homeService, bh as initService, bi as mediaUrl, bj as meilisearchService, bk as menuService, bl as minorToMajor, bm as newsletterService, bn as orderService, bo as pageService, bp as paymentMethodService, bq as pluginService, br as pluginsService, bs as popularSearchService, bt as popularityService, bu as priceOf, bv as productImages, bw as productService, bx as profileService, by as qs, bz as reelsService, bA as regionService, bB as reviewService, bC as searchService, bD as setRequestHost, bE as settingService, bF as settingsService, bG as stateService, bH as staticStore, bI as storeForHost, bJ as storeService, bK as toCart, bL as toCartLine, bM as toCategory, bN as toCmsPage, bO as toCollection, bP as toEngineAddress, bQ as toIdentityAddress, bR as toMajor, bS as toMinor, bT as toOrder, bU as toPage, bV as toProduct, bW as toRating, bX as toUser, bY as toVariant, bZ as toVendor, b_ as uploadService, b$ as userService, c0 as variantService, c1 as varniCustomDesignService, c2 as varniCustomProductService, c3 as vendorService, c4 as warrantyService, c5 as wishlistService } from './index-DIj1rK1d.js';
2
2
 
3
3
  /**
4
4
  * The two ways a call through this connector fails.
package/dist/index.js CHANGED
@@ -283,6 +283,17 @@ var BaseService = class _BaseService {
283
283
  get creds() {
284
284
  return _BaseService._credentials;
285
285
  }
286
+ /**
287
+ * The store this call is for: the request host's subdomain under
288
+ * `baseDomain`, else the static `store`. Read per call, never stored on the
289
+ * instance, because the server shares one process (and one credentials
290
+ * object) across every concurrent request and each may be for a different host.
291
+ */
292
+ get store() {
293
+ const { baseDomain, store } = this.creds;
294
+ const host = typeof window !== "undefined" ? window.location?.hostname : requestHost?.();
295
+ return storeForHost(host, baseDomain) ?? store;
296
+ }
286
297
  /**
287
298
  * The engine's base URL from wherever this code runs. In the browser a
288
299
  * configured proxy path wins, because the engine answers no CORS preflight.
@@ -316,7 +327,8 @@ var BaseService = class _BaseService {
316
327
  const url = this.engineURL(path, lang ? { lang, ...req.query } : req.query);
317
328
  const headers = { Accept: "application/json", ...req.headers };
318
329
  if (req.body !== void 0) headers["Content-Type"] = "application/json";
319
- if (this.creds.store) headers["X-Store"] = this.creds.store;
330
+ const store = this.store;
331
+ if (store) headers["X-Store"] = store;
320
332
  if (req.auth) {
321
333
  const token = sessionToken();
322
334
  if (!token) throw new GoCommerceError("Please sign in to continue.", 401, "unauthorized");
@@ -418,6 +430,18 @@ var BaseService = class _BaseService {
418
430
  return body;
419
431
  }
420
432
  };
433
+ var requestHost;
434
+ function setRequestHost(fn) {
435
+ requestHost = fn;
436
+ }
437
+ function storeForHost(host, baseDomain) {
438
+ if (!host || !baseDomain) return void 0;
439
+ const h = host.toLowerCase().replace(/\.$/, "").replace(/:\d+$/, "");
440
+ const suffix = "." + baseDomain.toLowerCase().replace(/^\.+/, "").replace(/\.$/, "");
441
+ if (!h.endsWith(suffix)) return void 0;
442
+ const slug = h.slice(0, -suffix.length);
443
+ return slug && !slug.includes(".") ? slug : void 0;
444
+ }
421
445
  var unreachable = (base, cause) => new GoCommerceError(`Could not reach the commerce engine at ${base}: ${cause?.message ?? cause}`, 0);
422
446
  function qs(query) {
423
447
  if (!query) return "";
@@ -965,7 +989,7 @@ var priceOf = (m) => m ? toMajor(m) : 0;
965
989
  // src/services/facts.ts
966
990
  var StoreFacts = class extends BaseService {
967
991
  key(name) {
968
- return `${this.engineBase()}|${this.creds.store ?? ""}|${name}`;
992
+ return `${this.engineBase()}|${this.store ?? ""}|${name}`;
969
993
  }
970
994
  /** Enabled plugins by key. A module that is not installed has no key here. */
971
995
  plugins() {
@@ -985,6 +1009,10 @@ var StoreFacts = class extends BaseService {
985
1009
  ready() {
986
1010
  return remember(this.key("ready"), () => this.data("/health/ready"));
987
1011
  }
1012
+ /** The store's own name and how a buyer reaches it, as set in its panel. */
1013
+ profile() {
1014
+ return remember(this.key("profile"), () => this.data("/api/store"));
1015
+ }
988
1016
  checkoutOptions() {
989
1017
  return remember(this.key("checkout"), () => this.data("/api/checkout"));
990
1018
  }
@@ -2395,7 +2423,7 @@ var MenuService = class extends BaseService {
2395
2423
  /** The header and footer menus, or `null` when the module is not there. Cached: a menu is store-level. */
2396
2424
  async engineMenus() {
2397
2425
  if (!await this.facts.pluginOn("navigation")) return null;
2398
- return remember(`${this.engineBase()}|${this.creds.store ?? ""}|menus`, async () => {
2426
+ return remember(`${this.engineBase()}|${this.store ?? ""}|menus`, async () => {
2399
2427
  const out = [];
2400
2428
  for (const handle of ["header", "footer"]) {
2401
2429
  try {
@@ -2429,6 +2457,7 @@ var NewsletterService = class extends BaseService {
2429
2457
  var newsletterService = new NewsletterService();
2430
2458
 
2431
2459
  // src/services/store-service.ts
2460
+ var isStoreMissing = (err) => err instanceof GoCommerceError && err.status === 404 && (err.code === "store_not_found" || /store not found|no such store/i.test(err.message));
2432
2461
  function symbolFor(code) {
2433
2462
  try {
2434
2463
  const part = new Intl.NumberFormat("en", { style: "currency", currency: code }).formatToParts(0).find((p) => p.type === "currency");
@@ -2441,6 +2470,14 @@ var StoreService = class extends BaseService {
2441
2470
  facts = new StoreFacts(this._fetch);
2442
2471
  async getStoreByIdOrDomain(_args = {}) {
2443
2472
  const base = await readStaticStore();
2473
+ const store = this.store;
2474
+ if (store) {
2475
+ await this.facts.plugins().catch((err) => {
2476
+ if (isStoreMissing(err)) {
2477
+ throw new GoCommerceError(`store not found: no store "${store}" on this engine`, 404, "store_not_found");
2478
+ }
2479
+ });
2480
+ }
2444
2481
  const live = await this.live().catch(() => ({}));
2445
2482
  return { ...base, ...live, id: base.id || "gocommerce" };
2446
2483
  }
@@ -2478,17 +2515,22 @@ var StoreService = class extends BaseService {
2478
2515
  return super.post(path, data);
2479
2516
  }
2480
2517
  async live() {
2481
- const [ready, plugins, menus, base] = await Promise.all([
2518
+ const [ready, plugins, menus, base, profile] = await Promise.all([
2482
2519
  this.facts.ready(),
2483
2520
  this.facts.plugins().catch(() => /* @__PURE__ */ new Map()),
2484
2521
  new MenuService(this._fetch).engineMenus(),
2485
- readStaticStore()
2522
+ readStaticStore(),
2523
+ this.facts.profile().catch(() => null)
2486
2524
  ]);
2487
2525
  const code = ready.currency;
2488
2526
  const sameCurrency = (base.currency?.code ?? base.currencyCode) === code;
2489
2527
  const flag = (on) => ({ ...on ? { active: true } : { active: false } });
2490
2528
  const basePlugins = base.plugins ?? {};
2491
2529
  return {
2530
+ // Only what the owner filled in: an empty name keeps the static one.
2531
+ ...profile?.name ? { name: profile.name } : {},
2532
+ ...profile?.email ? { businessEmail: profile.email } : {},
2533
+ ...profile?.phone ? { businessPhone: profile.phone } : {},
2492
2534
  currencyCode: code,
2493
2535
  currencySymbol: sameCurrency ? base.currencySymbol ?? symbolFor(code) : symbolFor(code),
2494
2536
  currency: {
@@ -3076,6 +3118,6 @@ function attemptKey(request) {
3076
3118
  }
3077
3119
  var b2bService = new B2bService();
3078
3120
 
3079
- export { AddressService, AuthService, AutocompleteService, B2bService, BannerService, BaseService, BlogService, CartService, CatalogService, CategoryService, ChatService, CheckoutService, CollectionService, ContactService, CountryService, CouponService, CurrencyService, DealService, DemoRequestService, EnquiryService, FaqService, FeedbackService, GalleryService, GoCommerceError, HomeService, InitService, MeilisearchService, MenuService, NewsletterService, NotSupportedError, OrderService, PageService, PaymentMethodService, PluginService, PluginService as PluginsService, PopularSearchService, PopularityService, ProductService, ProfileService, REDIRECT_GATEWAYS, ReelsService, RegionService, ReviewService, SearchService, SettingService, SettingService as SettingsService, StateService, StoreService, UploadService, UserService, VariantService, VarniCustomDesignService, VarniCustomProductService, VendorService, WarrantyService, WishlistService, addressService, authService, autocompleteService, b2bService, bannerService, blogService, cartService, categoryService, chatService, checkoutService, forgetAll as clearStoreCache, collectionService, connectorName, contactService, countryService, couponService, currencyExponent, currencyService, dealService, demoRequestService, emptyCart, emptyPage, enquiryService, faqService, feedbackService, fromEngineAddress, fromIdentityAddress, fromSearchDoc, galleryService, hasStaticStore, homeService, initService, mediaUrl, meilisearchService, menuService, minorToMajor, newsletterService, orderService, pageService, paymentMethodService, pluginService, pluginsService, popularSearchService, popularityService, priceOf, productImages, productService, profileService, qs, readStaticStore, reelsService, regionService, reviewService, searchService, serveRestLocally, setStaticStore, settingService, settingsService, stateService, staticStore, storeService, toCart, toCartLine, toCategory, toCmsPage, toCollection, toEngineAddress, toIdentityAddress, toMajor, toMinor, toOrder, toPage, toProduct, toRating, toUser, toVariant, toVendor, uploadService, userService, variantService, varniCustomDesignService, varniCustomProductService, vendorService, warrantyService, wishlistService };
3121
+ export { AddressService, AuthService, AutocompleteService, B2bService, BannerService, BaseService, BlogService, CartService, CatalogService, CategoryService, ChatService, CheckoutService, CollectionService, ContactService, CountryService, CouponService, CurrencyService, DealService, DemoRequestService, EnquiryService, FaqService, FeedbackService, GalleryService, GoCommerceError, HomeService, InitService, MeilisearchService, MenuService, NewsletterService, NotSupportedError, OrderService, PageService, PaymentMethodService, PluginService, PluginService as PluginsService, PopularSearchService, PopularityService, ProductService, ProfileService, REDIRECT_GATEWAYS, ReelsService, RegionService, ReviewService, SearchService, SettingService, SettingService as SettingsService, StateService, StoreService, UploadService, UserService, VariantService, VarniCustomDesignService, VarniCustomProductService, VendorService, WarrantyService, WishlistService, addressService, authService, autocompleteService, b2bService, bannerService, blogService, cartService, categoryService, chatService, checkoutService, forgetAll as clearStoreCache, collectionService, connectorName, contactService, countryService, couponService, currencyExponent, currencyService, dealService, demoRequestService, emptyCart, emptyPage, enquiryService, faqService, feedbackService, fromEngineAddress, fromIdentityAddress, fromSearchDoc, galleryService, hasStaticStore, homeService, initService, mediaUrl, meilisearchService, menuService, minorToMajor, newsletterService, orderService, pageService, paymentMethodService, pluginService, pluginsService, popularSearchService, popularityService, priceOf, productImages, productService, profileService, qs, readStaticStore, reelsService, regionService, reviewService, searchService, serveRestLocally, setRequestHost, setStaticStore, settingService, settingsService, stateService, staticStore, storeForHost, storeService, toCart, toCartLine, toCategory, toCmsPage, toCollection, toEngineAddress, toIdentityAddress, toMajor, toMinor, toOrder, toPage, toProduct, toRating, toUser, toVariant, toVendor, uploadService, userService, variantService, varniCustomDesignService, varniCustomProductService, vendorService, warrantyService, wishlistService };
3080
3122
  //# sourceMappingURL=index.js.map
3081
3123
  //# sourceMappingURL=index.js.map