@playcademy/better-auth 0.0.15 → 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.
Files changed (2) hide show
  1. package/dist/server.js +10 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/better-auth",
3
- "version": "0.0.15",
3
+ "version": "0.0.16-beta.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./server": {