@infrab4a/connect-angular 5.9.0-alpha.0 → 5.9.0-alpha.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.9.0-alpha.
|
|
3
|
+
"version": "5.9.0-alpha.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": "5.8.0-alpha.
|
|
15
|
+
"@infrab4a/connect": "5.8.0-alpha.2",
|
|
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,
|
|
6
|
+
import { HasuraGraphQLAuthOptions, CacheConfig, AxiosElasticSearchConfig, VertexSearchConfig, FirestoreConstructorParams, Shops, UserRepository, User, CheckoutRepository, Checkout, CheckoutSubscription, 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, UpdateShoppingRecurrencePaymentMethodPayload, GetShoppingRecurrenceAvailableShippingPayload, UpdateShoppingRecurrenceShippingAddressPayload, CancelShoppingRecurrencePayload, ShoppingRecurrenceCycle, LineItemRecurrence, 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';
|
|
@@ -107,6 +107,32 @@ declare class AuthService {
|
|
|
107
107
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
declare class CheckoutRepositoriesFacade {
|
|
111
|
+
readonly checkoutRepository: CheckoutRepository;
|
|
112
|
+
readonly userRepository: UserRepository;
|
|
113
|
+
constructor(checkoutRepository: CheckoutRepository, userRepository: UserRepository);
|
|
114
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutRepositoriesFacade, never>;
|
|
115
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutRepositoriesFacade>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
declare class CheckoutDependenciesFacade {
|
|
119
|
+
readonly dataPersistence: DataPersistence;
|
|
120
|
+
readonly httpClient: HttpClient;
|
|
121
|
+
constructor(dataPersistence: DataPersistence, httpClient: HttpClient);
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutDependenciesFacade, never>;
|
|
123
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutDependenciesFacade>;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare class ConfigurationFacade {
|
|
127
|
+
readonly defaultShop: Shops;
|
|
128
|
+
readonly firebaseOptions: FirebaseOptions;
|
|
129
|
+
constructor(defaultShop: Shops, firebaseOptions: FirebaseOptions);
|
|
130
|
+
getCheckoutUrl(): string;
|
|
131
|
+
getProjectId(): string;
|
|
132
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationFacade, never>;
|
|
133
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationFacade>;
|
|
134
|
+
}
|
|
135
|
+
|
|
110
136
|
type PendingProductReview = {
|
|
111
137
|
id: string;
|
|
112
138
|
isEdition: boolean;
|
|
@@ -138,32 +164,6 @@ type RequiredCheckoutData = Partial<Pick<Checkout, 'id' | 'user' | 'shop' | 'lin
|
|
|
138
164
|
|
|
139
165
|
type RequiredCheckoutSubscriptionData = Partial<Pick<CheckoutSubscription, 'id'>>;
|
|
140
166
|
|
|
141
|
-
declare class CheckoutRepositoriesFacade {
|
|
142
|
-
readonly checkoutRepository: CheckoutRepository;
|
|
143
|
-
readonly userRepository: UserRepository;
|
|
144
|
-
constructor(checkoutRepository: CheckoutRepository, userRepository: UserRepository);
|
|
145
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutRepositoriesFacade, never>;
|
|
146
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutRepositoriesFacade>;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
declare class CheckoutDependenciesFacade {
|
|
150
|
-
readonly dataPersistence: DataPersistence;
|
|
151
|
-
readonly httpClient: HttpClient;
|
|
152
|
-
constructor(dataPersistence: DataPersistence, httpClient: HttpClient);
|
|
153
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutDependenciesFacade, never>;
|
|
154
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CheckoutDependenciesFacade>;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
declare class ConfigurationFacade {
|
|
158
|
-
readonly defaultShop: Shops;
|
|
159
|
-
readonly firebaseOptions: FirebaseOptions;
|
|
160
|
-
constructor(defaultShop: Shops, firebaseOptions: FirebaseOptions);
|
|
161
|
-
getCheckoutUrl(): string;
|
|
162
|
-
getProjectId(): string;
|
|
163
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigurationFacade, never>;
|
|
164
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfigurationFacade>;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
167
|
declare class CheckoutService {
|
|
168
168
|
private readonly repositoriesFacade;
|
|
169
169
|
private readonly dependenciesFacade;
|
|
@@ -210,7 +210,8 @@ declare class CartService {
|
|
|
210
210
|
private cartSubject;
|
|
211
211
|
private checkoutUrl;
|
|
212
212
|
constructor(servicesFacade: CartServicesFacade, configurationFacade: ConfigurationFacade);
|
|
213
|
-
addItem(item: LineItem, quantity?: number): Observable<Cart>;
|
|
213
|
+
addItem(item: LineItem, quantity?: number, recurrence?: boolean, recurrenceCycle?: string): Observable<Cart>;
|
|
214
|
+
updateItemRecurrence(item: LineItem, recurrence?: boolean, recurrenceCycle?: string): Observable<Cart>;
|
|
214
215
|
decreaseItem(item: LineItem): Observable<Cart>;
|
|
215
216
|
removeItem(item: LineItem): Observable<Cart>;
|
|
216
217
|
updateUserCart(user: User): Observable<Cart>;
|
|
@@ -763,27 +764,15 @@ declare class OrderRecurrenceService {
|
|
|
763
764
|
private checkoutUrl;
|
|
764
765
|
constructor(shoppingRecurrenceRepository: ShoppingRecurrenceFirestoreRepository, defaultShop: Shops, dependenciesFacade: CheckoutDependenciesFacade, configurationFacade: ConfigurationFacade);
|
|
765
766
|
getRecurrenceOrder(recurrenceId: string): Observable<ShoppingRecurrence>;
|
|
766
|
-
createRecurrenceOrder(recurrencePayload: CreateShoppingRecurrencyPayload): Observable<ShoppingRecurrence>;
|
|
767
|
-
updatePaymentMethod(data:
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
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>;
|
|
767
|
+
createRecurrenceOrder(recurrencePayload: CreateShoppingRecurrencyPayload): Observable<ShoppingRecurrence[]>;
|
|
768
|
+
updatePaymentMethod(data: UpdateShoppingRecurrencePaymentMethodPayload): Observable<ShoppingRecurrence>;
|
|
769
|
+
getRecurrenceAvailableShipping(data: GetShoppingRecurrenceAvailableShippingPayload): Observable<ShippingMethodResponse[]>;
|
|
770
|
+
updateShippingAddress(data: UpdateShoppingRecurrenceShippingAddressPayload): Observable<ShoppingRecurrence>;
|
|
771
|
+
cancelRecurrenceOrder(data: CancelShoppingRecurrencePayload): Observable<ShoppingRecurrence>;
|
|
783
772
|
enableOrDisableRecurrenceOrder(recurrenceId: string, active: boolean): Observable<ShoppingRecurrence>;
|
|
784
773
|
skipRecurrenceOrder(recurrenceEditionId: string): Observable<ShoppingRecurrence>;
|
|
785
774
|
updateFrequency(recurrenceId: string, frequency: ShoppingRecurrenceCycle): Observable<ShoppingRecurrence>;
|
|
786
|
-
updateLineItems(recurrenceId: string, lineItems:
|
|
775
|
+
updateLineItems(recurrenceId: string, lineItems: LineItemRecurrence[]): Observable<ShoppingRecurrence>;
|
|
787
776
|
static ɵfac: i0.ɵɵFactoryDeclaration<OrderRecurrenceService, never>;
|
|
788
777
|
static ɵprov: i0.ɵɵInjectableDeclaration<OrderRecurrenceService>;
|
|
789
778
|
}
|