@storylet-studio/runtime 0.5.0 → 0.6.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/index.d.cts CHANGED
@@ -72,6 +72,9 @@ interface OutcomeView {
72
72
  gameId: string;
73
73
  title?: string;
74
74
  purpose?: string;
75
+ /** The outcome's fields, exactly as the bundle carries them: game data
76
+ * declared by the box's `outcomeFields`, never read by the engine. */
77
+ fields?: Record<string, ScalarValue>;
75
78
  /** Evaluated against CURRENT state at the moment of the ask. */
76
79
  available: boolean;
77
80
  }
package/dist/index.d.ts CHANGED
@@ -72,6 +72,9 @@ interface OutcomeView {
72
72
  gameId: string;
73
73
  title?: string;
74
74
  purpose?: string;
75
+ /** The outcome's fields, exactly as the bundle carries them: game data
76
+ * declared by the box's `outcomeFields`, never read by the engine. */
77
+ fields?: Record<string, ScalarValue>;
75
78
  /** Evaluated against CURRENT state at the moment of the ask. */
76
79
  available: boolean;
77
80
  }
package/dist/index.js CHANGED
@@ -2054,6 +2054,7 @@ var Flow = class {
2054
2054
  gameId: effectiveGameId(o),
2055
2055
  ...o.title !== void 0 ? { title: o.title } : {},
2056
2056
  ...o.purpose !== void 0 ? { purpose: o.purpose } : {},
2057
+ ...o.fields !== void 0 ? { fields: o.fields } : {},
2057
2058
  available: this.passes(o.condition, ctx)
2058
2059
  }));
2059
2060
  }