@infrab4a/connect 2.0.9 → 2.0.10
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 +63 -93
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/index.js +6 -7
- package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +4 -6
- package/fesm2015/infrab4a-connect.js +48 -64
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/firestore/repositories/users/index.d.ts +5 -6
- package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +1 -3
- package/package.json +1 -1
- package/esm2015/infra/firebase/firestore/models/user-search.js +0 -7
- package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +0 -12
- package/infra/firebase/firestore/models/user-search.d.ts +0 -9
- package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +0 -9
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './user-firestore.repository';
|
|
1
|
+
export * from './lead-firestore.repository';
|
|
3
2
|
export * from './subscription-edition-firestore.repository';
|
|
4
|
-
export * from './
|
|
3
|
+
export * from './subscription-firestore.repository';
|
|
4
|
+
export * from './subscription-payment-firestore.repository';
|
|
5
5
|
export * from './user-address-firestore.repository';
|
|
6
|
+
export * from './user-beauty-profile-firestore.repository';
|
|
7
|
+
export * from './user-firestore.repository';
|
|
6
8
|
export * from './user-payment-method-firestore.repository';
|
|
7
|
-
|
|
8
|
-
export * from './lead-firestore.repository';
|
|
9
|
-
export * from './user-search-firestore.repository';
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9pbmZy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4vdXNlci1wYXltZW50LW1ldGhvZC1maXJlc3RvcmUucmVwb3NpdG9yeSdcbiJdfQ==
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
+
import { BeautyProfile, User } from '../../../../../domain';
|
|
2
3
|
import { Base } from '../../../../../utils';
|
|
3
|
-
import { BeautyProfile, User, Where } from '../../../../../domain';
|
|
4
4
|
import { withCrudFirestore, withFirestore, withHelpers } from '../../mixins';
|
|
5
|
-
import { UserSearchFirestoreRepository } from './user-search-firestore.repository';
|
|
6
5
|
export class UserFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
7
|
-
constructor(firestore
|
|
6
|
+
constructor(firestore) {
|
|
8
7
|
super();
|
|
9
8
|
this.firestore = firestore;
|
|
10
|
-
this.userSearchFirestoreRepository = userSearchFirestoreRepository;
|
|
11
9
|
this.collectionName = 'users';
|
|
12
10
|
this.model = User;
|
|
13
11
|
}
|
|
@@ -24,7 +22,7 @@ export class UserFirestoreRepository extends withCrudFirestore(withHelpers(withF
|
|
|
24
22
|
}
|
|
25
23
|
checkIfExistsByField(field, value) {
|
|
26
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
-
const result = yield this.
|
|
25
|
+
const result = yield this.find({ filters: { [field]: value } });
|
|
28
26
|
return result.count > 0;
|
|
29
27
|
});
|
|
30
28
|
}
|
|
@@ -67,4 +65,4 @@ export class UserFirestoreRepository extends withCrudFirestore(withHelpers(withF
|
|
|
67
65
|
};
|
|
68
66
|
}
|
|
69
67
|
}
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1maXJlc3RvcmUucmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qv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c9PScsIHVzZXJJZClcbiAgICAgIC53aGVyZSgnc3RhdHVzJywgJz09JywgJ2FjdGl2ZScpXG4gICAgICAuZ2V0KClcblxuICAgIHJldHVybiAhIWRvY3MgJiYgISFkb2NzLnNpemVcbiAgfVxuXG4gIHByaXZhdGUgYnVpbGRCZWF1dHlQcm9maWxlTW9kZWxJbnN0YW5jZSgpOiB7XG4gICAgdG9GaXJlc3RvcmU6IChkYXRhOiBCZWF1dHlQcm9maWxlKSA9PiBEb2N1bWVudERhdGFcbiAgICBmcm9tRmlyZXN0b3JlOiAoc25hcDogUXVlcnlEb2N1bWVudFNuYXBzaG90PEJlYXV0eVByb2ZpbGU+KSA9PiBCZWF1dHlQcm9maWxlXG4gIH0ge1xuICAgIHJldHVybiB7XG4gICAgICB0b0ZpcmVzdG9yZTogKGRhdGE6IEJlYXV0eVByb2ZpbGUpOiBEb2N1bWVudERhdGEgPT4gZGF0YS50b1BsYWluKCksXG4gICAgICBmcm9tRmlyZXN0b3JlOiAoc25hcDogUXVlcnlEb2N1bWVudFNuYXBzaG90PEJlYXV0eVByb2ZpbGU+KTogQmVhdXR5UHJvZmlsZSA9PlxuICAgICAgICBCZWF1dHlQcm9maWxlLnRvSW5zdGFuY2Uoc25hcC5kYXRhKCkpLFxuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1428,6 +1428,26 @@ const withCrudFirestore = (MixinBase) => {
|
|
|
1428
1428
|
};
|
|
1429
1429
|
};
|
|
1430
1430
|
|
|
1431
|
+
class LeadFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
1432
|
+
constructor(firestore) {
|
|
1433
|
+
super();
|
|
1434
|
+
this.firestore = firestore;
|
|
1435
|
+
this.collectionName = 'leads';
|
|
1436
|
+
this.model = Lead;
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
class SubscriptionEditionFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), Subscription) {
|
|
1441
|
+
constructor(firestore, parentRepository) {
|
|
1442
|
+
super();
|
|
1443
|
+
this.firestore = firestore;
|
|
1444
|
+
this.parentRepository = parentRepository;
|
|
1445
|
+
this.collectionName = 'editions';
|
|
1446
|
+
this.parentIdField = 'subscriptionId';
|
|
1447
|
+
this.model = Edition;
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1431
1451
|
class SubscriptionFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
1432
1452
|
constructor(firestore) {
|
|
1433
1453
|
super();
|
|
@@ -1437,26 +1457,43 @@ class SubscriptionFirestoreRepository extends withCrudFirestore(withHelpers(with
|
|
|
1437
1457
|
}
|
|
1438
1458
|
}
|
|
1439
1459
|
|
|
1440
|
-
class
|
|
1441
|
-
|
|
1442
|
-
|
|
1460
|
+
class SubscriptionPaymentFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), Subscription) {
|
|
1461
|
+
constructor(firestore, parentRepository) {
|
|
1462
|
+
super();
|
|
1463
|
+
this.firestore = firestore;
|
|
1464
|
+
this.parentRepository = parentRepository;
|
|
1465
|
+
this.collectionName = 'payments';
|
|
1466
|
+
this.parentIdField = 'subscriptionId';
|
|
1467
|
+
this.model = SubscriptionPayment;
|
|
1443
1468
|
}
|
|
1444
1469
|
}
|
|
1445
1470
|
|
|
1446
|
-
class
|
|
1447
|
-
constructor(firestore) {
|
|
1471
|
+
class UserAddressFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User) {
|
|
1472
|
+
constructor(firestore, parentRepository) {
|
|
1448
1473
|
super();
|
|
1449
1474
|
this.firestore = firestore;
|
|
1450
|
-
this.
|
|
1451
|
-
this.
|
|
1475
|
+
this.parentRepository = parentRepository;
|
|
1476
|
+
this.collectionName = 'address';
|
|
1477
|
+
this.parentIdField = 'userId';
|
|
1478
|
+
this.model = UserAddress;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
class UserBeautyProfileFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User) {
|
|
1483
|
+
constructor(firestore, parentRepository) {
|
|
1484
|
+
super();
|
|
1485
|
+
this.firestore = firestore;
|
|
1486
|
+
this.parentRepository = parentRepository;
|
|
1487
|
+
this.collectionName = 'CX';
|
|
1488
|
+
this.parentIdField = 'userId';
|
|
1489
|
+
this.model = BeautyProfile;
|
|
1452
1490
|
}
|
|
1453
1491
|
}
|
|
1454
1492
|
|
|
1455
1493
|
class UserFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
1456
|
-
constructor(firestore
|
|
1494
|
+
constructor(firestore) {
|
|
1457
1495
|
super();
|
|
1458
1496
|
this.firestore = firestore;
|
|
1459
|
-
this.userSearchFirestoreRepository = userSearchFirestoreRepository;
|
|
1460
1497
|
this.collectionName = 'users';
|
|
1461
1498
|
this.model = User;
|
|
1462
1499
|
}
|
|
@@ -1473,7 +1510,7 @@ class UserFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
1473
1510
|
}
|
|
1474
1511
|
checkIfExistsByField(field, value) {
|
|
1475
1512
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1476
|
-
const result = yield this.
|
|
1513
|
+
const result = yield this.find({ filters: { [field]: value } });
|
|
1477
1514
|
return result.count > 0;
|
|
1478
1515
|
});
|
|
1479
1516
|
}
|
|
@@ -1517,39 +1554,6 @@ class UserFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
1517
1554
|
}
|
|
1518
1555
|
}
|
|
1519
1556
|
|
|
1520
|
-
class SubscriptionEditionFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), Subscription) {
|
|
1521
|
-
constructor(firestore, parentRepository) {
|
|
1522
|
-
super();
|
|
1523
|
-
this.firestore = firestore;
|
|
1524
|
-
this.parentRepository = parentRepository;
|
|
1525
|
-
this.collectionName = 'editions';
|
|
1526
|
-
this.parentIdField = 'subscriptionId';
|
|
1527
|
-
this.model = Edition;
|
|
1528
|
-
}
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
|
-
class UserBeautyProfileFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User) {
|
|
1532
|
-
constructor(firestore, parentRepository) {
|
|
1533
|
-
super();
|
|
1534
|
-
this.firestore = firestore;
|
|
1535
|
-
this.parentRepository = parentRepository;
|
|
1536
|
-
this.collectionName = 'CX';
|
|
1537
|
-
this.parentIdField = 'userId';
|
|
1538
|
-
this.model = BeautyProfile;
|
|
1539
|
-
}
|
|
1540
|
-
}
|
|
1541
|
-
|
|
1542
|
-
class UserAddressFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User) {
|
|
1543
|
-
constructor(firestore, parentRepository) {
|
|
1544
|
-
super();
|
|
1545
|
-
this.firestore = firestore;
|
|
1546
|
-
this.parentRepository = parentRepository;
|
|
1547
|
-
this.collectionName = 'address';
|
|
1548
|
-
this.parentIdField = 'userId';
|
|
1549
|
-
this.model = UserAddress;
|
|
1550
|
-
}
|
|
1551
|
-
}
|
|
1552
|
-
|
|
1553
1557
|
class UserPaymentMethodFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), User) {
|
|
1554
1558
|
constructor(firestore, parentRepository) {
|
|
1555
1559
|
super();
|
|
@@ -1561,26 +1565,6 @@ class UserPaymentMethodFirestoreRepository extends withSubCollection(withCrudFir
|
|
|
1561
1565
|
}
|
|
1562
1566
|
}
|
|
1563
1567
|
|
|
1564
|
-
class SubscriptionPaymentFirestoreRepository extends withSubCollection(withCrudFirestore(withHelpers(withFirestore(Base))), Subscription) {
|
|
1565
|
-
constructor(firestore, parentRepository) {
|
|
1566
|
-
super();
|
|
1567
|
-
this.firestore = firestore;
|
|
1568
|
-
this.parentRepository = parentRepository;
|
|
1569
|
-
this.collectionName = 'payments';
|
|
1570
|
-
this.parentIdField = 'subscriptionId';
|
|
1571
|
-
this.model = SubscriptionPayment;
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
|
|
1575
|
-
class LeadFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
1576
|
-
constructor(firestore) {
|
|
1577
|
-
super();
|
|
1578
|
-
this.firestore = firestore;
|
|
1579
|
-
this.collectionName = 'leads';
|
|
1580
|
-
this.model = Lead;
|
|
1581
|
-
}
|
|
1582
|
-
}
|
|
1583
|
-
|
|
1584
1568
|
class CategoryFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
1585
1569
|
constructor(firestore) {
|
|
1586
1570
|
super();
|
|
@@ -3155,5 +3139,5 @@ class VariantHasuraGraphQLRepository extends withCrudHasuraGraphQL(withHasuraGra
|
|
|
3155
3139
|
* Generated bundle index. Do not edit.
|
|
3156
3140
|
*/
|
|
3157
3141
|
|
|
3158
|
-
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Category, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, FilterType, FragranceImportances, GenderDestination, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductSpents, ProductVariantFirestoreRepository, ProductsIndex, QuestionsFilters, RecoveryPassword, Register, RegisterFirebaseAuthService, RequiredArgumentError, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, Shops, SignInMethods, SignOut, Status, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, UnauthorizedError, UpdateOptionActions, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository,
|
|
3142
|
+
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Category, CategoryFirestoreRepository, CategoryHasuraGraphQL, CategoryHasuraGraphQLRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, FilterType, FragranceImportances, GenderDestination, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, KitProduct, KitProductHasuraGraphQL, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, ProductHasuraGraphQL, ProductHasuraGraphQLRepository, ProductSpents, ProductVariantFirestoreRepository, ProductsIndex, QuestionsFilters, RecoveryPassword, Register, RegisterFirebaseAuthService, RequiredArgumentError, ShippingMethod, ShopMenu, ShopMenuFirestoreRepository, Shops, SignInMethods, SignOut, Status, Subscription, SubscriptionEditionFirestoreRepository, SubscriptionFirestoreRepository, SubscriptionPayment, SubscriptionPaymentFirestoreRepository, SubscriptionPlan, SubscriptionPlanFirestoreRepository, SubscriptionProductFirestoreRepository, UnauthorizedError, UpdateOptionActions, User, UserAddress, UserAddressFirestoreRepository, UserAlreadyRegisteredError, UserBeautyProfileFirestoreRepository, UserFirestoreRepository, UserPaymentMethod, UserPaymentMethodFirestoreRepository, UserType, Variant, VariantHasuraGraphQL, VariantHasuraGraphQLRepository, WeakPasswordError, Where, isUUID, parseDateTime, withCreateFirestore, withCreateHasuraGraphQL, withCrudFirestore, withCrudHasuraGraphQL, withDeleteFirestore, withDeleteHasuraGraphQL, withFindFirestore, withFindHasuraGraphQL, withFirestore, withGetFirestore, withGetHasuraGraphQL, withHasuraGraphQL, withHelpers, withSubCollection, withUpdateFirestore, withUpdateHasuraGraphQL };
|
|
3159
3143
|
//# sourceMappingURL=infrab4a-connect.js.map
|