ts-transforms / operations/lib/validations/geolocation / default
Class: default
Extends
default
<any
>
Constructors
new default()
new default(
config
):default
Parameters
Parameter | Type |
---|---|
config | PostProcessConfig |
Returns
Overrides
Source
operations/lib/validations/geolocation.ts:6
Properties
config
readonly
config:OperationConfig
Inherited from
Source
destination
protected
destination:string
|string
[]
Inherited from
Source
hasTarget
protected
hasTarget:boolean
Inherited from
Source
source
protected
source:string
|string
[]
Inherited from
Source
target
protected
target:string
|string
[]
Inherited from
Source
cardinality
static
cardinality:InputOutputCardinality
='one-to-one'
Inherited from
Source
Methods
normalize()?
optional
normalize(data
,_doc
):any
Parameters
Parameter | Type |
---|---|
data | any |
_doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
any
Inherited from
Source
operations/lib/validations/base.ts:16
removeField()
removeField(
doc
,field
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
field | string |
Returns
void
Inherited from
Source
removeSource()
removeSource(
doc
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
void
Inherited from
Source
run()
run(
doc
):null
|DataEntity
<Record
<string
,any
>,_DataEntityMetadata
<Record
<string
,any
>>>
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
Returns
null
| DataEntity
<Record
<string
, any
>, _DataEntityMetadata
<Record
<string
, any
>>>
Inherited from
Source
operations/lib/validations/base.ts:18
set()
set(
doc
,data
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
data | any |
Returns
void
Inherited from
Source
setField()
setField(
doc
,field
,data
):void
Parameters
Parameter | Type |
---|---|
doc | DataEntity <Record <string , any >, _DataEntityMetadata <Record <string , any >>> |
field | string |
data | any |
Returns
void
Inherited from
Source
validate()
validate(
geoData
):boolean
Parameters
Parameter | Type |
---|---|
geoData | any |
Returns
boolean
Overrides
Source
operations/lib/validations/geolocation.ts:14
validateConfig()
protected
validateConfig(config
):void
Parameters
Parameter | Type |
---|---|
config | OperationConfig |
Returns
void