@infrab4a/connect-angular 4.1.0-beta.7 → 4.1.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular-firestore.module.d.ts +1 -1
- package/angular-hasura-graphql.module.d.ts +1 -1
- package/{esm2022 → esm2020}/angular-connect.module.mjs +17 -17
- package/esm2020/angular-elastic-search.module.mjs +34 -0
- package/esm2020/angular-firebase-auth.module.mjs +130 -0
- package/esm2020/angular-firestore.module.mjs +459 -0
- package/esm2020/angular-hasura-graphql.module.mjs +243 -0
- package/{esm2022 → esm2020}/services/auth.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/cart.service.mjs +4 -4
- package/esm2020/services/catalog/adapters/new-category-structure.adapter.mjs +41 -0
- package/{esm2022 → esm2020}/services/catalog/adapters/old-category-structure.adapter.mjs +4 -4
- package/{esm2022 → esm2020}/services/catalog/catalog.service.mjs +5 -5
- package/{esm2022 → esm2020}/services/catalog/category.service.mjs +5 -5
- package/esm2020/services/catalog/wishlist.service.mjs +106 -0
- package/{esm2022 → esm2020}/services/checkout-subscription.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/checkout.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/coupon.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/home-shop.service.mjs +11 -11
- package/{esm2022 → esm2020}/services/order.service.mjs +4 -4
- package/{esm2022 → esm2020}/services/shipping.service.mjs +4 -4
- package/fesm2015/infrab4a-connect-angular.mjs +2192 -0
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -0
- package/{fesm2022 → fesm2020}/infrab4a-connect-angular.mjs +440 -440
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -0
- package/package.json +16 -10
- package/services/cart.service.d.ts +1 -1
- package/services/catalog/adapters/new-category-structure.adapter.d.ts +3 -5
- package/services/catalog/catalog.service.d.ts +5 -5
- package/services/catalog/category.service.d.ts +1 -1
- package/services/catalog/types/product-sort.type.d.ts +1 -1
- package/services/catalog/wishlist.service.d.ts +4 -4
- 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/esm2022/angular-elastic-search.module.mjs +0 -34
- package/esm2022/angular-firebase-auth.module.mjs +0 -130
- package/esm2022/angular-firestore.module.mjs +0 -459
- package/esm2022/angular-hasura-graphql.module.mjs +0 -243
- package/esm2022/services/catalog/adapters/new-category-structure.adapter.mjs +0 -42
- package/esm2022/services/catalog/wishlist.service.mjs +0 -105
- 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/category-with-tree.model.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
|
@@ -26,17 +26,17 @@ class AngularElasticSeachModule {
|
|
|
26
26
|
providers: [{ provide: ES_CONFIG, useValue: options }],
|
|
27
27
|
};
|
|
28
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
29
|
}
|
|
39
|
-
i0.ɵɵ
|
|
30
|
+
AngularElasticSeachModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
31
|
+
AngularElasticSeachModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule });
|
|
32
|
+
AngularElasticSeachModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, providers: [
|
|
33
|
+
{
|
|
34
|
+
provide: ProductsIndex,
|
|
35
|
+
useFactory: (configuration) => new ProductsIndex(new AxiosAdapter(configuration)),
|
|
36
|
+
deps: [ES_CONFIG],
|
|
37
|
+
},
|
|
38
|
+
] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularElasticSeachModule, decorators: [{
|
|
40
40
|
type: NgModule,
|
|
41
41
|
args: [{
|
|
42
42
|
providers: [
|
|
@@ -70,60 +70,60 @@ class AngularFirebaseAuthModule {
|
|
|
70
70
|
],
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
deps: ['AuthenticationService', 'UserRepository'],
|
|
73
|
+
}
|
|
74
|
+
AngularFirebaseAuthModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
75
|
+
AngularFirebaseAuthModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, imports: [i1.FirebaseAppModule, i1$1.AuthModule] });
|
|
76
|
+
AngularFirebaseAuthModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, providers: [
|
|
77
|
+
{
|
|
78
|
+
provide: 'Authentication',
|
|
79
|
+
useFactory: (authenticationService, userRepository) => {
|
|
80
|
+
return new Authentication(authenticationService, userRepository);
|
|
82
81
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
82
|
+
deps: ['AuthenticationService', 'UserRepository'],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
provide: 'AuthenticationService',
|
|
86
|
+
useFactory: (angularFireAuth) => {
|
|
87
|
+
return new AuthenticationFirebaseAuthService(angularFireAuth);
|
|
89
88
|
},
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
89
|
+
deps: [Auth],
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
provide: 'Register',
|
|
93
|
+
useFactory: (registerService, userRepository) => {
|
|
94
|
+
return new Register(registerService, userRepository);
|
|
96
95
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
deps: ['RegisterService', 'UserRepository'],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
provide: 'RegisterService',
|
|
100
|
+
useFactory: (angularFireAuth) => {
|
|
101
|
+
return new RegisterFirebaseAuthService(angularFireAuth);
|
|
103
102
|
},
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
103
|
+
deps: [Auth],
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
provide: 'SignOut',
|
|
107
|
+
useFactory: (authenticationService) => {
|
|
108
|
+
return new SignOut(authenticationService);
|
|
110
109
|
},
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
110
|
+
deps: ['AuthenticationService'],
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
provide: 'RecoveryPassword',
|
|
114
|
+
useFactory: (authenticationService) => {
|
|
115
|
+
return new RecoveryPassword(authenticationService);
|
|
117
116
|
},
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
|
|
117
|
+
deps: ['AuthenticationService'],
|
|
118
|
+
},
|
|
119
|
+
], imports: [provideFirebaseApp((injector) => {
|
|
120
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
121
|
+
return appName
|
|
122
|
+
? initializeApp(injector.get(FIREBASE_OPTIONS), appName)
|
|
123
|
+
: initializeApp(injector.get(FIREBASE_OPTIONS));
|
|
124
|
+
}),
|
|
125
|
+
provideAuth(() => getAuth())] });
|
|
126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirebaseAuthModule, decorators: [{
|
|
127
127
|
type: NgModule,
|
|
128
128
|
args: [{
|
|
129
129
|
imports: [
|
|
@@ -200,222 +200,222 @@ class AngularFirestoreModule {
|
|
|
200
200
|
],
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const interval = setInterval(() => { }, 100);
|
|
215
|
-
request.interval = interval;
|
|
203
|
+
}
|
|
204
|
+
AngularFirestoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
205
|
+
AngularFirestoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, imports: [AngularElasticSeachModule, i1.FirebaseAppModule, i1$2.FirestoreModule] });
|
|
206
|
+
AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularFirestoreModule, providers: [
|
|
207
|
+
{
|
|
208
|
+
provide: 'FirestoreOptions',
|
|
209
|
+
useFactory: (firestore, platformId) => ({
|
|
210
|
+
firestore,
|
|
211
|
+
interceptors: {
|
|
212
|
+
request: (request) => {
|
|
213
|
+
if (isPlatformBrowser(platformId))
|
|
216
214
|
return request;
|
|
217
|
-
},
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
215
|
+
const interval = setInterval(() => { }, 100);
|
|
216
|
+
request.interval = interval;
|
|
217
|
+
return request;
|
|
218
|
+
},
|
|
219
|
+
response: (response, request) => {
|
|
220
|
+
if (isPlatformBrowser(platformId))
|
|
222
221
|
return response;
|
|
223
|
-
|
|
222
|
+
clearInterval(request.interval);
|
|
223
|
+
return response;
|
|
224
224
|
},
|
|
225
|
-
}),
|
|
226
|
-
deps: [Firestore, PLATFORM_ID],
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
provide: 'BeautyProfileRepository',
|
|
230
|
-
useFactory: (config, userRepository) => {
|
|
231
|
-
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
232
225
|
},
|
|
233
|
-
|
|
226
|
+
}),
|
|
227
|
+
deps: [Firestore, PLATFORM_ID],
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
provide: 'BeautyProfileRepository',
|
|
231
|
+
useFactory: (config, userRepository) => {
|
|
232
|
+
return new UserBeautyProfileFirestoreRepository(config, userRepository);
|
|
234
233
|
},
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
234
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
provide: 'Buy2WinRepository',
|
|
238
|
+
useFactory: (options) => {
|
|
239
|
+
return new Buy2WinFirestoreRepository(options);
|
|
241
240
|
},
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
deps: ['FirestoreOptions'],
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
provide: CategoryFirestoreRepository,
|
|
245
|
+
useFactory: (options) => {
|
|
246
|
+
return new CategoryFirestoreRepository(options);
|
|
248
247
|
},
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
248
|
+
deps: ['FirestoreOptions'],
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
provide: 'CheckoutRepository',
|
|
252
|
+
useFactory: (options) => {
|
|
253
|
+
return new CheckoutFirestoreRepository(options);
|
|
255
254
|
},
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
255
|
+
deps: ['FirestoreOptions'],
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
provide: 'CheckoutSubscriptionRepository',
|
|
259
|
+
useFactory: (options) => {
|
|
260
|
+
return new CheckoutSubscriptionFirestoreRepository(options);
|
|
262
261
|
},
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
262
|
+
deps: ['FirestoreOptions'],
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
provide: 'CouponRepository',
|
|
266
|
+
useFactory: (options) => {
|
|
267
|
+
return new CouponFirestoreRepository(options);
|
|
269
268
|
},
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
deps: ['FirestoreOptions'],
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
provide: 'CampaignHashtagRepository',
|
|
273
|
+
useFactory: (options) => {
|
|
274
|
+
return new CampaignHashtagFirestoreRepository(options);
|
|
276
275
|
},
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
276
|
+
deps: ['FirestoreOptions'],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
provide: 'CampaignDashboardRepository',
|
|
280
|
+
useFactory: (options) => {
|
|
281
|
+
return new CampaignDashboardFirestoreRepository(options);
|
|
283
282
|
},
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
283
|
+
deps: ['FirestoreOptions'],
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
provide: 'EditionRepository',
|
|
287
|
+
useFactory: (options, subscriptionRepository) => {
|
|
288
|
+
return new SubscriptionEditionFirestoreRepository(options, subscriptionRepository);
|
|
290
289
|
},
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
290
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
provide: 'HomeRepository',
|
|
294
|
+
useFactory: (options) => {
|
|
295
|
+
return new HomeFirestoreRepository(options);
|
|
297
296
|
},
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
deps: ['FirestoreOptions'],
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
provide: 'LeadRepository',
|
|
301
|
+
useFactory: (options) => {
|
|
302
|
+
return new LeadFirestoreRepository(options);
|
|
304
303
|
},
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
304
|
+
deps: ['FirestoreOptions'],
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
provide: 'LegacyOrderRepository',
|
|
308
|
+
useFactory: (options) => {
|
|
309
|
+
return new LegacyOrderFirestoreRepository(options);
|
|
311
310
|
},
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
311
|
+
deps: ['FirestoreOptions'],
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
provide: 'ShopMenuRepository',
|
|
315
|
+
useFactory: (options) => {
|
|
316
|
+
return new ShopMenuFirestoreRepository(options);
|
|
318
317
|
},
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
318
|
+
deps: ['FirestoreOptions'],
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
provide: 'OrderRepository',
|
|
322
|
+
useFactory: (options) => {
|
|
323
|
+
return new OrderFirestoreRepository(options);
|
|
325
324
|
},
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
325
|
+
deps: ['FirestoreOptions'],
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
provide: 'PaymentRepository',
|
|
329
|
+
useFactory: (options) => {
|
|
330
|
+
return new PaymentFirestoreRepository(options);
|
|
332
331
|
},
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
332
|
+
deps: ['FirestoreOptions'],
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
provide: ProductFirestoreRepository,
|
|
336
|
+
useFactory: (options) => {
|
|
337
|
+
return new ProductFirestoreRepository(options);
|
|
339
338
|
},
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
339
|
+
deps: ['FirestoreOptions'],
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
provide: 'ShopSettingsRepository',
|
|
343
|
+
useFactory: (options) => {
|
|
344
|
+
return new ShopSettingsFirestoreRepository(options);
|
|
346
345
|
},
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
346
|
+
deps: ['FirestoreOptions'],
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
provide: 'SubscriptionPaymentRepository',
|
|
350
|
+
useFactory: (options, subscriptionRepository) => {
|
|
351
|
+
return new SubscriptionPaymentFirestoreRepository(options, subscriptionRepository);
|
|
353
352
|
},
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
353
|
+
deps: ['FirestoreOptions', 'SubscriptionRepository'],
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
provide: 'SubscriptionPlanRepository',
|
|
357
|
+
useFactory: (options) => {
|
|
358
|
+
return new SubscriptionPlanFirestoreRepository(options);
|
|
360
359
|
},
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
360
|
+
deps: ['FirestoreOptions'],
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
provide: 'SubscriptionProductRepository',
|
|
364
|
+
useFactory: (options) => {
|
|
365
|
+
return new SubscriptionProductFirestoreRepository(options);
|
|
367
366
|
},
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
367
|
+
deps: ['FirestoreOptions'],
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
provide: 'SubscriptionRepository',
|
|
371
|
+
useFactory: (options) => {
|
|
372
|
+
return new SubscriptionFirestoreRepository(options);
|
|
374
373
|
},
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
374
|
+
deps: ['FirestoreOptions'],
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
provide: 'UserRepository',
|
|
378
|
+
useFactory: (options) => {
|
|
379
|
+
return new UserFirestoreRepository(options);
|
|
381
380
|
},
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
381
|
+
deps: ['FirestoreOptions'],
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
provide: 'UserAddressRepository',
|
|
385
|
+
useFactory: (options, userRepository) => {
|
|
386
|
+
return new UserAddressFirestoreRepository(options, userRepository);
|
|
388
387
|
},
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
388
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
provide: 'UserPaymentMethodRepository',
|
|
392
|
+
useFactory: (options, userRepository) => {
|
|
393
|
+
return new UserPaymentMethodFirestoreRepository(options, userRepository);
|
|
395
394
|
},
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
395
|
+
deps: ['FirestoreOptions', 'UserRepository'],
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
provide: ProductVariantFirestoreRepository,
|
|
399
|
+
useFactory: (options, productRepository) => {
|
|
400
|
+
return new ProductVariantFirestoreRepository(options, productRepository);
|
|
402
401
|
},
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
402
|
+
deps: ['FirestoreOptions', ProductFirestoreRepository],
|
|
403
|
+
},
|
|
404
|
+
], imports: [AngularElasticSeachModule,
|
|
405
|
+
provideFirebaseApp((injector) => {
|
|
406
|
+
const appName = injector.get(FIREBASE_APP_NAME);
|
|
407
|
+
return appName
|
|
408
|
+
? initializeApp$1(injector.get(FIREBASE_OPTIONS), appName)
|
|
409
|
+
: initializeApp$1(injector.get(FIREBASE_OPTIONS));
|
|
410
|
+
}),
|
|
411
|
+
provideFirestore((injector) => {
|
|
412
|
+
if (!MobileOperationSystemCheckerHelper.isAppleDevice())
|
|
413
|
+
return getFirestore();
|
|
414
|
+
const firestore = initializeFirestore(injector.get(FirebaseApp), { experimentalForceLongPolling: true });
|
|
415
|
+
enableIndexedDbPersistence(firestore).catch(console.error);
|
|
416
|
+
return firestore;
|
|
417
|
+
})] });
|
|
418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", 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
|
-
|
|
658
|
-
const interval = setInterval(() => { }, 100);
|
|
659
|
-
request.interval = interval;
|
|
646
|
+
}
|
|
647
|
+
AngularHasuraGraphQLModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
648
|
+
AngularHasuraGraphQLModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule });
|
|
649
|
+
AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, providers: [
|
|
650
|
+
{
|
|
651
|
+
provide: 'HasuraConfig',
|
|
652
|
+
useFactory: (options, platformId) => ({
|
|
653
|
+
endpoint: options.endpoint,
|
|
654
|
+
authOptions: options.credentials,
|
|
655
|
+
interceptors: {
|
|
656
|
+
request: (request) => {
|
|
657
|
+
if (isPlatformBrowser(platformId))
|
|
660
658
|
return request;
|
|
661
|
-
},
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
659
|
+
const interval = setInterval(() => { }, 100);
|
|
660
|
+
request.interval = interval;
|
|
661
|
+
return request;
|
|
662
|
+
},
|
|
663
|
+
response: (response, request) => {
|
|
664
|
+
if (isPlatformBrowser(platformId))
|
|
666
665
|
return response;
|
|
667
|
-
|
|
666
|
+
clearInterval(request.interval);
|
|
667
|
+
return response;
|
|
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);
|
|
680
|
-
},
|
|
681
|
-
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
682
|
-
},
|
|
683
|
-
{
|
|
684
|
-
provide: 'ProductRepository',
|
|
685
|
-
useExisting: ProductHasuraGraphQLRepository,
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
provide: ProductHasuraGraphQLRepository,
|
|
689
|
-
useFactory: (hasuraConfig) => {
|
|
690
|
-
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
691
|
-
},
|
|
692
|
-
deps: ['HasuraConfig'],
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
provide: 'VariantRepository',
|
|
696
|
-
useExisting: VariantHasuraGraphQLRepository,
|
|
697
|
-
},
|
|
698
|
-
{
|
|
699
|
-
provide: VariantHasuraGraphQLRepository,
|
|
700
|
-
useFactory: (hasuraConfig) => {
|
|
701
|
-
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
702
669
|
},
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
deps: ['HasuraConfig'],
|
|
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);
|
|
715
681
|
},
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
682
|
+
deps: ['HasuraConfig', ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
provide: 'ProductRepository',
|
|
686
|
+
useExisting: ProductHasuraGraphQLRepository,
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
provide: ProductHasuraGraphQLRepository,
|
|
690
|
+
useFactory: (hasuraConfig) => {
|
|
691
|
+
return new ProductHasuraGraphQLRepository(hasuraConfig);
|
|
719
692
|
},
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
693
|
+
deps: ['HasuraConfig'],
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
provide: 'VariantRepository',
|
|
697
|
+
useExisting: VariantHasuraGraphQLRepository,
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
provide: VariantHasuraGraphQLRepository,
|
|
701
|
+
useFactory: (hasuraConfig) => {
|
|
702
|
+
return new VariantHasuraGraphQLRepository(hasuraConfig);
|
|
726
703
|
},
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
704
|
+
deps: ['HasuraConfig'],
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
provide: 'CategoryFilterRepository',
|
|
708
|
+
useExisting: CategoryFilterHasuraGraphQLRepository,
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
provide: CategoryFilterHasuraGraphQLRepository,
|
|
712
|
+
useFactory: (options) => {
|
|
713
|
+
return new CategoryFilterHasuraGraphQLRepository(options);
|
|
730
714
|
},
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
715
|
+
deps: ['HasuraConfig'],
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
provide: 'FilterOptionRepository',
|
|
719
|
+
useExisting: FilterOptionHasuraGraphQLRepository,
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
provide: FilterOptionHasuraGraphQLRepository,
|
|
723
|
+
useFactory: (options) => {
|
|
724
|
+
return new FilterOptionHasuraGraphQLRepository(options);
|
|
737
725
|
},
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
726
|
+
deps: ['HasuraConfig'],
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
provide: 'FilterRepository',
|
|
730
|
+
useExisting: FilterHasuraGraphQLRepository,
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
provide: FilterHasuraGraphQLRepository,
|
|
734
|
+
useFactory: (options, filterOptionRepository, categoryFilterRepository) => {
|
|
735
|
+
return new FilterHasuraGraphQLRepository(options, filterOptionRepository, categoryFilterRepository);
|
|
742
736
|
},
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
737
|
+
deps: ['HasuraConfig', FilterOptionHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository],
|
|
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);
|
|
746
752
|
},
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
provide: 'WishlistRepository',
|
|
756
|
-
useExisting: WishlistHasuraGraphQLRepository,
|
|
757
|
-
},
|
|
758
|
-
] }); }
|
|
759
|
-
}
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
|
|
753
|
+
deps: ['HasuraConfig', CategoryFilterHasuraGraphQLRepository],
|
|
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: [{
|
|
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 }); }
|
|
900
898
|
}
|
|
901
|
-
i0.ɵɵ
|
|
899
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AuthService, deps: [{ token: i1$1.Auth }, { token: 'UserRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
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: [{
|
|
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' }); }
|
|
1099
1097
|
}
|
|
1100
|
-
i0.ɵɵ
|
|
1098
|
+
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 });
|
|
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: [{
|
|
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 }); }
|
|
1163
1161
|
}
|
|
1164
|
-
i0.ɵɵ
|
|
1162
|
+
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 });
|
|
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: [{
|
|
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 }); }
|
|
1430
1428
|
}
|
|
1431
|
-
i0.ɵɵ
|
|
1429
|
+
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 });
|
|
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: [{
|
|
1432
1432
|
type: Injectable
|
|
1433
1433
|
}], ctorParameters: function () { return [{ type: AuthService }, { type: CheckoutService }, { type: i1$3.Shops, decorators: [{
|
|
1434
1434
|
type: Inject,
|
|
@@ -1545,13 +1545,13 @@ class CatalogService {
|
|
|
1545
1545
|
return { tags: { operator: Where.LIKE, value: profile } };
|
|
1546
1546
|
if (term)
|
|
1547
1547
|
return this.productIndex
|
|
1548
|
-
.search(term,
|
|
1548
|
+
.search(term, 999, this.shop)
|
|
1549
1549
|
.then((data) => ({ id: { operator: Where.IN, value: data.hits.map(({ _source }) => _source.id) } }));
|
|
1550
1550
|
}
|
|
1551
|
-
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 }); }
|
|
1552
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CatalogService }); }
|
|
1553
1551
|
}
|
|
1554
|
-
i0.ɵɵ
|
|
1552
|
+
CatalogService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }, { token: DEFAULT_SHOP }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1553
|
+
CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService });
|
|
1554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
|
|
1555
1555
|
type: Injectable
|
|
1556
1556
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1557
1557
|
type: Inject,
|
|
@@ -1583,15 +1583,15 @@ class CategoryService {
|
|
|
1583
1583
|
.find({ filters: { brandCategory: true }, orderBy: { name: 'asc' } })
|
|
1584
1584
|
.then(({ data }) => data.filter((category) => brands.includes(category.conditions.brand)));
|
|
1585
1585
|
}
|
|
1586
|
-
async fetchFilterOptions(category
|
|
1586
|
+
async fetchFilterOptions(category) {
|
|
1587
1587
|
return await this.categoryFilterRepository
|
|
1588
1588
|
.find({ filters: { categoryId: +category.id } })
|
|
1589
1589
|
.then(({ data }) => data.map((categoryFilter) => categoryFilter.filter));
|
|
1590
1590
|
}
|
|
1591
|
-
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 }); }
|
|
1592
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CategoryService }); }
|
|
1593
1591
|
}
|
|
1594
|
-
i0.ɵɵ
|
|
1592
|
+
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 });
|
|
1593
|
+
CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService });
|
|
1594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
|
|
1595
1595
|
type: Injectable
|
|
1596
1596
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1597
1597
|
type: Inject,
|
|
@@ -1647,42 +1647,41 @@ class UtilHelper {
|
|
|
1647
1647
|
}
|
|
1648
1648
|
|
|
1649
1649
|
class NewCategoryStructureAdapter {
|
|
1650
|
-
constructor(categoryRepository
|
|
1650
|
+
constructor(categoryRepository) {
|
|
1651
1651
|
this.categoryRepository = categoryRepository;
|
|
1652
|
-
this.categoryCollectionChildrenRepository = categoryCollectionChildrenRepository;
|
|
1653
1652
|
}
|
|
1654
1653
|
async buildProductFilterByCategory(category) {
|
|
1655
|
-
const
|
|
1656
|
-
|
|
1657
|
-
:
|
|
1658
|
-
|
|
1654
|
+
const loadedCategory = await this.getCategory(category);
|
|
1655
|
+
if (loadedCategory.isCollection)
|
|
1656
|
+
return { id: { operator: Where.IN, value: loadedCategory.products } };
|
|
1657
|
+
const categoryIds = [...(await this.getAllCategoriesIdFromCategory(category)), category.id.toString()];
|
|
1658
|
+
return {
|
|
1659
|
+
category: {
|
|
1660
|
+
id: {
|
|
1661
|
+
operator: Where.IN,
|
|
1662
|
+
value: categoryIds,
|
|
1663
|
+
},
|
|
1664
|
+
},
|
|
1665
|
+
};
|
|
1659
1666
|
}
|
|
1660
1667
|
async getAllCategoriesIdFromCategory(category) {
|
|
1661
1668
|
return this.categoryRepository
|
|
1662
1669
|
.getChildren(+category.id)
|
|
1663
1670
|
.then((categories) => categories.map((category) => category.id.toString()));
|
|
1664
1671
|
}
|
|
1665
|
-
async
|
|
1666
|
-
return
|
|
1667
|
-
.
|
|
1668
|
-
|
|
1672
|
+
async getCategory(category) {
|
|
1673
|
+
return isNil(category.isCollection) || (category.isCollection && !category.products?.length)
|
|
1674
|
+
? this.categoryRepository.get({ id: category.id })
|
|
1675
|
+
: category;
|
|
1669
1676
|
}
|
|
1670
|
-
async isCollection(category) {
|
|
1671
|
-
return !isNil(category.isCollection)
|
|
1672
|
-
? category.isCollection
|
|
1673
|
-
: this.categoryRepository.get({ id: category.id }).then((category) => category.isCollection);
|
|
1674
|
-
}
|
|
1675
|
-
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 }); }
|
|
1676
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: NewCategoryStructureAdapter }); }
|
|
1677
1677
|
}
|
|
1678
|
-
i0.ɵɵ
|
|
1678
|
+
NewCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1679
|
+
NewCategoryStructureAdapter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter });
|
|
1680
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: NewCategoryStructureAdapter, decorators: [{
|
|
1679
1681
|
type: Injectable
|
|
1680
1682
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1681
1683
|
type: Inject,
|
|
1682
1684
|
args: ['CategoryRepository']
|
|
1683
|
-
}] }, { type: undefined, decorators: [{
|
|
1684
|
-
type: Inject,
|
|
1685
|
-
args: ['CategoryCollectionChildrenRepository']
|
|
1686
1685
|
}] }]; } });
|
|
1687
1686
|
|
|
1688
1687
|
class OldCategoryStructureAdapter {
|
|
@@ -1695,10 +1694,10 @@ class OldCategoryStructureAdapter {
|
|
|
1695
1694
|
: await this.categoryRepository.get({ id: category.id }).then((categoryFound) => categoryFound.products);
|
|
1696
1695
|
return { id: { operator: Where.IN, value: productsIds } };
|
|
1697
1696
|
}
|
|
1698
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1699
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OldCategoryStructureAdapter }); }
|
|
1700
1697
|
}
|
|
1701
|
-
i0.ɵɵ
|
|
1698
|
+
OldCategoryStructureAdapter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OldCategoryStructureAdapter, deps: [{ token: 'CategoryRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
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: [{
|
|
1702
1701
|
type: Injectable
|
|
1703
1702
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1704
1703
|
type: Inject,
|
|
@@ -1706,10 +1705,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImpor
|
|
|
1706
1705
|
}] }]; } });
|
|
1707
1706
|
|
|
1708
1707
|
class WishlistService {
|
|
1709
|
-
constructor(wishlistRepository, shop, productRepository, categoryFilterRepository,
|
|
1708
|
+
constructor(wishlistRepository, shop, productRepository, categoryFilterRepository, productIndex) {
|
|
1710
1709
|
this.wishlistRepository = wishlistRepository;
|
|
1711
1710
|
this.shop = shop;
|
|
1712
|
-
const categoryStructureAdapter = new NewCategoryStructureAdapter(wishlistRepository
|
|
1711
|
+
const categoryStructureAdapter = new NewCategoryStructureAdapter(wishlistRepository);
|
|
1713
1712
|
this.catalogService = new CatalogService(productRepository, categoryStructureAdapter, shop, productIndex);
|
|
1714
1713
|
this.categoryService = new CategoryService(productRepository, wishlistRepository, categoryFilterRepository, categoryStructureAdapter, shop);
|
|
1715
1714
|
}
|
|
@@ -1719,9 +1718,9 @@ class WishlistService {
|
|
|
1719
1718
|
getCategoryService() {
|
|
1720
1719
|
return this.categoryService;
|
|
1721
1720
|
}
|
|
1722
|
-
async create(personId, title, description, userFullName) {
|
|
1721
|
+
async create(personId, title, description, userFullName, userPhoto) {
|
|
1723
1722
|
const data = {
|
|
1724
|
-
slug: UtilHelper.createSlug(`favoritos ${
|
|
1723
|
+
slug: UtilHelper.createSlug(`favoritos ${title}`),
|
|
1725
1724
|
name: title,
|
|
1726
1725
|
description,
|
|
1727
1726
|
metadata: {
|
|
@@ -1731,22 +1730,26 @@ class WishlistService {
|
|
|
1731
1730
|
shop: this.shop,
|
|
1732
1731
|
shops: [this.shop],
|
|
1733
1732
|
personId,
|
|
1733
|
+
personName: userFullName,
|
|
1734
|
+
personPhoto: userPhoto,
|
|
1734
1735
|
brandCategory: false,
|
|
1735
1736
|
published: true,
|
|
1736
1737
|
};
|
|
1737
1738
|
const newWishlist = await this.wishlistRepository.create(data);
|
|
1738
1739
|
return this.wishlistRepository.update({ id: newWishlist.id, slug: `${newWishlist.id}-${newWishlist.slug}` });
|
|
1739
1740
|
}
|
|
1740
|
-
update(id, title, description, userFullName) {
|
|
1741
|
+
update(id, title, description, userFullName, userPhoto) {
|
|
1741
1742
|
const data = {
|
|
1742
1743
|
id,
|
|
1743
|
-
slug: UtilHelper.createSlug(`${id}-favoritos ${
|
|
1744
|
+
slug: UtilHelper.createSlug(`${id}-favoritos ${title}`),
|
|
1744
1745
|
name: title,
|
|
1745
1746
|
description,
|
|
1746
1747
|
metadata: {
|
|
1747
1748
|
title: `${userFullName} - ${title}`,
|
|
1748
1749
|
description: `${userFullName} - ${description}`,
|
|
1749
1750
|
},
|
|
1751
|
+
personName: userFullName,
|
|
1752
|
+
personPhoto: userPhoto,
|
|
1750
1753
|
};
|
|
1751
1754
|
return this.wishlistRepository.update(data);
|
|
1752
1755
|
}
|
|
@@ -1779,10 +1782,10 @@ class WishlistService {
|
|
|
1779
1782
|
}
|
|
1780
1783
|
return wishlist;
|
|
1781
1784
|
}
|
|
1782
|
-
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 }); }
|
|
1783
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: WishlistService }); }
|
|
1784
1785
|
}
|
|
1785
|
-
i0.ɵɵ
|
|
1786
|
+
WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: DEFAULT_SHOP }, { token: 'ProductRepository' }, { token: 'CategoryFilterRepository' }, { token: i1$3.ProductsIndex }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1787
|
+
WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
|
|
1788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
|
|
1786
1789
|
type: Injectable
|
|
1787
1790
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1788
1791
|
type: Inject,
|
|
@@ -1796,9 +1799,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImpor
|
|
|
1796
1799
|
}] }, { type: undefined, decorators: [{
|
|
1797
1800
|
type: Inject,
|
|
1798
1801
|
args: ['CategoryFilterRepository']
|
|
1799
|
-
}] }, { type: undefined, decorators: [{
|
|
1800
|
-
type: Inject,
|
|
1801
|
-
args: ['CategoryCollectionChildrenRepository']
|
|
1802
1802
|
}] }, { type: i1$3.ProductsIndex }]; } });
|
|
1803
1803
|
|
|
1804
1804
|
class CheckoutSubscriptionService {
|
|
@@ -1833,10 +1833,10 @@ class CheckoutSubscriptionService {
|
|
|
1833
1833
|
calcDiscountSubscription(coupon) {
|
|
1834
1834
|
return this.getCheckoutSubscription().pipe(concatMap((checkout) => this.couponService.calcDiscountSubscription(coupon, checkout).pipe()));
|
|
1835
1835
|
}
|
|
1836
|
-
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 }); }
|
|
1837
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: CheckoutSubscriptionService }); }
|
|
1838
1836
|
}
|
|
1839
|
-
i0.ɵɵ
|
|
1837
|
+
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 });
|
|
1838
|
+
CheckoutSubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService });
|
|
1839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CheckoutSubscriptionService, decorators: [{
|
|
1840
1840
|
type: Injectable
|
|
1841
1841
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1842
1842
|
type: Inject,
|
|
@@ -1847,13 +1847,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.6", ngImpor
|
|
|
1847
1847
|
}] }, { type: CouponService }]; } });
|
|
1848
1848
|
|
|
1849
1849
|
class HomeShopService {
|
|
1850
|
-
get homeId() {
|
|
1851
|
-
if (this.defaultShop === Shops.GLAMSHOP)
|
|
1852
|
-
return 'glamshop';
|
|
1853
|
-
if (this.defaultShop === Shops.MENSMARKET)
|
|
1854
|
-
return 'mens_market';
|
|
1855
|
-
return null;
|
|
1856
|
-
}
|
|
1857
1850
|
constructor(categoryRepository, homeRepository, productRepository, defaultShop) {
|
|
1858
1851
|
this.categoryRepository = categoryRepository;
|
|
1859
1852
|
this.homeRepository = homeRepository;
|
|
@@ -1879,6 +1872,13 @@ class HomeShopService {
|
|
|
1879
1872
|
]))) || [],
|
|
1880
1873
|
});
|
|
1881
1874
|
}
|
|
1875
|
+
get homeId() {
|
|
1876
|
+
if (this.defaultShop === Shops.GLAMSHOP)
|
|
1877
|
+
return 'glamshop';
|
|
1878
|
+
if (this.defaultShop === Shops.MENSMARKET)
|
|
1879
|
+
return 'mens_market';
|
|
1880
|
+
return null;
|
|
1881
|
+
}
|
|
1882
1882
|
getHomeData() {
|
|
1883
1883
|
return this.getHomeConfiguration().pipe(map((home) => (home?.data?.expiresAt > new Date() ? home : null)), concatMap((home) => home
|
|
1884
1884
|
? of(home)
|
|
@@ -1934,10 +1934,10 @@ class HomeShopService {
|
|
|
1934
1934
|
data,
|
|
1935
1935
|
})).pipe(tap(() => (this.homeConfiguration.data = data)), map(() => this.homeConfiguration));
|
|
1936
1936
|
}
|
|
1937
|
-
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 }); }
|
|
1938
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: HomeShopService }); }
|
|
1939
1937
|
}
|
|
1940
|
-
i0.ɵɵ
|
|
1938
|
+
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 });
|
|
1939
|
+
HomeShopService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService });
|
|
1940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: HomeShopService, decorators: [{
|
|
1941
1941
|
type: Injectable
|
|
1942
1942
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1943
1943
|
type: Inject,
|
|
@@ -1965,10 +1965,10 @@ class OrderService {
|
|
|
1965
1965
|
.subscribe((doc) => this.orderSubject.next(doc));
|
|
1966
1966
|
return this.orderSubject;
|
|
1967
1967
|
}
|
|
1968
|
-
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 }); }
|
|
1969
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrderService }); }
|
|
1970
1968
|
}
|
|
1971
|
-
i0.ɵɵ
|
|
1969
|
+
OrderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, deps: [{ token: i1$2.Firestore }, { token: 'OrderRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1970
|
+
OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService });
|
|
1971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
|
|
1972
1972
|
type: Injectable
|
|
1973
1973
|
}], ctorParameters: function () { return [{ type: i1$2.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
|
|
1974
1974
|
type: Inject,
|
|
@@ -2051,10 +2051,10 @@ class ShippingService {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
return false;
|
|
2053
2053
|
}
|
|
2054
|
-
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 }); }
|
|
2055
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: ShippingService }); }
|
|
2056
2054
|
}
|
|
2057
|
-
i0.ɵɵ
|
|
2055
|
+
ShippingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, deps: [{ token: i1$4.HttpClient }, { token: BACKEND_URL }, { token: HomeShopService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2056
|
+
ShippingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService });
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ShippingService, decorators: [{
|
|
2058
2058
|
type: Injectable
|
|
2059
2059
|
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: undefined, decorators: [{
|
|
2060
2060
|
type: Inject,
|
|
@@ -2081,23 +2081,23 @@ class AngularConnectModule {
|
|
|
2081
2081
|
],
|
|
2082
2082
|
};
|
|
2083
2083
|
}
|
|
2084
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2085
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.6", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
|
|
2086
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.6", 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: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] }); }
|
|
2099
2084
|
}
|
|
2100
|
-
i0.ɵɵ
|
|
2085
|
+
AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2086
|
+
AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2087
|
+
AngularConnectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, providers: [
|
|
2088
|
+
AuthService,
|
|
2089
|
+
CartService,
|
|
2090
|
+
CatalogService,
|
|
2091
|
+
CategoryService,
|
|
2092
|
+
CheckoutService,
|
|
2093
|
+
CheckoutSubscriptionService,
|
|
2094
|
+
CouponService,
|
|
2095
|
+
HomeShopService,
|
|
2096
|
+
OrderService,
|
|
2097
|
+
ShippingService,
|
|
2098
|
+
WishlistService,
|
|
2099
|
+
], imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule] });
|
|
2100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, decorators: [{
|
|
2101
2101
|
type: NgModule,
|
|
2102
2102
|
args: [{
|
|
2103
2103
|
imports: [AngularElasticSeachModule, AngularFirebaseAuthModule, AngularFirestoreModule, AngularHasuraGraphQLModule],
|