@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/angular-connect.module.d.ts +5 -4
- package/angular-vertex-search.module.d.ts +9 -0
- package/consts/index.d.ts +1 -0
- package/consts/vertex-config.const.d.ts +1 -0
- package/esm2020/angular-connect.module.mjs +13 -8
- package/esm2020/angular-vertex-search.module.mjs +34 -0
- package/esm2020/consts/index.mjs +2 -1
- package/esm2020/consts/vertex-config.const.mjs +2 -0
- package/esm2020/services/cart.service.mjs +7 -9
- package/esm2020/services/catalog/catalog.service.mjs +27 -16
- package/esm2020/services/catalog/wishlist.service.mjs +6 -21
- package/esm2020/services/coupon.service.mjs +8 -13
- package/fesm2015/infrab4a-connect-angular.mjs +113 -87
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +113 -87
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/services/catalog/catalog.service.d.ts +4 -4
- package/services/catalog/wishlist.service.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-angular",
|
|
3
|
-
"version": "4.
|
|
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": "
|
|
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,
|
|
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
|
|
70
|
+
private readonly productVertexSearch;
|
|
71
71
|
private productsByTerm;
|
|
72
|
-
constructor(productRepository: ProductRepository, productStockNotificationRepository: ProductStockNotificationRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops,
|
|
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
|
|
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,
|
|
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,
|
|
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, }: {
|