@infrab4a/connect 4.1.2 → 4.1.3-beta.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/index.cjs.js CHANGED
@@ -2538,7 +2538,18 @@ class ProductsIndex {
2538
2538
  must: {
2539
2539
  multi_match: {
2540
2540
  query: `${searchTerm}`,
2541
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
2541
+ type: 'bool_prefix',
2542
+ fields: [
2543
+ 'name',
2544
+ 'name.folded',
2545
+ 'name.search',
2546
+ 'description',
2547
+ 'description.search',
2548
+ 'description.folded',
2549
+ 'brand',
2550
+ 'brand.search',
2551
+ 'brand.folded',
2552
+ ],
2542
2553
  fuzziness: 2,
2543
2554
  },
2544
2555
  },
package/index.esm.js CHANGED
@@ -2514,7 +2514,18 @@ class ProductsIndex {
2514
2514
  must: {
2515
2515
  multi_match: {
2516
2516
  query: `${searchTerm}`,
2517
- fields: ['name', 'name.folded', 'name.search', 'description', 'brand'],
2517
+ type: 'bool_prefix',
2518
+ fields: [
2519
+ 'name',
2520
+ 'name.folded',
2521
+ 'name.search',
2522
+ 'description',
2523
+ 'description.search',
2524
+ 'description.folded',
2525
+ 'brand',
2526
+ 'brand.search',
2527
+ 'brand.folded',
2528
+ ],
2518
2529
  fuzziness: 2,
2519
2530
  },
2520
2531
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.1.2",
3
+ "version": "4.1.3-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -2,6 +2,7 @@ export * from './banner.type';
2
2
  export * from './benefit.type';
3
3
  export * from './campaign-page';
4
4
  export * from './home-data.type';
5
+ export * from './landing-page';
5
6
  export * from './menu-nav.type';
6
7
  export * from './sections.type';
7
8
  export * from './shop-banner.type';
@@ -9,6 +10,7 @@ export * from './shop-brands.type';
9
10
  export * from './shop-carousel.type';
10
11
  export * from './shop-collection.type';
11
12
  export * from './shop-gift.type';
13
+ export * from './shop-home';
12
14
  export * from './shop-post.type';
13
15
  export * from './shop-section.type';
14
16
  export * from './sub-menu.type';
@@ -0,0 +1,8 @@
1
+ import { ShopBanner } from './shop-banner.type';
2
+ import { ShopCarousel } from './shop-carousel.type';
3
+ import { ShopSection } from './shop-section.type';
4
+ export type LandingPageList = {
5
+ ShopCarousel: ShopCarousel;
6
+ ShopBanner: ShopBanner;
7
+ };
8
+ export type LandingPage<T extends keyof LandingPageList> = LandingPageList[T] & ShopSection;
@@ -1,3 +1,4 @@
1
+ import { LandingPage } from './landing-page';
1
2
  import { ShopBanner } from './shop-banner.type';
2
3
  import { ShopCarousel } from './shop-carousel.type';
3
4
  import { ShopGift } from './shop-gift.type';
@@ -17,6 +18,7 @@ export type GlampointsVitrineShopSection = [ShopBanner];
17
18
  export type SimpleLPShopSection = [(ShopBanner & {
18
19
  carouselColor?: string;
19
20
  })[]];
21
+ export type LandingPageSection = [LandingPage<any>];
20
22
  export type SectionList = {
21
23
  HomeSection: HomeSection;
22
24
  LPClubeShopSection: LPClubeShopSection;
@@ -27,5 +29,6 @@ export type SectionList = {
27
29
  PostsShopSection: PostsShopSection;
28
30
  GlampointsVitrineShopSection: GlampointsVitrineShopSection;
29
31
  SimpleLPShopSection: SimpleLPShopSection;
32
+ LandingPageSection: LandingPageSection;
30
33
  };
31
34
  export type Section<T extends keyof SectionList> = SectionList[T];