@media-quest/builder 0.0.28 → 0.0.29

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.
@@ -776,6 +776,9 @@ interface SumScoreAnswer {
776
776
  }
777
777
 
778
778
  interface SumScore {
779
+ readonly sumScoreVariableId: SumScoreVariableID;
780
+ readonly name: string;
781
+ readonly description: string;
779
782
  sumScore: number;
780
783
  avg: number;
781
784
  useAvg: boolean;
@@ -2663,6 +2663,9 @@ var calculate = (sumScoreVariable, basedOnVariables, answers) => {
2663
2663
  });
2664
2664
  const avg = sumScore / includedAnswerCount;
2665
2665
  const result = {
2666
+ sumScoreVariableId: sumScoreVariable.id,
2667
+ name: sumScoreVariable.name,
2668
+ description: sumScoreVariable.description,
2666
2669
  avg,
2667
2670
  useAvg,
2668
2671
  includedAnswerCount,