@infrab4a/connect-angular 5.0.0-beta.57 → 5.0.0-beta.59

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.
Files changed (61) hide show
  1. package/angular-connect.module.d.ts +8 -6
  2. package/angular-vertex-search.module.d.ts +9 -0
  3. package/consts/index.d.ts +1 -0
  4. package/consts/vertex-config.const.d.ts +1 -0
  5. package/esm2022/angular-connect.module.mjs +17 -4
  6. package/esm2022/angular-elastic-search.module.mjs +1 -1
  7. package/esm2022/angular-firebase-auth.module.mjs +1 -1
  8. package/esm2022/angular-firestore.module.mjs +1 -1
  9. package/esm2022/angular-hasura-graphql.module.mjs +1 -1
  10. package/esm2022/angular-vertex-search.module.mjs +34 -0
  11. package/esm2022/consts/category-structure.mjs +1 -1
  12. package/esm2022/consts/default-shop.const.mjs +1 -1
  13. package/esm2022/consts/es-config.const.mjs +1 -1
  14. package/esm2022/consts/firebase-const.mjs +1 -1
  15. package/esm2022/consts/hasura-options.const.mjs +1 -1
  16. package/esm2022/consts/index.mjs +2 -1
  17. package/esm2022/consts/persistence.const.mjs +1 -1
  18. package/esm2022/consts/storage-base-url.const.mjs +1 -1
  19. package/esm2022/consts/vertex-config.const.mjs +2 -0
  20. package/esm2022/helpers/index.mjs +1 -1
  21. package/esm2022/helpers/mobile-operation-system-checker.helper.mjs +1 -1
  22. package/esm2022/index.mjs +1 -1
  23. package/esm2022/persistence/cookie-data-persistence.mjs +1 -1
  24. package/esm2022/persistence/data-persistence.mjs +1 -1
  25. package/esm2022/persistence/index.mjs +1 -1
  26. package/esm2022/services/auth.service.mjs +1 -1
  27. package/esm2022/services/cart.service.mjs +1 -1
  28. package/esm2022/services/catalog/adapters/category-structure.adapter.mjs +1 -1
  29. package/esm2022/services/catalog/adapters/index.mjs +1 -1
  30. package/esm2022/services/catalog/adapters/new-category-structure.adapter.mjs +1 -1
  31. package/esm2022/services/catalog/adapters/old-category-structure.adapter.mjs +1 -1
  32. package/esm2022/services/catalog/catalog.service.mjs +28 -22
  33. package/esm2022/services/catalog/category.service.mjs +1 -1
  34. package/esm2022/services/catalog/enums/index.mjs +1 -1
  35. package/esm2022/services/catalog/enums/product-sorts.enum.mjs +1 -1
  36. package/esm2022/services/catalog/index.mjs +1 -1
  37. package/esm2022/services/catalog/models/category-with-tree.model.mjs +1 -1
  38. package/esm2022/services/catalog/models/index.mjs +1 -1
  39. package/esm2022/services/catalog/types/index.mjs +1 -1
  40. package/esm2022/services/catalog/types/product-sort.type.mjs +1 -1
  41. package/esm2022/services/catalog/wishlist.service.mjs +25 -6
  42. package/esm2022/services/checkout-subscription.service.mjs +1 -1
  43. package/esm2022/services/checkout.service.mjs +1 -1
  44. package/esm2022/services/coupon.service.mjs +8 -3
  45. package/esm2022/services/helpers/index.mjs +1 -1
  46. package/esm2022/services/helpers/util.helper.mjs +1 -1
  47. package/esm2022/services/home-shop.service.mjs +1 -1
  48. package/esm2022/services/index.mjs +1 -1
  49. package/esm2022/services/order.service.mjs +1 -1
  50. package/esm2022/services/shipping.service.mjs +1 -1
  51. package/esm2022/services/types/index.mjs +1 -1
  52. package/esm2022/services/types/required-checkout-data.type.mjs +1 -1
  53. package/esm2022/services/types/required-checkout-subscription-data.type.mjs +1 -1
  54. package/esm2022/services/types/shipping-methods.type.mjs +1 -1
  55. package/esm2022/types/firebase-app-config.type.mjs +1 -1
  56. package/esm2022/types/index.mjs +1 -1
  57. package/fesm2022/infrab4a-connect-angular.mjs +101 -27
  58. package/fesm2022/infrab4a-connect-angular.mjs.map +1 -1
  59. package/package.json +2 -2
  60. package/services/catalog/catalog.service.d.ts +4 -4
  61. package/services/catalog/wishlist.service.d.ts +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-angular",
3
- "version": "5.0.0-beta.57",
3
+ "version": "5.0.0-beta.59",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -12,7 +12,7 @@
12
12
  "@angular/common": "17.2.3",
13
13
  "@angular/core": "17.2.3",
14
14
  "@angular/fire": "17.0.1",
15
- "@infrab4a/connect": "^4.15.0-beta.0",
15
+ "@infrab4a/connect": "4.9.7-beta.24",
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, ProductStockNotificationRepository, Shops } from '@infrab4a/connect';
1
+ import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductSearchIndex, ProductStockNotificationRepository, 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 productSearch;
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, productSearch: ProductSearchIndex);
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 findCatalogIdsBySearch;
80
80
  private buildFilterQuery;
81
81
  private buildSortQuery;
82
82
  private buildLimitQuery;
@@ -1,13 +1,14 @@
1
- import { CategoryFilterRepository, CategoryRepository, PersonType, ProductRepository, ProductsIndex, ProductStockNotificationRepository, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
1
+ import { CategoryFilterRepository, CategoryRepository, PersonType, ProductRepository, ProductSearchIndex, ProductStockNotificationRepository, 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";
5
5
  export declare class WishlistService {
6
6
  private readonly wishlistRepository;
7
7
  private readonly shop;
8
+ private readonly productSearch;
8
9
  private catalogService;
9
10
  private categoryService;
10
- constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productIndex: ProductsIndex);
11
+ constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productSearch: ProductSearchIndex);
11
12
  getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
12
13
  getCategoryService(): CategoryService;
13
14
  create({ personId, title, description, published, userFullName, userPhoto, theme, bannerUrl, personType, personIsSubscriber, }: {