|
8 | 8 | import { Command, CommandPropertyValidators, CommandValidator } from '@cratis/applications/commands'; |
9 | 9 | import { useCommand, SetCommandValues, ClearCommandValues } from '@cratis/applications.react/commands'; |
10 | 10 | import { Validator } from '@cratis/applications/validation'; |
| 11 | +import { PropertyDescriptor } from '@cratis/applications/reflection'; |
11 | 12 | import { Causation } from '../Auditing/Causation'; |
12 | 13 | import { EventType } from '../Events/EventType'; |
13 | 14 | import { Identity } from '../Identities/Identity'; |
@@ -47,6 +48,18 @@ export class Append extends Command<IAppend> implements IAppend { |
47 | 48 | readonly route: string = '/api/event-store/{eventStore}/{namespace}/sequence/{eventSequenceId}'; |
48 | 49 | readonly routeTemplate: Handlebars.TemplateDelegate = routeTemplate; |
49 | 50 | readonly validation: CommandValidator = new AppendValidator(); |
| 51 | + readonly propertyDescriptors: PropertyDescriptor[] = [ |
| 52 | + new PropertyDescriptor('eventStore', String), |
| 53 | + new PropertyDescriptor('namespace', String), |
| 54 | + new PropertyDescriptor('eventSequenceId', String), |
| 55 | + new PropertyDescriptor('eventSourceId', String), |
| 56 | + new PropertyDescriptor('eventStreamType', String), |
| 57 | + new PropertyDescriptor('eventStreamId', String), |
| 58 | + new PropertyDescriptor('eventType', EventType), |
| 59 | + new PropertyDescriptor('content', Object), |
| 60 | + new PropertyDescriptor('causation', Causation), |
| 61 | + new PropertyDescriptor('causedBy', Identity), |
| 62 | + ]; |
50 | 63 |
|
51 | 64 | private _eventStore!: string; |
52 | 65 | private _namespace!: string; |
|
0 commit comments