@infrab4a/connect-angular 4.1.2-beta.15 → 4.1.2-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/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 +17 -6
- package/esm2020/angular-firestore.module.mjs +26 -22
- package/fesm2015/infrab4a-connect-angular.mjs +62 -86
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +62 -86
- 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
|
-
import { isPlatformBrowser
|
|
10
|
-
import * as i1$
|
|
11
|
-
import { Firestore, provideFirestore, getFirestore, initializeFirestore,
|
|
9
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
10
|
+
import * as i1$2 from '@angular/fire/firestore';
|
|
11
|
+
import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, 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,21 @@ 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 initializeApp(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-auth`);
|
|
122
|
+
}),
|
|
123
|
+
provideAuth(() => getAuth())] });
|
|
119
124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
125
|
type: NgModule,
|
|
121
126
|
args: [{
|
|
122
|
-
imports: [
|
|
127
|
+
imports: [
|
|
128
|
+
provideFirebaseApp((injector) => {
|
|
129
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
130
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-auth`);
|
|
131
|
+
}),
|
|
132
|
+
provideAuth(() => getAuth()),
|
|
133
|
+
],
|
|
123
134
|
providers: [
|
|
124
135
|
{
|
|
125
136
|
provide: 'Authentication',
|
|
@@ -188,7 +199,7 @@ class AngularFirestoreModule {
|
|
|
188
199
|
}
|
|
189
200
|
}
|
|
190
201
|
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$
|
|
202
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
|
|
192
203
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
193
204
|
{
|
|
194
205
|
provide: 'FirestoreOptions',
|
|
@@ -388,32 +399,34 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
388
399
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
389
400
|
},
|
|
390
401
|
], imports: [AngularElasticSeachModule,
|
|
402
|
+
provideFirebaseApp((injector) => {
|
|
403
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
404
|
+
return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
|
|
405
|
+
}),
|
|
391
406
|
provideFirestore((injector) => {
|
|
392
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
393
|
-
console.log('platformId', platformId);
|
|
394
|
-
if (isPlatformServer(platformId))
|
|
395
|
-
return getFirestore(injector.get(FirebaseApp));
|
|
396
407
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
397
|
-
return getFirestore(
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
408
|
+
return getFirestore();
|
|
409
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
410
|
+
experimentalForceLongPolling: true,
|
|
411
|
+
localCache: memoryLocalCache(),
|
|
412
|
+
});
|
|
401
413
|
})] });
|
|
402
414
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
403
415
|
type: NgModule,
|
|
404
416
|
args: [{
|
|
405
417
|
imports: [
|
|
406
418
|
AngularElasticSeachModule,
|
|
419
|
+
provideFirebaseApp((injector) => {
|
|
420
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
421
|
+
return initializeApp$1(injector.get(FIREBASE_OPTIONS), `${appName || 'firebase'}-firestore`);
|
|
422
|
+
}),
|
|
407
423
|
provideFirestore((injector) => {
|
|
408
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
409
|
-
console.log('platformId', platformId);
|
|
410
|
-
if (isPlatformServer(platformId))
|
|
411
|
-
return getFirestore(injector.get(FirebaseApp));
|
|
412
424
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
413
|
-
return getFirestore(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
425
|
+
return getFirestore();
|
|
426
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
427
|
+
experimentalForceLongPolling: true,
|
|
428
|
+
localCache: memoryLocalCache(),
|
|
429
|
+
});
|
|
417
430
|
}),
|
|
418
431
|
],
|
|
419
432
|
providers: [
|
|
@@ -878,12 +891,12 @@ class AuthService {
|
|
|
878
891
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
879
892
|
}
|
|
880
893
|
}
|
|
881
|
-
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 });
|
|
894
|
+
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 });
|
|
882
895
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
883
896
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
884
897
|
type: Injectable
|
|
885
898
|
}], ctorParameters: function () {
|
|
886
|
-
return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
899
|
+
return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
|
|
887
900
|
type: Inject,
|
|
888
901
|
args: ['UserRepository']
|
|
889
902
|
}] }];
|
|
@@ -1115,7 +1128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1115
1128
|
return [{ type: undefined, decorators: [{
|
|
1116
1129
|
type: Inject,
|
|
1117
1130
|
args: ['CouponRepository']
|
|
1118
|
-
}] }, { type: i1$
|
|
1131
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1119
1132
|
type: Inject,
|
|
1120
1133
|
args: [DEFAULT_SHOP]
|
|
1121
1134
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1182,7 +1195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1182
1195
|
}] }, { type: undefined, decorators: [{
|
|
1183
1196
|
type: Inject,
|
|
1184
1197
|
args: ['UserRepository']
|
|
1185
|
-
}] }, { type: i1$
|
|
1198
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1186
1199
|
type: Inject,
|
|
1187
1200
|
args: [DEFAULT_SHOP]
|
|
1188
1201
|
}] }];
|
|
@@ -1439,7 +1452,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
1439
1452
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1440
1453
|
type: Injectable
|
|
1441
1454
|
}], ctorParameters: function () {
|
|
1442
|
-
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1455
|
+
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1443
1456
|
type: Inject,
|
|
1444
1457
|
args: [DEFAULT_SHOP]
|
|
1445
1458
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1451,7 +1464,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1451
1464
|
}] }, { type: undefined, decorators: [{
|
|
1452
1465
|
type: Inject,
|
|
1453
1466
|
args: ['VariantRepository']
|
|
1454
|
-
}] }, { type: i1$
|
|
1467
|
+
}] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
|
|
1455
1468
|
type: Inject,
|
|
1456
1469
|
args: ['Buy2WinRepository']
|
|
1457
1470
|
}] }];
|
|
@@ -1559,7 +1572,7 @@ class CatalogService {
|
|
|
1559
1572
|
});
|
|
1560
1573
|
}
|
|
1561
1574
|
}
|
|
1562
|
-
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$
|
|
1575
|
+
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 });
|
|
1563
1576
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1564
1577
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1565
1578
|
type: Injectable
|
|
@@ -1570,10 +1583,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1570
1583
|
}] }, { type: undefined, decorators: [{
|
|
1571
1584
|
type: Inject,
|
|
1572
1585
|
args: [CATEGORY_STRUCTURE]
|
|
1573
|
-
}] }, { type: i1$
|
|
1586
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1574
1587
|
type: Inject,
|
|
1575
1588
|
args: [DEFAULT_SHOP]
|
|
1576
|
-
}] }, { type: i1$
|
|
1589
|
+
}] }, { type: i1$3.ProductsIndex }];
|
|
1577
1590
|
} });
|
|
1578
1591
|
|
|
1579
1592
|
class CategoryService {
|
|
@@ -1622,7 +1635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1622
1635
|
}] }, { type: undefined, decorators: [{
|
|
1623
1636
|
type: Inject,
|
|
1624
1637
|
args: [CATEGORY_STRUCTURE]
|
|
1625
|
-
}] }, { type: i1$
|
|
1638
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1626
1639
|
type: Inject,
|
|
1627
1640
|
args: [DEFAULT_SHOP]
|
|
1628
1641
|
}] }];
|
|
@@ -1805,7 +1818,7 @@ class WishlistService {
|
|
|
1805
1818
|
});
|
|
1806
1819
|
}
|
|
1807
1820
|
}
|
|
1808
|
-
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$
|
|
1821
|
+
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 });
|
|
1809
1822
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1810
1823
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1811
1824
|
type: Injectable
|
|
@@ -1813,7 +1826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1813
1826
|
return [{ type: undefined, decorators: [{
|
|
1814
1827
|
type: Inject,
|
|
1815
1828
|
args: ['WishlistRepository']
|
|
1816
|
-
}] }, { type: i1$
|
|
1829
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1817
1830
|
type: Inject,
|
|
1818
1831
|
args: [DEFAULT_SHOP]
|
|
1819
1832
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1822,7 +1835,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1822
1835
|
}] }, { type: undefined, decorators: [{
|
|
1823
1836
|
type: Inject,
|
|
1824
1837
|
args: ['CategoryFilterRepository']
|
|
1825
|
-
}] }, { type: i1$
|
|
1838
|
+
}] }, { type: i1$3.ProductsIndex }];
|
|
1826
1839
|
} });
|
|
1827
1840
|
|
|
1828
1841
|
class CheckoutSubscriptionService {
|
|
@@ -1995,7 +2008,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1995
2008
|
}] }, { type: undefined, decorators: [{
|
|
1996
2009
|
type: Inject,
|
|
1997
2010
|
args: ['ProductRepository']
|
|
1998
|
-
}] }, { type: i1$
|
|
2011
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1999
2012
|
type: Inject,
|
|
2000
2013
|
args: [DEFAULT_SHOP]
|
|
2001
2014
|
}] }];
|
|
@@ -2014,12 +2027,12 @@ class OrderService {
|
|
|
2014
2027
|
return this.orderSubject;
|
|
2015
2028
|
}
|
|
2016
2029
|
}
|
|
2017
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
2030
|
+
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 });
|
|
2018
2031
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2019
2032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2020
2033
|
type: Injectable
|
|
2021
2034
|
}], ctorParameters: function () {
|
|
2022
|
-
return [{ type: i1$
|
|
2035
|
+
return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
2023
2036
|
type: Inject,
|
|
2024
2037
|
args: ['OrderRepository']
|
|
2025
2038
|
}] }];
|
|
@@ -2102,12 +2115,12 @@ class ShippingService {
|
|
|
2102
2115
|
return false;
|
|
2103
2116
|
}
|
|
2104
2117
|
}
|
|
2105
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
2118
|
+
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 });
|
|
2106
2119
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2107
2120
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2108
2121
|
type: Injectable
|
|
2109
2122
|
}], ctorParameters: function () {
|
|
2110
|
-
return [{ type: i1$
|
|
2123
|
+
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2111
2124
|
type: Inject,
|
|
2112
2125
|
args: [BACKEND_URL]
|
|
2113
2126
|
}] }, { type: HomeShopService }];
|
|
@@ -2135,10 +2148,7 @@ class AngularConnectModule {
|
|
|
2135
2148
|
}
|
|
2136
2149
|
}
|
|
2137
2150
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2138
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2139
|
-
AngularFirebaseAuthModule,
|
|
2140
|
-
AngularFirestoreModule,
|
|
2141
|
-
AngularHasuraGraphQLModule] });
|
|
2151
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2142
2152
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2143
2153
|
AuthService,
|
|
2144
2154
|
CartService,
|
|
@@ -2151,45 +2161,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2151
2161
|
OrderService,
|
|
2152
2162
|
ShippingService,
|
|
2153
2163
|
WishlistService,
|
|
2154
|
-
], imports: [
|
|
2155
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2156
|
-
console.log('fire', appName);
|
|
2157
|
-
console.log('options', FIREBASE_OPTIONS);
|
|
2158
|
-
console.log('fire', getApp);
|
|
2159
|
-
try {
|
|
2160
|
-
return getApp(appName);
|
|
2161
|
-
}
|
|
2162
|
-
catch (error) {
|
|
2163
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
2164
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2165
|
-
}
|
|
2166
|
-
}),
|
|
2167
|
-
AngularElasticSeachModule,
|
|
2168
|
-
AngularFirebaseAuthModule,
|
|
2169
|
-
AngularFirestoreModule,
|
|
2170
|
-
AngularHasuraGraphQLModule] });
|
|
2164
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2171
2165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2172
2166
|
type: NgModule,
|
|
2173
2167
|
args: [{
|
|
2174
|
-
imports: [
|
|
2175
|
-
provideFirebaseApp((injector) => {
|
|
2176
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2177
|
-
console.log('fire', appName);
|
|
2178
|
-
console.log('options', FIREBASE_OPTIONS);
|
|
2179
|
-
console.log('fire', getApp);
|
|
2180
|
-
try {
|
|
2181
|
-
return getApp(appName);
|
|
2182
|
-
}
|
|
2183
|
-
catch (error) {
|
|
2184
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
2185
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2186
|
-
}
|
|
2187
|
-
}),
|
|
2188
|
-
AngularElasticSeachModule,
|
|
2189
|
-
AngularFirebaseAuthModule,
|
|
2190
|
-
AngularFirestoreModule,
|
|
2191
|
-
AngularHasuraGraphQLModule,
|
|
2192
|
-
],
|
|
2168
|
+
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2193
2169
|
providers: [
|
|
2194
2170
|
AuthService,
|
|
2195
2171
|
CartService,
|