Interface: Mapper
Properties
[ERROR_HANDLER]
• [ERROR_HANDLER]: ErrorHandler
Defined in
[MAPPINGS]
• [MAPPINGS]: Map<MetadataIdentifier<any>, Map<MetadataIdentifier<any>, Mapping<any, any>>>
Defined in
[METADATA_MAP]
• [METADATA_MAP]: Map<MetadataIdentifier<any>, Metadata[]>
Defined in
[METADATA_OBJECT_MAP]
• [METADATA_OBJECT_MAP]: Map<MetadataIdentifier<any>, [asSource?: Record<string, unknown>, asDestination?: Record<string, unknown>]>
Defined in
[NAMING_CONVENTIONS]
• [NAMING_CONVENTIONS]: NamingConventionInput
Defined in
[PROFILE_CONFIGURATION_CONTEXT]
• [PROFILE_CONFIGURATION_CONTEXT]: Set<MappingConfiguration<any, any>>
Defined in
[RECURSIVE_COUNT]
• [RECURSIVE_COUNT]: Map<MetadataIdentifier<any>, ArrayKeyedMap>
Defined in
[RECURSIVE_DEPTH]
• [RECURSIVE_DEPTH]: Map<MetadataIdentifier<any>, ArrayKeyedMap>
Defined in
[STRATEGY]
• [STRATEGY]: MappingStrategy<MetadataIdentifier<any>>
Defined in
Methods
dispose
▸ dispose(): void
Returns
void
Defined in
map
▸ map<TSource, TDestination>(sourceObject, sourceIdentifier, destinationIdentifier, options?): TDestination
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource, TDestination, Record<string, any>> |
Returns
TDestination
Defined in
▸ map<TSource>(sourceObject, identifier, options?): TSource
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource, TSource, Record<string, any>> |
Returns
TSource
Defined in
mapArray
▸ mapArray<TSource, TDestination>(sourceArray, sourceIdentifier, destinationIdentifier, options?): TDestination[]
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource[], TDestination[], Record<string, any>> |
Returns
TDestination[]
Defined in
▸ mapArray<TSource>(sourceArray, identifier, options?): TSource[]
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource[], TSource[], Record<string, any>> |
Returns
TSource[]
Defined in
mapArrayAsync
▸ mapArrayAsync<TSource, TDestination>(sourceArray, sourceIdentifier, destinationIdentifier, options?): Promise<TDestination[]>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource[], TDestination[], Record<string, any>> |
Returns
Promise<TDestination[]>
Defined in
▸ mapArrayAsync<TSource>(sourceArray, identifier, options?): Promise<TSource[]>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource[], TSource[], Record<string, any>> |
Returns
Promise<TSource[]>
Defined in
mapAsync
▸ mapAsync<TSource, TDestination>(sourceObject, sourceIdentifier, destinationIdentifier, options?): Promise<TDestination>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource, TDestination, Record<string, any>> |
Returns
Promise<TDestination>
Defined in
▸ mapAsync<TSource>(sourceObject, identifier, options?): Promise<TSource>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource, TSource, Record<string, any>> |
Returns
Promise<TSource>
Defined in
mutate
▸ mutate<TSource, TDestination>(sourceObject, destinationObject, sourceIdentifier, destinationIdentifier, options?): void
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
destinationObject | TDestination |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource, TDestination, Record<string, any>> |
Returns
void
Defined in
▸ mutate<TSource>(sourceObject, destinationObject, identifier, options?): void
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
destinationObject | TSource |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource, TSource, Record<string, any>> |
Returns
void
Defined in
mutateArray
▸ mutateArray<TSource, TDestination>(sourceArray, destinationArray, sourceIdentifier, destinationIdentifier, options?): void
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
destinationArray | TDestination[] |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource[], TDestination[], Record<string, any>> |
Returns
void
Defined in
▸ mutateArray<TSource>(sourceArray, destinationArray, identifier, options?): void
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
destinationArray | TSource[] |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource[], TSource[], Record<string, any>> |
Returns
void
Defined in
mutateArrayAsync
▸ mutateArrayAsync<TSource, TDestination>(sourceArray, destinationArray, sourceIdentifier, destinationIdentifier, options?): Promise<void>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
destinationArray | TDestination[] |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource[], TDestination[], Record<string, any>> |
Returns
Promise<void>
Defined in
▸ mutateArrayAsync<TSource>(sourceArray, destinationArray, identifier, options?): Promise<void>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceArray | TSource[] |
destinationArray | TSource[] |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource[], TSource[], Record<string, any>> |
Returns
Promise<void>
Defined in
mutateAsync
▸ mutateAsync<TSource, TDestination>(sourceObject, destinationObject, sourceIdentifier, destinationIdentifier, options?): Promise<void>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
TDestination | extends Dictionary<TDestination> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
destinationObject | TDestination |
sourceIdentifier | ModelIdentifier<TSource> |
destinationIdentifier | ModelIdentifier<TDestination> |
options? | MapOptions<TSource, TDestination, Record<string, any>> |
Returns
Promise<void>
Defined in
▸ mutateAsync<TSource>(sourceObject, destinationObject, identifier, options?): Promise<void>
Type parameters
| Name | Type |
|---|---|
TSource | extends Dictionary<TSource> |
Parameters
| Name | Type |
|---|---|
sourceObject | TSource |
destinationObject | TSource |
identifier | ModelIdentifier<TSource> |
options? | MapOptions<TSource, TSource, Record<string, any>> |
Returns
Promise<void>