@infrab4a/connect-angular 4.1.2-beta.9 → 4.1.3-beta.0
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/angular-connect.module.d.ts +5 -6
- package/angular-firebase-auth.module.d.ts +3 -2
- package/angular-firestore.module.d.ts +3 -2
- package/esm2020/angular-connect.module.mjs +4 -43
- package/esm2020/angular-firebase-auth.module.mjs +21 -6
- package/esm2020/angular-firestore.module.mjs +27 -15
- package/fesm2015/infrab4a-connect-angular.mjs +67 -79
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +67 -79
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
-
import * as i1$
|
|
4
|
-
import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
5
|
-
import * as i1$2 from '@infrab4a/connect';
|
|
3
|
+
import * as i1$3 from '@infrab4a/connect';
|
|
6
4
|
import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, ProductVariantFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, CheckoutSubscription, Product, RequiredArgumentError, add, Order } from '@infrab4a/connect';
|
|
7
|
-
import * as i1 from '@angular/fire/
|
|
5
|
+
import * as i1 from '@angular/fire/app';
|
|
6
|
+
import { provideFirebaseApp, initializeApp, FirebaseApp } from '@angular/fire/app';
|
|
7
|
+
import * as i1$1 from '@angular/fire/auth';
|
|
8
8
|
import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
9
9
|
import { isPlatformBrowser } from '@angular/common';
|
|
10
|
-
import * as i1$
|
|
11
|
-
import { Firestore, provideFirestore, getFirestore, initializeFirestore,
|
|
10
|
+
import * as i1$2 from '@angular/fire/firestore';
|
|
11
|
+
import { Firestore, provideFirestore, getFirestore, initializeFirestore, enableIndexedDbPersistence, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
|
+
import { initializeApp as initializeApp$1 } from 'firebase/app';
|
|
12
13
|
import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
13
14
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
14
15
|
import { __awaiter, __decorate, __metadata } from 'tslib';
|
|
15
16
|
import cookie from 'js-cookie';
|
|
16
17
|
import { Type } from 'class-transformer';
|
|
17
|
-
import * as i1$
|
|
18
|
+
import * as i1$4 from '@angular/common/http';
|
|
18
19
|
|
|
19
20
|
const ES_CONFIG = 'ES_CONFIG';
|
|
20
21
|
|
|
@@ -71,7 +72,7 @@ class AngularFirebaseAuthModule {
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
74
|
-
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
75
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] });
|
|
75
76
|
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
76
77
|
{
|
|
77
78
|
provide: 'Authentication',
|
|
@@ -115,11 +116,25 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
115
116
|
},
|
|
116
117
|
deps: ['AuthenticationService'],
|
|
117
118
|
},
|
|
118
|
-
], imports: [
|
|
119
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
120
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
121
|
+
return appName
|
|
122
|
+
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
123
|
+
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
124
|
+
}),
|
|
125
|
+
provideAuth(() => getAuth())] });
|
|
119
126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
127
|
type: NgModule,
|
|
121
128
|
args: [{
|
|
122
|
-
imports: [
|
|
129
|
+
imports: [
|
|
130
|
+
provideFirebaseApp((injector) => {
|
|
131
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
132
|
+
return appName
|
|
133
|
+
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
134
|
+
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
135
|
+
}),
|
|
136
|
+
provideAuth(() => getAuth()),
|
|
137
|
+
],
|
|
123
138
|
providers: [
|
|
124
139
|
{
|
|
125
140
|
provide: 'Authentication',
|
|
@@ -188,7 +203,7 @@ class AngularFirestoreModule {
|
|
|
188
203
|
}
|
|
189
204
|
}
|
|
190
205
|
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
191
|
-
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$
|
|
206
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
|
|
192
207
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
193
208
|
{
|
|
194
209
|
provide: 'FirestoreOptions',
|
|
@@ -388,26 +403,36 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
388
403
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
389
404
|
},
|
|
390
405
|
], imports: [AngularElasticSeachModule,
|
|
406
|
+
provideFirebaseApp((injector) => {
|
|
407
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
408
|
+
return appName
|
|
409
|
+
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
410
|
+
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
411
|
+
}),
|
|
391
412
|
provideFirestore((injector) => {
|
|
392
413
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
393
|
-
return getFirestore(
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
});
|
|
414
|
+
return getFirestore();
|
|
415
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
416
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
417
|
+
return firestore;
|
|
398
418
|
})] });
|
|
399
419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
400
420
|
type: NgModule,
|
|
401
421
|
args: [{
|
|
402
422
|
imports: [
|
|
403
423
|
AngularElasticSeachModule,
|
|
424
|
+
provideFirebaseApp((injector) => {
|
|
425
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
426
|
+
return appName
|
|
427
|
+
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
428
|
+
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
429
|
+
}),
|
|
404
430
|
provideFirestore((injector) => {
|
|
405
431
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
406
|
-
return getFirestore(
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
});
|
|
432
|
+
return getFirestore();
|
|
433
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
434
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
435
|
+
return firestore;
|
|
411
436
|
}),
|
|
412
437
|
],
|
|
413
438
|
providers: [
|
|
@@ -872,12 +897,12 @@ class AuthService {
|
|
|
872
897
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
873
898
|
}
|
|
874
899
|
}
|
|
875
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
900
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
876
901
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
877
902
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
878
903
|
type: Injectable
|
|
879
904
|
}], ctorParameters: function () {
|
|
880
|
-
return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
905
|
+
return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
|
|
881
906
|
type: Inject,
|
|
882
907
|
args: ['UserRepository']
|
|
883
908
|
}] }];
|
|
@@ -1109,7 +1134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1109
1134
|
return [{ type: undefined, decorators: [{
|
|
1110
1135
|
type: Inject,
|
|
1111
1136
|
args: ['CouponRepository']
|
|
1112
|
-
}] }, { type: i1$
|
|
1137
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1113
1138
|
type: Inject,
|
|
1114
1139
|
args: [DEFAULT_SHOP]
|
|
1115
1140
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1176,7 +1201,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1176
1201
|
}] }, { type: undefined, decorators: [{
|
|
1177
1202
|
type: Inject,
|
|
1178
1203
|
args: ['UserRepository']
|
|
1179
|
-
}] }, { type: i1$
|
|
1204
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1180
1205
|
type: Inject,
|
|
1181
1206
|
args: [DEFAULT_SHOP]
|
|
1182
1207
|
}] }];
|
|
@@ -1433,7 +1458,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
1433
1458
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1434
1459
|
type: Injectable
|
|
1435
1460
|
}], ctorParameters: function () {
|
|
1436
|
-
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1461
|
+
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1437
1462
|
type: Inject,
|
|
1438
1463
|
args: [DEFAULT_SHOP]
|
|
1439
1464
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1445,7 +1470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1445
1470
|
}] }, { type: undefined, decorators: [{
|
|
1446
1471
|
type: Inject,
|
|
1447
1472
|
args: ['VariantRepository']
|
|
1448
|
-
}] }, { type: i1$
|
|
1473
|
+
}] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
|
|
1449
1474
|
type: Inject,
|
|
1450
1475
|
args: ['Buy2WinRepository']
|
|
1451
1476
|
}] }];
|
|
@@ -1553,7 +1578,7 @@ class CatalogService {
|
|
|
1553
1578
|
});
|
|
1554
1579
|
}
|
|
1555
1580
|
}
|
|
1556
|
-
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$
|
|
1581
|
+
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1557
1582
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1558
1583
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1559
1584
|
type: Injectable
|
|
@@ -1564,10 +1589,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1564
1589
|
}] }, { type: undefined, decorators: [{
|
|
1565
1590
|
type: Inject,
|
|
1566
1591
|
args: [CATEGORY_STRUCTURE]
|
|
1567
|
-
}] }, { type: i1$
|
|
1592
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1568
1593
|
type: Inject,
|
|
1569
1594
|
args: [DEFAULT_SHOP]
|
|
1570
|
-
}] }, { type: i1$
|
|
1595
|
+
}] }, { type: i1$3.ProductsIndex }];
|
|
1571
1596
|
} });
|
|
1572
1597
|
|
|
1573
1598
|
class CategoryService {
|
|
@@ -1616,7 +1641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1616
1641
|
}] }, { type: undefined, decorators: [{
|
|
1617
1642
|
type: Inject,
|
|
1618
1643
|
args: [CATEGORY_STRUCTURE]
|
|
1619
|
-
}] }, { type: i1$
|
|
1644
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1620
1645
|
type: Inject,
|
|
1621
1646
|
args: [DEFAULT_SHOP]
|
|
1622
1647
|
}] }];
|
|
@@ -1799,7 +1824,7 @@ class WishlistService {
|
|
|
1799
1824
|
});
|
|
1800
1825
|
}
|
|
1801
1826
|
}
|
|
1802
|
-
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$
|
|
1827
|
+
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1803
1828
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1804
1829
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1805
1830
|
type: Injectable
|
|
@@ -1807,7 +1832,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1807
1832
|
return [{ type: undefined, decorators: [{
|
|
1808
1833
|
type: Inject,
|
|
1809
1834
|
args: ['WishlistRepository']
|
|
1810
|
-
}] }, { type: i1$
|
|
1835
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1811
1836
|
type: Inject,
|
|
1812
1837
|
args: [DEFAULT_SHOP]
|
|
1813
1838
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1816,7 +1841,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1816
1841
|
}] }, { type: undefined, decorators: [{
|
|
1817
1842
|
type: Inject,
|
|
1818
1843
|
args: ['CategoryFilterRepository']
|
|
1819
|
-
}] }, { type: i1$
|
|
1844
|
+
}] }, { type: i1$3.ProductsIndex }];
|
|
1820
1845
|
} });
|
|
1821
1846
|
|
|
1822
1847
|
class CheckoutSubscriptionService {
|
|
@@ -1989,7 +2014,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1989
2014
|
}] }, { type: undefined, decorators: [{
|
|
1990
2015
|
type: Inject,
|
|
1991
2016
|
args: ['ProductRepository']
|
|
1992
|
-
}] }, { type: i1$
|
|
2017
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1993
2018
|
type: Inject,
|
|
1994
2019
|
args: [DEFAULT_SHOP]
|
|
1995
2020
|
}] }];
|
|
@@ -2008,12 +2033,12 @@ class OrderService {
|
|
|
2008
2033
|
return this.orderSubject;
|
|
2009
2034
|
}
|
|
2010
2035
|
}
|
|
2011
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
2036
|
+
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2012
2037
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2013
2038
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2014
2039
|
type: Injectable
|
|
2015
2040
|
}], ctorParameters: function () {
|
|
2016
|
-
return [{ type: i1$
|
|
2041
|
+
return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
2017
2042
|
type: Inject,
|
|
2018
2043
|
args: ['OrderRepository']
|
|
2019
2044
|
}] }];
|
|
@@ -2096,12 +2121,12 @@ class ShippingService {
|
|
|
2096
2121
|
return false;
|
|
2097
2122
|
}
|
|
2098
2123
|
}
|
|
2099
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
2124
|
+
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2100
2125
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2101
2126
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2102
2127
|
type: Injectable
|
|
2103
2128
|
}], ctorParameters: function () {
|
|
2104
|
-
return [{ type: i1$
|
|
2129
|
+
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2105
2130
|
type: Inject,
|
|
2106
2131
|
args: [BACKEND_URL]
|
|
2107
2132
|
}] }, { type: HomeShopService }];
|
|
@@ -2129,10 +2154,7 @@ class AngularConnectModule {
|
|
|
2129
2154
|
}
|
|
2130
2155
|
}
|
|
2131
2156
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2132
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2133
|
-
AngularFirebaseAuthModule,
|
|
2134
|
-
AngularFirestoreModule,
|
|
2135
|
-
AngularHasuraGraphQLModule] });
|
|
2157
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2136
2158
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2137
2159
|
AuthService,
|
|
2138
2160
|
CartService,
|
|
@@ -2145,45 +2167,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2145
2167
|
OrderService,
|
|
2146
2168
|
ShippingService,
|
|
2147
2169
|
WishlistService,
|
|
2148
|
-
], imports: [
|
|
2149
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2150
|
-
console.log('fire', appName);
|
|
2151
|
-
console.log('options', FIREBASE_OPTIONS);
|
|
2152
|
-
console.log('fire', getApp);
|
|
2153
|
-
try {
|
|
2154
|
-
return getApp(appName);
|
|
2155
|
-
}
|
|
2156
|
-
catch (error) {
|
|
2157
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
2158
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2159
|
-
}
|
|
2160
|
-
}),
|
|
2161
|
-
AngularElasticSeachModule,
|
|
2162
|
-
AngularFirebaseAuthModule,
|
|
2163
|
-
AngularFirestoreModule,
|
|
2164
|
-
AngularHasuraGraphQLModule] });
|
|
2170
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2165
2171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2166
2172
|
type: NgModule,
|
|
2167
2173
|
args: [{
|
|
2168
|
-
imports: [
|
|
2169
|
-
provideFirebaseApp((injector) => {
|
|
2170
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2171
|
-
console.log('fire', appName);
|
|
2172
|
-
console.log('options', FIREBASE_OPTIONS);
|
|
2173
|
-
console.log('fire', getApp);
|
|
2174
|
-
try {
|
|
2175
|
-
return getApp(appName);
|
|
2176
|
-
}
|
|
2177
|
-
catch (error) {
|
|
2178
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
2179
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2180
|
-
}
|
|
2181
|
-
}),
|
|
2182
|
-
AngularElasticSeachModule,
|
|
2183
|
-
AngularFirebaseAuthModule,
|
|
2184
|
-
AngularFirestoreModule,
|
|
2185
|
-
AngularHasuraGraphQLModule,
|
|
2186
|
-
],
|
|
2174
|
+
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2187
2175
|
providers: [
|
|
2188
2176
|
AuthService,
|
|
2189
2177
|
CartService,
|