Skip to main content

@webda/coreReadme | API


Interface: EventStorePartialUpdated<T>

Event called after partial update of an object

Type parameters

T extends CoreModel = CoreModel

Properties

object_id

object_id: string

Object uuid

Source

packages/core/src/stores/store.ts:131


partial_update

partial_update: Object

Info on the update

Type declaration

addItem?

addItem?: Object

Add item to a collection

addItem.index

addItem.index: number

Index to add

addItem.property

addItem.property: string

Collection name

addItem.value

addItem.value: any

Item to add

deleteAttribute?

deleteAttribute?: string

deleteItem?

deleteItem?: Object

Delete an item from collection

deleteItem.index

deleteItem.index: number

Index in the collection

deleteItem.property

deleteItem.property: string

Collection name

increments?

increments?: Object[]

If incremental update

patch?

patch?: any

If this is a patch

Source

packages/core/src/stores/store.ts:143


store

store: Store<T, StoreParameters, StoreEvents>

Emitting store

Source

packages/core/src/stores/store.ts:135


updateDate?

updateDate?: Date

Update date

Source

packages/core/src/stores/store.ts:139