@infrab4a/connect 3.7.1-beta.1 → 3.8.1

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 (23) hide show
  1. package/bundles/infrab4a-connect.umd.js +123 -65
  2. package/bundles/infrab4a-connect.umd.js.map +1 -1
  3. package/domain/shopping/models/campaign-dashboard.d.ts +15 -0
  4. package/domain/shopping/models/campaign-hashtag.d.ts +18 -0
  5. package/domain/shopping/models/index.d.ts +5 -4
  6. package/domain/shopping/repositories/campaign-dashboard.repository.d.ts +4 -0
  7. package/domain/shopping/repositories/campaign-hashtag.repository.d.ts +4 -0
  8. package/domain/shopping/repositories/index.d.ts +4 -2
  9. package/esm2015/domain/shopping/models/campaign-dashboard.js +7 -0
  10. package/esm2015/domain/shopping/models/campaign-hashtag.js +7 -0
  11. package/esm2015/domain/shopping/models/index.js +6 -5
  12. package/esm2015/domain/shopping/repositories/campaign-dashboard.repository.js +2 -0
  13. package/esm2015/domain/shopping/repositories/campaign-hashtag.repository.js +2 -0
  14. package/esm2015/domain/shopping/repositories/index.js +5 -3
  15. package/esm2015/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.js +12 -0
  16. package/esm2015/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.js +12 -0
  17. package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +6 -4
  18. package/fesm2015/infrab4a-connect.js +76 -46
  19. package/fesm2015/infrab4a-connect.js.map +1 -1
  20. package/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.d.ts +9 -0
  21. package/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.d.ts +9 -0
  22. package/infra/firebase/firestore/repositories/shopping/index.d.ts +5 -3
  23. package/package.json +1 -1
@@ -1405,17 +1405,54 @@
1405
1405
  return Variant;
1406
1406
  }(BaseModel));
1407
1407
 
1408
- exports.OrderStatus = void 0;
1409
- (function (OrderStatus) {
1410
- OrderStatus["AGUARDANDO_PAGAMENTO"] = "Aguardando pagamento";
1411
- OrderStatus["EM_PREPARO"] = "Preparando pedido";
1412
- OrderStatus["NF_EMITIDA"] = "Nota Fiscal Emitida";
1413
- OrderStatus["AGUARDANDO_ENVIO"] = "Aguardando Transaportadora";
1414
- OrderStatus["ENVIADO"] = "Enviado";
1415
- OrderStatus["ENTREGUE"] = "Entregue";
1416
- OrderStatus["CANCELADO"] = "Cancelado";
1417
- OrderStatus["CREDIT_CARD"] = "credit_card";
1418
- })(exports.OrderStatus || (exports.OrderStatus = {}));
1408
+ var Buy2Win = /** @class */ (function (_super) {
1409
+ __extends(Buy2Win, _super);
1410
+ function Buy2Win() {
1411
+ return _super !== null && _super.apply(this, arguments) || this;
1412
+ }
1413
+ Object.defineProperty(Buy2Win, "identifiersFields", {
1414
+ get: function () {
1415
+ return ['id'];
1416
+ },
1417
+ enumerable: false,
1418
+ configurable: true
1419
+ });
1420
+ return Buy2Win;
1421
+ }(BaseModel));
1422
+ __decorate([
1423
+ classTransformer.Type(function () { return Category; }),
1424
+ __metadata("design:type", Array)
1425
+ ], Buy2Win.prototype, "categories", void 0);
1426
+
1427
+ var CampaignDashboard = /** @class */ (function (_super) {
1428
+ __extends(CampaignDashboard, _super);
1429
+ function CampaignDashboard() {
1430
+ return _super !== null && _super.apply(this, arguments) || this;
1431
+ }
1432
+ Object.defineProperty(CampaignDashboard, "identifiersFields", {
1433
+ get: function () {
1434
+ return ['id'];
1435
+ },
1436
+ enumerable: false,
1437
+ configurable: true
1438
+ });
1439
+ return CampaignDashboard;
1440
+ }(BaseModel));
1441
+
1442
+ var CampaignHashtag = /** @class */ (function (_super) {
1443
+ __extends(CampaignHashtag, _super);
1444
+ function CampaignHashtag() {
1445
+ return _super !== null && _super.apply(this, arguments) || this;
1446
+ }
1447
+ Object.defineProperty(CampaignHashtag, "identifiersFields", {
1448
+ get: function () {
1449
+ return ['id'];
1450
+ },
1451
+ enumerable: false,
1452
+ configurable: true
1453
+ });
1454
+ return CampaignHashtag;
1455
+ }(BaseModel));
1419
1456
 
1420
1457
  var LineItem = /** @class */ (function (_super) {
1421
1458
  __extends(LineItem, _super);
@@ -1479,6 +1516,18 @@
1479
1516
  __metadata("design:type", Coupon)
1480
1517
  ], Checkout.prototype, "coupon", void 0);
1481
1518
 
1519
+ exports.OrderStatus = void 0;
1520
+ (function (OrderStatus) {
1521
+ OrderStatus["AGUARDANDO_PAGAMENTO"] = "Aguardando pagamento";
1522
+ OrderStatus["EM_PREPARO"] = "Preparando pedido";
1523
+ OrderStatus["NF_EMITIDA"] = "Nota Fiscal Emitida";
1524
+ OrderStatus["AGUARDANDO_ENVIO"] = "Aguardando Transaportadora";
1525
+ OrderStatus["ENVIADO"] = "Enviado";
1526
+ OrderStatus["ENTREGUE"] = "Entregue";
1527
+ OrderStatus["CANCELADO"] = "Cancelado";
1528
+ OrderStatus["CREDIT_CARD"] = "credit_card";
1529
+ })(exports.OrderStatus || (exports.OrderStatus = {}));
1530
+
1482
1531
  var Order = /** @class */ (function (_super) {
1483
1532
  __extends(Order, _super);
1484
1533
  function Order() {
@@ -1522,25 +1571,6 @@
1522
1571
  __metadata("design:type", Coupon)
1523
1572
  ], CheckoutSubscription.prototype, "coupon", void 0);
1524
1573
 
1525
- var Buy2Win = /** @class */ (function (_super) {
1526
- __extends(Buy2Win, _super);
1527
- function Buy2Win() {
1528
- return _super !== null && _super.apply(this, arguments) || this;
1529
- }
1530
- Object.defineProperty(Buy2Win, "identifiersFields", {
1531
- get: function () {
1532
- return ['id'];
1533
- },
1534
- enumerable: false,
1535
- configurable: true
1536
- });
1537
- return Buy2Win;
1538
- }(BaseModel));
1539
- __decorate([
1540
- classTransformer.Type(function () { return Category; }),
1541
- __metadata("design:type", Array)
1542
- ], Buy2Win.prototype, "categories", void 0);
1543
-
1544
1574
  exports.FilterType = void 0;
1545
1575
  (function (FilterType) {
1546
1576
  FilterType["ACCESSORY_IMPORTANCE"] = "accessoryImportance";
@@ -2761,6 +2791,42 @@
2761
2791
  return SubscriptionProductFirestoreRepository;
2762
2792
  }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2763
2793
 
2794
+ var Buy2WinFirestoreRepository = /** @class */ (function (_super) {
2795
+ __extends(Buy2WinFirestoreRepository, _super);
2796
+ function Buy2WinFirestoreRepository(firestore) {
2797
+ var _this = _super.call(this) || this;
2798
+ _this.firestore = firestore;
2799
+ _this.collectionName = 'buy2win';
2800
+ _this.model = Buy2Win;
2801
+ return _this;
2802
+ }
2803
+ return Buy2WinFirestoreRepository;
2804
+ }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2805
+
2806
+ var CampaignDashboardFirestoreRepository = /** @class */ (function (_super) {
2807
+ __extends(CampaignDashboardFirestoreRepository, _super);
2808
+ function CampaignDashboardFirestoreRepository(firestore) {
2809
+ var _this = _super.call(this) || this;
2810
+ _this.firestore = firestore;
2811
+ _this.collectionName = 'dashboardCampaignsAuto';
2812
+ _this.model = CampaignDashboard;
2813
+ return _this;
2814
+ }
2815
+ return CampaignDashboardFirestoreRepository;
2816
+ }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2817
+
2818
+ var CampaignHashtagFirestoreRepository = /** @class */ (function (_super) {
2819
+ __extends(CampaignHashtagFirestoreRepository, _super);
2820
+ function CampaignHashtagFirestoreRepository(firestore) {
2821
+ var _this = _super.call(this) || this;
2822
+ _this.firestore = firestore;
2823
+ _this.collectionName = 'hashtagCampaignsAuto';
2824
+ _this.model = CampaignHashtag;
2825
+ return _this;
2826
+ }
2827
+ return CampaignHashtagFirestoreRepository;
2828
+ }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2829
+
2764
2830
  var CheckoutFirestoreRepository = /** @class */ (function (_super) {
2765
2831
  __extends(CheckoutFirestoreRepository, _super);
2766
2832
  function CheckoutFirestoreRepository(firestore) {
@@ -2773,6 +2839,18 @@
2773
2839
  return CheckoutFirestoreRepository;
2774
2840
  }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2775
2841
 
2842
+ var CheckoutSubscriptionFirestoreRepository = /** @class */ (function (_super) {
2843
+ __extends(CheckoutSubscriptionFirestoreRepository, _super);
2844
+ function CheckoutSubscriptionFirestoreRepository(firestore) {
2845
+ var _this = _super.call(this) || this;
2846
+ _this.firestore = firestore;
2847
+ _this.collectionName = 'checkoutsSubscription';
2848
+ _this.model = CheckoutSubscription;
2849
+ return _this;
2850
+ }
2851
+ return CheckoutSubscriptionFirestoreRepository;
2852
+ }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2853
+
2776
2854
  var CouponFirestoreRepository = /** @class */ (function (_super) {
2777
2855
  __extends(CouponFirestoreRepository, _super);
2778
2856
  function CouponFirestoreRepository(firestore) {
@@ -2842,6 +2920,17 @@
2842
2920
  return OrderFirestoreRepository;
2843
2921
  }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2844
2922
 
2923
+ var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
2924
+ __extends(LegacyOrderFirestoreRepository, _super);
2925
+ function LegacyOrderFirestoreRepository(firestore) {
2926
+ var _this = _super.call(this, firestore) || this;
2927
+ _this.firestore = firestore;
2928
+ _this.collectionName = 'legacyOrders';
2929
+ return _this;
2930
+ }
2931
+ return LegacyOrderFirestoreRepository;
2932
+ }(OrderFirestoreRepository));
2933
+
2845
2934
  var PaymentFirestoreRepository = /** @class */ (function (_super) {
2846
2935
  __extends(PaymentFirestoreRepository, _super);
2847
2936
  function PaymentFirestoreRepository(firestore) {
@@ -2854,18 +2943,6 @@
2854
2943
  return PaymentFirestoreRepository;
2855
2944
  }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2856
2945
 
2857
- var CheckoutSubscriptionFirestoreRepository = /** @class */ (function (_super) {
2858
- __extends(CheckoutSubscriptionFirestoreRepository, _super);
2859
- function CheckoutSubscriptionFirestoreRepository(firestore) {
2860
- var _this = _super.call(this) || this;
2861
- _this.firestore = firestore;
2862
- _this.collectionName = 'checkoutsSubscription';
2863
- _this.model = CheckoutSubscription;
2864
- return _this;
2865
- }
2866
- return CheckoutSubscriptionFirestoreRepository;
2867
- }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2868
-
2869
2946
  var SubscriptionPlanFirestoreRepository = /** @class */ (function (_super) {
2870
2947
  __extends(SubscriptionPlanFirestoreRepository, _super);
2871
2948
  function SubscriptionPlanFirestoreRepository(firestore) {
@@ -2878,29 +2955,6 @@
2878
2955
  return SubscriptionPlanFirestoreRepository;
2879
2956
  }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2880
2957
 
2881
- var Buy2WinFirestoreRepository = /** @class */ (function (_super) {
2882
- __extends(Buy2WinFirestoreRepository, _super);
2883
- function Buy2WinFirestoreRepository(firestore) {
2884
- var _this = _super.call(this) || this;
2885
- _this.firestore = firestore;
2886
- _this.collectionName = 'buy2win';
2887
- _this.model = Buy2Win;
2888
- return _this;
2889
- }
2890
- return Buy2WinFirestoreRepository;
2891
- }(withCrudFirestore(withHelpers(withFirestore(Base)))));
2892
-
2893
- var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
2894
- __extends(LegacyOrderFirestoreRepository, _super);
2895
- function LegacyOrderFirestoreRepository(firestore) {
2896
- var _this = _super.call(this, firestore) || this;
2897
- _this.firestore = firestore;
2898
- _this.collectionName = 'legacyOrders';
2899
- return _this;
2900
- }
2901
- return LegacyOrderFirestoreRepository;
2902
- }(OrderFirestoreRepository));
2903
-
2904
2958
  var HomeFirestoreRepository = /** @class */ (function (_super) {
2905
2959
  __extends(HomeFirestoreRepository, _super);
2906
2960
  function HomeFirestoreRepository(firestore) {
@@ -5477,6 +5531,10 @@
5477
5531
  exports.BeautyQuestionsHelper = BeautyQuestionsHelper;
5478
5532
  exports.Buy2Win = Buy2Win;
5479
5533
  exports.Buy2WinFirestoreRepository = Buy2WinFirestoreRepository;
5534
+ exports.CampaignDashboard = CampaignDashboard;
5535
+ exports.CampaignDashboardFirestoreRepository = CampaignDashboardFirestoreRepository;
5536
+ exports.CampaignHashtag = CampaignHashtag;
5537
+ exports.CampaignHashtagFirestoreRepository = CampaignHashtagFirestoreRepository;
5480
5538
  exports.Category = Category;
5481
5539
  exports.CategoryFilter = CategoryFilter;
5482
5540
  exports.CategoryFilterHasuraGraphQLRepository = CategoryFilterHasuraGraphQLRepository;