@infrab4a/connect-angular 0.12.4 → 0.12.5

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 (47) hide show
  1. package/bundles/infrab4a-connect-angular.umd.js +1250 -1243
  2. package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
  3. package/esm2015/infrab4a-connect-angular.js +4 -4
  4. package/esm2015/lib/angular-connect.module.js +29 -29
  5. package/esm2015/lib/angular-firebase-auth.module.js +113 -113
  6. package/esm2015/lib/angular-firestore.module.js +336 -336
  7. package/esm2015/lib/consts/default-shop.const.js +1 -1
  8. package/esm2015/lib/consts/index.js +1 -1
  9. package/esm2015/lib/index.js +4 -4
  10. package/esm2015/lib/services/auth.service.js +41 -41
  11. package/esm2015/lib/services/cart.service.js +165 -165
  12. package/esm2015/lib/services/checkout-subscription.service.js +66 -95
  13. package/esm2015/lib/services/checkout.service.js +79 -79
  14. package/esm2015/lib/services/coupon.service.js +70 -51
  15. package/esm2015/lib/services/errors/group-invalid-coupon.error.js +7 -0
  16. package/esm2015/lib/services/errors/index.js +3 -2
  17. package/esm2015/lib/services/errors/invalid-coupon.error.js +6 -6
  18. package/esm2015/lib/services/index.js +6 -6
  19. package/esm2015/lib/services/order.service.js +31 -31
  20. package/esm2015/lib/services/types/index.js +2 -2
  21. package/esm2015/lib/services/types/required-checkout-data.type.js +1 -1
  22. package/esm2015/lib/services/types/required-checkout-subscription-data.type.js +1 -1
  23. package/esm2015/public-api.js +1 -1
  24. package/fesm2015/infrab4a-connect-angular.js +864 -867
  25. package/fesm2015/infrab4a-connect-angular.js.map +1 -1
  26. package/infrab4a-connect-angular.d.ts +5 -5
  27. package/lib/angular-connect.module.d.ts +12 -12
  28. package/lib/angular-firebase-auth.module.d.ts +10 -10
  29. package/lib/angular-firestore.module.d.ts +10 -10
  30. package/lib/consts/default-shop.const.d.ts +1 -1
  31. package/lib/consts/index.d.ts +1 -1
  32. package/lib/index.d.ts +4 -4
  33. package/lib/services/auth.service.d.ts +19 -19
  34. package/lib/services/cart.service.d.ts +41 -41
  35. package/lib/services/checkout-subscription.service.d.ts +17 -19
  36. package/lib/services/checkout.service.d.ts +22 -22
  37. package/lib/services/coupon.service.d.ts +14 -13
  38. package/lib/services/errors/group-invalid-coupon.error.d.ts +5 -0
  39. package/lib/services/errors/index.d.ts +2 -1
  40. package/lib/services/errors/invalid-coupon.error.d.ts +4 -4
  41. package/lib/services/index.d.ts +6 -6
  42. package/lib/services/order.service.d.ts +13 -13
  43. package/lib/services/types/index.d.ts +2 -2
  44. package/lib/services/types/required-checkout-data.type.d.ts +2 -2
  45. package/lib/services/types/required-checkout-subscription-data.type.d.ts +2 -2
  46. package/package.json +2 -2
  47. package/public-api.d.ts +1 -1
@@ -1,13 +1,14 @@
1
- import { CouponRepository, FinancialCoupon, Shops } from '@infrab4a/connect';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class CouponService {
5
- private readonly couponRepository;
6
- private readonly defaultShop;
7
- constructor(couponRepository: CouponRepository, defaultShop: Shops);
8
- checkCoupon(nickname: string, userEmail: string): Observable<FinancialCoupon>;
9
- private isValidCoupon;
10
- private emailIsFromCollaborator;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
13
- }
1
+ import { CheckoutTypes, CouponRepository, FinancialCoupon, Shops } from '@infrab4a/connect';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class CouponService {
5
+ private readonly couponRepository;
6
+ private readonly defaultShop;
7
+ constructor(couponRepository: CouponRepository, defaultShop: Shops);
8
+ checkCoupon(nickname: string, userEmail: string, checkoutType: CheckoutTypes): Observable<FinancialCoupon[]>;
9
+ private isValidCoupon;
10
+ private emailIsFromCollaborator;
11
+ private separateValidCoupons;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
13
+ static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
14
+ }
@@ -0,0 +1,5 @@
1
+ import { InvalidCouponError } from './invalid-coupon.error';
2
+ export declare class GroupInvalidCouponError extends Error {
3
+ readonly errors: InvalidCouponError[];
4
+ constructor(errors: InvalidCouponError[]);
5
+ }
@@ -1 +1,2 @@
1
- export * from './invalid-coupon.error';
1
+ export * from './invalid-coupon.error';
2
+ export * from './group-invalid-coupon.error';
@@ -1,4 +1,4 @@
1
- export declare class InvalidCouponError extends Error {
2
- readonly message: any;
3
- constructor(message: any);
4
- }
1
+ export declare class InvalidCouponError extends Error {
2
+ readonly message: any;
3
+ constructor(message: any);
4
+ }
@@ -1,6 +1,6 @@
1
- export * from './auth.service';
2
- export * from './cart.service';
3
- export * from './checkout.service';
4
- export * from './checkout-subscription.service';
5
- export * from './order.service';
6
- export * from './coupon.service';
1
+ export * from './auth.service';
2
+ export * from './cart.service';
3
+ export * from './checkout.service';
4
+ export * from './checkout-subscription.service';
5
+ export * from './order.service';
6
+ export * from './coupon.service';
@@ -1,13 +1,13 @@
1
- import { AngularFirestore } from '@angular/fire/firestore';
2
- import { Order, OrderFirestoreRepository } from '@infrab4a/connect';
3
- import { Subject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class OrderService {
6
- private readonly angularFirestore;
7
- private readonly orderRepository;
8
- orderSubject: Subject<Order>;
9
- constructor(angularFirestore: AngularFirestore, orderRepository: OrderFirestoreRepository);
10
- getOrder(id: string): Subject<Order>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
13
- }
1
+ import { AngularFirestore } from '@angular/fire/firestore';
2
+ import { Order, OrderFirestoreRepository } from '@infrab4a/connect';
3
+ import { Subject } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class OrderService {
6
+ private readonly angularFirestore;
7
+ private readonly orderRepository;
8
+ orderSubject: Subject<Order>;
9
+ constructor(angularFirestore: AngularFirestore, orderRepository: OrderFirestoreRepository);
10
+ getOrder(id: string): Subject<Order>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
13
+ }
@@ -1,2 +1,2 @@
1
- export * from './required-checkout-data.type';
2
- export * from './required-checkout-subscription-data.type';
1
+ export * from './required-checkout-data.type';
2
+ export * from './required-checkout-subscription-data.type';
@@ -1,2 +1,2 @@
1
- import { Checkout } from '@infrab4a/connect';
2
- export declare type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
1
+ import { Checkout } from '@infrab4a/connect';
2
+ export declare type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
@@ -1,2 +1,2 @@
1
- import { CheckoutSubscription } from '@infrab4a/connect';
2
- export declare type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
1
+ import { CheckoutSubscription } from '@infrab4a/connect';
2
+ export declare type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-angular",
3
- "version": "0.12.4",
3
+ "version": "0.12.5",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -12,7 +12,7 @@
12
12
  "@angular/common": "^12.2.12",
13
13
  "@angular/core": "^12.2.12",
14
14
  "@angular/fire": "^6.1.5",
15
- "@infrab4a/connect": "^0.12.0",
15
+ "@infrab4a/connect": "^0.14.6-beta.0",
16
16
  "firebase": "^7.24.0",
17
17
  "js-cookie": "^3.0.1",
18
18
  "rxjs": "^6.6.7"
package/public-api.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './lib';
1
+ export * from './lib';