@infrab4a/connect-angular 4.17.3-beta.21 → 4.17.3-beta.3

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 (112) hide show
  1. package/angular-connect.module.d.ts +29 -32
  2. package/angular-elastic-search.module.d.ts +9 -9
  3. package/angular-firebase-auth.module.d.ts +11 -11
  4. package/angular-firestore.module.d.ts +17 -17
  5. package/angular-hasura-graphql.module.d.ts +16 -16
  6. package/angular-vertex-search.module.d.ts +9 -9
  7. package/consts/backend-url.const.d.ts +1 -1
  8. package/consts/category-structure.d.ts +1 -1
  9. package/consts/default-shop.const.d.ts +1 -1
  10. package/consts/es-config.const.d.ts +1 -1
  11. package/consts/firebase-const.d.ts +3 -4
  12. package/consts/hasura-options.const.d.ts +1 -1
  13. package/consts/index.d.ts +8 -8
  14. package/consts/persistence.const.d.ts +1 -1
  15. package/consts/storage-base-url.const.d.ts +1 -1
  16. package/consts/vertex-config.const.d.ts +1 -1
  17. package/esm2020/angular-connect.module.mjs +146 -189
  18. package/esm2020/angular-elastic-search.module.mjs +34 -34
  19. package/esm2020/angular-firebase-auth.module.mjs +115 -141
  20. package/esm2020/angular-firestore.module.mjs +527 -527
  21. package/esm2020/angular-hasura-graphql.module.mjs +309 -331
  22. package/esm2020/angular-vertex-search.module.mjs +34 -34
  23. package/esm2020/consts/backend-url.const.mjs +1 -1
  24. package/esm2020/consts/category-structure.mjs +2 -2
  25. package/esm2020/consts/default-shop.const.mjs +2 -2
  26. package/esm2020/consts/es-config.const.mjs +2 -2
  27. package/esm2020/consts/firebase-const.mjs +4 -5
  28. package/esm2020/consts/hasura-options.const.mjs +2 -2
  29. package/esm2020/consts/index.mjs +9 -9
  30. package/esm2020/consts/persistence.const.mjs +2 -2
  31. package/esm2020/consts/storage-base-url.const.mjs +2 -2
  32. package/esm2020/consts/vertex-config.const.mjs +2 -2
  33. package/esm2020/helpers/index.mjs +2 -2
  34. package/esm2020/helpers/mobile-operation-system-checker.helper.mjs +7 -7
  35. package/esm2020/index.mjs +7 -7
  36. package/esm2020/infrab4a-connect-angular.mjs +4 -4
  37. package/esm2020/persistence/cookie-data-persistence.mjs +22 -22
  38. package/esm2020/persistence/data-persistence.mjs +2 -2
  39. package/esm2020/persistence/index.mjs +3 -3
  40. package/esm2020/services/auth.service.mjs +37 -37
  41. package/esm2020/services/cart.service.mjs +369 -293
  42. package/esm2020/services/catalog/adapters/category-structure.adapter.mjs +2 -2
  43. package/esm2020/services/catalog/adapters/index.mjs +4 -4
  44. package/esm2020/services/catalog/adapters/new-category-structure.adapter.mjs +43 -43
  45. package/esm2020/services/catalog/adapters/old-category-structure.adapter.mjs +23 -23
  46. package/esm2020/services/catalog/catalog.service.mjs +295 -295
  47. package/esm2020/services/catalog/category.service.mjs +51 -51
  48. package/esm2020/services/catalog/enums/index.mjs +2 -2
  49. package/esm2020/services/catalog/enums/product-sorts.enum.mjs +11 -11
  50. package/esm2020/services/catalog/index.mjs +8 -8
  51. package/esm2020/services/catalog/models/category-with-tree.model.mjs +10 -10
  52. package/esm2020/services/catalog/models/index.mjs +2 -2
  53. package/esm2020/services/catalog/types/index.mjs +2 -2
  54. package/esm2020/services/catalog/types/product-sort.type.mjs +2 -2
  55. package/esm2020/services/catalog/wishlist.service.mjs +235 -235
  56. package/esm2020/services/checkout-subscription.service.mjs +50 -50
  57. package/esm2020/services/checkout.service.mjs +83 -68
  58. package/esm2020/services/coupon.service.mjs +284 -284
  59. package/esm2020/services/helpers/index.mjs +2 -2
  60. package/esm2020/services/helpers/util.helper.mjs +18 -18
  61. package/esm2020/services/home-shop.service.mjs +125 -125
  62. package/esm2020/services/index.mjs +11 -11
  63. package/esm2020/services/order.service.mjs +30 -30
  64. package/esm2020/services/shipping.service.mjs +96 -96
  65. package/esm2020/services/types/index.mjs +3 -3
  66. package/esm2020/services/types/required-checkout-data.type.mjs +2 -2
  67. package/esm2020/services/types/required-checkout-subscription-data.type.mjs +2 -2
  68. package/esm2020/services/types/shipping-methods.type.mjs +2 -2
  69. package/esm2020/types/firebase-app-config.type.mjs +2 -2
  70. package/esm2020/types/index.mjs +2 -2
  71. package/fesm2015/infrab4a-connect-angular.mjs +2816 -2822
  72. package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
  73. package/fesm2020/infrab4a-connect-angular.mjs +2768 -2773
  74. package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
  75. package/helpers/index.d.ts +1 -1
  76. package/helpers/mobile-operation-system-checker.helper.d.ts +3 -3
  77. package/index.d.ts +6 -6
  78. package/package.json +2 -2
  79. package/persistence/cookie-data-persistence.d.ts +10 -10
  80. package/persistence/data-persistence.d.ts +6 -6
  81. package/persistence/index.d.ts +2 -2
  82. package/services/auth.service.d.ts +18 -18
  83. package/services/cart.service.d.ts +48 -43
  84. package/services/catalog/adapters/category-structure.adapter.d.ts +4 -4
  85. package/services/catalog/adapters/index.d.ts +3 -3
  86. package/services/catalog/adapters/new-category-structure.adapter.d.ts +12 -12
  87. package/services/catalog/adapters/old-category-structure.adapter.d.ts +10 -10
  88. package/services/catalog/catalog.service.d.ts +93 -93
  89. package/services/catalog/category.service.d.ts +20 -20
  90. package/services/catalog/enums/index.d.ts +1 -1
  91. package/services/catalog/enums/product-sorts.enum.d.ts +9 -9
  92. package/services/catalog/index.d.ts +7 -7
  93. package/services/catalog/models/category-with-tree.model.d.ts +4 -4
  94. package/services/catalog/models/index.d.ts +1 -1
  95. package/services/catalog/types/index.d.ts +1 -1
  96. package/services/catalog/types/product-sort.type.d.ts +2 -2
  97. package/services/catalog/wishlist.service.d.ts +50 -50
  98. package/services/checkout-subscription.service.d.ts +19 -19
  99. package/services/checkout.service.d.ts +26 -27
  100. package/services/coupon.service.d.ts +33 -33
  101. package/services/helpers/index.d.ts +1 -1
  102. package/services/helpers/util.helper.d.ts +3 -3
  103. package/services/home-shop.service.d.ts +26 -26
  104. package/services/index.d.ts +10 -10
  105. package/services/order.service.d.ts +13 -13
  106. package/services/shipping.service.d.ts +19 -19
  107. package/services/types/index.d.ts +2 -2
  108. package/services/types/required-checkout-data.type.d.ts +2 -2
  109. package/services/types/required-checkout-subscription-data.type.d.ts +2 -2
  110. package/services/types/shipping-methods.type.d.ts +12 -12
  111. package/types/firebase-app-config.type.d.ts +1 -1
  112. package/types/index.d.ts +1 -1
@@ -1,50 +1,50 @@
1
- import { CategoryFilterRepository, CategoryRepository, LogRepository, PersonType, ProductRepository, ProductSearchIndex, ProductStockNotificationRepository, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
2
- import { CatalogService } from './catalog.service';
3
- import { CategoryService } from './category.service';
4
- import * as i0 from "@angular/core";
5
- export declare class WishlistService {
6
- private readonly wishlistRepository;
7
- private readonly shop;
8
- productRepository: ProductRepository;
9
- private readonly productSearch;
10
- private readonly logRepository;
11
- private catalogService;
12
- private categoryService;
13
- constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productSearch: ProductSearchIndex, logRepository: LogRepository);
14
- getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
15
- getCategoryService(): CategoryService;
16
- create({ personId, title, description, published, userFullName, userPhoto, theme, bannerUrl, personType, personIsSubscriber, }: {
17
- personId: string;
18
- title: string;
19
- description: string;
20
- published: boolean;
21
- userFullName: string;
22
- userPhoto?: string;
23
- theme?: string;
24
- bannerUrl?: string;
25
- personType?: PersonType;
26
- personIsSubscriber?: boolean;
27
- }): Promise<Wishlist>;
28
- update({ id, title, description, published, userFullName, userPhoto, theme, bannerUrl, personType, personIsSubscriber, }: {
29
- id: string;
30
- title: string;
31
- description: string;
32
- published: boolean;
33
- userFullName: string;
34
- userPhoto?: string;
35
- theme?: string;
36
- bannerUrl?: string;
37
- personType?: PersonType;
38
- personIsSubscriber?: boolean;
39
- }): Promise<Wishlist>;
40
- delete(wishlistId: string): Promise<void>;
41
- getWishlistBySlug(slug: string): Promise<Wishlist>;
42
- getWishlistsByPerson(personId: string): Promise<Wishlist[]>;
43
- addProduct(wishlistId: string, productId: string): Promise<Wishlist>;
44
- removeProduct(wishlistId: string, productId: string): Promise<Wishlist>;
45
- private findById;
46
- private findProductById;
47
- private createWishlistLog;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<WishlistService, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<WishlistService>;
50
- }
1
+ import { CategoryFilterRepository, CategoryRepository, LogRepository, PersonType, ProductRepository, ProductSearchIndex, ProductStockNotificationRepository, Shops, Wishlist, WishlistRepository } from '@infrab4a/connect';
2
+ import { CatalogService } from './catalog.service';
3
+ import { CategoryService } from './category.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class WishlistService {
6
+ private readonly wishlistRepository;
7
+ private readonly shop;
8
+ productRepository: ProductRepository;
9
+ private readonly productSearch;
10
+ private readonly logRepository;
11
+ private catalogService;
12
+ private categoryService;
13
+ constructor(wishlistRepository: WishlistRepository, shop: Shops, productRepository: ProductRepository, categoryFilterRepository: CategoryFilterRepository, categoryRepository: CategoryRepository, productStockNotificationRepository: ProductStockNotificationRepository, productSearch: ProductSearchIndex, logRepository: LogRepository);
14
+ getCatalogService(): CatalogService<import("@infrab4a/connect").Category>;
15
+ getCategoryService(): CategoryService;
16
+ create({ personId, title, description, published, userFullName, userPhoto, theme, bannerUrl, personType, personIsSubscriber, }: {
17
+ personId: string;
18
+ title: string;
19
+ description: string;
20
+ published: boolean;
21
+ userFullName: string;
22
+ userPhoto?: string;
23
+ theme?: string;
24
+ bannerUrl?: string;
25
+ personType?: PersonType;
26
+ personIsSubscriber?: boolean;
27
+ }): Promise<Wishlist>;
28
+ update({ id, title, description, published, userFullName, userPhoto, theme, bannerUrl, personType, personIsSubscriber, }: {
29
+ id: string;
30
+ title: string;
31
+ description: string;
32
+ published: boolean;
33
+ userFullName: string;
34
+ userPhoto?: string;
35
+ theme?: string;
36
+ bannerUrl?: string;
37
+ personType?: PersonType;
38
+ personIsSubscriber?: boolean;
39
+ }): Promise<Wishlist>;
40
+ delete(wishlistId: string): Promise<void>;
41
+ getWishlistBySlug(slug: string): Promise<Wishlist>;
42
+ getWishlistsByPerson(personId: string): Promise<Wishlist[]>;
43
+ addProduct(wishlistId: string, productId: string): Promise<Wishlist>;
44
+ removeProduct(wishlistId: string, productId: string): Promise<Wishlist>;
45
+ private findById;
46
+ private findProductById;
47
+ private createWishlistLog;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<WishlistService, never>;
49
+ static ɵprov: i0.ɵɵInjectableDeclaration<WishlistService>;
50
+ }
@@ -1,19 +1,19 @@
1
- import { CheckoutSubscription, CheckoutSubscriptionRepository, Coupon } from '@infrab4a/connect';
2
- import { Observable } from 'rxjs';
3
- import { RequiredCheckoutSubscriptionData } from './types';
4
- import { DataPersistence } from '../persistence';
5
- import { CouponService } from './coupon.service';
6
- import * as i0 from "@angular/core";
7
- export declare class CheckoutSubscriptionService {
8
- private readonly checkoutSubscriptionRepository;
9
- private readonly dataPersistence;
10
- private readonly couponService;
11
- constructor(checkoutSubscriptionRepository: CheckoutSubscriptionRepository, dataPersistence: DataPersistence, couponService: CouponService);
12
- getCheckoutSubscription(checkoutData?: RequiredCheckoutSubscriptionData): Observable<CheckoutSubscription>;
13
- clearCheckoutSubscriptionFromSession(): Observable<void>;
14
- checkCoupon(nickname: string, userEmail: string): Observable<Coupon>;
15
- calcDiscountSubscription(coupon: Coupon): Observable<number>;
16
- private createCheckoutSubscription;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutSubscriptionService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutSubscriptionService>;
19
- }
1
+ import { CheckoutSubscription, CheckoutSubscriptionRepository, Coupon } from '@infrab4a/connect';
2
+ import { Observable } from 'rxjs';
3
+ import { RequiredCheckoutSubscriptionData } from './types';
4
+ import { DataPersistence } from '../persistence';
5
+ import { CouponService } from './coupon.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class CheckoutSubscriptionService {
8
+ private readonly checkoutSubscriptionRepository;
9
+ private readonly dataPersistence;
10
+ private readonly couponService;
11
+ constructor(checkoutSubscriptionRepository: CheckoutSubscriptionRepository, dataPersistence: DataPersistence, couponService: CouponService);
12
+ getCheckoutSubscription(checkoutData?: RequiredCheckoutSubscriptionData): Observable<CheckoutSubscription>;
13
+ clearCheckoutSubscriptionFromSession(): Observable<void>;
14
+ checkCoupon(nickname: string, userEmail: string): Observable<Coupon>;
15
+ calcDiscountSubscription(coupon: Coupon): Observable<number>;
16
+ private createCheckoutSubscription;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutSubscriptionService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutSubscriptionService>;
19
+ }
@@ -1,27 +1,26 @@
1
- import { Checkout, CheckoutRepository, CheckoutTypes, Coupon, Shops, User, UserRepository } from '@infrab4a/connect';
2
- import { Observable } from 'rxjs';
3
- import { DataPersistence } from '../persistence';
4
- import { CouponService } from './coupon.service';
5
- import { RequiredCheckoutData } from './types';
6
- import * as i0 from "@angular/core";
7
- export declare class CheckoutService {
8
- private readonly couponService;
9
- private readonly checkoutRepository;
10
- private readonly userRepository;
11
- private readonly defaultShop;
12
- private readonly dataPersistence;
13
- constructor(couponService: CouponService, checkoutRepository: CheckoutRepository, userRepository: UserRepository, defaultShop: Shops, dataPersistence: DataPersistence);
14
- getCheckout(checkoutData?: RequiredCheckoutData): Observable<Checkout>;
15
- getUserByCheckout(checkoutId: string): Observable<User>;
16
- updateCheckoutLineItems(checkout: Partial<Checkout>): Observable<Checkout>;
17
- updateCheckoutUser(checkout: Partial<Checkout>): Observable<Checkout>;
18
- clearCheckoutFromSession(): Observable<void>;
19
- calcDiscount(coupon: Coupon): Observable<{
20
- discount: number;
21
- lineItems: import("@infrab4a/connect").LineItem[];
22
- }>;
23
- checkCoupon(nickname: string, checkoutType: CheckoutTypes): Observable<Coupon>;
24
- private createCheckout;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutService>;
27
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Checkout, CheckoutRepository, CheckoutTypes, Coupon, Shops, User, UserRepository } from '@infrab4a/connect';
3
+ import { Observable } from 'rxjs';
4
+ import { DataPersistence } from '../persistence';
5
+ import { CouponService } from './coupon.service';
6
+ import { RequiredCheckoutData } from './types';
7
+ import * as i0 from "@angular/core";
8
+ export declare class CheckoutService {
9
+ private readonly couponService;
10
+ private readonly checkoutRepository;
11
+ private readonly userRepository;
12
+ private readonly defaultShop;
13
+ private readonly dataPersistence;
14
+ private http;
15
+ private checkoutUrl;
16
+ constructor(couponService: CouponService, checkoutRepository: CheckoutRepository, userRepository: UserRepository, defaultShop: Shops, dataPersistence: DataPersistence, http: HttpClient);
17
+ getCheckout(checkoutData?: RequiredCheckoutData): Observable<Checkout>;
18
+ getUserByCheckout(checkoutId: string): Observable<User>;
19
+ updateCheckoutLineItems(checkout: Partial<Checkout>): Observable<Checkout>;
20
+ updateCheckoutUser(checkout: Partial<Checkout>): Observable<Checkout>;
21
+ clearCheckoutFromSession(): Observable<void>;
22
+ checkCoupon(nickname: string, checkoutType: CheckoutTypes): Observable<Coupon>;
23
+ private createCheckout;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutService>;
26
+ }
@@ -1,33 +1,33 @@
1
- import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository, LineItem, OrderRepository, 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
- private readonly orderRepository;
8
- private readonly categoryRepository;
9
- constructor(couponRepository: CouponRepository, defaultShop: Shops, orderRepository: OrderRepository, categoryRepository: CategoryRepository);
10
- checkCoupon(nickname: string, checkoutType: CheckoutTypes, checkout: Partial<Checkout>, plan: string): Observable<Coupon>;
11
- private couponValidation;
12
- private couponRulesValidation;
13
- calcDiscountSubscription(coupon: Coupon, checkout: Partial<CheckoutSubscription>): Observable<number>;
14
- calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<{
15
- discount: number;
16
- lineItems: LineItem[];
17
- }>;
18
- private calcDiscountByType;
19
- private hasMinSubTotal;
20
- private hasProductCategories;
21
- private coupomUserValidation;
22
- private getCouponCategoriesId;
23
- private emailIsFromCollaborator;
24
- private getLineItensEligebleForDiscount;
25
- private calcCheckoutSubtotal;
26
- private getOrdersWithCoupon;
27
- private getOrdersFromUser;
28
- private countOrdersWithUser;
29
- private getCouponUseLimits;
30
- private calcLineItenDiscount;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
33
- }
1
+ import { CategoryRepository, Checkout, CheckoutSubscription, CheckoutTypes, Coupon, CouponRepository, LineItem, OrderRepository, 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
+ private readonly orderRepository;
8
+ private readonly categoryRepository;
9
+ constructor(couponRepository: CouponRepository, defaultShop: Shops, orderRepository: OrderRepository, categoryRepository: CategoryRepository);
10
+ checkCoupon(nickname: string, checkoutType: CheckoutTypes, checkout: Partial<Checkout>, plan: string): Observable<Coupon>;
11
+ private couponValidation;
12
+ private couponRulesValidation;
13
+ calcDiscountSubscription(coupon: Coupon, checkout: Partial<CheckoutSubscription>): Observable<number>;
14
+ calcDiscountShopping(coupon: Coupon, checkout: Partial<Checkout>): Promise<{
15
+ discount: number;
16
+ lineItems: LineItem[];
17
+ }>;
18
+ private calcDiscountByType;
19
+ private hasMinSubTotal;
20
+ private hasProductCategories;
21
+ private coupomUserValidation;
22
+ private getCouponCategoriesId;
23
+ private emailIsFromCollaborator;
24
+ private getLineItensEligebleForDiscount;
25
+ private calcCheckoutSubtotal;
26
+ private getOrdersWithCoupon;
27
+ private getOrdersFromUser;
28
+ private countOrdersWithUser;
29
+ private getCouponUseLimits;
30
+ private calcLineItenDiscount;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<CouponService, never>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<CouponService>;
33
+ }
@@ -1 +1 @@
1
- export * from './util.helper';
1
+ export * from './util.helper';
@@ -1,3 +1,3 @@
1
- export declare class UtilHelper {
2
- static createSlug(name: string): string;
3
- }
1
+ export declare class UtilHelper {
2
+ static createSlug(name: string): string;
3
+ }
@@ -1,26 +1,26 @@
1
- import { Banner, CategoryRepository, Home, HomeRepository, ProductRepository, Shops } from '@infrab4a/connect';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
5
- export declare class HomeShopService {
6
- private readonly categoryRepository;
7
- private readonly homeRepository;
8
- private readonly productRepository;
9
- private readonly defaultShop;
10
- private homeConfiguration;
11
- private get homeId();
12
- constructor(categoryRepository: CategoryRepository, homeRepository: HomeRepository, productRepository: ProductRepository, defaultShop: Shops);
13
- getHomeData(): Observable<Home>;
14
- getBanners(type: BannerType): Observable<Banner[]>;
15
- getMinValueForFreeShipping(): Observable<number>;
16
- private getDiscoverProducts;
17
- private getFeaturedProducts;
18
- private getVerticalProducts;
19
- private getHomeConfiguration;
20
- private saveHomeData;
21
- private buildCategoryGroupWithRequiredData;
22
- private get gender();
23
- static ɵfac: i0.ɵɵFactoryDeclaration<HomeShopService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<HomeShopService>;
25
- }
26
- export {};
1
+ import { Banner, CategoryRepository, Home, HomeRepository, ProductRepository, Shops } from '@infrab4a/connect';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ type BannerType = 'brand' | 'buyToWin' | 'block' | 'blog';
5
+ export declare class HomeShopService {
6
+ private readonly categoryRepository;
7
+ private readonly homeRepository;
8
+ private readonly productRepository;
9
+ private readonly defaultShop;
10
+ private homeConfiguration;
11
+ private get homeId();
12
+ constructor(categoryRepository: CategoryRepository, homeRepository: HomeRepository, productRepository: ProductRepository, defaultShop: Shops);
13
+ getHomeData(): Observable<Home>;
14
+ getBanners(type: BannerType): Observable<Banner[]>;
15
+ getMinValueForFreeShipping(): Observable<number>;
16
+ private getDiscoverProducts;
17
+ private getFeaturedProducts;
18
+ private getVerticalProducts;
19
+ private getHomeConfiguration;
20
+ private saveHomeData;
21
+ private buildCategoryGroupWithRequiredData;
22
+ private get gender();
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<HomeShopService, never>;
24
+ static ɵprov: i0.ɵɵInjectableDeclaration<HomeShopService>;
25
+ }
26
+ export {};
@@ -1,10 +1,10 @@
1
- export * from './auth.service';
2
- export * from './cart.service';
3
- export * from './catalog';
4
- export * from './checkout-subscription.service';
5
- export * from './checkout.service';
6
- export * from './coupon.service';
7
- export * from './helpers';
8
- export * from './home-shop.service';
9
- export * from './order.service';
10
- export * from './shipping.service';
1
+ export * from './auth.service';
2
+ export * from './cart.service';
3
+ export * from './catalog';
4
+ export * from './checkout-subscription.service';
5
+ export * from './checkout.service';
6
+ export * from './coupon.service';
7
+ export * from './helpers';
8
+ export * from './home-shop.service';
9
+ export * from './order.service';
10
+ export * from './shipping.service';
@@ -1,13 +1,13 @@
1
- import { Firestore } 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: Firestore, orderRepository: OrderFirestoreRepository);
10
- getOrder(id: string): Subject<Order>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
13
- }
1
+ import { Firestore } 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: Firestore, orderRepository: OrderFirestoreRepository);
10
+ getOrder(id: string): Subject<Order>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrderService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
13
+ }
@@ -1,19 +1,19 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { HomeShopService } from './home-shop.service';
4
- import { ShippingMethodResponse } from './types/shipping-methods.type';
5
- import * as i0 from "@angular/core";
6
- export declare class ShippingService {
7
- private http;
8
- private apiUrl;
9
- private homeService;
10
- constructor(http: HttpClient, apiUrl: string, homeService: HomeShopService);
11
- getShippingMethods(shop: string, zip: string, weightGrams: number, totalPrice: number, personId: string, subscriptionPlan?: string): Observable<Array<ShippingMethodResponse & {
12
- ShippingCompanyName?: string;
13
- }>>;
14
- private isFreeShippingBySubscription;
15
- private isHalfShippingBySubscription;
16
- private isHolidays;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ShippingService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<ShippingService>;
19
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { HomeShopService } from './home-shop.service';
4
+ import { ShippingMethodResponse } from './types/shipping-methods.type';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ShippingService {
7
+ private http;
8
+ private apiUrl;
9
+ private homeService;
10
+ constructor(http: HttpClient, apiUrl: string, homeService: HomeShopService);
11
+ getShippingMethods(shop: string, zip: string, weightGrams: number, totalPrice: number, personId: string, subscriptionPlan?: string): Observable<Array<ShippingMethodResponse & {
12
+ ShippingCompanyName?: string;
13
+ }>>;
14
+ private isFreeShippingBySubscription;
15
+ private isHalfShippingBySubscription;
16
+ private isHolidays;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShippingService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<ShippingService>;
19
+ }
@@ -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 type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
1
+ import { Checkout } from '@infrab4a/connect';
2
+ export type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lineItems'>>;
@@ -1,2 +1,2 @@
1
- import { CheckoutSubscription } from '@infrab4a/connect';
2
- export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
1
+ import { CheckoutSubscription } from '@infrab4a/connect';
2
+ export type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
@@ -1,12 +1,12 @@
1
- export interface ShippingMethodResponse {
2
- daysToDelivery: number;
3
- currency: string;
4
- description: string;
5
- maxDeliveryDate: string;
6
- minDeliveryDate: string;
7
- serviceCode: string;
8
- serviceName: string;
9
- totalPrice: number;
10
- additionalDescription: string;
11
- cnpj: string;
12
- }
1
+ export interface ShippingMethodResponse {
2
+ daysToDelivery: number;
3
+ currency: string;
4
+ description: string;
5
+ maxDeliveryDate: string;
6
+ minDeliveryDate: string;
7
+ serviceCode: string;
8
+ serviceName: string;
9
+ totalPrice: number;
10
+ additionalDescription: string;
11
+ cnpj: string;
12
+ }
@@ -1 +1 @@
1
- export type FirebaseAppConfig = Record<string, any>;
1
+ export type FirebaseAppConfig = Record<string, any>;
package/types/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './firebase-app-config.type';
1
+ export * from './firebase-app-config.type';