@infrab4a/connect 3.5.0-beta.0 → 3.5.0-beta.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.
- package/bundles/infrab4a-connect.umd.js +123 -65
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/shopping/models/campaign-dashboard.d.ts +15 -0
- package/domain/shopping/models/campaign-hashtag.d.ts +18 -0
- package/domain/shopping/models/index.d.ts +5 -4
- package/domain/shopping/repositories/campaign-dashboard.repository.d.ts +4 -0
- package/domain/shopping/repositories/campaign-hashtag.repository.d.ts +4 -0
- package/domain/shopping/repositories/index.d.ts +4 -2
- package/esm2015/domain/shopping/models/campaign-dashboard.js +7 -0
- package/esm2015/domain/shopping/models/campaign-hashtag.js +7 -0
- package/esm2015/domain/shopping/models/index.js +6 -5
- package/esm2015/domain/shopping/repositories/campaign-dashboard.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/campaign-hashtag.repository.js +2 -0
- package/esm2015/domain/shopping/repositories/index.js +5 -3
- package/esm2015/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.js +12 -0
- package/esm2015/infra/firebase/firestore/repositories/shopping/index.js +6 -4
- package/fesm2015/infrab4a-connect.js +76 -46
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/repositories/shopping/campaign-dashboard-firestore.repository.d.ts +9 -0
- package/infra/firebase/firestore/repositories/shopping/campaign-hashtag-firestore.repository.d.ts +9 -0
- package/infra/firebase/firestore/repositories/shopping/index.d.ts +5 -3
- package/package.json +1 -1
|
@@ -1348,17 +1348,54 @@
|
|
|
1348
1348
|
return Variant;
|
|
1349
1349
|
}(BaseModel));
|
|
1350
1350
|
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1351
|
+
var Buy2Win = /** @class */ (function (_super) {
|
|
1352
|
+
__extends(Buy2Win, _super);
|
|
1353
|
+
function Buy2Win() {
|
|
1354
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1355
|
+
}
|
|
1356
|
+
Object.defineProperty(Buy2Win, "identifiersFields", {
|
|
1357
|
+
get: function () {
|
|
1358
|
+
return ['id'];
|
|
1359
|
+
},
|
|
1360
|
+
enumerable: false,
|
|
1361
|
+
configurable: true
|
|
1362
|
+
});
|
|
1363
|
+
return Buy2Win;
|
|
1364
|
+
}(BaseModel));
|
|
1365
|
+
__decorate([
|
|
1366
|
+
classTransformer.Type(function () { return Category; }),
|
|
1367
|
+
__metadata("design:type", Array)
|
|
1368
|
+
], Buy2Win.prototype, "categories", void 0);
|
|
1369
|
+
|
|
1370
|
+
var CampaignDashboard = /** @class */ (function (_super) {
|
|
1371
|
+
__extends(CampaignDashboard, _super);
|
|
1372
|
+
function CampaignDashboard() {
|
|
1373
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1374
|
+
}
|
|
1375
|
+
Object.defineProperty(CampaignDashboard, "identifiersFields", {
|
|
1376
|
+
get: function () {
|
|
1377
|
+
return ['id'];
|
|
1378
|
+
},
|
|
1379
|
+
enumerable: false,
|
|
1380
|
+
configurable: true
|
|
1381
|
+
});
|
|
1382
|
+
return CampaignDashboard;
|
|
1383
|
+
}(BaseModel));
|
|
1384
|
+
|
|
1385
|
+
var CampaignHashtag = /** @class */ (function (_super) {
|
|
1386
|
+
__extends(CampaignHashtag, _super);
|
|
1387
|
+
function CampaignHashtag() {
|
|
1388
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1389
|
+
}
|
|
1390
|
+
Object.defineProperty(CampaignHashtag, "identifiersFields", {
|
|
1391
|
+
get: function () {
|
|
1392
|
+
return ['id'];
|
|
1393
|
+
},
|
|
1394
|
+
enumerable: false,
|
|
1395
|
+
configurable: true
|
|
1396
|
+
});
|
|
1397
|
+
return CampaignHashtag;
|
|
1398
|
+
}(BaseModel));
|
|
1362
1399
|
|
|
1363
1400
|
var LineItem = /** @class */ (function (_super) {
|
|
1364
1401
|
__extends(LineItem, _super);
|
|
@@ -1422,6 +1459,18 @@
|
|
|
1422
1459
|
__metadata("design:type", Coupon)
|
|
1423
1460
|
], Checkout.prototype, "coupon", void 0);
|
|
1424
1461
|
|
|
1462
|
+
exports.OrderStatus = void 0;
|
|
1463
|
+
(function (OrderStatus) {
|
|
1464
|
+
OrderStatus["AGUARDANDO_PAGAMENTO"] = "Aguardando pagamento";
|
|
1465
|
+
OrderStatus["EM_PREPARO"] = "Preparando pedido";
|
|
1466
|
+
OrderStatus["NF_EMITIDA"] = "Nota Fiscal Emitida";
|
|
1467
|
+
OrderStatus["AGUARDANDO_ENVIO"] = "Aguardando Transaportadora";
|
|
1468
|
+
OrderStatus["ENVIADO"] = "Pedido Enviado";
|
|
1469
|
+
OrderStatus["ENTREGUE"] = "Pedido entregue";
|
|
1470
|
+
OrderStatus["CANCELADO"] = "Cancelado";
|
|
1471
|
+
OrderStatus["CREDIT_CARD"] = "credit_card";
|
|
1472
|
+
})(exports.OrderStatus || (exports.OrderStatus = {}));
|
|
1473
|
+
|
|
1425
1474
|
var Order = /** @class */ (function (_super) {
|
|
1426
1475
|
__extends(Order, _super);
|
|
1427
1476
|
function Order() {
|
|
@@ -1465,25 +1514,6 @@
|
|
|
1465
1514
|
__metadata("design:type", Coupon)
|
|
1466
1515
|
], CheckoutSubscription.prototype, "coupon", void 0);
|
|
1467
1516
|
|
|
1468
|
-
var Buy2Win = /** @class */ (function (_super) {
|
|
1469
|
-
__extends(Buy2Win, _super);
|
|
1470
|
-
function Buy2Win() {
|
|
1471
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1472
|
-
}
|
|
1473
|
-
Object.defineProperty(Buy2Win, "identifiersFields", {
|
|
1474
|
-
get: function () {
|
|
1475
|
-
return ['id'];
|
|
1476
|
-
},
|
|
1477
|
-
enumerable: false,
|
|
1478
|
-
configurable: true
|
|
1479
|
-
});
|
|
1480
|
-
return Buy2Win;
|
|
1481
|
-
}(BaseModel));
|
|
1482
|
-
__decorate([
|
|
1483
|
-
classTransformer.Type(function () { return Category; }),
|
|
1484
|
-
__metadata("design:type", Array)
|
|
1485
|
-
], Buy2Win.prototype, "categories", void 0);
|
|
1486
|
-
|
|
1487
1517
|
exports.FilterType = void 0;
|
|
1488
1518
|
(function (FilterType) {
|
|
1489
1519
|
FilterType["ACCESSORY_IMPORTANCE"] = "accessoryImportance";
|
|
@@ -2638,6 +2668,42 @@
|
|
|
2638
2668
|
return SubscriptionProductFirestoreRepository;
|
|
2639
2669
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2640
2670
|
|
|
2671
|
+
var Buy2WinFirestoreRepository = /** @class */ (function (_super) {
|
|
2672
|
+
__extends(Buy2WinFirestoreRepository, _super);
|
|
2673
|
+
function Buy2WinFirestoreRepository(firestore) {
|
|
2674
|
+
var _this = _super.call(this) || this;
|
|
2675
|
+
_this.firestore = firestore;
|
|
2676
|
+
_this.collectionName = 'buy2win';
|
|
2677
|
+
_this.model = Buy2Win;
|
|
2678
|
+
return _this;
|
|
2679
|
+
}
|
|
2680
|
+
return Buy2WinFirestoreRepository;
|
|
2681
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2682
|
+
|
|
2683
|
+
var CampaignDashboardFirestoreRepository = /** @class */ (function (_super) {
|
|
2684
|
+
__extends(CampaignDashboardFirestoreRepository, _super);
|
|
2685
|
+
function CampaignDashboardFirestoreRepository(firestore) {
|
|
2686
|
+
var _this = _super.call(this) || this;
|
|
2687
|
+
_this.firestore = firestore;
|
|
2688
|
+
_this.collectionName = 'dashboardCampaignsAuto';
|
|
2689
|
+
_this.model = CampaignDashboard;
|
|
2690
|
+
return _this;
|
|
2691
|
+
}
|
|
2692
|
+
return CampaignDashboardFirestoreRepository;
|
|
2693
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2694
|
+
|
|
2695
|
+
var CampaignHashtagFirestoreRepository = /** @class */ (function (_super) {
|
|
2696
|
+
__extends(CampaignHashtagFirestoreRepository, _super);
|
|
2697
|
+
function CampaignHashtagFirestoreRepository(firestore) {
|
|
2698
|
+
var _this = _super.call(this) || this;
|
|
2699
|
+
_this.firestore = firestore;
|
|
2700
|
+
_this.collectionName = 'hashtagCampaignsAuto';
|
|
2701
|
+
_this.model = CampaignHashtag;
|
|
2702
|
+
return _this;
|
|
2703
|
+
}
|
|
2704
|
+
return CampaignHashtagFirestoreRepository;
|
|
2705
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2706
|
+
|
|
2641
2707
|
var CheckoutFirestoreRepository = /** @class */ (function (_super) {
|
|
2642
2708
|
__extends(CheckoutFirestoreRepository, _super);
|
|
2643
2709
|
function CheckoutFirestoreRepository(firestore) {
|
|
@@ -2650,6 +2716,18 @@
|
|
|
2650
2716
|
return CheckoutFirestoreRepository;
|
|
2651
2717
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2652
2718
|
|
|
2719
|
+
var CheckoutSubscriptionFirestoreRepository = /** @class */ (function (_super) {
|
|
2720
|
+
__extends(CheckoutSubscriptionFirestoreRepository, _super);
|
|
2721
|
+
function CheckoutSubscriptionFirestoreRepository(firestore) {
|
|
2722
|
+
var _this = _super.call(this) || this;
|
|
2723
|
+
_this.firestore = firestore;
|
|
2724
|
+
_this.collectionName = 'checkoutsSubscription';
|
|
2725
|
+
_this.model = CheckoutSubscription;
|
|
2726
|
+
return _this;
|
|
2727
|
+
}
|
|
2728
|
+
return CheckoutSubscriptionFirestoreRepository;
|
|
2729
|
+
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2730
|
+
|
|
2653
2731
|
var CouponFirestoreRepository = /** @class */ (function (_super) {
|
|
2654
2732
|
__extends(CouponFirestoreRepository, _super);
|
|
2655
2733
|
function CouponFirestoreRepository(firestore) {
|
|
@@ -2715,6 +2793,17 @@
|
|
|
2715
2793
|
return OrderFirestoreRepository;
|
|
2716
2794
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2717
2795
|
|
|
2796
|
+
var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
|
|
2797
|
+
__extends(LegacyOrderFirestoreRepository, _super);
|
|
2798
|
+
function LegacyOrderFirestoreRepository(firestore) {
|
|
2799
|
+
var _this = _super.call(this, firestore) || this;
|
|
2800
|
+
_this.firestore = firestore;
|
|
2801
|
+
_this.collectionName = 'legacyOrders';
|
|
2802
|
+
return _this;
|
|
2803
|
+
}
|
|
2804
|
+
return LegacyOrderFirestoreRepository;
|
|
2805
|
+
}(OrderFirestoreRepository));
|
|
2806
|
+
|
|
2718
2807
|
var PaymentFirestoreRepository = /** @class */ (function (_super) {
|
|
2719
2808
|
__extends(PaymentFirestoreRepository, _super);
|
|
2720
2809
|
function PaymentFirestoreRepository(firestore) {
|
|
@@ -2727,18 +2816,6 @@
|
|
|
2727
2816
|
return PaymentFirestoreRepository;
|
|
2728
2817
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2729
2818
|
|
|
2730
|
-
var CheckoutSubscriptionFirestoreRepository = /** @class */ (function (_super) {
|
|
2731
|
-
__extends(CheckoutSubscriptionFirestoreRepository, _super);
|
|
2732
|
-
function CheckoutSubscriptionFirestoreRepository(firestore) {
|
|
2733
|
-
var _this = _super.call(this) || this;
|
|
2734
|
-
_this.firestore = firestore;
|
|
2735
|
-
_this.collectionName = 'checkoutsSubscription';
|
|
2736
|
-
_this.model = CheckoutSubscription;
|
|
2737
|
-
return _this;
|
|
2738
|
-
}
|
|
2739
|
-
return CheckoutSubscriptionFirestoreRepository;
|
|
2740
|
-
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2741
|
-
|
|
2742
2819
|
var SubscriptionPlanFirestoreRepository = /** @class */ (function (_super) {
|
|
2743
2820
|
__extends(SubscriptionPlanFirestoreRepository, _super);
|
|
2744
2821
|
function SubscriptionPlanFirestoreRepository(firestore) {
|
|
@@ -2751,29 +2828,6 @@
|
|
|
2751
2828
|
return SubscriptionPlanFirestoreRepository;
|
|
2752
2829
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2753
2830
|
|
|
2754
|
-
var Buy2WinFirestoreRepository = /** @class */ (function (_super) {
|
|
2755
|
-
__extends(Buy2WinFirestoreRepository, _super);
|
|
2756
|
-
function Buy2WinFirestoreRepository(firestore) {
|
|
2757
|
-
var _this = _super.call(this) || this;
|
|
2758
|
-
_this.firestore = firestore;
|
|
2759
|
-
_this.collectionName = 'buy2win';
|
|
2760
|
-
_this.model = Buy2Win;
|
|
2761
|
-
return _this;
|
|
2762
|
-
}
|
|
2763
|
-
return Buy2WinFirestoreRepository;
|
|
2764
|
-
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
2765
|
-
|
|
2766
|
-
var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
|
|
2767
|
-
__extends(LegacyOrderFirestoreRepository, _super);
|
|
2768
|
-
function LegacyOrderFirestoreRepository(firestore) {
|
|
2769
|
-
var _this = _super.call(this, firestore) || this;
|
|
2770
|
-
_this.firestore = firestore;
|
|
2771
|
-
_this.collectionName = 'legacyOrders';
|
|
2772
|
-
return _this;
|
|
2773
|
-
}
|
|
2774
|
-
return LegacyOrderFirestoreRepository;
|
|
2775
|
-
}(OrderFirestoreRepository));
|
|
2776
|
-
|
|
2777
2831
|
var HomeFirestoreRepository = /** @class */ (function (_super) {
|
|
2778
2832
|
__extends(HomeFirestoreRepository, _super);
|
|
2779
2833
|
function HomeFirestoreRepository(firestore) {
|
|
@@ -4916,6 +4970,10 @@
|
|
|
4916
4970
|
exports.BeautyQuestionsHelper = BeautyQuestionsHelper;
|
|
4917
4971
|
exports.Buy2Win = Buy2Win;
|
|
4918
4972
|
exports.Buy2WinFirestoreRepository = Buy2WinFirestoreRepository;
|
|
4973
|
+
exports.CampaignDashboard = CampaignDashboard;
|
|
4974
|
+
exports.CampaignDashboardFirestoreRepository = CampaignDashboardFirestoreRepository;
|
|
4975
|
+
exports.CampaignHashtag = CampaignHashtag;
|
|
4976
|
+
exports.CampaignHashtagFirestoreRepository = CampaignHashtagFirestoreRepository;
|
|
4919
4977
|
exports.Category = Category;
|
|
4920
4978
|
exports.CategoryFirestoreRepository = CategoryFirestoreRepository;
|
|
4921
4979
|
exports.CategoryHasuraGraphQL = CategoryHasuraGraphQL;
|