@studious-lms/server 1.1.14 → 1.1.15
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/index.js +3 -0
- package/dist/lib/jsonConversion.d.ts +3 -0
- package/dist/lib/jsonConversion.d.ts.map +1 -0
- package/dist/lib/jsonConversion.js +517 -0
- package/dist/lib/jsonStyles.d.ts +29 -0
- package/dist/lib/jsonStyles.d.ts.map +1 -0
- package/dist/lib/jsonStyles.js +28 -0
- package/dist/routers/_app.d.ts +82 -4
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/assignment.d.ts +30 -0
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/class.js +13 -3
- package/dist/routers/conversation.d.ts +1 -1
- package/dist/routers/file.d.ts +4 -0
- package/dist/routers/file.d.ts.map +1 -1
- package/dist/routers/labChat.d.ts +1 -1
- package/dist/routers/labChat.d.ts.map +1 -1
- package/dist/routers/labChat.js +159 -7
- package/dist/routers/message.d.ts +5 -0
- package/dist/routers/message.d.ts.map +1 -1
- package/dist/routers/message.js +18 -5
- package/dist/utils/inference.d.ts +5 -0
- package/dist/utils/inference.d.ts.map +1 -1
- package/dist/utils/inference.js +16 -0
- package/package.json +2 -1
- package/prisma/schema.prisma +6 -0
- package/src/index.ts +4 -0
- package/src/lib/jsonConversion.ts +537 -0
- package/src/lib/jsonStyles.ts +36 -0
- package/src/routers/class.ts +14 -3
- package/src/routers/labChat.ts +166 -7
- package/src/routers/message.ts +18 -5
- package/src/utils/inference.ts +19 -0
package/dist/routers/_app.d.ts
CHANGED
|
@@ -1060,6 +1060,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1060
1060
|
annotationId: string | null;
|
|
1061
1061
|
classDraftId: string | null;
|
|
1062
1062
|
folderId: string | null;
|
|
1063
|
+
conversationId: string | null;
|
|
1064
|
+
messageId: string | null;
|
|
1063
1065
|
} | null;
|
|
1064
1066
|
thumbnailId: string | null;
|
|
1065
1067
|
}[];
|
|
@@ -1215,6 +1217,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1215
1217
|
annotationId: string | null;
|
|
1216
1218
|
classDraftId: string | null;
|
|
1217
1219
|
folderId: string | null;
|
|
1220
|
+
conversationId: string | null;
|
|
1221
|
+
messageId: string | null;
|
|
1218
1222
|
}[];
|
|
1219
1223
|
annotations: {
|
|
1220
1224
|
path: string;
|
|
@@ -1230,6 +1234,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1230
1234
|
annotationId: string | null;
|
|
1231
1235
|
classDraftId: string | null;
|
|
1232
1236
|
folderId: string | null;
|
|
1237
|
+
conversationId: string | null;
|
|
1238
|
+
messageId: string | null;
|
|
1233
1239
|
}[];
|
|
1234
1240
|
} & {
|
|
1235
1241
|
id: string;
|
|
@@ -1302,6 +1308,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1302
1308
|
annotationId: string | null;
|
|
1303
1309
|
classDraftId: string | null;
|
|
1304
1310
|
folderId: string | null;
|
|
1311
|
+
conversationId: string | null;
|
|
1312
|
+
messageId: string | null;
|
|
1305
1313
|
}[];
|
|
1306
1314
|
annotations: {
|
|
1307
1315
|
path: string;
|
|
@@ -1317,6 +1325,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1317
1325
|
annotationId: string | null;
|
|
1318
1326
|
classDraftId: string | null;
|
|
1319
1327
|
folderId: string | null;
|
|
1328
|
+
conversationId: string | null;
|
|
1329
|
+
messageId: string | null;
|
|
1320
1330
|
}[];
|
|
1321
1331
|
id: string;
|
|
1322
1332
|
assignmentId: string;
|
|
@@ -1397,6 +1407,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1397
1407
|
annotationId: string | null;
|
|
1398
1408
|
classDraftId: string | null;
|
|
1399
1409
|
folderId: string | null;
|
|
1410
|
+
conversationId: string | null;
|
|
1411
|
+
messageId: string | null;
|
|
1400
1412
|
}[];
|
|
1401
1413
|
annotations: {
|
|
1402
1414
|
path: string;
|
|
@@ -1412,6 +1424,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1412
1424
|
annotationId: string | null;
|
|
1413
1425
|
classDraftId: string | null;
|
|
1414
1426
|
folderId: string | null;
|
|
1427
|
+
conversationId: string | null;
|
|
1428
|
+
messageId: string | null;
|
|
1415
1429
|
}[];
|
|
1416
1430
|
id: string;
|
|
1417
1431
|
assignmentId: string;
|
|
@@ -1501,6 +1515,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1501
1515
|
annotationId: string | null;
|
|
1502
1516
|
classDraftId: string | null;
|
|
1503
1517
|
folderId: string | null;
|
|
1518
|
+
conversationId: string | null;
|
|
1519
|
+
messageId: string | null;
|
|
1504
1520
|
}[];
|
|
1505
1521
|
} & {
|
|
1506
1522
|
id: string;
|
|
@@ -1588,6 +1604,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1588
1604
|
annotationId: string | null;
|
|
1589
1605
|
classDraftId: string | null;
|
|
1590
1606
|
folderId: string | null;
|
|
1607
|
+
conversationId: string | null;
|
|
1608
|
+
messageId: string | null;
|
|
1591
1609
|
} | null;
|
|
1592
1610
|
} & {
|
|
1593
1611
|
path: string;
|
|
@@ -1603,6 +1621,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1603
1621
|
annotationId: string | null;
|
|
1604
1622
|
classDraftId: string | null;
|
|
1605
1623
|
folderId: string | null;
|
|
1624
|
+
conversationId: string | null;
|
|
1625
|
+
messageId: string | null;
|
|
1606
1626
|
})[];
|
|
1607
1627
|
id: string;
|
|
1608
1628
|
assignmentId: string;
|
|
@@ -1705,6 +1725,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1705
1725
|
annotationId: string | null;
|
|
1706
1726
|
classDraftId: string | null;
|
|
1707
1727
|
folderId: string | null;
|
|
1728
|
+
conversationId: string | null;
|
|
1729
|
+
messageId: string | null;
|
|
1708
1730
|
}[];
|
|
1709
1731
|
} & {
|
|
1710
1732
|
id: string;
|
|
@@ -1897,6 +1919,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1897
1919
|
annotationId: string | null;
|
|
1898
1920
|
classDraftId: string | null;
|
|
1899
1921
|
folderId: string | null;
|
|
1922
|
+
conversationId: string | null;
|
|
1923
|
+
messageId: string | null;
|
|
1900
1924
|
}[];
|
|
1901
1925
|
eventAttached: {
|
|
1902
1926
|
id: string;
|
|
@@ -1975,6 +1999,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1975
1999
|
annotationId: string | null;
|
|
1976
2000
|
classDraftId: string | null;
|
|
1977
2001
|
folderId: string | null;
|
|
2002
|
+
conversationId: string | null;
|
|
2003
|
+
messageId: string | null;
|
|
1978
2004
|
}[];
|
|
1979
2005
|
eventAttached: {
|
|
1980
2006
|
id: string;
|
|
@@ -2054,6 +2080,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2054
2080
|
annotationId: string | null;
|
|
2055
2081
|
classDraftId: string | null;
|
|
2056
2082
|
folderId: string | null;
|
|
2083
|
+
conversationId: string | null;
|
|
2084
|
+
messageId: string | null;
|
|
2057
2085
|
}[];
|
|
2058
2086
|
eventAttached: {
|
|
2059
2087
|
id: string;
|
|
@@ -2132,6 +2160,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2132
2160
|
annotationId: string | null;
|
|
2133
2161
|
classDraftId: string | null;
|
|
2134
2162
|
folderId: string | null;
|
|
2163
|
+
conversationId: string | null;
|
|
2164
|
+
messageId: string | null;
|
|
2135
2165
|
}[];
|
|
2136
2166
|
eventAttached: {
|
|
2137
2167
|
id: string;
|
|
@@ -2923,6 +2953,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2923
2953
|
annotationId: string | null;
|
|
2924
2954
|
classDraftId: string | null;
|
|
2925
2955
|
folderId: string | null;
|
|
2956
|
+
conversationId: string | null;
|
|
2957
|
+
messageId: string | null;
|
|
2926
2958
|
};
|
|
2927
2959
|
meta: object;
|
|
2928
2960
|
}>;
|
|
@@ -2952,6 +2984,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2952
2984
|
annotationId: string | null;
|
|
2953
2985
|
classDraftId: string | null;
|
|
2954
2986
|
folderId: string | null;
|
|
2987
|
+
conversationId: string | null;
|
|
2988
|
+
messageId: string | null;
|
|
2955
2989
|
};
|
|
2956
2990
|
meta: object;
|
|
2957
2991
|
}>;
|
|
@@ -3446,8 +3480,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3446
3480
|
id: string;
|
|
3447
3481
|
content: string;
|
|
3448
3482
|
createdAt: Date;
|
|
3449
|
-
senderId: string;
|
|
3450
3483
|
conversationId: string;
|
|
3484
|
+
senderId: string;
|
|
3451
3485
|
};
|
|
3452
3486
|
unreadCount: number;
|
|
3453
3487
|
unreadMentionCount: number;
|
|
@@ -3561,6 +3595,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3561
3595
|
profilePicture: string | null;
|
|
3562
3596
|
} | null;
|
|
3563
3597
|
};
|
|
3598
|
+
attachments: {
|
|
3599
|
+
id: string;
|
|
3600
|
+
name: string;
|
|
3601
|
+
type: string;
|
|
3602
|
+
}[];
|
|
3564
3603
|
mentions: {
|
|
3565
3604
|
user: {
|
|
3566
3605
|
id: string;
|
|
@@ -3826,8 +3865,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3826
3865
|
id: string;
|
|
3827
3866
|
content: string;
|
|
3828
3867
|
createdAt: Date;
|
|
3829
|
-
senderId: string;
|
|
3830
3868
|
conversationId: string;
|
|
3869
|
+
senderId: string;
|
|
3831
3870
|
};
|
|
3832
3871
|
messageCount: number;
|
|
3833
3872
|
}[];
|
|
@@ -4932,6 +4971,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4932
4971
|
annotationId: string | null;
|
|
4933
4972
|
classDraftId: string | null;
|
|
4934
4973
|
folderId: string | null;
|
|
4974
|
+
conversationId: string | null;
|
|
4975
|
+
messageId: string | null;
|
|
4935
4976
|
} | null;
|
|
4936
4977
|
thumbnailId: string | null;
|
|
4937
4978
|
}[];
|
|
@@ -5087,6 +5128,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5087
5128
|
annotationId: string | null;
|
|
5088
5129
|
classDraftId: string | null;
|
|
5089
5130
|
folderId: string | null;
|
|
5131
|
+
conversationId: string | null;
|
|
5132
|
+
messageId: string | null;
|
|
5090
5133
|
}[];
|
|
5091
5134
|
annotations: {
|
|
5092
5135
|
path: string;
|
|
@@ -5102,6 +5145,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5102
5145
|
annotationId: string | null;
|
|
5103
5146
|
classDraftId: string | null;
|
|
5104
5147
|
folderId: string | null;
|
|
5148
|
+
conversationId: string | null;
|
|
5149
|
+
messageId: string | null;
|
|
5105
5150
|
}[];
|
|
5106
5151
|
} & {
|
|
5107
5152
|
id: string;
|
|
@@ -5174,6 +5219,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5174
5219
|
annotationId: string | null;
|
|
5175
5220
|
classDraftId: string | null;
|
|
5176
5221
|
folderId: string | null;
|
|
5222
|
+
conversationId: string | null;
|
|
5223
|
+
messageId: string | null;
|
|
5177
5224
|
}[];
|
|
5178
5225
|
annotations: {
|
|
5179
5226
|
path: string;
|
|
@@ -5189,6 +5236,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5189
5236
|
annotationId: string | null;
|
|
5190
5237
|
classDraftId: string | null;
|
|
5191
5238
|
folderId: string | null;
|
|
5239
|
+
conversationId: string | null;
|
|
5240
|
+
messageId: string | null;
|
|
5192
5241
|
}[];
|
|
5193
5242
|
id: string;
|
|
5194
5243
|
assignmentId: string;
|
|
@@ -5269,6 +5318,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5269
5318
|
annotationId: string | null;
|
|
5270
5319
|
classDraftId: string | null;
|
|
5271
5320
|
folderId: string | null;
|
|
5321
|
+
conversationId: string | null;
|
|
5322
|
+
messageId: string | null;
|
|
5272
5323
|
}[];
|
|
5273
5324
|
annotations: {
|
|
5274
5325
|
path: string;
|
|
@@ -5284,6 +5335,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5284
5335
|
annotationId: string | null;
|
|
5285
5336
|
classDraftId: string | null;
|
|
5286
5337
|
folderId: string | null;
|
|
5338
|
+
conversationId: string | null;
|
|
5339
|
+
messageId: string | null;
|
|
5287
5340
|
}[];
|
|
5288
5341
|
id: string;
|
|
5289
5342
|
assignmentId: string;
|
|
@@ -5373,6 +5426,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5373
5426
|
annotationId: string | null;
|
|
5374
5427
|
classDraftId: string | null;
|
|
5375
5428
|
folderId: string | null;
|
|
5429
|
+
conversationId: string | null;
|
|
5430
|
+
messageId: string | null;
|
|
5376
5431
|
}[];
|
|
5377
5432
|
} & {
|
|
5378
5433
|
id: string;
|
|
@@ -5460,6 +5515,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5460
5515
|
annotationId: string | null;
|
|
5461
5516
|
classDraftId: string | null;
|
|
5462
5517
|
folderId: string | null;
|
|
5518
|
+
conversationId: string | null;
|
|
5519
|
+
messageId: string | null;
|
|
5463
5520
|
} | null;
|
|
5464
5521
|
} & {
|
|
5465
5522
|
path: string;
|
|
@@ -5475,6 +5532,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5475
5532
|
annotationId: string | null;
|
|
5476
5533
|
classDraftId: string | null;
|
|
5477
5534
|
folderId: string | null;
|
|
5535
|
+
conversationId: string | null;
|
|
5536
|
+
messageId: string | null;
|
|
5478
5537
|
})[];
|
|
5479
5538
|
id: string;
|
|
5480
5539
|
assignmentId: string;
|
|
@@ -5577,6 +5636,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5577
5636
|
annotationId: string | null;
|
|
5578
5637
|
classDraftId: string | null;
|
|
5579
5638
|
folderId: string | null;
|
|
5639
|
+
conversationId: string | null;
|
|
5640
|
+
messageId: string | null;
|
|
5580
5641
|
}[];
|
|
5581
5642
|
} & {
|
|
5582
5643
|
id: string;
|
|
@@ -5769,6 +5830,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5769
5830
|
annotationId: string | null;
|
|
5770
5831
|
classDraftId: string | null;
|
|
5771
5832
|
folderId: string | null;
|
|
5833
|
+
conversationId: string | null;
|
|
5834
|
+
messageId: string | null;
|
|
5772
5835
|
}[];
|
|
5773
5836
|
eventAttached: {
|
|
5774
5837
|
id: string;
|
|
@@ -5847,6 +5910,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5847
5910
|
annotationId: string | null;
|
|
5848
5911
|
classDraftId: string | null;
|
|
5849
5912
|
folderId: string | null;
|
|
5913
|
+
conversationId: string | null;
|
|
5914
|
+
messageId: string | null;
|
|
5850
5915
|
}[];
|
|
5851
5916
|
eventAttached: {
|
|
5852
5917
|
id: string;
|
|
@@ -5926,6 +5991,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5926
5991
|
annotationId: string | null;
|
|
5927
5992
|
classDraftId: string | null;
|
|
5928
5993
|
folderId: string | null;
|
|
5994
|
+
conversationId: string | null;
|
|
5995
|
+
messageId: string | null;
|
|
5929
5996
|
}[];
|
|
5930
5997
|
eventAttached: {
|
|
5931
5998
|
id: string;
|
|
@@ -6004,6 +6071,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6004
6071
|
annotationId: string | null;
|
|
6005
6072
|
classDraftId: string | null;
|
|
6006
6073
|
folderId: string | null;
|
|
6074
|
+
conversationId: string | null;
|
|
6075
|
+
messageId: string | null;
|
|
6007
6076
|
}[];
|
|
6008
6077
|
eventAttached: {
|
|
6009
6078
|
id: string;
|
|
@@ -6795,6 +6864,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6795
6864
|
annotationId: string | null;
|
|
6796
6865
|
classDraftId: string | null;
|
|
6797
6866
|
folderId: string | null;
|
|
6867
|
+
conversationId: string | null;
|
|
6868
|
+
messageId: string | null;
|
|
6798
6869
|
};
|
|
6799
6870
|
meta: object;
|
|
6800
6871
|
}>;
|
|
@@ -6824,6 +6895,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6824
6895
|
annotationId: string | null;
|
|
6825
6896
|
classDraftId: string | null;
|
|
6826
6897
|
folderId: string | null;
|
|
6898
|
+
conversationId: string | null;
|
|
6899
|
+
messageId: string | null;
|
|
6827
6900
|
};
|
|
6828
6901
|
meta: object;
|
|
6829
6902
|
}>;
|
|
@@ -7318,8 +7391,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7318
7391
|
id: string;
|
|
7319
7392
|
content: string;
|
|
7320
7393
|
createdAt: Date;
|
|
7321
|
-
senderId: string;
|
|
7322
7394
|
conversationId: string;
|
|
7395
|
+
senderId: string;
|
|
7323
7396
|
};
|
|
7324
7397
|
unreadCount: number;
|
|
7325
7398
|
unreadMentionCount: number;
|
|
@@ -7433,6 +7506,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7433
7506
|
profilePicture: string | null;
|
|
7434
7507
|
} | null;
|
|
7435
7508
|
};
|
|
7509
|
+
attachments: {
|
|
7510
|
+
id: string;
|
|
7511
|
+
name: string;
|
|
7512
|
+
type: string;
|
|
7513
|
+
}[];
|
|
7436
7514
|
mentions: {
|
|
7437
7515
|
user: {
|
|
7438
7516
|
id: string;
|
|
@@ -7698,8 +7776,8 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
7698
7776
|
id: string;
|
|
7699
7777
|
content: string;
|
|
7700
7778
|
createdAt: Date;
|
|
7701
|
-
senderId: string;
|
|
7702
7779
|
conversationId: string;
|
|
7780
|
+
senderId: string;
|
|
7703
7781
|
};
|
|
7704
7782
|
messageCount: number;
|
|
7705
7783
|
}[];
|
|
@@ -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,cAAc,CAAC;AAa1E,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"_app.d.ts","sourceRoot":"","sources":["../../src/routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAa1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
|
|
@@ -212,6 +212,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
212
212
|
annotationId: string | null;
|
|
213
213
|
classDraftId: string | null;
|
|
214
214
|
folderId: string | null;
|
|
215
|
+
conversationId: string | null;
|
|
216
|
+
messageId: string | null;
|
|
215
217
|
} | null;
|
|
216
218
|
thumbnailId: string | null;
|
|
217
219
|
}[];
|
|
@@ -367,6 +369,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
367
369
|
annotationId: string | null;
|
|
368
370
|
classDraftId: string | null;
|
|
369
371
|
folderId: string | null;
|
|
372
|
+
conversationId: string | null;
|
|
373
|
+
messageId: string | null;
|
|
370
374
|
}[];
|
|
371
375
|
annotations: {
|
|
372
376
|
path: string;
|
|
@@ -382,6 +386,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
382
386
|
annotationId: string | null;
|
|
383
387
|
classDraftId: string | null;
|
|
384
388
|
folderId: string | null;
|
|
389
|
+
conversationId: string | null;
|
|
390
|
+
messageId: string | null;
|
|
385
391
|
}[];
|
|
386
392
|
} & {
|
|
387
393
|
id: string;
|
|
@@ -454,6 +460,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
454
460
|
annotationId: string | null;
|
|
455
461
|
classDraftId: string | null;
|
|
456
462
|
folderId: string | null;
|
|
463
|
+
conversationId: string | null;
|
|
464
|
+
messageId: string | null;
|
|
457
465
|
}[];
|
|
458
466
|
annotations: {
|
|
459
467
|
path: string;
|
|
@@ -469,6 +477,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
469
477
|
annotationId: string | null;
|
|
470
478
|
classDraftId: string | null;
|
|
471
479
|
folderId: string | null;
|
|
480
|
+
conversationId: string | null;
|
|
481
|
+
messageId: string | null;
|
|
472
482
|
}[];
|
|
473
483
|
id: string;
|
|
474
484
|
assignmentId: string;
|
|
@@ -549,6 +559,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
549
559
|
annotationId: string | null;
|
|
550
560
|
classDraftId: string | null;
|
|
551
561
|
folderId: string | null;
|
|
562
|
+
conversationId: string | null;
|
|
563
|
+
messageId: string | null;
|
|
552
564
|
}[];
|
|
553
565
|
annotations: {
|
|
554
566
|
path: string;
|
|
@@ -564,6 +576,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
564
576
|
annotationId: string | null;
|
|
565
577
|
classDraftId: string | null;
|
|
566
578
|
folderId: string | null;
|
|
579
|
+
conversationId: string | null;
|
|
580
|
+
messageId: string | null;
|
|
567
581
|
}[];
|
|
568
582
|
id: string;
|
|
569
583
|
assignmentId: string;
|
|
@@ -653,6 +667,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
653
667
|
annotationId: string | null;
|
|
654
668
|
classDraftId: string | null;
|
|
655
669
|
folderId: string | null;
|
|
670
|
+
conversationId: string | null;
|
|
671
|
+
messageId: string | null;
|
|
656
672
|
}[];
|
|
657
673
|
} & {
|
|
658
674
|
id: string;
|
|
@@ -740,6 +756,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
740
756
|
annotationId: string | null;
|
|
741
757
|
classDraftId: string | null;
|
|
742
758
|
folderId: string | null;
|
|
759
|
+
conversationId: string | null;
|
|
760
|
+
messageId: string | null;
|
|
743
761
|
} | null;
|
|
744
762
|
} & {
|
|
745
763
|
path: string;
|
|
@@ -755,6 +773,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
755
773
|
annotationId: string | null;
|
|
756
774
|
classDraftId: string | null;
|
|
757
775
|
folderId: string | null;
|
|
776
|
+
conversationId: string | null;
|
|
777
|
+
messageId: string | null;
|
|
758
778
|
})[];
|
|
759
779
|
id: string;
|
|
760
780
|
assignmentId: string;
|
|
@@ -857,6 +877,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
857
877
|
annotationId: string | null;
|
|
858
878
|
classDraftId: string | null;
|
|
859
879
|
folderId: string | null;
|
|
880
|
+
conversationId: string | null;
|
|
881
|
+
messageId: string | null;
|
|
860
882
|
}[];
|
|
861
883
|
} & {
|
|
862
884
|
id: string;
|
|
@@ -1049,6 +1071,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1049
1071
|
annotationId: string | null;
|
|
1050
1072
|
classDraftId: string | null;
|
|
1051
1073
|
folderId: string | null;
|
|
1074
|
+
conversationId: string | null;
|
|
1075
|
+
messageId: string | null;
|
|
1052
1076
|
}[];
|
|
1053
1077
|
eventAttached: {
|
|
1054
1078
|
id: string;
|
|
@@ -1127,6 +1151,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1127
1151
|
annotationId: string | null;
|
|
1128
1152
|
classDraftId: string | null;
|
|
1129
1153
|
folderId: string | null;
|
|
1154
|
+
conversationId: string | null;
|
|
1155
|
+
messageId: string | null;
|
|
1130
1156
|
}[];
|
|
1131
1157
|
eventAttached: {
|
|
1132
1158
|
id: string;
|
|
@@ -1206,6 +1232,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1206
1232
|
annotationId: string | null;
|
|
1207
1233
|
classDraftId: string | null;
|
|
1208
1234
|
folderId: string | null;
|
|
1235
|
+
conversationId: string | null;
|
|
1236
|
+
messageId: string | null;
|
|
1209
1237
|
}[];
|
|
1210
1238
|
eventAttached: {
|
|
1211
1239
|
id: string;
|
|
@@ -1284,6 +1312,8 @@ export declare const assignmentRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1284
1312
|
annotationId: string | null;
|
|
1285
1313
|
classDraftId: string | null;
|
|
1286
1314
|
folderId: string | null;
|
|
1315
|
+
conversationId: string | null;
|
|
1316
|
+
messageId: string | null;
|
|
1287
1317
|
}[];
|
|
1288
1318
|
eventAttached: {
|
|
1289
1319
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsFxB,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"assignment.d.ts","sourceRoot":"","sources":["../../src/routers/assignment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsFxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;GA+rD3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../src/routers/class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../src/routers/class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmkCtB,CAAC"}
|
package/dist/routers/class.js
CHANGED
|
@@ -85,6 +85,14 @@ export const classRouter = createTRPCRouter({
|
|
|
85
85
|
}))
|
|
86
86
|
.query(async ({ ctx, input }) => {
|
|
87
87
|
const { classId } = input;
|
|
88
|
+
const isTeacher = await prisma.class.findFirst({
|
|
89
|
+
where: {
|
|
90
|
+
id: classId,
|
|
91
|
+
teachers: {
|
|
92
|
+
some: { id: ctx.user?.id },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
});
|
|
88
96
|
const classData = await prisma.class.findUnique({
|
|
89
97
|
where: {
|
|
90
98
|
id: classId,
|
|
@@ -165,9 +173,11 @@ export const classRouter = createTRPCRouter({
|
|
|
165
173
|
},
|
|
166
174
|
},
|
|
167
175
|
submissions: {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
176
|
+
...(!isTeacher && {
|
|
177
|
+
where: {
|
|
178
|
+
studentId: ctx.user?.id,
|
|
179
|
+
},
|
|
180
|
+
}),
|
|
171
181
|
select: {
|
|
172
182
|
studentId: true,
|
|
173
183
|
id: true,
|
|
@@ -58,8 +58,8 @@ export declare const conversationRouter: import("@trpc/server").TRPCBuiltRouter<
|
|
|
58
58
|
id: string;
|
|
59
59
|
content: string;
|
|
60
60
|
createdAt: Date;
|
|
61
|
-
senderId: string;
|
|
62
61
|
conversationId: string;
|
|
62
|
+
senderId: string;
|
|
63
63
|
};
|
|
64
64
|
unreadCount: number;
|
|
65
65
|
unreadMentionCount: number;
|
package/dist/routers/file.d.ts
CHANGED
|
@@ -51,6 +51,8 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
51
51
|
annotationId: string | null;
|
|
52
52
|
classDraftId: string | null;
|
|
53
53
|
folderId: string | null;
|
|
54
|
+
conversationId: string | null;
|
|
55
|
+
messageId: string | null;
|
|
54
56
|
};
|
|
55
57
|
meta: object;
|
|
56
58
|
}>;
|
|
@@ -80,6 +82,8 @@ export declare const fileRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
80
82
|
annotationId: string | null;
|
|
81
83
|
classDraftId: string | null;
|
|
82
84
|
folderId: string | null;
|
|
85
|
+
conversationId: string | null;
|
|
86
|
+
messageId: string | null;
|
|
83
87
|
};
|
|
84
88
|
meta: object;
|
|
85
89
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/routers/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/routers/file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsVrB,CAAC"}
|
|
@@ -162,8 +162,8 @@ export declare const labChatRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
162
162
|
id: string;
|
|
163
163
|
content: string;
|
|
164
164
|
createdAt: Date;
|
|
165
|
-
senderId: string;
|
|
166
165
|
conversationId: string;
|
|
166
|
+
senderId: string;
|
|
167
167
|
};
|
|
168
168
|
messageCount: number;
|
|
169
169
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labChat.d.ts","sourceRoot":"","sources":["../../src/routers/labChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"labChat.d.ts","sourceRoot":"","sources":["../../src/routers/labChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiBxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAonBxB,CAAC"}
|