@playcademy/better-auth 0.0.16-beta.1 → 0.0.16-beta.2
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/server.js +10 -0
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -16185,6 +16185,16 @@ function createTimebackNamespace(client) {
|
|
|
16185
16185
|
const queryString = params.toString();
|
|
16186
16186
|
const endpoint = `/api/timeback/student-mastery/${studentId}?${queryString}`;
|
|
16187
16187
|
return client["request"](endpoint, "GET");
|
|
16188
|
+
},
|
|
16189
|
+
getStudentHighestGradeMastered: async (studentId, options) => {
|
|
16190
|
+
if (!isValidSubject(options.subject)) {
|
|
16191
|
+
throw new Error(`Invalid subject: ${options.subject}. Valid subjects: ${VALID_SUBJECTS.join(", ")}`);
|
|
16192
|
+
}
|
|
16193
|
+
const params = new URLSearchParams;
|
|
16194
|
+
params.set("gameId", client.gameId);
|
|
16195
|
+
params.set("subject", options.subject);
|
|
16196
|
+
const endpoint = `/api/timeback/student-highest-grade-mastered/${encodeURIComponent(studentId)}?${params.toString()}`;
|
|
16197
|
+
return client["request"](endpoint, "GET");
|
|
16188
16198
|
}
|
|
16189
16199
|
};
|
|
16190
16200
|
}
|