@cratis/event-models 0.301.0 → 0.302.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -212,6 +212,7 @@ export interface EventModelMessages {
212
212
  addResult: string;
213
213
  removeItem: string;
214
214
  noEvents: string;
215
+ eventsInAnyOrder: string;
215
216
  redeliverGivenEvent: string;
216
217
  redelivered: string;
217
218
  redeliveredTo: string;
@@ -29,6 +29,7 @@ export interface SliceSpecification {
29
29
  thenReadModel?: SpecificationReadModel;
30
30
  thenReadModels?: SpecificationReadModel[];
31
31
  thenNoEvents?: boolean;
32
+ thenEventsInAnyOrder?: boolean;
32
33
  thenErrors: SpecificationError[];
33
34
  collapsed: boolean;
34
35
  lastRunOutcome?: SpecificationRunOutcome;
@@ -26,6 +26,8 @@ export interface SpecificationEditing {
26
26
  onThenErrorRemoved?: (sliceId: Guid, specificationId: Guid, itemId: Guid) => void;
27
27
  onThenNoEventsExpected?: (sliceId: Guid, specificationId: Guid) => void;
28
28
  onThenNoEventsRemoved?: (sliceId: Guid, specificationId: Guid) => void;
29
+ onThenEventsInAnyOrderExpected?: (sliceId: Guid, specificationId: Guid) => void;
30
+ onThenEventsInAnyOrderRemoved?: (sliceId: Guid, specificationId: Guid) => void;
29
31
  onWhenEventRedelivered?: (sliceId: Guid, specificationId: Guid, givenEventId: Guid) => void;
30
32
  onWhenRedeliveryRemoved?: (sliceId: Guid, specificationId: Guid) => void;
31
33
  onWhenEventValuesSet?: (sliceId: Guid, specificationId: Guid, eventId: Guid, name: string, values: Record<string, unknown>, eventSourceId?: string) => void;
@@ -1026,6 +1026,10 @@
1026
1026
  "type": "boolean",
1027
1027
  "description": "The specification expects nothing to be appended. An empty Then means the outcome is not authored yet, so this is stated on its own."
1028
1028
  },
1029
+ "thenEventsInAnyOrder": {
1030
+ "type": "boolean",
1031
+ "description": "The expected events are matched to the appended ones without regard to the order they were appended in."
1032
+ },
1029
1033
  "caller": {
1030
1034
  "$ref": "#/$defs/SpecificationCaller"
1031
1035
  },