Search
Preparing search index...
The search index is not available
Aurelia Deco Documentation - v2.0.9
Options
All
Public
Public/Protected
All
Inherited
Menu
Aurelia Deco Documentation - v2.0.9
DynamicDataModel
Class DynamicDataModel
Hierarchy
Model
DynamicDataModel
Index
Constructors
constructor
Properties
_created
At
_created
By
_ref
Locales
_updated
At
_updated
By
id
model
Id
_original
Deco
current
Model
Slug
models
options
Accessors
_label
api
deco
is
Multilang
validation
Controller
api
baseroute
deco
is
Multilang
original
Deco
Methods
add
Locale
InSuffix
IfNecessary
delete
Route
fix
Body
IfFiles
ToUpload
get
get
File
Preview
get
File
Preview
Url
get
One
Route
get
Route
get
UxFile
Preview
Data
post
Route
put
Route
remove
save
set
un
Class
update
Instance
From
Element
update
Instance
From
Unclassed
Element
update
Properties
validate
validation
Rules
add
Deco
ToModel
add
Locale
InSuffix
IfNecessary
clear
Registered
Models
delete
Route
get
All
get
All
Route
get
One
Route
get
One
With
Id
get
One
With
Query
instance
From
Api
instance
From
Element
instance
From
Unclassed
Element
post
Route
put
Route
register
Model
request
use
Constructors
constructor
new
Dynamic
Data
Model
(
slug
?:
string
)
:
DynamicDataModel
Parameters
Optional
slug:
string
Returns
DynamicDataModel
Properties
_created
At
_created
At
:
Date
_created
By
_created
By
:
string
Optional
_ref
Locales
_ref
Locales
:
StringTMap
<
StringAnyMap
>
_updated
At
_updated
At
:
Date
_updated
By
_updated
By
:
string
id
id
:
string
model
Id
model
Id
:
string
Static
Private
_original
Deco
_original
Deco
:
Deco
Static
current
Model
Slug
current
Model
Slug
:
string
Static
models
models
:
StringTMap
<
DynamicConfigModelWithDeco
>
= ...
Static
options
options
:
ModelOptions
Accessors
_label
get
_label
(
)
:
any
Returns
any
api
get
api
(
)
:
DecoApi
Returns
DecoApi
deco
get
deco
(
)
:
Deco
Returns
Deco
is
Multilang
get
isMultilang
(
)
:
boolean
Returns
boolean
validation
Controller
get
validationController
(
)
:
ValidationController
Returns
ValidationController
Static
api
get
api
(
)
:
DecoApi
Returns
DecoApi
Static
baseroute
get
baseroute
(
)
:
string
Returns
string
Static
deco
get
deco
(
)
:
Deco
Returns
Deco
Static
is
Multilang
get
isMultilang
(
)
:
boolean
Returns
boolean
Static
original
Deco
get
originalDeco
(
)
:
Deco
Returns
Deco
Methods
add
Locale
InSuffix
IfNecessary
add
Locale
InSuffix
IfNecessary
(
suffix
:
string
, options
?:
GetAllOptions
)
:
string
Parameters
suffix:
string
options:
GetAllOptions
= ...
Returns
string
delete
Route
delete
Route
(
elementId
:
string
)
:
string
Parameters
elementId:
string
Returns
string
fix
Body
IfFiles
ToUpload
fix
Body
IfFiles
ToUpload
(
body
:
any
, options
?:
FixBodyOptions
)
:
Promise
<
any
>
Parameters
body:
any
options:
FixBodyOptions
= ...
Returns
Promise
<
any
>
get
get
(
propertyName
:
string
)
:
any
Parameters
propertyName:
string
Returns
any
get
File
Preview
get
File
Preview
(
property
:
string
, format
:
string
, options
?:
FilePreviewOptions
)
:
Promise
<
Blob
>
Parameters
property:
string
format:
string
Optional
options:
FilePreviewOptions
Returns
Promise
<
Blob
>
get
File
Preview
Url
get
File
Preview
Url
(
property
:
string
, format
:
string
)
:
Promise
<
string
>
Parameters
property:
string
format:
string
Returns
Promise
<
string
>
get
One
Route
get
One
Route
(
elementId
:
string
)
:
string
Parameters
elementId:
string
Returns
string
get
Route
get
Route
(
)
:
string
Returns
string
get
UxFile
Preview
Data
get
UxFile
Preview
Data
(
property
:
string
, file
:
UxFileItem
, format
:
string
)
:
Promise
<
void
>
Parameters
property:
string
file:
UxFileItem
format:
string
Returns
Promise
<
void
>
post
Route
post
Route
(
)
:
string
Returns
string
put
Route
put
Route
(
elementId
:
string
)
:
string
Parameters
elementId:
string
Returns
string
remove
remove
(
suffix
?:
string
, options
?:
RemoveOptions
)
:
Promise
<
any
>
Parameters
suffix:
string
= ''
options:
RemoveOptions
= ...
Returns
Promise
<
any
>
save
save
(
suffix
?:
string
, options
?:
SaveOptions
)
:
Promise
<
any
>
Parameters
suffix:
string
= ''
options:
SaveOptions
= ...
Returns
Promise
<
any
>
set
set
(
propertyName
:
string
, value
:
any
)
:
void
Parameters
propertyName:
string
value:
any
Returns
void
un
Class
un
Class
(
)
:
any
Returns
any
update
Instance
From
Element
update
Instance
From
Element<T>
(
element
:
any
, properties
?:
string
[]
)
:
Promise
<
T
>
Type parameters
T
:
Model
<
T
>
Parameters
element:
any
Optional
properties:
string
[]
Returns
Promise
<
T
>
update
Instance
From
Unclassed
Element
update
Instance
From
Unclassed
Element<T>
(
element
:
any
, properties
?:
string
[]
)
:
T
Type parameters
T
:
Model
<
T
>
Parameters
element:
any
Optional
properties:
string
[]
Returns
T
update
Properties
update
Properties
(
suffix
?:
string
, properties
:
string
[]
, options
?:
UpdatePropertiesOptions
)
:
Promise
<
DynamicDataModel
>
Parameters
suffix:
string
= ''
properties:
string
[]
options:
UpdatePropertiesOptions
= ...
Returns
Promise
<
DynamicDataModel
>
validate
validate
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
validation
Rules
validation
Rules
(
)
:
any
Returns
any
Static
add
Deco
ToModel
add
Deco
ToModel
(
model
:
DynamicConfigModel
)
:
DynamicConfigModelWithDeco
Parameters
model:
DynamicConfigModel
Returns
DynamicConfigModelWithDeco
Static
add
Locale
InSuffix
IfNecessary
add
Locale
InSuffix
IfNecessary
(
suffix
:
string
, options
?:
GetAllOptions
)
:
string
Parameters
suffix:
string
options:
GetAllOptions
= ...
Returns
string
Static
clear
Registered
Models
clear
Registered
Models
(
)
:
void
Returns
void
Static
delete
Route
delete
Route
(
elementId
:
string
)
:
string
Parameters
elementId:
string
Returns
string
Static
get
All
get
All<T>
(
suffix
:
string
, options
?:
GetAllOptions
)
:
Promise
<
InstanceType
<
T
>
[]
>
Type parameters
T
:
typeof
Model
Parameters
suffix:
string
options:
GetAllOptions
= ''
Returns
Promise
<
InstanceType
<
T
>
[]
>
Static
get
All
Route
get
All
Route
(
)
:
string
Returns
string
Static
get
One
Route
get
One
Route
(
elementId
:
string
)
:
string
Parameters
elementId:
string
Returns
string
Static
get
One
With
Id
get
One
With
Id<T>
(
id
:
string
, suffix
:
string
, options
?:
GetOneOptions
)
:
Promise
<
InstanceType
<
T
>
>
Type parameters
T
:
typeof
Model
Parameters
id:
string
suffix:
string
options:
GetOneOptions
= ''
Returns
Promise
<
InstanceType
<
T
>
>
Static
get
One
With
Query
get
One
With
Query<T>
(
)
:
Promise
<
InstanceType
<
T
>
>
Type parameters
T
:
typeof
Model
Returns
Promise
<
InstanceType
<
T
>
>
Static
instance
From
Api
instance
From
Api<T>
(
element
:
any
)
:
Promise
<
InstanceType
<
T
>
>
Type parameters
T
:
typeof
Model
Parameters
element:
any
Returns
Promise
<
InstanceType
<
T
>
>
Static
instance
From
Element
instance
From
Element<T>
(
element
:
any
)
:
InstanceType
<
T
>
Type parameters
T
:
typeof
Model
Parameters
element:
any
Returns
InstanceType
<
T
>
Static
instance
From
Unclassed
Element
instance
From
Unclassed
Element<T>
(
element
:
any
)
:
InstanceType
<
T
>
Type parameters
T
:
typeof
Model
Parameters
element:
any
Returns
InstanceType
<
T
>
Static
post
Route
post
Route
(
)
:
string
Returns
string
Static
put
Route
put
Route
(
elementId
:
string
)
:
string
Parameters
elementId:
string
Returns
string
Static
register
Model
register
Model
(
model
:
DynamicConfigModel
)
:
void
Parameters
model:
DynamicConfigModel
Returns
void
Static
request
request
(
method
:
"get"
|
"post"
|
"delete"
|
"put"
, uri
?:
string
, body
?:
any
, options
?:
RequestOption
)
:
Promise
<
Model
[]
>
Parameters
method:
"get"
|
"post"
|
"delete"
|
"put"
uri:
string
= ''
body:
any
= ...
options:
RequestOption
= ...
Returns
Promise
<
Model
[]
>
Static
use
use
(
slug
:
string
)
:
typeof
DynamicDataModel
Parameters
slug:
string
Returns
typeof
DynamicDataModel
Exports
Dynamic
Data
Model
constructor
_created
At
_created
By
_ref
Locales
_updated
At
_updated
By
id
model
Id
_original
Deco
current
Model
Slug
models
options
_label
api
deco
is
Multilang
validation
Controller
api
baseroute
deco
is
Multilang
original
Deco
add
Locale
InSuffix
IfNecessary
delete
Route
fix
Body
IfFiles
ToUpload
get
get
File
Preview
get
File
Preview
Url
get
One
Route
get
Route
get
UxFile
Preview
Data
post
Route
put
Route
remove
save
set
un
Class
update
Instance
From
Element
update
Instance
From
Unclassed
Element
update
Properties
validate
validation
Rules
add
Deco
ToModel
add
Locale
InSuffix
IfNecessary
clear
Registered
Models
delete
Route
get
All
get
All
Route
get
One
Route
get
One
With
Id
get
One
With
Query
instance
From
Api
instance
From
Element
instance
From
Unclassed
Element
post
Route
put
Route
register
Model
request
use
Generated using
TypeDoc