EntityOnSaveProps
@firecms/core / EntityOnSaveProps
Interface: EntityOnSaveProps<M, USER>
Section titled “Interface: EntityOnSaveProps<M, USER>”Defined in: types/entity_callbacks.ts:123
Parameters passed to hooks when an entity is saved
Type Parameters
Section titled “Type Parameters”M extends Record<string, any> = any
Properties
Section titled “Properties”collection
Section titled “collection”collection:
ResolvedEntityCollection<M>
Defined in: types/entity_callbacks.ts:128
Resolved collection of the entity
context
Section titled “context”context:
FireCMSContext<USER>
Defined in: types/entity_callbacks.ts:164
Context of the app status
entityId
Section titled “entityId”entityId:
string
Defined in: types/entity_callbacks.ts:144
ID of the entity
path:
string
Defined in: types/entity_callbacks.ts:134
Full path of the CMS where this entity is being saved. Might contain unresolved aliases.
previousValues?
Section titled “previousValues?”
optionalpreviousValues:Partial<M>
Defined in: types/entity_callbacks.ts:154
Previous values
resolvedPath
Section titled “resolvedPath”resolvedPath:
string
Defined in: types/entity_callbacks.ts:139
Full path where this entity is being saved, with alias resolved
status
Section titled “status”status:
EntityStatus
Defined in: types/entity_callbacks.ts:159
New or existing entity
values
Section titled “values”values:
Partial<EntityValues<M>>
Defined in: types/entity_callbacks.ts:149
Values being saved