@punks/backend-entity-manager 0.0.67 → 0.0.68
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 +211 -51
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/integrations/repository/typeorm/queryBuilder.d.ts +1 -1
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/auth.test-controller.d.ts +11 -0
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/services/auth.roles.service.d.ts +12 -0
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/{user.service.d.ts → services/auth.user.service.d.ts} +7 -7
- package/dist/cjs/types/platforms/nest/__test__/server/app/auth/services/auth.userRoles.service.d.ts +20 -0
- package/dist/cjs/types/platforms/nest/__test__/server/entities/roles/role.manager.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/__test__/server/entities/roles/role.models.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/__test__/server/entities/userRoles/userRole.models.d.ts +2 -0
- package/dist/cjs/types/platforms/nest/__test__/server/entities/userRoles/userRole.query.d.ts +2 -1
- package/dist/cjs/types/platforms/nest/__test__/server/index.d.ts +2 -2
- package/dist/cjs/types/platforms/nest/__test__/server/infrastructure/authentication/guards/auth-guard/index.d.ts +13 -0
- package/dist/cjs/types/platforms/nest/__test__/tests/authentication/test_auth_guards.test.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/__test__/tests/authentication/test_auth_jwt.test.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +26 -4
- package/dist/cjs/types/platforms/nest/extensions/authentication/decorators/guards.d.ts +4 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/decorators/index.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/decorators/rolesService.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/decorators/symbols.d.ts +8 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/decorators/userRolesService.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/initializer/index.d.ts +5 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/middlewares/authentication/index.d.ts +10 -0
- package/dist/cjs/types/platforms/nest/extensions/authentication/module.d.ts +3 -2
- package/dist/cjs/types/platforms/nest/extensions/authentication/resolver/index.d.ts +7 -1
- package/dist/cjs/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +7 -2
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/abstractions/models.d.ts +2 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/base/initializer/index.d.ts +6 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/processors/providers.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/services/index.d.ts +2 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/services/organization-initializer/index.d.ts +8 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/services/providers.d.ts +3 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/services/tenant-initializer/index.d.ts +8 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/symbols/index.d.ts +10 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/types/index.d.ts +1 -0
- package/dist/cjs/types/platforms/nest/extensions/multi-tenancy/types/templates.d.ts +20 -0
- package/dist/esm/index.js +206 -52
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/integrations/repository/typeorm/queryBuilder.d.ts +1 -1
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/auth.test-controller.d.ts +11 -0
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/services/auth.roles.service.d.ts +12 -0
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/{user.service.d.ts → services/auth.user.service.d.ts} +7 -7
- package/dist/esm/types/platforms/nest/__test__/server/app/auth/services/auth.userRoles.service.d.ts +20 -0
- package/dist/esm/types/platforms/nest/__test__/server/entities/roles/role.manager.d.ts +1 -0
- package/dist/esm/types/platforms/nest/__test__/server/entities/roles/role.models.d.ts +1 -0
- package/dist/esm/types/platforms/nest/__test__/server/entities/userRoles/userRole.models.d.ts +2 -0
- package/dist/esm/types/platforms/nest/__test__/server/entities/userRoles/userRole.query.d.ts +2 -1
- package/dist/esm/types/platforms/nest/__test__/server/index.d.ts +2 -2
- package/dist/esm/types/platforms/nest/__test__/server/infrastructure/authentication/guards/auth-guard/index.d.ts +13 -0
- package/dist/esm/types/platforms/nest/__test__/tests/authentication/test_auth_guards.test.d.ts +1 -0
- package/dist/esm/types/platforms/nest/__test__/tests/authentication/test_auth_jwt.test.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/abstractions/index.d.ts +26 -4
- package/dist/esm/types/platforms/nest/extensions/authentication/decorators/guards.d.ts +4 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/decorators/index.d.ts +3 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/decorators/rolesService.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/decorators/symbols.d.ts +8 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/decorators/userRolesService.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/handlers/user-register/types.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/initializer/index.d.ts +5 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/middlewares/authentication/index.d.ts +10 -0
- package/dist/esm/types/platforms/nest/extensions/authentication/module.d.ts +3 -2
- package/dist/esm/types/platforms/nest/extensions/authentication/resolver/index.d.ts +7 -1
- package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts +7 -2
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/abstractions/models.d.ts +2 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/base/initializer/index.d.ts +6 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/processors/providers.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/services/index.d.ts +2 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/services/organization-initializer/index.d.ts +8 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/services/providers.d.ts +3 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/services/tenant-initializer/index.d.ts +8 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/symbols/index.d.ts +10 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/types/index.d.ts +1 -0
- package/dist/esm/types/platforms/nest/extensions/multi-tenancy/types/templates.d.ts +20 -0
- package/dist/index.d.ts +57 -9
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ export declare abstract class TypeOrmQueryBuilder<TEntity extends ObjectLiteral,
|
|
|
10
10
|
constructor(services: EntityServiceLocator<TEntity, unknown>);
|
|
11
11
|
search(request: TEntitySearchParameters, context?: IAuthenticationContext<TUserContext>): Promise<IEntitiesSearchResults<TEntitySearchParameters, TEntity, TSorting, number, TFacets>>;
|
|
12
12
|
protected findPagedQueryResults(request: TEntitySearchParameters, context?: IAuthenticationContext<TUserContext>): Promise<TEntity[]>;
|
|
13
|
-
protected getRelationsToLoad(request: TEntitySearchParameters, context
|
|
13
|
+
protected getRelationsToLoad(request: TEntitySearchParameters, context: IAuthenticationContext<TUserContext> | undefined): FindOptionsRelations<TEntity> | undefined;
|
|
14
14
|
protected buildPagingParameters(request: TEntitySearchParameters): {
|
|
15
15
|
skip: number | undefined;
|
|
16
16
|
take: number | undefined;
|
package/dist/esm/types/platforms/nest/__test__/server/app/auth/services/auth.roles.service.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAuthRoleService } from "../../../../../extensions";
|
|
2
|
+
import { RoleEntityManager } from "../../../entities/roles/role.manager";
|
|
3
|
+
import { RoleEntity } from "../../../database/core/entities/role.entity";
|
|
4
|
+
export declare class AuthRolesService implements IAuthRoleService<RoleEntity> {
|
|
5
|
+
private readonly rolesManager;
|
|
6
|
+
constructor(rolesManager: RoleEntityManager);
|
|
7
|
+
create(data: Partial<RoleEntity>): Promise<RoleEntity>;
|
|
8
|
+
update(id: string, data: Partial<RoleEntity>): Promise<void>;
|
|
9
|
+
delete(id: string): Promise<void>;
|
|
10
|
+
getById(id: string): Promise<RoleEntity | undefined>;
|
|
11
|
+
getByUid(uid: string): Promise<RoleEntity | undefined>;
|
|
12
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IAuthUserService } from "
|
|
2
|
-
import { UserEntity } from "
|
|
3
|
-
import { UserEntityManager } from "
|
|
4
|
-
import { AppUserContext } from "
|
|
5
|
-
import { UserRegistrationData } from "
|
|
6
|
-
import { OrganizationEntityManager } from "
|
|
7
|
-
import { UserProfileEntityManager } from "
|
|
1
|
+
import { IAuthUserService } from "../../../../../extensions";
|
|
2
|
+
import { UserEntity } from "../../../database/core/entities/user.entity";
|
|
3
|
+
import { UserEntityManager } from "../../../entities/users/user.manager";
|
|
4
|
+
import { AppUserContext } from "../../../infrastructure/authentication";
|
|
5
|
+
import { UserRegistrationData } from "./../auth.dto";
|
|
6
|
+
import { OrganizationEntityManager } from "../../../entities/organizations/organization.manager";
|
|
7
|
+
import { UserProfileEntityManager } from "../../../entities/userProfiles/userProfile.manager";
|
|
8
8
|
export declare class AuthUserService implements IAuthUserService<UserEntity, AppUserContext, UserRegistrationData> {
|
|
9
9
|
private readonly userManager;
|
|
10
10
|
private readonly userProfileManager;
|
package/dist/esm/types/platforms/nest/__test__/server/app/auth/services/auth.userRoles.service.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAuthUserRolesService } from "../../../../../extensions";
|
|
2
|
+
import { UserEntityManager } from "../../../entities/users/user.manager";
|
|
3
|
+
import { UserRoleEntityManager } from "../../../entities/userRoles/userRole.manager";
|
|
4
|
+
import { RoleEntityManager } from "../../../entities/roles/role.manager";
|
|
5
|
+
import { RoleEntity } from "../../../database/core/entities/role.entity";
|
|
6
|
+
import { UserEntity } from "../../../database/core/entities/user.entity";
|
|
7
|
+
export declare class AuthUserRolesService implements IAuthUserRolesService<UserEntity, RoleEntity> {
|
|
8
|
+
private readonly rolesManager;
|
|
9
|
+
private readonly userManager;
|
|
10
|
+
private readonly userRoleManager;
|
|
11
|
+
constructor(rolesManager: RoleEntityManager, userManager: UserEntityManager, userRoleManager: UserRoleEntityManager);
|
|
12
|
+
getRoleUsers(roleId: string): Promise<UserEntity[]>;
|
|
13
|
+
getUserRoles(userId: string): Promise<RoleEntity[]>;
|
|
14
|
+
getUserRolesByUid(roleUid: string): Promise<RoleEntity[]>;
|
|
15
|
+
addUserToRole(userId: string, roleId: string): Promise<void>;
|
|
16
|
+
addUserToRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
17
|
+
removeUserFromRole(userId: string, roleId: string): Promise<void>;
|
|
18
|
+
removeUserFromRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
19
|
+
clearUserRoles(userId: string): Promise<RoleEntity[]>;
|
|
20
|
+
}
|
|
@@ -3,4 +3,5 @@ import { RoleCreateData, RoleCursor, RoleEntityId, RoleFacets, RoleSearchParamet
|
|
|
3
3
|
import { RoleEntity } from "../../database/core/entities/role.entity";
|
|
4
4
|
export declare class RoleEntityManager extends NestEntityManager<RoleEntity, RoleEntityId, RoleCreateData, RoleUpdateData, RoleSearchParameters, RoleSorting, RoleCursor, RoleFacets> {
|
|
5
5
|
constructor(registry: EntityManagerRegistry);
|
|
6
|
+
getByUid(uid: string): Promise<RoleEntity | undefined>;
|
|
6
7
|
}
|
package/dist/esm/types/platforms/nest/__test__/server/entities/userRoles/userRole.query.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FindOptionsWhere } from "typeorm";
|
|
1
|
+
import { FindOptionsRelations, FindOptionsWhere } from "typeorm";
|
|
2
2
|
import { IAuthenticationContext, EntityManagerRegistry, NestTypeOrmQueryBuilder } from "../../../../../..";
|
|
3
3
|
import { UserRoleEntity } from "../../database/core/entities/userRole.entity";
|
|
4
4
|
import { UserRoleFacets, UserRoleSearchParameters, UserRoleSorting } from "./userRole.models";
|
|
@@ -8,4 +8,5 @@ export declare class UserRoleQueryBuilder extends NestTypeOrmQueryBuilder<UserRo
|
|
|
8
8
|
protected buildContextFilter(context?: IAuthenticationContext<AppAuthContext> | undefined): FindOptionsWhere<UserRoleEntity> | FindOptionsWhere<UserRoleEntity>[];
|
|
9
9
|
protected buildWhereClause(request: UserRoleSearchParameters): FindOptionsWhere<UserRoleEntity> | FindOptionsWhere<UserRoleEntity>[];
|
|
10
10
|
protected calculateFacets(request: UserRoleSearchParameters): Promise<UserRoleFacets | undefined>;
|
|
11
|
+
protected getRelationsToLoad(request: UserRoleSearchParameters, context: IAuthenticationContext<AppAuthContext> | undefined): FindOptionsRelations<UserRoleEntity> | undefined;
|
|
11
12
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { DataSource } from "typeorm";
|
|
2
1
|
export declare const createTestServer: (options?: {
|
|
3
2
|
createWebServer?: boolean;
|
|
4
3
|
serverStartPort?: number;
|
|
5
4
|
useAuthentication?: boolean;
|
|
5
|
+
useAuthorization?: boolean;
|
|
6
6
|
extraControllers?: any[];
|
|
7
7
|
extraProviders?: any[];
|
|
8
8
|
}) => Promise<{
|
|
9
9
|
app: import("@nestjs/common").INestApplication<any>;
|
|
10
10
|
server: import("@nestjs/testing").TestingModule;
|
|
11
|
-
dataSource: DataSource;
|
|
11
|
+
dataSource: import("typeorm").DataSource;
|
|
12
12
|
terminate: () => Promise<void>;
|
|
13
13
|
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CanActivate, ExecutionContext } from "@nestjs/common";
|
|
2
|
+
import { Reflector } from "@nestjs/core";
|
|
3
|
+
export declare class AuthGuard implements CanActivate {
|
|
4
|
+
private reflector;
|
|
5
|
+
constructor(reflector: Reflector);
|
|
6
|
+
canActivate(context: ExecutionContext): boolean;
|
|
7
|
+
private isRoleMatching;
|
|
8
|
+
private getIsForAllAuthenticated;
|
|
9
|
+
private getIsPublic;
|
|
10
|
+
private getAllowedRoles;
|
|
11
|
+
private getCurrentAuth;
|
|
12
|
+
private getMetadata;
|
|
13
|
+
}
|
package/dist/esm/types/platforms/nest/__test__/tests/authentication/test_auth_guards.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export interface IAuthService {
|
|
2
2
|
}
|
|
3
|
+
export interface IAuthRole {
|
|
4
|
+
id: string;
|
|
5
|
+
uid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
3
8
|
export interface IAuthUserProfile {
|
|
4
9
|
firstName: string;
|
|
5
10
|
lastName: string;
|
|
@@ -25,6 +30,11 @@ export interface IAuthUser {
|
|
|
25
30
|
export interface IAuthUserContext {
|
|
26
31
|
organizationUid?: string;
|
|
27
32
|
}
|
|
33
|
+
export interface IAuthUserTokenData<TContext extends IAuthUserContext> {
|
|
34
|
+
userId: string;
|
|
35
|
+
email: string;
|
|
36
|
+
context?: TContext;
|
|
37
|
+
}
|
|
28
38
|
export interface IAuthUserService<TUser extends IAuthUser, TUserContext extends IAuthUserContext, TUserRegistrationInfo> {
|
|
29
39
|
getById(id: string): Promise<TUser>;
|
|
30
40
|
getByEmail(email: string, context?: TUserContext): Promise<TUser>;
|
|
@@ -33,8 +43,20 @@ export interface IAuthUserService<TUser extends IAuthUser, TUserContext extends
|
|
|
33
43
|
delete(id: string): Promise<void>;
|
|
34
44
|
create(email: string, data: TUserRegistrationInfo, context?: TUserContext): Promise<TUser>;
|
|
35
45
|
}
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
46
|
+
export interface IAuthRoleService<TRole extends IAuthRole> {
|
|
47
|
+
create(data: Partial<TRole>): Promise<TRole>;
|
|
48
|
+
update(id: string, data: Partial<TRole>): Promise<void>;
|
|
49
|
+
delete(id: string): Promise<void>;
|
|
50
|
+
getById(id: string): Promise<TRole | undefined>;
|
|
51
|
+
getByUid(id: string): Promise<TRole | undefined>;
|
|
52
|
+
}
|
|
53
|
+
export interface IAuthUserRolesService<TUser extends IAuthUser, TRole extends IAuthRole> {
|
|
54
|
+
getRoleUsers(roleId: string): Promise<TUser[]>;
|
|
55
|
+
getUserRoles(userId: string): Promise<TRole[]>;
|
|
56
|
+
getUserRolesByUid(roleUid: string): Promise<TRole[]>;
|
|
57
|
+
addUserToRole(userId: string, roleId: string): Promise<void>;
|
|
58
|
+
addUserToRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
59
|
+
removeUserFromRole(userId: string, roleId: string): Promise<void>;
|
|
60
|
+
removeUserFromRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
61
|
+
clearUserRoles(userId: string): Promise<TRole[]>;
|
|
40
62
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const Public: () => import("@nestjs/common").CustomDecorator<string>;
|
|
2
|
+
export declare const Authenticated: () => import("@nestjs/common").CustomDecorator<string>;
|
|
3
|
+
export declare const Roles: (...roles: string[]) => import("@nestjs/common").CustomDecorator<string>;
|
|
4
|
+
export declare const MemberOf: (...groups: string[]) => import("@nestjs/common").CustomDecorator<string>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
+
export { Authenticated, MemberOf, Public, Roles } from "./guards";
|
|
1
2
|
export { AuthenticationExtensionSymbols } from "./symbols";
|
|
3
|
+
export { WpRolesService } from "./rolesService";
|
|
2
4
|
export { WpUserService } from "./userService";
|
|
5
|
+
export { WpUserRolesService } from "./userRolesService";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WpRolesService: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
export declare const AuthenticationExtensionSymbols: {
|
|
2
2
|
UserService: symbol;
|
|
3
|
+
RolesService: symbol;
|
|
4
|
+
UserRolesService: symbol;
|
|
5
|
+
};
|
|
6
|
+
export declare const AuthenticationGuardsSymbols: {
|
|
7
|
+
Authenticated: string;
|
|
8
|
+
Public: string;
|
|
9
|
+
Roles: string;
|
|
10
|
+
MemberOf: string;
|
|
3
11
|
};
|
package/dist/esm/types/platforms/nest/extensions/authentication/decorators/userRolesService.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WpUserRolesService: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
@@ -8,5 +8,10 @@ export declare class AuthenticationInitializer implements IAppInitializer {
|
|
|
8
8
|
private readonly logger;
|
|
9
9
|
constructor(discover: CustomDiscoveryService, registry: AuthenticationServicesResolver);
|
|
10
10
|
initialize(app: INestApplicationContext): Promise<void>;
|
|
11
|
+
private registerRolesService;
|
|
12
|
+
private registerUsersService;
|
|
13
|
+
private registerUserRolesService;
|
|
11
14
|
private discoverUserService;
|
|
15
|
+
private discoverRolesService;
|
|
16
|
+
private discoverUserRolesService;
|
|
12
17
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NestMiddleware } from "@nestjs/common";
|
|
2
|
+
import { AuthenticationService } from "../../services";
|
|
3
|
+
export declare class AuthenticationMiddleware implements NestMiddleware {
|
|
4
|
+
private readonly authService;
|
|
5
|
+
constructor(authService: AuthenticationService);
|
|
6
|
+
use(req: any, res: any, next: (error?: any) => void): Promise<void>;
|
|
7
|
+
private getUserFromToken;
|
|
8
|
+
private getUserRoles;
|
|
9
|
+
private extractTokenFromHeader;
|
|
10
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DynamicModule } from "@nestjs/common";
|
|
1
|
+
import { DynamicModule, MiddlewareConsumer, NestModule } from "@nestjs/common";
|
|
2
2
|
import { AuthenticationModuleSettings } from "./types";
|
|
3
|
-
export declare class AuthenticationModule {
|
|
3
|
+
export declare class AuthenticationModule implements NestModule {
|
|
4
4
|
static forRoot(input: AuthenticationModuleSettings): DynamicModule;
|
|
5
|
+
configure(consumer: MiddlewareConsumer): void;
|
|
5
6
|
}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { IAuthUser, IAuthUserService } from "../abstractions";
|
|
1
|
+
import { IAuthRole, IAuthRoleService, IAuthUser, IAuthUserRolesService, IAuthUserService } from "../abstractions";
|
|
2
2
|
export declare class AuthenticationServicesResolver {
|
|
3
3
|
private usersService;
|
|
4
|
+
private rolesService;
|
|
5
|
+
private usersRolesService;
|
|
4
6
|
registerUsersService(usersService: IAuthUserService<any, any, any>): void;
|
|
7
|
+
registerRoleService(rolesService: IAuthRoleService<any>): void;
|
|
8
|
+
registerUserRolesService(userRolesService: IAuthUserRolesService<any, any>): void;
|
|
5
9
|
getUsersService<TUser extends IAuthUser, TUserRegistrationInfo>(): IAuthUserService<TUser, any, TUserRegistrationInfo>;
|
|
10
|
+
getRoleService<TRole extends IAuthRole>(): IAuthRoleService<TRole>;
|
|
11
|
+
getUserRoleService<TUser extends IAuthUser, TRole extends IAuthRole>(): IAuthUserRolesService<TUser, TRole>;
|
|
6
12
|
}
|
package/dist/esm/types/platforms/nest/extensions/authentication/services/authentication/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IAuthService, IAuthUserContext } from "../../abstractions";
|
|
1
|
+
import { IAuthRole, IAuthRoleService, IAuthService, IAuthUser, IAuthUserContext, IAuthUserRolesService, IAuthUserService } from "../../abstractions";
|
|
2
2
|
import { UserRegistrationHandler } from "../../handlers/user-register";
|
|
3
3
|
import { UserDisableHandler } from "../../handlers/user-disable";
|
|
4
4
|
import { UserEnableHandler } from "../../handlers/user-enable";
|
|
@@ -19,6 +19,7 @@ import { UserRegistrationInput, UserRegistrationResult } from "../../handlers/us
|
|
|
19
19
|
import { UserTokenVerifyInput, UserTokenVerifyResult } from "../../handlers/user-token-verify/types";
|
|
20
20
|
import { UserVerifyCompleteInput } from "../../handlers/user-verify-complete/types";
|
|
21
21
|
import { UserVerifyRequestInput, UserVerifyRequestResult } from "../../handlers/user-verify-request/types";
|
|
22
|
+
import { AuthenticationServicesResolver } from "../../resolver";
|
|
22
23
|
export declare class AuthenticationService implements IAuthService {
|
|
23
24
|
private readonly userDisableHandler;
|
|
24
25
|
private readonly userEnableHandler;
|
|
@@ -30,7 +31,8 @@ export declare class AuthenticationService implements IAuthService {
|
|
|
30
31
|
private readonly userTokenVerifyHandler;
|
|
31
32
|
private readonly userVerifyRequestHandler;
|
|
32
33
|
private readonly userVerifyCompleteHandler;
|
|
33
|
-
|
|
34
|
+
private readonly resolver;
|
|
35
|
+
constructor(userDisableHandler: UserDisableHandler, userEnableHandler: UserEnableHandler, userLoginHandler: UserLoginHandler, userPasswordChangeHandler: UserPasswordChangeHandler, userPasswordResetFinalizeHandler: UserPasswordResetCompleteHandler, userPasswordResetRequestHandler: UserPasswordResetRequestHandler, userRegistrationHandler: UserRegistrationHandler, userTokenVerifyHandler: UserTokenVerifyHandler, userVerifyRequestHandler: UserVerifyRequestHandler, userVerifyCompleteHandler: UserVerifyCompleteHandler, resolver: AuthenticationServicesResolver);
|
|
34
36
|
userDisable(input: UserDisableInput): Promise<void>;
|
|
35
37
|
userEnable(input: UserEnableInput): Promise<void>;
|
|
36
38
|
userLogin<TUserContext extends IAuthUserContext>(input: UserLoginInput<TUserContext>): Promise<UserLoginResult>;
|
|
@@ -41,4 +43,7 @@ export declare class AuthenticationService implements IAuthService {
|
|
|
41
43
|
userVerifyRequest<TUserContext extends IAuthUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<UserVerifyRequestResult>;
|
|
42
44
|
userVerifyComplete(input: UserVerifyCompleteInput): Promise<void>;
|
|
43
45
|
userTokenVerify<TUserContext extends IAuthUserContext>(input: UserTokenVerifyInput): Promise<UserTokenVerifyResult<TUserContext>>;
|
|
46
|
+
get usersService(): IAuthUserService<IAuthUser, any, unknown>;
|
|
47
|
+
get rolesService(): IAuthRoleService<IAuthRole>;
|
|
48
|
+
get userRolesService(): IAuthUserRolesService<IAuthUser, IAuthRole>;
|
|
44
49
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EntityManagerRegistry } from "../../../../ioc";
|
|
2
|
+
export declare abstract class BaseInitializer {
|
|
3
|
+
private readonly registry;
|
|
4
|
+
constructor(registry: EntityManagerRegistry);
|
|
5
|
+
protected get companiesRepo(): import("../../../../../..").IEntityRepository<unknown, unknown, unknown, unknown, unknown, unknown>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Providers: never[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrganizationTemplate } from "../../types";
|
|
2
|
+
import { IAppCompany, IAppUser, IAppUserGroup } from "../../abstractions";
|
|
3
|
+
import { EntityManagerRegistry } from "../../../../ioc";
|
|
4
|
+
export declare class OrganizationInitializerService {
|
|
5
|
+
private readonly registry;
|
|
6
|
+
constructor(registry: EntityManagerRegistry);
|
|
7
|
+
execute<TCompany extends IAppCompany, TUser extends IAppUser, TUserGroup extends IAppUserGroup>(template: OrganizationTemplate<TCompany, TUser, TUserGroup>): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TenantTemplate } from "../../types";
|
|
2
|
+
import { IAppTenant, IAppUser } from "../../abstractions";
|
|
3
|
+
import { EntityManagerRegistry } from "../../../../ioc";
|
|
4
|
+
export declare class TenantInitializerService {
|
|
5
|
+
private readonly registry;
|
|
6
|
+
constructor(registry: EntityManagerRegistry);
|
|
7
|
+
execute<TTenant extends IAppTenant, TUser extends IAppUser>(template: TenantTemplate<TTenant, TUser>): Promise<void>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { OrganizationAdmin, OrganizationTemplate, TenantAdmin, TenantTemplate, } from "./templates";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { IAppCompany, IAppTenant, IAppUser, IAppUserGroup } from "../abstractions";
|
|
2
|
+
export type TenantAdmin<TUser extends IAppUser> = {
|
|
3
|
+
user: Partial<TUser>;
|
|
4
|
+
password: string;
|
|
5
|
+
};
|
|
6
|
+
export type TenantTemplate<TTenant extends IAppTenant, TUser extends IAppUser> = {
|
|
7
|
+
tenant: Partial<TTenant>;
|
|
8
|
+
defaultAdmin?: TenantAdmin<TUser>;
|
|
9
|
+
};
|
|
10
|
+
export type OrganizationAdmin<TUser extends IAppUser> = {
|
|
11
|
+
user: Partial<TUser>;
|
|
12
|
+
password: string;
|
|
13
|
+
};
|
|
14
|
+
export type OrganizationTemplate<TCompany extends IAppCompany, TUser extends IAppUser, TUserGroup extends IAppUserGroup> = {
|
|
15
|
+
tenant: Partial<TCompany["organization"]["tenant"]>;
|
|
16
|
+
organization: Partial<TCompany["organization"]>;
|
|
17
|
+
company: Partial<TCompany>;
|
|
18
|
+
groups: Partial<TUserGroup>[];
|
|
19
|
+
defaultAdmin?: OrganizationAdmin<TUser>;
|
|
20
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/// <reference types="qs" />
|
|
2
2
|
/// <reference types="express" />
|
|
3
3
|
import * as _punks_backend_core from '@punks/backend-core';
|
|
4
|
-
import
|
|
4
|
+
import * as _nestjs_common from '@nestjs/common';
|
|
5
|
+
import { Type as Type$1, INestApplicationContext, NestModule, DynamicModule, MiddlewareConsumer, ExceptionFilter, ArgumentsHost, NestMiddleware } from '@nestjs/common';
|
|
5
6
|
import { Module } from '@nestjs/core/injector/module';
|
|
6
7
|
import { ModulesContainer } from '@nestjs/core/injector/modules-container';
|
|
7
8
|
import { MetadataScanner } from '@nestjs/core/metadata-scanner';
|
|
@@ -802,6 +803,11 @@ declare class StringFacet implements IEntityFacet<string> {
|
|
|
802
803
|
|
|
803
804
|
interface IAuthService {
|
|
804
805
|
}
|
|
806
|
+
interface IAuthRole {
|
|
807
|
+
id: string;
|
|
808
|
+
uid: string;
|
|
809
|
+
name: string;
|
|
810
|
+
}
|
|
805
811
|
interface IAuthUserProfile {
|
|
806
812
|
firstName: string;
|
|
807
813
|
lastName: string;
|
|
@@ -827,6 +833,11 @@ interface IAuthUser {
|
|
|
827
833
|
interface IAuthUserContext {
|
|
828
834
|
organizationUid?: string;
|
|
829
835
|
}
|
|
836
|
+
interface IAuthUserTokenData<TContext extends IAuthUserContext> {
|
|
837
|
+
userId: string;
|
|
838
|
+
email: string;
|
|
839
|
+
context?: TContext;
|
|
840
|
+
}
|
|
830
841
|
interface IAuthUserService<TUser extends IAuthUser, TUserContext extends IAuthUserContext, TUserRegistrationInfo> {
|
|
831
842
|
getById(id: string): Promise<TUser>;
|
|
832
843
|
getByEmail(email: string, context?: TUserContext): Promise<TUser>;
|
|
@@ -835,18 +846,41 @@ interface IAuthUserService<TUser extends IAuthUser, TUserContext extends IAuthUs
|
|
|
835
846
|
delete(id: string): Promise<void>;
|
|
836
847
|
create(email: string, data: TUserRegistrationInfo, context?: TUserContext): Promise<TUser>;
|
|
837
848
|
}
|
|
838
|
-
interface
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
849
|
+
interface IAuthRoleService<TRole extends IAuthRole> {
|
|
850
|
+
create(data: Partial<TRole>): Promise<TRole>;
|
|
851
|
+
update(id: string, data: Partial<TRole>): Promise<void>;
|
|
852
|
+
delete(id: string): Promise<void>;
|
|
853
|
+
getById(id: string): Promise<TRole | undefined>;
|
|
854
|
+
getByUid(id: string): Promise<TRole | undefined>;
|
|
842
855
|
}
|
|
856
|
+
interface IAuthUserRolesService<TUser extends IAuthUser, TRole extends IAuthRole> {
|
|
857
|
+
getRoleUsers(roleId: string): Promise<TUser[]>;
|
|
858
|
+
getUserRoles(userId: string): Promise<TRole[]>;
|
|
859
|
+
getUserRolesByUid(roleUid: string): Promise<TRole[]>;
|
|
860
|
+
addUserToRole(userId: string, roleId: string): Promise<void>;
|
|
861
|
+
addUserToRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
862
|
+
removeUserFromRole(userId: string, roleId: string): Promise<void>;
|
|
863
|
+
removeUserFromRoleByUid(userId: string, roleUid: string): Promise<void>;
|
|
864
|
+
clearUserRoles(userId: string): Promise<TRole[]>;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
declare const Public: () => _nestjs_common.CustomDecorator<string>;
|
|
868
|
+
declare const Authenticated: () => _nestjs_common.CustomDecorator<string>;
|
|
869
|
+
declare const Roles: (...roles: string[]) => _nestjs_common.CustomDecorator<string>;
|
|
870
|
+
declare const MemberOf: (...groups: string[]) => _nestjs_common.CustomDecorator<string>;
|
|
843
871
|
|
|
844
872
|
declare const AuthenticationExtensionSymbols: {
|
|
845
873
|
UserService: symbol;
|
|
874
|
+
RolesService: symbol;
|
|
875
|
+
UserRolesService: symbol;
|
|
846
876
|
};
|
|
847
877
|
|
|
878
|
+
declare const WpRolesService: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
879
|
+
|
|
848
880
|
declare const WpUserService: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
849
881
|
|
|
882
|
+
declare const WpUserRolesService: () => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol | undefined, descriptor?: TypedPropertyDescriptor<Y> | undefined) => void;
|
|
883
|
+
|
|
850
884
|
declare const AuthenticationEmailTemplates: {
|
|
851
885
|
Registration: string;
|
|
852
886
|
PasswordReset: string;
|
|
@@ -992,6 +1026,7 @@ interface UserRegistrationInput<TUserRegistrationInfo, TUserContext extends IAut
|
|
|
992
1026
|
interface UserRegistrationResult {
|
|
993
1027
|
success: boolean;
|
|
994
1028
|
error?: UserRegistrationError;
|
|
1029
|
+
userId?: string;
|
|
995
1030
|
}
|
|
996
1031
|
|
|
997
1032
|
interface UserTokenVerifyResult<TUserContext extends IAuthUserContext> {
|
|
@@ -1074,8 +1109,14 @@ declare class TrackingService {
|
|
|
1074
1109
|
|
|
1075
1110
|
declare class AuthenticationServicesResolver {
|
|
1076
1111
|
private usersService;
|
|
1112
|
+
private rolesService;
|
|
1113
|
+
private usersRolesService;
|
|
1077
1114
|
registerUsersService(usersService: IAuthUserService<any, any, any>): void;
|
|
1115
|
+
registerRoleService(rolesService: IAuthRoleService<any>): void;
|
|
1116
|
+
registerUserRolesService(userRolesService: IAuthUserRolesService<any, any>): void;
|
|
1078
1117
|
getUsersService<TUser extends IAuthUser, TUserRegistrationInfo>(): IAuthUserService<TUser, any, TUserRegistrationInfo>;
|
|
1118
|
+
getRoleService<TRole extends IAuthRole>(): IAuthRoleService<TRole>;
|
|
1119
|
+
getUserRoleService<TUser extends IAuthUser, TRole extends IAuthRole>(): IAuthUserRolesService<TUser, TRole>;
|
|
1079
1120
|
}
|
|
1080
1121
|
|
|
1081
1122
|
declare class JwtProvider {
|
|
@@ -1208,7 +1249,8 @@ declare class AuthenticationService implements IAuthService {
|
|
|
1208
1249
|
private readonly userTokenVerifyHandler;
|
|
1209
1250
|
private readonly userVerifyRequestHandler;
|
|
1210
1251
|
private readonly userVerifyCompleteHandler;
|
|
1211
|
-
|
|
1252
|
+
private readonly resolver;
|
|
1253
|
+
constructor(userDisableHandler: UserDisableHandler, userEnableHandler: UserEnableHandler, userLoginHandler: UserLoginHandler, userPasswordChangeHandler: UserPasswordChangeHandler, userPasswordResetFinalizeHandler: UserPasswordResetCompleteHandler, userPasswordResetRequestHandler: UserPasswordResetRequestHandler, userRegistrationHandler: UserRegistrationHandler, userTokenVerifyHandler: UserTokenVerifyHandler, userVerifyRequestHandler: UserVerifyRequestHandler, userVerifyCompleteHandler: UserVerifyCompleteHandler, resolver: AuthenticationServicesResolver);
|
|
1212
1254
|
userDisable(input: UserDisableInput): Promise<void>;
|
|
1213
1255
|
userEnable(input: UserEnableInput): Promise<void>;
|
|
1214
1256
|
userLogin<TUserContext extends IAuthUserContext>(input: UserLoginInput<TUserContext>): Promise<UserLoginResult>;
|
|
@@ -1219,10 +1261,14 @@ declare class AuthenticationService implements IAuthService {
|
|
|
1219
1261
|
userVerifyRequest<TUserContext extends IAuthUserContext>(input: UserVerifyRequestInput<TUserContext>): Promise<UserVerifyRequestResult>;
|
|
1220
1262
|
userVerifyComplete(input: UserVerifyCompleteInput): Promise<void>;
|
|
1221
1263
|
userTokenVerify<TUserContext extends IAuthUserContext>(input: UserTokenVerifyInput): Promise<UserTokenVerifyResult<TUserContext>>;
|
|
1264
|
+
get usersService(): IAuthUserService<IAuthUser, any, unknown>;
|
|
1265
|
+
get rolesService(): IAuthRoleService<IAuthRole>;
|
|
1266
|
+
get userRolesService(): IAuthUserRolesService<IAuthUser, IAuthRole>;
|
|
1222
1267
|
}
|
|
1223
1268
|
|
|
1224
|
-
declare class AuthenticationModule {
|
|
1269
|
+
declare class AuthenticationModule implements NestModule {
|
|
1225
1270
|
static forRoot(input: AuthenticationModuleSettings): DynamicModule;
|
|
1271
|
+
configure(consumer: MiddlewareConsumer): void;
|
|
1226
1272
|
}
|
|
1227
1273
|
|
|
1228
1274
|
interface IAppTenant {
|
|
@@ -1260,6 +1306,8 @@ interface IAppUser {
|
|
|
1260
1306
|
verified: boolean;
|
|
1261
1307
|
disabled: boolean;
|
|
1262
1308
|
profile: IAppUserProfile;
|
|
1309
|
+
tenant: IAppTenant;
|
|
1310
|
+
organization?: IAppOrganization;
|
|
1263
1311
|
}
|
|
1264
1312
|
interface IAppUserGroup {
|
|
1265
1313
|
id: string;
|
|
@@ -1315,7 +1363,7 @@ declare abstract class TypeOrmQueryBuilder<TEntity extends ObjectLiteral, TEntit
|
|
|
1315
1363
|
constructor(services: EntityServiceLocator<TEntity, unknown>);
|
|
1316
1364
|
search(request: TEntitySearchParameters, context?: IAuthenticationContext<TUserContext>): Promise<IEntitiesSearchResults<TEntitySearchParameters, TEntity, TSorting, number, TFacets>>;
|
|
1317
1365
|
protected findPagedQueryResults(request: TEntitySearchParameters, context?: IAuthenticationContext<TUserContext>): Promise<TEntity[]>;
|
|
1318
|
-
protected getRelationsToLoad(request: TEntitySearchParameters, context
|
|
1366
|
+
protected getRelationsToLoad(request: TEntitySearchParameters, context: IAuthenticationContext<TUserContext> | undefined): FindOptionsRelations<TEntity> | undefined;
|
|
1319
1367
|
protected buildPagingParameters(request: TEntitySearchParameters): {
|
|
1320
1368
|
skip: number | undefined;
|
|
1321
1369
|
take: number | undefined;
|
|
@@ -1488,4 +1536,4 @@ declare const renderHandlebarsTemplate: <TContext extends object>(input: {
|
|
|
1488
1536
|
|
|
1489
1537
|
declare const newUuid: () => string;
|
|
1490
1538
|
|
|
1491
|
-
export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationModuleSettings, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, AwsSesEmailTemplateData, AwsSesSettings, BooleanFacet, BooleanFacetItem, EmailService, EmailTemplateProps, EmailVerifyEmailPayload, EmailVerifyTokenPayload, EntityActionsProps, EntityAdapterProps, EntityAuthMiddlewareProps, EntityConnectorProps, EntityConverterProps, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerProps, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntityProps, EntityQueryBuilderProps, EntityRepositoryProps, EntitySeeder, EntitySeederProps, EventsService, EventsTrackerProps, FilterExpression, HtmlEmailInput, IAppCompany, IAppDivision, IAppOrganization, IAppRole, IAppTenant, IAppUser, IAppUserGroup, IAppUserProfile, IAuthService, IAuthUser, IAuthUserContext, IAuthUserOrganization, IAuthUserProfile, IAuthUserService, IAuthUserTokenData, IAuthenticationContext, IAuthenticationContextProvider, IAuthorizationResult, IEmailProvider, IEmailTemplate, IEmailTemplatesCollection, IEntitiesQueryBuilder, IEntitiesSearchAction, IEntitiesSearchQuery, IEntitiesSearchResults, IEntitiesSearchResultsPaging, IEntityActions, IEntityAdapter, IEntityAuthorizationMiddleware, IEntityConverter, IEntityCreateAction, IEntityCreateCommand, IEntityDeleteAction, IEntityDeleteCommand, IEntityEventsManager, IEntityFacet, IEntityFacetItem, IEntityFacets, IEntityGetAction, IEntityGetQuery, IEntityManager, IEntityManagerServiceCollection, IEntityManagerServiceRoot, IEntityMapper, IEntityReplicaDeleteManager, IEntityReplicaSyncManager, IEntityRepository, IEntitySearchParameters, IEntitySearchResults, IEntityUpdateAction, IEntityUpdateCommand, IEntityUpsertAction, IEntityUpsertCommand, IEventLog, IEventsTracker, IReplicasConfiguration, ISearchFilters, ISearchOptions, ISearchRequestPaging, ISearchResultsPaging, ISearchSorting, ISearchSortingField, InvalidCredentialsError, LocalizedMap, LocalizedTexts, MessagingEmailSentPayload, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, NumericFacet, NumericFacetItem, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PasswordResetEmailPayload, PlatformEvents, QueryBuilderBase, RegistrationEmailPayload, ReplicaConfiguration, ReplicaOptions, ReplicationMode, RuntimeErrorInformation, SendgridEmailModule, SendgridEmailTemplate, SendgridEmailTemplateData, SendgridSettings, SendgridTemplateBaseData, SendgridTemplateType, SortDirection, SortingType, StringFacet, StringFacetItem, TemplatedEmailInput, TrackingService, UserDisableInput, UserEnableInput, UserLoginEventPayload, UserLoginInput, UserLoginResult, UserPasswordChangeInput, UserPasswordResetCompleteInput, UserPasswordResetCompletedEventPayload, UserPasswordResetRequestCallbackTemplate, UserPasswordResetRequestInput, UserPasswordResetRequestResult, UserPasswordResetStartedEventPayload, UserPasswordResetTokenPayload, UserProfile, UserRegisterCallbackTemplate, UserRegistrationCompletedEventPayload, UserRegistrationError, UserRegistrationInput, UserRegistrationResult, UserRegistrationStartedEventPayload, UserTokenVerifyInput, UserTokenVerifyResult, UserVerifyCompleteInput, UserVerifyRequestCallbackTemplate, UserVerifyRequestInput, UserVerifyRequestResult as UserVerifyResetRequestResult, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEventsTracker, WpSendgridEmailTemplate, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
|
|
1539
|
+
export { AUTHENTICATION_EVENTS_NAMESPACE, AppExceptionsFilterBase, AppHashingService, AppInMemorySettings, AppSessionMiddleware, AppSessionService, Authenticated, AuthenticationEmailTemplates, AuthenticationError, AuthenticationEvents, AuthenticationExtensionSymbols, AuthenticationModule, AuthenticationModuleSettings, AuthenticationService, AwsEmailModule, AwsSesEmailTemplate, AwsSesEmailTemplateData, AwsSesSettings, BooleanFacet, BooleanFacetItem, EmailService, EmailTemplateProps, EmailVerifyEmailPayload, EmailVerifyTokenPayload, EntityActionsProps, EntityAdapterProps, EntityAuthMiddlewareProps, EntityConnectorProps, EntityConverterProps, EntityManagerConfigurationError, EntityManagerException, EntityManagerInitializer, EntityManagerModule, EntityManagerProps, EntityManagerRegistry, EntityManagerService, EntityManagerSymbols, EntityManagerUnauthorizedException, EntityNotFoundException, EntityOperationType, EntityOperationUnauthorizedException, EntityProps, EntityQueryBuilderProps, EntityRepositoryProps, EntitySeeder, EntitySeederProps, EventsService, EventsTrackerProps, FilterExpression, HtmlEmailInput, IAppCompany, IAppDivision, IAppOrganization, IAppRole, IAppTenant, IAppUser, IAppUserGroup, IAppUserProfile, IAuthRole, IAuthRoleService, IAuthService, IAuthUser, IAuthUserContext, IAuthUserOrganization, IAuthUserProfile, IAuthUserRolesService, IAuthUserService, IAuthUserTokenData, IAuthenticationContext, IAuthenticationContextProvider, IAuthorizationResult, IEmailProvider, IEmailTemplate, IEmailTemplatesCollection, IEntitiesQueryBuilder, IEntitiesSearchAction, IEntitiesSearchQuery, IEntitiesSearchResults, IEntitiesSearchResultsPaging, IEntityActions, IEntityAdapter, IEntityAuthorizationMiddleware, IEntityConverter, IEntityCreateAction, IEntityCreateCommand, IEntityDeleteAction, IEntityDeleteCommand, IEntityEventsManager, IEntityFacet, IEntityFacetItem, IEntityFacets, IEntityGetAction, IEntityGetQuery, IEntityManager, IEntityManagerServiceCollection, IEntityManagerServiceRoot, IEntityMapper, IEntityReplicaDeleteManager, IEntityReplicaSyncManager, IEntityRepository, IEntitySearchParameters, IEntitySearchResults, IEntityUpdateAction, IEntityUpdateCommand, IEntityUpsertAction, IEntityUpsertCommand, IEventLog, IEventsTracker, IReplicasConfiguration, ISearchFilters, ISearchOptions, ISearchRequestPaging, ISearchResultsPaging, ISearchSorting, ISearchSortingField, InvalidCredentialsError, LocalizedMap, LocalizedTexts, MemberOf, MessagingEmailSentPayload, ModulesContainerProvider, MultiTenancyModule, MultipleEntitiesFoundException, NestEntityActions, NestEntityAuthorizationMiddleware, NestEntityManager, NestTypeOrmEntitySeeder, NestTypeOrmQueryBuilder, NestTypeOrmRepository, NumericFacet, NumericFacetItem, OperationTokenMismatchError, PLATFORM_EVENT_NAMESPACE, PasswordResetEmailPayload, PlatformEvents, Public, QueryBuilderBase, RegistrationEmailPayload, ReplicaConfiguration, ReplicaOptions, ReplicationMode, Roles, RuntimeErrorInformation, SendgridEmailModule, SendgridEmailTemplate, SendgridEmailTemplateData, SendgridSettings, SendgridTemplateBaseData, SendgridTemplateType, SortDirection, SortingType, StringFacet, StringFacetItem, TemplatedEmailInput, TrackingService, UserDisableInput, UserEnableInput, UserLoginEventPayload, UserLoginInput, UserLoginResult, UserPasswordChangeInput, UserPasswordResetCompleteInput, UserPasswordResetCompletedEventPayload, UserPasswordResetRequestCallbackTemplate, UserPasswordResetRequestInput, UserPasswordResetRequestResult, UserPasswordResetStartedEventPayload, UserPasswordResetTokenPayload, UserProfile, UserRegisterCallbackTemplate, UserRegistrationCompletedEventPayload, UserRegistrationError, UserRegistrationInput, UserRegistrationResult, UserRegistrationStartedEventPayload, UserTokenVerifyInput, UserTokenVerifyResult, UserVerifyCompleteInput, UserVerifyRequestCallbackTemplate, UserVerifyRequestInput, UserVerifyRequestResult as UserVerifyResetRequestResult, WpAppInitializer, WpAwsSesEmailTemplate, WpEmailTemplate, WpEntity, WpEntityActions, WpEntityAdapter, WpEntityAuthMiddleware, WpEntityConnector, WpEntityConverter, WpEntityManager, WpEntityQueryBuilder, WpEntityRepository, WpEntitySeeder, WpEventsTracker, WpRolesService, WpSendgridEmailTemplate, WpUserRolesService, WpUserService, getLocalizedText, newUuid, renderHandlebarsTemplate };
|