@sourceloop/ctrl-plane-tenant-management-service / Exports / TenantRepository
Class: TenantRepository¶
Hierarchy¶
-
DefaultTransactionalUserModifyRepository
<Tenant
, typeofid
,TenantRelations
>↳
TenantRepository
Table of contents¶
Constructors¶
Properties¶
- address
- addressRepositoryGetter
- contactRepositoryGetter
- contacts
- getCurrentUser
- lead
- leadRepositoryGetter
- resourceRepositoryGetter
- resources
Constructors¶
constructor¶
• new TenantRepository(dataSource
, getCurrentUser
, contactRepositoryGetter
, leadRepositoryGetter
, resourceRepositoryGetter
, addressRepositoryGetter
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
getCurrentUser |
Getter <IAuthUserWithPermissions <string , string , string >> |
contactRepositoryGetter |
Getter <ContactRepository > |
leadRepositoryGetter |
Getter <LeadRepository > |
resourceRepositoryGetter |
Getter <ResourceRepository <{ bucket : string ; path : string }>> |
addressRepositoryGetter |
Getter <AddressRepository > |
Overrides¶
DefaultTransactionalUserModifyRepository< Tenant, typeof Tenant.prototype.id, TenantRelations \>.constructor
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:50
Properties¶
address¶
• Readonly
address: BelongsToAccessor
<Address
, string
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:45
addressRepositoryGetter¶
• Protected
addressRepositoryGetter: Getter
<AddressRepository
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:62
contactRepositoryGetter¶
• Protected
contactRepositoryGetter: Getter
<ContactRepository
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:56
contacts¶
• Readonly
contacts: HasManyRepositoryFactory
<Contact
, string
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:33
getCurrentUser¶
• Readonly
getCurrentUser: Getter
<IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultTransactionalUserModifyRepository.getCurrentUser
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:54
lead¶
• Readonly
lead: BelongsToAccessor
<Lead
, string
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:43
leadRepositoryGetter¶
• Protected
leadRepositoryGetter: Getter
<LeadRepository
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:58
resourceRepositoryGetter¶
• Protected
resourceRepositoryGetter: Getter
<ResourceRepository
<{ bucket
: string
; path
: string
}>>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:60
resources¶
• Readonly
resources: HasManyRepositoryFactory
<Resource
<{ bucket
: string
; path
: string
}>, string
>
Defined in¶
services/tenant-management-service/src/repositories/tenant.repository.ts:38