@studious-lms/server 1.1.20 → 1.1.22
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/BASE64_REMOVAL_SUMMARY.md +153 -0
- package/dist/lib/fileUpload.d.ts +45 -12
- package/dist/lib/fileUpload.d.ts.map +1 -1
- package/dist/lib/fileUpload.js +181 -72
- package/dist/lib/googleCloudStorage.d.ts +7 -8
- package/dist/lib/googleCloudStorage.d.ts.map +1 -1
- package/dist/lib/googleCloudStorage.js +21 -33
- package/dist/lib/thumbnailGenerator.d.ts +0 -1
- package/dist/lib/thumbnailGenerator.d.ts.map +1 -1
- package/dist/lib/thumbnailGenerator.js +3 -17
- package/dist/routers/_app.d.ts +452 -10
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/assignment.d.ts +209 -4
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +243 -16
- package/dist/routers/auth.js +1 -1
- package/dist/routers/file.d.ts +18 -0
- package/dist/routers/file.d.ts.map +1 -1
- package/dist/routers/folder.d.ts +0 -1
- package/dist/routers/folder.d.ts.map +1 -1
- package/dist/routers/folder.js +12 -9
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/labChat.js +4 -2
- package/package.json +1 -1
- package/prisma/migrations/20251020151505_add_upload_tracking_fields/migration.sql +57 -0
- package/prisma/schema.prisma +19 -0
- package/src/lib/fileUpload.ts +229 -83
- package/src/lib/googleCloudStorage.ts +21 -40
- package/src/lib/thumbnailGenerator.ts +3 -18
- package/src/routers/assignment.ts +291 -16
- package/src/routers/auth.ts +1 -1
- package/src/routers/folder.ts +13 -9
- package/src/routers/labChat.ts +4 -2
- package/src/routers/user.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import { type DirectUploadFile } from "../lib/fileUpload.js";
|
|
2
3
|
export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
3
4
|
ctx: import("../trpc.js").Context;
|
|
4
5
|
meta: object;
|
|
@@ -87,7 +88,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
87
88
|
type: string;
|
|
88
89
|
name: string;
|
|
89
90
|
size: number;
|
|
90
|
-
data: string;
|
|
91
91
|
}[] | undefined;
|
|
92
92
|
maxGrade?: number | undefined;
|
|
93
93
|
markSchemeId?: string | undefined;
|
|
@@ -136,7 +136,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
136
136
|
type: string;
|
|
137
137
|
name: string;
|
|
138
138
|
size: number;
|
|
139
|
-
data: string;
|
|
140
139
|
}[] | undefined;
|
|
141
140
|
title?: string | undefined;
|
|
142
141
|
dueDate?: string | undefined;
|
|
@@ -210,6 +209,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
210
209
|
userId: string | null;
|
|
211
210
|
thumbnailId: string | null;
|
|
212
211
|
annotationId: string | null;
|
|
212
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
213
|
+
uploadUrl: string | null;
|
|
214
|
+
uploadExpiresAt: Date | null;
|
|
215
|
+
uploadSessionId: string | null;
|
|
216
|
+
uploadProgress: number | null;
|
|
217
|
+
uploadError: string | null;
|
|
218
|
+
uploadRetryCount: number;
|
|
219
|
+
isOrphaned: boolean;
|
|
220
|
+
cleanupAt: Date | null;
|
|
213
221
|
classDraftId: string | null;
|
|
214
222
|
folderId: string | null;
|
|
215
223
|
conversationId: string | null;
|
|
@@ -368,6 +376,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
368
376
|
userId: string | null;
|
|
369
377
|
thumbnailId: string | null;
|
|
370
378
|
annotationId: string | null;
|
|
379
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
380
|
+
uploadUrl: string | null;
|
|
381
|
+
uploadExpiresAt: Date | null;
|
|
382
|
+
uploadSessionId: string | null;
|
|
383
|
+
uploadProgress: number | null;
|
|
384
|
+
uploadError: string | null;
|
|
385
|
+
uploadRetryCount: number;
|
|
386
|
+
isOrphaned: boolean;
|
|
387
|
+
cleanupAt: Date | null;
|
|
371
388
|
classDraftId: string | null;
|
|
372
389
|
folderId: string | null;
|
|
373
390
|
conversationId: string | null;
|
|
@@ -386,6 +403,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
386
403
|
userId: string | null;
|
|
387
404
|
thumbnailId: string | null;
|
|
388
405
|
annotationId: string | null;
|
|
406
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
407
|
+
uploadUrl: string | null;
|
|
408
|
+
uploadExpiresAt: Date | null;
|
|
409
|
+
uploadSessionId: string | null;
|
|
410
|
+
uploadProgress: number | null;
|
|
411
|
+
uploadError: string | null;
|
|
412
|
+
uploadRetryCount: number;
|
|
413
|
+
isOrphaned: boolean;
|
|
414
|
+
cleanupAt: Date | null;
|
|
389
415
|
classDraftId: string | null;
|
|
390
416
|
folderId: string | null;
|
|
391
417
|
conversationId: string | null;
|
|
@@ -473,6 +499,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
473
499
|
userId: string | null;
|
|
474
500
|
thumbnailId: string | null;
|
|
475
501
|
annotationId: string | null;
|
|
502
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
503
|
+
uploadUrl: string | null;
|
|
504
|
+
uploadExpiresAt: Date | null;
|
|
505
|
+
uploadSessionId: string | null;
|
|
506
|
+
uploadProgress: number | null;
|
|
507
|
+
uploadError: string | null;
|
|
508
|
+
uploadRetryCount: number;
|
|
509
|
+
isOrphaned: boolean;
|
|
510
|
+
cleanupAt: Date | null;
|
|
476
511
|
classDraftId: string | null;
|
|
477
512
|
folderId: string | null;
|
|
478
513
|
conversationId: string | null;
|
|
@@ -491,6 +526,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
491
526
|
userId: string | null;
|
|
492
527
|
thumbnailId: string | null;
|
|
493
528
|
annotationId: string | null;
|
|
529
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
530
|
+
uploadUrl: string | null;
|
|
531
|
+
uploadExpiresAt: Date | null;
|
|
532
|
+
uploadSessionId: string | null;
|
|
533
|
+
uploadProgress: number | null;
|
|
534
|
+
uploadError: string | null;
|
|
535
|
+
uploadRetryCount: number;
|
|
536
|
+
isOrphaned: boolean;
|
|
537
|
+
cleanupAt: Date | null;
|
|
494
538
|
classDraftId: string | null;
|
|
495
539
|
folderId: string | null;
|
|
496
540
|
conversationId: string | null;
|
|
@@ -586,6 +630,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
586
630
|
userId: string | null;
|
|
587
631
|
thumbnailId: string | null;
|
|
588
632
|
annotationId: string | null;
|
|
633
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
634
|
+
uploadUrl: string | null;
|
|
635
|
+
uploadExpiresAt: Date | null;
|
|
636
|
+
uploadSessionId: string | null;
|
|
637
|
+
uploadProgress: number | null;
|
|
638
|
+
uploadError: string | null;
|
|
639
|
+
uploadRetryCount: number;
|
|
640
|
+
isOrphaned: boolean;
|
|
641
|
+
cleanupAt: Date | null;
|
|
589
642
|
classDraftId: string | null;
|
|
590
643
|
folderId: string | null;
|
|
591
644
|
conversationId: string | null;
|
|
@@ -604,6 +657,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
604
657
|
userId: string | null;
|
|
605
658
|
thumbnailId: string | null;
|
|
606
659
|
annotationId: string | null;
|
|
660
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
661
|
+
uploadUrl: string | null;
|
|
662
|
+
uploadExpiresAt: Date | null;
|
|
663
|
+
uploadSessionId: string | null;
|
|
664
|
+
uploadProgress: number | null;
|
|
665
|
+
uploadError: string | null;
|
|
666
|
+
uploadRetryCount: number;
|
|
667
|
+
isOrphaned: boolean;
|
|
668
|
+
cleanupAt: Date | null;
|
|
607
669
|
classDraftId: string | null;
|
|
608
670
|
folderId: string | null;
|
|
609
671
|
conversationId: string | null;
|
|
@@ -637,7 +699,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
637
699
|
type: string;
|
|
638
700
|
name: string;
|
|
639
701
|
size: number;
|
|
640
|
-
data: string;
|
|
641
702
|
}[] | undefined;
|
|
642
703
|
};
|
|
643
704
|
output: {
|
|
@@ -696,6 +757,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
696
757
|
userId: string | null;
|
|
697
758
|
thumbnailId: string | null;
|
|
698
759
|
annotationId: string | null;
|
|
760
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
761
|
+
uploadUrl: string | null;
|
|
762
|
+
uploadExpiresAt: Date | null;
|
|
763
|
+
uploadSessionId: string | null;
|
|
764
|
+
uploadProgress: number | null;
|
|
765
|
+
uploadError: string | null;
|
|
766
|
+
uploadRetryCount: number;
|
|
767
|
+
isOrphaned: boolean;
|
|
768
|
+
cleanupAt: Date | null;
|
|
699
769
|
classDraftId: string | null;
|
|
700
770
|
folderId: string | null;
|
|
701
771
|
conversationId: string | null;
|
|
@@ -786,6 +856,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
786
856
|
userId: string | null;
|
|
787
857
|
thumbnailId: string | null;
|
|
788
858
|
annotationId: string | null;
|
|
859
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
860
|
+
uploadUrl: string | null;
|
|
861
|
+
uploadExpiresAt: Date | null;
|
|
862
|
+
uploadSessionId: string | null;
|
|
863
|
+
uploadProgress: number | null;
|
|
864
|
+
uploadError: string | null;
|
|
865
|
+
uploadRetryCount: number;
|
|
866
|
+
isOrphaned: boolean;
|
|
867
|
+
cleanupAt: Date | null;
|
|
789
868
|
classDraftId: string | null;
|
|
790
869
|
folderId: string | null;
|
|
791
870
|
conversationId: string | null;
|
|
@@ -804,6 +883,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
804
883
|
userId: string | null;
|
|
805
884
|
thumbnailId: string | null;
|
|
806
885
|
annotationId: string | null;
|
|
886
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
887
|
+
uploadUrl: string | null;
|
|
888
|
+
uploadExpiresAt: Date | null;
|
|
889
|
+
uploadSessionId: string | null;
|
|
890
|
+
uploadProgress: number | null;
|
|
891
|
+
uploadError: string | null;
|
|
892
|
+
uploadRetryCount: number;
|
|
893
|
+
isOrphaned: boolean;
|
|
894
|
+
cleanupAt: Date | null;
|
|
807
895
|
classDraftId: string | null;
|
|
808
896
|
folderId: string | null;
|
|
809
897
|
conversationId: string | null;
|
|
@@ -838,7 +926,6 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
838
926
|
type: string;
|
|
839
927
|
name: string;
|
|
840
928
|
size: number;
|
|
841
|
-
data: string;
|
|
842
929
|
}[] | undefined;
|
|
843
930
|
return?: boolean | undefined;
|
|
844
931
|
rubricGrades?: {
|
|
@@ -909,6 +996,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
909
996
|
userId: string | null;
|
|
910
997
|
thumbnailId: string | null;
|
|
911
998
|
annotationId: string | null;
|
|
999
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1000
|
+
uploadUrl: string | null;
|
|
1001
|
+
uploadExpiresAt: Date | null;
|
|
1002
|
+
uploadSessionId: string | null;
|
|
1003
|
+
uploadProgress: number | null;
|
|
1004
|
+
uploadError: string | null;
|
|
1005
|
+
uploadRetryCount: number;
|
|
1006
|
+
isOrphaned: boolean;
|
|
1007
|
+
cleanupAt: Date | null;
|
|
912
1008
|
classDraftId: string | null;
|
|
913
1009
|
folderId: string | null;
|
|
914
1010
|
conversationId: string | null;
|
|
@@ -1104,6 +1200,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1104
1200
|
userId: string | null;
|
|
1105
1201
|
thumbnailId: string | null;
|
|
1106
1202
|
annotationId: string | null;
|
|
1203
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1204
|
+
uploadUrl: string | null;
|
|
1205
|
+
uploadExpiresAt: Date | null;
|
|
1206
|
+
uploadSessionId: string | null;
|
|
1207
|
+
uploadProgress: number | null;
|
|
1208
|
+
uploadError: string | null;
|
|
1209
|
+
uploadRetryCount: number;
|
|
1210
|
+
isOrphaned: boolean;
|
|
1211
|
+
cleanupAt: Date | null;
|
|
1107
1212
|
classDraftId: string | null;
|
|
1108
1213
|
folderId: string | null;
|
|
1109
1214
|
conversationId: string | null;
|
|
@@ -1185,6 +1290,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1185
1290
|
userId: string | null;
|
|
1186
1291
|
thumbnailId: string | null;
|
|
1187
1292
|
annotationId: string | null;
|
|
1293
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1294
|
+
uploadUrl: string | null;
|
|
1295
|
+
uploadExpiresAt: Date | null;
|
|
1296
|
+
uploadSessionId: string | null;
|
|
1297
|
+
uploadProgress: number | null;
|
|
1298
|
+
uploadError: string | null;
|
|
1299
|
+
uploadRetryCount: number;
|
|
1300
|
+
isOrphaned: boolean;
|
|
1301
|
+
cleanupAt: Date | null;
|
|
1188
1302
|
classDraftId: string | null;
|
|
1189
1303
|
folderId: string | null;
|
|
1190
1304
|
conversationId: string | null;
|
|
@@ -1267,6 +1381,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1267
1381
|
userId: string | null;
|
|
1268
1382
|
thumbnailId: string | null;
|
|
1269
1383
|
annotationId: string | null;
|
|
1384
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1385
|
+
uploadUrl: string | null;
|
|
1386
|
+
uploadExpiresAt: Date | null;
|
|
1387
|
+
uploadSessionId: string | null;
|
|
1388
|
+
uploadProgress: number | null;
|
|
1389
|
+
uploadError: string | null;
|
|
1390
|
+
uploadRetryCount: number;
|
|
1391
|
+
isOrphaned: boolean;
|
|
1392
|
+
cleanupAt: Date | null;
|
|
1270
1393
|
classDraftId: string | null;
|
|
1271
1394
|
folderId: string | null;
|
|
1272
1395
|
conversationId: string | null;
|
|
@@ -1348,6 +1471,15 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1348
1471
|
userId: string | null;
|
|
1349
1472
|
thumbnailId: string | null;
|
|
1350
1473
|
annotationId: string | null;
|
|
1474
|
+
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
1475
|
+
uploadUrl: string | null;
|
|
1476
|
+
uploadExpiresAt: Date | null;
|
|
1477
|
+
uploadSessionId: string | null;
|
|
1478
|
+
uploadProgress: number | null;
|
|
1479
|
+
uploadError: string | null;
|
|
1480
|
+
uploadRetryCount: number;
|
|
1481
|
+
isOrphaned: boolean;
|
|
1482
|
+
cleanupAt: Date | null;
|
|
1351
1483
|
classDraftId: string | null;
|
|
1352
1484
|
folderId: string | null;
|
|
1353
1485
|
conversationId: string | null;
|
|
@@ -1393,5 +1525,78 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1393
1525
|
};
|
|
1394
1526
|
meta: object;
|
|
1395
1527
|
}>;
|
|
1528
|
+
getAssignmentUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
|
|
1529
|
+
input: {
|
|
1530
|
+
[x: string]: unknown;
|
|
1531
|
+
classId: string;
|
|
1532
|
+
files: {
|
|
1533
|
+
type: string;
|
|
1534
|
+
name: string;
|
|
1535
|
+
size: number;
|
|
1536
|
+
}[];
|
|
1537
|
+
assignmentId: string;
|
|
1538
|
+
};
|
|
1539
|
+
output: {
|
|
1540
|
+
success: boolean;
|
|
1541
|
+
uploadFiles: DirectUploadFile[];
|
|
1542
|
+
};
|
|
1543
|
+
meta: object;
|
|
1544
|
+
}>;
|
|
1545
|
+
getSubmissionUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
|
|
1546
|
+
input: {
|
|
1547
|
+
[x: string]: unknown;
|
|
1548
|
+
classId: string;
|
|
1549
|
+
files: {
|
|
1550
|
+
type: string;
|
|
1551
|
+
name: string;
|
|
1552
|
+
size: number;
|
|
1553
|
+
}[];
|
|
1554
|
+
submissionId: string;
|
|
1555
|
+
};
|
|
1556
|
+
output: {
|
|
1557
|
+
success: boolean;
|
|
1558
|
+
uploadFiles: DirectUploadFile[];
|
|
1559
|
+
};
|
|
1560
|
+
meta: object;
|
|
1561
|
+
}>;
|
|
1562
|
+
confirmAssignmentUpload: import("@trpc/server").TRPCMutationProcedure<{
|
|
1563
|
+
input: {
|
|
1564
|
+
[x: string]: unknown;
|
|
1565
|
+
classId: string;
|
|
1566
|
+
fileId: string;
|
|
1567
|
+
uploadSuccess: boolean;
|
|
1568
|
+
errorMessage?: string | undefined;
|
|
1569
|
+
};
|
|
1570
|
+
output: {
|
|
1571
|
+
success: boolean;
|
|
1572
|
+
message: string;
|
|
1573
|
+
};
|
|
1574
|
+
meta: object;
|
|
1575
|
+
}>;
|
|
1576
|
+
confirmSubmissionUpload: import("@trpc/server").TRPCMutationProcedure<{
|
|
1577
|
+
input: {
|
|
1578
|
+
[x: string]: unknown;
|
|
1579
|
+
classId: string;
|
|
1580
|
+
fileId: string;
|
|
1581
|
+
uploadSuccess: boolean;
|
|
1582
|
+
errorMessage?: string | undefined;
|
|
1583
|
+
};
|
|
1584
|
+
output: {
|
|
1585
|
+
success: boolean;
|
|
1586
|
+
message: string;
|
|
1587
|
+
};
|
|
1588
|
+
meta: object;
|
|
1589
|
+
}>;
|
|
1590
|
+
updateUploadProgress: import("@trpc/server").TRPCMutationProcedure<{
|
|
1591
|
+
input: {
|
|
1592
|
+
fileId: string;
|
|
1593
|
+
progress: number;
|
|
1594
|
+
};
|
|
1595
|
+
output: {
|
|
1596
|
+
success: boolean;
|
|
1597
|
+
progress: number;
|
|
1598
|
+
};
|
|
1599
|
+
meta: object;
|
|
1600
|
+
}>;
|
|
1396
1601
|
}>>;
|
|
1397
1602
|
//# sourceMappingURL=assignment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/routers/assignment.ts"],"names":[],"mapp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