@infrab4a/connect-angular 5.5.0-beta.9 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,13 +1,13 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { NgModule, InjectionToken, PLATFORM_ID, Injectable, Inject } from '@angular/core';
3
- import * as i1$4 from '@angular/fire/app';
3
+ import * as i1$3 from '@angular/fire/app';
4
4
  import { FirebaseApp, provideFirebaseApp, getApp, initializeApp } from '@angular/fire/app';
5
5
  import * as i2 from '@angular/fire/app-check';
6
6
  import { provideAppCheck, initializeAppCheck } from '@angular/fire/app-check';
7
- import * as i3 from '@angular/fire/storage';
7
+ import * as i3$1 from '@angular/fire/storage';
8
8
  import { Storage, provideStorage, getStorage } from '@angular/fire/storage';
9
- import * as i1$3 from '@infrab4a/connect';
10
- import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, SequenceFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductErrorsHasuraGraphQLRepository, ProductCatalogHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, isNil, NotFoundError, Checkout, pick, LineItem, Where, isEmpty, Shops, set, InvalidArgumentError, RoundProductPricesHelper, Category, WishlistLogType, PersonTypes, Wishlist, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, CheckoutSubscription, Product, RequiredArgumentError, add, ProductReview, Order, UpdateUserImage, FirebaseFileUploaderService } from '@infrab4a/connect';
9
+ import * as i3 from '@infrab4a/connect';
10
+ import { ProductsIndex, AxiosAdapter, Authentication, AuthenticationFirebaseAuthService, Register, RegisterFirebaseAuthService, SignOut, RecoveryPassword, ConnectFirestoreService, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, GroupFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, OrderBlockedFirestoreRepository, LogFirestoreRepository, SequenceFirestoreRepository, BrandCategoryFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewHasuraGraphQLRepository, VariantHasuraGraphQLRepository, ProductStockNotificationHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, CategoryProductHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, ProductErrorsHasuraGraphQLRepository, ProductsVertexSearch, VertexAxiosAdapter, isNil, NotFoundError, Checkout, pick, LineItem, Where, isEmpty, Shops, set, InvalidArgumentError, RoundProductPricesHelper, Category, WishlistLogType, PersonTypes, Wishlist, CheckoutTypes, CouponTypes, Exclusivities, OrderStatus, CheckoutSubscription, Product, RequiredArgumentError, add, ProductReview, Order, UpdateUserImage, FirebaseFileUploaderService } from '@infrab4a/connect';
11
11
  import * as i1 from '@angular/fire/auth';
12
12
  import { Auth, provideAuth, initializeAuth, indexedDBLocalPersistence, browserLocalPersistence, browserSessionPersistence, getAuth, getIdToken, authState } from '@angular/fire/auth';
13
13
  import { isPlatformBrowser, isPlatformServer } from '@angular/common';
@@ -464,6 +464,13 @@ AngularFirestoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
464
464
  },
465
465
  deps: ['FirestoreOptions'],
466
466
  },
467
+ {
468
+ provide: 'BrandCategoryRepository',
469
+ useFactory: (options) => {
470
+ return new BrandCategoryFirestoreRepository(options);
471
+ },
472
+ deps: ['FirestoreOptions'],
473
+ },
467
474
  ], imports: [AngularElasticSeachModule,
468
475
  provideFirestore((injector) => {
469
476
  const platformId = injector.get(PLATFORM_ID);
@@ -737,6 +744,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
737
744
  },
738
745
  deps: ['FirestoreOptions'],
739
746
  },
747
+ {
748
+ provide: 'BrandCategoryRepository',
749
+ useFactory: (options) => {
750
+ return new BrandCategoryFirestoreRepository(options);
751
+ },
752
+ deps: ['FirestoreOptions'],
753
+ },
740
754
  ],
741
755
  }]
742
756
  }] });
@@ -906,17 +920,6 @@ AngularHasuraGraphQLModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.
906
920
  provide: 'ProductErrorsRepository',
907
921
  useExisting: ProductErrorsHasuraGraphQLRepository,
908
922
  },
909
- {
910
- provide: ProductCatalogHasuraGraphQLRepository,
911
- useFactory: (options) => {
912
- return new ProductCatalogHasuraGraphQLRepository(options);
913
- },
914
- deps: ['HasuraConfig'],
915
- },
916
- {
917
- provide: 'ProductCatalogRepository',
918
- useExisting: ProductCatalogHasuraGraphQLRepository,
919
- },
920
923
  ] });
921
924
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularHasuraGraphQLModule, decorators: [{
922
925
  type: NgModule,
@@ -1076,17 +1079,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
1076
1079
  provide: 'ProductErrorsRepository',
1077
1080
  useExisting: ProductErrorsHasuraGraphQLRepository,
1078
1081
  },
1079
- {
1080
- provide: ProductCatalogHasuraGraphQLRepository,
1081
- useFactory: (options) => {
1082
- return new ProductCatalogHasuraGraphQLRepository(options);
1083
- },
1084
- deps: ['HasuraConfig'],
1085
- },
1086
- {
1087
- provide: 'ProductCatalogRepository',
1088
- useExisting: ProductCatalogHasuraGraphQLRepository,
1089
- },
1090
1082
  ],
1091
1083
  }]
1092
1084
  }] });
@@ -1227,7 +1219,7 @@ ConfigurationFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0",
1227
1219
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ConfigurationFacade, decorators: [{
1228
1220
  type: Injectable
1229
1221
  }], ctorParameters: function () {
1230
- return [{ type: i1$3.Shops, decorators: [{
1222
+ return [{ type: i3.Shops, decorators: [{
1231
1223
  type: Inject,
1232
1224
  args: [DEFAULT_SHOP]
1233
1225
  }] }, { type: undefined, decorators: [{
@@ -1312,7 +1304,7 @@ class CheckoutService {
1312
1304
  })), concatMap(() => this.getCheckout()));
1313
1305
  }
1314
1306
  createOrder(checkoutPayload, paymentProvider, applicationVersion) {
1315
- return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkoutV5`, {
1307
+ return this.dependenciesFacade.httpClient.post(`${this.checkoutUrl}/checkout`, {
1316
1308
  data: Object.assign(Object.assign({}, checkoutPayload), { applicationVersion,
1317
1309
  paymentProvider }),
1318
1310
  });
@@ -1585,14 +1577,14 @@ class CategorySearchStrategy {
1585
1577
  maximum: ['price'],
1586
1578
  distinct: ['brand'],
1587
1579
  } });
1588
- return productCatalog.productCatalogRepository.findCatalog(repoParams, null, optionsCache);
1580
+ return productCatalog.productRepository.findCatalog(repoParams, null, optionsCache);
1589
1581
  });
1590
1582
  }
1591
1583
  getProductIds(category, filters, optionsCache) {
1592
1584
  return __awaiter(this, void 0, void 0, function* () {
1593
1585
  const productCatalog = this.repositoryService.getProductCatalog();
1594
1586
  const filterHelper = this.helpersService.getFilterHelper();
1595
- return productCatalog.productCatalogRepository
1587
+ return productCatalog.productRepository
1596
1588
  .findCatalog({
1597
1589
  fields: ['id'],
1598
1590
  filters: Object.assign(Object.assign({}, (yield productCatalog.categoryStructureAdapter.buildProductFilterByCategory(category))), filterHelper.buildFilterQuery(filters || {})),
@@ -1607,7 +1599,7 @@ class CategorySearchStrategy {
1607
1599
  const filterHelper = this.helpersService.getFilterHelper();
1608
1600
  const sortHelper = this.helpersService.getSortHelper();
1609
1601
  const mostRelevantProductsIds = [...new Set(mostRelevants.concat(productIds))];
1610
- const totalResult = yield productCatalog.productCatalogRepository.findCatalog({
1602
+ const totalResult = yield productCatalog.productRepository.findCatalog({
1611
1603
  fields,
1612
1604
  filters: Object.assign({ id: { operator: Where.IN, value: mostRelevantProductsIds } }, filterHelper.buildFilterQuery(filters || {})),
1613
1605
  orderBy: sortHelper.buildSortQuery('best-sellers'),
@@ -1661,7 +1653,7 @@ class ProfileSearchStrategy {
1661
1653
  maximum: ['price'],
1662
1654
  distinct: ['brand'],
1663
1655
  } });
1664
- return productCatalog.productCatalogRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1656
+ return productCatalog.productRepository.findCatalog(repoParams, mainGender || (shop === Shops.MENSMARKET ? 'male' : 'female'), optionsCache);
1665
1657
  });
1666
1658
  }
1667
1659
  }
@@ -1708,7 +1700,7 @@ class TermSearchStrategy {
1708
1700
  const { productIds, filters, shop, mainGender } = params;
1709
1701
  const productCatalog = this.repositoryService.getProductCatalog();
1710
1702
  const filterHelper = this.helpersService.getFilterHelper();
1711
- const totalResult = yield productCatalog.productCatalogRepository.findCatalog({
1703
+ const totalResult = yield productCatalog.productRepository.findCatalog({
1712
1704
  fields: ['id', 'stock', 'gender'],
1713
1705
  filters: Object.assign({ id: { operator: Where.IN, value: productIds }, published: { operator: Where.EQUALS, value: true } }, filterHelper.buildFilterQuery(filters || {})),
1714
1706
  options: Object.assign({ minimal: ['price'], maximum: ['price'] }, (isEmpty(filters === null || filters === void 0 ? void 0 : filters.brands) ? { distinct: ['brand'] } : {})),
@@ -1727,7 +1719,7 @@ class TermSearchStrategy {
1727
1719
  const { productIds, filters, limits, shop, mainGender, fields } = params;
1728
1720
  const productCatalog = this.repositoryService.getProductCatalog();
1729
1721
  const filterHelper = this.helpersService.getFilterHelper();
1730
- return productCatalog.productCatalogRepository.findCatalog({
1722
+ return productCatalog.productRepository.findCatalog({
1731
1723
  fields,
1732
1724
  filters: Object.assign({ id: { operator: Where.IN, value: productIds }, published: { operator: Where.EQUALS, value: true } }, filterHelper.buildFilterQuery(filters || {})),
1733
1725
  limits,
@@ -1755,7 +1747,7 @@ class TermSearchStrategy {
1755
1747
  return __awaiter(this, void 0, void 0, function* () {
1756
1748
  const productCatalog = this.repositoryService.getProductCatalog();
1757
1749
  const fields = fieldsHelper.getStandardFields();
1758
- const productResult = yield productCatalog.productCatalogRepository.findCatalog({
1750
+ const productResult = yield productCatalog.productRepository.findCatalog({
1759
1751
  filters: {
1760
1752
  id: { operator: Where.IN, value: orderedId },
1761
1753
  },
@@ -1817,7 +1809,7 @@ CatalogServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0",
1817
1809
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogServiceFacade, decorators: [{
1818
1810
  type: Injectable
1819
1811
  }], ctorParameters: function () {
1820
- return [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i1$3.Shops, decorators: [{
1812
+ return [{ type: CatalogHelpersService }, { type: CatalogStrategiesFacade }, { type: i3.Shops, decorators: [{
1821
1813
  type: Inject,
1822
1814
  args: [DEFAULT_SHOP]
1823
1815
  }] }];
@@ -1851,7 +1843,7 @@ class CategoryService {
1851
1843
  }
1852
1844
  fetchBrands(category, options, optionsCache) {
1853
1845
  return __awaiter(this, void 0, void 0, function* () {
1854
- const brands = yield this.productCatalog.productCatalogRepository
1846
+ const brands = yield this.productCatalog.productRepository
1855
1847
  .findCatalog({
1856
1848
  filters: yield this.productCatalog.categoryStructureAdapter.buildProductFilterByCategory(category),
1857
1849
  fields: ['brand'],
@@ -1880,26 +1872,26 @@ CategoryService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", vers
1880
1872
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryService, decorators: [{
1881
1873
  type: Injectable
1882
1874
  }], ctorParameters: function () {
1883
- return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i1$3.Shops, decorators: [{
1875
+ return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1884
1876
  type: Inject,
1885
1877
  args: [DEFAULT_SHOP]
1886
1878
  }] }];
1887
1879
  } });
1888
1880
 
1889
1881
  class ProductCatalogFacade {
1890
- constructor(productCatalogRepository, categoryStructureAdapter) {
1891
- this.productCatalogRepository = productCatalogRepository;
1882
+ constructor(productRepository, categoryStructureAdapter) {
1883
+ this.productRepository = productRepository;
1892
1884
  this.categoryStructureAdapter = categoryStructureAdapter;
1893
1885
  }
1894
1886
  }
1895
- ProductCatalogFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductCatalogRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable });
1887
+ ProductCatalogFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, deps: [{ token: 'ProductRepository' }, { token: CATEGORY_STRUCTURE }], target: i0.ɵɵFactoryTarget.Injectable });
1896
1888
  ProductCatalogFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade });
1897
1889
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: ProductCatalogFacade, decorators: [{
1898
1890
  type: Injectable
1899
1891
  }], ctorParameters: function () {
1900
1892
  return [{ type: undefined, decorators: [{
1901
1893
  type: Inject,
1902
- args: ['ProductCatalogRepository']
1894
+ args: ['ProductRepository']
1903
1895
  }] }, { type: undefined, decorators: [{
1904
1896
  type: Inject,
1905
1897
  args: [CATEGORY_STRUCTURE]
@@ -1922,7 +1914,7 @@ CategoryServiceFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0"
1922
1914
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CategoryServiceFacade, decorators: [{
1923
1915
  type: Injectable
1924
1916
  }], ctorParameters: function () {
1925
- return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i1$3.Shops, decorators: [{
1917
+ return [{ type: CategoryRepositoryFacade }, { type: ProductCatalogFacade }, { type: i3.Shops, decorators: [{
1926
1918
  type: Inject,
1927
1919
  args: [DEFAULT_SHOP]
1928
1920
  }] }];
@@ -1941,13 +1933,7 @@ class BrandManagerHelper {
1941
1933
  if (isEmpty(brands) && options.filters) {
1942
1934
  delete options.filters.brands;
1943
1935
  }
1944
- if (!this.brandsList[indexKey] && !brands) {
1945
- this.brandsList[indexKey] = yield this.fetchBrandsOnly(options);
1946
- }
1947
- else {
1948
- this.brandsList[indexKey] = this.brandsList[indexKey] || brands;
1949
- }
1950
- // this.brandsList[indexKey] = this.brandsList[indexKey] || brands || (await this.fetchBrandsOnly(options))
1936
+ this.brandsList[indexKey] = this.brandsList[indexKey] || brands || (yield this.fetchBrandsOnly(options));
1951
1937
  this.brandsList[indexKey] = this.brandsList[indexKey].filter(Boolean);
1952
1938
  if (options.filters) {
1953
1939
  options.filters = Object.assign(Object.assign({}, options.filters), { brands: filterBrands });
@@ -1968,12 +1954,14 @@ class BrandManagerHelper {
1968
1954
  }
1969
1955
  fetchBrandsOnly(options) {
1970
1956
  return __awaiter(this, void 0, void 0, function* () {
1971
- return this.productCatalog.productCatalogRepository
1957
+ let filters = {};
1958
+ if (options.category) {
1959
+ filters = yield this.productCatalog.categoryStructureAdapter.buildProductFilterByCategory(options.category);
1960
+ }
1961
+ return this.productCatalog.productRepository
1972
1962
  .findCatalog({
1973
1963
  fields: ['id'],
1974
- filters: {
1975
- published: { operator: Where.EQUALS, value: true },
1976
- },
1964
+ filters: Object.assign(Object.assign({}, filters), { published: { operator: Where.EQUALS, value: true } }),
1977
1965
  options: {
1978
1966
  distinct: ['brand'],
1979
1967
  },
@@ -2087,7 +2075,6 @@ class ProductFieldsHelper {
2087
2075
  'name',
2088
2076
  'slug',
2089
2077
  'images',
2090
- 'imagesCard',
2091
2078
  'miniatures',
2092
2079
  'price',
2093
2080
  'stock',
@@ -2110,7 +2097,6 @@ class ProductFieldsHelper {
2110
2097
  'label',
2111
2098
  'outlet',
2112
2099
  'group',
2113
- 'variantSlug',
2114
2100
  ];
2115
2101
  }
2116
2102
  }
@@ -2319,7 +2305,7 @@ CatalogService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", versi
2319
2305
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: CatalogService, decorators: [{
2320
2306
  type: Injectable
2321
2307
  }], ctorParameters: function () {
2322
- return [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i1$3.Shops, decorators: [{
2308
+ return [{ type: CatalogSearchContext }, { type: CatalogHelpersService }, { type: i3.Shops, decorators: [{
2323
2309
  type: Inject,
2324
2310
  args: [DEFAULT_SHOP]
2325
2311
  }] }];
@@ -2344,10 +2330,9 @@ __decorate([
2344
2330
  ], CategoryWithTree.prototype, "children", void 0);
2345
2331
 
2346
2332
  class WishlistService {
2347
- constructor(wishlistRepository, productRepository, productCatalogRepository, logRepository, shop) {
2333
+ constructor(wishlistRepository, productRepository, logRepository, shop) {
2348
2334
  this.wishlistRepository = wishlistRepository;
2349
2335
  this.productRepository = productRepository;
2350
- this.productCatalogRepository = productCatalogRepository;
2351
2336
  this.logRepository = logRepository;
2352
2337
  this.shop = shop;
2353
2338
  }
@@ -2515,7 +2500,7 @@ class WishlistService {
2515
2500
  }
2516
2501
  findProductById(id) {
2517
2502
  return __awaiter(this, void 0, void 0, function* () {
2518
- return this.productCatalogRepository
2503
+ return this.productRepository
2519
2504
  .find({
2520
2505
  fields: ['id', 'sku', 'EAN', 'name', 'brand'],
2521
2506
  filters: {
@@ -2596,7 +2581,7 @@ class WishlistService {
2596
2581
  };
2597
2582
  }
2598
2583
  }
2599
- WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'ProductCatalogRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
2584
+ WishlistService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, deps: [{ token: 'WishlistRepository' }, { token: 'ProductRepository' }, { token: 'LogRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
2600
2585
  WishlistService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService });
2601
2586
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: WishlistService, decorators: [{
2602
2587
  type: Injectable
@@ -2607,13 +2592,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
2607
2592
  }] }, { type: undefined, decorators: [{
2608
2593
  type: Inject,
2609
2594
  args: ['ProductRepository']
2610
- }] }, { type: undefined, decorators: [{
2611
- type: Inject,
2612
- args: ['ProductCatalogRepository']
2613
2595
  }] }, { type: undefined, decorators: [{
2614
2596
  type: Inject,
2615
2597
  args: ['LogRepository']
2616
- }] }, { type: i1$3.Shops, decorators: [{
2598
+ }] }, { type: i3.Shops, decorators: [{
2617
2599
  type: Inject,
2618
2600
  args: [DEFAULT_SHOP]
2619
2601
  }] }];
@@ -3116,11 +3098,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
3116
3098
  }], ctorParameters: function () { return [{ type: HomeShopRepositoriesFacade }, { type: ConfigurationFacade }]; } });
3117
3099
 
3118
3100
  class OrderProductReviewService {
3119
- constructor(orderRepository, productReviewRepository, variantRepository, defaultShop) {
3101
+ constructor(orderRepository, productReviewRepository, variantRepository) {
3120
3102
  this.orderRepository = orderRepository;
3121
3103
  this.productReviewRepository = productReviewRepository;
3122
3104
  this.variantRepository = variantRepository;
3123
- this.defaultShop = defaultShop;
3124
3105
  }
3125
3106
  getPendingReviewsByEmail(email) {
3126
3107
  return __awaiter(this, void 0, void 0, function* () {
@@ -3147,7 +3128,6 @@ class OrderProductReviewService {
3147
3128
  user: {
3148
3129
  email: email,
3149
3130
  },
3150
- shop: this.defaultShop,
3151
3131
  status: OrderStatus.ENTREGUE,
3152
3132
  createdAt: {
3153
3133
  operator: Where.GTE,
@@ -3215,25 +3195,13 @@ class OrderProductReviewService {
3215
3195
  }));
3216
3196
  });
3217
3197
  }
3218
- verifyReviewProductAndOrder(orderId, productId) {
3219
- return __awaiter(this, void 0, void 0, function* () {
3220
- return this.productReviewRepository
3221
- .find({
3222
- filters: {
3223
- orderId: { operator: Where.IN, value: orderId },
3224
- productId: productId,
3225
- },
3226
- })
3227
- .then((res) => res.data);
3228
- });
3229
- }
3230
3198
  }
3231
- OrderProductReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }, { token: DEFAULT_SHOP }], target: i0.ɵɵFactoryTarget.Injectable });
3199
+ OrderProductReviewService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService, deps: [{ token: 'OrderRepository' }, { token: 'ProductReviewRepository' }, { token: 'VariantRepository' }], target: i0.ɵɵFactoryTarget.Injectable });
3232
3200
  OrderProductReviewService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService });
3233
3201
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderProductReviewService, decorators: [{
3234
3202
  type: Injectable
3235
3203
  }], ctorParameters: function () {
3236
- return [{ type: i1$3.OrderFirestoreRepository, decorators: [{
3204
+ return [{ type: i3.OrderFirestoreRepository, decorators: [{
3237
3205
  type: Inject,
3238
3206
  args: ['OrderRepository']
3239
3207
  }] }, { type: undefined, decorators: [{
@@ -3242,9 +3210,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImpor
3242
3210
  }] }, { type: undefined, decorators: [{
3243
3211
  type: Inject,
3244
3212
  args: ['VariantRepository']
3245
- }] }, { type: i1$3.Shops, decorators: [{
3246
- type: Inject,
3247
- args: [DEFAULT_SHOP]
3248
3213
  }] }];
3249
3214
  } });
3250
3215
 
@@ -3266,7 +3231,7 @@ OrderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version
3266
3231
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: OrderService, decorators: [{
3267
3232
  type: Injectable
3268
3233
  }], ctorParameters: function () {
3269
- return [{ type: i1$1.Firestore }, { type: i1$3.OrderFirestoreRepository, decorators: [{
3234
+ return [{ type: i1$1.Firestore }, { type: i3.OrderFirestoreRepository, decorators: [{
3270
3235
  type: Inject,
3271
3236
  args: ['OrderRepository']
3272
3237
  }] }];
@@ -3314,7 +3279,7 @@ class AngularConnectModule {
3314
3279
  }
3315
3280
  }
3316
3281
  AngularConnectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3317
- AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$4.FirebaseAppModule, i2.AppCheckModule, i3.StorageModule, AngularElasticSeachModule,
3282
+ AngularConnectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0", ngImport: i0, type: AngularConnectModule, imports: [i1$3.FirebaseAppModule, i2.AppCheckModule, i3$1.StorageModule, AngularElasticSeachModule,
3318
3283
  AngularVertexSeachModule,
3319
3284
  AngularFirebaseAuthModule,
3320
3285
  AngularFirestoreModule,