@infrab4a/connect-angular 4.1.2-beta.16 → 4.1.2-beta.3
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 -35
- package/esm2020/angular-firebase-auth.module.mjs +27 -6
- package/esm2020/angular-firestore.module.mjs +27 -15
- package/fesm2015/infrab4a-connect-angular.mjs +73 -71
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +73 -71
- 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, getApp, 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$
|
|
9
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
10
|
+
import * as i1$2 from '@angular/fire/firestore';
|
|
11
11
|
import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
|
+
import { getApp as getApp$1, 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,31 @@ 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) || '[DEFAULT]';
|
|
121
|
+
try {
|
|
122
|
+
return getApp(appName);
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
126
|
+
}
|
|
127
|
+
}),
|
|
128
|
+
provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
119
129
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
130
|
type: NgModule,
|
|
121
131
|
args: [{
|
|
122
|
-
imports: [
|
|
132
|
+
imports: [
|
|
133
|
+
provideFirebaseApp((injector) => {
|
|
134
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
135
|
+
try {
|
|
136
|
+
return getApp(appName);
|
|
137
|
+
}
|
|
138
|
+
catch (error) {
|
|
139
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
140
|
+
}
|
|
141
|
+
}),
|
|
142
|
+
provideAuth((injector) => getAuth(injector.get(FirebaseApp))),
|
|
143
|
+
],
|
|
123
144
|
providers: [
|
|
124
145
|
{
|
|
125
146
|
provide: 'Authentication',
|
|
@@ -188,7 +209,7 @@ class AngularFirestoreModule {
|
|
|
188
209
|
}
|
|
189
210
|
}
|
|
190
211
|
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$
|
|
212
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
|
|
192
213
|
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
193
214
|
{
|
|
194
215
|
provide: 'FirestoreOptions',
|
|
@@ -388,34 +409,44 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
|
|
|
388
409
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
389
410
|
},
|
|
390
411
|
], imports: [AngularElasticSeachModule,
|
|
412
|
+
provideFirebaseApp((injector) => {
|
|
413
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
414
|
+
try {
|
|
415
|
+
return getApp$1(appName);
|
|
416
|
+
}
|
|
417
|
+
catch (error) {
|
|
418
|
+
return initializeApp$1(injector.get(FIREBASE_OPTIONS), appName);
|
|
419
|
+
}
|
|
420
|
+
}),
|
|
391
421
|
provideFirestore((injector) => {
|
|
392
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
393
|
-
if (isPlatformServer(platformId))
|
|
394
|
-
return getFirestore(injector.get(FirebaseApp));
|
|
395
422
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
396
423
|
return getFirestore(injector.get(FirebaseApp));
|
|
397
|
-
|
|
424
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
398
425
|
experimentalForceLongPolling: true,
|
|
399
426
|
localCache: memoryLocalCache(),
|
|
400
427
|
});
|
|
401
|
-
return firestore;
|
|
402
428
|
})] });
|
|
403
429
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
404
430
|
type: NgModule,
|
|
405
431
|
args: [{
|
|
406
432
|
imports: [
|
|
407
433
|
AngularElasticSeachModule,
|
|
434
|
+
provideFirebaseApp((injector) => {
|
|
435
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
436
|
+
try {
|
|
437
|
+
return getApp$1(appName);
|
|
438
|
+
}
|
|
439
|
+
catch (error) {
|
|
440
|
+
return initializeApp$1(injector.get(FIREBASE_OPTIONS), appName);
|
|
441
|
+
}
|
|
442
|
+
}),
|
|
408
443
|
provideFirestore((injector) => {
|
|
409
|
-
const platformId = injector.get(PLATFORM_ID);
|
|
410
|
-
if (isPlatformServer(platformId))
|
|
411
|
-
return getFirestore(injector.get(FirebaseApp));
|
|
412
444
|
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
413
445
|
return getFirestore(injector.get(FirebaseApp));
|
|
414
|
-
|
|
446
|
+
return initializeFirestore(injector.get(FirebaseApp), {
|
|
415
447
|
experimentalForceLongPolling: true,
|
|
416
448
|
localCache: memoryLocalCache(),
|
|
417
449
|
});
|
|
418
|
-
return firestore;
|
|
419
450
|
}),
|
|
420
451
|
],
|
|
421
452
|
providers: [
|
|
@@ -880,12 +911,12 @@ class AuthService {
|
|
|
880
911
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
881
912
|
}
|
|
882
913
|
}
|
|
883
|
-
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 });
|
|
914
|
+
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 });
|
|
884
915
|
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
885
916
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
886
917
|
type: Injectable
|
|
887
918
|
}], ctorParameters: function () {
|
|
888
|
-
return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
919
|
+
return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
|
|
889
920
|
type: Inject,
|
|
890
921
|
args: ['UserRepository']
|
|
891
922
|
}] }];
|
|
@@ -1117,7 +1148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1117
1148
|
return [{ type: undefined, decorators: [{
|
|
1118
1149
|
type: Inject,
|
|
1119
1150
|
args: ['CouponRepository']
|
|
1120
|
-
}] }, { type: i1$
|
|
1151
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1121
1152
|
type: Inject,
|
|
1122
1153
|
args: [DEFAULT_SHOP]
|
|
1123
1154
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1184,7 +1215,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1184
1215
|
}] }, { type: undefined, decorators: [{
|
|
1185
1216
|
type: Inject,
|
|
1186
1217
|
args: ['UserRepository']
|
|
1187
|
-
}] }, { type: i1$
|
|
1218
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1188
1219
|
type: Inject,
|
|
1189
1220
|
args: [DEFAULT_SHOP]
|
|
1190
1221
|
}] }];
|
|
@@ -1441,7 +1472,7 @@ CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version:
|
|
|
1441
1472
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1442
1473
|
type: Injectable
|
|
1443
1474
|
}], ctorParameters: function () {
|
|
1444
|
-
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$
|
|
1475
|
+
return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1445
1476
|
type: Inject,
|
|
1446
1477
|
args: [DEFAULT_SHOP]
|
|
1447
1478
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1453,7 +1484,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1453
1484
|
}] }, { type: undefined, decorators: [{
|
|
1454
1485
|
type: Inject,
|
|
1455
1486
|
args: ['VariantRepository']
|
|
1456
|
-
}] }, { type: i1$
|
|
1487
|
+
}] }, { type: i1$3.Buy2WinFirestoreRepository, decorators: [{
|
|
1457
1488
|
type: Inject,
|
|
1458
1489
|
args: ['Buy2WinRepository']
|
|
1459
1490
|
}] }];
|
|
@@ -1561,7 +1592,7 @@ class CatalogService {
|
|
|
1561
1592
|
});
|
|
1562
1593
|
}
|
|
1563
1594
|
}
|
|
1564
|
-
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$
|
|
1595
|
+
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 });
|
|
1565
1596
|
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1566
1597
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1567
1598
|
type: Injectable
|
|
@@ -1572,10 +1603,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1572
1603
|
}] }, { type: undefined, decorators: [{
|
|
1573
1604
|
type: Inject,
|
|
1574
1605
|
args: [CATEGORY_STRUCTURE]
|
|
1575
|
-
}] }, { type: i1$
|
|
1606
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1576
1607
|
type: Inject,
|
|
1577
1608
|
args: [DEFAULT_SHOP]
|
|
1578
|
-
}] }, { type: i1$
|
|
1609
|
+
}] }, { type: i1$3.ProductsIndex }];
|
|
1579
1610
|
} });
|
|
1580
1611
|
|
|
1581
1612
|
class CategoryService {
|
|
@@ -1624,7 +1655,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1624
1655
|
}] }, { type: undefined, decorators: [{
|
|
1625
1656
|
type: Inject,
|
|
1626
1657
|
args: [CATEGORY_STRUCTURE]
|
|
1627
|
-
}] }, { type: i1$
|
|
1658
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1628
1659
|
type: Inject,
|
|
1629
1660
|
args: [DEFAULT_SHOP]
|
|
1630
1661
|
}] }];
|
|
@@ -1807,7 +1838,7 @@ class WishlistService {
|
|
|
1807
1838
|
});
|
|
1808
1839
|
}
|
|
1809
1840
|
}
|
|
1810
|
-
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$
|
|
1841
|
+
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 });
|
|
1811
1842
|
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1812
1843
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1813
1844
|
type: Injectable
|
|
@@ -1815,7 +1846,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1815
1846
|
return [{ type: undefined, decorators: [{
|
|
1816
1847
|
type: Inject,
|
|
1817
1848
|
args: ['WishlistRepository']
|
|
1818
|
-
}] }, { type: i1$
|
|
1849
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
1819
1850
|
type: Inject,
|
|
1820
1851
|
args: [DEFAULT_SHOP]
|
|
1821
1852
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1824,7 +1855,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1824
1855
|
}] }, { type: undefined, decorators: [{
|
|
1825
1856
|
type: Inject,
|
|
1826
1857
|
args: ['CategoryFilterRepository']
|
|
1827
|
-
}] }, { type: i1$
|
|
1858
|
+
}] }, { type: i1$3.ProductsIndex }];
|
|
1828
1859
|
} });
|
|
1829
1860
|
|
|
1830
1861
|
class CheckoutSubscriptionService {
|
|
@@ -1997,7 +2028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1997
2028
|
}] }, { type: undefined, decorators: [{
|
|
1998
2029
|
type: Inject,
|
|
1999
2030
|
args: ['ProductRepository']
|
|
2000
|
-
}] }, { type: i1$
|
|
2031
|
+
}] }, { type: i1$3.Shops, decorators: [{
|
|
2001
2032
|
type: Inject,
|
|
2002
2033
|
args: [DEFAULT_SHOP]
|
|
2003
2034
|
}] }];
|
|
@@ -2016,12 +2047,12 @@ class OrderService {
|
|
|
2016
2047
|
return this.orderSubject;
|
|
2017
2048
|
}
|
|
2018
2049
|
}
|
|
2019
|
-
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$
|
|
2050
|
+
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 });
|
|
2020
2051
|
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2021
2052
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2022
2053
|
type: Injectable
|
|
2023
2054
|
}], ctorParameters: function () {
|
|
2024
|
-
return [{ type: i1$
|
|
2055
|
+
return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
2025
2056
|
type: Inject,
|
|
2026
2057
|
args: ['OrderRepository']
|
|
2027
2058
|
}] }];
|
|
@@ -2104,12 +2135,12 @@ class ShippingService {
|
|
|
2104
2135
|
return false;
|
|
2105
2136
|
}
|
|
2106
2137
|
}
|
|
2107
|
-
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$
|
|
2138
|
+
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 });
|
|
2108
2139
|
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2109
2140
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2110
2141
|
type: Injectable
|
|
2111
2142
|
}], ctorParameters: function () {
|
|
2112
|
-
return [{ type: i1$
|
|
2143
|
+
return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2113
2144
|
type: Inject,
|
|
2114
2145
|
args: [BACKEND_URL]
|
|
2115
2146
|
}] }, { type: HomeShopService }];
|
|
@@ -2137,10 +2168,7 @@ class AngularConnectModule {
|
|
|
2137
2168
|
}
|
|
2138
2169
|
}
|
|
2139
2170
|
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2140
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [
|
|
2141
|
-
AngularFirebaseAuthModule,
|
|
2142
|
-
AngularFirestoreModule,
|
|
2143
|
-
AngularHasuraGraphQLModule] });
|
|
2171
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2144
2172
|
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2145
2173
|
AuthService,
|
|
2146
2174
|
CartService,
|
|
@@ -2153,37 +2181,11 @@ AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2153
2181
|
OrderService,
|
|
2154
2182
|
ShippingService,
|
|
2155
2183
|
WishlistService,
|
|
2156
|
-
], imports: [
|
|
2157
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2158
|
-
try {
|
|
2159
|
-
return getApp(appName);
|
|
2160
|
-
}
|
|
2161
|
-
catch (error) {
|
|
2162
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2163
|
-
}
|
|
2164
|
-
}),
|
|
2165
|
-
AngularElasticSeachModule,
|
|
2166
|
-
AngularFirebaseAuthModule,
|
|
2167
|
-
AngularFirestoreModule,
|
|
2168
|
-
AngularHasuraGraphQLModule] });
|
|
2184
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2169
2185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2170
2186
|
type: NgModule,
|
|
2171
2187
|
args: [{
|
|
2172
|
-
imports: [
|
|
2173
|
-
provideFirebaseApp((injector) => {
|
|
2174
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2175
|
-
try {
|
|
2176
|
-
return getApp(appName);
|
|
2177
|
-
}
|
|
2178
|
-
catch (error) {
|
|
2179
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2180
|
-
}
|
|
2181
|
-
}),
|
|
2182
|
-
AngularElasticSeachModule,
|
|
2183
|
-
AngularFirebaseAuthModule,
|
|
2184
|
-
AngularFirestoreModule,
|
|
2185
|
-
AngularHasuraGraphQLModule,
|
|
2186
|
-
],
|
|
2188
|
+
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2187
2189
|
providers: [
|
|
2188
2190
|
AuthService,
|
|
2189
2191
|
CartService,
|