@infrab4a/connect 0.7.6 → 0.8.0-beta.0
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 +30 -11
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/domain/shopping/models/coupons/coupon.js +5 -1
- package/esm2015/lib/domain/shopping/repositories/index.js +2 -1
- package/esm2015/lib/domain/shopping/repositories/legacy-order.repository.js +2 -0
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/index.js +2 -1
- package/esm2015/lib/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +9 -0
- package/fesm2015/infrab4a-connect.js +18 -7
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/lib/domain/shopping/models/coupons/coupon.d.ts +3 -1
- package/lib/domain/shopping/repositories/index.d.ts +1 -0
- package/lib/domain/shopping/repositories/legacy-order.repository.d.ts +3 -0
- package/lib/infra/firebase/firestore/repositories/shopping/index.d.ts +1 -0
- package/lib/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +7 -0
- package/package.json +1 -1
|
@@ -636,11 +636,29 @@
|
|
|
636
636
|
return Address;
|
|
637
637
|
}(BaseModel));
|
|
638
638
|
|
|
639
|
+
var Base = /** @class */ (function () {
|
|
640
|
+
function Base() {
|
|
641
|
+
var args = [];
|
|
642
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
643
|
+
args[_i] = arguments[_i];
|
|
644
|
+
}
|
|
645
|
+
Object.assign.apply(Object, __spreadArray([this], __read(args)));
|
|
646
|
+
}
|
|
647
|
+
return Base;
|
|
648
|
+
}());
|
|
649
|
+
|
|
639
650
|
var Coupon = /** @class */ (function (_super) {
|
|
640
651
|
__extends(Coupon, _super);
|
|
641
652
|
function Coupon() {
|
|
642
653
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
643
654
|
}
|
|
655
|
+
Object.defineProperty(Coupon.prototype, "isInfluencer", {
|
|
656
|
+
get: function () {
|
|
657
|
+
return !lodash.isNil(this.influencerEmail);
|
|
658
|
+
},
|
|
659
|
+
enumerable: false,
|
|
660
|
+
configurable: true
|
|
661
|
+
});
|
|
644
662
|
Coupon.prototype.identifierFields = function () {
|
|
645
663
|
return ['id'];
|
|
646
664
|
};
|
|
@@ -666,17 +684,6 @@
|
|
|
666
684
|
return SubscriptionPlan;
|
|
667
685
|
}(BaseModel));
|
|
668
686
|
|
|
669
|
-
var Base = /** @class */ (function () {
|
|
670
|
-
function Base() {
|
|
671
|
-
var args = [];
|
|
672
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
673
|
-
args[_i] = arguments[_i];
|
|
674
|
-
}
|
|
675
|
-
Object.assign.apply(Object, __spreadArray([this], __read(args)));
|
|
676
|
-
}
|
|
677
|
-
return Base;
|
|
678
|
-
}());
|
|
679
|
-
|
|
680
687
|
var BeautyProfile = /** @class */ (function (_super) {
|
|
681
688
|
__extends(BeautyProfile, _super);
|
|
682
689
|
function BeautyProfile() {
|
|
@@ -1877,6 +1884,17 @@
|
|
|
1877
1884
|
return Buy2WinFirestoreRepository;
|
|
1878
1885
|
}(withCrudFirestore(withHelpers(withFirestore(Base)))));
|
|
1879
1886
|
|
|
1887
|
+
var LegacyOrderFirestoreRepository = /** @class */ (function (_super) {
|
|
1888
|
+
__extends(LegacyOrderFirestoreRepository, _super);
|
|
1889
|
+
function LegacyOrderFirestoreRepository(firestore) {
|
|
1890
|
+
var _this = _super.call(this, firestore) || this;
|
|
1891
|
+
_this.firestore = firestore;
|
|
1892
|
+
_this.collectionName = 'legacyOrders';
|
|
1893
|
+
return _this;
|
|
1894
|
+
}
|
|
1895
|
+
return LegacyOrderFirestoreRepository;
|
|
1896
|
+
}(OrderFirestoreRepository));
|
|
1897
|
+
|
|
1880
1898
|
var HomeFirestoreRepository = /** @class */ (function (_super) {
|
|
1881
1899
|
__extends(HomeFirestoreRepository, _super);
|
|
1882
1900
|
function HomeFirestoreRepository(firestore) {
|
|
@@ -1998,6 +2016,7 @@
|
|
|
1998
2016
|
exports.Home = Home;
|
|
1999
2017
|
exports.HomeFirestoreRepository = HomeFirestoreRepository;
|
|
2000
2018
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
2019
|
+
exports.LegacyOrderFirestoreRepository = LegacyOrderFirestoreRepository;
|
|
2001
2020
|
exports.LineItem = LineItem;
|
|
2002
2021
|
exports.NotFoundError = NotFoundError;
|
|
2003
2022
|
exports.Order = Order;
|