@infrab4a/connect-angular 4.1.2-beta.7 → 4.1.2-beta.9
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 +6 -5
- package/angular-firebase-auth.module.d.ts +2 -3
- package/angular-firestore.module.d.ts +2 -3
- package/esm2020/angular-connect.module.mjs +43 -4
- package/esm2020/angular-firebase-auth.module.mjs +6 -45
- package/esm2020/angular-firestore.module.mjs +4 -41
- package/fesm2015/infrab4a-connect-angular.mjs +68 -105
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +68 -105
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
|
-
import * as i1$
|
|
3
|
+
import * as i1$4 from '@angular/fire/app';
|
|
4
|
+
import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
5
|
+
import * as i1$2 from '@infrab4a/connect';
|
|
4
6
|
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';
|
|
5
|
-
import * as i1 from '@angular/fire/
|
|
6
|
-
import { provideFirebaseApp, getApp, initializeApp, FirebaseApp } from '@angular/fire/app';
|
|
7
|
-
import * as i1$1 from '@angular/fire/auth';
|
|
7
|
+
import * as i1 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$
|
|
10
|
+
import * as i1$1 from '@angular/fire/firestore';
|
|
11
11
|
import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
12
|
import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
13
13
|
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
14
14
|
import cookie from 'js-cookie';
|
|
15
15
|
import { __decorate, __metadata } from 'tslib';
|
|
16
16
|
import { Type } from 'class-transformer';
|
|
17
|
-
import * as i1$
|
|
17
|
+
import * as i1$3 from '@angular/common/http';
|
|
18
18
|
|
|
19
19
|
const ES_CONFIG = 'ES_CONFIG';
|
|
20
20
|
|
|
@@ -71,7 +71,7 @@ class AngularFirebaseAuthModule {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
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.
|
|
74
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
75
75
|
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
76
76
|
{
|
|
77
77
|
provide: 'Authentication',
|
|
@@ -115,49 +115,11 @@ AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
115
115
|
},
|
|
116
116
|
deps: ['AuthenticationService'],
|
|
117
117
|
},
|
|
118
|
-
], imports: [
|
|
119
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
120
|
-
console.log('fire', appName);
|
|
121
|
-
console.log('fire', getApp);
|
|
122
|
-
try {
|
|
123
|
-
return getApp(appName);
|
|
124
|
-
}
|
|
125
|
-
catch (error) {
|
|
126
|
-
try {
|
|
127
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
128
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
129
|
-
}
|
|
130
|
-
catch (error) {
|
|
131
|
-
console.log('getApp', error instanceof Error && error.message);
|
|
132
|
-
return getApp(appName);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}),
|
|
136
|
-
provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
118
|
+
], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
137
119
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
138
120
|
type: NgModule,
|
|
139
121
|
args: [{
|
|
140
|
-
imports: [
|
|
141
|
-
provideFirebaseApp((injector) => {
|
|
142
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
143
|
-
console.log('fire', appName);
|
|
144
|
-
console.log('fire', getApp);
|
|
145
|
-
try {
|
|
146
|
-
return getApp(appName);
|
|
147
|
-
}
|
|
148
|
-
catch (error) {
|
|
149
|
-
try {
|
|
150
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
151
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
152
|
-
}
|
|
153
|
-
catch (error) {
|
|
154
|
-
console.log('getApp', error instanceof Error && error.message);
|
|
155
|
-
return getApp(appName);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}),
|
|
159
|
-
provideAuth((injector) => getAuth(injector.get(FirebaseApp))),
|
|
160
|
-
],
|
|
122
|
+
imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
|
|
161
123
|
providers: [
|
|
162
124
|
{
|
|
163
125
|
provide: 'Authentication',
|
|
@@ -225,7 +187,7 @@ class AngularFirestoreModule {
|
|
|
225
187
|
}
|
|
226
188
|
}
|
|
227
189
|
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
228
|
-
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1
|
|
190
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule] });
|
|
229
191
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
230
192
|
{
|
|
231
193
|
provide: 'FirestoreOptions',
|
|
@@ -425,24 +387,6 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
425
387
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
426
388
|
},
|
|
427
389
|
], imports: [AngularElasticSeachModule,
|
|
428
|
-
provideFirebaseApp((injector) => {
|
|
429
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
430
|
-
console.log('fire', appName);
|
|
431
|
-
console.log('fire', getApp);
|
|
432
|
-
try {
|
|
433
|
-
return getApp(appName);
|
|
434
|
-
}
|
|
435
|
-
catch (error) {
|
|
436
|
-
try {
|
|
437
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
438
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
439
|
-
}
|
|
440
|
-
catch (error) {
|
|
441
|
-
console.log('getApp', error instanceof Error && error.message);
|
|
442
|
-
return getApp(appName);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}),
|
|
446
390
|
provideFirestore((injector) => {
|
|
447
391
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
448
392
|
return getFirestore(injector.get(FirebaseApp));
|
|
@@ -456,24 +400,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
456
400
|
args: [{
|
|
457
401
|
imports: [
|
|
458
402
|
AngularElasticSeachModule,
|
|
459
|
-
provideFirebaseApp((injector) => {
|
|
460
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
461
|
-
console.log('fire', appName);
|
|
462
|
-
console.log('fire', getApp);
|
|
463
|
-
try {
|
|
464
|
-
return getApp(appName);
|
|
465
|
-
}
|
|
466
|
-
catch (error) {
|
|
467
|
-
try {
|
|
468
|
-
console.log('initializeApp', error instanceof Error && error.message);
|
|
469
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
470
|
-
}
|
|
471
|
-
catch (error) {
|
|
472
|
-
console.log('getApp', error instanceof Error && error.message);
|
|
473
|
-
return getApp(appName);
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}),
|
|
477
403
|
provideFirestore((injector) => {
|
|
478
404
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
479
405
|
return getFirestore(injector.get(FirebaseApp));
|
|
@@ -945,11 +871,11 @@ class AuthService {
|
|
|
945
871
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
946
872
|
}
|
|
947
873
|
}
|
|
948
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1
|
|
874
|
+
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 });
|
|
949
875
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
950
876
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
951
877
|
type: Injectable
|
|
952
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
878
|
+
}], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
953
879
|
type: Inject,
|
|
954
880
|
args: ['UserRepository']
|
|
955
881
|
}] }]; } });
|
|
@@ -1154,7 +1080,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1154
1080
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1155
1081
|
type: Inject,
|
|
1156
1082
|
args: ['CouponRepository']
|
|
1157
|
-
}] }, { type: i1$
|
|
1083
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1158
1084
|
type: Inject,
|
|
1159
1085
|
args: [DEFAULT_SHOP]
|
|
1160
1086
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1221,7 +1147,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1221
1147
|
}] }, { type: undefined, decorators: [{
|
|
1222
1148
|
type: Inject,
|
|
1223
1149
|
args: ['UserRepository']
|
|
1224
|
-
}] }, { type: i1$
|
|
1150
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1225
1151
|
type: Inject,
|
|
1226
1152
|
args: [DEFAULT_SHOP]
|
|
1227
1153
|
}] }]; } });
|
|
@@ -1479,7 +1405,7 @@ CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15
|
|
|
1479
1405
|
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1480
1406
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1481
1407
|
type: Injectable
|
|
1482
|
-
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1408
|
+
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
|
|
1483
1409
|
type: Inject,
|
|
1484
1410
|
args: [DEFAULT_SHOP]
|
|
1485
1411
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1491,7 +1417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1491
1417
|
}] }, { type: undefined, decorators: [{
|
|
1492
1418
|
type: Inject,
|
|
1493
1419
|
args: ['VariantRepository']
|
|
1494
|
-
}] }, { type: i1$
|
|
1420
|
+
}] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
|
|
1495
1421
|
type: Inject,
|
|
1496
1422
|
args: ['Buy2WinRepository']
|
|
1497
1423
|
}] }]; } });
|
|
@@ -1600,7 +1526,7 @@ class CatalogService {
|
|
|
1600
1526
|
.then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
|
|
1601
1527
|
}
|
|
1602
1528
|
}
|
|
1603
|
-
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$
|
|
1529
|
+
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$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1604
1530
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1605
1531
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1606
1532
|
type: Injectable
|
|
@@ -1610,10 +1536,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1610
1536
|
}] }, { type: undefined, decorators: [{
|
|
1611
1537
|
type: Inject,
|
|
1612
1538
|
args: [CATEGORY_STRUCTURE]
|
|
1613
|
-
}] }, { type: i1$
|
|
1539
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1614
1540
|
type: Inject,
|
|
1615
1541
|
args: [DEFAULT_SHOP]
|
|
1616
|
-
}] }, { type: i1$
|
|
1542
|
+
}] }, { type: i1$2.ProductsIndex }]; } });
|
|
1617
1543
|
|
|
1618
1544
|
class CategoryService {
|
|
1619
1545
|
constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
|
|
@@ -1656,7 +1582,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1656
1582
|
}] }, { type: undefined, decorators: [{
|
|
1657
1583
|
type: Inject,
|
|
1658
1584
|
args: [CATEGORY_STRUCTURE]
|
|
1659
|
-
}] }, { type: i1$
|
|
1585
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1660
1586
|
type: Inject,
|
|
1661
1587
|
args: [DEFAULT_SHOP]
|
|
1662
1588
|
}] }]; } });
|
|
@@ -1818,14 +1744,14 @@ class WishlistService {
|
|
|
1818
1744
|
return wishlist;
|
|
1819
1745
|
}
|
|
1820
1746
|
}
|
|
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$
|
|
1747
|
+
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$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1822
1748
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1823
1749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1824
1750
|
type: Injectable
|
|
1825
1751
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1826
1752
|
type: Inject,
|
|
1827
1753
|
args: ['WishlistRepository']
|
|
1828
|
-
}] }, { type: i1$
|
|
1754
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
1829
1755
|
type: Inject,
|
|
1830
1756
|
args: [DEFAULT_SHOP]
|
|
1831
1757
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1834,7 +1760,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1834
1760
|
}] }, { type: undefined, decorators: [{
|
|
1835
1761
|
type: Inject,
|
|
1836
1762
|
args: ['CategoryFilterRepository']
|
|
1837
|
-
}] }, { type: i1$
|
|
1763
|
+
}] }, { type: i1$2.ProductsIndex }]; } });
|
|
1838
1764
|
|
|
1839
1765
|
class CheckoutSubscriptionService {
|
|
1840
1766
|
constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
|
|
@@ -2001,7 +1927,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
2001
1927
|
}] }, { type: undefined, decorators: [{
|
|
2002
1928
|
type: Inject,
|
|
2003
1929
|
args: ['ProductRepository']
|
|
2004
|
-
}] }, { type: i1$
|
|
1930
|
+
}] }, { type: i1$2.Shops, decorators: [{
|
|
2005
1931
|
type: Inject,
|
|
2006
1932
|
args: [DEFAULT_SHOP]
|
|
2007
1933
|
}] }]; } });
|
|
@@ -2019,11 +1945,11 @@ class OrderService {
|
|
|
2019
1945
|
return this.orderSubject;
|
|
2020
1946
|
}
|
|
2021
1947
|
}
|
|
2022
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
1948
|
+
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2023
1949
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2024
1950
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2025
1951
|
type: Injectable
|
|
2026
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1952
|
+
}], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
|
|
2027
1953
|
type: Inject,
|
|
2028
1954
|
args: ['OrderRepository']
|
|
2029
1955
|
}] }]; } });
|
|
@@ -2105,11 +2031,11 @@ class ShippingService {
|
|
|
2105
2031
|
return false;
|
|
2106
2032
|
}
|
|
2107
2033
|
}
|
|
2108
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
2034
|
+
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2109
2035
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2110
2036
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2111
2037
|
type: Injectable
|
|
2112
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
2038
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2113
2039
|
type: Inject,
|
|
2114
2040
|
args: [BACKEND_URL]
|
|
2115
2041
|
}] }, { type: HomeShopService }]; } });
|
|
@@ -2136,7 +2062,10 @@ class AngularConnectModule {
|
|
|
2136
2062
|
}
|
|
2137
2063
|
}
|
|
2138
2064
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2139
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2065
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2066
|
+
AngularFirebaseAuthModule,
|
|
2067
|
+
AngularFirestoreModule,
|
|
2068
|
+
AngularHasuraGraphQLModule] });
|
|
2140
2069
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2141
2070
|
AuthService,
|
|
2142
2071
|
CartService,
|
|
@@ -2149,11 +2078,45 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2149
2078
|
OrderService,
|
|
2150
2079
|
ShippingService,
|
|
2151
2080
|
WishlistService,
|
|
2152
|
-
], imports: [
|
|
2081
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
2082
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2083
|
+
console.log('fire', appName);
|
|
2084
|
+
console.log('options', FIREBASE_OPTIONS);
|
|
2085
|
+
console.log('fire', getApp);
|
|
2086
|
+
try {
|
|
2087
|
+
return getApp(appName);
|
|
2088
|
+
}
|
|
2089
|
+
catch (error) {
|
|
2090
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
2091
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2092
|
+
}
|
|
2093
|
+
}),
|
|
2094
|
+
AngularElasticSeachModule,
|
|
2095
|
+
AngularFirebaseAuthModule,
|
|
2096
|
+
AngularFirestoreModule,
|
|
2097
|
+
AngularHasuraGraphQLModule] });
|
|
2153
2098
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2154
2099
|
type: NgModule,
|
|
2155
2100
|
args: [{
|
|
2156
|
-
imports: [
|
|
2101
|
+
imports: [
|
|
2102
|
+
provideFirebaseApp((injector) => {
|
|
2103
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2104
|
+
console.log('fire', appName);
|
|
2105
|
+
console.log('options', FIREBASE_OPTIONS);
|
|
2106
|
+
console.log('fire', getApp);
|
|
2107
|
+
try {
|
|
2108
|
+
return getApp(appName);
|
|
2109
|
+
}
|
|
2110
|
+
catch (error) {
|
|
2111
|
+
console.log('initializeApp', error instanceof Error && error.message);
|
|
2112
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2113
|
+
}
|
|
2114
|
+
}),
|
|
2115
|
+
AngularElasticSeachModule,
|
|
2116
|
+
AngularFirebaseAuthModule,
|
|
2117
|
+
AngularFirestoreModule,
|
|
2118
|
+
AngularHasuraGraphQLModule,
|
|
2119
|
+
],
|
|
2157
2120
|
providers: [
|
|
2158
2121
|
AuthService,
|
|
2159
2122
|
CartService,
|