@cratis/event-models 0.301.1 → 0.303.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.
- package/dist/Messages/EventModelMessages.d.ts +1 -0
- package/dist/Model/SliceSpecification.d.ts +1 -0
- package/dist/Specifications/SpecificationEditing.d.ts +2 -0
- package/dist/event-model-document.schema.json +4 -0
- package/dist/index.js +2483 -2465
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -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
|
},
|