VidStudio SDK reference
Preparing search index...
@vidstudio/engine
MediaAssetRepository
Interface MediaAssetRepository
interface
MediaAssetRepository
{
create
(
data
:
Omit
<
MediaAsset
,
"id"
>
)
:
Promise
<
MediaAsset
>
;
delete
(
id
:
string
)
:
Promise
<
void
>
;
deleteByProjectId
(
projectId
:
string
)
:
Promise
<
void
>
;
getAll
()
:
Promise
<
MediaAsset
[]
>
;
getById
(
id
:
string
)
:
Promise
<
MediaAsset
|
undefined
>
;
getByProjectId
(
projectId
:
string
)
:
Promise
<
MediaAsset
[]
>
;
update
(
id
:
string
,
changes
:
Partial
<
Omit
<
MediaAsset
,
"id"
|
"project_id"
>
>
,
)
:
Promise
<
MediaAsset
>
;
}
Index
Methods
create
delete
delete
By
Project
Id
get
All
get
By
Id
get
By
Project
Id
update
Methods
create
create
(
data
:
Omit
<
MediaAsset
,
"id"
>
)
:
Promise
<
MediaAsset
>
Parameters
data
:
Omit
<
MediaAsset
,
"id"
>
Returns
Promise
<
MediaAsset
>
delete
delete
(
id
:
string
)
:
Promise
<
void
>
Parameters
id
:
string
Returns
Promise
<
void
>
delete
By
Project
Id
deleteByProjectId
(
projectId
:
string
)
:
Promise
<
void
>
Parameters
projectId
:
string
Returns
Promise
<
void
>
get
All
getAll
()
:
Promise
<
MediaAsset
[]
>
Every asset row in the database, across all projects.
Returns
Promise
<
MediaAsset
[]
>
get
By
Id
getById
(
id
:
string
)
:
Promise
<
MediaAsset
|
undefined
>
Parameters
id
:
string
Returns
Promise
<
MediaAsset
|
undefined
>
get
By
Project
Id
getByProjectId
(
projectId
:
string
)
:
Promise
<
MediaAsset
[]
>
Parameters
projectId
:
string
Returns
Promise
<
MediaAsset
[]
>
update
update
(
id
:
string
,
changes
:
Partial
<
Omit
<
MediaAsset
,
"id"
|
"project_id"
>
>
,
)
:
Promise
<
MediaAsset
>
Parameters
id
:
string
changes
:
Partial
<
Omit
<
MediaAsset
,
"id"
|
"project_id"
>
>
Returns
Promise
<
MediaAsset
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
create
delete
delete
By
Project
Id
get
All
get
By
Id
get
By
Project
Id
update
VidStudio SDK reference
Loading...
Every asset row in the database, across all projects.