Skip to content

@sourceloop/ctrl-plane-subscription-service / Exports / ResourceRepository

Class: ResourceRepository<T>

Type parameters

Name Type
T extends Resource = Resource

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

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

Type parameters

Name Type
T extends Resource<T> = Resource

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<IAuthUserWithPermissions<string, string, string>>
resource typeof Entity & { prototype: T }

Overrides

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

Defined in

services/subscription-service/src/repositories/resource.repository.ts:18

Properties

getCurrentUser

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

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

services/subscription-service/src/repositories/resource.repository.ts:22


resource

Private Readonly resource: typeof Entity & { prototype: T }

Defined in

services/subscription-service/src/repositories/resource.repository.ts:24