@cratis/event-models 0.322.0 → 0.322.2

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.
@@ -4,4 +4,5 @@ export interface SpecificationWhenQuery {
4
4
  name: string;
5
5
  arguments: Record<string, unknown>;
6
6
  legacy?: boolean;
7
+ storedQueryId?: Guid;
7
8
  }
@@ -41,5 +41,6 @@ export interface SpecificationEditing {
41
41
  onThenResultAdded?: (sliceId: Guid, specificationId: Guid, itemId: Guid, readModelId: Guid, name: string) => void;
42
42
  onThenResultValuesSet?: (sliceId: Guid, specificationId: Guid, itemId: Guid, readModelId: Guid, name: string, values: Record<string, unknown>) => void;
43
43
  onThenResultRemoved?: (sliceId: Guid, specificationId: Guid, itemId: Guid) => void;
44
+ onThenQueryRemoved?: (sliceId: Guid, specificationId: Guid, storedQueryId: Guid) => void;
44
45
  onSpecificationItemOpened?: (item: SpecificationItemToOpen) => void;
45
46
  }
@@ -14,6 +14,7 @@ export * from './OutcomeLines';
14
14
  export * from './SpecificationDetails';
15
15
  export * from './WhenSection';
16
16
  export * from './ThenSection';
17
+ export * from './RemovableSpecificationItem';
17
18
  export * from './allowedThenKinds';
18
19
  export * from './eventKeyOf';
19
20
  export * from './SpecificationAddGroup';
@@ -1155,6 +1155,10 @@
1155
1155
  "legacy": {
1156
1156
  "type": "boolean",
1157
1157
  "description": "The query was stored on an older specification, which is shown but not edited."
1158
+ },
1159
+ "storedQueryId": {
1160
+ "$ref": "#/$defs/Guid",
1161
+ "description": "The id the older version stored the query expectation under; removing the expectation names it."
1158
1162
  }
1159
1163
  }
1160
1164
  },