@infrab4a/connect-angular 4.9.4-beta.0 → 4.10.0-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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-angular",
3
- "version": "4.9.4-beta.0",
3
+ "version": "4.10.0-beta.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -12,7 +12,7 @@
12
12
  "@angular/common": "^15.1.4",
13
13
  "@angular/core": "^15.1.4",
14
14
  "@angular/fire": "7.5.0",
15
- "@infrab4a/connect": "^4.13.1-beta.0",
15
+ "@infrab4a/connect": "4.14.0-beta.0",
16
16
  "js-cookie": "^3.0.1",
17
17
  "rxjs": "^6.6.7"
18
18
  },
@@ -1,4 +1,4 @@
1
- import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductsIndex, ProductStockNotificationRepository, Shops } from '@infrab4a/connect';
1
+ import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductStockNotificationRepository, ProductsVertexSearch, Shops } from '@infrab4a/connect';
2
2
  import { CategoryStructureAdapter } from './adapters';
3
3
  import { ProductSort } from './types/product-sort.type';
4
4
  import * as i0 from "@angular/core";
@@ -67,16 +67,16 @@ export declare class CatalogService<T extends Category = Category> {
67
67
  private readonly categoryRepository;
68
68
  private readonly categoryStructureAdapter;
69
69
  private readonly shop;
70
- private readonly productIndex;
70
+ private readonly productVertexSearch;
71
71
  private productsByTerm;
72
- constructor(productRepository: ProductRepository, productStockNotificationRepository: ProductStockNotificationRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productIndex: ProductsIndex);
72
+ constructor(productRepository: ProductRepository, productStockNotificationRepository: ProductStockNotificationRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productVertexSearch: ProductsVertexSearch);
73
73
  fetchProducts(options: FetchProductsParams<T>): Promise<FetchProductsResponse>;
74
74
  addCustomerToStockNotification(shop: Shops, productId: string, name: string, email: string): Promise<void>;
75
75
  private findCatalog;
76
76
  private buildMainFilter;
77
77
  private findCatalogAndSortByMostRevelant;
78
78
  private findCatalogAndSortByMostRevelantByTerm;
79
- private findCatalogIdsByElasticSearch;
79
+ private findCatalogIdsByVertexAiSearch;
80
80
  private buildFilterQuery;
81
81
  private buildSortQuery;
82
82
  private buildLimitQuery;
@@ -1,4 +1,4 @@
1
- import { CategoryFilterRepository, CategoryRepository, PersonType, ProductRepository, ProductsIndex, ProductStockNotificationRepository, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
1
+ import { CategoryFilterRepository, CategoryRepository, PersonType, ProductRepository, ProductStockNotificationRepository, ProductsVertexSearch, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
2
2
  import { CatalogService } from './catalog.service';
3
3
  import { CategoryService } from './category.service';
4
4
  import * as i0 from "@angular/core";
@@ -7,7 +7,7 @@ export declare class WishlistService {
7
7
  private readonly shop;
8
8
  private catalogService;
9
9
  private categoryService;
10
- constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productIndex: ProductsIndex);
10
+ constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productVertexSearch: ProductsVertexSearch);
11
11
  getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
12
12
  getCategoryService(): CategoryService;
13
13
  create({ personId, title, description, published, userFullName, userPhoto, theme, bannerUrl, personType, personIsSubscriber, }: {