Skip to content

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

Class: ServiceRepository<T>

Type parameters

Name Type
T extends Service = Service

Hierarchy

Table of contents

Constructors

Properties

Constructors

constructor

new ServiceRepository<T>(dataSource, getCurrentUser, service)

Type parameters

Name Type
T extends Service<T> = Service

Parameters

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

Overrides

DefaultUserModifyCrudRepository< T, typeof Service.prototype.id, ServiceRelations \>.constructor

Defined in

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

Properties

getCurrentUser

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

Inherited from

DefaultUserModifyCrudRepository.getCurrentUser

Defined in

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


service

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

Defined in

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