@infrab4a/connect-angular 5.7.5-beta.0 → 5.7.5-beta.1
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": "5.7.5-beta.
|
|
3
|
+
"version": "5.7.5-beta.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org"
|
|
6
6
|
},
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"@angular/common": ">=21.0.0 <22.0.0",
|
|
13
13
|
"@angular/core": ">=21.0.0 <22.0.0",
|
|
14
14
|
"@angular/fire": ">=21.0.0-rc.0 <22.0.0",
|
|
15
|
-
"@infrab4a/connect": "
|
|
15
|
+
"@infrab4a/connect": "5.5.6-beta.4",
|
|
16
16
|
"class-transformer": "^0.5.1",
|
|
17
17
|
"js-cookie": "^3.0.1",
|
|
18
18
|
"rxjs": "^7.5.0",
|
|
@@ -3,7 +3,7 @@ import { ModuleWithProviders, Type } from '@angular/core';
|
|
|
3
3
|
import { FirebaseOptions } from '@angular/fire/app';
|
|
4
4
|
import { AppCheckOptions } from '@angular/fire/app-check';
|
|
5
5
|
import * as _infrab4a_connect from '@infrab4a/connect';
|
|
6
|
-
import { HasuraGraphQLAuthOptions, CacheConfig, AxiosElasticSearchConfig, VertexSearchConfig, FirestoreConstructorParams, Shops, UserRepository, User, Checkout, CheckoutSubscription, CheckoutRepository, CheckoutTypes, Coupon, CheckoutStockValidation, UserAddress, ShippingProductRequest, ShippingMethodResponse, CheckoutPayloadRequest, CheckoutResponse, LineItem, CategoryRepository, Category as Category$1, RepositoryFindFielters as RepositoryFindFielters$1, Product as Product$1, ProductGender, RepositoryCacheOptions, RepositoryFindResult, ProductStockNotificationRepository, ProductSearchIndex, CategoryFilterRepository, Filter, ProductCatalogRepository, RepositoryOrderBy, NonFunctionPropertyNames, WishlistRepository, ProductRepository, LogRepository, PersonType, Wishlist, CouponRepository, OrderRepository, CheckoutSubscriptionRepository, HomeRepository, Home, Banner, OrderFirestoreRepository, ProductReviewRepository, VariantRepository, ProductReview, Order } from '@infrab4a/connect';
|
|
6
|
+
import { HasuraGraphQLAuthOptions, CacheConfig, AxiosElasticSearchConfig, VertexSearchConfig, FirestoreConstructorParams, Shops, UserRepository, User, Checkout, CheckoutSubscription, CheckoutRepository, CheckoutTypes, Coupon, CheckoutStockValidation, UserAddress, ShippingProductRequest, ShippingMethodResponse, CheckoutPayloadRequest, CheckoutResponse, LineItem, CategoryRepository, Category as Category$1, RepositoryFindFielters as RepositoryFindFielters$1, Product as Product$1, ProductGender, RepositoryCacheOptions, RepositoryFindResult, ProductStockNotificationRepository, ProductSearchIndex, CategoryFilterRepository, Filter, ProductCatalogRepository, RepositoryOrderBy, NonFunctionPropertyNames, WishlistRepository, ProductRepository, LogRepository, PersonType, Wishlist, CouponRepository, OrderRepository, CheckoutSubscriptionRepository, HomeRepository, Home, Banner, ShippingThresholds, OrderFirestoreRepository, ProductReviewRepository, VariantRepository, ProductReview, ShoppingRecurrenceFirestoreRepository, ShoppingRecurrence, CreateShoppingRecurrencyPayload, CardForPaymentInfo, ShoppingRecurrenceCycle, Order } from '@infrab4a/connect';
|
|
7
7
|
import { Observable, Subject } from 'rxjs';
|
|
8
8
|
import { Auth, User as User$1 } from '@angular/fire/auth';
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
@@ -180,6 +180,7 @@ declare class CheckoutService {
|
|
|
180
180
|
removeCouponDiscount(): Observable<Checkout>;
|
|
181
181
|
validateStockProducts(): Observable<CheckoutStockValidation>;
|
|
182
182
|
selectShippingAddress(address: UserAddress): Observable<Checkout>;
|
|
183
|
+
private formatZip;
|
|
183
184
|
getAvailableShippingForProduct(productShipping: ShippingProductRequest): Observable<ShippingMethodResponse[]>;
|
|
184
185
|
getAvailableShippingForCheckout(): Observable<ShippingMethodResponse[]>;
|
|
185
186
|
selectShipping(option: string): Observable<Checkout>;
|
|
@@ -717,6 +718,14 @@ declare class HomeShopService {
|
|
|
717
718
|
getHomeData(): Observable<Home>;
|
|
718
719
|
getBanners(type: BannerType): Observable<Banner[]>;
|
|
719
720
|
getMinValueForFreeShipping(): Observable<number>;
|
|
721
|
+
/**
|
|
722
|
+
* Retorna os thresholds de frete grátis estruturados configurados no documento
|
|
723
|
+
* Home (`shippingThresholds`). Quando o documento ainda não possui essa
|
|
724
|
+
* estrutura, retorna um default conservador equivalente à regra legada
|
|
725
|
+
* (edition: 50, avulsoSp: 99, avulsoOutro: null) para que consumidores não
|
|
726
|
+
* quebrem durante a migração.
|
|
727
|
+
*/
|
|
728
|
+
getShippingThresholds(): Observable<ShippingThresholds>;
|
|
720
729
|
private getDiscoverProducts;
|
|
721
730
|
private getFeaturedProducts;
|
|
722
731
|
private getVerticalProducts;
|
|
@@ -744,6 +753,39 @@ declare class OrderProductReviewService {
|
|
|
744
753
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrderProductReviewService>;
|
|
745
754
|
}
|
|
746
755
|
|
|
756
|
+
declare class OrderRecurrenceService {
|
|
757
|
+
private readonly shoppingRecurrenceRepository;
|
|
758
|
+
readonly defaultShop: Shops;
|
|
759
|
+
private readonly dependenciesFacade;
|
|
760
|
+
private readonly configurationFacade;
|
|
761
|
+
private checkoutUrl;
|
|
762
|
+
constructor(shoppingRecurrenceRepository: ShoppingRecurrenceFirestoreRepository, defaultShop: Shops, dependenciesFacade: CheckoutDependenciesFacade, configurationFacade: ConfigurationFacade);
|
|
763
|
+
getRecurrenceOrder(recurrenceId: string): Observable<ShoppingRecurrence>;
|
|
764
|
+
createRecurrenceOrder(recurrencePayload: CreateShoppingRecurrencyPayload): Observable<ShoppingRecurrence>;
|
|
765
|
+
updatePaymentMethod(data: {
|
|
766
|
+
recurrenceId: string;
|
|
767
|
+
cards: CardForPaymentInfo[];
|
|
768
|
+
}): Observable<ShoppingRecurrence>;
|
|
769
|
+
getRecurrenceAvailableShipping(data: {
|
|
770
|
+
recurrenceId: string;
|
|
771
|
+
shippingAddress?: UserAddress;
|
|
772
|
+
}): Observable<ShippingMethodResponse[]>;
|
|
773
|
+
updateShippingAddress(data: {
|
|
774
|
+
recurrenceId: string;
|
|
775
|
+
shippingAddress: UserAddress;
|
|
776
|
+
shippingOption: string;
|
|
777
|
+
}): Observable<ShoppingRecurrence>;
|
|
778
|
+
cancelRecurrenceOrder(data: {
|
|
779
|
+
recurrenceId: string;
|
|
780
|
+
}): Observable<ShoppingRecurrence>;
|
|
781
|
+
enableOrDisableRecurrenceOrder(recurrenceId: string, active: boolean): Observable<ShoppingRecurrence>;
|
|
782
|
+
skipRecurrenceOrder(recurrenceEditionId: string): Observable<ShoppingRecurrence>;
|
|
783
|
+
updateFrequency(recurrenceId: string, frequency: ShoppingRecurrenceCycle): Observable<ShoppingRecurrence>;
|
|
784
|
+
updateLineItems(recurrenceId: string, lineItems: LineItem[]): Observable<ShoppingRecurrence>;
|
|
785
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderRecurrenceService, never>;
|
|
786
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderRecurrenceService>;
|
|
787
|
+
}
|
|
788
|
+
|
|
747
789
|
declare class OrderService {
|
|
748
790
|
private readonly angularFirestore;
|
|
749
791
|
private readonly orderRepository;
|
|
@@ -754,5 +796,5 @@ declare class OrderService {
|
|
|
754
796
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
|
|
755
797
|
}
|
|
756
798
|
|
|
757
|
-
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderProductReviewService, OrderService, ProductSorts, UtilHelper, WishlistService };
|
|
799
|
+
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderProductReviewService, OrderRecurrenceService, OrderService, ProductSorts, UtilHelper, WishlistService };
|
|
758
800
|
export type { BuildResponseParams, Cart, CategoryStructureAdapter, DataPersistence, FetchProductsMainParams, FetchProductsOptions, FetchProductsParams, FetchProductsResponse, FirestoreOptions, HasuraGraphQLOptions, ProductSort, StockNotificationParams };
|