@infrab4a/connect 0.13.4 → 0.14.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 +27 -0
- package/bundles/infrab4a-connect.umd.js.map +1 -1
- package/esm2015/lib/domain/users/services/authentication.service.js +1 -1
- package/esm2015/lib/domain/users/use-cases/index.js +2 -1
- package/esm2015/lib/domain/users/use-cases/recovery-password.js +12 -0
- package/esm2015/lib/infra/firebase/auth/authentication-firebase-auth.service.js +6 -1
- package/fesm2015/infrab4a-connect.js +17 -1
- package/fesm2015/infrab4a-connect.js.map +1 -1
- package/lib/domain/users/services/authentication.service.d.ts +1 -0
- package/lib/domain/users/use-cases/index.d.ts +1 -0
- package/lib/domain/users/use-cases/recovery-password.d.ts +6 -0
- package/lib/infra/firebase/auth/authentication-firebase-auth.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1093,6 +1093,25 @@
|
|
|
1093
1093
|
return SignOut;
|
|
1094
1094
|
}());
|
|
1095
1095
|
|
|
1096
|
+
var RecoveryPassword = /** @class */ (function () {
|
|
1097
|
+
function RecoveryPassword(authService) {
|
|
1098
|
+
this.authService = authService;
|
|
1099
|
+
}
|
|
1100
|
+
RecoveryPassword.prototype.sendEmail = function (email) {
|
|
1101
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1102
|
+
return __generator(this, function (_a) {
|
|
1103
|
+
switch (_a.label) {
|
|
1104
|
+
case 0: return [4 /*yield*/, this.authService.sendPasswordResetEmail(email)];
|
|
1105
|
+
case 1:
|
|
1106
|
+
_a.sent();
|
|
1107
|
+
return [2 /*return*/];
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
});
|
|
1111
|
+
};
|
|
1112
|
+
return RecoveryPassword;
|
|
1113
|
+
}());
|
|
1114
|
+
|
|
1096
1115
|
exports.Shops = void 0;
|
|
1097
1116
|
(function (Shops) {
|
|
1098
1117
|
Shops["MENSMARKET"] = "mensmarket";
|
|
@@ -2413,6 +2432,13 @@
|
|
|
2413
2432
|
});
|
|
2414
2433
|
});
|
|
2415
2434
|
};
|
|
2435
|
+
AuthenticationFirebaseAuthService.prototype.sendPasswordResetEmail = function (email) {
|
|
2436
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2437
|
+
return __generator(this, function (_a) {
|
|
2438
|
+
return [2 /*return*/, this.firebaseAuth.sendPasswordResetEmail(email)];
|
|
2439
|
+
});
|
|
2440
|
+
});
|
|
2441
|
+
};
|
|
2416
2442
|
return AuthenticationFirebaseAuthService;
|
|
2417
2443
|
}());
|
|
2418
2444
|
|
|
@@ -2516,6 +2542,7 @@
|
|
|
2516
2542
|
exports.Product = Product;
|
|
2517
2543
|
exports.ProductFirestoreRepository = ProductFirestoreRepository;
|
|
2518
2544
|
exports.ProductVariantFirestoreRepository = ProductVariantFirestoreRepository;
|
|
2545
|
+
exports.RecoveryPassword = RecoveryPassword;
|
|
2519
2546
|
exports.Register = Register;
|
|
2520
2547
|
exports.RegisterFirebaseAuthService = RegisterFirebaseAuthService;
|
|
2521
2548
|
exports.RequiredArgumentError = RequiredArgumentError;
|