@sourceloop/user-tenant-service / Exports / UserTenantRepository
Class: UserTenantRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<UserTenant
, typeofid
,UserTenantRelations
>↳
UserTenantRepository
Table of contents¶
Constructors¶
Properties¶
- getCurrentUser
- role
- roleRepositoryGetter
- tenant
- tenantRepositoryGetter
- user
- userGroupRepositoryGetter
- userGroups
- userInvitationRepositoryGetter
- userInvitations
- userLevelPermissionRepositoryGetter
- userLevelPermissions
- userRepositoryGetter
Methods¶
Constructors¶
constructor¶
• new UserTenantRepository(dataSource
, userLevelPermissionRepositoryGetter
, userGroupRepositoryGetter
, userRepositoryGetter
, tenantRepositoryGetter
, roleRepositoryGetter
, userInvitationRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
userLevelPermissionRepositoryGetter |
Getter <UserLevelPermissionRepository > |
userGroupRepositoryGetter |
Getter <UserGroupRepository > |
userRepositoryGetter |
Getter <UserRepository > |
tenantRepositoryGetter |
Getter <TenantRepository > |
roleRepositoryGetter |
Getter <RoleRepository > |
userInvitationRepositoryGetter |
Getter <UserInvitationRepository > |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< UserTenant, typeof UserTenant.prototype.id, UserTenantRelations \>.constructor
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:66
Properties¶
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:82
role¶
• Readonly
role: BelongsToAccessor
<Role
, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:59
roleRepositoryGetter¶
• Protected
roleRepositoryGetter: Getter
<RoleRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:78
tenant¶
• Readonly
tenant: BelongsToAccessor
<Tenant
, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:54
tenantRepositoryGetter¶
• Protected
tenantRepositoryGetter: Getter
<TenantRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:76
user¶
• Readonly
user: BelongsToAccessor
<User
<DataObject
<Model
>>, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:52
userGroupRepositoryGetter¶
• Protected
userGroupRepositoryGetter: Getter
<UserGroupRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:72
userGroups¶
• Readonly
userGroups: HasManyRepositoryFactory
<UserGroup
, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:47
userInvitationRepositoryGetter¶
• Protected
userInvitationRepositoryGetter: Getter
<UserInvitationRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:80
userInvitations¶
• Readonly
userInvitations: HasManyRepositoryFactory
<UserInvitation
<DataObject
<Model
>>, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:61
userLevelPermissionRepositoryGetter¶
• Protected
userLevelPermissionRepositoryGetter: Getter
<UserLevelPermissionRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:70
userLevelPermissions¶
• Readonly
userLevelPermissions: HasManyRepositoryFactory
<UserLevelPermission
, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:42
userRepositoryGetter¶
• Protected
userRepositoryGetter: Getter
<UserRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-tenant.repository.ts:74
Methods¶
create¶
▸ create(entity
, options?
): Promise
<UserTenant
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <UserTenant > |
options? |
Options |
Returns¶
Promise
<UserTenant
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<UserTenant
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <UserTenant >[] |
options? |
Options |
Returns¶
Promise
<UserTenant
[]>
Inherited from¶
DefaultUserModifyCrudRepository.createAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:12
replaceById¶
▸ replaceById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
undefined | string |
data |
DataObject <UserTenant > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.replaceById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:17
save¶
▸ save(entity
, options?
): Promise
<UserTenant
>
Parameters¶
Name | Type |
---|---|
entity |
UserTenant |
options? |
Options |
Returns¶
Promise
<UserTenant
>
Inherited from¶
DefaultUserModifyCrudRepository.save
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13
update¶
▸ update(entity
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
entity |
UserTenant |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.update
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:14
updateAll¶
▸ updateAll(data
, where?
, options?
): Promise
<Count
>
Parameters¶
Name | Type |
---|---|
data |
DataObject <UserTenant > |
where? |
Where <UserTenant > |
options? |
Options |
Returns¶
Promise
<Count
>
Inherited from¶
DefaultUserModifyCrudRepository.updateAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:15
updateById¶
▸ updateById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
undefined | string |
data |
DataObject <UserTenant > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16