@infrab4a/connect-angular 5.7.5-beta.0 → 5.7.5-beta.2
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.2",
|
|
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.5",
|
|
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';
|
|
@@ -178,8 +178,11 @@ declare class CheckoutService {
|
|
|
178
178
|
resetCheckoutValues(): Observable<Checkout>;
|
|
179
179
|
applyCouponDiscount(nickname: string, checkoutType: CheckoutTypes): Observable<Coupon>;
|
|
180
180
|
removeCouponDiscount(): Observable<Checkout>;
|
|
181
|
+
applyPointsDiscount(points: number): Observable<Checkout>;
|
|
182
|
+
removePointsDiscount(): Observable<Checkout>;
|
|
181
183
|
validateStockProducts(): Observable<CheckoutStockValidation>;
|
|
182
184
|
selectShippingAddress(address: UserAddress): Observable<Checkout>;
|
|
185
|
+
private formatZip;
|
|
183
186
|
getAvailableShippingForProduct(productShipping: ShippingProductRequest): Observable<ShippingMethodResponse[]>;
|
|
184
187
|
getAvailableShippingForCheckout(): Observable<ShippingMethodResponse[]>;
|
|
185
188
|
selectShipping(option: string): Observable<Checkout>;
|
|
@@ -717,6 +720,14 @@ declare class HomeShopService {
|
|
|
717
720
|
getHomeData(): Observable<Home>;
|
|
718
721
|
getBanners(type: BannerType): Observable<Banner[]>;
|
|
719
722
|
getMinValueForFreeShipping(): Observable<number>;
|
|
723
|
+
/**
|
|
724
|
+
* Retorna os thresholds de frete grátis estruturados configurados no documento
|
|
725
|
+
* Home (`shippingThresholds`). Quando o documento ainda não possui essa
|
|
726
|
+
* estrutura, retorna um default conservador equivalente à regra legada
|
|
727
|
+
* (edition: 50, avulsoSp: 99, avulsoOutro: null) para que consumidores não
|
|
728
|
+
* quebrem durante a migração.
|
|
729
|
+
*/
|
|
730
|
+
getShippingThresholds(): Observable<ShippingThresholds>;
|
|
720
731
|
private getDiscoverProducts;
|
|
721
732
|
private getFeaturedProducts;
|
|
722
733
|
private getVerticalProducts;
|
|
@@ -744,6 +755,39 @@ declare class OrderProductReviewService {
|
|
|
744
755
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrderProductReviewService>;
|
|
745
756
|
}
|
|
746
757
|
|
|
758
|
+
declare class OrderRecurrenceService {
|
|
759
|
+
private readonly shoppingRecurrenceRepository;
|
|
760
|
+
readonly defaultShop: Shops;
|
|
761
|
+
private readonly dependenciesFacade;
|
|
762
|
+
private readonly configurationFacade;
|
|
763
|
+
private checkoutUrl;
|
|
764
|
+
constructor(shoppingRecurrenceRepository: ShoppingRecurrenceFirestoreRepository, defaultShop: Shops, dependenciesFacade: CheckoutDependenciesFacade, configurationFacade: ConfigurationFacade);
|
|
765
|
+
getRecurrenceOrder(recurrenceId: string): Observable<ShoppingRecurrence>;
|
|
766
|
+
createRecurrenceOrder(recurrencePayload: CreateShoppingRecurrencyPayload): Observable<ShoppingRecurrence>;
|
|
767
|
+
updatePaymentMethod(data: {
|
|
768
|
+
recurrenceId: string;
|
|
769
|
+
cards: CardForPaymentInfo[];
|
|
770
|
+
}): Observable<ShoppingRecurrence>;
|
|
771
|
+
getRecurrenceAvailableShipping(data: {
|
|
772
|
+
recurrenceId: string;
|
|
773
|
+
shippingAddress?: UserAddress;
|
|
774
|
+
}): Observable<ShippingMethodResponse[]>;
|
|
775
|
+
updateShippingAddress(data: {
|
|
776
|
+
recurrenceId: string;
|
|
777
|
+
shippingAddress: UserAddress;
|
|
778
|
+
shippingOption: string;
|
|
779
|
+
}): Observable<ShoppingRecurrence>;
|
|
780
|
+
cancelRecurrenceOrder(data: {
|
|
781
|
+
recurrenceId: string;
|
|
782
|
+
}): Observable<ShoppingRecurrence>;
|
|
783
|
+
enableOrDisableRecurrenceOrder(recurrenceId: string, active: boolean): Observable<ShoppingRecurrence>;
|
|
784
|
+
skipRecurrenceOrder(recurrenceEditionId: string): Observable<ShoppingRecurrence>;
|
|
785
|
+
updateFrequency(recurrenceId: string, frequency: ShoppingRecurrenceCycle): Observable<ShoppingRecurrence>;
|
|
786
|
+
updateLineItems(recurrenceId: string, lineItems: LineItem[]): Observable<ShoppingRecurrence>;
|
|
787
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OrderRecurrenceService, never>;
|
|
788
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OrderRecurrenceService>;
|
|
789
|
+
}
|
|
790
|
+
|
|
747
791
|
declare class OrderService {
|
|
748
792
|
private readonly angularFirestore;
|
|
749
793
|
private readonly orderRepository;
|
|
@@ -754,5 +798,5 @@ declare class OrderService {
|
|
|
754
798
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrderService>;
|
|
755
799
|
}
|
|
756
800
|
|
|
757
|
-
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderProductReviewService, OrderService, ProductSorts, UtilHelper, WishlistService };
|
|
801
|
+
export { AngularConnectModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule, AuthService, CartService, CatalogService, CategoryService, CategoryWithTree, CheckoutService, CheckoutSubscriptionService, CookieDataPersistence, CouponService, HomeShopService, NewCategoryStructureAdapter, OldCategoryStructureAdapter, OrderProductReviewService, OrderRecurrenceService, OrderService, ProductSorts, UtilHelper, WishlistService };
|
|
758
802
|
export type { BuildResponseParams, Cart, CategoryStructureAdapter, DataPersistence, FetchProductsMainParams, FetchProductsOptions, FetchProductsParams, FetchProductsResponse, FirestoreOptions, HasuraGraphQLOptions, ProductSort, StockNotificationParams };
|