@walkeros/core 4.2.0 → 4.2.1-next-1781538735002

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @walkeros/core
2
2
 
3
+ ## 4.2.1-next-1781538735002
4
+
5
+ ### Patch Changes
6
+
7
+ - 5cbcd23: Simulation step results gain an optional `mappingKey` field reporting
8
+ the entity-action key of the mapping rule a destination matched during
9
+ simulation. The field is additive and present only when a rule matched.
10
+
3
11
  ## 4.2.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -2907,6 +2907,15 @@ interface Result {
2907
2907
  calls: Call[];
2908
2908
  /** Execution time in ms */
2909
2909
  duration: number;
2910
+ /**
2911
+ * Entity-action key of the matched mapping rule, e.g. "product add" or
2912
+ * "product *". Populated for destination simulations when a mapping rule
2913
+ * matched; absent when no rule matched or the step has no mapping.
2914
+ * Also absent when the matched rule uses batched delivery (batching
2915
+ * reports no per-event key) and on error results, where the key is not
2916
+ * available.
2917
+ */
2918
+ mappingKey?: string;
2910
2919
  /** Error if the step threw */
2911
2920
  error?: Error;
2912
2921
  }
package/dist/index.d.ts CHANGED
@@ -2907,6 +2907,15 @@ interface Result {
2907
2907
  calls: Call[];
2908
2908
  /** Execution time in ms */
2909
2909
  duration: number;
2910
+ /**
2911
+ * Entity-action key of the matched mapping rule, e.g. "product add" or
2912
+ * "product *". Populated for destination simulations when a mapping rule
2913
+ * matched; absent when no rule matched or the step has no mapping.
2914
+ * Also absent when the matched rule uses batched delivery (batching
2915
+ * reports no per-event key) and on error results, where the key is not
2916
+ * available.
2917
+ */
2918
+ mappingKey?: string;
2910
2919
  /** Error if the step threw */
2911
2920
  error?: Error;
2912
2921
  }