@punks/backend-entity-manager 0.0.30 → 0.0.31
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/dist/cjs/index.js +6 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/auth.actions.d.ts +4 -4
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/auth.dto.d.ts +1 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/handlers.d.ts +11 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/index.d.ts +1 -11
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-disable/index.d.ts +1 -3
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-disable/types.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-enable/index.d.ts +1 -3
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-enable/types.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts +1 -9
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts +10 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-change/index.d.ts +1 -5
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-change/types.d.ts +5 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/index.d.ts +1 -5
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/types.d.ts +5 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/index.d.ts +1 -12
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/types.d.ts +13 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts +2 -18
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +17 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-token-verify/index.d.ts +2 -8
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-token-verify/types.d.ts +8 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/index.d.ts +1 -3
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/types.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-request/index.d.ts +1 -12
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-request/types.d.ts +13 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +25 -15
- package/dist/cjs/types/platforms/nest/extensions/authentication/types/index.d.ts +3 -0
- package/dist/esm/index.js +6 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/auth.actions.d.ts +4 -4
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/auth.dto.d.ts +1 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/handlers.d.ts +11 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/index.d.ts +1 -11
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-disable/index.d.ts +1 -3
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-disable/types.d.ts +3 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-enable/index.d.ts +1 -3
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-enable/types.d.ts +3 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts +1 -9
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts +10 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-change/index.d.ts +1 -5
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-change/types.d.ts +5 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/index.d.ts +1 -5
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/types.d.ts +5 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/index.d.ts +1 -12
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/types.d.ts +13 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts +2 -18
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +17 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-token-verify/index.d.ts +2 -8
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-token-verify/types.d.ts +8 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/index.d.ts +1 -3
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/types.d.ts +3 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-request/index.d.ts +1 -12
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-request/types.d.ts +13 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +25 -15
- package/dist/esm/types/platforms/nest/extensions/authentication/types/index.d.ts +3 -0
- package/dist/index.d.ts +105 -95
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -18936,6 +18936,11 @@ JwtProvider = __decorate([
|
|
|
18936
18936
|
__metadata("design:paramtypes", [jwt.JwtService])
|
|
18937
18937
|
], JwtProvider);
|
|
18938
18938
|
|
|
18939
|
+
exports.UserRegistrationError = void 0;
|
|
18940
|
+
(function (UserRegistrationError) {
|
|
18941
|
+
UserRegistrationError[UserRegistrationError["UserAlreadyExists"] = 0] = "UserAlreadyExists";
|
|
18942
|
+
})(exports.UserRegistrationError || (exports.UserRegistrationError = {}));
|
|
18943
|
+
|
|
18939
18944
|
let PasswordHashingProvider = class PasswordHashingProvider {
|
|
18940
18945
|
constructor(hashing) {
|
|
18941
18946
|
this.hashing = hashing;
|
|
@@ -18964,10 +18969,6 @@ PasswordHashingProvider = __decorate([
|
|
|
18964
18969
|
__metadata("design:paramtypes", [exports.AppHashingService])
|
|
18965
18970
|
], PasswordHashingProvider);
|
|
18966
18971
|
|
|
18967
|
-
var UserRegistrationError;
|
|
18968
|
-
(function (UserRegistrationError) {
|
|
18969
|
-
UserRegistrationError[UserRegistrationError["UserAlreadyExists"] = 0] = "UserAlreadyExists";
|
|
18970
|
-
})(UserRegistrationError || (UserRegistrationError = {}));
|
|
18971
18972
|
let UserRegistrationHandler = class UserRegistrationHandler {
|
|
18972
18973
|
constructor(services, passwordHashingProvider, emailService, jwtProvider) {
|
|
18973
18974
|
this.services = services;
|
|
@@ -18980,7 +18981,7 @@ let UserRegistrationHandler = class UserRegistrationHandler {
|
|
|
18980
18981
|
if (user && user.verified) {
|
|
18981
18982
|
return {
|
|
18982
18983
|
success: false,
|
|
18983
|
-
error: UserRegistrationError.UserAlreadyExists,
|
|
18984
|
+
error: exports.UserRegistrationError.UserAlreadyExists,
|
|
18984
18985
|
};
|
|
18985
18986
|
}
|
|
18986
18987
|
if (user && !user.verified) {
|