@speakableio/core 1.0.33 → 1.0.35

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.
@@ -1035,6 +1035,24 @@ var refsScoresPractice = {
1035
1035
  };
1036
1036
 
1037
1037
  // src/domains/assignment/services/create-score.service.ts
1038
+ var _updateAssignmentGradebookStatus = async ({
1039
+ assignmentId,
1040
+ userId,
1041
+ status,
1042
+ score
1043
+ }) => {
1044
+ var _a, _b, _c;
1045
+ await ((_c = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "updateAssignmentGradebookStatus")) == null ? void 0 : _c({
1046
+ assignmentId,
1047
+ userId,
1048
+ status,
1049
+ score
1050
+ }));
1051
+ };
1052
+ var updateAssignmentGradebookStatus = withErrorHandler(
1053
+ _updateAssignmentGradebookStatus,
1054
+ "updateAssignmentGradebookStatus"
1055
+ );
1038
1056
  async function _createScore(params) {
1039
1057
  var _a, _b, _c;
1040
1058
  if (params.isAssignment) {
@@ -1049,6 +1067,12 @@ async function _createScore(params) {
1049
1067
  score: null
1050
1068
  }));
1051
1069
  await api.setDoc(ref, params.scoreData, { merge: true });
1070
+ await updateAssignmentGradebookStatus({
1071
+ assignmentId: params.activityId,
1072
+ userId: params.userId,
1073
+ status: "IN_PROGRESS",
1074
+ score: null
1075
+ });
1052
1076
  return {
1053
1077
  id: params.userId
1054
1078
  };
@@ -3695,7 +3719,7 @@ var useBaseOpenAI = ({
3695
3719
  }));
3696
3720
  } catch (error) {
3697
3721
  console.error("Error getting Gemini feedback:", error);
3698
- return {};
3722
+ throw error;
3699
3723
  }
3700
3724
  };
3701
3725
  const onGetProficiencyEstimate = async ({