@infrab4a/connect 0.9.6-beta.0 → 0.9.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.
- package/bundles/infrab4a-connect.umd.js +27 -0
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/domain/catalog/models/category.js +1 -1
- package/esm2015/lib/domain/users/models/index.js +2 -1
- package/esm2015/lib/domain/users/models/user-payment-method.js +7 -0
- package/esm2015/lib/domain/users/repositories/index.js +2 -1
- package/esm2015/lib/domain/users/repositories/user-payment-method.repository.js +2 -0
- package/esm2015/lib/infra/firebase/firestore/repositories/users/index.js +2 -1
- package/esm2015/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +14 -0
- package/fesm2015/infrab4a-connect.js +18 -1
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/lib/domain/catalog/models/category.d.ts +1 -0
- package/lib/domain/users/models/index.d.ts +1 -0
- package/lib/domain/users/models/user-payment-method.d.ts +13 -0
- package/lib/domain/users/repositories/index.d.ts +1 -0
- package/lib/domain/users/repositories/user-payment-method.repository.d.ts +4 -0
- package/lib/infra/firebase/firestore/repositories/users/index.d.ts +1 -0
- package/lib/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +60 -0
- package/package.json +1 -1
|
@@ -776,6 +776,17 @@
|
|
|
776
776
|
return UserAddress;
|
|
777
777
|
}(Address));
|
|
778
778
|
|
|
779
|
+
var UserPaymentMethod = /** @class */ (function (_super) {
|
|
780
|
+
__extends(UserPaymentMethod, _super);
|
|
781
|
+
function UserPaymentMethod() {
|
|
782
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
783
|
+
}
|
|
784
|
+
UserPaymentMethod.prototype.identifierFields = function () {
|
|
785
|
+
return ['id'];
|
|
786
|
+
};
|
|
787
|
+
return UserPaymentMethod;
|
|
788
|
+
}(BaseModel));
|
|
789
|
+
|
|
779
790
|
var Lead = /** @class */ (function (_super) {
|
|
780
791
|
__extends(Lead, _super);
|
|
781
792
|
function Lead() {
|
|
@@ -1635,6 +1646,20 @@
|
|
|
1635
1646
|
return UserAddressFirestoreRepository;
|
|
1636
1647
|
}(withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User)));
|
|
1637
1648
|
|
|
1649
|
+
var UserPaymentMethodFirestoreRepository = /** @class */ (function (_super) {
|
|
1650
|
+
__extends(UserPaymentMethodFirestoreRepository, _super);
|
|
1651
|
+
function UserPaymentMethodFirestoreRepository(firestore, parentRepository) {
|
|
1652
|
+
var _this = _super.call(this) || this;
|
|
1653
|
+
_this.firestore = firestore;
|
|
1654
|
+
_this.parentRepository = parentRepository;
|
|
1655
|
+
_this.collectionName = 'payment_method';
|
|
1656
|
+
_this.parentIdField = 'userId';
|
|
1657
|
+
_this.model = UserPaymentMethod;
|
|
1658
|
+
return _this;
|
|
1659
|
+
}
|
|
1660
|
+
return UserPaymentMethodFirestoreRepository;
|
|
1661
|
+
}(withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User)));
|
|
1662
|
+
|
|
1638
1663
|
var SubscriptionPaymentFirestoreRepository = /** @class */ (function (_super) {
|
|
1639
1664
|
__extends(SubscriptionPaymentFirestoreRepository, _super);
|
|
1640
1665
|
function SubscriptionPaymentFirestoreRepository(firestore, parentRepository) {
|
|
@@ -2075,6 +2100,8 @@
|
|
|
2075
2100
|
exports.UserAddressFirestoreRepository = UserAddressFirestoreRepository;
|
|
2076
2101
|
exports.UserBeautyProfileFirestoreRepository = UserBeautyProfileFirestoreRepository;
|
|
2077
2102
|
exports.UserFirestoreRepository = UserFirestoreRepository;
|
|
2103
|
+
exports.UserPaymentMethod = UserPaymentMethod;
|
|
2104
|
+
exports.UserPaymentMethodFirestoreRepository = UserPaymentMethodFirestoreRepository;
|
|
2078
2105
|
exports.Variant = Variant;
|
|
2079
2106
|
exports.withCreateFirestore = withCreateFirestore;
|
|
2080
2107
|
exports.withCrudFirestore = withCrudFirestore;
|