@infrab4a/connect-angular 4.1.7-beta.0 → 4.2.0-beta.1

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.1.7-beta.0",
3
+ "version": "4.2.0-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -9,12 +9,11 @@
9
9
  "url": "https://github.com/B4AGroup/b4a-firebase-libs"
10
10
  },
11
11
  "peerDependencies": {
12
- "@angular/common": "^15.1.4",
13
- "@angular/core": "^15.1.4",
12
+ "@angular/common": "^16.0.1",
13
+ "@angular/core": "^16.0.1",
14
14
  "@angular/fire": "^7.5.0",
15
- "@infrab4a/connect": "^4.1.7-beta.0",
16
- "js-cookie": "^3.0.1",
17
- "rxjs": "^6.6.7"
15
+ "@infrab4a/connect": "^4.2.0-beta.1",
16
+ "rxjs": "^7.8.1"
18
17
  },
19
18
  "dependencies": {
20
19
  "js-cookie": "^3.0.1",
@@ -4,7 +4,7 @@ import { AuthService } from './auth.service';
4
4
  import { CheckoutService } from './checkout.service';
5
5
  import { RequiredCheckoutData } from './types';
6
6
  import * as i0 from "@angular/core";
7
- export type Cart = {
7
+ export declare type Cart = {
8
8
  [id: string]: LineItem;
9
9
  };
10
10
  export declare class CartService {
@@ -2,7 +2,7 @@ import { Category, Product, ProductGender, ProductRepository, ProductsIndex, Sho
2
2
  import { CategoryStructureAdapter } from './adapters';
3
3
  import { ProductSort } from './types/product-sort.type';
4
4
  import * as i0 from "@angular/core";
5
- type FetchProductsFilters = {
5
+ declare type FetchProductsFilters = {
6
6
  clubDiscount?: number[];
7
7
  brands?: string[];
8
8
  prices?: {
@@ -15,18 +15,18 @@ type FetchProductsFilters = {
15
15
  customOptions?: string[];
16
16
  tags?: string[];
17
17
  };
18
- type FetchProductsOptions = {
18
+ declare type FetchProductsOptions = {
19
19
  page?: number;
20
20
  perPage?: number;
21
21
  sort?: ProductSort;
22
22
  mainGender?: ProductGender;
23
23
  };
24
- type FetchProductsMainParams<T extends Category> = {
24
+ declare type FetchProductsMainParams<T extends Category> = {
25
25
  category?: T;
26
26
  profile?: string[];
27
27
  term?: string;
28
28
  };
29
- type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
29
+ declare type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
30
30
  category: FetchProductsMainParams<T>['category'];
31
31
  filters?: FetchProductsFilters;
32
32
  } | {
@@ -41,7 +41,7 @@ type FetchProductsParams<T extends Category> = FetchProductsOptions & ({
41
41
  customOptions?: never;
42
42
  };
43
43
  });
44
- type FetchProductsResponse = {
44
+ declare type FetchProductsResponse = {
45
45
  products: {
46
46
  data: Product[];
47
47
  total: number;
@@ -64,13 +64,10 @@ export declare class CatalogService<T extends Category = Category> {
64
64
  private readonly categoryStructureAdapter;
65
65
  private readonly shop;
66
66
  private readonly productIndex;
67
- private productsByTerm;
68
67
  constructor(productRepository: ProductRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productIndex: ProductsIndex);
69
68
  fetchProducts(options: FetchProductsParams<T>): Promise<FetchProductsResponse>;
70
69
  private findCatalog;
71
70
  private buildMainFilter;
72
- private findCatalogByTermAndSortByMostRevelant;
73
- private findCatalogIdsByElasticSearch;
74
71
  private buildFilterQuery;
75
72
  private buildSortQuery;
76
73
  private buildLimitQuery;
@@ -1,2 +1,2 @@
1
1
  import { ProductSorts } from '../enums';
2
- export type ProductSort = `${ProductSorts}`;
2
+ export declare type ProductSort = `${ProductSorts}`;
@@ -1,7 +1,7 @@
1
1
  import { Banner, CategoryRepository, Home, HomeRepository, ProductRepository, Shops } from '@infrab4a/connect';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
- type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
4
+ declare type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
5
5
  export declare class HomeShopService {
6
6
  private readonly categoryRepository;
7
7
  private readonly homeRepository;
@@ -1,2 +1,2 @@
1
1
  import { Checkout } from '@infrab4a/connect';
2
- export type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
2
+ export declare type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
@@ -1,2 +1,2 @@
1
1
  import { CheckoutSubscription } from '@infrab4a/connect';
2
- export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
2
+ export declare type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
@@ -1 +1 @@
1
- export type FirebaseAppConfig = Record<string, any>;
1
+ export declare type FirebaseAppConfig = Record<string, any>;