@shiftcoders/dynamo-easy
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Binary
Null
Type
Undefined
Type
Binary
Attribute
Binary
Set
Attribute
Boolean
Attribute
List
Attribute
Map
Attribute
Mapper
For
Type
Null
Attribute
Number
Attribute
Number
Set
Attribute
String
Attribute
String
Set
Attribute
Attribute
Attribute
Collection
Type
Attribute
Type
Attribute
Value
Type
Attributes
Collection
Attribute
Types
From
DbFn
To
DbFn
boolean
From
Db
boolean
ToDb
collection
From
Db
collection
ToDb
create
ToKey
Fn
date
From
Db
date
From
Db
date
ToDb
date
ToDb
detect
Collection
Type
From
Metadata
enum
From
Db
enum
ToDb
from
Db
from
DbOne
null
From
Db
null
ToDb
number
From
Db
number
ToDb
object
From
Db
object
ToDb
string
From
Db
string
ToDb
to
Db
to
DbOne
to
Key
Boolean
Mapper
Collection
Mapper
Enum
Mapper
Null
Mapper
Number
Mapper
Object
Mapper
String
Mapper
date
ToNumber
Mapper
date
ToString
Mapper
Index
Classes
Binary
Null
Type
Undefined
Type
Interfaces
Binary
Attribute
Binary
Set
Attribute
Boolean
Attribute
List
Attribute
Map
Attribute
Mapper
For
Type
Null
Attribute
Number
Attribute
Number
Set
Attribute
String
Attribute
String
Set
Attribute
Type aliases
Attribute
Attribute
Collection
Type
Attribute
Type
Attribute
Value
Type
Attributes
Collection
Attribute
Types
From
DbFn
To
DbFn
Functions
boolean
From
Db
boolean
ToDb
collection
From
Db
collection
ToDb
create
ToKey
Fn
date
From
Db
date
From
Db
date
ToDb
date
ToDb
detect
Collection
Type
From
Metadata
enum
From
Db
enum
ToDb
from
Db
from
DbOne
null
From
Db
null
ToDb
number
From
Db
number
ToDb
object
From
Db
object
ToDb
string
From
Db
string
ToDb
to
Db
to
DbOne
to
Key
Object literals
Boolean
Mapper
Collection
Mapper
Enum
Mapper
Null
Mapper
Number
Mapper
Object
Mapper
String
Mapper
date
ToNumber
Mapper
date
ToString
Mapper
Type aliases
Attribute
Attribute
:
StringAttribute
|
NumberAttribute
|
BinaryAttribute
|
StringSetAttribute
|
NumberSetAttribute
|
BinarySetAttribute
|
MapAttribute
|
ListAttribute
<
any
>
|
NullAttribute
|
BooleanAttribute
Attribute
Collection
Type
Attribute
Collection
Type
:
"SS"
|
"NS"
|
"BS"
|
"L"
Attribute
Type
Attribute
Type
:
"S"
|
"N"
|
"B"
|
"M"
|
"NULL"
|
"BOOL"
|
AttributeCollectionType
Attribute
Value
Type
Attribute
Value
Type
:
string
|
number
|
boolean
|
Binary
|
Set
<
any
>
|
Map
<
any
,
any
>
|
any
[]
|
NullType
|
UndefinedType
|
object
Attributes
Attributes
:
Record
<
keyof T
|
string
,
Attribute
>
Collection
Attribute
Types
Collection
Attribute
Types
:
StringSetAttribute
|
NumberSetAttribute
|
BinarySetAttribute
|
ListAttribute
|
NullAttribute
From
DbFn
From
DbFn
:
function
Type declaration
(
attributeValue
:
R
, propertyMetadata
:
PropertyMetadata
<
T
,
R
>
)
:
T
Parameters
attributeValue:
R
Optional
propertyMetadata:
PropertyMetadata
<
T
,
R
>
Returns
T
To
DbFn
To
DbFn
:
function
Type declaration
(
propertyValue
:
T
, propertyMetadata
:
PropertyMetadata
<
T
,
R
>
)
:
R
|
null
Parameters
propertyValue:
T
Optional
propertyMetadata:
PropertyMetadata
<
T
,
R
>
Returns
R
|
null
Functions
boolean
From
Db
boolean
From
Db
(
attributeValue
:
BooleanAttribute
)
:
boolean
Parameters
attributeValue:
BooleanAttribute
Returns
boolean
boolean
ToDb
boolean
ToDb
(
modelValue
:
boolean
)
:
BooleanAttribute
Parameters
modelValue:
boolean
Returns
BooleanAttribute
collection
From
Db
collection
From
Db
(
attributeValue
:
CollectionAttributeTypes
, propertyMetadata
:
PropertyMetadata
<
any
,
CollectionAttributeTypes
>
)
:
any
[]
|
Set
<
any
>
Parameters
attributeValue:
CollectionAttributeTypes
Optional
propertyMetadata:
PropertyMetadata
<
any
,
CollectionAttributeTypes
>
Returns
any
[]
|
Set
<
any
>
collection
ToDb
collection
ToDb
(
propertyValue
:
any
[]
|
Set
<
any
>
, propertyMetadata
:
PropertyMetadata
<
any
,
CollectionAttributeTypes
>
)
:
CollectionAttributeTypes
|
null
Parameters
propertyValue:
any
[]
|
Set
<
any
>
Optional
propertyMetadata:
PropertyMetadata
<
any
,
CollectionAttributeTypes
>
Returns
CollectionAttributeTypes
|
null
create
ToKey
Fn
create
ToKey
Fn<T>
(
modelConstructor
:
ModelConstructor
<
T
>
)
:
function
Type parameters
T
Parameters
modelConstructor:
ModelConstructor
<
T
>
Returns
function
(
item
:
Partial
<
T
>
)
:
Attributes
<
T
>
Parameters
item:
Partial
<
T
>
Returns
Attributes
<
T
>
date
From
Db
date
From
Db
(
attributeValue
:
StringAttribute
)
:
Date
Parameters
attributeValue:
StringAttribute
Returns
Date
date
From
Db
date
From
Db
(
attributeValue
:
NumberAttribute
)
:
Date
Parameters
attributeValue:
NumberAttribute
Returns
Date
date
ToDb
date
ToDb
(
modelValue
:
Date
)
:
StringAttribute
Parameters
modelValue:
Date
Returns
StringAttribute
date
ToDb
date
ToDb
(
modelValue
:
Date
)
:
NumberAttribute
Parameters
modelValue:
Date
Returns
NumberAttribute
detect
Collection
Type
From
Metadata
detect
Collection
Type
From
Metadata
(
propertyMetadata
:
PropertyMetadata
<
any
,
CollectionAttributeTypes
>
, propertyValue
:
any
)
:
AttributeCollectionType
Parameters
propertyMetadata:
PropertyMetadata
<
any
,
CollectionAttributeTypes
>
propertyValue:
any
Returns
AttributeCollectionType
enum
From
Db
enum
From
Db
(
attributeValue
:
NumberAttribute
, propertyMetadata
:
PropertyMetadata
<
any
,
NumberAttribute
>
)
:
string
|
number
Parameters
attributeValue:
NumberAttribute
Optional
propertyMetadata:
PropertyMetadata
<
any
,
NumberAttribute
>
Returns
string
|
number
enum
ToDb
enum
ToDb
(
value
:
string
|
number
, propertyMetadata
:
PropertyMetadata
<
any
,
NumberAttribute
>
)
:
NumberAttribute
Parameters
value:
string
|
number
Optional
propertyMetadata:
PropertyMetadata
<
any
,
NumberAttribute
>
Returns
NumberAttribute
from
Db
from
Db<T>
(
attributeMap
:
Attributes
<
T
>
, modelConstructor
:
ModelConstructor
<
T
>
)
:
T
Type parameters
T
Parameters
attributeMap:
Attributes
<
T
>
Optional
modelConstructor:
ModelConstructor
<
T
>
Returns
T
from
DbOne
from
DbOne<T>
(
attributeValue
:
Attribute
, propertyMetadata
:
PropertyMetadata
<
any
,
any
>
)
:
T
Type parameters
T
Parameters
attributeValue:
Attribute
Optional
propertyMetadata:
PropertyMetadata
<
any
,
any
>
Returns
T
null
From
Db
null
From
Db
(
attributeValue
:
NullAttribute
)
:
null
Parameters
attributeValue:
NullAttribute
Returns
null
null
ToDb
null
ToDb
(
value
:
null
)
:
NullAttribute
Parameters
value:
null
Returns
NullAttribute
number
From
Db
number
From
Db
(
attributeValue
:
NumberAttribute
)
:
number
Parameters
attributeValue:
NumberAttribute
Returns
number
number
ToDb
number
ToDb
(
modelValue
:
number
)
:
NumberAttribute
|
null
Parameters
modelValue:
number
Returns
NumberAttribute
|
null
object
From
Db
object
From
Db
(
val
:
MapAttribute
, propertyMetadata
:
PropertyMetadata
<
any
,
MapAttribute
>
)
:
any
Parameters
val:
MapAttribute
Optional
propertyMetadata:
PropertyMetadata
<
any
,
MapAttribute
>
Returns
any
object
ToDb
object
ToDb
(
modelValue
:
any
, propertyMetadata
:
PropertyMetadata
<
any
,
MapAttribute
>
)
:
MapAttribute
Parameters
modelValue:
any
Optional
propertyMetadata:
PropertyMetadata
<
any
,
MapAttribute
>
Returns
MapAttribute
string
From
Db
string
From
Db
(
attributeValue
:
StringAttribute
)
:
string
Parameters
attributeValue:
StringAttribute
Returns
string
string
ToDb
string
ToDb
(
modelValue
:
string
)
:
StringAttribute
|
null
Parameters
modelValue:
string
Returns
StringAttribute
|
null
to
Db
to
Db<T>
(
item
:
T
, modelConstructor
:
ModelConstructor
<
T
>
)
:
Attributes
<
T
>
Type parameters
T
Parameters
item:
T
Optional
modelConstructor:
ModelConstructor
<
T
>
Returns
Attributes
<
T
>
to
DbOne
to
DbOne
(
propertyValue
:
any
, propertyMetadata
:
PropertyMetadata
<
any
>
)
:
Attribute
|
null
to
DbOne
(
propertyValue
:
any
, propertyPath
:
string
, propertyMetadata
:
PropertyMetadata
<
any
>
)
:
Attribute
|
null
Parameters
propertyValue:
any
Optional
propertyMetadata:
PropertyMetadata
<
any
>
Returns
Attribute
|
null
Parameters
propertyValue:
any
propertyPath:
string
Optional
propertyMetadata:
PropertyMetadata
<
any
>
Returns
Attribute
|
null
to
Key
to
Key<T>
(
item
:
T
, modelConstructor
:
ModelConstructor
<
T
>
)
:
Attributes
<
T
>
Type parameters
T
Parameters
item:
T
modelConstructor:
ModelConstructor
<
T
>
Returns
Attributes
<
T
>
Object literals
Const
Boolean
Mapper
Boolean
Mapper
:
object
from
Db
from
Db
:
booleanFromDb
= booleanFromDb
to
Db
to
Db
:
booleanToDb
= booleanToDb
Const
Collection
Mapper
Collection
Mapper
:
object
from
Db
from
Db
:
collectionFromDb
= collectionFromDb
to
Db
to
Db
:
collectionToDb
= collectionToDb
Const
Enum
Mapper
Enum
Mapper
:
object
from
Db
from
Db
:
enumFromDb
= enumFromDb
to
Db
to
Db
:
enumToDb
= enumToDb
Const
Null
Mapper
Null
Mapper
:
object
from
Db
from
Db
:
nullFromDb
= nullFromDb
to
Db
to
Db
:
nullToDb
= nullToDb
Const
Number
Mapper
Number
Mapper
:
object
from
Db
from
Db
:
numberFromDb
= numberFromDb
to
Db
to
Db
:
numberToDb
= numberToDb
Const
Object
Mapper
Object
Mapper
:
object
from
Db
from
Db
:
objectFromDb
= objectFromDb
to
Db
to
Db
:
objectToDb
= objectToDb
Const
String
Mapper
String
Mapper
:
object
from
Db
from
Db
:
stringFromDb
= stringFromDb
to
Db
to
Db
:
stringToDb
= stringToDb
Const
date
ToNumber
Mapper
date
ToNumber
Mapper
:
object
from
Db
from
Db
:
dateFromDb
= dateFromDb
to
Db
to
Db
:
dateToDb
= dateToDb
Const
date
ToString
Mapper
date
ToString
Mapper
:
object
from
Db
from
Db
:
dateFromDb
= dateFromDb
to
Db
to
Db
:
dateToDb
= dateToDb