@infrab4a/connect-nestjs 1.0.0-beta.7 → 1.0.0-beta.8

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.
Files changed (3) hide show
  1. package/index.cjs.js +45 -44
  2. package/index.esm.js +46 -45
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -182,6 +182,7 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule
182
182
  }
183
183
  };
184
184
  exports.NestFirestoreModule = NestFirestoreModule_1 = __decorate([
185
+ common.Global(),
185
186
  common.Module({
186
187
  providers: [
187
188
  {
@@ -425,6 +426,7 @@ exports.NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = class NestHasuraGr
425
426
  }
426
427
  };
427
428
  exports.NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = __decorate([
429
+ common.Global(),
428
430
  common.Module({
429
431
  providers: [
430
432
  {
@@ -559,7 +561,6 @@ exports.NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = __decorate([
559
561
  var NestConnectModule_1;
560
562
  exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
561
563
  static initializeApp(options) {
562
- var _a;
563
564
  return {
564
565
  module: NestConnectModule_1,
565
566
  imports: [
@@ -568,49 +569,49 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
568
569
  }),
569
570
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule.initializeApp(options.hasura)]),
570
571
  ],
571
- exports: [
572
- ...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura)
573
- ? []
574
- : [
575
- 'CategoryRepository',
576
- 'ProductRepository',
577
- 'ProductReviewsRepository',
578
- 'VariantRepository',
579
- 'CategoryFilterRepository',
580
- 'FilterOptionRepository',
581
- 'FilterRepository',
582
- 'CategoryCollectionChildrenRepository',
583
- 'WishlistRepository',
584
- ]),
585
- ...(connect.isNil((_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.googleApplicationCredential)
586
- ? []
587
- : [
588
- 'BeautyProfileRepository',
589
- 'Buy2WinRepository',
590
- 'CheckoutRepository',
591
- 'CheckoutSubscriptionRepository',
592
- 'CouponRepository',
593
- 'CampaignHashtagRepository',
594
- 'CampaignDashboardRepository',
595
- 'EditionRepository',
596
- 'HomeRepository',
597
- 'LeadRepository',
598
- 'LegacyOrderRepository',
599
- 'ShopMenuRepository',
600
- 'OrderRepository',
601
- 'PaymentRepository',
602
- 'ShopSettingsRepository',
603
- 'SubscriptionPaymentRepository',
604
- 'SubscriptionPlanRepository',
605
- 'SubscriptionProductRepository',
606
- 'SubscriptionRepository',
607
- 'UserRepository',
608
- 'UserAddressRepository',
609
- 'UserPaymentMethodRepository',
610
- 'SubscriptionMaterializationRepository',
611
- 'SubscriptionSummaryRepository',
612
- ]),
613
- ],
572
+ // exports: [
573
+ // ...(isNil(options?.hasura)
574
+ // ? []
575
+ // : [
576
+ // 'CategoryRepository',
577
+ // 'ProductRepository',
578
+ // 'ProductReviewsRepository',
579
+ // 'VariantRepository',
580
+ // 'CategoryFilterRepository',
581
+ // 'FilterOptionRepository',
582
+ // 'FilterRepository',
583
+ // 'CategoryCollectionChildrenRepository',
584
+ // 'WishlistRepository',
585
+ // ]),
586
+ // ...(isNil(options?.firebase?.googleApplicationCredential)
587
+ // ? []
588
+ // : [
589
+ // 'BeautyProfileRepository',
590
+ // 'Buy2WinRepository',
591
+ // 'CheckoutRepository',
592
+ // 'CheckoutSubscriptionRepository',
593
+ // 'CouponRepository',
594
+ // 'CampaignHashtagRepository',
595
+ // 'CampaignDashboardRepository',
596
+ // 'EditionRepository',
597
+ // 'HomeRepository',
598
+ // 'LeadRepository',
599
+ // 'LegacyOrderRepository',
600
+ // 'ShopMenuRepository',
601
+ // 'OrderRepository',
602
+ // 'PaymentRepository',
603
+ // 'ShopSettingsRepository',
604
+ // 'SubscriptionPaymentRepository',
605
+ // 'SubscriptionPlanRepository',
606
+ // 'SubscriptionProductRepository',
607
+ // 'SubscriptionRepository',
608
+ // 'UserRepository',
609
+ // 'UserAddressRepository',
610
+ // 'UserPaymentMethodRepository',
611
+ // 'SubscriptionMaterializationRepository',
612
+ // 'SubscriptionSummaryRepository',
613
+ // ]),
614
+ // ],
614
615
  };
615
616
  }
616
617
  };
package/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { isEmpty, UserBeautyProfileFirestoreRepository, Buy2WinFirestoreRepository, CategoryFirestoreRepository, CheckoutFirestoreRepository, CheckoutSubscriptionFirestoreRepository, CouponFirestoreRepository, CampaignHashtagFirestoreRepository, CampaignDashboardFirestoreRepository, SubscriptionEditionFirestoreRepository, HomeFirestoreRepository, LeadFirestoreRepository, LegacyOrderFirestoreRepository, ShopMenuFirestoreRepository, OrderFirestoreRepository, PaymentFirestoreRepository, ProductFirestoreRepository, ShopSettingsFirestoreRepository, SubscriptionPaymentFirestoreRepository, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, SubscriptionFirestoreRepository, UserFirestoreRepository, UserAddressFirestoreRepository, UserPaymentMethodFirestoreRepository, SubscriptionMaterializationFirestoreRepository, SubscriptionSummaryFirestoreRepository, ProductVariantFirestoreRepository, CategoryHasuraGraphQLRepository, ProductHasuraGraphQLRepository, CategoryFilterHasuraGraphQLRepository, ProductReviewsHasuraGraphQLRepository, VariantHasuraGraphQLRepository, FilterOptionHasuraGraphQLRepository, FilterHasuraGraphQLRepository, CategoryCollectionChildrenHasuraGraphQLRepository, WishlistHasuraGraphQLRepository, isNil } from '@infrab4a/connect';
2
- import { Module } from '@nestjs/common';
2
+ import { Global, Module } from '@nestjs/common';
3
3
  import { FirebaseConstants, FirebaseModule } from 'nestjs-firebase';
4
4
 
5
5
  class ConnectBaseDocumentSnapshot {
@@ -178,6 +178,7 @@ let NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
178
178
  }
179
179
  };
180
180
  NestFirestoreModule = NestFirestoreModule_1 = __decorate([
181
+ Global(),
181
182
  Module({
182
183
  providers: [
183
184
  {
@@ -421,6 +422,7 @@ let NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = class NestHasuraGraphQ
421
422
  }
422
423
  };
423
424
  NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = __decorate([
425
+ Global(),
424
426
  Module({
425
427
  providers: [
426
428
  {
@@ -555,7 +557,6 @@ NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = __decorate([
555
557
  var NestConnectModule_1;
556
558
  let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
557
559
  static initializeApp(options) {
558
- var _a;
559
560
  return {
560
561
  module: NestConnectModule_1,
561
562
  imports: [
@@ -564,49 +565,49 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
564
565
  }),
565
566
  ...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule.initializeApp(options.hasura)]),
566
567
  ],
567
- exports: [
568
- ...(isNil(options === null || options === void 0 ? void 0 : options.hasura)
569
- ? []
570
- : [
571
- 'CategoryRepository',
572
- 'ProductRepository',
573
- 'ProductReviewsRepository',
574
- 'VariantRepository',
575
- 'CategoryFilterRepository',
576
- 'FilterOptionRepository',
577
- 'FilterRepository',
578
- 'CategoryCollectionChildrenRepository',
579
- 'WishlistRepository',
580
- ]),
581
- ...(isNil((_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.googleApplicationCredential)
582
- ? []
583
- : [
584
- 'BeautyProfileRepository',
585
- 'Buy2WinRepository',
586
- 'CheckoutRepository',
587
- 'CheckoutSubscriptionRepository',
588
- 'CouponRepository',
589
- 'CampaignHashtagRepository',
590
- 'CampaignDashboardRepository',
591
- 'EditionRepository',
592
- 'HomeRepository',
593
- 'LeadRepository',
594
- 'LegacyOrderRepository',
595
- 'ShopMenuRepository',
596
- 'OrderRepository',
597
- 'PaymentRepository',
598
- 'ShopSettingsRepository',
599
- 'SubscriptionPaymentRepository',
600
- 'SubscriptionPlanRepository',
601
- 'SubscriptionProductRepository',
602
- 'SubscriptionRepository',
603
- 'UserRepository',
604
- 'UserAddressRepository',
605
- 'UserPaymentMethodRepository',
606
- 'SubscriptionMaterializationRepository',
607
- 'SubscriptionSummaryRepository',
608
- ]),
609
- ],
568
+ // exports: [
569
+ // ...(isNil(options?.hasura)
570
+ // ? []
571
+ // : [
572
+ // 'CategoryRepository',
573
+ // 'ProductRepository',
574
+ // 'ProductReviewsRepository',
575
+ // 'VariantRepository',
576
+ // 'CategoryFilterRepository',
577
+ // 'FilterOptionRepository',
578
+ // 'FilterRepository',
579
+ // 'CategoryCollectionChildrenRepository',
580
+ // 'WishlistRepository',
581
+ // ]),
582
+ // ...(isNil(options?.firebase?.googleApplicationCredential)
583
+ // ? []
584
+ // : [
585
+ // 'BeautyProfileRepository',
586
+ // 'Buy2WinRepository',
587
+ // 'CheckoutRepository',
588
+ // 'CheckoutSubscriptionRepository',
589
+ // 'CouponRepository',
590
+ // 'CampaignHashtagRepository',
591
+ // 'CampaignDashboardRepository',
592
+ // 'EditionRepository',
593
+ // 'HomeRepository',
594
+ // 'LeadRepository',
595
+ // 'LegacyOrderRepository',
596
+ // 'ShopMenuRepository',
597
+ // 'OrderRepository',
598
+ // 'PaymentRepository',
599
+ // 'ShopSettingsRepository',
600
+ // 'SubscriptionPaymentRepository',
601
+ // 'SubscriptionPlanRepository',
602
+ // 'SubscriptionProductRepository',
603
+ // 'SubscriptionRepository',
604
+ // 'UserRepository',
605
+ // 'UserAddressRepository',
606
+ // 'UserPaymentMethodRepository',
607
+ // 'SubscriptionMaterializationRepository',
608
+ // 'SubscriptionSummaryRepository',
609
+ // ]),
610
+ // ],
610
611
  };
611
612
  }
612
613
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.0.0-beta.7",
3
+ "version": "1.0.0-beta.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },