@infrab4a/connect-angular 5.0.0-beta.92 → 5.0.0-beta.94
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-hasura-graphql.module.d.ts +3 -5
- package/esm2022/angular-hasura-graphql.module.mjs +3 -1
- package/esm2022/services/catalog/catalog.service.mjs +37 -10
- package/esm2022/services/catalog/category.service.mjs +6 -6
- package/fesm2022/infrab4a-connect-angular.mjs +43 -14
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/services/catalog/catalog.service.d.ts +5 -2
- package/services/catalog/category.service.d.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-angular",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.94",
|
|
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
|
+
"@infrab4a/connect": "4.25.1-beta.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, ProductSearchIndex, ProductStockNotificationRepository, Shops } from '@infrab4a/connect';
|
|
1
|
+
import { Category, CategoryRepository, Product, ProductGender, ProductRepository, ProductSearchIndex, ProductStockNotificationRepository, RepositoryCacheOptions, 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";
|
|
@@ -70,8 +70,11 @@ export declare class CatalogService<T extends Category = Category> {
|
|
|
70
70
|
private readonly productSearch;
|
|
71
71
|
private productsByTerm;
|
|
72
72
|
private brandsList;
|
|
73
|
+
private fields;
|
|
73
74
|
constructor(productRepository: ProductRepository, productStockNotificationRepository: ProductStockNotificationRepository, categoryRepository: CategoryRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops, productSearch: ProductSearchIndex);
|
|
74
|
-
fetchProducts(options: FetchProductsParams<T
|
|
75
|
+
fetchProducts(options: FetchProductsParams<T>, optionsCache?: {
|
|
76
|
+
cache?: RepositoryCacheOptions;
|
|
77
|
+
}): Promise<FetchProductsResponse>;
|
|
75
78
|
addCustomerToStockNotification(shop: Shops, productId: string, name: string, email: string): Promise<void>;
|
|
76
79
|
private findCatalog;
|
|
77
80
|
private buildMainFilter;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Category, CategoryFilterRepository, CategoryRepository, Filter, ProductGender, ProductRepository, Shops } from '@infrab4a/connect';
|
|
1
|
+
import { Category, CategoryFilterRepository, CategoryRepository, Filter, ProductGender, ProductRepository, RepositoryCacheOptions, Shops } from '@infrab4a/connect';
|
|
2
2
|
import { CategoryStructureAdapter } from './adapters';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
type FetchBrandsOptions = {
|
|
@@ -12,8 +12,12 @@ export declare class CategoryService {
|
|
|
12
12
|
private readonly categoryStructureAdapter;
|
|
13
13
|
private readonly shop;
|
|
14
14
|
constructor(productRepository: ProductRepository, categoryRepository: CategoryRepository, categoryFilterRepository: CategoryFilterRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops);
|
|
15
|
-
fetchBrands(category: Category, options?: FetchBrandsOptions
|
|
16
|
-
|
|
15
|
+
fetchBrands(category: Category, options?: FetchBrandsOptions, optionsCache?: {
|
|
16
|
+
cache?: RepositoryCacheOptions;
|
|
17
|
+
}): Promise<Category[]>;
|
|
18
|
+
fetchFilterOptions(category: Category, optionsCache?: {
|
|
19
|
+
cache?: RepositoryCacheOptions;
|
|
20
|
+
}): Promise<Filter[]>;
|
|
17
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<CategoryService, never>;
|
|
18
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<CategoryService>;
|
|
19
23
|
}
|