@studious-lms/server 1.1.20 → 1.1.21

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.
@@ -940,7 +940,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
940
940
  type: string;
941
941
  name: string;
942
942
  size: number;
943
- data: string;
944
943
  }[] | undefined;
945
944
  maxGrade?: number | undefined;
946
945
  markSchemeId?: string | undefined;
@@ -989,7 +988,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
989
988
  type: string;
990
989
  name: string;
991
990
  size: number;
992
- data: string;
993
991
  }[] | undefined;
994
992
  title?: string | undefined;
995
993
  dueDate?: string | undefined;
@@ -1063,6 +1061,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1063
1061
  userId: string | null;
1064
1062
  thumbnailId: string | null;
1065
1063
  annotationId: string | null;
1064
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1065
+ uploadUrl: string | null;
1066
+ uploadExpiresAt: Date | null;
1067
+ uploadSessionId: string | null;
1068
+ uploadProgress: number | null;
1069
+ uploadError: string | null;
1070
+ uploadRetryCount: number;
1071
+ isOrphaned: boolean;
1072
+ cleanupAt: Date | null;
1066
1073
  classDraftId: string | null;
1067
1074
  folderId: string | null;
1068
1075
  conversationId: string | null;
@@ -1221,6 +1228,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1221
1228
  userId: string | null;
1222
1229
  thumbnailId: string | null;
1223
1230
  annotationId: string | null;
1231
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1232
+ uploadUrl: string | null;
1233
+ uploadExpiresAt: Date | null;
1234
+ uploadSessionId: string | null;
1235
+ uploadProgress: number | null;
1236
+ uploadError: string | null;
1237
+ uploadRetryCount: number;
1238
+ isOrphaned: boolean;
1239
+ cleanupAt: Date | null;
1224
1240
  classDraftId: string | null;
1225
1241
  folderId: string | null;
1226
1242
  conversationId: string | null;
@@ -1239,6 +1255,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1239
1255
  userId: string | null;
1240
1256
  thumbnailId: string | null;
1241
1257
  annotationId: string | null;
1258
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1259
+ uploadUrl: string | null;
1260
+ uploadExpiresAt: Date | null;
1261
+ uploadSessionId: string | null;
1262
+ uploadProgress: number | null;
1263
+ uploadError: string | null;
1264
+ uploadRetryCount: number;
1265
+ isOrphaned: boolean;
1266
+ cleanupAt: Date | null;
1242
1267
  classDraftId: string | null;
1243
1268
  folderId: string | null;
1244
1269
  conversationId: string | null;
@@ -1326,6 +1351,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1326
1351
  userId: string | null;
1327
1352
  thumbnailId: string | null;
1328
1353
  annotationId: string | null;
1354
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1355
+ uploadUrl: string | null;
1356
+ uploadExpiresAt: Date | null;
1357
+ uploadSessionId: string | null;
1358
+ uploadProgress: number | null;
1359
+ uploadError: string | null;
1360
+ uploadRetryCount: number;
1361
+ isOrphaned: boolean;
1362
+ cleanupAt: Date | null;
1329
1363
  classDraftId: string | null;
1330
1364
  folderId: string | null;
1331
1365
  conversationId: string | null;
@@ -1344,6 +1378,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1344
1378
  userId: string | null;
1345
1379
  thumbnailId: string | null;
1346
1380
  annotationId: string | null;
1381
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1382
+ uploadUrl: string | null;
1383
+ uploadExpiresAt: Date | null;
1384
+ uploadSessionId: string | null;
1385
+ uploadProgress: number | null;
1386
+ uploadError: string | null;
1387
+ uploadRetryCount: number;
1388
+ isOrphaned: boolean;
1389
+ cleanupAt: Date | null;
1347
1390
  classDraftId: string | null;
1348
1391
  folderId: string | null;
1349
1392
  conversationId: string | null;
@@ -1439,6 +1482,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1482
  userId: string | null;
1440
1483
  thumbnailId: string | null;
1441
1484
  annotationId: string | null;
1485
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1486
+ uploadUrl: string | null;
1487
+ uploadExpiresAt: Date | null;
1488
+ uploadSessionId: string | null;
1489
+ uploadProgress: number | null;
1490
+ uploadError: string | null;
1491
+ uploadRetryCount: number;
1492
+ isOrphaned: boolean;
1493
+ cleanupAt: Date | null;
1442
1494
  classDraftId: string | null;
1443
1495
  folderId: string | null;
1444
1496
  conversationId: string | null;
@@ -1457,6 +1509,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1457
1509
  userId: string | null;
1458
1510
  thumbnailId: string | null;
1459
1511
  annotationId: string | null;
1512
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1513
+ uploadUrl: string | null;
1514
+ uploadExpiresAt: Date | null;
1515
+ uploadSessionId: string | null;
1516
+ uploadProgress: number | null;
1517
+ uploadError: string | null;
1518
+ uploadRetryCount: number;
1519
+ isOrphaned: boolean;
1520
+ cleanupAt: Date | null;
1460
1521
  classDraftId: string | null;
1461
1522
  folderId: string | null;
1462
1523
  conversationId: string | null;
@@ -1490,7 +1551,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1490
1551
  type: string;
1491
1552
  name: string;
1492
1553
  size: number;
1493
- data: string;
1494
1554
  }[] | undefined;
1495
1555
  };
1496
1556
  output: {
@@ -1549,6 +1609,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1549
1609
  userId: string | null;
1550
1610
  thumbnailId: string | null;
1551
1611
  annotationId: string | null;
1612
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1613
+ uploadUrl: string | null;
1614
+ uploadExpiresAt: Date | null;
1615
+ uploadSessionId: string | null;
1616
+ uploadProgress: number | null;
1617
+ uploadError: string | null;
1618
+ uploadRetryCount: number;
1619
+ isOrphaned: boolean;
1620
+ cleanupAt: Date | null;
1552
1621
  classDraftId: string | null;
1553
1622
  folderId: string | null;
1554
1623
  conversationId: string | null;
@@ -1639,6 +1708,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1639
1708
  userId: string | null;
1640
1709
  thumbnailId: string | null;
1641
1710
  annotationId: string | null;
1711
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1712
+ uploadUrl: string | null;
1713
+ uploadExpiresAt: Date | null;
1714
+ uploadSessionId: string | null;
1715
+ uploadProgress: number | null;
1716
+ uploadError: string | null;
1717
+ uploadRetryCount: number;
1718
+ isOrphaned: boolean;
1719
+ cleanupAt: Date | null;
1642
1720
  classDraftId: string | null;
1643
1721
  folderId: string | null;
1644
1722
  conversationId: string | null;
@@ -1657,6 +1735,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1657
1735
  userId: string | null;
1658
1736
  thumbnailId: string | null;
1659
1737
  annotationId: string | null;
1738
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1739
+ uploadUrl: string | null;
1740
+ uploadExpiresAt: Date | null;
1741
+ uploadSessionId: string | null;
1742
+ uploadProgress: number | null;
1743
+ uploadError: string | null;
1744
+ uploadRetryCount: number;
1745
+ isOrphaned: boolean;
1746
+ cleanupAt: Date | null;
1660
1747
  classDraftId: string | null;
1661
1748
  folderId: string | null;
1662
1749
  conversationId: string | null;
@@ -1691,7 +1778,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1691
1778
  type: string;
1692
1779
  name: string;
1693
1780
  size: number;
1694
- data: string;
1695
1781
  }[] | undefined;
1696
1782
  return?: boolean | undefined;
1697
1783
  rubricGrades?: {
@@ -1762,6 +1848,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1762
1848
  userId: string | null;
1763
1849
  thumbnailId: string | null;
1764
1850
  annotationId: string | null;
1851
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
1852
+ uploadUrl: string | null;
1853
+ uploadExpiresAt: Date | null;
1854
+ uploadSessionId: string | null;
1855
+ uploadProgress: number | null;
1856
+ uploadError: string | null;
1857
+ uploadRetryCount: number;
1858
+ isOrphaned: boolean;
1859
+ cleanupAt: Date | null;
1765
1860
  classDraftId: string | null;
1766
1861
  folderId: string | null;
1767
1862
  conversationId: string | null;
@@ -1957,6 +2052,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1957
2052
  userId: string | null;
1958
2053
  thumbnailId: string | null;
1959
2054
  annotationId: string | null;
2055
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2056
+ uploadUrl: string | null;
2057
+ uploadExpiresAt: Date | null;
2058
+ uploadSessionId: string | null;
2059
+ uploadProgress: number | null;
2060
+ uploadError: string | null;
2061
+ uploadRetryCount: number;
2062
+ isOrphaned: boolean;
2063
+ cleanupAt: Date | null;
1960
2064
  classDraftId: string | null;
1961
2065
  folderId: string | null;
1962
2066
  conversationId: string | null;
@@ -2038,6 +2142,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2038
2142
  userId: string | null;
2039
2143
  thumbnailId: string | null;
2040
2144
  annotationId: string | null;
2145
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2146
+ uploadUrl: string | null;
2147
+ uploadExpiresAt: Date | null;
2148
+ uploadSessionId: string | null;
2149
+ uploadProgress: number | null;
2150
+ uploadError: string | null;
2151
+ uploadRetryCount: number;
2152
+ isOrphaned: boolean;
2153
+ cleanupAt: Date | null;
2041
2154
  classDraftId: string | null;
2042
2155
  folderId: string | null;
2043
2156
  conversationId: string | null;
@@ -2120,6 +2233,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2120
2233
  userId: string | null;
2121
2234
  thumbnailId: string | null;
2122
2235
  annotationId: string | null;
2236
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2237
+ uploadUrl: string | null;
2238
+ uploadExpiresAt: Date | null;
2239
+ uploadSessionId: string | null;
2240
+ uploadProgress: number | null;
2241
+ uploadError: string | null;
2242
+ uploadRetryCount: number;
2243
+ isOrphaned: boolean;
2244
+ cleanupAt: Date | null;
2123
2245
  classDraftId: string | null;
2124
2246
  folderId: string | null;
2125
2247
  conversationId: string | null;
@@ -2201,6 +2323,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2201
2323
  userId: string | null;
2202
2324
  thumbnailId: string | null;
2203
2325
  annotationId: string | null;
2326
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
2327
+ uploadUrl: string | null;
2328
+ uploadExpiresAt: Date | null;
2329
+ uploadSessionId: string | null;
2330
+ uploadProgress: number | null;
2331
+ uploadError: string | null;
2332
+ uploadRetryCount: number;
2333
+ isOrphaned: boolean;
2334
+ cleanupAt: Date | null;
2204
2335
  classDraftId: string | null;
2205
2336
  folderId: string | null;
2206
2337
  conversationId: string | null;
@@ -2246,6 +2377,79 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2246
2377
  };
2247
2378
  meta: object;
2248
2379
  }>;
2380
+ getAssignmentUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
2381
+ input: {
2382
+ [x: string]: unknown;
2383
+ classId: string;
2384
+ files: {
2385
+ type: string;
2386
+ name: string;
2387
+ size: number;
2388
+ }[];
2389
+ assignmentId: string;
2390
+ };
2391
+ output: {
2392
+ success: boolean;
2393
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
2394
+ };
2395
+ meta: object;
2396
+ }>;
2397
+ getSubmissionUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
2398
+ input: {
2399
+ [x: string]: unknown;
2400
+ classId: string;
2401
+ files: {
2402
+ type: string;
2403
+ name: string;
2404
+ size: number;
2405
+ }[];
2406
+ submissionId: string;
2407
+ };
2408
+ output: {
2409
+ success: boolean;
2410
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
2411
+ };
2412
+ meta: object;
2413
+ }>;
2414
+ confirmAssignmentUpload: import("@trpc/server").TRPCMutationProcedure<{
2415
+ input: {
2416
+ [x: string]: unknown;
2417
+ classId: string;
2418
+ fileId: string;
2419
+ uploadSuccess: boolean;
2420
+ errorMessage?: string | undefined;
2421
+ };
2422
+ output: {
2423
+ success: boolean;
2424
+ message: string;
2425
+ };
2426
+ meta: object;
2427
+ }>;
2428
+ confirmSubmissionUpload: import("@trpc/server").TRPCMutationProcedure<{
2429
+ input: {
2430
+ [x: string]: unknown;
2431
+ classId: string;
2432
+ fileId: string;
2433
+ uploadSuccess: boolean;
2434
+ errorMessage?: string | undefined;
2435
+ };
2436
+ output: {
2437
+ success: boolean;
2438
+ message: string;
2439
+ };
2440
+ meta: object;
2441
+ }>;
2442
+ updateUploadProgress: import("@trpc/server").TRPCMutationProcedure<{
2443
+ input: {
2444
+ fileId: string;
2445
+ progress: number;
2446
+ };
2447
+ output: {
2448
+ success: boolean;
2449
+ progress: number;
2450
+ };
2451
+ meta: object;
2452
+ }>;
2249
2453
  }>>;
2250
2454
  user: import("@trpc/server").TRPCBuiltRouter<{
2251
2455
  ctx: import("../trpc.js").Context;
@@ -2995,6 +3199,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2995
3199
  userId: string | null;
2996
3200
  thumbnailId: string | null;
2997
3201
  annotationId: string | null;
3202
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
3203
+ uploadUrl: string | null;
3204
+ uploadExpiresAt: Date | null;
3205
+ uploadSessionId: string | null;
3206
+ uploadProgress: number | null;
3207
+ uploadError: string | null;
3208
+ uploadRetryCount: number;
3209
+ isOrphaned: boolean;
3210
+ cleanupAt: Date | null;
2998
3211
  classDraftId: string | null;
2999
3212
  folderId: string | null;
3000
3213
  conversationId: string | null;
@@ -3027,6 +3240,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3027
3240
  userId: string | null;
3028
3241
  thumbnailId: string | null;
3029
3242
  annotationId: string | null;
3243
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
3244
+ uploadUrl: string | null;
3245
+ uploadExpiresAt: Date | null;
3246
+ uploadSessionId: string | null;
3247
+ uploadProgress: number | null;
3248
+ uploadError: string | null;
3249
+ uploadRetryCount: number;
3250
+ isOrphaned: boolean;
3251
+ cleanupAt: Date | null;
3030
3252
  classDraftId: string | null;
3031
3253
  folderId: string | null;
3032
3254
  conversationId: string | null;
@@ -3256,7 +3478,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3256
3478
  type: string;
3257
3479
  name: string;
3258
3480
  size: number;
3259
- data: string;
3260
3481
  }[];
3261
3482
  folderId: string;
3262
3483
  };
@@ -4975,7 +5196,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
4975
5196
  type: string;
4976
5197
  name: string;
4977
5198
  size: number;
4978
- data: string;
4979
5199
  }[] | undefined;
4980
5200
  maxGrade?: number | undefined;
4981
5201
  markSchemeId?: string | undefined;
@@ -5024,7 +5244,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5024
5244
  type: string;
5025
5245
  name: string;
5026
5246
  size: number;
5027
- data: string;
5028
5247
  }[] | undefined;
5029
5248
  title?: string | undefined;
5030
5249
  dueDate?: string | undefined;
@@ -5098,6 +5317,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5098
5317
  userId: string | null;
5099
5318
  thumbnailId: string | null;
5100
5319
  annotationId: string | null;
5320
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5321
+ uploadUrl: string | null;
5322
+ uploadExpiresAt: Date | null;
5323
+ uploadSessionId: string | null;
5324
+ uploadProgress: number | null;
5325
+ uploadError: string | null;
5326
+ uploadRetryCount: number;
5327
+ isOrphaned: boolean;
5328
+ cleanupAt: Date | null;
5101
5329
  classDraftId: string | null;
5102
5330
  folderId: string | null;
5103
5331
  conversationId: string | null;
@@ -5256,6 +5484,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5256
5484
  userId: string | null;
5257
5485
  thumbnailId: string | null;
5258
5486
  annotationId: string | null;
5487
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5488
+ uploadUrl: string | null;
5489
+ uploadExpiresAt: Date | null;
5490
+ uploadSessionId: string | null;
5491
+ uploadProgress: number | null;
5492
+ uploadError: string | null;
5493
+ uploadRetryCount: number;
5494
+ isOrphaned: boolean;
5495
+ cleanupAt: Date | null;
5259
5496
  classDraftId: string | null;
5260
5497
  folderId: string | null;
5261
5498
  conversationId: string | null;
@@ -5274,6 +5511,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5274
5511
  userId: string | null;
5275
5512
  thumbnailId: string | null;
5276
5513
  annotationId: string | null;
5514
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5515
+ uploadUrl: string | null;
5516
+ uploadExpiresAt: Date | null;
5517
+ uploadSessionId: string | null;
5518
+ uploadProgress: number | null;
5519
+ uploadError: string | null;
5520
+ uploadRetryCount: number;
5521
+ isOrphaned: boolean;
5522
+ cleanupAt: Date | null;
5277
5523
  classDraftId: string | null;
5278
5524
  folderId: string | null;
5279
5525
  conversationId: string | null;
@@ -5361,6 +5607,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5361
5607
  userId: string | null;
5362
5608
  thumbnailId: string | null;
5363
5609
  annotationId: string | null;
5610
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5611
+ uploadUrl: string | null;
5612
+ uploadExpiresAt: Date | null;
5613
+ uploadSessionId: string | null;
5614
+ uploadProgress: number | null;
5615
+ uploadError: string | null;
5616
+ uploadRetryCount: number;
5617
+ isOrphaned: boolean;
5618
+ cleanupAt: Date | null;
5364
5619
  classDraftId: string | null;
5365
5620
  folderId: string | null;
5366
5621
  conversationId: string | null;
@@ -5379,6 +5634,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5379
5634
  userId: string | null;
5380
5635
  thumbnailId: string | null;
5381
5636
  annotationId: string | null;
5637
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5638
+ uploadUrl: string | null;
5639
+ uploadExpiresAt: Date | null;
5640
+ uploadSessionId: string | null;
5641
+ uploadProgress: number | null;
5642
+ uploadError: string | null;
5643
+ uploadRetryCount: number;
5644
+ isOrphaned: boolean;
5645
+ cleanupAt: Date | null;
5382
5646
  classDraftId: string | null;
5383
5647
  folderId: string | null;
5384
5648
  conversationId: string | null;
@@ -5474,6 +5738,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5474
5738
  userId: string | null;
5475
5739
  thumbnailId: string | null;
5476
5740
  annotationId: string | null;
5741
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5742
+ uploadUrl: string | null;
5743
+ uploadExpiresAt: Date | null;
5744
+ uploadSessionId: string | null;
5745
+ uploadProgress: number | null;
5746
+ uploadError: string | null;
5747
+ uploadRetryCount: number;
5748
+ isOrphaned: boolean;
5749
+ cleanupAt: Date | null;
5477
5750
  classDraftId: string | null;
5478
5751
  folderId: string | null;
5479
5752
  conversationId: string | null;
@@ -5492,6 +5765,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5492
5765
  userId: string | null;
5493
5766
  thumbnailId: string | null;
5494
5767
  annotationId: string | null;
5768
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5769
+ uploadUrl: string | null;
5770
+ uploadExpiresAt: Date | null;
5771
+ uploadSessionId: string | null;
5772
+ uploadProgress: number | null;
5773
+ uploadError: string | null;
5774
+ uploadRetryCount: number;
5775
+ isOrphaned: boolean;
5776
+ cleanupAt: Date | null;
5495
5777
  classDraftId: string | null;
5496
5778
  folderId: string | null;
5497
5779
  conversationId: string | null;
@@ -5525,7 +5807,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5525
5807
  type: string;
5526
5808
  name: string;
5527
5809
  size: number;
5528
- data: string;
5529
5810
  }[] | undefined;
5530
5811
  };
5531
5812
  output: {
@@ -5584,6 +5865,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5584
5865
  userId: string | null;
5585
5866
  thumbnailId: string | null;
5586
5867
  annotationId: string | null;
5868
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5869
+ uploadUrl: string | null;
5870
+ uploadExpiresAt: Date | null;
5871
+ uploadSessionId: string | null;
5872
+ uploadProgress: number | null;
5873
+ uploadError: string | null;
5874
+ uploadRetryCount: number;
5875
+ isOrphaned: boolean;
5876
+ cleanupAt: Date | null;
5587
5877
  classDraftId: string | null;
5588
5878
  folderId: string | null;
5589
5879
  conversationId: string | null;
@@ -5674,6 +5964,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5674
5964
  userId: string | null;
5675
5965
  thumbnailId: string | null;
5676
5966
  annotationId: string | null;
5967
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5968
+ uploadUrl: string | null;
5969
+ uploadExpiresAt: Date | null;
5970
+ uploadSessionId: string | null;
5971
+ uploadProgress: number | null;
5972
+ uploadError: string | null;
5973
+ uploadRetryCount: number;
5974
+ isOrphaned: boolean;
5975
+ cleanupAt: Date | null;
5677
5976
  classDraftId: string | null;
5678
5977
  folderId: string | null;
5679
5978
  conversationId: string | null;
@@ -5692,6 +5991,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5692
5991
  userId: string | null;
5693
5992
  thumbnailId: string | null;
5694
5993
  annotationId: string | null;
5994
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
5995
+ uploadUrl: string | null;
5996
+ uploadExpiresAt: Date | null;
5997
+ uploadSessionId: string | null;
5998
+ uploadProgress: number | null;
5999
+ uploadError: string | null;
6000
+ uploadRetryCount: number;
6001
+ isOrphaned: boolean;
6002
+ cleanupAt: Date | null;
5695
6003
  classDraftId: string | null;
5696
6004
  folderId: string | null;
5697
6005
  conversationId: string | null;
@@ -5726,7 +6034,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5726
6034
  type: string;
5727
6035
  name: string;
5728
6036
  size: number;
5729
- data: string;
5730
6037
  }[] | undefined;
5731
6038
  return?: boolean | undefined;
5732
6039
  rubricGrades?: {
@@ -5797,6 +6104,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5797
6104
  userId: string | null;
5798
6105
  thumbnailId: string | null;
5799
6106
  annotationId: string | null;
6107
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
6108
+ uploadUrl: string | null;
6109
+ uploadExpiresAt: Date | null;
6110
+ uploadSessionId: string | null;
6111
+ uploadProgress: number | null;
6112
+ uploadError: string | null;
6113
+ uploadRetryCount: number;
6114
+ isOrphaned: boolean;
6115
+ cleanupAt: Date | null;
5800
6116
  classDraftId: string | null;
5801
6117
  folderId: string | null;
5802
6118
  conversationId: string | null;
@@ -5992,6 +6308,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
5992
6308
  userId: string | null;
5993
6309
  thumbnailId: string | null;
5994
6310
  annotationId: string | null;
6311
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
6312
+ uploadUrl: string | null;
6313
+ uploadExpiresAt: Date | null;
6314
+ uploadSessionId: string | null;
6315
+ uploadProgress: number | null;
6316
+ uploadError: string | null;
6317
+ uploadRetryCount: number;
6318
+ isOrphaned: boolean;
6319
+ cleanupAt: Date | null;
5995
6320
  classDraftId: string | null;
5996
6321
  folderId: string | null;
5997
6322
  conversationId: string | null;
@@ -6073,6 +6398,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6073
6398
  userId: string | null;
6074
6399
  thumbnailId: string | null;
6075
6400
  annotationId: string | null;
6401
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
6402
+ uploadUrl: string | null;
6403
+ uploadExpiresAt: Date | null;
6404
+ uploadSessionId: string | null;
6405
+ uploadProgress: number | null;
6406
+ uploadError: string | null;
6407
+ uploadRetryCount: number;
6408
+ isOrphaned: boolean;
6409
+ cleanupAt: Date | null;
6076
6410
  classDraftId: string | null;
6077
6411
  folderId: string | null;
6078
6412
  conversationId: string | null;
@@ -6155,6 +6489,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6155
6489
  userId: string | null;
6156
6490
  thumbnailId: string | null;
6157
6491
  annotationId: string | null;
6492
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
6493
+ uploadUrl: string | null;
6494
+ uploadExpiresAt: Date | null;
6495
+ uploadSessionId: string | null;
6496
+ uploadProgress: number | null;
6497
+ uploadError: string | null;
6498
+ uploadRetryCount: number;
6499
+ isOrphaned: boolean;
6500
+ cleanupAt: Date | null;
6158
6501
  classDraftId: string | null;
6159
6502
  folderId: string | null;
6160
6503
  conversationId: string | null;
@@ -6236,6 +6579,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6236
6579
  userId: string | null;
6237
6580
  thumbnailId: string | null;
6238
6581
  annotationId: string | null;
6582
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
6583
+ uploadUrl: string | null;
6584
+ uploadExpiresAt: Date | null;
6585
+ uploadSessionId: string | null;
6586
+ uploadProgress: number | null;
6587
+ uploadError: string | null;
6588
+ uploadRetryCount: number;
6589
+ isOrphaned: boolean;
6590
+ cleanupAt: Date | null;
6239
6591
  classDraftId: string | null;
6240
6592
  folderId: string | null;
6241
6593
  conversationId: string | null;
@@ -6281,6 +6633,79 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6281
6633
  };
6282
6634
  meta: object;
6283
6635
  }>;
6636
+ getAssignmentUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
6637
+ input: {
6638
+ [x: string]: unknown;
6639
+ classId: string;
6640
+ files: {
6641
+ type: string;
6642
+ name: string;
6643
+ size: number;
6644
+ }[];
6645
+ assignmentId: string;
6646
+ };
6647
+ output: {
6648
+ success: boolean;
6649
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
6650
+ };
6651
+ meta: object;
6652
+ }>;
6653
+ getSubmissionUploadUrls: import("@trpc/server").TRPCMutationProcedure<{
6654
+ input: {
6655
+ [x: string]: unknown;
6656
+ classId: string;
6657
+ files: {
6658
+ type: string;
6659
+ name: string;
6660
+ size: number;
6661
+ }[];
6662
+ submissionId: string;
6663
+ };
6664
+ output: {
6665
+ success: boolean;
6666
+ uploadFiles: import("../lib/fileUpload.js").DirectUploadFile[];
6667
+ };
6668
+ meta: object;
6669
+ }>;
6670
+ confirmAssignmentUpload: import("@trpc/server").TRPCMutationProcedure<{
6671
+ input: {
6672
+ [x: string]: unknown;
6673
+ classId: string;
6674
+ fileId: string;
6675
+ uploadSuccess: boolean;
6676
+ errorMessage?: string | undefined;
6677
+ };
6678
+ output: {
6679
+ success: boolean;
6680
+ message: string;
6681
+ };
6682
+ meta: object;
6683
+ }>;
6684
+ confirmSubmissionUpload: import("@trpc/server").TRPCMutationProcedure<{
6685
+ input: {
6686
+ [x: string]: unknown;
6687
+ classId: string;
6688
+ fileId: string;
6689
+ uploadSuccess: boolean;
6690
+ errorMessage?: string | undefined;
6691
+ };
6692
+ output: {
6693
+ success: boolean;
6694
+ message: string;
6695
+ };
6696
+ meta: object;
6697
+ }>;
6698
+ updateUploadProgress: import("@trpc/server").TRPCMutationProcedure<{
6699
+ input: {
6700
+ fileId: string;
6701
+ progress: number;
6702
+ };
6703
+ output: {
6704
+ success: boolean;
6705
+ progress: number;
6706
+ };
6707
+ meta: object;
6708
+ }>;
6284
6709
  }>>;
6285
6710
  user: import("@trpc/server").TRPCBuiltRouter<{
6286
6711
  ctx: import("../trpc.js").Context;
@@ -7030,6 +7455,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7030
7455
  userId: string | null;
7031
7456
  thumbnailId: string | null;
7032
7457
  annotationId: string | null;
7458
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
7459
+ uploadUrl: string | null;
7460
+ uploadExpiresAt: Date | null;
7461
+ uploadSessionId: string | null;
7462
+ uploadProgress: number | null;
7463
+ uploadError: string | null;
7464
+ uploadRetryCount: number;
7465
+ isOrphaned: boolean;
7466
+ cleanupAt: Date | null;
7033
7467
  classDraftId: string | null;
7034
7468
  folderId: string | null;
7035
7469
  conversationId: string | null;
@@ -7062,6 +7496,15 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7062
7496
  userId: string | null;
7063
7497
  thumbnailId: string | null;
7064
7498
  annotationId: string | null;
7499
+ uploadStatus: import(".prisma/client").$Enums.UploadStatus;
7500
+ uploadUrl: string | null;
7501
+ uploadExpiresAt: Date | null;
7502
+ uploadSessionId: string | null;
7503
+ uploadProgress: number | null;
7504
+ uploadError: string | null;
7505
+ uploadRetryCount: number;
7506
+ isOrphaned: boolean;
7507
+ cleanupAt: Date | null;
7065
7508
  classDraftId: string | null;
7066
7509
  folderId: string | null;
7067
7510
  conversationId: string | null;
@@ -7291,7 +7734,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7291
7734
  type: string;
7292
7735
  name: string;
7293
7736
  size: number;
7294
- data: string;
7295
7737
  }[];
7296
7738
  folderId: string;
7297
7739
  };