Skip to main content

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

Class: abstract default<T>

Defined in: operations/lib/validations/base.ts:7

Extends

Extended by

Type Parameters

Type Parameter
T

Constructors

new default()

new default<T>(config): default<T>

Defined in: operations/lib/validations/base.ts:9

Parameters

ParameterType
configOperationConfig

Returns

default<T>

Overrides

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

normalize()?

optional normalize(data, _doc): any

Defined in: operations/lib/validations/base.ts:16

Parameters

ParameterType
dataany
_docDataEntity

Returns

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()

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

Defined in: operations/lib/validations/base.ts:18

Parameters

ParameterType
docDataEntity

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


validate()

abstract validate(data): boolean

Defined in: operations/lib/validations/base.ts:14

Parameters

ParameterType
dataundefined | null | T

Returns

boolean


validateConfig()

protected validateConfig(config): void

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

Parameters

ParameterType
configOperationConfig

Returns

void

Inherited from

default.validateConfig