@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.
Files changed (58) hide show
  1. package/dist/cjs/index.js +6 -5
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/platforms/nest/__test__/server/app/auth/auth.actions.d.ts +4 -4
  4. package/dist/cjs/types/platforms/nest/__test__/server/app/auth/auth.dto.d.ts +1 -1
  5. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/handlers.d.ts +11 -0
  6. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/index.d.ts +1 -11
  7. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-disable/index.d.ts +1 -3
  8. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-disable/types.d.ts +3 -0
  9. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-enable/index.d.ts +1 -3
  10. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-enable/types.d.ts +3 -0
  11. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts +1 -9
  12. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts +10 -0
  13. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-change/index.d.ts +1 -5
  14. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-change/types.d.ts +5 -0
  15. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/index.d.ts +1 -5
  16. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/types.d.ts +5 -0
  17. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/index.d.ts +1 -12
  18. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/types.d.ts +13 -0
  19. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts +2 -18
  20. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +17 -0
  21. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-token-verify/index.d.ts +2 -8
  22. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-token-verify/types.d.ts +8 -0
  23. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/index.d.ts +1 -3
  24. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/types.d.ts +3 -0
  25. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-request/index.d.ts +1 -12
  26. package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-request/types.d.ts +13 -0
  27. package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +25 -15
  28. package/dist/cjs/types/platforms/nest/extensions/authentication/types/index.d.ts +3 -0
  29. package/dist/esm/index.js +6 -5
  30. package/dist/esm/index.js.map +1 -1
  31. package/dist/esm/types/platforms/nest/__test__/server/app/auth/auth.actions.d.ts +4 -4
  32. package/dist/esm/types/platforms/nest/__test__/server/app/auth/auth.dto.d.ts +1 -1
  33. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/handlers.d.ts +11 -0
  34. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/index.d.ts +1 -11
  35. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-disable/index.d.ts +1 -3
  36. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-disable/types.d.ts +3 -0
  37. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-enable/index.d.ts +1 -3
  38. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-enable/types.d.ts +3 -0
  39. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts +1 -9
  40. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts +10 -0
  41. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-change/index.d.ts +1 -5
  42. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-change/types.d.ts +5 -0
  43. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/index.d.ts +1 -5
  44. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-complete/types.d.ts +5 -0
  45. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/index.d.ts +1 -12
  46. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-password-reset-request/types.d.ts +13 -0
  47. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts +2 -18
  48. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +17 -0
  49. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-token-verify/index.d.ts +2 -8
  50. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-token-verify/types.d.ts +8 -0
  51. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/index.d.ts +1 -3
  52. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/types.d.ts +3 -0
  53. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-request/index.d.ts +1 -12
  54. package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-request/types.d.ts +13 -0
  55. package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +25 -15
  56. package/dist/esm/types/platforms/nest/extensions/authentication/types/index.d.ts +3 -0
  57. package/dist/index.d.ts +105 -95
  58. 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) {