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

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/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) {
@@ -415,6 +413,8 @@ exports.NestFirestoreModule = NestFirestoreModule_1 = __decorate([
415
413
  })
416
414
  ], exports.NestFirestoreModule);
417
415
 
416
+ const HASURA_OPTIONS = 'HASURA_OPTIONS';
417
+
418
418
  var NestHasuraGraphQLModule_1;
419
419
  exports.NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = class NestHasuraGraphQLModule {
420
420
  static initializeApp(options) {
@@ -559,6 +559,7 @@ exports.NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = __decorate([
559
559
  var NestConnectModule_1;
560
560
  exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
561
561
  static initializeApp(options) {
562
+ var _a;
562
563
  return {
563
564
  module: NestConnectModule_1,
564
565
  imports: [
@@ -567,8 +568,49 @@ exports.NestConnectModule = NestConnectModule_1 = class NestConnectModule {
567
568
  }),
568
569
  ...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [exports.NestHasuraGraphQLModule.initializeApp(options.hasura)]),
569
570
  ],
570
- providers: [...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }])],
571
- exports: [...(connect.isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [HASURA_OPTIONS])],
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
614
  };
573
615
  }
574
616
  };
package/index.esm.js CHANGED
@@ -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) {
@@ -411,6 +409,8 @@ NestFirestoreModule = NestFirestoreModule_1 = __decorate([
411
409
  })
412
410
  ], NestFirestoreModule);
413
411
 
412
+ const HASURA_OPTIONS = 'HASURA_OPTIONS';
413
+
414
414
  var NestHasuraGraphQLModule_1;
415
415
  let NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = class NestHasuraGraphQLModule {
416
416
  static initializeApp(options) {
@@ -555,6 +555,7 @@ NestHasuraGraphQLModule = NestHasuraGraphQLModule_1 = __decorate([
555
555
  var NestConnectModule_1;
556
556
  let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
557
557
  static initializeApp(options) {
558
+ var _a;
558
559
  return {
559
560
  module: NestConnectModule_1,
560
561
  imports: [
@@ -563,8 +564,49 @@ let NestConnectModule = NestConnectModule_1 = class NestConnectModule {
563
564
  }),
564
565
  ...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [NestHasuraGraphQLModule.initializeApp(options.hasura)]),
565
566
  ],
566
- providers: [...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [{ provide: HASURA_OPTIONS, useValue: options.hasura }])],
567
- exports: [...(isNil(options === null || options === void 0 ? void 0 : options.hasura) ? [] : [HASURA_OPTIONS])],
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
610
  };
569
611
  }
570
612
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect-nestjs",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.7",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },