@misiki/gocommerce-connector 0.8.0 → 0.9.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.
@@ -1 +1 @@
1
- export { a as AddressService, c as Approval, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, m as CartService, n as CatalogService, p as CategoryService, q as ChatService, t as CheckoutService, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, G as Credit, H as CurrencyService, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, P as FaqService, Q as FeedbackService, S as GalleryService, T as HomeLayout, U as HomeLayoutSection, V as HomeService, X as InitService, Y as Invitation, Z as LayoutCollection, _ as LayoutService, $ as Lead, a1 as MeilisearchService, a2 as Member, a5 as MenuService, a8 as NewsletterService, ac as OrderService, ad as PageService, af as PaymentMethodService, ah as PluginService, ah as PluginsService, ai as PopularSearchService, aj as PopularityService, am as ProductService, an as ProfileService, ao as Quote, ap as REDIRECT_GATEWAYS, aq as ReelsService, ar as RegionService, as as RejectedLine, av as ReviewService, ay as SearchService, az as SettingService, az as SettingsService, aB as StateService, aD as StoreService, aF as StorefrontMenu, aI as ThemeSettings, aJ as ThemeSettingsResult, aK as UploadService, aL as UserService, aO as VariantService, aP as VarniCustomDesignService, aQ as VarniCustomProductService, aS as VendorService, aT as WarrantyService, aW as WishlistService, aX as addressService, aY as authService, aZ as autocompleteService, a_ as b2bService, a$ as bannerService, b0 as blogService, b1 as cartService, b2 as categoryService, b3 as chatService, b4 as checkoutService, b5 as collectionService, b6 as contactService, b7 as countryService, b8 as couponService, ba as currencyService, bb as dealService, bc as demoRequestService, be as emptyPage, bf as enquiryService, bg as faqService, bh as feedbackService, bl as galleryService, bm as homeService, bn as initService, bo as layoutService, bp as mediaUrl, bq as meilisearchService, br as menuService, bt as newsletterService, bu as orderService, bv as ownDomain, bw as pageService, bx as paymentMethodService, by as pluginService, bz as pluginsService, bA as popularSearchService, bB as popularityService, bE as productService, bF as profileService, bG as qs, bH as reelsService, bI as regionService, bJ as reviewService, bK as searchService, bL as setRequestHost, bM as settingService, bN as settingsService, bO as stateService, bP as staticStore, bQ as storeForHost, bR as storeService, c0 as toPage, c6 as uploadService, c7 as userService, c8 as variantService, c9 as varniCustomDesignService, ca as varniCustomProductService, cb as vendorService, cc as warrantyService, cd as wishlistService } from '../index-inrM-B0Z.cjs';
1
+ export { a as AddressService, c as Approval, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, m as CartService, n as CatalogService, p as CategoryService, q as ChatService, t as CheckoutService, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, G as Credit, H as CurrencyService, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, P as FaqService, Q as FeedbackService, S as GalleryService, T as HomeLayout, U as HomeLayoutSection, V as HomeService, X as InitService, Y as Invitation, Z as LayoutCollection, _ as LayoutPage, $ as LayoutService, a0 as Lead, a2 as MeilisearchService, a3 as Member, a6 as MenuService, a9 as NewsletterService, ad as OrderService, ae as PageLayout, af as PageService, ah as PaymentMethodService, aj as PluginService, aj as PluginsService, ak as PopularSearchService, al as PopularityService, ao as ProductService, ap as ProfileService, aq as Quote, ar as REDIRECT_GATEWAYS, as as ReelsService, at as RegionService, au as RejectedLine, ax as ReviewService, aA as SearchService, aB as SettingService, aB as SettingsService, aD as StateService, aF as StoreService, aH as StorefrontMenu, aK as ThemeSettings, aL as ThemeSettingsResult, aM as UploadService, aN as UserService, aQ as VariantService, aR as VarniCustomDesignService, aS as VarniCustomProductService, aU as VendorService, aV as WarrantyService, aY as WishlistService, aZ as addressService, a_ as authService, a$ as autocompleteService, b0 as b2bService, b1 as bannerService, b2 as blogService, b3 as cartService, b4 as categoryService, b5 as chatService, b6 as checkoutService, b7 as collectionService, b8 as contactService, b9 as countryService, ba as couponService, bc as currencyService, bd as dealService, be as demoRequestService, bg as emptyPage, bh as enquiryService, bi as faqService, bj as feedbackService, bn as galleryService, bo as homeService, bp as initService, bq as layoutService, br as mediaUrl, bs as meilisearchService, bt as menuService, bv as newsletterService, bw as orderService, bx as ownDomain, by as pageService, bz as paymentMethodService, bA as pluginService, bB as pluginsService, bC as popularSearchService, bD as popularityService, bG as productService, bH as profileService, bI as qs, bJ as reelsService, bK as regionService, bL as reviewService, bM as searchService, bN as setRequestHost, bO as settingService, bP as settingsService, bQ as stateService, bR as staticStore, bS as storeForHost, bT as storeService, c2 as toPage, c8 as uploadService, c9 as userService, ca as variantService, cb as varniCustomDesignService, cc as varniCustomProductService, cd as vendorService, ce as warrantyService, cf as wishlistService } from '../index-72kQMxjZ.cjs';
@@ -1 +1 @@
1
- export { a as AddressService, c as Approval, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, m as CartService, n as CatalogService, p as CategoryService, q as ChatService, t as CheckoutService, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, G as Credit, H as CurrencyService, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, P as FaqService, Q as FeedbackService, S as GalleryService, T as HomeLayout, U as HomeLayoutSection, V as HomeService, X as InitService, Y as Invitation, Z as LayoutCollection, _ as LayoutService, $ as Lead, a1 as MeilisearchService, a2 as Member, a5 as MenuService, a8 as NewsletterService, ac as OrderService, ad as PageService, af as PaymentMethodService, ah as PluginService, ah as PluginsService, ai as PopularSearchService, aj as PopularityService, am as ProductService, an as ProfileService, ao as Quote, ap as REDIRECT_GATEWAYS, aq as ReelsService, ar as RegionService, as as RejectedLine, av as ReviewService, ay as SearchService, az as SettingService, az as SettingsService, aB as StateService, aD as StoreService, aF as StorefrontMenu, aI as ThemeSettings, aJ as ThemeSettingsResult, aK as UploadService, aL as UserService, aO as VariantService, aP as VarniCustomDesignService, aQ as VarniCustomProductService, aS as VendorService, aT as WarrantyService, aW as WishlistService, aX as addressService, aY as authService, aZ as autocompleteService, a_ as b2bService, a$ as bannerService, b0 as blogService, b1 as cartService, b2 as categoryService, b3 as chatService, b4 as checkoutService, b5 as collectionService, b6 as contactService, b7 as countryService, b8 as couponService, ba as currencyService, bb as dealService, bc as demoRequestService, be as emptyPage, bf as enquiryService, bg as faqService, bh as feedbackService, bl as galleryService, bm as homeService, bn as initService, bo as layoutService, bp as mediaUrl, bq as meilisearchService, br as menuService, bt as newsletterService, bu as orderService, bv as ownDomain, bw as pageService, bx as paymentMethodService, by as pluginService, bz as pluginsService, bA as popularSearchService, bB as popularityService, bE as productService, bF as profileService, bG as qs, bH as reelsService, bI as regionService, bJ as reviewService, bK as searchService, bL as setRequestHost, bM as settingService, bN as settingsService, bO as stateService, bP as staticStore, bQ as storeForHost, bR as storeService, c0 as toPage, c6 as uploadService, c7 as userService, c8 as variantService, c9 as varniCustomDesignService, ca as varniCustomProductService, cb as vendorService, cc as warrantyService, cd as wishlistService } from '../index-inrM-B0Z.js';
1
+ export { a as AddressService, c as Approval, e as AuthService, f as AutocompleteService, B as B2bPlaced, g as B2bRole, h as B2bService, i as BannerService, j as BaseService, k as BlogService, m as CartService, n as CatalogService, p as CategoryService, q as ChatService, t as CheckoutService, w as CollectionService, x as Company, y as CompanyOrder, z as ContactService, D as CountryService, E as CouponService, G as Credit, H as CurrencyService, J as DealService, K as DemoRequestService, L as EngineRequest, M as EnquiryService, P as FaqService, Q as FeedbackService, S as GalleryService, T as HomeLayout, U as HomeLayoutSection, V as HomeService, X as InitService, Y as Invitation, Z as LayoutCollection, _ as LayoutPage, $ as LayoutService, a0 as Lead, a2 as MeilisearchService, a3 as Member, a6 as MenuService, a9 as NewsletterService, ad as OrderService, ae as PageLayout, af as PageService, ah as PaymentMethodService, aj as PluginService, aj as PluginsService, ak as PopularSearchService, al as PopularityService, ao as ProductService, ap as ProfileService, aq as Quote, ar as REDIRECT_GATEWAYS, as as ReelsService, at as RegionService, au as RejectedLine, ax as ReviewService, aA as SearchService, aB as SettingService, aB as SettingsService, aD as StateService, aF as StoreService, aH as StorefrontMenu, aK as ThemeSettings, aL as ThemeSettingsResult, aM as UploadService, aN as UserService, aQ as VariantService, aR as VarniCustomDesignService, aS as VarniCustomProductService, aU as VendorService, aV as WarrantyService, aY as WishlistService, aZ as addressService, a_ as authService, a$ as autocompleteService, b0 as b2bService, b1 as bannerService, b2 as blogService, b3 as cartService, b4 as categoryService, b5 as chatService, b6 as checkoutService, b7 as collectionService, b8 as contactService, b9 as countryService, ba as couponService, bc as currencyService, bd as dealService, be as demoRequestService, bg as emptyPage, bh as enquiryService, bi as faqService, bj as feedbackService, bn as galleryService, bo as homeService, bp as initService, bq as layoutService, br as mediaUrl, bs as meilisearchService, bt as menuService, bv as newsletterService, bw as orderService, bx as ownDomain, by as pageService, bz as paymentMethodService, bA as pluginService, bB as pluginsService, bC as popularSearchService, bD as popularityService, bG as productService, bH as profileService, bI as qs, bJ as reelsService, bK as regionService, bL as reviewService, bM as searchService, bN as setRequestHost, bO as settingService, bP as settingsService, bQ as stateService, bR as staticStore, bS as storeForHost, bT as storeService, c2 as toPage, c8 as uploadService, c9 as userService, ca as variantService, cb as varniCustomDesignService, cc as varniCustomProductService, cd as vendorService, ce as warrantyService, cf as wishlistService } from '../index-72kQMxjZ.js';
@@ -2743,9 +2743,25 @@ var faqService = new FaqService();
2743
2743
  var MEDIA_KEYS = /* @__PURE__ */ new Set(["image", "mobile_image", "poster", "video_file"]);
2744
2744
  var LayoutService = class extends BaseService {
2745
2745
  async getHomeLayout({ preview } = {}) {
2746
+ return this.getPageLayout("home", { preview });
2747
+ }
2748
+ /**
2749
+ * The template every product page is drawn in: the sections around the
2750
+ * product's core (`main-product`). Null when none is published, so the
2751
+ * product page draws exactly as it did before templates existed.
2752
+ */
2753
+ async getProductLayout({ preview } = {}) {
2754
+ return this.getPageLayout("product", { preview });
2755
+ }
2756
+ /** The template every collection page is drawn in, around its grid (`main-collection`). */
2757
+ async getCollectionLayout({ preview } = {}) {
2758
+ return this.getPageLayout("collection", { preview });
2759
+ }
2760
+ /** Any arranged page by its key; null for none, as the three above. */
2761
+ async getPageLayout(page, { preview } = {}) {
2746
2762
  let layout;
2747
2763
  try {
2748
- layout = await this.data("/x/layouts/home", {
2764
+ layout = await this.data(`/x/layouts/${encodeURIComponent(page)}`, {
2749
2765
  query: { preview: preview?.trim() || void 0 }
2750
2766
  });
2751
2767
  } catch (err) {