@infrab4a/connect-angular 4.3.0-beta.8 → 4.3.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 +1 -0
- package/angular-firestore.module.d.ts +2 -1
- package/consts/storage-base-url.const.d.ts +1 -0
- package/esm2020/angular-connect.module.mjs +113 -0
- package/esm2020/angular-elastic-search.module.mjs +34 -0
- package/esm2020/angular-firebase-auth.module.mjs +115 -0
- package/esm2020/angular-firestore.module.mjs +502 -0
- package/esm2020/angular-hasura-graphql.module.mjs +265 -0
- package/esm2020/consts/storage-base-url.const.mjs +2 -0
- package/{esm2022 → esm2020}/services/auth.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/cart.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/adapters/new-category-structure.adapter.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/category.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/catalog/models/category-with-tree.model.mjs +1 -1
- package/{esm2022 → esm2020}/services/catalog/wishlist.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/checkout.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/coupon.service.mjs +6 -6
- package/esm2020/services/home-shop.service.mjs +125 -0
- package/{esm2022 → esm2020}/services/order.service.mjs +6 -6
- package/{esm2022 → esm2020}/services/shipping.service.mjs +6 -6
- package/fesm2015/infrab4a-connect-angular.mjs +2357 -0
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +560 -514
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +14 -8
- package/services/home-shop.service.d.ts +1 -0
- package/esm2022/angular-connect.module.mjs +0 -97
- package/esm2022/angular-elastic-search.module.mjs +0 -34
- package/esm2022/angular-firebase-auth.module.mjs +0 -115
- package/esm2022/angular-firestore.module.mjs +0 -483
- package/esm2022/angular-hasura-graphql.module.mjs +0 -265
- package/esm2022/services/home-shop.service.mjs +0 -114
- package/fesm2022/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2022 → esm2020}/consts/backend-url.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/category-structure.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/default-shop.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/es-config.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/firebase-const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/hasura-options.const.mjs +0 -0
- /package/{esm2022 → esm2020}/consts/index.mjs +0 -0
- /package/{esm2022 → esm2020}/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
- /package/{esm2022 → esm2020}/index.mjs +0 -0
- /package/{esm2022 → esm2020}/infrab4a-connect-angular.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/adapters/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/enums/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/enums/product-sorts.enum.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/models/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/catalog/types/product-sort.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/helpers/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/helpers/util.helper.mjs +0 -0
- /package/{esm2022 → esm2020}/services/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/index.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/required-checkout-data.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/required-checkout-subscription-data.type.mjs +0 -0
- /package/{esm2022 → esm2020}/services/types/shipping-methods.type.mjs +0 -0
- /package/{esm2022 → esm2020}/types/firebase-app-config.type.mjs +0 -0
- /package/{esm2022 → esm2020}/types/index.mjs +0 -0
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
3
|
import * as i1$4 from '@angular/fire/app';
|
|
4
|
-
import { FirebaseApp, getApp, initializeApp
|
|
4
|
+
import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
|
|
5
5
|
import * as i1$2 from '@infrab4a/connect';
|
|
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, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewsHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, Wishlist, CheckoutSubscription, Product, RequiredArgumentError, add, Order } from '@infrab4a/connect';
|
|
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, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, FirebaseFileUploaderService, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewsHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, Where, Shops, CheckoutTypes, CouponTypes, Exclusivities, isNil, NotFoundError, Checkout, pick, LineItem, RoundProductPricesHelper, set, InvalidArgumentError, Category, Wishlist, CheckoutSubscription, Product, RequiredArgumentError, add, Order, UpdateUserImage } from '@infrab4a/connect';
|
|
7
7
|
import * as i1 from '@angular/fire/auth';
|
|
8
|
-
import { Auth,
|
|
8
|
+
import { Auth, provideAuth, getAuth, getIdToken, authState } from '@angular/fire/auth';
|
|
9
9
|
import { isPlatformBrowser, isPlatformServer } from '@angular/common';
|
|
10
10
|
import * as i1$1 from '@angular/fire/firestore';
|
|
11
|
-
import { Firestore,
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
11
|
+
import { Firestore, provideFirestore, getFirestore, initializeFirestore, memoryLocalCache, docSnapshots, doc } from '@angular/fire/firestore';
|
|
12
|
+
import * as i2 from '@angular/fire/storage';
|
|
13
|
+
import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
|
|
14
|
+
import { combineLatest, from, of, throwError, Subject, iif, forkJoin } from 'rxjs';
|
|
15
|
+
import { map, mergeMap, catchError, concatMap, tap } from 'rxjs/operators';
|
|
14
16
|
import cookie from 'js-cookie';
|
|
15
|
-
import {
|
|
17
|
+
import { __decorate, __metadata } from 'tslib';
|
|
16
18
|
import { Type } from 'class-transformer';
|
|
17
19
|
import * as i1$3 from '@angular/common/http';
|
|
18
20
|
|
|
@@ -25,17 +27,17 @@ class AngularElasticSeachModule {
|
|
|
25
27
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
29
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
30
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
31
|
-
{
|
|
32
|
-
provide: ProductsIndex,
|
|
33
|
-
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
34
|
-
deps: [ES_CONFIG],
|
|
35
|
-
},
|
|
36
|
-
] }); }
|
|
37
30
|
}
|
|
38
|
-
i0.ɵɵ
|
|
31
|
+
AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
32
|
+
AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
|
|
33
|
+
AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
34
|
+
{
|
|
35
|
+
provide: ProductsIndex,
|
|
36
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
37
|
+
deps: [ES_CONFIG],
|
|
38
|
+
},
|
|
39
|
+
] });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
39
41
|
type: NgModule,
|
|
40
42
|
args: [{
|
|
41
43
|
providers: [
|
|
@@ -69,54 +71,54 @@ class AngularFirebaseAuthModule {
|
|
|
69
71
|
],
|
|
70
72
|
};
|
|
71
73
|
}
|
|
72
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
73
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] }); }
|
|
74
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
75
|
-
{
|
|
76
|
-
provide: 'Authentication',
|
|
77
|
-
useFactory: (authenticationService, userRepository) => {
|
|
78
|
-
return new Authentication(authenticationService, userRepository);
|
|
79
|
-
},
|
|
80
|
-
deps: ['AuthenticationService', 'UserRepository'],
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
provide: 'AuthenticationService',
|
|
84
|
-
useFactory: (angularFireAuth) => {
|
|
85
|
-
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
86
|
-
},
|
|
87
|
-
deps: [Auth],
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
provide: 'Register',
|
|
91
|
-
useFactory: (registerService, userRepository) => {
|
|
92
|
-
return new Register(registerService, userRepository);
|
|
93
|
-
},
|
|
94
|
-
deps: ['RegisterService', 'UserRepository'],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
provide: 'RegisterService',
|
|
98
|
-
useFactory: (angularFireAuth) => {
|
|
99
|
-
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
100
|
-
},
|
|
101
|
-
deps: [Auth],
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
provide: 'SignOut',
|
|
105
|
-
useFactory: (authenticationService) => {
|
|
106
|
-
return new SignOut(authenticationService);
|
|
107
|
-
},
|
|
108
|
-
deps: ['AuthenticationService'],
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
provide: 'RecoveryPassword',
|
|
112
|
-
useFactory: (authenticationService) => {
|
|
113
|
-
return new RecoveryPassword(authenticationService);
|
|
114
|
-
},
|
|
115
|
-
deps: ['AuthenticationService'],
|
|
116
|
-
},
|
|
117
|
-
], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] }); }
|
|
118
74
|
}
|
|
119
|
-
i0.ɵɵ
|
|
75
|
+
AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
76
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.AuthModule] });
|
|
77
|
+
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
78
|
+
{
|
|
79
|
+
provide: 'Authentication',
|
|
80
|
+
useFactory: (authenticationService, userRepository) => {
|
|
81
|
+
return new Authentication(authenticationService, userRepository);
|
|
82
|
+
},
|
|
83
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
provide: 'AuthenticationService',
|
|
87
|
+
useFactory: (angularFireAuth) => {
|
|
88
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
89
|
+
},
|
|
90
|
+
deps: [Auth],
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
provide: 'Register',
|
|
94
|
+
useFactory: (registerService, userRepository) => {
|
|
95
|
+
return new Register(registerService, userRepository);
|
|
96
|
+
},
|
|
97
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
provide: 'RegisterService',
|
|
101
|
+
useFactory: (angularFireAuth) => {
|
|
102
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
103
|
+
},
|
|
104
|
+
deps: [Auth],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
provide: 'SignOut',
|
|
108
|
+
useFactory: (authenticationService) => {
|
|
109
|
+
return new SignOut(authenticationService);
|
|
110
|
+
},
|
|
111
|
+
deps: ['AuthenticationService'],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
provide: 'RecoveryPassword',
|
|
115
|
+
useFactory: (authenticationService) => {
|
|
116
|
+
return new RecoveryPassword(authenticationService);
|
|
117
|
+
},
|
|
118
|
+
deps: ['AuthenticationService'],
|
|
119
|
+
},
|
|
120
|
+
], imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))] });
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
120
122
|
type: NgModule,
|
|
121
123
|
args: [{
|
|
122
124
|
imports: [provideAuth((injector) => getAuth(injector.get(FirebaseApp)))],
|
|
@@ -167,6 +169,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
167
169
|
}]
|
|
168
170
|
}] });
|
|
169
171
|
|
|
172
|
+
const STORAGE_BASE_URL = 'STORAGE_BASE_URL';
|
|
173
|
+
|
|
170
174
|
class MobileOperationSystemCheckerHelper {
|
|
171
175
|
static isAppleDevice() {
|
|
172
176
|
return (['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator?.platform) ||
|
|
@@ -185,235 +189,243 @@ class AngularFirestoreModule {
|
|
|
185
189
|
],
|
|
186
190
|
};
|
|
187
191
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
const interval = setInterval(() => { }, 100);
|
|
200
|
-
request.interval = interval;
|
|
192
|
+
}
|
|
193
|
+
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
194
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1$1.FirestoreModule, i2.StorageModule] });
|
|
195
|
+
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
196
|
+
{
|
|
197
|
+
provide: 'FirestoreOptions',
|
|
198
|
+
useFactory: (firestore, platformId) => ({
|
|
199
|
+
firestore,
|
|
200
|
+
interceptors: {
|
|
201
|
+
request: (request) => {
|
|
202
|
+
if (isPlatformBrowser(platformId))
|
|
201
203
|
return request;
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
const interval = setInterval(() => { }, 100);
|
|
205
|
+
request.interval = interval;
|
|
206
|
+
return request;
|
|
207
|
+
},
|
|
208
|
+
response: (response, request) => {
|
|
209
|
+
if (isPlatformBrowser(platformId))
|
|
207
210
|
return response;
|
|
208
|
-
|
|
211
|
+
clearInterval(request.interval);
|
|
212
|
+
return response;
|
|
209
213
|
},
|
|
210
|
-
}),
|
|
211
|
-
deps: [Firestore, PLATFORM_ID],
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
provide: 'BeautyProfileRepository',
|
|
215
|
-
useFactory: (config, userRepository) => {
|
|
216
|
-
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
217
|
-
},
|
|
218
|
-
deps: ['FirestoreOptions', 'UserRepository'],
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
provide: 'Buy2WinRepository',
|
|
222
|
-
useFactory: (options) => {
|
|
223
|
-
return new Buy2WinFirestoreRepository(options);
|
|
224
|
-
},
|
|
225
|
-
deps: ['FirestoreOptions'],
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
provide: CategoryFirestoreRepository,
|
|
229
|
-
useFactory: (options) => {
|
|
230
|
-
return new CategoryFirestoreRepository(options);
|
|
231
|
-
},
|
|
232
|
-
deps: ['FirestoreOptions'],
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
provide: 'CheckoutRepository',
|
|
236
|
-
useFactory: (options) => {
|
|
237
|
-
return new CheckoutFirestoreRepository(options);
|
|
238
|
-
},
|
|
239
|
-
deps: ['FirestoreOptions'],
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
provide: 'CheckoutSubscriptionRepository',
|
|
243
|
-
useFactory: (options) => {
|
|
244
|
-
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
245
|
-
},
|
|
246
|
-
deps: ['FirestoreOptions'],
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
provide: 'CouponRepository',
|
|
250
|
-
useFactory: (options) => {
|
|
251
|
-
return new CouponFirestoreRepository(options);
|
|
252
|
-
},
|
|
253
|
-
deps: ['FirestoreOptions'],
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
provide: 'CampaignHashtagRepository',
|
|
257
|
-
useFactory: (options) => {
|
|
258
|
-
return new CampaignHashtagFirestoreRepository(options);
|
|
259
|
-
},
|
|
260
|
-
deps: ['FirestoreOptions'],
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
provide: 'CampaignDashboardRepository',
|
|
264
|
-
useFactory: (options) => {
|
|
265
|
-
return new CampaignDashboardFirestoreRepository(options);
|
|
266
|
-
},
|
|
267
|
-
deps: ['FirestoreOptions'],
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
provide: 'EditionRepository',
|
|
271
|
-
useFactory: (options, subscriptionRepository) => {
|
|
272
|
-
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
273
|
-
},
|
|
274
|
-
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
provide: 'HomeRepository',
|
|
278
|
-
useFactory: (options) => {
|
|
279
|
-
return new HomeFirestoreRepository(options);
|
|
280
|
-
},
|
|
281
|
-
deps: ['FirestoreOptions'],
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
provide: 'LeadRepository',
|
|
285
|
-
useFactory: (options) => {
|
|
286
|
-
return new LeadFirestoreRepository(options);
|
|
287
|
-
},
|
|
288
|
-
deps: ['FirestoreOptions'],
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
provide: 'LegacyOrderRepository',
|
|
292
|
-
useFactory: (options) => {
|
|
293
|
-
return new LegacyOrderFirestoreRepository(options);
|
|
294
|
-
},
|
|
295
|
-
deps: ['FirestoreOptions'],
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
provide: 'ShopMenuRepository',
|
|
299
|
-
useFactory: (options) => {
|
|
300
|
-
return new ShopMenuFirestoreRepository(options);
|
|
301
|
-
},
|
|
302
|
-
deps: ['FirestoreOptions'],
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
provide: 'OrderRepository',
|
|
306
|
-
useFactory: (options) => {
|
|
307
|
-
return new OrderFirestoreRepository(options);
|
|
308
|
-
},
|
|
309
|
-
deps: ['FirestoreOptions'],
|
|
310
|
-
},
|
|
311
|
-
{
|
|
312
|
-
provide: 'PaymentRepository',
|
|
313
|
-
useFactory: (options) => {
|
|
314
|
-
return new PaymentFirestoreRepository(options);
|
|
315
|
-
},
|
|
316
|
-
deps: ['FirestoreOptions'],
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
provide: ProductFirestoreRepository,
|
|
320
|
-
useFactory: (options) => {
|
|
321
|
-
return new ProductFirestoreRepository(options);
|
|
322
|
-
},
|
|
323
|
-
deps: ['FirestoreOptions'],
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
provide: 'ShopSettingsRepository',
|
|
327
|
-
useFactory: (options) => {
|
|
328
|
-
return new ShopSettingsFirestoreRepository(options);
|
|
329
|
-
},
|
|
330
|
-
deps: ['FirestoreOptions'],
|
|
331
|
-
},
|
|
332
|
-
{
|
|
333
|
-
provide: 'SubscriptionPaymentRepository',
|
|
334
|
-
useFactory: (options, subscriptionRepository) => {
|
|
335
|
-
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
336
|
-
},
|
|
337
|
-
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
provide: 'SubscriptionPlanRepository',
|
|
341
|
-
useFactory: (options) => {
|
|
342
|
-
return new SubscriptionPlanFirestoreRepository(options);
|
|
343
|
-
},
|
|
344
|
-
deps: ['FirestoreOptions'],
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
provide: 'SubscriptionProductRepository',
|
|
348
|
-
useFactory: (options) => {
|
|
349
|
-
return new SubscriptionProductFirestoreRepository(options);
|
|
350
|
-
},
|
|
351
|
-
deps: ['FirestoreOptions'],
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
provide: 'SubscriptionRepository',
|
|
355
|
-
useFactory: (options) => {
|
|
356
|
-
return new SubscriptionFirestoreRepository(options);
|
|
357
|
-
},
|
|
358
|
-
deps: ['FirestoreOptions'],
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
provide: 'UserRepository',
|
|
362
|
-
useFactory: (options) => {
|
|
363
|
-
return new UserFirestoreRepository(options);
|
|
364
214
|
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
return
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
|
|
215
|
+
}),
|
|
216
|
+
deps: [Firestore, PLATFORM_ID],
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
provide: 'BeautyProfileRepository',
|
|
220
|
+
useFactory: (config, userRepository) => {
|
|
221
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
222
|
+
},
|
|
223
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
provide: 'Buy2WinRepository',
|
|
227
|
+
useFactory: (options) => {
|
|
228
|
+
return new Buy2WinFirestoreRepository(options);
|
|
229
|
+
},
|
|
230
|
+
deps: ['FirestoreOptions'],
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
provide: CategoryFirestoreRepository,
|
|
234
|
+
useFactory: (options) => {
|
|
235
|
+
return new CategoryFirestoreRepository(options);
|
|
236
|
+
},
|
|
237
|
+
deps: ['FirestoreOptions'],
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
provide: 'CheckoutRepository',
|
|
241
|
+
useFactory: (options) => {
|
|
242
|
+
return new CheckoutFirestoreRepository(options);
|
|
243
|
+
},
|
|
244
|
+
deps: ['FirestoreOptions'],
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
248
|
+
useFactory: (options) => {
|
|
249
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
250
|
+
},
|
|
251
|
+
deps: ['FirestoreOptions'],
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
provide: 'CouponRepository',
|
|
255
|
+
useFactory: (options) => {
|
|
256
|
+
return new CouponFirestoreRepository(options);
|
|
257
|
+
},
|
|
258
|
+
deps: ['FirestoreOptions'],
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
provide: 'CampaignHashtagRepository',
|
|
262
|
+
useFactory: (options) => {
|
|
263
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
264
|
+
},
|
|
265
|
+
deps: ['FirestoreOptions'],
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
provide: 'CampaignDashboardRepository',
|
|
269
|
+
useFactory: (options) => {
|
|
270
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
271
|
+
},
|
|
272
|
+
deps: ['FirestoreOptions'],
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
provide: 'EditionRepository',
|
|
276
|
+
useFactory: (options, subscriptionRepository) => {
|
|
277
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
278
|
+
},
|
|
279
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
provide: 'HomeRepository',
|
|
283
|
+
useFactory: (options) => {
|
|
284
|
+
return new HomeFirestoreRepository(options);
|
|
285
|
+
},
|
|
286
|
+
deps: ['FirestoreOptions'],
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
provide: 'LeadRepository',
|
|
290
|
+
useFactory: (options) => {
|
|
291
|
+
return new LeadFirestoreRepository(options);
|
|
292
|
+
},
|
|
293
|
+
deps: ['FirestoreOptions'],
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
provide: 'LegacyOrderRepository',
|
|
297
|
+
useFactory: (options) => {
|
|
298
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
299
|
+
},
|
|
300
|
+
deps: ['FirestoreOptions'],
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
provide: 'ShopMenuRepository',
|
|
304
|
+
useFactory: (options) => {
|
|
305
|
+
return new ShopMenuFirestoreRepository(options);
|
|
306
|
+
},
|
|
307
|
+
deps: ['FirestoreOptions'],
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
provide: 'OrderRepository',
|
|
311
|
+
useFactory: (options) => {
|
|
312
|
+
return new OrderFirestoreRepository(options);
|
|
313
|
+
},
|
|
314
|
+
deps: ['FirestoreOptions'],
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
provide: 'PaymentRepository',
|
|
318
|
+
useFactory: (options) => {
|
|
319
|
+
return new PaymentFirestoreRepository(options);
|
|
320
|
+
},
|
|
321
|
+
deps: ['FirestoreOptions'],
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
provide: ProductFirestoreRepository,
|
|
325
|
+
useFactory: (options) => {
|
|
326
|
+
return new ProductFirestoreRepository(options);
|
|
327
|
+
},
|
|
328
|
+
deps: ['FirestoreOptions'],
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
provide: 'ShopSettingsRepository',
|
|
332
|
+
useFactory: (options) => {
|
|
333
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
334
|
+
},
|
|
335
|
+
deps: ['FirestoreOptions'],
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
provide: 'SubscriptionPaymentRepository',
|
|
339
|
+
useFactory: (options, subscriptionRepository) => {
|
|
340
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
341
|
+
},
|
|
342
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
provide: 'SubscriptionPlanRepository',
|
|
346
|
+
useFactory: (options) => {
|
|
347
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
348
|
+
},
|
|
349
|
+
deps: ['FirestoreOptions'],
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
provide: 'SubscriptionProductRepository',
|
|
353
|
+
useFactory: (options) => {
|
|
354
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
355
|
+
},
|
|
356
|
+
deps: ['FirestoreOptions'],
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
provide: 'SubscriptionRepository',
|
|
360
|
+
useFactory: (options) => {
|
|
361
|
+
return new SubscriptionFirestoreRepository(options);
|
|
362
|
+
},
|
|
363
|
+
deps: ['FirestoreOptions'],
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
provide: 'UserRepository',
|
|
367
|
+
useFactory: (options) => {
|
|
368
|
+
return new UserFirestoreRepository(options);
|
|
369
|
+
},
|
|
370
|
+
deps: ['FirestoreOptions'],
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
provide: 'UserAddressRepository',
|
|
374
|
+
useFactory: (options, userRepository) => {
|
|
375
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
376
|
+
},
|
|
377
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
provide: 'UserPaymentMethodRepository',
|
|
381
|
+
useFactory: (options, userRepository) => {
|
|
382
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
383
|
+
},
|
|
384
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
provide: 'SubscriptionMaterializationRepository',
|
|
388
|
+
useFactory: (options) => {
|
|
389
|
+
return new SubscriptionMaterializationFirestoreRepository(options);
|
|
390
|
+
},
|
|
391
|
+
deps: ['FirestoreOptions'],
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
provide: 'SubscriptionSummaryRepository',
|
|
395
|
+
useFactory: (options) => {
|
|
396
|
+
return new SubscriptionSummaryFirestoreRepository(options);
|
|
397
|
+
},
|
|
398
|
+
deps: ['FirestoreOptions'],
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
provide: ProductVariantFirestoreRepository,
|
|
402
|
+
useFactory: (options, productRepository) => {
|
|
403
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
404
|
+
},
|
|
405
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
provide: 'FileUploaderService',
|
|
409
|
+
useFactory: (storage, baseUrl) => {
|
|
410
|
+
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
411
|
+
},
|
|
412
|
+
deps: [Storage, STORAGE_BASE_URL],
|
|
413
|
+
},
|
|
414
|
+
], imports: [AngularElasticSeachModule,
|
|
415
|
+
provideFirestore((injector) => {
|
|
416
|
+
const platformId = injector.get(PLATFORM_ID);
|
|
417
|
+
if (isPlatformServer(platformId))
|
|
418
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
419
|
+
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
420
|
+
return getFirestore(injector.get(FirebaseApp));
|
|
421
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), {
|
|
422
|
+
experimentalForceLongPolling: true,
|
|
423
|
+
localCache: memoryLocalCache(),
|
|
424
|
+
});
|
|
425
|
+
return firestore;
|
|
426
|
+
}),
|
|
427
|
+
provideStorage(() => getStorage())] });
|
|
428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
417
429
|
type: NgModule,
|
|
418
430
|
args: [{
|
|
419
431
|
imports: [
|
|
@@ -430,6 +442,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
430
442
|
});
|
|
431
443
|
return firestore;
|
|
432
444
|
}),
|
|
445
|
+
provideStorage(() => getStorage()),
|
|
433
446
|
],
|
|
434
447
|
providers: [
|
|
435
448
|
{
|
|
@@ -643,6 +656,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
643
656
|
},
|
|
644
657
|
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
645
658
|
},
|
|
659
|
+
{
|
|
660
|
+
provide: 'FileUploaderService',
|
|
661
|
+
useFactory: (storage, baseUrl) => {
|
|
662
|
+
return new FirebaseFileUploaderService(storage, baseUrl);
|
|
663
|
+
},
|
|
664
|
+
deps: [Storage, STORAGE_BASE_URL],
|
|
665
|
+
},
|
|
646
666
|
],
|
|
647
667
|
}]
|
|
648
668
|
}] });
|
|
@@ -654,132 +674,132 @@ class AngularHasuraGraphQLModule {
|
|
|
654
674
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
655
675
|
};
|
|
656
676
|
}
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
const interval = setInterval(() => { }, 100);
|
|
670
|
-
request.interval = interval;
|
|
677
|
+
}
|
|
678
|
+
AngularHasuraGraphQLModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
679
|
+
AngularHasuraGraphQLModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
|
|
680
|
+
AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
681
|
+
{
|
|
682
|
+
provide: 'HasuraConfig',
|
|
683
|
+
useFactory: (options, platformId) => ({
|
|
684
|
+
endpoint: options.endpoint,
|
|
685
|
+
authOptions: options.credentials,
|
|
686
|
+
interceptors: {
|
|
687
|
+
request: (request) => {
|
|
688
|
+
if (isPlatformBrowser(platformId))
|
|
671
689
|
return request;
|
|
672
|
-
},
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
690
|
+
const interval = setInterval(() => { }, 100);
|
|
691
|
+
request.interval = interval;
|
|
692
|
+
return request;
|
|
693
|
+
},
|
|
694
|
+
response: (response, request) => {
|
|
695
|
+
if (isPlatformBrowser(platformId))
|
|
677
696
|
return response;
|
|
678
|
-
|
|
697
|
+
clearInterval(request.interval);
|
|
698
|
+
return response;
|
|
679
699
|
},
|
|
680
|
-
}),
|
|
681
|
-
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
provide: 'CategoryRepository',
|
|
685
|
-
useExisting: CategoryHasuraGraphQLRepository,
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
provide: CategoryHasuraGraphQLRepository,
|
|
689
|
-
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
690
|
-
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
691
|
-
},
|
|
692
|
-
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
provide: 'ProductRepository',
|
|
696
|
-
useExisting: ProductHasuraGraphQLRepository,
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
provide: ProductHasuraGraphQLRepository,
|
|
700
|
-
useFactory: (hasuraConfig) => {
|
|
701
|
-
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
702
|
-
},
|
|
703
|
-
deps: ['HasuraConfig'],
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
provide: 'ProductReviewsRepository',
|
|
707
|
-
useExisting: ProductReviewsHasuraGraphQLRepository,
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
provide: ProductReviewsHasuraGraphQLRepository,
|
|
711
|
-
useFactory: (hasuraConfig) => {
|
|
712
|
-
return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
|
|
713
700
|
},
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
701
|
+
}),
|
|
702
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
provide: 'CategoryRepository',
|
|
706
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
707
|
+
},
|
|
708
|
+
{
|
|
709
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
710
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
711
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
712
|
+
},
|
|
713
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
provide: 'ProductRepository',
|
|
717
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
provide: ProductHasuraGraphQLRepository,
|
|
721
|
+
useFactory: (hasuraConfig) => {
|
|
722
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
723
|
+
},
|
|
724
|
+
deps: ['HasuraConfig'],
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
provide: 'ProductReviewsRepository',
|
|
728
|
+
useExisting: ProductReviewsHasuraGraphQLRepository,
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
provide: ProductReviewsHasuraGraphQLRepository,
|
|
732
|
+
useFactory: (hasuraConfig) => {
|
|
733
|
+
return new ProductReviewsHasuraGraphQLRepository(hasuraConfig);
|
|
734
|
+
},
|
|
735
|
+
deps: ['HasuraConfig'],
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
provide: 'VariantRepository',
|
|
739
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
provide: VariantHasuraGraphQLRepository,
|
|
743
|
+
useFactory: (hasuraConfig) => {
|
|
744
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
745
|
+
},
|
|
746
|
+
deps: ['HasuraConfig'],
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
provide: 'CategoryFilterRepository',
|
|
750
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
754
|
+
useFactory: (options) => {
|
|
755
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
756
|
+
},
|
|
757
|
+
deps: ['HasuraConfig'],
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
provide: 'FilterOptionRepository',
|
|
761
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
765
|
+
useFactory: (options) => {
|
|
766
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
767
|
+
},
|
|
768
|
+
deps: ['HasuraConfig'],
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
provide: 'FilterRepository',
|
|
772
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
provide: FilterHasuraGraphQLRepository,
|
|
776
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
777
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
778
|
+
},
|
|
779
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
783
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
784
|
+
deps: ['HasuraConfig'],
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
788
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
792
|
+
useFactory: (options, categoryFilterRepository) => {
|
|
793
|
+
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
794
|
+
},
|
|
795
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
provide: 'WishlistRepository',
|
|
799
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
800
|
+
},
|
|
801
|
+
] });
|
|
802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
783
803
|
type: NgModule,
|
|
784
804
|
args: [{
|
|
785
805
|
providers: [
|
|
@@ -928,15 +948,15 @@ class AuthService {
|
|
|
928
948
|
getFireUser() {
|
|
929
949
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
930
950
|
}
|
|
931
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
932
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AuthService }); }
|
|
933
951
|
}
|
|
934
|
-
i0.ɵɵ
|
|
952
|
+
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 });
|
|
953
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
954
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
935
955
|
type: Injectable
|
|
936
|
-
}], ctorParameters: ()
|
|
956
|
+
}], ctorParameters: function () { return [{ type: i1.Auth }, { type: undefined, decorators: [{
|
|
937
957
|
type: Inject,
|
|
938
958
|
args: ['UserRepository']
|
|
939
|
-
}] }] });
|
|
959
|
+
}] }]; } });
|
|
940
960
|
|
|
941
961
|
class CouponService {
|
|
942
962
|
constructor(couponRepository, defaultShop, orderRepository, categoryRepository) {
|
|
@@ -1127,15 +1147,15 @@ class CouponService {
|
|
|
1127
1147
|
}
|
|
1128
1148
|
return couponUseLimits;
|
|
1129
1149
|
}
|
|
1130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1131
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
1132
1150
|
}
|
|
1133
|
-
i0.ɵɵ
|
|
1151
|
+
CouponService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1152
|
+
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
1153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
1134
1154
|
type: Injectable,
|
|
1135
1155
|
args: [{
|
|
1136
1156
|
providedIn: 'root',
|
|
1137
1157
|
}]
|
|
1138
|
-
}], ctorParameters: ()
|
|
1158
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1139
1159
|
type: Inject,
|
|
1140
1160
|
args: ['CouponRepository']
|
|
1141
1161
|
}] }, { type: i1$2.Shops, decorators: [{
|
|
@@ -1147,7 +1167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
1147
1167
|
}] }, { type: undefined, decorators: [{
|
|
1148
1168
|
type: Inject,
|
|
1149
1169
|
args: ['CategoryRepository']
|
|
1150
|
-
}] }] });
|
|
1170
|
+
}] }]; } });
|
|
1151
1171
|
|
|
1152
1172
|
class CheckoutService {
|
|
1153
1173
|
constructor(couponService, checkoutRepository, orderRepository, userRepository, defaultShop) {
|
|
@@ -1191,12 +1211,12 @@ class CheckoutService {
|
|
|
1191
1211
|
cookie.set('checkoutId', checkout.id);
|
|
1192
1212
|
return checkout;
|
|
1193
1213
|
}
|
|
1194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1195
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutService }); }
|
|
1196
1214
|
}
|
|
1197
|
-
i0.ɵɵ
|
|
1215
|
+
CheckoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1216
|
+
CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
|
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1198
1218
|
type: Injectable
|
|
1199
|
-
}], ctorParameters: ()
|
|
1219
|
+
}], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
|
|
1200
1220
|
type: Inject,
|
|
1201
1221
|
args: ['CheckoutRepository']
|
|
1202
1222
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1208,7 +1228,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
1208
1228
|
}] }, { type: i1$2.Shops, decorators: [{
|
|
1209
1229
|
type: Inject,
|
|
1210
1230
|
args: [DEFAULT_SHOP]
|
|
1211
|
-
}] }] });
|
|
1231
|
+
}] }]; } });
|
|
1212
1232
|
|
|
1213
1233
|
class CartService {
|
|
1214
1234
|
constructor(authService, checkoutService, defaultShop, productRepository, categoryRepository, variantRepository, buy2WinRepository) {
|
|
@@ -1458,12 +1478,12 @@ class CartService {
|
|
|
1458
1478
|
});
|
|
1459
1479
|
});
|
|
1460
1480
|
}
|
|
1461
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1462
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CartService }); }
|
|
1463
1481
|
}
|
|
1464
|
-
i0.ɵɵ
|
|
1482
|
+
CartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1483
|
+
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1465
1485
|
type: Injectable
|
|
1466
|
-
}], ctorParameters: ()
|
|
1486
|
+
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$2.Shops, decorators: [{
|
|
1467
1487
|
type: Inject,
|
|
1468
1488
|
args: [DEFAULT_SHOP]
|
|
1469
1489
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1478,7 +1498,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
1478
1498
|
}] }, { type: i1$2.Buy2WinFirestoreRepository, decorators: [{
|
|
1479
1499
|
type: Inject,
|
|
1480
1500
|
args: ['Buy2WinRepository']
|
|
1481
|
-
}] }] });
|
|
1501
|
+
}] }]; } });
|
|
1482
1502
|
|
|
1483
1503
|
class NewCategoryStructureAdapter {
|
|
1484
1504
|
constructor(categoryRepository) {
|
|
@@ -1508,15 +1528,15 @@ class NewCategoryStructureAdapter {
|
|
|
1508
1528
|
? this.categoryRepository.get({ id: category.id })
|
|
1509
1529
|
: category;
|
|
1510
1530
|
}
|
|
1511
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1512
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1513
1531
|
}
|
|
1514
|
-
i0.ɵɵ
|
|
1532
|
+
NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1533
|
+
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1534
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1515
1535
|
type: Injectable
|
|
1516
|
-
}], ctorParameters: ()
|
|
1536
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1517
1537
|
type: Inject,
|
|
1518
1538
|
args: ['CategoryRepository']
|
|
1519
|
-
}] }] });
|
|
1539
|
+
}] }]; } });
|
|
1520
1540
|
|
|
1521
1541
|
class OldCategoryStructureAdapter {
|
|
1522
1542
|
constructor(categoryRepository) {
|
|
@@ -1528,15 +1548,15 @@ class OldCategoryStructureAdapter {
|
|
|
1528
1548
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1529
1549
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1530
1550
|
}
|
|
1531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1532
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1533
1551
|
}
|
|
1534
|
-
i0.ɵɵ
|
|
1552
|
+
OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1553
|
+
OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
|
|
1554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1535
1555
|
type: Injectable
|
|
1536
|
-
}], ctorParameters: ()
|
|
1556
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1537
1557
|
type: Inject,
|
|
1538
1558
|
args: ['CategoryRepository']
|
|
1539
|
-
}] }] });
|
|
1559
|
+
}] }]; } });
|
|
1540
1560
|
|
|
1541
1561
|
class CatalogService {
|
|
1542
1562
|
constructor(productRepository, categoryStructureAdapter, shop, productIndex) {
|
|
@@ -1687,12 +1707,12 @@ class CatalogService {
|
|
|
1687
1707
|
return [...new Set(sorted.map(({ _source }) => _source.id))];
|
|
1688
1708
|
}));
|
|
1689
1709
|
}
|
|
1690
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1691
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CatalogService }); }
|
|
1692
1710
|
}
|
|
1693
|
-
i0.ɵɵ
|
|
1711
|
+
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 });
|
|
1712
|
+
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1694
1714
|
type: Injectable
|
|
1695
|
-
}], ctorParameters: ()
|
|
1715
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1696
1716
|
type: Inject,
|
|
1697
1717
|
args: ['ProductRepository']
|
|
1698
1718
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1701,7 +1721,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
1701
1721
|
}] }, { type: i1$2.Shops, decorators: [{
|
|
1702
1722
|
type: Inject,
|
|
1703
1723
|
args: [DEFAULT_SHOP]
|
|
1704
|
-
}] }, { type: i1$2.ProductsIndex }] });
|
|
1724
|
+
}] }, { type: i1$2.ProductsIndex }]; } });
|
|
1705
1725
|
|
|
1706
1726
|
class CategoryService {
|
|
1707
1727
|
constructor(productRepository, categoryRepository, categoryFilterRepository, categoryStructureAdapter, shop) {
|
|
@@ -1727,12 +1747,12 @@ class CategoryService {
|
|
|
1727
1747
|
.find({ filters: { categoryId: +category.id } })
|
|
1728
1748
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1729
1749
|
}
|
|
1730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1731
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CategoryService }); }
|
|
1732
1750
|
}
|
|
1733
|
-
i0.ɵɵ
|
|
1751
|
+
CategoryService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1752
|
+
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1734
1754
|
type: Injectable
|
|
1735
|
-
}], ctorParameters: ()
|
|
1755
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1736
1756
|
type: Inject,
|
|
1737
1757
|
args: ['ProductRepository']
|
|
1738
1758
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1747,7 +1767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
1747
1767
|
}] }, { type: i1$2.Shops, decorators: [{
|
|
1748
1768
|
type: Inject,
|
|
1749
1769
|
args: [DEFAULT_SHOP]
|
|
1750
|
-
}] }] });
|
|
1770
|
+
}] }]; } });
|
|
1751
1771
|
|
|
1752
1772
|
var ProductSorts;
|
|
1753
1773
|
(function (ProductSorts) {
|
|
@@ -1853,12 +1873,12 @@ class WishlistService {
|
|
|
1853
1873
|
}
|
|
1854
1874
|
return wishlist;
|
|
1855
1875
|
}
|
|
1856
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'CategoryRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1857
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: WishlistService }); }
|
|
1858
1876
|
}
|
|
1859
|
-
i0.ɵɵ
|
|
1877
|
+
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'CategoryRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$2.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1878
|
+
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1860
1880
|
type: Injectable
|
|
1861
|
-
}], ctorParameters: ()
|
|
1881
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1862
1882
|
type: Inject,
|
|
1863
1883
|
args: ['WishlistRepository']
|
|
1864
1884
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1873,7 +1893,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
1873
1893
|
}] }, { type: undefined, decorators: [{
|
|
1874
1894
|
type: Inject,
|
|
1875
1895
|
args: ['CategoryFilterRepository']
|
|
1876
|
-
}] }, { type: i1$2.ProductsIndex }] });
|
|
1896
|
+
}] }, { type: i1$2.ProductsIndex }]; } });
|
|
1877
1897
|
|
|
1878
1898
|
class CheckoutSubscriptionService {
|
|
1879
1899
|
constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
|
|
@@ -1907,18 +1927,18 @@ class CheckoutSubscriptionService {
|
|
|
1907
1927
|
calcDiscountSubscription(coupon) {
|
|
1908
1928
|
return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
|
|
1909
1929
|
}
|
|
1910
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1911
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
1912
1930
|
}
|
|
1913
|
-
i0.ɵɵ
|
|
1931
|
+
CheckoutSubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1932
|
+
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
1933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1914
1934
|
type: Injectable
|
|
1915
|
-
}], ctorParameters: ()
|
|
1935
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1916
1936
|
type: Inject,
|
|
1917
1937
|
args: ['CheckoutSubscriptionRepository']
|
|
1918
1938
|
}] }, { type: undefined, decorators: [{
|
|
1919
1939
|
type: Inject,
|
|
1920
1940
|
args: ['SubscriptionRepository']
|
|
1921
|
-
}] }, { type: CouponService }] });
|
|
1941
|
+
}] }, { type: CouponService }]; } });
|
|
1922
1942
|
|
|
1923
1943
|
class UtilHelper {
|
|
1924
1944
|
static createSlug(name) {
|
|
@@ -1968,13 +1988,18 @@ class HomeShopService {
|
|
|
1968
1988
|
'weight',
|
|
1969
1989
|
'rate',
|
|
1970
1990
|
'type',
|
|
1991
|
+
'brand',
|
|
1971
1992
|
]))) || [],
|
|
1972
1993
|
});
|
|
1973
1994
|
}
|
|
1974
1995
|
getHomeData() {
|
|
1975
1996
|
return this.getHomeConfiguration().pipe(map((home) => (home?.data?.expiresAt > new Date() ? home : null)), concatMap((home) => home
|
|
1976
1997
|
? of(home)
|
|
1977
|
-
: forkJoin([
|
|
1998
|
+
: forkJoin([
|
|
1999
|
+
this.getDiscoverProducts(this.gender),
|
|
2000
|
+
this.getFeaturedProducts(this.gender),
|
|
2001
|
+
this.getVerticalProducts(this.gender),
|
|
2002
|
+
]).pipe(map(([discoverProducts, featuredProducts, verticalProducts]) => ({
|
|
1978
2003
|
discoverProducts,
|
|
1979
2004
|
featuredProducts,
|
|
1980
2005
|
verticalProducts,
|
|
@@ -1996,15 +2021,18 @@ class HomeShopService {
|
|
|
1996
2021
|
getMinValueForFreeShipping() {
|
|
1997
2022
|
return this.getHomeConfiguration().pipe(map((home) => home.minValueForFreeShipping));
|
|
1998
2023
|
}
|
|
1999
|
-
getDiscoverProducts() {
|
|
2000
|
-
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.discoverCategories)).pipe(map((groups) => groups.map(this.buildCategoryGroupWithRequiredData)))));
|
|
2024
|
+
getDiscoverProducts(gender) {
|
|
2025
|
+
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.discoverCategories, undefined, gender)).pipe(map((groups) => groups.map(this.buildCategoryGroupWithRequiredData)))));
|
|
2001
2026
|
}
|
|
2002
|
-
getFeaturedProducts() {
|
|
2003
|
-
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.featuredCategories)).pipe(map((groups) => groups.map(this.buildCategoryGroupWithRequiredData)))));
|
|
2027
|
+
getFeaturedProducts(gender) {
|
|
2028
|
+
return this.getHomeConfiguration().pipe(concatMap((home) => from(this.categoryRepository.getCategoriesForHome(home.featuredCategories, undefined, gender)).pipe(map((groups) => groups.map(this.buildCategoryGroupWithRequiredData)))));
|
|
2004
2029
|
}
|
|
2005
|
-
getVerticalProducts() {
|
|
2030
|
+
getVerticalProducts(gender) {
|
|
2006
2031
|
return this.getHomeConfiguration().pipe(concatMap((home) => forkJoin(home.verticalCarousels.filter(Boolean).map((id) => from(this.categoryRepository.get({ id })).pipe(concatMap((category) => from(this.productRepository.find({
|
|
2007
|
-
filters: {
|
|
2032
|
+
filters: {
|
|
2033
|
+
categories: { operator: Where.IN, value: [category.id] },
|
|
2034
|
+
...(gender ? { tags: { operator: Where.IN, value: [gender] } } : {}),
|
|
2035
|
+
},
|
|
2008
2036
|
limits: { limit: 12 },
|
|
2009
2037
|
})).pipe(map((products) => ({ category, products })))), map(({ category, products }) => ({ category, products: products.data })), map(this.buildCategoryGroupWithRequiredData))))));
|
|
2010
2038
|
}
|
|
@@ -2026,12 +2054,15 @@ class HomeShopService {
|
|
|
2026
2054
|
data,
|
|
2027
2055
|
})).pipe(tap(() => (this.homeConfiguration.data = data)), map(() => this.homeConfiguration));
|
|
2028
2056
|
}
|
|
2029
|
-
|
|
2030
|
-
|
|
2057
|
+
get gender() {
|
|
2058
|
+
return this.homeId === 'mens_market' ? 'masculino' : undefined;
|
|
2059
|
+
}
|
|
2031
2060
|
}
|
|
2032
|
-
i0.ɵɵ
|
|
2061
|
+
HomeShopService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2062
|
+
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
2063
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
2033
2064
|
type: Injectable
|
|
2034
|
-
}], ctorParameters: ()
|
|
2065
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2035
2066
|
type: Inject,
|
|
2036
2067
|
args: ['CategoryRepository']
|
|
2037
2068
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2043,7 +2074,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
2043
2074
|
}] }, { type: i1$2.Shops, decorators: [{
|
|
2044
2075
|
type: Inject,
|
|
2045
2076
|
args: [DEFAULT_SHOP]
|
|
2046
|
-
}] }] });
|
|
2077
|
+
}] }]; } });
|
|
2047
2078
|
|
|
2048
2079
|
class OrderService {
|
|
2049
2080
|
constructor(angularFirestore, orderRepository) {
|
|
@@ -2057,15 +2088,15 @@ class OrderService {
|
|
|
2057
2088
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
2058
2089
|
return this.orderSubject;
|
|
2059
2090
|
}
|
|
2060
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService, deps: [{ token: i1$1.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2061
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: OrderService }); }
|
|
2062
2091
|
}
|
|
2063
|
-
i0.ɵɵ
|
|
2092
|
+
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 });
|
|
2093
|
+
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
2094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
2064
2095
|
type: Injectable
|
|
2065
|
-
}], ctorParameters: ()
|
|
2096
|
+
}], ctorParameters: function () { return [{ type: i1$1.Firestore }, { type: i1$2.OrderFirestoreRepository, decorators: [{
|
|
2066
2097
|
type: Inject,
|
|
2067
2098
|
args: ['OrderRepository']
|
|
2068
|
-
}] }] });
|
|
2099
|
+
}] }]; } });
|
|
2069
2100
|
|
|
2070
2101
|
class ShippingService {
|
|
2071
2102
|
constructor(http, apiUrl, homeService) {
|
|
@@ -2143,15 +2174,15 @@ class ShippingService {
|
|
|
2143
2174
|
}
|
|
2144
2175
|
return false;
|
|
2145
2176
|
}
|
|
2146
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService, deps: [{ token: i1$3.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2147
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: ShippingService }); }
|
|
2148
2177
|
}
|
|
2149
|
-
i0.ɵɵ
|
|
2178
|
+
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 });
|
|
2179
|
+
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2150
2181
|
type: Injectable
|
|
2151
|
-
}], ctorParameters: ()
|
|
2182
|
+
}], ctorParameters: function () { return [{ type: i1$3.HttpClient }, { type: undefined, decorators: [{
|
|
2152
2183
|
type: Inject,
|
|
2153
2184
|
args: [BACKEND_URL]
|
|
2154
|
-
}] }, { type: HomeShopService }] });
|
|
2185
|
+
}] }, { type: HomeShopService }]; } });
|
|
2155
2186
|
|
|
2156
2187
|
class AngularConnectModule {
|
|
2157
2188
|
static initializeApp(defaultShop, options, nameOrConfig) {
|
|
@@ -2170,41 +2201,49 @@ class AngularConnectModule {
|
|
|
2170
2201
|
...(isNil(options?.elasticSearch) ? [] : [{ provide: ES_CONFIG, useValue: options.elasticSearch }]),
|
|
2171
2202
|
...(isNil(options?.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }]),
|
|
2172
2203
|
...(isNil(options?.backendUrl) ? [] : [{ provide: BACKEND_URL, useValue: options.backendUrl }]),
|
|
2204
|
+
...(isNil(options?.storageBaseUrl) ? [] : [{ provide: STORAGE_BASE_URL, useValue: options.storageBaseUrl }]),
|
|
2173
2205
|
],
|
|
2174
2206
|
};
|
|
2175
2207
|
}
|
|
2176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2177
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2178
|
-
AngularFirebaseAuthModule,
|
|
2179
|
-
AngularFirestoreModule,
|
|
2180
|
-
AngularHasuraGraphQLModule] }); }
|
|
2181
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2182
|
-
AuthService,
|
|
2183
|
-
CartService,
|
|
2184
|
-
CatalogService,
|
|
2185
|
-
CategoryService,
|
|
2186
|
-
CheckoutService,
|
|
2187
|
-
CheckoutSubscriptionService,
|
|
2188
|
-
CouponService,
|
|
2189
|
-
HomeShopService,
|
|
2190
|
-
OrderService,
|
|
2191
|
-
ShippingService,
|
|
2192
|
-
WishlistService,
|
|
2193
|
-
], imports: [provideFirebaseApp((injector) => {
|
|
2194
|
-
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2195
|
-
try {
|
|
2196
|
-
return getApp(appName);
|
|
2197
|
-
}
|
|
2198
|
-
catch (error) {
|
|
2199
|
-
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2200
|
-
}
|
|
2201
|
-
}),
|
|
2202
|
-
AngularElasticSeachModule,
|
|
2203
|
-
AngularFirebaseAuthModule,
|
|
2204
|
-
AngularFirestoreModule,
|
|
2205
|
-
AngularHasuraGraphQLModule] }); }
|
|
2206
2208
|
}
|
|
2207
|
-
i0.ɵɵ
|
|
2209
|
+
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2210
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, AngularElasticSeachModule,
|
|
2211
|
+
AngularFirebaseAuthModule,
|
|
2212
|
+
AngularFirestoreModule,
|
|
2213
|
+
AngularHasuraGraphQLModule] });
|
|
2214
|
+
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2215
|
+
AuthService,
|
|
2216
|
+
CartService,
|
|
2217
|
+
CatalogService,
|
|
2218
|
+
CategoryService,
|
|
2219
|
+
CheckoutService,
|
|
2220
|
+
CheckoutSubscriptionService,
|
|
2221
|
+
CouponService,
|
|
2222
|
+
HomeShopService,
|
|
2223
|
+
OrderService,
|
|
2224
|
+
ShippingService,
|
|
2225
|
+
WishlistService,
|
|
2226
|
+
{
|
|
2227
|
+
provide: UpdateUserImage,
|
|
2228
|
+
useFactory: (userRepository, fileUploader) => {
|
|
2229
|
+
return new UpdateUserImage(userRepository, fileUploader);
|
|
2230
|
+
},
|
|
2231
|
+
deps: ['UserRepository', 'FileUploaderService'],
|
|
2232
|
+
},
|
|
2233
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
2234
|
+
const appName = injector.get(FIREBASE_APP_NAME) || '[DEFAULT]';
|
|
2235
|
+
try {
|
|
2236
|
+
return getApp(appName);
|
|
2237
|
+
}
|
|
2238
|
+
catch (error) {
|
|
2239
|
+
return initializeApp(injector.get(FIREBASE_OPTIONS), appName);
|
|
2240
|
+
}
|
|
2241
|
+
}),
|
|
2242
|
+
AngularElasticSeachModule,
|
|
2243
|
+
AngularFirebaseAuthModule,
|
|
2244
|
+
AngularFirestoreModule,
|
|
2245
|
+
AngularHasuraGraphQLModule] });
|
|
2246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2208
2247
|
type: NgModule,
|
|
2209
2248
|
args: [{
|
|
2210
2249
|
imports: [
|
|
@@ -2234,6 +2273,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImpor
|
|
|
2234
2273
|
OrderService,
|
|
2235
2274
|
ShippingService,
|
|
2236
2275
|
WishlistService,
|
|
2276
|
+
{
|
|
2277
|
+
provide: UpdateUserImage,
|
|
2278
|
+
useFactory: (userRepository, fileUploader) => {
|
|
2279
|
+
return new UpdateUserImage(userRepository, fileUploader);
|
|
2280
|
+
},
|
|
2281
|
+
deps: ['UserRepository', 'FileUploaderService'],
|
|
2282
|
+
},
|
|
2237
2283
|
],
|
|
2238
2284
|
}]
|
|
2239
2285
|
}] });
|