EventSpec
EventSpec =
object
Defined in: packages/schema/src/events/event-helpers.ts:77
An event as declared; buildEventModels checks it against the resource.
Properties
Section titled “Properties”becomes?
Section titled “becomes?”
optionalbecomes?:string
Defined in: packages/schema/src/events/event-helpers.ts:87
A filter that turns true with the change.
changed?
Section titled “changed?”
optionalchanged?:string[]
Defined in: packages/schema/src/events/event-helpers.ts:89
The fields of which one must change, by name.
optionalfrom?:string
Defined in: packages/schema/src/events/event-helpers.ts:85
A filter on the record before the change.
match?
Section titled “match?”
optionalmatch?:EventMatch<any>
Defined in: packages/schema/src/events/event-helpers.ts:91
A code predicate the change must meet.
name:
string
Defined in: packages/schema/src/events/event-helpers.ts:79
The event’s name within the resource, such as created; the event is <resource>.<name>.
operations
Section titled “operations”operations:
EventOperation[]
Defined in: packages/schema/src/events/event-helpers.ts:81
The operations that may raise it.
softDeleteOnly?
Section titled “softDeleteOnly?”
optionalsoftDeleteOnly?:true
Defined in: packages/schema/src/events/event-helpers.ts:93
Kept only when the resource soft deletes: the undeleted of e.crud().
optionalwhen?:string
Defined in: packages/schema/src/events/event-helpers.ts:83
A filter on the record after the change.