IWithVersioningBehavior
Composable behavior that adds versioning to an entity
Methods
Method | Returns | Notes |
---|---|---|
|
Promise<IVersion> |
Creates a new version of the entity |
|
Promise<{
|
Deletes the specified version of the entity |
|
Promise<IVersion> |
Gets the specified version of the entity |
|
Promise<IVersionMetadata[]> |
Gets all the versions of the entity |
|
Promise<IVersion> |
Updates the specified version of the entity |
|
Promise<IVersionMetadata> |
Updates the specified entity version's metadata |
createVersion
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
options Optional | ICreateVersionOptions |
Returns
deleteVersion
Deletes the specified version of the entity
Parameters
Returns
Promise<{
- success:
- boolean
updateVersion
Updates the specified version of the entity
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
version Required | IVersion |
Returns
updateVersionMetadata
Updates the specified entity version's metadata
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
version Required | IVersionMetadata |
Returns
Interface defined in common/src/core/behaviors/IWithVersioningBehavior.ts:10
Creates a new version of the entity