@sourceloop/user-tenant-service / Exports / UserGroupRepository
Class: UserGroupRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<UserGroup
, typeofid
,UserGroupRelations
>↳
UserGroupRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new UserGroupRepository(dataSource
, groupRepositoryGetter
, userTenantRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
groupRepositoryGetter |
Getter <GroupRepository > |
userTenantRepositoryGetter |
Getter <UserTenantRepository > |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< UserGroup, typeof UserGroup.prototype.id, UserGroupRelations \>.constructor
Defined in¶
services/user-tenant-service/src/repositories/user-group.repository.ts:32
Properties¶
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/user-tenant-service/src/repositories/user-group.repository.ts:40
group¶
• Readonly
group: BelongsToAccessor
<Group
<DataObject
<Model
>>, string
>
Defined in¶
services/user-tenant-service/src/repositories/user-group.repository.ts:22
groupRepositoryGetter¶
• Protected
groupRepositoryGetter: Getter
<GroupRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-group.repository.ts:36
userTenant¶
• Readonly
userTenant: BelongsToAccessor
<UserTenant
, string
>
Defined in¶
services/user-tenant-service/src/repositories/user-group.repository.ts:27
userTenantRepositoryGetter¶
• Protected
userTenantRepositoryGetter: Getter
<UserTenantRepository
>
Defined in¶
services/user-tenant-service/src/repositories/user-group.repository.ts:38
Methods¶
create¶
▸ create(entity
, options?
): Promise
<UserGroup
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <UserGroup > |
options? |
Options |
Returns¶
Promise
<UserGroup
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<UserGroup
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <UserGroup >[] |
options? |
Options |
Returns¶
Promise
<UserGroup
[]>
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 |
string |
data |
DataObject <UserGroup > |
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
<UserGroup
>
Parameters¶
Name | Type |
---|---|
entity |
UserGroup |
options? |
Options |
Returns¶
Promise
<UserGroup
>
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 |
UserGroup |
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 <UserGroup > |
where? |
Where <UserGroup > |
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 |
string |
data |
DataObject <UserGroup > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16