@infrab4a/connect-angular 4.0.0-beta.55 → 4.0.0-beta.57
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 -4
- package/angular-firestore.module.d.ts +1 -1
- package/angular-hasura-graphql.module.d.ts +1 -1
- package/esm2022/angular-connect.module.mjs +66 -0
- package/esm2022/angular-elastic-search.module.mjs +34 -0
- package/esm2022/angular-firebase-auth.module.mjs +130 -0
- package/esm2022/angular-firestore.module.mjs +459 -0
- package/esm2022/angular-hasura-graphql.module.mjs +243 -0
- package/{esm2020 → esm2022}/services/auth.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/cart.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/adapters/new-category-structure.adapter.mjs +4 -4
- package/{esm2020 → esm2022}/services/catalog/adapters/old-category-structure.adapter.mjs +4 -4
- package/esm2022/services/catalog/catalog.service.mjs +127 -0
- package/{esm2020 → esm2022}/services/catalog/category.service.mjs +4 -4
- package/esm2022/services/catalog/wishlist.service.mjs +105 -0
- package/{esm2020 → esm2022}/services/checkout-subscription.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/checkout.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/coupon.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/home-shop.service.mjs +11 -11
- package/{esm2020 → esm2022}/services/order.service.mjs +4 -4
- package/{esm2020 → esm2022}/services/shipping.service.mjs +4 -4
- package/{fesm2020 → fesm2022}/infrab4a-connect-angular.mjs +448 -442
- package/fesm2022/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +8 -14
- package/services/cart.service.d.ts +1 -1
- package/services/catalog/catalog.service.d.ts +7 -5
- package/services/catalog/types/product-sort.type.d.ts +1 -1
- package/services/catalog/wishlist.service.d.ts +2 -2
- package/services/home-shop.service.d.ts +1 -1
- package/services/types/required-checkout-data.type.d.ts +1 -1
- package/services/types/required-checkout-subscription-data.type.d.ts +1 -1
- package/types/firebase-app-config.type.d.ts +1 -1
- package/esm2020/angular-connect.module.mjs +0 -65
- package/esm2020/angular-elastic-search.module.mjs +0 -34
- package/esm2020/angular-firebase-auth.module.mjs +0 -130
- package/esm2020/angular-firestore.module.mjs +0 -459
- package/esm2020/angular-hasura-graphql.module.mjs +0 -243
- package/esm2020/services/catalog/catalog.service.mjs +0 -121
- package/esm2020/services/catalog/wishlist.service.mjs +0 -105
- package/fesm2015/infrab4a-connect-angular.mjs +0 -2196
- package/fesm2015/infrab4a-connect-angular.mjs.map +0 -1
- package/fesm2020/infrab4a-connect-angular.mjs.map +0 -1
- /package/{esm2020 → esm2022}/consts/backend-url.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/category-structure.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/default-shop.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/es-config.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/firebase-const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/hasura-options.const.mjs +0 -0
- /package/{esm2020 → esm2022}/consts/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/helpers/mobile-operation-system-checker.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/infrab4a-connect-angular.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/adapters/category-structure.adapter.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/adapters/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/enums/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/enums/product-sorts.enum.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/models/category-with-tree.model.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/catalog/types/product-sort.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/helpers/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/helpers/util.helper.mjs +0 -0
- /package/{esm2020 → esm2022}/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/index.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/required-checkout-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/required-checkout-subscription-data.type.mjs +0 -0
- /package/{esm2020 → esm2022}/services/types/shipping-methods.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/firebase-app-config.type.mjs +0 -0
- /package/{esm2020 → esm2022}/types/index.mjs +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
|
|
3
3
|
import * as i1$3 from '@infrab4a/connect';
|
|
4
|
-
import { Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword,
|
|
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';
|
|
5
5
|
import * as i1 from '@angular/fire/app';
|
|
6
6
|
import { provideFirebaseApp, initializeApp, FirebaseApp } from '@angular/fire/app';
|
|
7
7
|
import * as i1$1 from '@angular/fire/auth';
|
|
@@ -17,14 +17,44 @@ import { __decorate, __metadata } from 'tslib';
|
|
|
17
17
|
import { Type } from 'class-transformer';
|
|
18
18
|
import * as i1$4 from '@angular/common/http';
|
|
19
19
|
|
|
20
|
+
const ES_CONFIG = 'ES_CONFIG';
|
|
21
|
+
|
|
22
|
+
class AngularElasticSeachModule {
|
|
23
|
+
static initializeApp(options) {
|
|
24
|
+
return {
|
|
25
|
+
ngModule: AngularElasticSeachModule,
|
|
26
|
+
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
30
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule }); }
|
|
31
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
32
|
+
{
|
|
33
|
+
provide: ProductsIndex,
|
|
34
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
35
|
+
deps: [ES_CONFIG],
|
|
36
|
+
},
|
|
37
|
+
] }); }
|
|
38
|
+
}
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
40
|
+
type: NgModule,
|
|
41
|
+
args: [{
|
|
42
|
+
providers: [
|
|
43
|
+
{
|
|
44
|
+
provide: ProductsIndex,
|
|
45
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
46
|
+
deps: [ES_CONFIG],
|
|
47
|
+
},
|
|
48
|
+
],
|
|
49
|
+
}]
|
|
50
|
+
}] });
|
|
51
|
+
|
|
20
52
|
const BACKEND_URL = 'BACKEND_URL';
|
|
21
53
|
|
|
22
54
|
const CATEGORY_STRUCTURE = 'CATEGORY_STRUCTURE';
|
|
23
55
|
|
|
24
56
|
const DEFAULT_SHOP = 'DEFAULT_SHOP';
|
|
25
57
|
|
|
26
|
-
const ES_CONFIG = 'ES_CONFIG';
|
|
27
|
-
|
|
28
58
|
const FIREBASE_APP_NAME = new InjectionToken('firebaseAppName');
|
|
29
59
|
const FIREBASE_OPTIONS = new InjectionToken('firebaseOptions');
|
|
30
60
|
|
|
@@ -40,60 +70,60 @@ class AngularFirebaseAuthModule {
|
|
|
40
70
|
],
|
|
41
71
|
};
|
|
42
72
|
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
74
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] }); }
|
|
75
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
76
|
+
{
|
|
77
|
+
provide: 'Authentication',
|
|
78
|
+
useFactory: (authenticationService, userRepository) => {
|
|
79
|
+
return new Authentication(authenticationService, userRepository);
|
|
80
|
+
},
|
|
81
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
51
82
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
83
|
+
{
|
|
84
|
+
provide: 'AuthenticationService',
|
|
85
|
+
useFactory: (angularFireAuth) => {
|
|
86
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
87
|
+
},
|
|
88
|
+
deps: [Auth],
|
|
58
89
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
90
|
+
{
|
|
91
|
+
provide: 'Register',
|
|
92
|
+
useFactory: (registerService, userRepository) => {
|
|
93
|
+
return new Register(registerService, userRepository);
|
|
94
|
+
},
|
|
95
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
65
96
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
97
|
+
{
|
|
98
|
+
provide: 'RegisterService',
|
|
99
|
+
useFactory: (angularFireAuth) => {
|
|
100
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
101
|
+
},
|
|
102
|
+
deps: [Auth],
|
|
72
103
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
104
|
+
{
|
|
105
|
+
provide: 'SignOut',
|
|
106
|
+
useFactory: (authenticationService) => {
|
|
107
|
+
return new SignOut(authenticationService);
|
|
108
|
+
},
|
|
109
|
+
deps: ['AuthenticationService'],
|
|
79
110
|
},
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
111
|
+
{
|
|
112
|
+
provide: 'RecoveryPassword',
|
|
113
|
+
useFactory: (authenticationService) => {
|
|
114
|
+
return new RecoveryPassword(authenticationService);
|
|
115
|
+
},
|
|
116
|
+
deps: ['AuthenticationService'],
|
|
86
117
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
118
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
119
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
120
|
+
return appName
|
|
121
|
+
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
122
|
+
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
123
|
+
}),
|
|
124
|
+
provideAuth(() => getAuth())] }); }
|
|
125
|
+
}
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
97
127
|
type: NgModule,
|
|
98
128
|
args: [{
|
|
99
129
|
imports: [
|
|
@@ -152,36 +182,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
152
182
|
}]
|
|
153
183
|
}] });
|
|
154
184
|
|
|
155
|
-
class AngularElasticSeachModule {
|
|
156
|
-
static initializeApp(options) {
|
|
157
|
-
return {
|
|
158
|
-
ngModule: AngularElasticSeachModule,
|
|
159
|
-
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
160
|
-
};
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
164
|
-
AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
|
|
165
|
-
AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
166
|
-
{
|
|
167
|
-
provide: ProductsIndex,
|
|
168
|
-
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
169
|
-
deps: [ES_CONFIG],
|
|
170
|
-
},
|
|
171
|
-
] });
|
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
173
|
-
type: NgModule,
|
|
174
|
-
args: [{
|
|
175
|
-
providers: [
|
|
176
|
-
{
|
|
177
|
-
provide: ProductsIndex,
|
|
178
|
-
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
179
|
-
deps: [ES_CONFIG],
|
|
180
|
-
},
|
|
181
|
-
],
|
|
182
|
-
}]
|
|
183
|
-
}] });
|
|
184
|
-
|
|
185
185
|
class MobileOperationSystemCheckerHelper {
|
|
186
186
|
static isAppleDevice() {
|
|
187
187
|
return (['iPad Simulator', 'iPhone Simulator', 'iPod Simulator', 'iPad', 'iPhone', 'iPod'].includes(navigator?.platform) ||
|
|
@@ -200,222 +200,222 @@ class AngularFirestoreModule {
|
|
|
200
200
|
],
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
204
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] }); }
|
|
205
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
206
|
+
{
|
|
207
|
+
provide: 'FirestoreOptions',
|
|
208
|
+
useFactory: (firestore, platformId) => ({
|
|
209
|
+
firestore,
|
|
210
|
+
interceptors: {
|
|
211
|
+
request: (request) => {
|
|
212
|
+
if (isPlatformBrowser(platformId))
|
|
213
|
+
return request;
|
|
214
|
+
const interval = setInterval(() => { }, 100);
|
|
215
|
+
request.interval = interval;
|
|
214
216
|
return request;
|
|
215
|
-
|
|
216
|
-
request
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
if (isPlatformBrowser(platformId))
|
|
217
|
+
},
|
|
218
|
+
response: (response, request) => {
|
|
219
|
+
if (isPlatformBrowser(platformId))
|
|
220
|
+
return response;
|
|
221
|
+
clearInterval(request.interval);
|
|
221
222
|
return response;
|
|
222
|
-
|
|
223
|
-
return response;
|
|
223
|
+
},
|
|
224
224
|
},
|
|
225
|
+
}),
|
|
226
|
+
deps: [Firestore, PLATFORM_ID],
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
provide: 'BeautyProfileRepository',
|
|
230
|
+
useFactory: (config, userRepository) => {
|
|
231
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
225
232
|
},
|
|
226
|
-
|
|
227
|
-
deps: [Firestore, PLATFORM_ID],
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
provide: 'BeautyProfileRepository',
|
|
231
|
-
useFactory: (config, userRepository) => {
|
|
232
|
-
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
233
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
233
234
|
},
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
235
|
+
{
|
|
236
|
+
provide: 'Buy2WinRepository',
|
|
237
|
+
useFactory: (options) => {
|
|
238
|
+
return new Buy2WinFirestoreRepository(options);
|
|
239
|
+
},
|
|
240
|
+
deps: ['FirestoreOptions'],
|
|
240
241
|
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
242
|
+
{
|
|
243
|
+
provide: CategoryFirestoreRepository,
|
|
244
|
+
useFactory: (options) => {
|
|
245
|
+
return new CategoryFirestoreRepository(options);
|
|
246
|
+
},
|
|
247
|
+
deps: ['FirestoreOptions'],
|
|
247
248
|
},
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
{
|
|
250
|
+
provide: 'CheckoutRepository',
|
|
251
|
+
useFactory: (options) => {
|
|
252
|
+
return new CheckoutFirestoreRepository(options);
|
|
253
|
+
},
|
|
254
|
+
deps: ['FirestoreOptions'],
|
|
254
255
|
},
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
256
|
+
{
|
|
257
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
258
|
+
useFactory: (options) => {
|
|
259
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
260
|
+
},
|
|
261
|
+
deps: ['FirestoreOptions'],
|
|
261
262
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
{
|
|
264
|
+
provide: 'CouponRepository',
|
|
265
|
+
useFactory: (options) => {
|
|
266
|
+
return new CouponFirestoreRepository(options);
|
|
267
|
+
},
|
|
268
|
+
deps: ['FirestoreOptions'],
|
|
268
269
|
},
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
270
|
+
{
|
|
271
|
+
provide: 'CampaignHashtagRepository',
|
|
272
|
+
useFactory: (options) => {
|
|
273
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
274
|
+
},
|
|
275
|
+
deps: ['FirestoreOptions'],
|
|
275
276
|
},
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
{
|
|
278
|
+
provide: 'CampaignDashboardRepository',
|
|
279
|
+
useFactory: (options) => {
|
|
280
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
281
|
+
},
|
|
282
|
+
deps: ['FirestoreOptions'],
|
|
282
283
|
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
284
|
+
{
|
|
285
|
+
provide: 'EditionRepository',
|
|
286
|
+
useFactory: (options, subscriptionRepository) => {
|
|
287
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
288
|
+
},
|
|
289
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
289
290
|
},
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
291
|
+
{
|
|
292
|
+
provide: 'HomeRepository',
|
|
293
|
+
useFactory: (options) => {
|
|
294
|
+
return new HomeFirestoreRepository(options);
|
|
295
|
+
},
|
|
296
|
+
deps: ['FirestoreOptions'],
|
|
296
297
|
},
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
298
|
+
{
|
|
299
|
+
provide: 'LeadRepository',
|
|
300
|
+
useFactory: (options) => {
|
|
301
|
+
return new LeadFirestoreRepository(options);
|
|
302
|
+
},
|
|
303
|
+
deps: ['FirestoreOptions'],
|
|
303
304
|
},
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
305
|
+
{
|
|
306
|
+
provide: 'LegacyOrderRepository',
|
|
307
|
+
useFactory: (options) => {
|
|
308
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
309
|
+
},
|
|
310
|
+
deps: ['FirestoreOptions'],
|
|
310
311
|
},
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
312
|
+
{
|
|
313
|
+
provide: 'ShopMenuRepository',
|
|
314
|
+
useFactory: (options) => {
|
|
315
|
+
return new ShopMenuFirestoreRepository(options);
|
|
316
|
+
},
|
|
317
|
+
deps: ['FirestoreOptions'],
|
|
317
318
|
},
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
319
|
+
{
|
|
320
|
+
provide: 'OrderRepository',
|
|
321
|
+
useFactory: (options) => {
|
|
322
|
+
return new OrderFirestoreRepository(options);
|
|
323
|
+
},
|
|
324
|
+
deps: ['FirestoreOptions'],
|
|
324
325
|
},
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
326
|
+
{
|
|
327
|
+
provide: 'PaymentRepository',
|
|
328
|
+
useFactory: (options) => {
|
|
329
|
+
return new PaymentFirestoreRepository(options);
|
|
330
|
+
},
|
|
331
|
+
deps: ['FirestoreOptions'],
|
|
331
332
|
},
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
333
|
+
{
|
|
334
|
+
provide: ProductFirestoreRepository,
|
|
335
|
+
useFactory: (options) => {
|
|
336
|
+
return new ProductFirestoreRepository(options);
|
|
337
|
+
},
|
|
338
|
+
deps: ['FirestoreOptions'],
|
|
338
339
|
},
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
340
|
+
{
|
|
341
|
+
provide: 'ShopSettingsRepository',
|
|
342
|
+
useFactory: (options) => {
|
|
343
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
344
|
+
},
|
|
345
|
+
deps: ['FirestoreOptions'],
|
|
345
346
|
},
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
347
|
+
{
|
|
348
|
+
provide: 'SubscriptionPaymentRepository',
|
|
349
|
+
useFactory: (options, subscriptionRepository) => {
|
|
350
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
351
|
+
},
|
|
352
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
352
353
|
},
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
354
|
+
{
|
|
355
|
+
provide: 'SubscriptionPlanRepository',
|
|
356
|
+
useFactory: (options) => {
|
|
357
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
358
|
+
},
|
|
359
|
+
deps: ['FirestoreOptions'],
|
|
359
360
|
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
361
|
+
{
|
|
362
|
+
provide: 'SubscriptionProductRepository',
|
|
363
|
+
useFactory: (options) => {
|
|
364
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
365
|
+
},
|
|
366
|
+
deps: ['FirestoreOptions'],
|
|
366
367
|
},
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
368
|
+
{
|
|
369
|
+
provide: 'SubscriptionRepository',
|
|
370
|
+
useFactory: (options) => {
|
|
371
|
+
return new SubscriptionFirestoreRepository(options);
|
|
372
|
+
},
|
|
373
|
+
deps: ['FirestoreOptions'],
|
|
373
374
|
},
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
375
|
+
{
|
|
376
|
+
provide: 'UserRepository',
|
|
377
|
+
useFactory: (options) => {
|
|
378
|
+
return new UserFirestoreRepository(options);
|
|
379
|
+
},
|
|
380
|
+
deps: ['FirestoreOptions'],
|
|
380
381
|
},
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
382
|
+
{
|
|
383
|
+
provide: 'UserAddressRepository',
|
|
384
|
+
useFactory: (options, userRepository) => {
|
|
385
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
386
|
+
},
|
|
387
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
387
388
|
},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
389
|
+
{
|
|
390
|
+
provide: 'UserPaymentMethodRepository',
|
|
391
|
+
useFactory: (options, userRepository) => {
|
|
392
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
393
|
+
},
|
|
394
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
394
395
|
},
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
396
|
+
{
|
|
397
|
+
provide: ProductVariantFirestoreRepository,
|
|
398
|
+
useFactory: (options, productRepository) => {
|
|
399
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
400
|
+
},
|
|
401
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
401
402
|
},
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
403
|
+
], imports: [AngularElasticSeachModule,
|
|
404
|
+
provideFirebaseApp((injector) => {
|
|
405
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
406
|
+
return appName
|
|
407
|
+
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
408
|
+
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
409
|
+
}),
|
|
410
|
+
provideFirestore((injector) => {
|
|
411
|
+
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
412
|
+
return getFirestore();
|
|
413
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
414
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
415
|
+
return firestore;
|
|
416
|
+
})] }); }
|
|
417
|
+
}
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularFirestoreModule, decorators: [{
|
|
419
419
|
type: NgModule,
|
|
420
420
|
args: [{
|
|
421
421
|
imports: [
|
|
@@ -643,121 +643,121 @@ class AngularHasuraGraphQLModule {
|
|
|
643
643
|
providers: [{ provide: HASURA_OPTIONS, useValue: options }],
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
646
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
647
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule }); }
|
|
648
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
649
|
+
{
|
|
650
|
+
provide: 'HasuraConfig',
|
|
651
|
+
useFactory: (options, platformId) => ({
|
|
652
|
+
endpoint: options.endpoint,
|
|
653
|
+
authOptions: options.credentials,
|
|
654
|
+
interceptors: {
|
|
655
|
+
request: (request) => {
|
|
656
|
+
if (isPlatformBrowser(platformId))
|
|
657
|
+
return request;
|
|
658
|
+
const interval = setInterval(() => { }, 100);
|
|
659
|
+
request.interval = interval;
|
|
658
660
|
return request;
|
|
659
|
-
|
|
660
|
-
request
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
if (isPlatformBrowser(platformId))
|
|
661
|
+
},
|
|
662
|
+
response: (response, request) => {
|
|
663
|
+
if (isPlatformBrowser(platformId))
|
|
664
|
+
return response;
|
|
665
|
+
clearInterval(request.interval);
|
|
665
666
|
return response;
|
|
666
|
-
|
|
667
|
-
return response;
|
|
667
|
+
},
|
|
668
668
|
},
|
|
669
|
+
}),
|
|
670
|
+
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
provide: 'CategoryRepository',
|
|
674
|
+
useExisting: CategoryHasuraGraphQLRepository,
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
provide: CategoryHasuraGraphQLRepository,
|
|
678
|
+
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
679
|
+
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
669
680
|
},
|
|
670
|
-
|
|
671
|
-
deps: [HASURA_OPTIONS, PLATFORM_ID],
|
|
672
|
-
},
|
|
673
|
-
{
|
|
674
|
-
provide: 'CategoryRepository',
|
|
675
|
-
useExisting: CategoryHasuraGraphQLRepository,
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
provide: CategoryHasuraGraphQLRepository,
|
|
679
|
-
useFactory: (options, productRepository, categoryFilterRepository) => {
|
|
680
|
-
return new CategoryHasuraGraphQLRepository(options, productRepository, categoryFilterRepository);
|
|
681
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
681
682
|
},
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
provide: 'ProductRepository',
|
|
686
|
-
useExisting: ProductHasuraGraphQLRepository,
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
provide: ProductHasuraGraphQLRepository,
|
|
690
|
-
useFactory: (hasuraConfig) => {
|
|
691
|
-
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
683
|
+
{
|
|
684
|
+
provide: 'ProductRepository',
|
|
685
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
692
686
|
},
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
{
|
|
700
|
-
provide: VariantHasuraGraphQLRepository,
|
|
701
|
-
useFactory: (hasuraConfig) => {
|
|
702
|
-
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
687
|
+
{
|
|
688
|
+
provide: ProductHasuraGraphQLRepository,
|
|
689
|
+
useFactory: (hasuraConfig) => {
|
|
690
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
691
|
+
},
|
|
692
|
+
deps: ['HasuraConfig'],
|
|
703
693
|
},
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
provide: 'CategoryFilterRepository',
|
|
708
|
-
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
709
|
-
},
|
|
710
|
-
{
|
|
711
|
-
provide: CategoryFilterHasuraGraphQLRepository,
|
|
712
|
-
useFactory: (options) => {
|
|
713
|
-
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
694
|
+
{
|
|
695
|
+
provide: 'VariantRepository',
|
|
696
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
714
697
|
},
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
698
|
+
{
|
|
699
|
+
provide: VariantHasuraGraphQLRepository,
|
|
700
|
+
useFactory: (hasuraConfig) => {
|
|
701
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
702
|
+
},
|
|
703
|
+
deps: ['HasuraConfig'],
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
provide: 'CategoryFilterRepository',
|
|
707
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
711
|
+
useFactory: (options) => {
|
|
712
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
713
|
+
},
|
|
714
|
+
deps: ['HasuraConfig'],
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
provide: 'FilterOptionRepository',
|
|
718
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
719
|
+
},
|
|
720
|
+
{
|
|
721
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
722
|
+
useFactory: (options) => {
|
|
723
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
724
|
+
},
|
|
725
|
+
deps: ['HasuraConfig'],
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
provide: 'FilterRepository',
|
|
729
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
725
730
|
},
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
731
|
+
{
|
|
732
|
+
provide: FilterHasuraGraphQLRepository,
|
|
733
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
734
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
735
|
+
},
|
|
736
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
740
|
+
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
741
|
+
deps: ['HasuraConfig'],
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
provide: 'CategoryCollectionChildrenRepository',
|
|
745
|
+
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
provide: WishlistHasuraGraphQLRepository,
|
|
749
|
+
useFactory: (options, categoryFilterRepository) => {
|
|
750
|
+
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
751
|
+
},
|
|
752
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
736
753
|
},
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
provide: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
741
|
-
useFactory: (options) => new CategoryCollectionChildrenHasuraGraphQLRepository(options),
|
|
742
|
-
deps: ['HasuraConfig'],
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
provide: 'CategoryCollectionChildrenRepository',
|
|
746
|
-
useExisting: CategoryCollectionChildrenHasuraGraphQLRepository,
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
provide: WishlistHasuraGraphQLRepository,
|
|
750
|
-
useFactory: (options, categoryFilterRepository) => {
|
|
751
|
-
return new WishlistHasuraGraphQLRepository(options, categoryFilterRepository);
|
|
754
|
+
{
|
|
755
|
+
provide: 'WishlistRepository',
|
|
756
|
+
useExisting: WishlistHasuraGraphQLRepository,
|
|
752
757
|
},
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
provide: 'WishlistRepository',
|
|
757
|
-
useExisting: WishlistHasuraGraphQLRepository,
|
|
758
|
-
},
|
|
759
|
-
] });
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
758
|
+
] }); }
|
|
759
|
+
}
|
|
760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
761
761
|
type: NgModule,
|
|
762
762
|
args: [{
|
|
763
763
|
providers: [
|
|
@@ -895,10 +895,10 @@ class AuthService {
|
|
|
895
895
|
getFireUser() {
|
|
896
896
|
return authState(this.angularFireAuth).pipe(catchError(() => of(null)));
|
|
897
897
|
}
|
|
898
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
899
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService }); }
|
|
898
900
|
}
|
|
899
|
-
|
|
900
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService });
|
|
901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, decorators: [{
|
|
901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AuthService, decorators: [{
|
|
902
902
|
type: Injectable
|
|
903
903
|
}], ctorParameters: function () { return [{ type: i1$1.Auth }, { type: undefined, decorators: [{
|
|
904
904
|
type: Inject,
|
|
@@ -1094,10 +1094,10 @@ class CouponService {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
return couponUseLimits;
|
|
1096
1096
|
}
|
|
1097
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, deps: [{ token: 'CouponRepository' }, { token: DEFAULT_SHOP }, { token: 'OrderRepository' }, { token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1098
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, providedIn: 'root' }); }
|
|
1097
1099
|
}
|
|
1098
|
-
|
|
1099
|
-
CouponService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, providedIn: 'root' });
|
|
1100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CouponService, decorators: [{
|
|
1100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CouponService, decorators: [{
|
|
1101
1101
|
type: Injectable,
|
|
1102
1102
|
args: [{
|
|
1103
1103
|
providedIn: 'root',
|
|
@@ -1158,10 +1158,10 @@ class CheckoutService {
|
|
|
1158
1158
|
cookie.set('checkoutId', checkout.id);
|
|
1159
1159
|
return checkout;
|
|
1160
1160
|
}
|
|
1161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService, deps: [{ token: CouponService }, { token: 'CheckoutRepository' }, { token: 'OrderRepository' }, { token: 'UserRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1162
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService }); }
|
|
1161
1163
|
}
|
|
1162
|
-
|
|
1163
|
-
CheckoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService });
|
|
1164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutService, decorators: [{
|
|
1165
1165
|
type: Injectable
|
|
1166
1166
|
}], ctorParameters: function () { return [{ type: CouponService }, { type: undefined, decorators: [{
|
|
1167
1167
|
type: Inject,
|
|
@@ -1425,10 +1425,10 @@ class CartService {
|
|
|
1425
1425
|
});
|
|
1426
1426
|
});
|
|
1427
1427
|
}
|
|
1428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService, deps: [{ token: AuthService }, { token: CheckoutService }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'VariantRepository' }, { token: 'Buy2WinRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService }); }
|
|
1428
1430
|
}
|
|
1429
|
-
|
|
1430
|
-
CartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService });
|
|
1431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CartService, decorators: [{
|
|
1431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CartService, decorators: [{
|
|
1432
1432
|
type: Injectable
|
|
1433
1433
|
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1434
1434
|
type: Inject,
|
|
@@ -1502,6 +1502,7 @@ class CatalogService {
|
|
|
1502
1502
|
};
|
|
1503
1503
|
this.hasProfile = (options) => 'profile' in options;
|
|
1504
1504
|
this.hasTerm = (options) => 'term' in options;
|
|
1505
|
+
this.hasCategory = (options) => 'category' in options;
|
|
1505
1506
|
}
|
|
1506
1507
|
async fetchProducts(options) {
|
|
1507
1508
|
const limits = this.buildLimitQuery(options);
|
|
@@ -1510,8 +1511,8 @@ class CatalogService {
|
|
|
1510
1511
|
if (this.hasProfile(options) && options.filters?.tags)
|
|
1511
1512
|
throw new InvalidArgumentError(`It couldn't filled tags when profile is given`);
|
|
1512
1513
|
if (this.hasTerm(options) && options.filters?.customOptions)
|
|
1513
|
-
throw new InvalidArgumentError(`It couldn't filled customOptions when
|
|
1514
|
-
return await this.findCatalog(options, limits).then(({ data, count: total, maximum, minimal }) => ({
|
|
1514
|
+
throw new InvalidArgumentError(`It couldn't filled customOptions when term is given`);
|
|
1515
|
+
return await this.findCatalog(options, limits).then(({ data, count: total, maximum, minimal, distinct }) => ({
|
|
1515
1516
|
products: { data: data.map((product) => RoundProductPricesHelper.roundProductPrices(product)), total },
|
|
1516
1517
|
pages: Math.ceil(total / limits.limit),
|
|
1517
1518
|
prices: {
|
|
@@ -1521,6 +1522,7 @@ class CatalogService {
|
|
|
1521
1522
|
max: +maximum?.price?.subscriberPrice?.toFixed(2),
|
|
1522
1523
|
},
|
|
1523
1524
|
},
|
|
1525
|
+
brands: distinct?.brand,
|
|
1524
1526
|
}));
|
|
1525
1527
|
}
|
|
1526
1528
|
async findCatalog(options, limits) {
|
|
@@ -1531,7 +1533,11 @@ class CatalogService {
|
|
|
1531
1533
|
},
|
|
1532
1534
|
...(options?.sort ? { orderBy: this.buildSortQuery(options?.sort) } : {}),
|
|
1533
1535
|
limits,
|
|
1534
|
-
options: {
|
|
1536
|
+
options: {
|
|
1537
|
+
minimal: ['price'],
|
|
1538
|
+
maximum: ['price'],
|
|
1539
|
+
...(!this.hasCategory(options) ? { distinct: ['brand'] } : {}),
|
|
1540
|
+
},
|
|
1535
1541
|
};
|
|
1536
1542
|
if (['biggest-price', 'lowest-price', 'biggest-discount', 'best-rating'].includes(options.sort))
|
|
1537
1543
|
return this.productRepository.findCatalog(repoParams);
|
|
@@ -1547,10 +1553,10 @@ class CatalogService {
|
|
|
1547
1553
|
.search(term, 9999, this.shop)
|
|
1548
1554
|
.then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
|
|
1549
1555
|
}
|
|
1556
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1557
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService }); }
|
|
1550
1558
|
}
|
|
1551
|
-
|
|
1552
|
-
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1559
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService, decorators: [{
|
|
1554
1560
|
type: Injectable
|
|
1555
1561
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1556
1562
|
type: Inject,
|
|
@@ -1587,10 +1593,10 @@ class CategoryService {
|
|
|
1587
1593
|
.find({ filters: { categoryId: +category.id } })
|
|
1588
1594
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1589
1595
|
}
|
|
1596
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService, deps: [{ token: 'ProductRepository' }, { token: 'CategoryRepository' }, { token: 'CategoryFilterRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1597
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService }); }
|
|
1590
1598
|
}
|
|
1591
|
-
|
|
1592
|
-
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService, decorators: [{
|
|
1594
1600
|
type: Injectable
|
|
1595
1601
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1596
1602
|
type: Inject,
|
|
@@ -1671,10 +1677,10 @@ class NewCategoryStructureAdapter {
|
|
|
1671
1677
|
? category.isCollection
|
|
1672
1678
|
: this.categoryRepository.get({ id: category.id }).then((category) => category.isCollection);
|
|
1673
1679
|
}
|
|
1680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }, { token: 'CategoryCollectionChildrenRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1681
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1674
1682
|
}
|
|
1675
|
-
|
|
1676
|
-
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1678
1684
|
type: Injectable
|
|
1679
1685
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1680
1686
|
type: Inject,
|
|
@@ -1694,10 +1700,10 @@ class OldCategoryStructureAdapter {
|
|
|
1694
1700
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1695
1701
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1696
1702
|
}
|
|
1703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1704
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1697
1705
|
}
|
|
1698
|
-
|
|
1699
|
-
OldCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter });
|
|
1700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, decorators: [{
|
|
1701
1707
|
type: Injectable
|
|
1702
1708
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1703
1709
|
type: Inject,
|
|
@@ -1705,11 +1711,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1705
1711
|
}] }]; } });
|
|
1706
1712
|
|
|
1707
1713
|
class WishlistService {
|
|
1708
|
-
constructor(wishlistRepository, shop, productRepository, categoryFilterRepository, categoryCollectionChildrenRepository) {
|
|
1714
|
+
constructor(wishlistRepository, shop, productRepository, categoryFilterRepository, categoryCollectionChildrenRepository, productIndex) {
|
|
1709
1715
|
this.wishlistRepository = wishlistRepository;
|
|
1710
1716
|
this.shop = shop;
|
|
1711
1717
|
const categoryStructureAdapter = new NewCategoryStructureAdapter(wishlistRepository, categoryCollectionChildrenRepository);
|
|
1712
|
-
this.catalogService = new CatalogService(productRepository, categoryStructureAdapter, shop,
|
|
1718
|
+
this.catalogService = new CatalogService(productRepository, categoryStructureAdapter, shop, productIndex);
|
|
1713
1719
|
this.categoryService = new CategoryService(productRepository, wishlistRepository, categoryFilterRepository, categoryStructureAdapter, shop);
|
|
1714
1720
|
}
|
|
1715
1721
|
getCatalogService() {
|
|
@@ -1778,10 +1784,10 @@ class WishlistService {
|
|
|
1778
1784
|
}
|
|
1779
1785
|
return wishlist;
|
|
1780
1786
|
}
|
|
1787
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: 'CategoryCollectionChildrenRepository' }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1788
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService }); }
|
|
1781
1789
|
}
|
|
1782
|
-
|
|
1783
|
-
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService, decorators: [{
|
|
1785
1791
|
type: Injectable
|
|
1786
1792
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1787
1793
|
type: Inject,
|
|
@@ -1798,7 +1804,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1798
1804
|
}] }, { type: undefined, decorators: [{
|
|
1799
1805
|
type: Inject,
|
|
1800
1806
|
args: ['CategoryCollectionChildrenRepository']
|
|
1801
|
-
}] }]; } });
|
|
1807
|
+
}] }, { type: i1$3.ProductsIndex }]; } });
|
|
1802
1808
|
|
|
1803
1809
|
class CheckoutSubscriptionService {
|
|
1804
1810
|
constructor(checkoutSubscriptionRepository, subscriptionRepository, couponService) {
|
|
@@ -1832,10 +1838,10 @@ class CheckoutSubscriptionService {
|
|
|
1832
1838
|
calcDiscountSubscription(coupon) {
|
|
1833
1839
|
return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
|
|
1834
1840
|
}
|
|
1841
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService, deps: [{ token: 'CheckoutSubscriptionRepository' }, { token: 'SubscriptionRepository' }, { token: CouponService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1842
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
1835
1843
|
}
|
|
1836
|
-
|
|
1837
|
-
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
1838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1839
1845
|
type: Injectable
|
|
1840
1846
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1841
1847
|
type: Inject,
|
|
@@ -1846,6 +1852,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
|
|
|
1846
1852
|
}] }, { type: CouponService }]; } });
|
|
1847
1853
|
|
|
1848
1854
|
class HomeShopService {
|
|
1855
|
+
get homeId() {
|
|
1856
|
+
if (this.defaultShop === Shops.GLAMSHOP)
|
|
1857
|
+
return 'glamshop';
|
|
1858
|
+
if (this.defaultShop === Shops.MENSMARKET)
|
|
1859
|
+
return 'mens_market';
|
|
1860
|
+
return null;
|
|
1861
|
+
}
|
|
1849
1862
|
constructor(categoryRepository, homeRepository, productRepository, defaultShop) {
|
|
1850
1863
|
this.categoryRepository = categoryRepository;
|
|
1851
1864
|
this.homeRepository = homeRepository;
|
|
@@ -1871,13 +1884,6 @@ class HomeShopService {
|
|
|
1871
1884
|
]))) || [],
|
|
1872
1885
|
});
|
|
1873
1886
|
}
|
|
1874
|
-
get homeId() {
|
|
1875
|
-
if (this.defaultShop === Shops.GLAMSHOP)
|
|
1876
|
-
return 'glamshop';
|
|
1877
|
-
if (this.defaultShop === Shops.MENSMARKET)
|
|
1878
|
-
return 'mens_market';
|
|
1879
|
-
return null;
|
|
1880
|
-
}
|
|
1881
1887
|
getHomeData() {
|
|
1882
1888
|
return this.getHomeConfiguration().pipe(map((home) => (home?.data?.expiresAt > new Date() ? home : null)), concatMap((home) => home
|
|
1883
1889
|
? of(home)
|
|
@@ -1933,10 +1939,10 @@ class HomeShopService {
|
|
|
1933
1939
|
data,
|
|
1934
1940
|
})).pipe(tap(() => (this.homeConfiguration.data = data)), map(() => this.homeConfiguration));
|
|
1935
1941
|
}
|
|
1942
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService, deps: [{ token: 'CategoryRepository' }, { token: 'HomeRepository' }, { token: 'ProductRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1943
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService }); }
|
|
1936
1944
|
}
|
|
1937
|
-
|
|
1938
|
-
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
1939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
1945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService, decorators: [{
|
|
1940
1946
|
type: Injectable
|
|
1941
1947
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1942
1948
|
type: Inject,
|
|
@@ -1964,10 +1970,10 @@ class OrderService {
|
|
|
1964
1970
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
1965
1971
|
return this.orderSubject;
|
|
1966
1972
|
}
|
|
1973
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1974
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService }); }
|
|
1967
1975
|
}
|
|
1968
|
-
|
|
1969
|
-
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
1970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
1976
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService, decorators: [{
|
|
1971
1977
|
type: Injectable
|
|
1972
1978
|
}], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
1973
1979
|
type: Inject,
|
|
@@ -2050,10 +2056,10 @@ class ShippingService {
|
|
|
2050
2056
|
}
|
|
2051
2057
|
return false;
|
|
2052
2058
|
}
|
|
2059
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2060
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService }); }
|
|
2053
2061
|
}
|
|
2054
|
-
|
|
2055
|
-
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService, decorators: [{
|
|
2057
2063
|
type: Injectable
|
|
2058
2064
|
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2059
2065
|
type: Inject,
|
|
@@ -2080,26 +2086,26 @@ class AngularConnectModule {
|
|
|
2080
2086
|
],
|
|
2081
2087
|
};
|
|
2082
2088
|
}
|
|
2089
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2090
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
|
|
2091
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2092
|
+
AuthService,
|
|
2093
|
+
CartService,
|
|
2094
|
+
CatalogService,
|
|
2095
|
+
CategoryService,
|
|
2096
|
+
CheckoutService,
|
|
2097
|
+
CheckoutSubscriptionService,
|
|
2098
|
+
CouponService,
|
|
2099
|
+
HomeShopService,
|
|
2100
|
+
OrderService,
|
|
2101
|
+
ShippingService,
|
|
2102
|
+
WishlistService,
|
|
2103
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
|
|
2083
2104
|
}
|
|
2084
|
-
|
|
2085
|
-
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2086
|
-
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2087
|
-
AuthService,
|
|
2088
|
-
CartService,
|
|
2089
|
-
CatalogService,
|
|
2090
|
-
CategoryService,
|
|
2091
|
-
CheckoutService,
|
|
2092
|
-
CheckoutSubscriptionService,
|
|
2093
|
-
CouponService,
|
|
2094
|
-
HomeShopService,
|
|
2095
|
-
OrderService,
|
|
2096
|
-
ShippingService,
|
|
2097
|
-
WishlistService,
|
|
2098
|
-
], imports: [AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2100
2106
|
type: NgModule,
|
|
2101
2107
|
args: [{
|
|
2102
|
-
imports: [AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2108
|
+
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|
|
2103
2109
|
providers: [
|
|
2104
2110
|
AuthService,
|
|
2105
2111
|
CartService,
|