@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.
- package/dist/index.native.js +25 -1
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +25 -1
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.js +25 -1
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.web.js
CHANGED
|
@@ -923,6 +923,24 @@ var refsScoresPractice = {
|
|
|
923
923
|
};
|
|
924
924
|
|
|
925
925
|
// src/domains/assignment/services/create-score.service.ts
|
|
926
|
+
var _updateAssignmentGradebookStatus = async ({
|
|
927
|
+
assignmentId,
|
|
928
|
+
userId,
|
|
929
|
+
status,
|
|
930
|
+
score
|
|
931
|
+
}) => {
|
|
932
|
+
var _a, _b, _c;
|
|
933
|
+
await ((_c = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "updateAssignmentGradebookStatus")) == null ? void 0 : _c({
|
|
934
|
+
assignmentId,
|
|
935
|
+
userId,
|
|
936
|
+
status,
|
|
937
|
+
score
|
|
938
|
+
}));
|
|
939
|
+
};
|
|
940
|
+
var updateAssignmentGradebookStatus = withErrorHandler(
|
|
941
|
+
_updateAssignmentGradebookStatus,
|
|
942
|
+
"updateAssignmentGradebookStatus"
|
|
943
|
+
);
|
|
926
944
|
async function _createScore(params) {
|
|
927
945
|
var _a, _b, _c;
|
|
928
946
|
if (params.isAssignment) {
|
|
@@ -937,6 +955,12 @@ async function _createScore(params) {
|
|
|
937
955
|
score: null
|
|
938
956
|
}));
|
|
939
957
|
await api.setDoc(ref, params.scoreData, { merge: true });
|
|
958
|
+
await updateAssignmentGradebookStatus({
|
|
959
|
+
assignmentId: params.activityId,
|
|
960
|
+
userId: params.userId,
|
|
961
|
+
status: "IN_PROGRESS",
|
|
962
|
+
score: null
|
|
963
|
+
});
|
|
940
964
|
return {
|
|
941
965
|
id: params.userId
|
|
942
966
|
};
|
|
@@ -3583,7 +3607,7 @@ var useBaseOpenAI = ({
|
|
|
3583
3607
|
}));
|
|
3584
3608
|
} catch (error) {
|
|
3585
3609
|
console.error("Error getting Gemini feedback:", error);
|
|
3586
|
-
|
|
3610
|
+
throw error;
|
|
3587
3611
|
}
|
|
3588
3612
|
};
|
|
3589
3613
|
const onGetProficiencyEstimate = async ({
|