@sourceloop/ctrl-plane-tenant-management-service / Exports / LeadRepository
Class: LeadRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<Lead
, typeofid
,LeadRelations
>↳
LeadRepository
Table of contents¶
Constructors¶
Properties¶
Constructors¶
constructor¶
• new LeadRepository(dataSource
, getCurrentUser
, tenantRepositoryGetter
, addressRepositoryGetter
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
getCurrentUser |
Getter <IAuthUserWithPermissions <string , string , string >> |
tenantRepositoryGetter |
Getter <TenantRepository > |
addressRepositoryGetter |
Getter <AddressRepository > |
Overrides¶
DefaultUserModifyCrudRepository< Lead, typeof Lead.prototype.id, LeadRelations \>.constructor
Defined in¶
services/tenant-management-service/src/repositories/lead.repository.ts:35
Properties¶
address¶
• Readonly
address: BelongsToAccessor
<Address
, string
>
Defined in¶
services/tenant-management-service/src/repositories/lead.repository.ts:30
addressRepositoryGetter¶
• Protected
addressRepositoryGetter: Getter
<AddressRepository
>
Defined in¶
services/tenant-management-service/src/repositories/lead.repository.ts:43
getCurrentUser¶
• Readonly
getCurrentUser: Getter
<IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/tenant-management-service/src/repositories/lead.repository.ts:39
tenant¶
• Readonly
tenant: HasOneRepositoryFactory
<Tenant
, string
>
Defined in¶
services/tenant-management-service/src/repositories/lead.repository.ts:25
tenantRepositoryGetter¶
• Protected
tenantRepositoryGetter: Getter
<TenantRepository
>
Defined in¶
services/tenant-management-service/src/repositories/lead.repository.ts:41