@infrab4a/connect-angular 4.4.2-beta.2 → 4.4.3-beta.0
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/services/cart.service.mjs +1 -2
- package/esm2020/services/catalog/wishlist.service.mjs +5 -4
- package/esm2020/services/coupon.service.mjs +10 -37
- package/fesm2015/infrab4a-connect-angular.mjs +13 -34
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +13 -40
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/services/catalog/wishlist.service.d.ts +4 -2
- package/services/checkout.service.d.ts +1 -4
- package/services/coupon.service.d.ts +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infrab4a/connect-angular",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.3-beta.0",
|
|
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.4.
|
|
15
|
+
"@infrab4a/connect": "^4.4.0",
|
|
16
16
|
"js-cookie": "^3.0.1",
|
|
17
17
|
"rxjs": "^6.6.7"
|
|
18
18
|
},
|
|
@@ -10,19 +10,21 @@ export declare class WishlistService {
|
|
|
10
10
|
constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productIndex: ProductsIndex);
|
|
11
11
|
getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
|
|
12
12
|
getCategoryService(): CategoryService;
|
|
13
|
-
create({ personId, title, description, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
13
|
+
create({ personId, title, description, published, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
14
14
|
personId: string;
|
|
15
15
|
title: string;
|
|
16
16
|
description: string;
|
|
17
|
+
published: boolean;
|
|
17
18
|
userFullName: string;
|
|
18
19
|
userPhoto?: string;
|
|
19
20
|
theme?: string;
|
|
20
21
|
bannerUrl?: string;
|
|
21
22
|
}): Promise<Wishlist>;
|
|
22
|
-
update({ id, title, description, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
23
|
+
update({ id, title, description, published, userFullName, userPhoto, theme, bannerUrl, }: {
|
|
23
24
|
id: string;
|
|
24
25
|
title: string;
|
|
25
26
|
description: string;
|
|
27
|
+
published: boolean;
|
|
26
28
|
userFullName: string;
|
|
27
29
|
userPhoto?: string;
|
|
28
30
|
theme?: string;
|
|
@@ -16,10 +16,7 @@ export declare class CheckoutService {
|
|
|
16
16
|
updateCheckoutLineItems(checkout: Partial<Checkout>): Observable<Checkout>;
|
|
17
17
|
updateCheckoutUser(checkout: Partial<Checkout>): Observable<Checkout>;
|
|
18
18
|
clearCheckoutFromSession(): Observable<void>;
|
|
19
|
-
calcDiscount(coupon: Coupon): Observable<
|
|
20
|
-
discount: number;
|
|
21
|
-
lineItems: import("@infrab4a/connect").LineItem[];
|
|
22
|
-
}>;
|
|
19
|
+
calcDiscount(coupon: Coupon): Observable<number>;
|
|
23
20
|
checkCoupon(nickname: string, checkoutType: CheckoutTypes): Observable<Coupon>;
|
|
24
21
|
private createCheckout;
|
|
25
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutService, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository,
|
|
1
|
+
import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository, OrderRepository, Shops } from '@infrab4a/connect';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class CouponService {
|
|
@@ -11,10 +11,7 @@ export declare class CouponService {
|
|
|
11
11
|
private couponValidation;
|
|
12
12
|
private couponRulesValidation;
|
|
13
13
|
calcDiscountSubscription(coupon: Coupon, checkout: Partial<CheckoutSubscription>): Observable<number>;
|
|
14
|
-
calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<
|
|
15
|
-
discount: number;
|
|
16
|
-
lineItems: LineItem[];
|
|
17
|
-
}>;
|
|
14
|
+
calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<number>;
|
|
18
15
|
private calcDiscountByType;
|
|
19
16
|
private hasMinSubTotal;
|
|
20
17
|
private hasProductCategories;
|
|
@@ -27,7 +24,6 @@ export declare class CouponService {
|
|
|
27
24
|
private getOrdersFromUser;
|
|
28
25
|
private countOrdersWithUser;
|
|
29
26
|
private getCouponUseLimits;
|
|
30
|
-
private calcLineItenDiscount;
|
|
31
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
|
|
32
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
|
|
33
29
|
}
|