@punks/backend-entity-manager 0.0.30 → 0.0.32
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/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/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/types/platforms/nest/extensions/authentication/handlers/{index.d.ts → handlers.d.ts} +0 -0
- /package/dist/esm/types/platforms/nest/extensions/authentication/handlers/{index.d.ts → handlers.d.ts} +0 -0
|
@@ -3,16 +3,16 @@ import { UserEmailVerifyCompleteRequest, UserEmailVerifyRequest, UserLoginReques
|
|
|
3
3
|
export declare class AuthActions {
|
|
4
4
|
private readonly auth;
|
|
5
5
|
constructor(auth: AuthenticationService);
|
|
6
|
-
login(data: UserLoginRequest): Promise<import("../../../../extensions/authentication/handlers/user-login").UserLoginResult>;
|
|
6
|
+
login(data: UserLoginRequest): Promise<import("../../../../extensions/authentication/handlers/user-login/types").UserLoginResult>;
|
|
7
7
|
register(data: UserRegisterRequest): Promise<{
|
|
8
8
|
success: boolean;
|
|
9
|
-
error: import("../../../../extensions
|
|
9
|
+
error: import("../../../../extensions").UserRegistrationError;
|
|
10
10
|
} | {
|
|
11
11
|
success: boolean;
|
|
12
12
|
error?: undefined;
|
|
13
13
|
}>;
|
|
14
|
-
passwordReset(data: UserPasswordResetRequest): Promise<import("../../../../extensions/authentication/handlers/user-password-reset-request").UserPasswordResetRequestResult>;
|
|
14
|
+
passwordReset(data: UserPasswordResetRequest): Promise<import("../../../../extensions/authentication/handlers/user-password-reset-request/types").UserPasswordResetRequestResult>;
|
|
15
15
|
passwordResetComplete(data: UserPasswordResetCompleteRequest): Promise<void>;
|
|
16
|
-
userVerifyRequest(data: UserEmailVerifyRequest): Promise<import("../../../../extensions/authentication/handlers/user-verify-request").UserVerifyResetRequestResult>;
|
|
16
|
+
userVerifyRequest(data: UserEmailVerifyRequest): Promise<import("../../../../extensions/authentication/handlers/user-verify-request/types").UserVerifyResetRequestResult>;
|
|
17
17
|
userVerifyComplete(data: UserEmailVerifyCompleteRequest): Promise<void>;
|
|
18
18
|
}
|
package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-disable/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
2
|
-
|
|
3
|
-
userId: string;
|
|
4
|
-
}
|
|
2
|
+
import { UserDisableInput } from "./types";
|
|
5
3
|
export declare class UserDisableHandler {
|
|
6
4
|
private readonly services;
|
|
7
5
|
constructor(services: AuthenticationServicesResolver);
|
package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-enable/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
2
|
-
|
|
3
|
-
userId: string;
|
|
4
|
-
}
|
|
2
|
+
import { UserEnableInput } from "./types";
|
|
5
3
|
export declare class UserEnableHandler {
|
|
6
4
|
private readonly services;
|
|
7
5
|
constructor(services: AuthenticationServicesResolver);
|
package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/index.d.ts
CHANGED
|
@@ -2,15 +2,7 @@ import { PasswordHashingProvider } from "../../providers/password-hasher";
|
|
|
2
2
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
3
3
|
import { JwtProvider } from "../../providers/jwt";
|
|
4
4
|
import { IUserContext } from "../../abstractions";
|
|
5
|
-
|
|
6
|
-
userName: string;
|
|
7
|
-
password: string;
|
|
8
|
-
context?: TUserContext;
|
|
9
|
-
}
|
|
10
|
-
export interface UserLoginResult {
|
|
11
|
-
token?: string;
|
|
12
|
-
success: boolean;
|
|
13
|
-
}
|
|
5
|
+
import { UserLoginInput, UserLoginResult } from "./types";
|
|
14
6
|
export declare class UserLoginHandler {
|
|
15
7
|
private readonly services;
|
|
16
8
|
private readonly passwordHashingProvider;
|
package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-login/types.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IUserContext } from "../../abstractions";
|
|
2
|
+
export interface UserLoginInput<TUserContext extends IUserContext> {
|
|
3
|
+
userName: string;
|
|
4
|
+
password: string;
|
|
5
|
+
context?: TUserContext;
|
|
6
|
+
}
|
|
7
|
+
export interface UserLoginResult {
|
|
8
|
+
token?: string;
|
|
9
|
+
success: boolean;
|
|
10
|
+
}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
2
2
|
import { PasswordHashingProvider } from "../../providers/password-hasher";
|
|
3
|
-
|
|
4
|
-
userId: string;
|
|
5
|
-
newPassword: string;
|
|
6
|
-
temporary: boolean;
|
|
7
|
-
}
|
|
3
|
+
import { UserPasswordChangeInput } from "./types";
|
|
8
4
|
export declare class UserPasswordChangeHandler {
|
|
9
5
|
private readonly services;
|
|
10
6
|
private readonly passwordHashingProvider;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
2
2
|
import { JwtProvider } from "../../providers/jwt";
|
|
3
3
|
import { PasswordHashingProvider } from "../../providers/password-hasher";
|
|
4
|
-
|
|
5
|
-
token: string;
|
|
6
|
-
newPassword: string;
|
|
7
|
-
temporary?: boolean;
|
|
8
|
-
}
|
|
4
|
+
import { UserPasswordResetCompleteInput } from "./types";
|
|
9
5
|
export declare class UserPasswordResetCompleteHandler {
|
|
10
6
|
private readonly services;
|
|
11
7
|
private readonly passwordHashingProvider;
|
|
@@ -2,18 +2,7 @@ import { EmailService } from "../../../../services";
|
|
|
2
2
|
import { IUserContext } from "../../abstractions";
|
|
3
3
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
4
4
|
import { JwtProvider } from "../../providers/jwt";
|
|
5
|
-
|
|
6
|
-
urlTemplate: string;
|
|
7
|
-
tokenPlaceholder: string;
|
|
8
|
-
};
|
|
9
|
-
export interface UserPasswordResetRequestInput<TUserContext extends IUserContext> {
|
|
10
|
-
email: string;
|
|
11
|
-
callback: CallbackTemplate;
|
|
12
|
-
context?: TUserContext;
|
|
13
|
-
}
|
|
14
|
-
export interface UserPasswordResetRequestResult {
|
|
15
|
-
success: boolean;
|
|
16
|
-
}
|
|
5
|
+
import { UserPasswordResetRequestInput, UserPasswordResetRequestResult } from "./types";
|
|
17
6
|
export declare class UserPasswordResetRequestHandler {
|
|
18
7
|
private readonly services;
|
|
19
8
|
private readonly emailService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IUserContext } from "../../abstractions";
|
|
2
|
+
export type CallbackTemplate = {
|
|
3
|
+
urlTemplate: string;
|
|
4
|
+
tokenPlaceholder: string;
|
|
5
|
+
};
|
|
6
|
+
export interface UserPasswordResetRequestInput<TUserContext extends IUserContext> {
|
|
7
|
+
email: string;
|
|
8
|
+
callback: CallbackTemplate;
|
|
9
|
+
context?: TUserContext;
|
|
10
|
+
}
|
|
11
|
+
export interface UserPasswordResetRequestResult {
|
|
12
|
+
success: boolean;
|
|
13
|
+
}
|
package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/index.d.ts
CHANGED
|
@@ -2,25 +2,9 @@ import { IUserContext } from "../../abstractions";
|
|
|
2
2
|
import { EmailService } from "../../../../services";
|
|
3
3
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
4
4
|
import { JwtProvider } from "../../providers/jwt";
|
|
5
|
+
import { UserRegistrationError } from "../../types";
|
|
5
6
|
import { PasswordHashingProvider } from "../../providers/password-hasher";
|
|
6
|
-
|
|
7
|
-
urlTemplate: string;
|
|
8
|
-
tokenPlaceholder: string;
|
|
9
|
-
};
|
|
10
|
-
export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IUserContext> {
|
|
11
|
-
email: string;
|
|
12
|
-
password: string;
|
|
13
|
-
registrationInfo: TUserRegistrationInfo;
|
|
14
|
-
callback: CallbackTemplate;
|
|
15
|
-
context?: TUserContext;
|
|
16
|
-
}
|
|
17
|
-
export declare enum UserRegistrationError {
|
|
18
|
-
UserAlreadyExists = 0
|
|
19
|
-
}
|
|
20
|
-
export interface UserRegistrationResult {
|
|
21
|
-
success: boolean;
|
|
22
|
-
error?: UserRegistrationError;
|
|
23
|
-
}
|
|
7
|
+
import { UserRegistrationInput } from "./types";
|
|
24
8
|
export declare class UserRegistrationHandler {
|
|
25
9
|
private readonly services;
|
|
26
10
|
private readonly passwordHashingProvider;
|
package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IUserContext } from "../../abstractions";
|
|
2
|
+
import { UserRegistrationError } from "../../types";
|
|
3
|
+
export type CallbackTemplate = {
|
|
4
|
+
urlTemplate: string;
|
|
5
|
+
tokenPlaceholder: string;
|
|
6
|
+
};
|
|
7
|
+
export interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IUserContext> {
|
|
8
|
+
email: string;
|
|
9
|
+
password: string;
|
|
10
|
+
registrationInfo: TUserRegistrationInfo;
|
|
11
|
+
callback: CallbackTemplate;
|
|
12
|
+
context?: TUserContext;
|
|
13
|
+
}
|
|
14
|
+
export interface UserRegistrationResult {
|
|
15
|
+
success: boolean;
|
|
16
|
+
error?: UserRegistrationError;
|
|
17
|
+
}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { JwtProvider } from "../../providers/jwt";
|
|
2
|
-
import { IUserContext
|
|
3
|
-
|
|
4
|
-
isValid: boolean;
|
|
5
|
-
data: IUserTokenData<TUserContext>;
|
|
6
|
-
}
|
|
7
|
-
export interface UserTokenVerifyInput {
|
|
8
|
-
token: string;
|
|
9
|
-
}
|
|
2
|
+
import { IUserContext } from "../../abstractions";
|
|
3
|
+
import { UserTokenVerifyInput, UserTokenVerifyResult } from "./types";
|
|
10
4
|
export declare class UserTokenVerifyHandler {
|
|
11
5
|
private readonly jwtProvider;
|
|
12
6
|
constructor(jwtProvider: JwtProvider);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IUserContext, IUserTokenData } from "../../abstractions";
|
|
2
|
+
export interface UserTokenVerifyResult<TUserContext extends IUserContext> {
|
|
3
|
+
isValid: boolean;
|
|
4
|
+
data: IUserTokenData<TUserContext>;
|
|
5
|
+
}
|
|
6
|
+
export interface UserTokenVerifyInput {
|
|
7
|
+
token: string;
|
|
8
|
+
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
2
2
|
import { JwtProvider } from "../../providers/jwt";
|
|
3
|
-
|
|
4
|
-
token: string;
|
|
5
|
-
}
|
|
3
|
+
import { UserVerifyCompleteInput } from "./types";
|
|
6
4
|
export declare class UserVerifyCompleteHandler {
|
|
7
5
|
private readonly services;
|
|
8
6
|
private readonly jwtProvider;
|
|
@@ -2,18 +2,7 @@ import { IUserContext } from "../../abstractions";
|
|
|
2
2
|
import { EmailService } from "../../../../services";
|
|
3
3
|
import { JwtProvider } from "../../providers/jwt";
|
|
4
4
|
import { AuthenticationServicesResolver } from "../../resolver";
|
|
5
|
-
|
|
6
|
-
urlTemplate: string;
|
|
7
|
-
tokenPlaceholder: string;
|
|
8
|
-
};
|
|
9
|
-
export interface UserVerifyRequestInput<TUserContext extends IUserContext> {
|
|
10
|
-
email: string;
|
|
11
|
-
callback: CallbackTemplate;
|
|
12
|
-
context?: TUserContext;
|
|
13
|
-
}
|
|
14
|
-
export interface UserVerifyResetRequestResult {
|
|
15
|
-
success: boolean;
|
|
16
|
-
}
|
|
5
|
+
import { UserVerifyRequestInput, UserVerifyResetRequestResult } from "./types";
|
|
17
6
|
export declare class UserVerifyRequestHandler {
|
|
18
7
|
private readonly services;
|
|
19
8
|
private readonly emailService;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IUserContext } from "../../abstractions";
|
|
2
|
+
export interface UserVerifyRequestInput<TUserContext extends IUserContext> {
|
|
3
|
+
email: string;
|
|
4
|
+
callback: CallbackTemplate;
|
|
5
|
+
context?: TUserContext;
|
|
6
|
+
}
|
|
7
|
+
export interface UserVerifyResetRequestResult {
|
|
8
|
+
success: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type CallbackTemplate = {
|
|
11
|
+
urlTemplate: string;
|
|
12
|
+
tokenPlaceholder: string;
|
|
13
|
+
};
|
package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
1
|
import { IAuthenticationService, IUserContext } from "../../abstractions";
|
|
2
|
-
import {
|
|
3
|
-
import { UserDisableHandler
|
|
4
|
-
import { UserEnableHandler
|
|
5
|
-
import { UserLoginHandler
|
|
6
|
-
import { UserPasswordChangeHandler
|
|
7
|
-
import { UserPasswordResetCompleteHandler
|
|
8
|
-
import { UserPasswordResetRequestHandler
|
|
9
|
-
import { UserVerifyCompleteHandler
|
|
10
|
-
import { UserTokenVerifyHandler
|
|
11
|
-
import { UserVerifyRequestHandler
|
|
2
|
+
import { UserRegistrationHandler } from "../../handlers/user-register";
|
|
3
|
+
import { UserDisableHandler } from "../../handlers/user-disable";
|
|
4
|
+
import { UserEnableHandler } from "../../handlers/user-enable";
|
|
5
|
+
import { UserLoginHandler } from "../../handlers/user-login";
|
|
6
|
+
import { UserPasswordChangeHandler } from "../../handlers/user-password-change";
|
|
7
|
+
import { UserPasswordResetCompleteHandler } from "../../handlers/user-password-reset-complete";
|
|
8
|
+
import { UserPasswordResetRequestHandler } from "../../handlers/user-password-reset-request";
|
|
9
|
+
import { UserVerifyCompleteHandler } from "../../handlers/user-verify-complete";
|
|
10
|
+
import { UserTokenVerifyHandler } from "../../handlers/user-token-verify";
|
|
11
|
+
import { UserVerifyRequestHandler } from "../../handlers/user-verify-request";
|
|
12
|
+
import { UserDisableInput } from "../../handlers/user-disable/types";
|
|
13
|
+
import { UserEnableInput } from "../../handlers/user-enable/types";
|
|
14
|
+
import { UserLoginInput } from "../../handlers/user-login/types";
|
|
15
|
+
import { UserPasswordChangeInput } from "../../handlers/user-password-change/types";
|
|
16
|
+
import { UserPasswordResetCompleteInput } from "../../handlers/user-password-reset-complete/types";
|
|
17
|
+
import { UserPasswordResetRequestInput } from "../../handlers/user-password-reset-request/types";
|
|
18
|
+
import { UserRegistrationInput } from "../../handlers/user-register/types";
|
|
19
|
+
import { UserTokenVerifyInput } from "../../handlers/user-token-verify/types";
|
|
20
|
+
import { UserVerifyCompleteInput } from "../../handlers/user-verify-complete/types";
|
|
21
|
+
import { UserVerifyRequestInput } from "../../handlers/user-verify-request/types";
|
|
12
22
|
export declare class AuthenticationService implements IAuthenticationService {
|
|
13
23
|
private readonly userDisableHandler;
|
|
14
24
|
private readonly userEnableHandler;
|
|
@@ -23,18 +33,18 @@ export declare class AuthenticationService implements IAuthenticationService {
|
|
|
23
33
|
constructor(userDisableHandler: UserDisableHandler, userEnableHandler: UserEnableHandler, userLoginHandler: UserLoginHandler, userPasswordChangeHandler: UserPasswordChangeHandler, userPasswordResetFinalizeHandler: UserPasswordResetCompleteHandler, userPasswordResetRequestHandler: UserPasswordResetRequestHandler, userRegistrationHandler: UserRegistrationHandler, userTokenVerifyHandler: UserTokenVerifyHandler, userVerifyRequestHandler: UserVerifyRequestHandler, userVerifyCompleteHandler: UserVerifyCompleteHandler);
|
|
24
34
|
userDisable(input: UserDisableInput): Promise<void>;
|
|
25
35
|
userEnable(input: UserEnableInput): Promise<void>;
|
|
26
|
-
userLogin<TUserContext extends IUserContext>(input: UserLoginInput<TUserContext>): Promise<import("../../handlers/user-login").UserLoginResult>;
|
|
36
|
+
userLogin<TUserContext extends IUserContext>(input: UserLoginInput<TUserContext>): Promise<import("../../handlers/user-login/types").UserLoginResult>;
|
|
27
37
|
userPasswordChange(input: UserPasswordChangeInput): Promise<void>;
|
|
28
38
|
userPasswordResetFinalize(input: UserPasswordResetCompleteInput): Promise<void>;
|
|
29
|
-
userPasswordResetRequest<TUserContext extends IUserContext>(input: UserPasswordResetRequestInput<TUserContext>): Promise<import("../../handlers/user-password-reset-request").UserPasswordResetRequestResult>;
|
|
39
|
+
userPasswordResetRequest<TUserContext extends IUserContext>(input: UserPasswordResetRequestInput<TUserContext>): Promise<import("../../handlers/user-password-reset-request/types").UserPasswordResetRequestResult>;
|
|
30
40
|
userRegister<TUserRegistrationInfo, TUserContext extends IUserContext>(input: UserRegistrationInput<TUserRegistrationInfo, TUserContext>): Promise<{
|
|
31
41
|
success: boolean;
|
|
32
|
-
error: import("
|
|
42
|
+
error: import("../..").UserRegistrationError;
|
|
33
43
|
} | {
|
|
34
44
|
success: boolean;
|
|
35
45
|
error?: undefined;
|
|
36
46
|
}>;
|
|
37
|
-
userVerifyRequest<TUserContext extends IUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<import("../../handlers/user-verify-request").UserVerifyResetRequestResult>;
|
|
47
|
+
userVerifyRequest<TUserContext extends IUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<import("../../handlers/user-verify-request/types").UserVerifyResetRequestResult>;
|
|
38
48
|
userVerifyComplete(input: UserVerifyCompleteInput): Promise<void>;
|
|
39
|
-
userTokenVerify<TUserContext extends IUserContext>(input: UserTokenVerifyInput): Promise<import("../../handlers/user-token-verify").UserTokenVerifyResult<TUserContext>>;
|
|
49
|
+
userTokenVerify<TUserContext extends IUserContext>(input: UserTokenVerifyInput): Promise<import("../../handlers/user-token-verify/types").UserTokenVerifyResult<TUserContext>>;
|
|
40
50
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -18932,6 +18932,11 @@ JwtProvider = __decorate([
|
|
|
18932
18932
|
__metadata("design:paramtypes", [JwtService])
|
|
18933
18933
|
], JwtProvider);
|
|
18934
18934
|
|
|
18935
|
+
var UserRegistrationError;
|
|
18936
|
+
(function (UserRegistrationError) {
|
|
18937
|
+
UserRegistrationError[UserRegistrationError["UserAlreadyExists"] = 0] = "UserAlreadyExists";
|
|
18938
|
+
})(UserRegistrationError || (UserRegistrationError = {}));
|
|
18939
|
+
|
|
18935
18940
|
let PasswordHashingProvider = class PasswordHashingProvider {
|
|
18936
18941
|
constructor(hashing) {
|
|
18937
18942
|
this.hashing = hashing;
|
|
@@ -18960,10 +18965,6 @@ PasswordHashingProvider = __decorate([
|
|
|
18960
18965
|
__metadata("design:paramtypes", [AppHashingService])
|
|
18961
18966
|
], PasswordHashingProvider);
|
|
18962
18967
|
|
|
18963
|
-
var UserRegistrationError;
|
|
18964
|
-
(function (UserRegistrationError) {
|
|
18965
|
-
UserRegistrationError[UserRegistrationError["UserAlreadyExists"] = 0] = "UserAlreadyExists";
|
|
18966
|
-
})(UserRegistrationError || (UserRegistrationError = {}));
|
|
18967
18968
|
let UserRegistrationHandler = class UserRegistrationHandler {
|
|
18968
18969
|
constructor(services, passwordHashingProvider, emailService, jwtProvider) {
|
|
18969
18970
|
this.services = services;
|
|
@@ -19938,5 +19939,5 @@ AppSessionMiddleware = __decorate([
|
|
|
19938
19939
|
|
|
19939
19940
|
const newUuid = newUuid$1;
|
|
19940
19941
|
|
|
19941
|
-
export { AppExceptionsFilterBase, AppHashingService, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, QueryBuilderBase, ReplicationMode, SortDirection, WpAppInitializer, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpUserService, newUuid };
|
|
19942
|
+
export { AppExceptionsFilterBase, AppHashingService, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationService, EmailService, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, InvalidCredentialsError, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmQueryBuilder, NestTypeOrmRepository, OperationTokenMismatchError, QueryBuilderBase, ReplicationMode, SortDirection, UserRegistrationError, WpAppInitializer, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpUserService, newUuid };
|
|
19942
19943
|
//# sourceMappingURL=index.js.map
|