@infrab4a/connect-nestjs 1.0.0-beta.6 → 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 +47 -47
  2. package/index.esm.js +48 -48
  3. package/package.json +1 -1
package/index.cjs.js CHANGED
@@ -168,8 +168,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
168
168
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
169
169
  };
170
170
 
171
- const HASURA_OPTIONS = 'HASURA_OPTIONS';
172
-
173
171
  var NestFirestoreModule_1;
174
172
  exports.NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
175
173
  static initializeApp(options) {
@@ -184,6 +182,7 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule
184
182
  }
185
183
  };
186
184
  exports.NestFirestoreModule = NestFirestoreModule_1 = __decorate([
185
+ common.Global(),
187
186
  common.Module({
188
187
  providers: [
189
188
  {
@@ -415,6 +414,8 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = __decorate([
415
414
  })
416
415
  ], exports.NestFirestoreModule);
417
416
 
417
+ const HASURA_OPTIONS = 'HASURA_OPTIONS';
418
+
418
419
  var NestHasuraGraphQLModule_1;
419
420
  exports.NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = class NestHasuraGraphQLModule {
420
421
  static initializeApp(options) {
@@ -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,50 +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
- HASURA_OPTIONS,
576
- 'CategoryRepository',
577
- 'ProductRepository',
578
- 'ProductReviewsRepository',
579
- 'VariantRepository',
580
- 'CategoryFilterRepository',
581
- 'FilterOptionRepository',
582
- 'FilterRepository',
583
- 'CategoryCollectionChildrenRepository',
584
- 'WishlistRepository',
585
- ]),
586
- ...(connect.isNil((_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.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
- ],
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
+ // ],
615
615
  };
616
616
  }
617
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 {
@@ -164,8 +164,6 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
164
164
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
165
165
  };
166
166
 
167
- const HASURA_OPTIONS = 'HASURA_OPTIONS';
168
-
169
167
  var NestFirestoreModule_1;
170
168
  let NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
171
169
  static initializeApp(options) {
@@ -180,6 +178,7 @@ let NestFirestoreModule = NestFirestoreModule_1 = class NestFirestoreModule {
180
178
  }
181
179
  };
182
180
  NestFirestoreModule = NestFirestoreModule_1 = __decorate([
181
+ Global(),
183
182
  Module({
184
183
  providers: [
185
184
  {
@@ -411,6 +410,8 @@ NestFirestoreModule = NestFirestoreModule_1 = __decorate([
411
410
  })
412
411
  ], NestFirestoreModule);
413
412
 
413
+ const HASURA_OPTIONS = 'HASURA_OPTIONS';
414
+
414
415
  var NestHasuraGraphQLModule_1;
415
416
  let NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = class NestHasuraGraphQLModule {
416
417
  static initializeApp(options) {
@@ -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,50 +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
- HASURA_OPTIONS,
572
- 'CategoryRepository',
573
- 'ProductRepository',
574
- 'ProductReviewsRepository',
575
- 'VariantRepository',
576
- 'CategoryFilterRepository',
577
- 'FilterOptionRepository',
578
- 'FilterRepository',
579
- 'CategoryCollectionChildrenRepository',
580
- 'WishlistRepository',
581
- ]),
582
- ...(isNil((_a = options === null || options === void 0 ? void 0 : options.firebase) === null || _a === void 0 ? void 0 : _a.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
- ],
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
+ // ],
611
611
  };
612
612
  }
613
613
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.8",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },