@infrab4a/connect 0.16.10 → 0.17.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 +145 -225
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/domain/users/models/subscription/edition.d.ts +0 -2
- package/domain/users/models/user-payment-method.d.ts +0 -1
- package/domain/users/models/user.d.ts +0 -3
- package/esm2015/domain/users/models/subscription/edition.js +1 -1
- package/esm2015/domain/users/models/user-payment-method.js +1 -1
- package/esm2015/domain/users/models/user.js +1 -1
- package/esm2015/infra/firebase/auth/authentication-firebase-auth.service.js +6 -6
- package/esm2015/infra/firebase/auth/register-firebase-auth.service.js +4 -3
- package/esm2015/infra/firebase/auth/types/firebase-user-with-id.type.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-create-firestore.mixin.js +7 -5
- package/esm2015/infra/firebase/firestore/mixins/with-delete-firestore.mixin.js +3 -4
- package/esm2015/infra/firebase/firestore/mixins/with-find-firestore.mixin.js +31 -25
- package/esm2015/infra/firebase/firestore/mixins/with-firestore.mixin.js +4 -4
- package/esm2015/infra/firebase/firestore/mixins/with-get-firestore.mixin.js +4 -5
- package/esm2015/infra/firebase/firestore/mixins/with-helpers.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-sub-collection.mixin.js +1 -1
- package/esm2015/infra/firebase/firestore/mixins/with-update-firestore.mixin.js +9 -10
- package/esm2015/infra/firebase/firestore/repositories/catalog/category-firestore.repository.js +19 -39
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-firestore.repository.js +2 -2
- package/esm2015/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.js +4 -4
- package/esm2015/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/order-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/lead-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/user-address-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/user-firestore.repository.js +4 -12
- package/esm2015/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js +1 -1
- package/esm2015/infra/firebase/firestore/types/firestore.helpers.type.js +1 -1
- package/esm2015/infra/firebase/firestore/types/firestore.repository.type.js +1 -1
- package/esm2015/utils/index.js +3 -2
- package/fesm2015/infrab4a-connect.js +77 -105
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/infra/firebase/auth/authentication-firebase-auth.service.d.ts +2 -2
- package/infra/firebase/auth/register-firebase-auth.service.d.ts +2 -2
- package/infra/firebase/auth/types/firebase-user-with-id.type.d.ts +2 -1
- package/infra/firebase/firestore/mixins/with-create-firestore.mixin.d.ts +4 -4
- package/infra/firebase/firestore/mixins/with-crud-firestore.mixin.d.ts +8 -8
- package/infra/firebase/firestore/mixins/with-delete-firestore.mixin.d.ts +3 -3
- package/infra/firebase/firestore/mixins/with-find-firestore.mixin.d.ts +7 -7
- package/infra/firebase/firestore/mixins/with-firestore.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-get-firestore.mixin.d.ts +3 -3
- package/infra/firebase/firestore/mixins/with-helpers.mixin.d.ts +1 -1
- package/infra/firebase/firestore/mixins/with-sub-collection.mixin.d.ts +2 -2
- package/infra/firebase/firestore/mixins/with-update-firestore.mixin.d.ts +3 -3
- package/infra/firebase/firestore/repositories/catalog/category-firestore.repository.d.ts +18 -16
- package/infra/firebase/firestore/repositories/catalog/product-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/catalog/product-variant-firestore.repository.d.ts +18 -18
- package/infra/firebase/firestore/repositories/catalog/subscription-product-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shop-settings/home-firestore.repository.d.ts +14 -14
- package/infra/firebase/firestore/repositories/shop-settings/shop-menu-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shopping/buy-2-win-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shopping/checkout-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shopping/checkout-subscription-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shopping/coupon-firestore.repository.d.ts +14 -14
- package/infra/firebase/firestore/repositories/shopping/legacy-order-firestore.repository.d.ts +3 -3
- package/infra/firebase/firestore/repositories/shopping/order-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shopping/payment-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/shopping/subscription-plan-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/users/lead-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/users/subscription-edition-firestore.repository.d.ts +18 -18
- package/infra/firebase/firestore/repositories/users/subscription-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/repositories/users/subscription-payment-firestore.repository.d.ts +18 -18
- package/infra/firebase/firestore/repositories/users/user-address-firestore.repository.d.ts +18 -18
- package/infra/firebase/firestore/repositories/users/user-beauty-profile-firestore.repository.d.ts +18 -18
- package/infra/firebase/firestore/repositories/users/user-firestore.repository.d.ts +14 -14
- package/infra/firebase/firestore/repositories/users/user-payment-method-firestore.repository.d.ts +18 -18
- package/infra/firebase/firestore/repositories/users/user-search-firestore.repository.d.ts +16 -16
- package/infra/firebase/firestore/types/firestore.helpers.type.d.ts +1 -1
- package/infra/firebase/firestore/types/firestore.repository.type.d.ts +2 -2
- package/package.json +2 -2
- package/utils/index.d.ts +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __awaiter } from "tslib";
|
|
2
|
+
import { doc, getDoc, getDocs, query, where } from 'firebase/firestore';
|
|
2
3
|
import { Base } from '../../../../../utils';
|
|
3
4
|
import { BeautyProfile, User, Where } from '../../../../../domain';
|
|
4
5
|
import { withCrudFirestore, withFirestore, withHelpers } from '../../mixins';
|
|
@@ -41,22 +42,13 @@ export class UserFirestoreRepository extends withCrudFirestore(withHelpers(withF
|
|
|
41
42
|
}
|
|
42
43
|
getBeautyProfile(userId) {
|
|
43
44
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
-
const beautyProfile = yield this.collection()
|
|
45
|
-
.doc(userId)
|
|
46
|
-
.collection('CX')
|
|
47
|
-
.withConverter(this.buildBeautyProfileModelInstance())
|
|
48
|
-
.doc('beautyProfile')
|
|
49
|
-
.get();
|
|
45
|
+
const beautyProfile = yield getDoc(doc(this.collection(`${this.collectionName}/${userId}/CX`).withConverter(this.buildBeautyProfileModelInstance()), 'beautyProfile'));
|
|
50
46
|
return beautyProfile.data();
|
|
51
47
|
});
|
|
52
48
|
}
|
|
53
49
|
checkIfIsSubscriber(userId) {
|
|
54
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
const docs = yield this.
|
|
56
|
-
.collection('subscription')
|
|
57
|
-
.where('user.id', '==', userId)
|
|
58
|
-
.where('status', '==', 'active')
|
|
59
|
-
.get();
|
|
51
|
+
const docs = yield getDocs(query(this.collection('subscription'), where('user.id', '==', userId), where('status', '==', 'active')));
|
|
60
52
|
return !!docs && !!docs.size;
|
|
61
53
|
});
|
|
62
54
|
}
|
|
@@ -67,4 +59,4 @@ export class UserFirestoreRepository extends withCrudFirestore(withHelpers(withF
|
|
|
67
59
|
};
|
|
68
60
|
}
|
|
69
61
|
}
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1maXJlc3RvcmUucmVwb3NpdG9yeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2luZnJhL2ZpcmViYXNlL2ZpcmVzdG9yZS9yZXBvc2l0b3JpZXMvdXNlcnMvdXNlci1maXJlc3RvcmUucmVwb3NpdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFFLEdBQUcsRUFBMkIsTUFBTSxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQXlCLEtBQUssRUFBRSxNQUFNLG9CQUFvQixDQUFBO0FBRXZILE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQTtBQUMzQyxPQUFPLEVBQUUsYUFBYSxFQUFFLElBQUksRUFBa0IsS0FBSyxFQUFFLE1BQU0sdUJBQXVCLENBQUE7QUFDbEYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLGFBQWEsRUFBRSxXQUFXLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFFNU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ByaXZhdGUgYXN5bmMgY2hlY2tJZklzU3Vic2NyaWJlcih1c2VySWQ6IHN0cmluZyk6IFByb21pc2U8Ym9vbGVhbj4ge1xuICAgIGNvbnN0IGRvY3MgPSBhd2FpdCBnZXREb2NzKFxuICAgICAgcXVlcnkodGhpcy5jb2xsZWN0aW9uKCdzdWJzY3JpcHRpb24nKSwgd2hlcmUoJ3VzZXIuaWQnLCAnPT0nLCB1c2VySWQpLCB3aGVyZSgnc3RhdHVzJywgJz09JywgJ2FjdGl2ZScpKSxcbiAgICApXG5cbiAgICByZXR1cm4gISFkb2NzICYmICEhZG9jcy5zaXplXG4gIH1cblxuICBwcml2YXRlIGJ1aWxkQmVhdXR5UHJvZmlsZU1vZGVsSW5zdGFuY2UoKToge1xuICAgIHRvRmlyZXN0b3JlOiAoZGF0YTogQmVhdXR5UHJvZmlsZSkgPT4gRG9jdW1lbnREYXRhXG4gICAgZnJvbUZpcmVzdG9yZTogKHNuYXA6IFF1ZXJ5RG9jdW1lbnRTbmFwc2hvdDxCZWF1dHlQcm9maWxlPikgPT4gQmVhdXR5UHJvZmlsZVxuICB9IHtcbiAgICByZXR1cm4ge1xuICAgICAgdG9GaXJlc3RvcmU6IChkYXRhOiBCZWF1dHlQcm9maWxlKTogRG9jdW1lbnREYXRhID0+IGRhdGEudG9QbGFpbigpLFxuICAgICAgZnJvbUZpcmVzdG9yZTogKHNuYXA6IFF1ZXJ5RG9jdW1lbnRTbmFwc2hvdDxCZWF1dHlQcm9maWxlPik6IEJlYXV0eVByb2ZpbGUgPT5cbiAgICAgICAgQmVhdXR5UHJvZmlsZS50b0luc3RhbmNlKHNuYXAuZGF0YSgpKSxcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -11,4 +11,4 @@ export class UserPaymentMethodFirestoreRepository extends withSubCollection(with
|
|
|
11
11
|
this.model = UserPaymentMethod;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|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1lbnRNZXRob2RcbiAgfVxufVxuIl19
|
package/esm2015/infra/firebase/firestore/repositories/users/user-search-firestore.repository.js
CHANGED
|
@@ -9,4 +9,4 @@ export class UserSearchFirestoreRepository extends withCrudFirestore(withHelpers
|
|
|
9
9
|
this.model = UserSearch;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1zZWFyY2gtZmlyZXN0b3JlLnJlcG9zaXRvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy9pbmZyYS9maXJlYmFzZS9maXJlc3RvcmUvcmVwb3NpdG9yaWVzL3VzZXJzL3VzZXItc2VhcmNoLWZpcmVzdG9yZS5yZXBvc2l0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQTtBQUUzQyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sMEJBQTBCLENBQUE7QUFDckQsT0FBTyxFQUFFLGlCQUFpQixFQUFFLGFBQWEsRUFBRSxXQUFXLEVBQUUsTUFBTSxjQUFjLENBQUE7QUFFNUUsTUFBTSxPQUFPLDZCQUNYLFNBQVEsaUJBQWlCLENBQUMsV0FBVyxDQUFDLGFBQWEsQ0FBYSxJQUFJLENBQUMsQ0FBQyxDQUFDO0lBR3ZFLFlBQXFCLFNBQW9CO1FBQ3ZDLEtBQUssRUFBRSxDQUFBO1FBRFksY0FBUyxHQUFULFNBQVMsQ0FBVztRQUV2QyxJQUFJLENBQUMsY0FBYyxHQUFHLFlBQVksQ0FBQTtRQUNsQyxJQUFJLENBQUMsS0FBSyxHQUFHLFVBQVUsQ0FBQTtJQUN6QixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBGaXJlc3RvcmUgfSBmcm9tICdmaXJlYmFzZS9maXJlc3RvcmUnXG5cbmltcG9ydCB7IEJhc2UgfSBmcm9tICcuLi8uLi8uLi8uLi8uLi91dGlscydcbmltcG9ydCB7IENydWRSZXBvc2l0b3J5IH0gZnJvbSAnLi4vLi4vLi4vLi4vLi4vZG9tYWluJ1xuaW1wb3J0IHsgVXNlclNlYXJjaCB9IGZyb20gJy4uLy4uL21vZGVscy91c2VyLXNlYXJjaCdcbmltcG9ydCB7IHdpdGhDcnVkRmlyZXN0b3JlLCB3aXRoRmlyZXN0b3JlLCB3aXRoSGVscGVycyB9IGZyb20gJy4uLy4uL21peGlucydcblxuZXhwb3J0IGNsYXNzIFVzZXJTZWFyY2hGaXJlc3RvcmVSZXBvc2l0b3J5XG4gIGV4dGVuZHMgd2l0aENydWRGaXJlc3RvcmUod2l0aEhlbHBlcnMod2l0aEZpcmVzdG9yZTxVc2VyU2VhcmNoPihCYXNlKSkpXG4gIGltcGxlbWVudHMgQ3J1ZFJlcG9zaXRvcnk8VXNlclNlYXJjaD5cbntcbiAgY29uc3RydWN0b3IocmVhZG9ubHkgZmlyZXN0b3JlOiBGaXJlc3RvcmUpIHtcbiAgICBzdXBlcigpXG4gICAgdGhpcy5jb2xsZWN0aW9uTmFtZSA9ICd1c2VyU2VhcmNoJ1xuICAgIHRoaXMubW9kZWwgPSBVc2VyU2VhcmNoXG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlyZXN0b3JlLmhlbHBlcnMudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL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zaW9uIjozLCJmaWxlIjoiZmlyZXN0b3JlLnJlcG9zaXRvcnkudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Nvbm5lY3Qvc3JjL2luZnJhL2ZpcmViYXNlL2ZpcmVzdG9yZS90eXBlcy9maXJlc3RvcmUucmVwb3NpdG9yeS50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb2xsZWN0aW9uUmVmZXJlbmNlLCBGaXJlc3RvcmUgfSBmcm9tICdmaXJlYmFzZS9maXJlc3RvcmUnXG5cbmltcG9ydCB7IEJhc2VNb2RlbEJ1aWxkZXIsIEJhc2VNb2RlbFdpdGhJZGVudGlmaWVyIH0gZnJvbSAnLi4vLi4vLi4vLi4vZG9tYWluJ1xuXG5leHBvcnQgdHlwZSBGaXJlc3RvcmVSZXBvc2l0b3J5PE1vZGVsIGV4dGVuZHMgQmFzZU1vZGVsV2l0aElkZW50aWZpZXI8TW9kZWw+PiA9IHtcbiAgcmVhZG9ubHkgZmlyZXN0b3JlPzogRmlyZXN0b3JlXG4gIGNvbGxlY3Rpb25OYW1lOiBzdHJpbmdcbiAgbW9kZWw6IEJhc2VNb2RlbEJ1aWxkZXI8TW9kZWw+XG4gIGNvbGxlY3Rpb24ocGF0aD86IHN0cmluZyk6IENvbGxlY3Rpb25SZWZlcmVuY2U8TW9kZWw+XG59XG4iXX0=
|
package/esm2015/utils/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { add, sub } from 'date-fns';
|
|
2
|
-
import
|
|
2
|
+
import lodash from 'lodash';
|
|
3
|
+
const { chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set } = lodash;
|
|
3
4
|
export { add, chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set, sub };
|
|
4
5
|
export * from './mixins';
|
|
5
6
|
export * from './types';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jb25uZWN0L3NyYy91dGlscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsR0FBRyxFQUFZLEdBQUcsRUFBRSxNQUFNLFVBQVUsQ0FBQTtBQUM3QyxPQUFPLE1BQU0sTUFBTSxRQUFRLENBQUE7QUFJM0IsTUFBTSxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsTUFBTSxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxHQUFHLE1BQU0sQ0FBQTtBQUU5RixPQUFPLEVBQUUsR0FBRyxFQUFFLEtBQUssRUFBRSxHQUFHLEVBQUUsTUFBTSxFQUFFLE9BQU8sRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLFFBQVEsRUFBRSxRQUFRLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxHQUFHLEVBQUUsQ0FBQTtBQUNoRyxjQUFjLFVBQVUsQ0FBQTtBQUN4QixjQUFjLFNBQVMsQ0FBQSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGFkZCwgRHVyYXRpb24sIHN1YiB9IGZyb20gJ2RhdGUtZm5zJ1xuaW1wb3J0IGxvZGFzaCBmcm9tICdsb2Rhc2gnXG5cbmV4cG9ydCB0eXBlIERhdGVEdXJhdGlvbiA9IER1cmF0aW9uXG5cbmNvbnN0IHsgY2h1bmssIGdldCwgaXNEYXRlLCBpc0VtcHR5LCBpc05pbCwgaXNOdW1iZXIsIGlzT2JqZWN0LCBpc1N0cmluZywgcGljaywgc2V0IH0gPSBsb2Rhc2hcblxuZXhwb3J0IHsgYWRkLCBjaHVuaywgZ2V0LCBpc0RhdGUsIGlzRW1wdHksIGlzTmlsLCBpc051bWJlciwgaXNPYmplY3QsIGlzU3RyaW5nLCBwaWNrLCBzZXQsIHN1YiB9XG5leHBvcnQgKiBmcm9tICcuL21peGlucydcbmV4cG9ydCAqIGZyb20gJy4vdHlwZXMnXG4iXX0=
|
|
@@ -2,12 +2,11 @@ import 'reflect-metadata';
|
|
|
2
2
|
import { plainToClass, classToPlain, Expose, Type } from 'class-transformer';
|
|
3
3
|
import { __decorate, __metadata, __awaiter } from 'tslib';
|
|
4
4
|
export { add, sub } from 'date-fns';
|
|
5
|
-
import
|
|
6
|
-
export { chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set } from 'lodash';
|
|
5
|
+
import lodash from 'lodash';
|
|
7
6
|
import { Md5 } from 'ts-md5';
|
|
8
7
|
import axios from 'axios';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import { collection, Timestamp, getDoc, doc, where, orderBy, getDocs, query, startAfter, startAt, limit, addDoc, setDoc, deleteField, arrayUnion, arrayRemove, deleteDoc } from 'firebase/firestore';
|
|
9
|
+
import { signInWithEmailAndPassword, signInWithPopup, GoogleAuthProvider, signInAnonymously, sendPasswordResetEmail, createUserWithEmailAndPassword, sendEmailVerification } from 'firebase/auth';
|
|
11
10
|
|
|
12
11
|
class BaseModel {
|
|
13
12
|
constructor(args) {
|
|
@@ -459,6 +458,8 @@ class Base {
|
|
|
459
458
|
}
|
|
460
459
|
}
|
|
461
460
|
|
|
461
|
+
const { chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set } = lodash;
|
|
462
|
+
|
|
462
463
|
var CouponTypes;
|
|
463
464
|
(function (CouponTypes) {
|
|
464
465
|
CouponTypes[CouponTypes["FINANCIAL"] = 1] = "FINANCIAL";
|
|
@@ -1050,7 +1051,7 @@ const withFirestore = (MixinBase) => {
|
|
|
1050
1051
|
super(args);
|
|
1051
1052
|
}
|
|
1052
1053
|
collection(path) {
|
|
1053
|
-
return this.firestore
|
|
1054
|
+
return collection(this.firestore, path || this.collectionName).withConverter(this.buildModelInstance());
|
|
1054
1055
|
}
|
|
1055
1056
|
buildModelInstance() {
|
|
1056
1057
|
return {
|
|
@@ -1058,7 +1059,7 @@ const withFirestore = (MixinBase) => {
|
|
|
1058
1059
|
fromFirestore: (snap) => {
|
|
1059
1060
|
const data = snap.data();
|
|
1060
1061
|
Object.keys(data).forEach((key) => {
|
|
1061
|
-
if (data[key] instanceof
|
|
1062
|
+
if (data[key] instanceof Timestamp) {
|
|
1062
1063
|
data[key] = data[key].toDate();
|
|
1063
1064
|
}
|
|
1064
1065
|
});
|
|
@@ -1089,10 +1090,8 @@ const withGetFirestore = (MixinBase) => {
|
|
|
1089
1090
|
return class GetFirestore extends MixinBase {
|
|
1090
1091
|
get(identifiers) {
|
|
1091
1092
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1092
|
-
const
|
|
1093
|
-
|
|
1094
|
-
.get();
|
|
1095
|
-
const data = doc.data();
|
|
1093
|
+
const docRef = yield getDoc(doc(yield this.collection(this.buildCollectionPathForGet(identifiers)), Object.values(identifiers).shift().toString()));
|
|
1094
|
+
const data = docRef.data();
|
|
1096
1095
|
if (isNil(data))
|
|
1097
1096
|
throw new NotFoundError(`Document ${JSON.stringify(identifiers)} not found`);
|
|
1098
1097
|
return data;
|
|
@@ -1117,10 +1116,13 @@ const withFindFirestore = (MixinBase) => {
|
|
|
1117
1116
|
return class FindFirestore extends MixinBase {
|
|
1118
1117
|
constructor() {
|
|
1119
1118
|
super(...arguments);
|
|
1120
|
-
this.makeFirestoreWhere = (
|
|
1121
|
-
|
|
1119
|
+
this.makeFirestoreWhere = (filter) => Object.keys(filter).reduce((queries, fieldName) => [
|
|
1120
|
+
...queries,
|
|
1121
|
+
...this.buildWhereSentence(fieldName, filter[fieldName]),
|
|
1122
|
+
], []);
|
|
1123
|
+
this.buildWhereSentence = (fieldName, options) => {
|
|
1122
1124
|
if (this.isSubCollection(this) && fieldName === this.parentIdField)
|
|
1123
|
-
|
|
1125
|
+
[];
|
|
1124
1126
|
const value = (options === null || options === void 0 ? void 0 : options.value) || options;
|
|
1125
1127
|
const object = {};
|
|
1126
1128
|
set(object, fieldName, value);
|
|
@@ -1130,30 +1132,33 @@ const withFindFirestore = (MixinBase) => {
|
|
|
1130
1132
|
: Object.keys(plainInstance).find((key) => plainInstance[key]);
|
|
1131
1133
|
if ((options === null || options === void 0 ? void 0 : options.operator) === Where.LIKE) {
|
|
1132
1134
|
if (Array.isArray(options === null || options === void 0 ? void 0 : options.value))
|
|
1133
|
-
return
|
|
1134
|
-
|
|
1135
|
-
queryReference = queryReference.where(firestoreFieldName, '<=', `${options.value}~`);
|
|
1136
|
-
return queryReference;
|
|
1135
|
+
return [where(firestoreFieldName, 'array-contains-any', options.value)];
|
|
1136
|
+
return [where(firestoreFieldName, '>=', options.value), where(firestoreFieldName, '<=', `${options.value}~`)];
|
|
1137
1137
|
}
|
|
1138
1138
|
if ((options === null || options === void 0 ? void 0 : options.operator) === Where.IN && Array.isArray(options === null || options === void 0 ? void 0 : options.value))
|
|
1139
|
-
return
|
|
1139
|
+
return [where(firestoreFieldName, 'array-contains', options.value)];
|
|
1140
1140
|
if (isObject(options) && isNil(options === null || options === void 0 ? void 0 : options.operator) && isNil(options === null || options === void 0 ? void 0 : options.value)) {
|
|
1141
|
-
return Object.keys(options).reduce((
|
|
1141
|
+
return Object.keys(options).reduce((queries, key) => [...queries, ...this.buildWhereSentence(`${fieldName.toString()}.${key}`, options[key])], []);
|
|
1142
1142
|
}
|
|
1143
|
-
return
|
|
1143
|
+
return [where(firestoreFieldName, (options === null || options === void 0 ? void 0 : options.operator) || '==', (options === null || options === void 0 ? void 0 : options.value) || options)];
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
|
-
find(filters,
|
|
1146
|
+
find(filters, limitList, orderByList) {
|
|
1147
1147
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1148
|
-
|
|
1149
|
-
filters === null || filters === void 0 ? void 0 : filters.
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1148
|
+
const collection = this.collection(this.buildCollectionPathForFind(filters));
|
|
1149
|
+
const queries = (filters === null || filters === void 0 ? void 0 : filters.reduce((queriesBuilded, filterer) => [...queriesBuilded, ...this.makeFirestoreWhere(filterer)], [])) ||
|
|
1150
|
+
[];
|
|
1151
|
+
const ordination = (orderByList === null || orderByList === void 0 ? void 0 : orderByList.reduce((ordinationBuilded, sort) => [
|
|
1152
|
+
...ordinationBuilded,
|
|
1153
|
+
...Object.keys(sort).map((fieldName) => orderBy(fieldName, sort[fieldName])),
|
|
1154
|
+
], [])) || [];
|
|
1155
|
+
const limits = yield this.defineLimits(filters, limitList);
|
|
1156
|
+
const queryArgumments = [...queries, ...ordination, ...limits];
|
|
1157
|
+
const docs = yield getDocs(query(collection, ...queryArgumments));
|
|
1153
1158
|
const data = docs.docs.map((doc) => doc.data());
|
|
1154
1159
|
return {
|
|
1155
1160
|
data,
|
|
1156
|
-
count: this.calculateCount(data,
|
|
1161
|
+
count: this.calculateCount(data, limitList),
|
|
1157
1162
|
};
|
|
1158
1163
|
});
|
|
1159
1164
|
}
|
|
@@ -1165,19 +1170,18 @@ const withFindFirestore = (MixinBase) => {
|
|
|
1165
1170
|
const parentId = getValueFromFilter((_a = filters.find((groupFilter) => Boolean(getValueFromFilter(groupFilter[parentIdField])))) === null || _a === void 0 ? void 0 : _a[parentIdField]);
|
|
1166
1171
|
return `${this.parentRepository.collectionName}/${parentId}/${this.collectionName}`;
|
|
1167
1172
|
}
|
|
1168
|
-
defineLimits(
|
|
1173
|
+
defineLimits(filters, limits) {
|
|
1169
1174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1175
|
+
const queries = [];
|
|
1170
1176
|
if (limits === null || limits === void 0 ? void 0 : limits.offset) {
|
|
1171
1177
|
if (limits.offset instanceof this.model)
|
|
1172
|
-
|
|
1173
|
-
.doc(limits.offset[limits.offset.identifierFields().shift()])
|
|
1174
|
-
.get());
|
|
1178
|
+
queries.push(startAfter(yield getDoc(doc(this.collection(this.buildCollectionPathForFind(filters)), limits.offset[limits.offset.identifierFields().shift()]))));
|
|
1175
1179
|
else if (isNumber(limits.offset) || isString(limits.offset))
|
|
1176
|
-
|
|
1180
|
+
queries.push(startAt(limits.offset));
|
|
1177
1181
|
}
|
|
1178
1182
|
if (limits === null || limits === void 0 ? void 0 : limits.limit)
|
|
1179
|
-
|
|
1180
|
-
return
|
|
1183
|
+
queries.push(limit(limits.limit));
|
|
1184
|
+
return queries;
|
|
1181
1185
|
});
|
|
1182
1186
|
}
|
|
1183
1187
|
calculateCount(data, limits) {
|
|
@@ -1195,7 +1199,7 @@ const withCreateFirestore = (MixinBase) => {
|
|
|
1195
1199
|
create(data) {
|
|
1196
1200
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1197
1201
|
const docRef = yield this.save(this.model.toInstance(data));
|
|
1198
|
-
const doc = yield docRef
|
|
1202
|
+
const doc = yield getDoc(docRef);
|
|
1199
1203
|
return doc.data();
|
|
1200
1204
|
});
|
|
1201
1205
|
}
|
|
@@ -1204,10 +1208,11 @@ const withCreateFirestore = (MixinBase) => {
|
|
|
1204
1208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1205
1209
|
const id = (_a = data[data.identifierFields().shift()]) === null || _a === void 0 ? void 0 : _a.toString();
|
|
1206
1210
|
const collectionPath = this.buildCollectionPathForAdd(data);
|
|
1211
|
+
const collection = this.collection(collectionPath);
|
|
1207
1212
|
if (isEmpty(id))
|
|
1208
|
-
return
|
|
1209
|
-
const docRef =
|
|
1210
|
-
yield docRef
|
|
1213
|
+
return addDoc(collection, data);
|
|
1214
|
+
const docRef = doc(collection, id);
|
|
1215
|
+
yield setDoc(docRef, data);
|
|
1211
1216
|
return docRef;
|
|
1212
1217
|
});
|
|
1213
1218
|
}
|
|
@@ -1222,16 +1227,15 @@ const withCreateFirestore = (MixinBase) => {
|
|
|
1222
1227
|
const withUpdateFirestore = (MixinBase) => {
|
|
1223
1228
|
const getValueFromParams = (params, field) => { var _a; return (isNil((_a = params[field]) === null || _a === void 0 ? void 0 : _a.value) ? params[field] : params[field].value) || null; };
|
|
1224
1229
|
const getValueByAction = (options) => {
|
|
1225
|
-
const fieldValues = firebase.firestore.FieldValue;
|
|
1226
1230
|
if (isNil(options.action))
|
|
1227
1231
|
return options;
|
|
1228
1232
|
if (options.action === UpdateOptionActions.REMOVE_FIELD)
|
|
1229
|
-
return
|
|
1233
|
+
return deleteField();
|
|
1230
1234
|
if (Array.isArray(options.value)) {
|
|
1231
1235
|
if (options.action === UpdateOptionActions.MERGE)
|
|
1232
|
-
return
|
|
1236
|
+
return arrayUnion(...options.value);
|
|
1233
1237
|
if (options.action === UpdateOptionActions.REMOVE)
|
|
1234
|
-
return
|
|
1238
|
+
return arrayRemove(...options.value);
|
|
1235
1239
|
}
|
|
1236
1240
|
return options.value;
|
|
1237
1241
|
};
|
|
@@ -1240,10 +1244,10 @@ const withUpdateFirestore = (MixinBase) => {
|
|
|
1240
1244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1241
1245
|
const model = new this.model();
|
|
1242
1246
|
const keyField = model.identifierFields().shift();
|
|
1243
|
-
const docRef = this.collection(this.buildCollectionPathForUpdate(data))
|
|
1244
|
-
yield docRef
|
|
1245
|
-
const
|
|
1246
|
-
return
|
|
1247
|
+
const docRef = doc(this.collection(this.buildCollectionPathForUpdate(data)), getValueFromParams(data, keyField).toString());
|
|
1248
|
+
yield setDoc(docRef, this.paramsToPlain(data), { merge: true });
|
|
1249
|
+
const docData = yield getDoc(docRef);
|
|
1250
|
+
return docData.data();
|
|
1247
1251
|
});
|
|
1248
1252
|
}
|
|
1249
1253
|
buildCollectionPathForUpdate(identifiers) {
|
|
@@ -1264,9 +1268,7 @@ const withDeleteFirestore = (MixinBase) => {
|
|
|
1264
1268
|
return class DeleteFirestore extends MixinBase {
|
|
1265
1269
|
delete(identifiers) {
|
|
1266
1270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1267
|
-
yield this.collection(this.buildCollectionPathForRemove(identifiers))
|
|
1268
|
-
.doc(Object.values(identifiers).shift().toString())
|
|
1269
|
-
.delete();
|
|
1271
|
+
yield deleteDoc(doc(this.collection(this.buildCollectionPathForRemove(identifiers)), Object.values(identifiers).shift().toString()));
|
|
1270
1272
|
});
|
|
1271
1273
|
}
|
|
1272
1274
|
buildCollectionPathForRemove(identifiers) {
|
|
@@ -1355,22 +1357,13 @@ class UserFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
1355
1357
|
}
|
|
1356
1358
|
getBeautyProfile(userId) {
|
|
1357
1359
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1358
|
-
const beautyProfile = yield this.collection()
|
|
1359
|
-
.doc(userId)
|
|
1360
|
-
.collection('CX')
|
|
1361
|
-
.withConverter(this.buildBeautyProfileModelInstance())
|
|
1362
|
-
.doc('beautyProfile')
|
|
1363
|
-
.get();
|
|
1360
|
+
const beautyProfile = yield getDoc(doc(this.collection(`${this.collectionName}/${userId}/CX`).withConverter(this.buildBeautyProfileModelInstance()), 'beautyProfile'));
|
|
1364
1361
|
return beautyProfile.data();
|
|
1365
1362
|
});
|
|
1366
1363
|
}
|
|
1367
1364
|
checkIfIsSubscriber(userId) {
|
|
1368
1365
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1369
|
-
const docs = yield this.
|
|
1370
|
-
.collection('subscription')
|
|
1371
|
-
.where('user.id', '==', userId)
|
|
1372
|
-
.where('status', '==', 'active')
|
|
1373
|
-
.get();
|
|
1366
|
+
const docs = yield getDocs(query(this.collection('subscription'), where('user.id', '==', userId), where('status', '==', 'active')));
|
|
1374
1367
|
return !!docs && !!docs.size;
|
|
1375
1368
|
});
|
|
1376
1369
|
}
|
|
@@ -1447,33 +1440,26 @@ class LeadFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
1447
1440
|
}
|
|
1448
1441
|
|
|
1449
1442
|
class CategoryFirestoreRepository extends withCrudFirestore(withHelpers(withFirestore(Base))) {
|
|
1450
|
-
constructor(firestore) {
|
|
1443
|
+
constructor(firestore, productsIndex) {
|
|
1451
1444
|
super();
|
|
1452
1445
|
this.firestore = firestore;
|
|
1446
|
+
this.productsIndex = productsIndex;
|
|
1453
1447
|
this.collectionName = 'categories';
|
|
1454
1448
|
this.model = Category;
|
|
1455
1449
|
}
|
|
1456
1450
|
getCategoryBySlug(slug, shop) {
|
|
1457
|
-
return this
|
|
1458
|
-
.where('slug', '==', slug)
|
|
1459
|
-
.
|
|
1460
|
-
.where('published', '==', true)
|
|
1461
|
-
.get()
|
|
1462
|
-
.then((snap) => {
|
|
1463
|
-
if (snap.size > 1)
|
|
1451
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1452
|
+
const categoryDocs = yield getDocs(query(this.collection(this.collectionName), where('slug', '==', slug), where('shop', '==', shop), where('published', '==', true)));
|
|
1453
|
+
if (categoryDocs.size > 1)
|
|
1464
1454
|
throw new DuplicatedResultsError('Query returned duplicated values');
|
|
1465
|
-
if (
|
|
1455
|
+
if (categoryDocs.empty)
|
|
1466
1456
|
throw new NotFoundError(`Document with slug ${slug} not found`);
|
|
1467
|
-
return
|
|
1468
|
-
})
|
|
1469
|
-
.catch((error) => error);
|
|
1457
|
+
return categoryDocs.docs[0].data();
|
|
1458
|
+
});
|
|
1470
1459
|
}
|
|
1471
1460
|
getCategoriesForHome(categoryIds, limit = 4) {
|
|
1472
1461
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1473
|
-
const categorySnap = yield this.collection(this.collectionName)
|
|
1474
|
-
.where('id', 'in', categoryIds.filter(Boolean))
|
|
1475
|
-
.where('published', '==', true)
|
|
1476
|
-
.get();
|
|
1462
|
+
const categorySnap = yield getDocs(query(this.collection(this.collectionName), where('id', 'in', categoryIds.filter(Boolean)), where('published', '==', true)));
|
|
1477
1463
|
if (categorySnap.empty)
|
|
1478
1464
|
throw new NotFoundError('Categories not found');
|
|
1479
1465
|
const categories = categorySnap.docs.map((doc) => doc.data());
|
|
@@ -1490,25 +1476,11 @@ class CategoryFirestoreRepository extends withCrudFirestore(withHelpers(withFire
|
|
|
1490
1476
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1491
1477
|
if (!category.products)
|
|
1492
1478
|
throw new RequiredArgumentError(['Category products is empty']);
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
break;
|
|
1499
|
-
let query = yield this.collection('productsErpVitrine')
|
|
1500
|
-
.where(publishedField, '==', true)
|
|
1501
|
-
.where('id', 'in', productIds);
|
|
1502
|
-
if (options === null || options === void 0 ? void 0 : options.hasStock)
|
|
1503
|
-
query = query.where('stock.quantity', '>', 0);
|
|
1504
|
-
if (options === null || options === void 0 ? void 0 : options.limit)
|
|
1505
|
-
query = query.limit(options === null || options === void 0 ? void 0 : options.limit);
|
|
1506
|
-
const productSnap = yield query.get();
|
|
1507
|
-
if (productSnap.empty)
|
|
1508
|
-
continue;
|
|
1509
|
-
products.push(...productSnap.docs.map((doc) => doc.data()));
|
|
1510
|
-
}
|
|
1511
|
-
return products;
|
|
1479
|
+
return this.productsIndex.findById(category.products, {
|
|
1480
|
+
hasStock: options === null || options === void 0 ? void 0 : options.hasStock,
|
|
1481
|
+
size: options === null || options === void 0 ? void 0 : options.limit,
|
|
1482
|
+
shop: category.shop,
|
|
1483
|
+
});
|
|
1512
1484
|
});
|
|
1513
1485
|
}
|
|
1514
1486
|
}
|
|
@@ -1517,7 +1489,7 @@ class ProductFirestoreRepository extends withCrudFirestore(withHelpers(withFires
|
|
|
1517
1489
|
constructor(firestore) {
|
|
1518
1490
|
super();
|
|
1519
1491
|
this.firestore = firestore;
|
|
1520
|
-
this.collectionName = '
|
|
1492
|
+
this.collectionName = 'products';
|
|
1521
1493
|
this.model = Product;
|
|
1522
1494
|
}
|
|
1523
1495
|
getBySlug(slug, shop) {
|
|
@@ -1664,9 +1636,9 @@ class HomeFirestoreRepository extends withCrudFirestore(withHelpers(withFirestor
|
|
|
1664
1636
|
home.data.data.featuredProducts = home.data.data.featuredProducts.map(this.plainToHomeCategoryGroup);
|
|
1665
1637
|
home.data.data.verticalProducts = home.data.data.verticalProducts.map(this.plainToHomeCategoryGroup);
|
|
1666
1638
|
home.data.createdAt =
|
|
1667
|
-
home.data.createdAt instanceof
|
|
1639
|
+
home.data.createdAt instanceof Timestamp ? home.data.createdAt.toDate() : home.data.createdAt;
|
|
1668
1640
|
home.data.expiresAt =
|
|
1669
|
-
home.data.expiresAt instanceof
|
|
1641
|
+
home.data.expiresAt instanceof Timestamp ? home.data.expiresAt.toDate() : home.data.expiresAt;
|
|
1670
1642
|
}
|
|
1671
1643
|
return home;
|
|
1672
1644
|
};
|
|
@@ -1707,7 +1679,7 @@ class AuthenticationFirebaseAuthService {
|
|
|
1707
1679
|
}
|
|
1708
1680
|
signInWithEmailAndPassword(data) {
|
|
1709
1681
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1710
|
-
const credentials = yield this.firebaseAuth
|
|
1682
|
+
const credentials = yield signInWithEmailAndPassword(this.firebaseAuth, data.email, data.password);
|
|
1711
1683
|
const user = credentials.user;
|
|
1712
1684
|
return {
|
|
1713
1685
|
id: user.uid,
|
|
@@ -1720,7 +1692,7 @@ class AuthenticationFirebaseAuthService {
|
|
|
1720
1692
|
}
|
|
1721
1693
|
signInWithGoogle() {
|
|
1722
1694
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1723
|
-
const credentials = yield this.firebaseAuth
|
|
1695
|
+
const credentials = yield signInWithPopup(this.firebaseAuth, new GoogleAuthProvider());
|
|
1724
1696
|
const user = credentials.user;
|
|
1725
1697
|
return {
|
|
1726
1698
|
id: user.uid,
|
|
@@ -1738,7 +1710,7 @@ class AuthenticationFirebaseAuthService {
|
|
|
1738
1710
|
}
|
|
1739
1711
|
signInAnonymously() {
|
|
1740
1712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1741
|
-
const auth = yield this.firebaseAuth
|
|
1713
|
+
const auth = yield signInAnonymously(this.firebaseAuth);
|
|
1742
1714
|
const user = auth.user;
|
|
1743
1715
|
user.id = auth.user.uid;
|
|
1744
1716
|
return user;
|
|
@@ -1746,7 +1718,7 @@ class AuthenticationFirebaseAuthService {
|
|
|
1746
1718
|
}
|
|
1747
1719
|
sendPasswordResetEmail(email) {
|
|
1748
1720
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1749
|
-
return this.firebaseAuth
|
|
1721
|
+
return sendPasswordResetEmail(this.firebaseAuth, email);
|
|
1750
1722
|
});
|
|
1751
1723
|
}
|
|
1752
1724
|
}
|
|
@@ -1758,9 +1730,9 @@ class RegisterFirebaseAuthService {
|
|
|
1758
1730
|
register(params) {
|
|
1759
1731
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1760
1732
|
try {
|
|
1761
|
-
const auth = yield this.firebaseAuth
|
|
1733
|
+
const auth = yield createUserWithEmailAndPassword(this.firebaseAuth, params.email, params.password);
|
|
1762
1734
|
const user = auth.user;
|
|
1763
|
-
|
|
1735
|
+
yield sendEmailVerification(user);
|
|
1764
1736
|
user.id = auth.user.uid;
|
|
1765
1737
|
return user;
|
|
1766
1738
|
}
|
|
@@ -1779,5 +1751,5 @@ class RegisterFirebaseAuthService {
|
|
|
1779
1751
|
* Generated bundle index. Do not edit.
|
|
1780
1752
|
*/
|
|
1781
1753
|
|
|
1782
|
-
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Category, CategoryFirestoreRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, FilterType, FinancialCoupon, FragranceImportances, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, 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, UserSearchFirestoreRepository, UserType, Variant, WeakPasswordError, Where, withCreateFirestore, withCrudFirestore, withDeleteFirestore, withFindFirestore, withFirestore, withGetFirestore, withHelpers, withSubCollection, withUpdateFirestore };
|
|
1754
|
+
export { AccessoryImportances, Address, Area, Authentication, AuthenticationFirebaseAuthService, AxiosAdapter, Base, BaseModel, BeardProblems, BeardSizes, BeautyProductImportances, BeautyProfile, BeautyQuestionsHelper, BillingStatus, BodyProblems, BodyShapes, BodyTattoos, Buy2Win, Buy2WinFirestoreRepository, Category, CategoryFirestoreRepository, Checkout, CheckoutFirestoreRepository, CheckoutSubscription, CheckoutSubscriptionFirestoreRepository, CheckoutTypes, Coupon, CouponFirestoreRepository, CouponSubtypes, CouponTypes, DuplicatedResultsError, Edition, EditionStatus, Exclusivities, FaceSkinOilinesses, FaceSkinProblems, FaceSkinTones, FamilyIncomes, FilterType, FinancialCoupon, FragranceImportances, HairColors, HairProblems, HairStrands, HairTypes, Home, HomeFirestoreRepository, InvalidArgumentError, Lead, LeadFirestoreRepository, LegacyOrderFirestoreRepository, LineItem, NotFoundError, OfficePosition, Order, OrderFirestoreRepository, OrderStatus, Payment, PaymentFirestoreRepository, PaymentType, Product, ProductFirestoreRepository, 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, UserSearchFirestoreRepository, UserType, Variant, WeakPasswordError, Where, chunk, get, isDate, isEmpty, isNil, isNumber, isObject, isString, pick, set, withCreateFirestore, withCrudFirestore, withDeleteFirestore, withFindFirestore, withFirestore, withGetFirestore, withHelpers, withSubCollection, withUpdateFirestore };
|
|
1783
1755
|
//# sourceMappingURL=infrab4a-connect.js.map
|