@infrab4a/connect-angular 6.0.0-beta.34 → 6.0.0-beta.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-angular",
3
- "version": "6.0.0-beta.34",
3
+ "version": "6.0.0-beta.35",
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": "5.3.0-beta.28",
15
+ "@infrab4a/connect": "5.3.0-beta.29",
16
16
  "js-cookie": "^3.0.1",
17
17
  "class-transformer": "^0.5.1",
18
18
  "rxjs": "^7.8.1",
@@ -20,6 +20,7 @@ export declare class CheckoutService {
20
20
  removeCouponDiscount(): Observable<Checkout>;
21
21
  validateStockProducts(): Observable<CheckoutStockValidation>;
22
22
  selectShippingAddress(address: UserAddress): Observable<Checkout>;
23
+ private formatZip;
23
24
  getAvailableShippingForProduct(productShipping: ShippingProductRequest): Observable<ShippingMethodResponse[]>;
24
25
  getAvailableShippingForCheckout(): Observable<ShippingMethodResponse[]>;
25
26
  selectShipping(option: string): Observable<Checkout>;
@@ -1,4 +1,4 @@
1
- import { Banner, Home } from '@infrab4a/connect';
1
+ import { Banner, Home, ShippingThresholds } from '@infrab4a/connect';
2
2
  import { Observable } from 'rxjs';
3
3
  import { HomeShopRepositoriesFacade } from './home-shop';
4
4
  import { ConfigurationFacade } from './shared';
@@ -13,6 +13,14 @@ export declare class HomeShopService {
13
13
  getHomeData(): Observable<Home>;
14
14
  getBanners(type: BannerType): Observable<Banner[]>;
15
15
  getMinValueForFreeShipping(): Observable<number>;
16
+ /**
17
+ * Retorna os thresholds de frete grátis estruturados configurados no documento
18
+ * Home (`shippingThresholds`). Quando o documento ainda não possui essa
19
+ * estrutura, retorna um default conservador equivalente à regra legada
20
+ * (edition: 50, avulsoSp: 99, avulsoOutro: null) para que consumidores não
21
+ * quebrem durante a migração.
22
+ */
23
+ getShippingThresholds(): Observable<ShippingThresholds>;
16
24
  private getDiscoverProducts;
17
25
  private getFeaturedProducts;
18
26
  private getVerticalProducts;