Skip to content

@sourceloop/ctrl-plane-tenant-management-service / Exports / ResourceRepository

Class: ResourceRepository<T>

Type parameters

Name Type
T extends ResourceData["metadata"] = ResourceData["metadata"]

Hierarchy

  • DefaultTransactionalUserModifyRepository<Resource<T>, typeof Resource.prototype.id, ResourceRelations>

    ResourceRepository

Table of contents

Constructors

Properties

Constructors

constructor

new ResourceRepository<T>(dataSource, getCurrentUser, tenantRepositoryGetter)

Type parameters

Name Type
T extends Object = { bucket: string ; path: string }

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<IAuthUserWithPermissions<string, string, string>>
tenantRepositoryGetter Getter<TenantRepository>

Overrides

DefaultTransactionalUserModifyRepository< Resource<T\>, typeof Resource.prototype.id, ResourceRelations \>.constructor

Defined in

services/tenant-management-service/src/repositories/resource.repository.ts:25

Properties

getCurrentUser

Readonly getCurrentUser: Getter<IAuthUserWithPermissions<string, string, string>>

Inherited from

DefaultTransactionalUserModifyRepository.getCurrentUser

Defined in

services/tenant-management-service/src/repositories/resource.repository.ts:29


tenant

Readonly tenant: BelongsToAccessor<Tenant, string>

Defined in

services/tenant-management-service/src/repositories/resource.repository.ts:20


tenantRepositoryGetter

Protected tenantRepositoryGetter: Getter<TenantRepository>

Defined in

services/tenant-management-service/src/repositories/resource.repository.ts:31