@studious-lms/server 1.2.46 → 1.2.47
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/middleware/auth.d.ts.map +1 -1
- package/dist/middleware/auth.js +3 -2
- package/dist/middleware/auth.js.map +1 -1
- package/dist/routers/_app.d.ts +90 -26
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/assignment.d.ts +10 -0
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +18 -3
- package/dist/routers/assignment.js.map +1 -1
- package/dist/routers/conversation.d.ts +1 -0
- package/dist/routers/conversation.d.ts.map +1 -1
- package/dist/routers/labChat.d.ts +1 -0
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/labChat.js +5 -321
- package/dist/routers/labChat.js.map +1 -1
- package/dist/routers/message.d.ts +1 -0
- package/dist/routers/message.d.ts.map +1 -1
- package/dist/routers/message.js +3 -2
- package/dist/routers/message.js.map +1 -1
- package/dist/routers/newtonChat.d.ts.map +1 -1
- package/dist/routers/newtonChat.js +3 -179
- package/dist/routers/newtonChat.js.map +1 -1
- package/dist/routers/section.d.ts +10 -0
- package/dist/routers/section.d.ts.map +1 -1
- package/dist/routers/section.js +21 -3
- package/dist/routers/section.js.map +1 -1
- package/dist/routers/worksheet.d.ts +22 -13
- package/dist/routers/worksheet.d.ts.map +1 -1
- package/dist/routers/worksheet.js +16 -3
- package/dist/routers/worksheet.js.map +1 -1
- package/dist/server/pipelines/aiLabChat.d.ts +12 -1
- package/dist/server/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/server/pipelines/aiLabChat.js +388 -15
- package/dist/server/pipelines/aiLabChat.js.map +1 -1
- package/dist/server/pipelines/aiNewtonChat.d.ts +30 -0
- package/dist/server/pipelines/aiNewtonChat.d.ts.map +1 -0
- package/dist/server/pipelines/aiNewtonChat.js +280 -0
- package/dist/server/pipelines/aiNewtonChat.js.map +1 -0
- package/dist/server/pipelines/gradeWorksheet.d.ts +14 -1
- package/dist/server/pipelines/gradeWorksheet.d.ts.map +1 -1
- package/dist/server/pipelines/gradeWorksheet.js +6 -5
- package/dist/server/pipelines/gradeWorksheet.js.map +1 -1
- package/dist/utils/inference.d.ts +3 -1
- package/dist/utils/inference.d.ts.map +1 -1
- package/dist/utils/inference.js +34 -4
- package/dist/utils/inference.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +2 -0
- package/src/middleware/auth.ts +1 -0
- package/src/routers/assignment.ts +17 -2
- package/src/routers/labChat.ts +3 -366
- package/src/routers/message.ts +1 -1
- package/src/routers/newtonChat.ts +1 -222
- package/src/routers/section.ts +21 -1
- package/src/routers/worksheet.ts +17 -1
- package/src/server/pipelines/aiLabChat.ts +434 -19
- package/src/server/pipelines/aiNewtonChat.ts +338 -0
- package/src/server/pipelines/gradeWorksheet.ts +3 -4
- package/src/utils/inference.ts +40 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"/","sources":["middleware/auth.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,GAAI,GAAG,GAAG;;;;;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"/","sources":["middleware/auth.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,oBAAoB,GAAI,GAAG,GAAG;;;;;CAyL1C,CAAC"}
|
package/dist/middleware/auth.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="179cf7b0-7fb3-5700-99ca-b31d8db75b01")}catch(e){}}();
|
|
3
3
|
import { TRPCError } from '@trpc/server';
|
|
4
4
|
import { prisma } from '../lib/prisma.js';
|
|
5
5
|
import * as Sentry from "@sentry/node";
|
|
@@ -47,6 +47,7 @@ export const createAuthMiddleware = (t) => {
|
|
|
47
47
|
}
|
|
48
48
|
catch (error) {
|
|
49
49
|
Sentry.captureException(error);
|
|
50
|
+
console.error(error);
|
|
50
51
|
throw new TRPCError({
|
|
51
52
|
code: 'INTERNAL_SERVER_ERROR',
|
|
52
53
|
message: 'Internal server error',
|
|
@@ -167,4 +168,4 @@ export const createAuthMiddleware = (t) => {
|
|
|
167
168
|
};
|
|
168
169
|
};
|
|
169
170
|
//# sourceMappingURL=auth.js.map
|
|
170
|
-
//# debugId=
|
|
171
|
+
//# debugId=179cf7b0-7fb3-5700-99ca-b31d8db75b01
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sources":["middleware/auth.ts"],"sourceRoot":"/","sourcesContent":["import { TRPCError } from '@trpc/server';\nimport { prisma } from '../lib/prisma.js';\nimport type { MiddlewareContext } from '../types/trpc.js';\nimport * as Sentry from \"@sentry/node\";\n\nexport const createAuthMiddleware = (t: any) => {\n\n // Auth middleware\n const isAuthed = t.middleware(async ({ next, ctx }: MiddlewareContext) => {\n const startTime = Date.now();\n // Get user from request headers\n const userHeader = ctx.req.headers['x-user'];\n\n if (!userHeader) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated - no token found',\n });\n }\n\n try {\n const token = typeof userHeader === 'string' ? userHeader : userHeader[0];\n\n // Find user by session token\n const user = await prisma.user.findFirst({\n where: {\n sessions: {\n some: {\n id: token\n }\n }\n },\n select: {\n id: true,\n username: true,\n // institutionId: true,\n }\n });\n\n if (!user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Invalid or expired session',\n });\n }\n\n return next({\n ctx: {\n ...ctx,\n user,\n },\n });\n } catch (error) {\n Sentry.captureException(error);\n throw new TRPCError({\n code: 'INTERNAL_SERVER_ERROR',\n message: 'Internal server error',\n });\n }\n });\n\n // Add computed flags middleware\n const addComputedFlags = t.middleware(async ({ next, ctx }: MiddlewareContext) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated',\n });\n }\n\n // Get all classes where user is a teacher\n const teacherClasses = await prisma.class.findMany({\n where: {\n teachers: {\n some: {\n id: ctx.user.id\n }\n }\n },\n select: {\n id: true\n }\n });\n\n return next({\n ctx: {\n ...ctx,\n isTeacher: teacherClasses.length > 0,\n teacherClassIds: teacherClasses.map((c: { id: string }) => c.id)\n }\n });\n });\n\n // Student middleware\n const isMemberInClass = t.middleware(async ({ next, ctx, input }: MiddlewareContext) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated',\n });\n }\n\n const classId = (input as { classId: string })?.classId;\n\n if (!classId) {\n throw new TRPCError({\n code: 'BAD_REQUEST',\n message: 'classId is required',\n });\n }\n\n const isMember = await prisma.class.findFirst({\n where: {\n id: classId,\n OR: [\n {\n students: {\n some: {\n id: ctx.user.id\n }\n }\n },\n {\n teachers: {\n some: {\n id: ctx.user.id\n }\n }\n }\n ]\n }\n });\n\n if (!isMember) {\n throw new TRPCError({\n code: 'FORBIDDEN',\n message: 'Not a member in this class',\n });\n }\n\n return next();\n });\n\n // Teacher middleware\n const isTeacherInClass = t.middleware(async ({ next, ctx, input }: MiddlewareContext) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated',\n });\n }\n\n const classId = input.classId;\n if (!classId) {\n throw new TRPCError({\n code: 'BAD_REQUEST',\n message: 'classId is required',\n });\n }\n\n const isTeacher = await prisma.class.findFirst({\n where: {\n id: classId,\n teachers: {\n some: {\n id: ctx.user.id\n }\n }\n }\n });\n\n\n\n if (!isTeacher) {\n throw new TRPCError({\n code: 'FORBIDDEN',\n message: 'Not a teacher in this class',\n });\n }\n\n return next();\n });\n\n return {\n isAuthed,\n addComputedFlags,\n isMemberInClass,\n isTeacherInClass,\n };\n}; "],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAM,EAAE,EAAE;IAE7C,kBAAkB;IAClB,MAAM,QAAQ,GAAG,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAqB,EAAE,EAAE;QACvE,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,gCAAgC;QAChC,MAAM,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE7C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,SAAS,CAAC;gBAClB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,oCAAoC;aAC9C,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAE1E,6BAA6B;YAC7B,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC;gBACvC,KAAK,EAAE;oBACL,QAAQ,EAAE;wBACR,IAAI,EAAE;4BACJ,EAAE,EAAE,KAAK;yBACV;qBACF;iBACF;gBACD,MAAM,EAAE;oBACN,EAAE,EAAE,IAAI;oBACR,QAAQ,EAAE,IAAI;oBACd,uBAAuB;iBACxB;aACF,CAAC,CAAC;YAEH,IAAI,CAAC,IAAI,EAAE,CAAC;gBACV,MAAM,IA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AAC;YACd,MAAM,IAAI,SAAS,CAAC;gBAClB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,mBAAmB;aAC7B,CAAC,CAAC;QACL,CAAC;QAED,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,MAAM,IAAI,SAAS,CAAC;gBAClB,IAAI,EAAE,aAAa;gBACnB,OAAO,EAAE,qBAAqB;aAC/B,CAAC,CAAC;QACL,CAAC;QAED,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC;YAC7C,KAAK,EAAE;gBACL,EAAE,EAAE,OAAO;gBACX,QAAQ,EAAE;oBACR,IAAI,EAAE;wBACJ,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;qBAChB;iBACF;aACF;SACF,CAAC,CAAC;QAIH,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,SAAS,CAAC;gBAClB,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,6BAA6B;aACvC,CAAC,CAAC;QACL,CAAC;QAED,OAAO,IAAI,EAAE,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,QAAQ;QACR,gBAAgB;QAChB,eAAe;QACf,gBAAgB;KACjB,CAAC;AACJ,CAAC,CAAC","debug_id":"
|
|
1
|
+
{"version":3,"file":"auth.js","sources":["middleware/auth.ts"],"sourceRoot":"/","sourcesContent":["import { TRPCError } from '@trpc/server';\nimport { prisma } from '../lib/prisma.js';\nimport type { MiddlewareContext } from '../types/trpc.js';\nimport * as Sentry from \"@sentry/node\";\n\nexport const createAuthMiddleware = (t: any) => {\n\n // Auth middleware\n const isAuthed = t.middleware(async ({ next, ctx }: MiddlewareContext) => {\n const startTime = Date.now();\n // Get user from request headers\n const userHeader = ctx.req.headers['x-user'];\n\n if (!userHeader) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated - no token found',\n });\n }\n\n try {\n const token = typeof userHeader === 'string' ? userHeader : userHeader[0];\n\n // Find user by session token\n const user = await prisma.user.findFirst({\n where: {\n sessions: {\n some: {\n id: token\n }\n }\n },\n select: {\n id: true,\n username: true,\n // institutionId: true,\n }\n });\n\n if (!user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Invalid or expired session',\n });\n }\n\n return next({\n ctx: {\n ...ctx,\n user,\n },\n });\n } catch (error) {\n Sentry.captureException(error);\n console.error(error);\n throw new TRPCError({\n code: 'INTERNAL_SERVER_ERROR',\n message: 'Internal server error',\n });\n }\n });\n\n // Add computed flags middleware\n const addComputedFlags = t.middleware(async ({ next, ctx }: MiddlewareContext) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated',\n });\n }\n\n // Get all classes where user is a teacher\n const teacherClasses = await prisma.class.findMany({\n where: {\n teachers: {\n some: {\n id: ctx.user.id\n }\n }\n },\n select: {\n id: true\n }\n });\n\n return next({\n ctx: {\n ...ctx,\n isTeacher: teacherClasses.length > 0,\n teacherClassIds: teacherClasses.map((c: { id: string }) => c.id)\n }\n });\n });\n\n // Student middleware\n const isMemberInClass = t.middleware(async ({ next, ctx, input }: MiddlewareContext) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated',\n });\n }\n\n const classId = (input as { classId: string })?.classId;\n\n if (!classId) {\n throw new TRPCError({\n code: 'BAD_REQUEST',\n message: 'classId is required',\n });\n }\n\n const isMember = await prisma.class.findFirst({\n where: {\n id: classId,\n OR: [\n {\n students: {\n some: {\n id: ctx.user.id\n }\n }\n },\n {\n teachers: {\n some: {\n id: ctx.user.id\n }\n }\n }\n ]\n }\n });\n\n if (!isMember) {\n throw new TRPCError({\n code: 'FORBIDDEN',\n message: 'Not a member in this class',\n });\n }\n\n return next();\n });\n\n // Teacher middleware\n const isTeacherInClass = t.middleware(async ({ next, ctx, input }: MiddlewareContext) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: 'UNAUTHORIZED',\n message: 'Not authenticated',\n });\n }\n\n const classId = input.classId;\n if (!classId) {\n throw new TRPCError({\n code: 'BAD_REQUEST',\n message: 'classId is required',\n });\n }\n\n const isTeacher = await prisma.class.findFirst({\n where: {\n id: classId,\n teachers: {\n some: {\n id: ctx.user.id\n }\n }\n }\n });\n\n\n\n if (!isTeacher) {\n throw new TRPCError({\n code: 'FORBIDDEN',\n message: 'Not a teacher in this class',\n });\n }\n\n return next();\n });\n\n return {\n isAuthed,\n addComputedFlags,\n isMemberInClass,\n isTeacherInClass,\n };\n}; "],"names":[],"mappings":";;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AAEvC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAM,EAAE,EAAE;IAE7C,kBAAkB;IAClB,MAAM,QAAQ,GAAG,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,EAAqB,EAAE,EAAE;QACvE,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,gCAAgC;QAChC,MAAM,UAAU,GAAG,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE7C,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,MAAM,IAAI,SAAS,CAAC;gBAClB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,oCAAoC;aAC9C,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAAC;YACH,MAAM,KAAK,GAAG,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAE1E,6BAA6B;YAC7B,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,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278,6 +1278,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1278
1278
|
} | null;
|
|
1279
1279
|
meta: object;
|
|
1280
1280
|
}>;
|
|
1281
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
1282
|
+
input: {
|
|
1283
|
+
[x: string]: unknown;
|
|
1284
|
+
classId: string;
|
|
1285
|
+
id: string;
|
|
1286
|
+
};
|
|
1287
|
+
output: boolean;
|
|
1288
|
+
meta: object;
|
|
1289
|
+
}>;
|
|
1281
1290
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
1282
1291
|
input: {
|
|
1283
1292
|
[x: string]: unknown;
|
|
@@ -1321,6 +1330,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1321
1330
|
dueDate: string;
|
|
1322
1331
|
instructions: string;
|
|
1323
1332
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
1333
|
+
id?: string | undefined;
|
|
1324
1334
|
files?: {
|
|
1325
1335
|
type: string;
|
|
1326
1336
|
name: string;
|
|
@@ -3073,11 +3083,21 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3073
3083
|
};
|
|
3074
3084
|
transformer: false;
|
|
3075
3085
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3086
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
3087
|
+
input: {
|
|
3088
|
+
[x: string]: unknown;
|
|
3089
|
+
classId: string;
|
|
3090
|
+
id: string;
|
|
3091
|
+
};
|
|
3092
|
+
output: boolean;
|
|
3093
|
+
meta: object;
|
|
3094
|
+
}>;
|
|
3076
3095
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3077
3096
|
input: {
|
|
3078
3097
|
[x: string]: unknown;
|
|
3079
3098
|
classId: string;
|
|
3080
3099
|
name: string;
|
|
3100
|
+
id?: string | undefined;
|
|
3081
3101
|
color?: string | undefined;
|
|
3082
3102
|
};
|
|
3083
3103
|
output: {
|
|
@@ -4351,6 +4371,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4351
4371
|
};
|
|
4352
4372
|
} & {
|
|
4353
4373
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
4374
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4354
4375
|
id: string;
|
|
4355
4376
|
content: string;
|
|
4356
4377
|
createdAt: Date;
|
|
@@ -4474,6 +4495,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4474
4495
|
name: string;
|
|
4475
4496
|
type: string;
|
|
4476
4497
|
}[];
|
|
4498
|
+
meta: Record<string, any>;
|
|
4477
4499
|
mentions: {
|
|
4478
4500
|
user: {
|
|
4479
4501
|
id: string;
|
|
@@ -4737,6 +4759,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4737
4759
|
};
|
|
4738
4760
|
} & {
|
|
4739
4761
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
4762
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4740
4763
|
id: string;
|
|
4741
4764
|
content: string;
|
|
4742
4765
|
createdAt: Date;
|
|
@@ -4952,9 +4975,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4952
4975
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
4953
4976
|
updatedAt: Date;
|
|
4954
4977
|
question: string;
|
|
4978
|
+
points: number;
|
|
4955
4979
|
worksheetId: string;
|
|
4956
4980
|
answer: string;
|
|
4957
|
-
points: number;
|
|
4958
4981
|
}[];
|
|
4959
4982
|
} & {
|
|
4960
4983
|
id: string;
|
|
@@ -4965,6 +4988,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4965
4988
|
};
|
|
4966
4989
|
meta: object;
|
|
4967
4990
|
}>;
|
|
4991
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
4992
|
+
input: {
|
|
4993
|
+
[x: string]: unknown;
|
|
4994
|
+
classId: string;
|
|
4995
|
+
id: string;
|
|
4996
|
+
};
|
|
4997
|
+
output: boolean;
|
|
4998
|
+
meta: object;
|
|
4999
|
+
}>;
|
|
4968
5000
|
listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
|
|
4969
5001
|
input: {
|
|
4970
5002
|
classId: string;
|
|
@@ -5042,9 +5074,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5042
5074
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5043
5075
|
updatedAt: Date;
|
|
5044
5076
|
question: string;
|
|
5077
|
+
points: number;
|
|
5045
5078
|
worksheetId: string;
|
|
5046
5079
|
answer: string;
|
|
5047
|
-
points: number;
|
|
5048
5080
|
};
|
|
5049
5081
|
meta: object;
|
|
5050
5082
|
}>;
|
|
@@ -5062,14 +5094,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5062
5094
|
}>;
|
|
5063
5095
|
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
5064
5096
|
input: {
|
|
5065
|
-
worksheetId: string;
|
|
5066
5097
|
questionId: string;
|
|
5098
|
+
worksheetId: string;
|
|
5067
5099
|
options?: any;
|
|
5068
5100
|
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
5069
5101
|
markScheme?: any;
|
|
5070
5102
|
question?: string | undefined;
|
|
5071
|
-
answer?: string | undefined;
|
|
5072
5103
|
points?: number | undefined;
|
|
5104
|
+
answer?: string | undefined;
|
|
5073
5105
|
};
|
|
5074
5106
|
output: {
|
|
5075
5107
|
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
@@ -5080,16 +5112,16 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5080
5112
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5081
5113
|
updatedAt: Date;
|
|
5082
5114
|
question: string;
|
|
5115
|
+
points: number;
|
|
5083
5116
|
worksheetId: string;
|
|
5084
5117
|
answer: string;
|
|
5085
|
-
points: number;
|
|
5086
5118
|
};
|
|
5087
5119
|
meta: object;
|
|
5088
5120
|
}>;
|
|
5089
5121
|
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
5090
5122
|
input: {
|
|
5091
|
-
worksheetId: string;
|
|
5092
5123
|
questionId: string;
|
|
5124
|
+
worksheetId: string;
|
|
5093
5125
|
};
|
|
5094
5126
|
output: {
|
|
5095
5127
|
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
@@ -5100,9 +5132,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5100
5132
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5101
5133
|
updatedAt: Date;
|
|
5102
5134
|
question: string;
|
|
5135
|
+
points: number;
|
|
5103
5136
|
worksheetId: string;
|
|
5104
5137
|
answer: string;
|
|
5105
|
-
points: number;
|
|
5106
5138
|
};
|
|
5107
5139
|
meta: object;
|
|
5108
5140
|
}>;
|
|
@@ -5123,11 +5155,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5123
5155
|
studentId: string;
|
|
5124
5156
|
createdAt: Date;
|
|
5125
5157
|
updatedAt: Date | null;
|
|
5126
|
-
points: number;
|
|
5127
5158
|
questionId: string;
|
|
5128
5159
|
response: string;
|
|
5129
5160
|
isCorrect: boolean;
|
|
5130
5161
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5162
|
+
points: number;
|
|
5131
5163
|
studentWorksheetResponseId: string | null;
|
|
5132
5164
|
})[];
|
|
5133
5165
|
} & {
|
|
@@ -5144,9 +5176,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5144
5176
|
}>;
|
|
5145
5177
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
5146
5178
|
input: {
|
|
5147
|
-
worksheetResponseId: string;
|
|
5148
5179
|
questionId: string;
|
|
5149
5180
|
response: string;
|
|
5181
|
+
worksheetResponseId: string;
|
|
5150
5182
|
};
|
|
5151
5183
|
output: ({
|
|
5152
5184
|
responses: {
|
|
@@ -5156,11 +5188,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5156
5188
|
studentId: string;
|
|
5157
5189
|
createdAt: Date;
|
|
5158
5190
|
updatedAt: Date | null;
|
|
5159
|
-
points: number;
|
|
5160
5191
|
questionId: string;
|
|
5161
5192
|
response: string;
|
|
5162
5193
|
isCorrect: boolean;
|
|
5163
5194
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5195
|
+
points: number;
|
|
5164
5196
|
studentWorksheetResponseId: string | null;
|
|
5165
5197
|
}[];
|
|
5166
5198
|
} & {
|
|
@@ -5177,8 +5209,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5177
5209
|
}>;
|
|
5178
5210
|
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
5179
5211
|
input: {
|
|
5180
|
-
worksheetResponseId: string;
|
|
5181
5212
|
questionId: string;
|
|
5213
|
+
worksheetResponseId: string;
|
|
5182
5214
|
};
|
|
5183
5215
|
output: {
|
|
5184
5216
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
@@ -5187,11 +5219,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5187
5219
|
studentId: string;
|
|
5188
5220
|
createdAt: Date;
|
|
5189
5221
|
updatedAt: Date | null;
|
|
5190
|
-
points: number;
|
|
5191
5222
|
questionId: string;
|
|
5192
5223
|
response: string;
|
|
5193
5224
|
isCorrect: boolean;
|
|
5194
5225
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
5226
|
+
points: number;
|
|
5195
5227
|
studentWorksheetResponseId: string | null;
|
|
5196
5228
|
};
|
|
5197
5229
|
meta: object;
|
|
@@ -5202,9 +5234,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5202
5234
|
isCorrect: boolean;
|
|
5203
5235
|
studentWorksheetResponseId: string;
|
|
5204
5236
|
feedback?: string | undefined;
|
|
5205
|
-
points?: number | undefined;
|
|
5206
5237
|
response?: string | undefined;
|
|
5207
5238
|
markschemeState?: any;
|
|
5239
|
+
points?: number | undefined;
|
|
5208
5240
|
responseId?: string | undefined;
|
|
5209
5241
|
};
|
|
5210
5242
|
output: any;
|
|
@@ -6662,6 +6694,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6662
6694
|
} | null;
|
|
6663
6695
|
meta: object;
|
|
6664
6696
|
}>;
|
|
6697
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
6698
|
+
input: {
|
|
6699
|
+
[x: string]: unknown;
|
|
6700
|
+
classId: string;
|
|
6701
|
+
id: string;
|
|
6702
|
+
};
|
|
6703
|
+
output: boolean;
|
|
6704
|
+
meta: object;
|
|
6705
|
+
}>;
|
|
6665
6706
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
6666
6707
|
input: {
|
|
6667
6708
|
[x: string]: unknown;
|
|
@@ -6705,6 +6746,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6705
6746
|
dueDate: string;
|
|
6706
6747
|
instructions: string;
|
|
6707
6748
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
6749
|
+
id?: string | undefined;
|
|
6708
6750
|
files?: {
|
|
6709
6751
|
type: string;
|
|
6710
6752
|
name: string;
|
|
@@ -8457,11 +8499,21 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
8457
8499
|
};
|
|
8458
8500
|
transformer: false;
|
|
8459
8501
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
8502
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
8503
|
+
input: {
|
|
8504
|
+
[x: string]: unknown;
|
|
8505
|
+
classId: string;
|
|
8506
|
+
id: string;
|
|
8507
|
+
};
|
|
8508
|
+
output: boolean;
|
|
8509
|
+
meta: object;
|
|
8510
|
+
}>;
|
|
8460
8511
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8461
8512
|
input: {
|
|
8462
8513
|
[x: string]: unknown;
|
|
8463
8514
|
classId: string;
|
|
8464
8515
|
name: string;
|
|
8516
|
+
id?: string | undefined;
|
|
8465
8517
|
color?: string | undefined;
|
|
8466
8518
|
};
|
|
8467
8519
|
output: {
|
|
@@ -9735,6 +9787,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9735
9787
|
};
|
|
9736
9788
|
} & {
|
|
9737
9789
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
9790
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
9738
9791
|
id: string;
|
|
9739
9792
|
content: string;
|
|
9740
9793
|
createdAt: Date;
|
|
@@ -9858,6 +9911,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
9858
9911
|
name: string;
|
|
9859
9912
|
type: string;
|
|
9860
9913
|
}[];
|
|
9914
|
+
meta: Record<string, any>;
|
|
9861
9915
|
mentions: {
|
|
9862
9916
|
user: {
|
|
9863
9917
|
id: string;
|
|
@@ -10121,6 +10175,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10121
10175
|
};
|
|
10122
10176
|
} & {
|
|
10123
10177
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
10178
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10124
10179
|
id: string;
|
|
10125
10180
|
content: string;
|
|
10126
10181
|
createdAt: Date;
|
|
@@ -10336,9 +10391,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10336
10391
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10337
10392
|
updatedAt: Date;
|
|
10338
10393
|
question: string;
|
|
10394
|
+
points: number;
|
|
10339
10395
|
worksheetId: string;
|
|
10340
10396
|
answer: string;
|
|
10341
|
-
points: number;
|
|
10342
10397
|
}[];
|
|
10343
10398
|
} & {
|
|
10344
10399
|
id: string;
|
|
@@ -10349,6 +10404,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10349
10404
|
};
|
|
10350
10405
|
meta: object;
|
|
10351
10406
|
}>;
|
|
10407
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
10408
|
+
input: {
|
|
10409
|
+
[x: string]: unknown;
|
|
10410
|
+
classId: string;
|
|
10411
|
+
id: string;
|
|
10412
|
+
};
|
|
10413
|
+
output: boolean;
|
|
10414
|
+
meta: object;
|
|
10415
|
+
}>;
|
|
10352
10416
|
listWorksheets: import("@trpc/server").TRPCQueryProcedure<{
|
|
10353
10417
|
input: {
|
|
10354
10418
|
classId: string;
|
|
@@ -10426,9 +10490,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10426
10490
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10427
10491
|
updatedAt: Date;
|
|
10428
10492
|
question: string;
|
|
10493
|
+
points: number;
|
|
10429
10494
|
worksheetId: string;
|
|
10430
10495
|
answer: string;
|
|
10431
|
-
points: number;
|
|
10432
10496
|
};
|
|
10433
10497
|
meta: object;
|
|
10434
10498
|
}>;
|
|
@@ -10446,14 +10510,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10446
10510
|
}>;
|
|
10447
10511
|
updateQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10448
10512
|
input: {
|
|
10449
|
-
worksheetId: string;
|
|
10450
10513
|
questionId: string;
|
|
10514
|
+
worksheetId: string;
|
|
10451
10515
|
options?: any;
|
|
10452
10516
|
type?: "ESSAY" | "MULTIPLE_CHOICE" | "TRUE_FALSE" | "SHORT_ANSWER" | "LONG_ANSWER" | "MATH_EXPRESSION" | undefined;
|
|
10453
10517
|
markScheme?: any;
|
|
10454
10518
|
question?: string | undefined;
|
|
10455
|
-
answer?: string | undefined;
|
|
10456
10519
|
points?: number | undefined;
|
|
10520
|
+
answer?: string | undefined;
|
|
10457
10521
|
};
|
|
10458
10522
|
output: {
|
|
10459
10523
|
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
@@ -10464,16 +10528,16 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10464
10528
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10465
10529
|
updatedAt: Date;
|
|
10466
10530
|
question: string;
|
|
10531
|
+
points: number;
|
|
10467
10532
|
worksheetId: string;
|
|
10468
10533
|
answer: string;
|
|
10469
|
-
points: number;
|
|
10470
10534
|
};
|
|
10471
10535
|
meta: object;
|
|
10472
10536
|
}>;
|
|
10473
10537
|
deleteQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10474
10538
|
input: {
|
|
10475
|
-
worksheetId: string;
|
|
10476
10539
|
questionId: string;
|
|
10540
|
+
worksheetId: string;
|
|
10477
10541
|
};
|
|
10478
10542
|
output: {
|
|
10479
10543
|
options: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
@@ -10484,9 +10548,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10484
10548
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10485
10549
|
updatedAt: Date;
|
|
10486
10550
|
question: string;
|
|
10551
|
+
points: number;
|
|
10487
10552
|
worksheetId: string;
|
|
10488
10553
|
answer: string;
|
|
10489
|
-
points: number;
|
|
10490
10554
|
};
|
|
10491
10555
|
meta: object;
|
|
10492
10556
|
}>;
|
|
@@ -10507,11 +10571,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10507
10571
|
studentId: string;
|
|
10508
10572
|
createdAt: Date;
|
|
10509
10573
|
updatedAt: Date | null;
|
|
10510
|
-
points: number;
|
|
10511
10574
|
questionId: string;
|
|
10512
10575
|
response: string;
|
|
10513
10576
|
isCorrect: boolean;
|
|
10514
10577
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10578
|
+
points: number;
|
|
10515
10579
|
studentWorksheetResponseId: string | null;
|
|
10516
10580
|
})[];
|
|
10517
10581
|
} & {
|
|
@@ -10528,9 +10592,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10528
10592
|
}>;
|
|
10529
10593
|
answerQuestion: import("@trpc/server").TRPCMutationProcedure<{
|
|
10530
10594
|
input: {
|
|
10531
|
-
worksheetResponseId: string;
|
|
10532
10595
|
questionId: string;
|
|
10533
10596
|
response: string;
|
|
10597
|
+
worksheetResponseId: string;
|
|
10534
10598
|
};
|
|
10535
10599
|
output: ({
|
|
10536
10600
|
responses: {
|
|
@@ -10540,11 +10604,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10540
10604
|
studentId: string;
|
|
10541
10605
|
createdAt: Date;
|
|
10542
10606
|
updatedAt: Date | null;
|
|
10543
|
-
points: number;
|
|
10544
10607
|
questionId: string;
|
|
10545
10608
|
response: string;
|
|
10546
10609
|
isCorrect: boolean;
|
|
10547
10610
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10611
|
+
points: number;
|
|
10548
10612
|
studentWorksheetResponseId: string | null;
|
|
10549
10613
|
}[];
|
|
10550
10614
|
} & {
|
|
@@ -10561,8 +10625,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10561
10625
|
}>;
|
|
10562
10626
|
cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
|
|
10563
10627
|
input: {
|
|
10564
|
-
worksheetResponseId: string;
|
|
10565
10628
|
questionId: string;
|
|
10629
|
+
worksheetResponseId: string;
|
|
10566
10630
|
};
|
|
10567
10631
|
output: {
|
|
10568
10632
|
status: import(".prisma/client").$Enums.GenerationStatus | null;
|
|
@@ -10571,11 +10635,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10571
10635
|
studentId: string;
|
|
10572
10636
|
createdAt: Date;
|
|
10573
10637
|
updatedAt: Date | null;
|
|
10574
|
-
points: number;
|
|
10575
10638
|
questionId: string;
|
|
10576
10639
|
response: string;
|
|
10577
10640
|
isCorrect: boolean;
|
|
10578
10641
|
markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
10642
|
+
points: number;
|
|
10579
10643
|
studentWorksheetResponseId: string | null;
|
|
10580
10644
|
};
|
|
10581
10645
|
meta: object;
|
|
@@ -10586,9 +10650,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
10586
10650
|
isCorrect: boolean;
|
|
10587
10651
|
studentWorksheetResponseId: string;
|
|
10588
10652
|
feedback?: string | undefined;
|
|
10589
|
-
points?: number | undefined;
|
|
10590
10653
|
response?: string | undefined;
|
|
10591
10654
|
markschemeState?: any;
|
|
10655
|
+
points?: number | undefined;
|
|
10592
10656
|
responseId?: string | undefined;
|
|
10593
10657
|
};
|
|
10594
10658
|
output: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.d.ts","sourceRoot":"/","sources":["routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAiB1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
|
|
@@ -88,6 +88,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
88
88
|
} | null;
|
|
89
89
|
meta: object;
|
|
90
90
|
}>;
|
|
91
|
+
exists: import("@trpc/server").TRPCQueryProcedure<{
|
|
92
|
+
input: {
|
|
93
|
+
[x: string]: unknown;
|
|
94
|
+
classId: string;
|
|
95
|
+
id: string;
|
|
96
|
+
};
|
|
97
|
+
output: boolean;
|
|
98
|
+
meta: object;
|
|
99
|
+
}>;
|
|
91
100
|
move: import("@trpc/server").TRPCMutationProcedure<{
|
|
92
101
|
input: {
|
|
93
102
|
[x: string]: unknown;
|
|
@@ -131,6 +140,7 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
131
140
|
dueDate: string;
|
|
132
141
|
instructions: string;
|
|
133
142
|
type?: "LAB" | "HOMEWORK" | "QUIZ" | "TEST" | "PROJECT" | "ESSAY" | "DISCUSSION" | "PRESENTATION" | "OTHER" | undefined;
|
|
143
|
+
id?: string | undefined;
|
|
134
144
|
files?: {
|
|
135
145
|
type: string;
|
|
136
146
|
name: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"/","sources":["routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAA2B,KAAK,gBAAgB,EAAgE,MAAM,sBAAsB,CAAC;AAgNpJ,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiyE3B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ab676c82-5988-55c9-a90b-a62a2cee20ba")}catch(e){}}();
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { createTRPCRouter, protectedProcedure, protectedClassMemberProcedure, protectedTeacherProcedure } from "../trpc.js";
|
|
5
5
|
import { TRPCError } from "@trpc/server";
|
|
@@ -20,6 +20,7 @@ const directFileSchema = z.object({
|
|
|
20
20
|
});
|
|
21
21
|
const createAssignmentSchema = z.object({
|
|
22
22
|
classId: z.string(),
|
|
23
|
+
id: z.string().optional(),
|
|
23
24
|
title: z.string(),
|
|
24
25
|
instructions: z.string(),
|
|
25
26
|
dueDate: z.string(),
|
|
@@ -282,6 +283,19 @@ export const assignmentRouter = createTRPCRouter({
|
|
|
282
283
|
});
|
|
283
284
|
return updated;
|
|
284
285
|
}),
|
|
286
|
+
exists: protectedClassMemberProcedure
|
|
287
|
+
.input(z.object({
|
|
288
|
+
id: z.string(),
|
|
289
|
+
}))
|
|
290
|
+
.query(async ({ ctx, input }) => {
|
|
291
|
+
if (!ctx.user) {
|
|
292
|
+
throw new TRPCError({ code: 'UNAUTHORIZED', message: 'User must be authenticated' });
|
|
293
|
+
}
|
|
294
|
+
const assignment = await prisma.assignment.findUnique({
|
|
295
|
+
where: { id: input.id },
|
|
296
|
+
});
|
|
297
|
+
return assignment ? true : false;
|
|
298
|
+
}),
|
|
285
299
|
move: protectedTeacherProcedure
|
|
286
300
|
.input(z.object({
|
|
287
301
|
id: z.string(),
|
|
@@ -314,7 +328,7 @@ export const assignmentRouter = createTRPCRouter({
|
|
|
314
328
|
create: protectedTeacherProcedure
|
|
315
329
|
.input(createAssignmentSchema)
|
|
316
330
|
.mutation(async ({ ctx, input }) => {
|
|
317
|
-
const { classId, title, instructions, dueDate, files, existingFileIds, aiPolicyLevel, acceptFiles, acceptExtendedResponse, acceptWorksheet, worksheetIds, gradeWithAI, studentIds, maxGrade, graded, weight, sectionId, type, markSchemeId, gradingBoundaryId, inProgress } = input;
|
|
331
|
+
const { classId, id, title, instructions, dueDate, files, existingFileIds, aiPolicyLevel, acceptFiles, acceptExtendedResponse, acceptWorksheet, worksheetIds, gradeWithAI, studentIds, maxGrade, graded, weight, sectionId, type, markSchemeId, gradingBoundaryId, inProgress } = input;
|
|
318
332
|
if (!ctx.user) {
|
|
319
333
|
throw new TRPCError({
|
|
320
334
|
code: "UNAUTHORIZED",
|
|
@@ -367,6 +381,7 @@ export const assignmentRouter = createTRPCRouter({
|
|
|
367
381
|
// Create assignment with order 0 (will be at top)
|
|
368
382
|
const created = await tx.assignment.create({
|
|
369
383
|
data: {
|
|
384
|
+
...(id && { id }),
|
|
370
385
|
title,
|
|
371
386
|
instructions,
|
|
372
387
|
dueDate: new Date(dueDate),
|
|
@@ -2290,4 +2305,4 @@ export const assignmentRouter = createTRPCRouter({
|
|
|
2290
2305
|
}),
|
|
2291
2306
|
});
|
|
2292
2307
|
//# sourceMappingURL=assignment.js.map
|
|
2293
|
-
//# debugId=
|
|
2308
|
+
//# debugId=ab676c82-5988-55c9-a90b-a62a2cee20ba
|