@infrab4a/connect-angular 5.0.0-beta.18 → 5.0.0-beta.19

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": "5.0.0-beta.18",
3
+ "version": "5.0.0-beta.19",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -12,7 +12,7 @@
12
12
  "@angular/common": "^17.0.0",
13
13
  "@angular/core": "^17.0.0",
14
14
  "@angular/fire": "^17.0.0-next.0",
15
- "@infrab4a/connect": "^4.8.1-beta.0",
15
+ "@infrab4a/connect": "^4.9.0",
16
16
  "js-cookie": "^3.0.1",
17
17
  "rxjs": "^7.8.1"
18
18
  },
@@ -1,4 +1,4 @@
1
- import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductsIndex, Shops } from '@infrab4a/connect';
1
+ import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductStockNotificationRepository, ProductsIndex, 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";
@@ -63,13 +63,15 @@ type FetchProductsResponse = {
63
63
  };
64
64
  export declare class CatalogService<T extends Category = Category> {
65
65
  private readonly productRepository;
66
+ private readonly productStockNotificationRepository;
66
67
  private readonly categoryRepository;
67
68
  private readonly categoryStructureAdapter;
68
69
  private readonly shop;
69
70
  private readonly productIndex;
70
71
  private productsByTerm;
71
- constructor(productRepository: ProductRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productIndex: ProductsIndex);
72
+ constructor(productRepository: ProductRepository, productStockNotificationRepository: ProductStockNotificationRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productIndex: ProductsIndex);
72
73
  fetchProducts(options: FetchProductsParams<T>): Promise<FetchProductsResponse>;
74
+ addCustomerToStockNotification(shop: Shops, productId: string, name: string, email: string): Promise<void>;
73
75
  private findCatalog;
74
76
  private buildMainFilter;
75
77
  private findCatalogAndSortByMostRevelant;
@@ -1,4 +1,4 @@
1
- import { CategoryFilterRepository, CategoryRepository, ProductRepository, ProductsIndex, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
1
+ import { CategoryFilterRepository, CategoryRepository, ProductRepository, ProductStockNotificationRepository, ProductsIndex, 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, productIndex: ProductsIndex);
10
+ constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productIndex: ProductsIndex);
11
11
  getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
12
12
  getCategoryService(): CategoryService;
13
13
  create({ personId, title, description, published, userFullName, userPhoto, theme, bannerUrl, }: {