@sourceloop/user-tenant-service / Exports / TenantConfigRepository
Class: TenantConfigRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<TenantConfig
, typeofid
,TenantConfigRelations
>↳
TenantConfigRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new TenantConfigRepository(dataSource
, tenantRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
tenantRepositoryGetter |
Getter <TenantRepository > |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< TenantConfig, typeof TenantConfig.prototype.id, TenantConfigRelations \>.constructor
Defined in¶
services/user-tenant-service/src/repositories/tenant-config.repository.ts:28
Properties¶
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/user-tenant-service/src/repositories/tenant-config.repository.ts:34
tenant¶
• Readonly
tenant: BelongsToAccessor
<Tenant
, undefined
| string
>
Defined in¶
services/user-tenant-service/src/repositories/tenant-config.repository.ts:23
tenantRepositoryGetter¶
• Protected
tenantRepositoryGetter: Getter
<TenantRepository
>
Defined in¶
services/user-tenant-service/src/repositories/tenant-config.repository.ts:32
Methods¶
create¶
▸ create(entity
, options?
): Promise
<TenantConfig
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <TenantConfig > |
options? |
Options |
Returns¶
Promise
<TenantConfig
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<TenantConfig
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <TenantConfig >[] |
options? |
Options |
Returns¶
Promise
<TenantConfig
[]>
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 <TenantConfig > |
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
<TenantConfig
>
Parameters¶
Name | Type |
---|---|
entity |
TenantConfig |
options? |
Options |
Returns¶
Promise
<TenantConfig
>
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 |
TenantConfig |
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 <TenantConfig > |
where? |
Where <TenantConfig > |
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 <TenantConfig > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16