@infrab4a/connect-angular 4.0.0-beta.46 → 4.0.0-beta.48
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/esm2020/angular-connect.module.mjs +4 -2
- package/esm2020/angular-hasura-graphql.module.mjs +10 -2
- package/esm2020/services/catalog/catalog.service.mjs +1 -1
- package/esm2020/services/catalog/index.mjs +2 -1
- package/esm2020/services/catalog/wishlist.service.mjs +103 -0
- package/esm2020/services/helpers/index.mjs +2 -0
- package/esm2020/services/helpers/util.service.mjs +29 -0
- package/esm2020/services/index.mjs +2 -1
- package/fesm2015/infrab4a-connect-angular.mjs +214 -76
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +191 -61
- 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/index.d.ts +1 -0
- package/services/catalog/wishlist.service.d.ts +25 -0
- package/services/helpers/index.d.ts +1 -0
- package/services/helpers/util.service.d.ts +7 -0
- package/services/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-angular",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.48",
|
|
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": "^4.0.0-beta.
|
|
15
|
+
"@infrab4a/connect": "^4.0.0-beta.44",
|
|
16
16
|
"rxjs": "^6.6.7"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
@@ -39,16 +39,16 @@ declare type FetchProductsResponse = {
|
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
export declare class CatalogService {
|
|
42
|
+
export declare class CatalogService<T extends Category = Category> {
|
|
43
43
|
private readonly productRepository;
|
|
44
44
|
private readonly categoryStructureAdapter;
|
|
45
45
|
private readonly shop;
|
|
46
46
|
constructor(productRepository: ProductRepository, categoryStructureAdapter: CategoryStructureAdapter, shop: Shops);
|
|
47
|
-
fetchProducts(category:
|
|
47
|
+
fetchProducts(category: T, options?: FetchProductsOptions): Promise<FetchProductsResponse>;
|
|
48
48
|
private buildFilterQuery;
|
|
49
49
|
private buildSortQuery;
|
|
50
50
|
private buildLimitQuery;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogService
|
|
52
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogService
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CatalogService<any>, never>;
|
|
52
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CatalogService<any>>;
|
|
53
53
|
}
|
|
54
54
|
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CategoryCollectionChildrenRepository, CategoryFilterRepository, ProductRepository, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
|
|
2
|
+
import { UtilService } from '../helpers';
|
|
3
|
+
import { NewCategoryStructureAdapter } from './adapters';
|
|
4
|
+
import { CatalogService } from './catalog.service';
|
|
5
|
+
import { CategoryService } from './category.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class WishlistService {
|
|
8
|
+
private readonly wishlistRepository;
|
|
9
|
+
private readonly shop;
|
|
10
|
+
private readonly catalogService;
|
|
11
|
+
private readonly categoryService;
|
|
12
|
+
private utilService;
|
|
13
|
+
constructor(wishlistRepository: WishlistRepository, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryCollectionChildrenRepository: CategoryCollectionChildrenRepository, categoryStructureAdapter: NewCategoryStructureAdapter, shop: Shops, catalogService: CatalogService<Wishlist>, categoryService: CategoryService, utilService: UtilService);
|
|
14
|
+
getCatalogService(): CatalogService<Wishlist>;
|
|
15
|
+
getCategoryService(): CategoryService;
|
|
16
|
+
create(personId: string, title: string, description: string, userFullName: string): Promise<Wishlist>;
|
|
17
|
+
update(id: string, title: string, description: string, userFullName: string): Promise<Wishlist>;
|
|
18
|
+
delete(wishlistId: string): Promise<void>;
|
|
19
|
+
getWishlistBySlug(slug: string): Promise<Wishlist>;
|
|
20
|
+
getWishlistsByPerson(personId: string): Promise<Wishlist[]>;
|
|
21
|
+
addProduct(wishlistId: string, productId: string): Promise<Wishlist>;
|
|
22
|
+
removeProduct(wishlistId: string, productId: string): Promise<Wishlist>;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WishlistService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WishlistService>;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './util.service';
|
package/services/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './catalog';
|
|
|
4
4
|
export * from './checkout-subscription.service';
|
|
5
5
|
export * from './checkout.service';
|
|
6
6
|
export * from './coupon.service';
|
|
7
|
+
export * from './helpers';
|
|
7
8
|
export * from './home-shop.service';
|
|
8
9
|
export * from './order.service';
|
|
9
10
|
export * from './shipping.service';
|