@punks/backend-entity-manager 0.0.499 → 0.0.500
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 +5 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/appAuth/appAuth.actions.d.ts +4 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/index.d.ts +4 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +4 -1
- package/dist/esm/index.js +5 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/appAuth/appAuth.actions.d.ts +4 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-verify-complete/index.d.ts +4 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +4 -1
- package/dist/index.d.ts +8 -2
- package/package.json +1 -1
|
@@ -8,5 +8,8 @@ export declare class AppAuthActions {
|
|
|
8
8
|
passwordReset(data: UserPasswordResetRequest): Promise<import("../../../../extensions").UserPasswordResetRequestResult>;
|
|
9
9
|
passwordResetComplete(data: UserPasswordResetCompleteRequest): Promise<string>;
|
|
10
10
|
userVerifyRequest(data: UserEmailVerifyRequest): Promise<import("../../../../extensions").UserVerifyRequestResult>;
|
|
11
|
-
userVerifyComplete(data: UserEmailVerifyCompleteRequest): Promise<
|
|
11
|
+
userVerifyComplete(data: UserEmailVerifyCompleteRequest): Promise<{
|
|
12
|
+
userId: string;
|
|
13
|
+
email: string;
|
|
14
|
+
}>;
|
|
12
15
|
}
|
|
@@ -5,7 +5,10 @@ export declare class UserVerifyCompleteHandler {
|
|
|
5
5
|
private readonly services;
|
|
6
6
|
private readonly jwtProvider;
|
|
7
7
|
constructor(services: AuthenticationServicesResolver, jwtProvider: JwtProvider);
|
|
8
|
-
execute(input: UserVerifyCompleteInput): Promise<
|
|
8
|
+
execute(input: UserVerifyCompleteInput): Promise<{
|
|
9
|
+
userId: string;
|
|
10
|
+
email: string;
|
|
11
|
+
}>;
|
|
9
12
|
private decodeToken;
|
|
10
13
|
private validateUser;
|
|
11
14
|
private getUser;
|
package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts
CHANGED
|
@@ -59,7 +59,10 @@ export declare class AuthenticationService implements IAuthService {
|
|
|
59
59
|
userPasswordResetRequest<TUserContext extends IAuthUserContext>(input: UserPasswordResetRequestInput<TUserContext>): Promise<UserPasswordResetRequestResult>;
|
|
60
60
|
userRegister<TUserRegistrationInfo, TUserContext extends IAuthUserContext>(input: UserRegistrationInput<TUserRegistrationInfo, TUserContext>): Promise<UserRegistrationResult>;
|
|
61
61
|
userVerifyRequest<TUserContext extends IAuthUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<UserVerifyRequestResult>;
|
|
62
|
-
userVerifyComplete(input: UserVerifyCompleteInput): Promise<
|
|
62
|
+
userVerifyComplete(input: UserVerifyCompleteInput): Promise<{
|
|
63
|
+
userId: string;
|
|
64
|
+
email: string;
|
|
65
|
+
}>;
|
|
63
66
|
userTokenVerify<TUserContext extends IAuthUserContext>(input: UserTokenVerifyInput): Promise<UserTokenVerifyResult<TUserContext>>;
|
|
64
67
|
get apiKeysService(): import("../../abstractions").IAuthApiKeysService<any>;
|
|
65
68
|
get usersService(): IAuthUserService<IAuthUser, any, unknown>;
|
package/dist/esm/index.js
CHANGED
|
@@ -23665,6 +23665,10 @@ let UserVerifyCompleteHandler = class UserVerifyCompleteHandler {
|
|
|
23665
23665
|
verified: true,
|
|
23666
23666
|
verifiedTimestamp: new Date(),
|
|
23667
23667
|
});
|
|
23668
|
+
return {
|
|
23669
|
+
userId: user.id,
|
|
23670
|
+
email: user.email,
|
|
23671
|
+
};
|
|
23668
23672
|
}
|
|
23669
23673
|
async decodeToken(token) {
|
|
23670
23674
|
return await this.jwtProvider.verify(token);
|
|
@@ -23984,7 +23988,7 @@ let AuthenticationService = class AuthenticationService {
|
|
|
23984
23988
|
return await this.userVerifyRequestHandler.execute(input);
|
|
23985
23989
|
}
|
|
23986
23990
|
async userVerifyComplete(input) {
|
|
23987
|
-
await this.userVerifyCompleteHandler.execute(input);
|
|
23991
|
+
return await this.userVerifyCompleteHandler.execute(input);
|
|
23988
23992
|
}
|
|
23989
23993
|
async userTokenVerify(input) {
|
|
23990
23994
|
return await this.userTokenVerifyHandler.execute(input);
|