API Reference
Rockets Core API
nestjs-org
classes
OrgLookupService

Class: OrgLookupService

Org lookup service

Extends

Implements

Constructors

new OrgLookupService()

new OrgLookupService(repo, ownerLookupService): OrgLookupService

Constructor

Parameters

ParameterTypeDescription
repoRepository<OrgEntityInterface>instance of the org repo
ownerLookupServiceOrgOwnerLookupServiceInterface-

Returns

OrgLookupService

Overrides

LookupService.constructor

Defined in

.tmp/repos/rockets/packages/nestjs-org/src/services/org-lookup.service.ts:29 (opens in a new tab)

Properties

PropertyModifierType
ownerLookupServicereadonlyOrgOwnerLookupServiceInterface

Accessors

metadata

get protected metadata(): EntityMetadata

Internal

Returns

EntityMetadata

Inherited from

LookupService.metadata

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:14

Methods

byId()

byId(id, queryOptions?): Promise<null | OrgEntityInterface>

Get entity for the given id.

Parameters

ParameterTypeDescription
idstringthe id
queryOptions?QueryOptionsInterfacequery options

Returns

Promise<null | OrgEntityInterface>

Implementation of

OrgLookupServiceInterface.byId

Inherited from

LookupService.byId

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/lookup.service.d.ts:7


find()

find(options, queryOptions?): Promise<Promise<OrgEntityInterface[]>>

Find wrapper.

Parameters

ParameterTypeDescription
optionsFindManyOptions<OrgEntityInterface>Find many options
queryOptions?QueryOptionsInterfaceQuery options

Returns

Promise<Promise<OrgEntityInterface[]>>

Inherited from

LookupService.find

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:10


findOne()

findOne(options, queryOptions?): Promise<null | OrgEntityInterface>

Find One wrapper.

Parameters

ParameterTypeDescription
optionsFindOneOptions<OrgEntityInterface>Find one options
queryOptions?QueryOptionsInterfaceQuery options

Returns

Promise<null | OrgEntityInterface>

Inherited from

LookupService.findOne

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:11


getOwner()

getOwner(org, queryOptions?): Promise<null | ReferenceIdInterface<string>>

Get owner for the given org.

Parameters

ParameterTypeDescription
orgOrgOwnerInterfaceThe org of which owner to retrieve.
queryOptions?QueryOptionsInterface-

Returns

Promise<null | ReferenceIdInterface<string>>

Implementation of

OrgLookupServiceInterface.getOwner

Defined in

.tmp/repos/rockets/packages/nestjs-org/src/services/org-lookup.service.ts:43 (opens in a new tab)


repository()

repository(queryOptions?): Repository<OrgEntityInterface>

Return the correct repository instance.

Parameters

ParameterTypeDescription
queryOptions?QueryOptionsInterfaceOptions

Returns

Repository<OrgEntityInterface>

Inherited from

LookupService.repository

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:12


transaction()

transaction(options?): TransactionProxy

Return a transaction instance.

Parameters

ParameterTypeDescription
options?SafeTransactionOptionsInterfaceOptions

Returns

TransactionProxy

Inherited from

LookupService.transaction

Defined in

.tmp/repos/rockets/packages/typeorm-common/dist/services/base.service.d.ts:13