Skip to content

@sourceloop/authentication-service / Exports / UserTenantRepository

Class: UserTenantRepository

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new UserTenantRepository(dataSource, tenantRepositoryGetter, userRepositoryGetter, roleRepositoryGetter, userLevelPermissionRepositoryGetter, userTenant)

Parameters

Name Type
dataSource DataSource
tenantRepositoryGetter Getter<TenantRepository>
userRepositoryGetter Getter<UserRepository>
roleRepositoryGetter Getter<RoleRepository>
userLevelPermissionRepositoryGetter Getter<UserLevelPermissionRepository>
userTenant typeof Entity & { prototype: UserTenant }

Overrides

DefaultSoftCrudRepository< UserTenant, typeof UserTenant.prototype.id, UserTenantRelations \>.constructor

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:48

Properties

role

Readonly role: BelongsToAccessor<Role, undefined | string>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:41


roleRepositoryGetter

Protected roleRepositoryGetter: Getter<RoleRepository>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:56


tenant

Readonly tenant: BelongsToAccessor<Tenant, undefined | string>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:34


tenantRepositoryGetter

Protected tenantRepositoryGetter: Getter<TenantRepository>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:52


user

Readonly user: BelongsToAccessor<User<DataObject<Model>>, undefined | string>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:39


userLevelPermissionRepositoryGetter

Protected userLevelPermissionRepositoryGetter: Getter<UserLevelPermissionRepository>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:58


userLevelPermissions

Readonly userLevelPermissions: HasManyRepositoryFactory<UserLevelPermission, undefined | string>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:43


userRepositoryGetter

Protected userRepositoryGetter: Getter<UserRepository>

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:54


userTenant

Private Readonly userTenant: typeof Entity & { prototype: UserTenant }

Defined in

services/authentication-service/src/repositories/user-tenant.repository.ts:60