Skip to main content

ts-transforms / operations/lib/transforms/base / default

Class: abstract default

Defined in: operations/lib/transforms/base.ts:4

Extends

Extended by

Constructors

new default()

new default(config): default

Defined in: operations/lib/base.ts:15

Parameters

ParameterType
configOperationConfig

Returns

default

Inherited from

default.constructor

Properties

PropertyModifierTypeDefault valueInherited fromDefined in
configreadonlyOperationConfigundefineddefault.configoperations/lib/base.ts:9
destinationprotectedstring | string[]undefineddefault.destinationoperations/lib/base.ts:10
hasTargetprotectedbooleanundefineddefault.hasTargetoperations/lib/base.ts:11
sourceprotectedstring | string[]undefineddefault.sourceoperations/lib/base.ts:7
targetprotectedstring | string[]undefineddefault.targetoperations/lib/base.ts:8
cardinalitystaticInputOutputCardinality'one-to-one'default.cardinalityoperations/lib/base.ts:13

Methods

execute()

protected execute(doc, fn): null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Defined in: operations/lib/transforms/base.ts:5

Parameters

ParameterType
docDataEntity
fn(value) => any

Returns

null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>


removeField()

removeField(doc, field): void

Defined in: operations/lib/base.ts:50

Parameters

ParameterType
docDataEntity
fieldstring

Returns

void

Inherited from

default.removeField


removeSource()

removeSource(doc): void

Defined in: operations/lib/base.ts:46

Parameters

ParameterType
docDataEntity

Returns

void

Inherited from

default.removeSource


run()

abstract run(data): null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>

Defined in: operations/lib/transforms/base.ts:42

Parameters

ParameterType
dataDataEntity

Returns

null | DataEntity<Record<string, any>, _DataEntityMetadata<Record<string, any>>>


set()

set(doc, data): void

Defined in: operations/lib/base.ts:38

Parameters

ParameterType
docDataEntity
dataany

Returns

void

Inherited from

default.set


setField()

setField(doc, field, data): void

Defined in: operations/lib/base.ts:42

Parameters

ParameterType
docDataEntity
fieldstring
dataany

Returns

void

Inherited from

default.setField


validateConfig()

protected validateConfig(config): void

Defined in: operations/lib/base.ts:22

Parameters

ParameterType
configOperationConfig

Returns

void

Inherited from

default.validateConfig