Skip to main content

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

Class: default

Defined in: operations/lib/validations/geolocation.ts:5

Extends

Constructors

new default()

new default(config): default

Defined in: operations/lib/validations/geolocation.ts:6

Parameters

ParameterType
configPostProcessConfig

Returns

default

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

Inherited from

default.normalize


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

Inherited from

default.run


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

validate(geoData): boolean

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

Parameters

ParameterType
geoDataany

Returns

boolean

Overrides

default.validate


validateConfig()

protected validateConfig(config): void

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

Parameters

ParameterType
configOperationConfig

Returns

void

Inherited from

default.validateConfig