@studious-lms/server 1.0.8 → 1.1.1
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/routers/_app.d.ts +200 -14
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/assignment.d.ts +56 -0
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/assignment.js +14 -0
- package/dist/routers/class.d.ts +14 -5
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/class.js +13 -10
- package/dist/routers/event.d.ts +2 -0
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/folder.d.ts +11 -2
- package/dist/routers/folder.d.ts.map +1 -1
- package/dist/routers/folder.js +17 -6
- package/dist/routers/section.d.ts +17 -0
- package/dist/routers/section.d.ts.map +1 -1
- package/dist/routers/section.js +46 -0
- package/package.json +1 -1
- package/prisma/schema.prisma +5 -0
- package/src/routers/assignment.ts +17 -0
- package/src/routers/class.ts +16 -11
- package/src/routers/folder.ts +17 -6
- package/src/routers/section.ts +51 -0
package/dist/routers/_app.d.ts
CHANGED
|
@@ -79,6 +79,13 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
79
79
|
};
|
|
80
80
|
output: {
|
|
81
81
|
class: {
|
|
82
|
+
sections: {
|
|
83
|
+
id: string;
|
|
84
|
+
name: string;
|
|
85
|
+
color: string | null;
|
|
86
|
+
classId: string;
|
|
87
|
+
order: number | null;
|
|
88
|
+
}[];
|
|
82
89
|
assignments: {
|
|
83
90
|
late: boolean;
|
|
84
91
|
submitted: boolean;
|
|
@@ -113,11 +120,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
113
120
|
structured: string;
|
|
114
121
|
} | null;
|
|
115
122
|
}[];
|
|
116
|
-
sections: {
|
|
117
|
-
id: string;
|
|
118
|
-
name: string;
|
|
119
|
-
classId: string;
|
|
120
|
-
}[];
|
|
121
123
|
announcements: {
|
|
122
124
|
id: string;
|
|
123
125
|
remarks: string;
|
|
@@ -324,6 +326,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
324
326
|
createdAt: Date;
|
|
325
327
|
modifiedAt: Date;
|
|
326
328
|
rubricState: string | null;
|
|
329
|
+
teacherComments: string | null;
|
|
327
330
|
submittedAt: Date | null;
|
|
328
331
|
submitted: boolean | null;
|
|
329
332
|
returned: boolean | null;
|
|
@@ -354,6 +357,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
354
357
|
createdAt: Date;
|
|
355
358
|
modifiedAt: Date;
|
|
356
359
|
rubricState: string | null;
|
|
360
|
+
teacherComments: string | null;
|
|
357
361
|
submittedAt: Date | null;
|
|
358
362
|
submitted: boolean | null;
|
|
359
363
|
returned: boolean | null;
|
|
@@ -537,6 +541,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
537
541
|
modifiedAt: Date | null;
|
|
538
542
|
teacherId: string;
|
|
539
543
|
inProgress: boolean;
|
|
544
|
+
order: number | null;
|
|
540
545
|
}[];
|
|
541
546
|
meta: object;
|
|
542
547
|
}>;
|
|
@@ -574,6 +579,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
574
579
|
modifiedAt: Date | null;
|
|
575
580
|
teacherId: string;
|
|
576
581
|
inProgress: boolean;
|
|
582
|
+
order: number | null;
|
|
577
583
|
};
|
|
578
584
|
meta: object;
|
|
579
585
|
}>;
|
|
@@ -611,6 +617,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
611
617
|
modifiedAt: Date | null;
|
|
612
618
|
teacherId: string;
|
|
613
619
|
inProgress: boolean;
|
|
620
|
+
order: number | null;
|
|
614
621
|
};
|
|
615
622
|
meta: object;
|
|
616
623
|
}>;
|
|
@@ -639,6 +646,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
639
646
|
modifiedAt: Date | null;
|
|
640
647
|
teacherId: string;
|
|
641
648
|
inProgress: boolean;
|
|
649
|
+
order: number | null;
|
|
642
650
|
};
|
|
643
651
|
meta: object;
|
|
644
652
|
}>;
|
|
@@ -671,6 +679,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
671
679
|
modifiedAt: Date | null;
|
|
672
680
|
teacherId: string;
|
|
673
681
|
inProgress: boolean;
|
|
682
|
+
order: number | null;
|
|
674
683
|
};
|
|
675
684
|
meta: object;
|
|
676
685
|
}>;
|
|
@@ -832,6 +841,36 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
832
841
|
};
|
|
833
842
|
transformer: false;
|
|
834
843
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
844
|
+
order: import("@trpc/server").TRPCMutationProcedure<{
|
|
845
|
+
input: {
|
|
846
|
+
[x: string]: unknown;
|
|
847
|
+
classId: string;
|
|
848
|
+
id: string;
|
|
849
|
+
order: number;
|
|
850
|
+
};
|
|
851
|
+
output: {
|
|
852
|
+
type: import(".prisma/client").$Enums.AssignmentType;
|
|
853
|
+
id: string;
|
|
854
|
+
title: string;
|
|
855
|
+
dueDate: Date;
|
|
856
|
+
maxGrade: number | null;
|
|
857
|
+
classId: string;
|
|
858
|
+
eventId: string | null;
|
|
859
|
+
markSchemeId: string | null;
|
|
860
|
+
gradingBoundaryId: string | null;
|
|
861
|
+
instructions: string;
|
|
862
|
+
weight: number;
|
|
863
|
+
graded: boolean;
|
|
864
|
+
sectionId: string | null;
|
|
865
|
+
template: boolean;
|
|
866
|
+
createdAt: Date | null;
|
|
867
|
+
modifiedAt: Date | null;
|
|
868
|
+
teacherId: string;
|
|
869
|
+
inProgress: boolean;
|
|
870
|
+
order: number | null;
|
|
871
|
+
};
|
|
872
|
+
meta: object;
|
|
873
|
+
}>;
|
|
835
874
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
836
875
|
input: {
|
|
837
876
|
title: string;
|
|
@@ -926,7 +965,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
926
965
|
section: {
|
|
927
966
|
id: string;
|
|
928
967
|
name: string;
|
|
968
|
+
color: string | null;
|
|
929
969
|
classId: string;
|
|
970
|
+
order: number | null;
|
|
930
971
|
} | null;
|
|
931
972
|
title: string;
|
|
932
973
|
dueDate: Date;
|
|
@@ -1053,6 +1094,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1053
1094
|
modifiedAt: Date | null;
|
|
1054
1095
|
teacherId: string;
|
|
1055
1096
|
inProgress: boolean;
|
|
1097
|
+
order: number | null;
|
|
1056
1098
|
};
|
|
1057
1099
|
meta: object;
|
|
1058
1100
|
}>;
|
|
@@ -1100,6 +1142,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1100
1142
|
modifiedAt: Date | null;
|
|
1101
1143
|
teacherId: string;
|
|
1102
1144
|
inProgress: boolean;
|
|
1145
|
+
order: number | null;
|
|
1103
1146
|
};
|
|
1104
1147
|
student: {
|
|
1105
1148
|
id: string;
|
|
@@ -1143,6 +1186,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1143
1186
|
createdAt: Date;
|
|
1144
1187
|
modifiedAt: Date;
|
|
1145
1188
|
rubricState: string | null;
|
|
1189
|
+
teacherComments: string | null;
|
|
1146
1190
|
submittedAt: Date | null;
|
|
1147
1191
|
submitted: boolean | null;
|
|
1148
1192
|
returned: boolean | null;
|
|
@@ -1185,6 +1229,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1185
1229
|
modifiedAt: Date | null;
|
|
1186
1230
|
teacherId: string;
|
|
1187
1231
|
inProgress: boolean;
|
|
1232
|
+
order: number | null;
|
|
1188
1233
|
};
|
|
1189
1234
|
student: {
|
|
1190
1235
|
id: string;
|
|
@@ -1227,6 +1272,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1227
1272
|
createdAt: Date;
|
|
1228
1273
|
modifiedAt: Date;
|
|
1229
1274
|
rubricState: string | null;
|
|
1275
|
+
teacherComments: string | null;
|
|
1230
1276
|
submittedAt: Date | null;
|
|
1231
1277
|
submitted: boolean | null;
|
|
1232
1278
|
returned: boolean | null;
|
|
@@ -1278,6 +1324,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1278
1324
|
modifiedAt: Date | null;
|
|
1279
1325
|
teacherId: string;
|
|
1280
1326
|
inProgress: boolean;
|
|
1327
|
+
order: number | null;
|
|
1281
1328
|
};
|
|
1282
1329
|
student: {
|
|
1283
1330
|
id: string;
|
|
@@ -1320,6 +1367,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1320
1367
|
createdAt: Date;
|
|
1321
1368
|
modifiedAt: Date;
|
|
1322
1369
|
rubricState: string | null;
|
|
1370
|
+
teacherComments: string | null;
|
|
1323
1371
|
submittedAt: Date | null;
|
|
1324
1372
|
submitted: boolean | null;
|
|
1325
1373
|
returned: boolean | null;
|
|
@@ -1380,6 +1428,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1380
1428
|
modifiedAt: Date | null;
|
|
1381
1429
|
teacherId: string;
|
|
1382
1430
|
inProgress: boolean;
|
|
1431
|
+
order: number | null;
|
|
1383
1432
|
};
|
|
1384
1433
|
student: {
|
|
1385
1434
|
id: string;
|
|
@@ -1408,6 +1457,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1408
1457
|
createdAt: Date;
|
|
1409
1458
|
modifiedAt: Date;
|
|
1410
1459
|
rubricState: string | null;
|
|
1460
|
+
teacherComments: string | null;
|
|
1411
1461
|
submittedAt: Date | null;
|
|
1412
1462
|
submitted: boolean | null;
|
|
1413
1463
|
returned: boolean | null;
|
|
@@ -1459,6 +1509,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1459
1509
|
modifiedAt: Date | null;
|
|
1460
1510
|
teacherId: string;
|
|
1461
1511
|
inProgress: boolean;
|
|
1512
|
+
order: number | null;
|
|
1462
1513
|
};
|
|
1463
1514
|
student: {
|
|
1464
1515
|
id: string;
|
|
@@ -1502,6 +1553,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1502
1553
|
createdAt: Date;
|
|
1503
1554
|
modifiedAt: Date;
|
|
1504
1555
|
rubricState: string | null;
|
|
1556
|
+
teacherComments: string | null;
|
|
1505
1557
|
submittedAt: Date | null;
|
|
1506
1558
|
submitted: boolean | null;
|
|
1507
1559
|
returned: boolean | null;
|
|
@@ -1569,6 +1621,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1569
1621
|
modifiedAt: Date | null;
|
|
1570
1622
|
teacherId: string;
|
|
1571
1623
|
inProgress: boolean;
|
|
1624
|
+
order: number | null;
|
|
1572
1625
|
};
|
|
1573
1626
|
student: {
|
|
1574
1627
|
id: string;
|
|
@@ -1597,6 +1650,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1597
1650
|
createdAt: Date;
|
|
1598
1651
|
modifiedAt: Date;
|
|
1599
1652
|
rubricState: string | null;
|
|
1653
|
+
teacherComments: string | null;
|
|
1600
1654
|
submittedAt: Date | null;
|
|
1601
1655
|
submitted: boolean | null;
|
|
1602
1656
|
returned: boolean | null;
|
|
@@ -1650,6 +1704,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1650
1704
|
modifiedAt: Date | null;
|
|
1651
1705
|
teacherId: string;
|
|
1652
1706
|
inProgress: boolean;
|
|
1707
|
+
order: number | null;
|
|
1653
1708
|
};
|
|
1654
1709
|
};
|
|
1655
1710
|
meta: object;
|
|
@@ -1700,6 +1755,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1700
1755
|
modifiedAt: Date | null;
|
|
1701
1756
|
teacherId: string;
|
|
1702
1757
|
inProgress: boolean;
|
|
1758
|
+
order: number | null;
|
|
1703
1759
|
};
|
|
1704
1760
|
};
|
|
1705
1761
|
meta: object;
|
|
@@ -1749,7 +1805,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1749
1805
|
section: {
|
|
1750
1806
|
id: string;
|
|
1751
1807
|
name: string;
|
|
1808
|
+
color: string | null;
|
|
1752
1809
|
classId: string;
|
|
1810
|
+
order: number | null;
|
|
1753
1811
|
} | null;
|
|
1754
1812
|
teacher: {
|
|
1755
1813
|
id: string;
|
|
@@ -1811,6 +1869,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1811
1869
|
modifiedAt: Date | null;
|
|
1812
1870
|
teacherId: string;
|
|
1813
1871
|
inProgress: boolean;
|
|
1872
|
+
order: number | null;
|
|
1814
1873
|
};
|
|
1815
1874
|
meta: object;
|
|
1816
1875
|
}>;
|
|
@@ -1824,7 +1883,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1824
1883
|
section: {
|
|
1825
1884
|
id: string;
|
|
1826
1885
|
name: string;
|
|
1886
|
+
color: string | null;
|
|
1827
1887
|
classId: string;
|
|
1888
|
+
order: number | null;
|
|
1828
1889
|
} | null;
|
|
1829
1890
|
teacher: {
|
|
1830
1891
|
id: string;
|
|
@@ -1886,6 +1947,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1886
1947
|
modifiedAt: Date | null;
|
|
1887
1948
|
teacherId: string;
|
|
1888
1949
|
inProgress: boolean;
|
|
1950
|
+
order: number | null;
|
|
1889
1951
|
};
|
|
1890
1952
|
meta: object;
|
|
1891
1953
|
}>;
|
|
@@ -1900,7 +1962,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1900
1962
|
section: {
|
|
1901
1963
|
id: string;
|
|
1902
1964
|
name: string;
|
|
1965
|
+
color: string | null;
|
|
1903
1966
|
classId: string;
|
|
1967
|
+
order: number | null;
|
|
1904
1968
|
} | null;
|
|
1905
1969
|
teacher: {
|
|
1906
1970
|
id: string;
|
|
@@ -1962,6 +2026,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1962
2026
|
modifiedAt: Date | null;
|
|
1963
2027
|
teacherId: string;
|
|
1964
2028
|
inProgress: boolean;
|
|
2029
|
+
order: number | null;
|
|
1965
2030
|
};
|
|
1966
2031
|
meta: object;
|
|
1967
2032
|
}>;
|
|
@@ -2037,11 +2102,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2037
2102
|
input: {
|
|
2038
2103
|
name: string;
|
|
2039
2104
|
classId: string;
|
|
2105
|
+
color?: string | undefined;
|
|
2040
2106
|
};
|
|
2041
2107
|
output: {
|
|
2042
2108
|
id: string;
|
|
2043
2109
|
name: string;
|
|
2110
|
+
color: string | null;
|
|
2044
2111
|
classId: string;
|
|
2112
|
+
order: number | null;
|
|
2045
2113
|
};
|
|
2046
2114
|
meta: object;
|
|
2047
2115
|
}>;
|
|
@@ -2050,11 +2118,25 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2050
2118
|
id: string;
|
|
2051
2119
|
name: string;
|
|
2052
2120
|
classId: string;
|
|
2121
|
+
color?: string | undefined;
|
|
2053
2122
|
};
|
|
2054
2123
|
output: {
|
|
2055
2124
|
id: string;
|
|
2056
2125
|
name: string;
|
|
2126
|
+
color: string | null;
|
|
2127
|
+
classId: string;
|
|
2128
|
+
order: number | null;
|
|
2129
|
+
};
|
|
2130
|
+
meta: object;
|
|
2131
|
+
}>;
|
|
2132
|
+
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
2133
|
+
input: {
|
|
2134
|
+
id: string;
|
|
2057
2135
|
classId: string;
|
|
2136
|
+
order: number;
|
|
2137
|
+
};
|
|
2138
|
+
output: {
|
|
2139
|
+
id: string;
|
|
2058
2140
|
};
|
|
2059
2141
|
meta: object;
|
|
2060
2142
|
}>;
|
|
@@ -2353,6 +2435,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2353
2435
|
modifiedAt: Date | null;
|
|
2354
2436
|
teacherId: string;
|
|
2355
2437
|
inProgress: boolean;
|
|
2438
|
+
order: number | null;
|
|
2356
2439
|
};
|
|
2357
2440
|
};
|
|
2358
2441
|
meta: object;
|
|
@@ -2396,6 +2479,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2396
2479
|
modifiedAt: Date | null;
|
|
2397
2480
|
teacherId: string;
|
|
2398
2481
|
inProgress: boolean;
|
|
2482
|
+
order: number | null;
|
|
2399
2483
|
};
|
|
2400
2484
|
};
|
|
2401
2485
|
meta: object;
|
|
@@ -2712,6 +2796,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2712
2796
|
[x: string]: unknown;
|
|
2713
2797
|
classId: string;
|
|
2714
2798
|
name: string;
|
|
2799
|
+
color?: string | undefined;
|
|
2715
2800
|
parentFolderId?: string | undefined;
|
|
2716
2801
|
};
|
|
2717
2802
|
output: {
|
|
@@ -2737,6 +2822,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2737
2822
|
} & {
|
|
2738
2823
|
id: string;
|
|
2739
2824
|
name: string;
|
|
2825
|
+
color: string | null;
|
|
2740
2826
|
classId: string | null;
|
|
2741
2827
|
parentFolderId: string | null;
|
|
2742
2828
|
};
|
|
@@ -2775,6 +2861,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2775
2861
|
} & {
|
|
2776
2862
|
id: string;
|
|
2777
2863
|
name: string;
|
|
2864
|
+
color: string | null;
|
|
2778
2865
|
classId: string | null;
|
|
2779
2866
|
parentFolderId: string | null;
|
|
2780
2867
|
};
|
|
@@ -2808,6 +2895,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2808
2895
|
} & {
|
|
2809
2896
|
id: string;
|
|
2810
2897
|
name: string;
|
|
2898
|
+
color: string | null;
|
|
2811
2899
|
classId: string | null;
|
|
2812
2900
|
parentFolderId: string | null;
|
|
2813
2901
|
})[];
|
|
@@ -2842,6 +2930,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2842
2930
|
} & {
|
|
2843
2931
|
id: string;
|
|
2844
2932
|
name: string;
|
|
2933
|
+
color: string | null;
|
|
2845
2934
|
classId: string | null;
|
|
2846
2935
|
parentFolderId: string | null;
|
|
2847
2936
|
})[];
|
|
@@ -2877,6 +2966,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2877
2966
|
} & {
|
|
2878
2967
|
id: string;
|
|
2879
2968
|
name: string;
|
|
2969
|
+
color: string | null;
|
|
2880
2970
|
classId: string | null;
|
|
2881
2971
|
parentFolderId: string | null;
|
|
2882
2972
|
}) | null;
|
|
@@ -2943,17 +3033,19 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2943
3033
|
} & {
|
|
2944
3034
|
id: string;
|
|
2945
3035
|
name: string;
|
|
3036
|
+
color: string | null;
|
|
2946
3037
|
classId: string | null;
|
|
2947
3038
|
parentFolderId: string | null;
|
|
2948
3039
|
};
|
|
2949
3040
|
meta: object;
|
|
2950
3041
|
}>;
|
|
2951
|
-
|
|
3042
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
2952
3043
|
input: {
|
|
2953
3044
|
[x: string]: unknown;
|
|
2954
3045
|
classId: string;
|
|
3046
|
+
name: string;
|
|
2955
3047
|
folderId: string;
|
|
2956
|
-
|
|
3048
|
+
color?: string | undefined;
|
|
2957
3049
|
};
|
|
2958
3050
|
output: {
|
|
2959
3051
|
files: {
|
|
@@ -2978,6 +3070,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2978
3070
|
} & {
|
|
2979
3071
|
id: string;
|
|
2980
3072
|
name: string;
|
|
3073
|
+
color: string | null;
|
|
2981
3074
|
classId: string | null;
|
|
2982
3075
|
parentFolderId: string | null;
|
|
2983
3076
|
};
|
|
@@ -3169,6 +3262,13 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3169
3262
|
};
|
|
3170
3263
|
output: {
|
|
3171
3264
|
class: {
|
|
3265
|
+
sections: {
|
|
3266
|
+
id: string;
|
|
3267
|
+
name: string;
|
|
3268
|
+
color: string | null;
|
|
3269
|
+
classId: string;
|
|
3270
|
+
order: number | null;
|
|
3271
|
+
}[];
|
|
3172
3272
|
assignments: {
|
|
3173
3273
|
late: boolean;
|
|
3174
3274
|
submitted: boolean;
|
|
@@ -3203,11 +3303,6 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3203
3303
|
structured: string;
|
|
3204
3304
|
} | null;
|
|
3205
3305
|
}[];
|
|
3206
|
-
sections: {
|
|
3207
|
-
id: string;
|
|
3208
|
-
name: string;
|
|
3209
|
-
classId: string;
|
|
3210
|
-
}[];
|
|
3211
3306
|
announcements: {
|
|
3212
3307
|
id: string;
|
|
3213
3308
|
remarks: string;
|
|
@@ -3414,6 +3509,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3414
3509
|
createdAt: Date;
|
|
3415
3510
|
modifiedAt: Date;
|
|
3416
3511
|
rubricState: string | null;
|
|
3512
|
+
teacherComments: string | null;
|
|
3417
3513
|
submittedAt: Date | null;
|
|
3418
3514
|
submitted: boolean | null;
|
|
3419
3515
|
returned: boolean | null;
|
|
@@ -3444,6 +3540,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3444
3540
|
createdAt: Date;
|
|
3445
3541
|
modifiedAt: Date;
|
|
3446
3542
|
rubricState: string | null;
|
|
3543
|
+
teacherComments: string | null;
|
|
3447
3544
|
submittedAt: Date | null;
|
|
3448
3545
|
submitted: boolean | null;
|
|
3449
3546
|
returned: boolean | null;
|
|
@@ -3627,6 +3724,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3627
3724
|
modifiedAt: Date | null;
|
|
3628
3725
|
teacherId: string;
|
|
3629
3726
|
inProgress: boolean;
|
|
3727
|
+
order: number | null;
|
|
3630
3728
|
}[];
|
|
3631
3729
|
meta: object;
|
|
3632
3730
|
}>;
|
|
@@ -3664,6 +3762,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3664
3762
|
modifiedAt: Date | null;
|
|
3665
3763
|
teacherId: string;
|
|
3666
3764
|
inProgress: boolean;
|
|
3765
|
+
order: number | null;
|
|
3667
3766
|
};
|
|
3668
3767
|
meta: object;
|
|
3669
3768
|
}>;
|
|
@@ -3701,6 +3800,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3701
3800
|
modifiedAt: Date | null;
|
|
3702
3801
|
teacherId: string;
|
|
3703
3802
|
inProgress: boolean;
|
|
3803
|
+
order: number | null;
|
|
3704
3804
|
};
|
|
3705
3805
|
meta: object;
|
|
3706
3806
|
}>;
|
|
@@ -3729,6 +3829,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3729
3829
|
modifiedAt: Date | null;
|
|
3730
3830
|
teacherId: string;
|
|
3731
3831
|
inProgress: boolean;
|
|
3832
|
+
order: number | null;
|
|
3732
3833
|
};
|
|
3733
3834
|
meta: object;
|
|
3734
3835
|
}>;
|
|
@@ -3761,6 +3862,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3761
3862
|
modifiedAt: Date | null;
|
|
3762
3863
|
teacherId: string;
|
|
3763
3864
|
inProgress: boolean;
|
|
3865
|
+
order: number | null;
|
|
3764
3866
|
};
|
|
3765
3867
|
meta: object;
|
|
3766
3868
|
}>;
|
|
@@ -3922,6 +4024,36 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
3922
4024
|
};
|
|
3923
4025
|
transformer: false;
|
|
3924
4026
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4027
|
+
order: import("@trpc/server").TRPCMutationProcedure<{
|
|
4028
|
+
input: {
|
|
4029
|
+
[x: string]: unknown;
|
|
4030
|
+
classId: string;
|
|
4031
|
+
id: string;
|
|
4032
|
+
order: number;
|
|
4033
|
+
};
|
|
4034
|
+
output: {
|
|
4035
|
+
type: import(".prisma/client").$Enums.AssignmentType;
|
|
4036
|
+
id: string;
|
|
4037
|
+
title: string;
|
|
4038
|
+
dueDate: Date;
|
|
4039
|
+
maxGrade: number | null;
|
|
4040
|
+
classId: string;
|
|
4041
|
+
eventId: string | null;
|
|
4042
|
+
markSchemeId: string | null;
|
|
4043
|
+
gradingBoundaryId: string | null;
|
|
4044
|
+
instructions: string;
|
|
4045
|
+
weight: number;
|
|
4046
|
+
graded: boolean;
|
|
4047
|
+
sectionId: string | null;
|
|
4048
|
+
template: boolean;
|
|
4049
|
+
createdAt: Date | null;
|
|
4050
|
+
modifiedAt: Date | null;
|
|
4051
|
+
teacherId: string;
|
|
4052
|
+
inProgress: boolean;
|
|
4053
|
+
order: number | null;
|
|
4054
|
+
};
|
|
4055
|
+
meta: object;
|
|
4056
|
+
}>;
|
|
3925
4057
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3926
4058
|
input: {
|
|
3927
4059
|
title: string;
|
|
@@ -4016,7 +4148,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4016
4148
|
section: {
|
|
4017
4149
|
id: string;
|
|
4018
4150
|
name: string;
|
|
4151
|
+
color: string | null;
|
|
4019
4152
|
classId: string;
|
|
4153
|
+
order: number | null;
|
|
4020
4154
|
} | null;
|
|
4021
4155
|
title: string;
|
|
4022
4156
|
dueDate: Date;
|
|
@@ -4143,6 +4277,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4143
4277
|
modifiedAt: Date | null;
|
|
4144
4278
|
teacherId: string;
|
|
4145
4279
|
inProgress: boolean;
|
|
4280
|
+
order: number | null;
|
|
4146
4281
|
};
|
|
4147
4282
|
meta: object;
|
|
4148
4283
|
}>;
|
|
@@ -4190,6 +4325,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4190
4325
|
modifiedAt: Date | null;
|
|
4191
4326
|
teacherId: string;
|
|
4192
4327
|
inProgress: boolean;
|
|
4328
|
+
order: number | null;
|
|
4193
4329
|
};
|
|
4194
4330
|
student: {
|
|
4195
4331
|
id: string;
|
|
@@ -4233,6 +4369,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4233
4369
|
createdAt: Date;
|
|
4234
4370
|
modifiedAt: Date;
|
|
4235
4371
|
rubricState: string | null;
|
|
4372
|
+
teacherComments: string | null;
|
|
4236
4373
|
submittedAt: Date | null;
|
|
4237
4374
|
submitted: boolean | null;
|
|
4238
4375
|
returned: boolean | null;
|
|
@@ -4275,6 +4412,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4275
4412
|
modifiedAt: Date | null;
|
|
4276
4413
|
teacherId: string;
|
|
4277
4414
|
inProgress: boolean;
|
|
4415
|
+
order: number | null;
|
|
4278
4416
|
};
|
|
4279
4417
|
student: {
|
|
4280
4418
|
id: string;
|
|
@@ -4317,6 +4455,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4317
4455
|
createdAt: Date;
|
|
4318
4456
|
modifiedAt: Date;
|
|
4319
4457
|
rubricState: string | null;
|
|
4458
|
+
teacherComments: string | null;
|
|
4320
4459
|
submittedAt: Date | null;
|
|
4321
4460
|
submitted: boolean | null;
|
|
4322
4461
|
returned: boolean | null;
|
|
@@ -4368,6 +4507,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4368
4507
|
modifiedAt: Date | null;
|
|
4369
4508
|
teacherId: string;
|
|
4370
4509
|
inProgress: boolean;
|
|
4510
|
+
order: number | null;
|
|
4371
4511
|
};
|
|
4372
4512
|
student: {
|
|
4373
4513
|
id: string;
|
|
@@ -4410,6 +4550,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4410
4550
|
createdAt: Date;
|
|
4411
4551
|
modifiedAt: Date;
|
|
4412
4552
|
rubricState: string | null;
|
|
4553
|
+
teacherComments: string | null;
|
|
4413
4554
|
submittedAt: Date | null;
|
|
4414
4555
|
submitted: boolean | null;
|
|
4415
4556
|
returned: boolean | null;
|
|
@@ -4470,6 +4611,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4470
4611
|
modifiedAt: Date | null;
|
|
4471
4612
|
teacherId: string;
|
|
4472
4613
|
inProgress: boolean;
|
|
4614
|
+
order: number | null;
|
|
4473
4615
|
};
|
|
4474
4616
|
student: {
|
|
4475
4617
|
id: string;
|
|
@@ -4498,6 +4640,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4498
4640
|
createdAt: Date;
|
|
4499
4641
|
modifiedAt: Date;
|
|
4500
4642
|
rubricState: string | null;
|
|
4643
|
+
teacherComments: string | null;
|
|
4501
4644
|
submittedAt: Date | null;
|
|
4502
4645
|
submitted: boolean | null;
|
|
4503
4646
|
returned: boolean | null;
|
|
@@ -4549,6 +4692,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4549
4692
|
modifiedAt: Date | null;
|
|
4550
4693
|
teacherId: string;
|
|
4551
4694
|
inProgress: boolean;
|
|
4695
|
+
order: number | null;
|
|
4552
4696
|
};
|
|
4553
4697
|
student: {
|
|
4554
4698
|
id: string;
|
|
@@ -4592,6 +4736,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4592
4736
|
createdAt: Date;
|
|
4593
4737
|
modifiedAt: Date;
|
|
4594
4738
|
rubricState: string | null;
|
|
4739
|
+
teacherComments: string | null;
|
|
4595
4740
|
submittedAt: Date | null;
|
|
4596
4741
|
submitted: boolean | null;
|
|
4597
4742
|
returned: boolean | null;
|
|
@@ -4659,6 +4804,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4659
4804
|
modifiedAt: Date | null;
|
|
4660
4805
|
teacherId: string;
|
|
4661
4806
|
inProgress: boolean;
|
|
4807
|
+
order: number | null;
|
|
4662
4808
|
};
|
|
4663
4809
|
student: {
|
|
4664
4810
|
id: string;
|
|
@@ -4687,6 +4833,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4687
4833
|
createdAt: Date;
|
|
4688
4834
|
modifiedAt: Date;
|
|
4689
4835
|
rubricState: string | null;
|
|
4836
|
+
teacherComments: string | null;
|
|
4690
4837
|
submittedAt: Date | null;
|
|
4691
4838
|
submitted: boolean | null;
|
|
4692
4839
|
returned: boolean | null;
|
|
@@ -4740,6 +4887,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4740
4887
|
modifiedAt: Date | null;
|
|
4741
4888
|
teacherId: string;
|
|
4742
4889
|
inProgress: boolean;
|
|
4890
|
+
order: number | null;
|
|
4743
4891
|
};
|
|
4744
4892
|
};
|
|
4745
4893
|
meta: object;
|
|
@@ -4790,6 +4938,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4790
4938
|
modifiedAt: Date | null;
|
|
4791
4939
|
teacherId: string;
|
|
4792
4940
|
inProgress: boolean;
|
|
4941
|
+
order: number | null;
|
|
4793
4942
|
};
|
|
4794
4943
|
};
|
|
4795
4944
|
meta: object;
|
|
@@ -4839,7 +4988,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4839
4988
|
section: {
|
|
4840
4989
|
id: string;
|
|
4841
4990
|
name: string;
|
|
4991
|
+
color: string | null;
|
|
4842
4992
|
classId: string;
|
|
4993
|
+
order: number | null;
|
|
4843
4994
|
} | null;
|
|
4844
4995
|
teacher: {
|
|
4845
4996
|
id: string;
|
|
@@ -4901,6 +5052,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4901
5052
|
modifiedAt: Date | null;
|
|
4902
5053
|
teacherId: string;
|
|
4903
5054
|
inProgress: boolean;
|
|
5055
|
+
order: number | null;
|
|
4904
5056
|
};
|
|
4905
5057
|
meta: object;
|
|
4906
5058
|
}>;
|
|
@@ -4914,7 +5066,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4914
5066
|
section: {
|
|
4915
5067
|
id: string;
|
|
4916
5068
|
name: string;
|
|
5069
|
+
color: string | null;
|
|
4917
5070
|
classId: string;
|
|
5071
|
+
order: number | null;
|
|
4918
5072
|
} | null;
|
|
4919
5073
|
teacher: {
|
|
4920
5074
|
id: string;
|
|
@@ -4976,6 +5130,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4976
5130
|
modifiedAt: Date | null;
|
|
4977
5131
|
teacherId: string;
|
|
4978
5132
|
inProgress: boolean;
|
|
5133
|
+
order: number | null;
|
|
4979
5134
|
};
|
|
4980
5135
|
meta: object;
|
|
4981
5136
|
}>;
|
|
@@ -4990,7 +5145,9 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4990
5145
|
section: {
|
|
4991
5146
|
id: string;
|
|
4992
5147
|
name: string;
|
|
5148
|
+
color: string | null;
|
|
4993
5149
|
classId: string;
|
|
5150
|
+
order: number | null;
|
|
4994
5151
|
} | null;
|
|
4995
5152
|
teacher: {
|
|
4996
5153
|
id: string;
|
|
@@ -5052,6 +5209,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5052
5209
|
modifiedAt: Date | null;
|
|
5053
5210
|
teacherId: string;
|
|
5054
5211
|
inProgress: boolean;
|
|
5212
|
+
order: number | null;
|
|
5055
5213
|
};
|
|
5056
5214
|
meta: object;
|
|
5057
5215
|
}>;
|
|
@@ -5127,11 +5285,14 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5127
5285
|
input: {
|
|
5128
5286
|
name: string;
|
|
5129
5287
|
classId: string;
|
|
5288
|
+
color?: string | undefined;
|
|
5130
5289
|
};
|
|
5131
5290
|
output: {
|
|
5132
5291
|
id: string;
|
|
5133
5292
|
name: string;
|
|
5293
|
+
color: string | null;
|
|
5134
5294
|
classId: string;
|
|
5295
|
+
order: number | null;
|
|
5135
5296
|
};
|
|
5136
5297
|
meta: object;
|
|
5137
5298
|
}>;
|
|
@@ -5140,11 +5301,25 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5140
5301
|
id: string;
|
|
5141
5302
|
name: string;
|
|
5142
5303
|
classId: string;
|
|
5304
|
+
color?: string | undefined;
|
|
5143
5305
|
};
|
|
5144
5306
|
output: {
|
|
5145
5307
|
id: string;
|
|
5146
5308
|
name: string;
|
|
5309
|
+
color: string | null;
|
|
5310
|
+
classId: string;
|
|
5311
|
+
order: number | null;
|
|
5312
|
+
};
|
|
5313
|
+
meta: object;
|
|
5314
|
+
}>;
|
|
5315
|
+
reOrder: import("@trpc/server").TRPCMutationProcedure<{
|
|
5316
|
+
input: {
|
|
5317
|
+
id: string;
|
|
5147
5318
|
classId: string;
|
|
5319
|
+
order: number;
|
|
5320
|
+
};
|
|
5321
|
+
output: {
|
|
5322
|
+
id: string;
|
|
5148
5323
|
};
|
|
5149
5324
|
meta: object;
|
|
5150
5325
|
}>;
|
|
@@ -5443,6 +5618,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5443
5618
|
modifiedAt: Date | null;
|
|
5444
5619
|
teacherId: string;
|
|
5445
5620
|
inProgress: boolean;
|
|
5621
|
+
order: number | null;
|
|
5446
5622
|
};
|
|
5447
5623
|
};
|
|
5448
5624
|
meta: object;
|
|
@@ -5486,6 +5662,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5486
5662
|
modifiedAt: Date | null;
|
|
5487
5663
|
teacherId: string;
|
|
5488
5664
|
inProgress: boolean;
|
|
5665
|
+
order: number | null;
|
|
5489
5666
|
};
|
|
5490
5667
|
};
|
|
5491
5668
|
meta: object;
|
|
@@ -5802,6 +5979,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5802
5979
|
[x: string]: unknown;
|
|
5803
5980
|
classId: string;
|
|
5804
5981
|
name: string;
|
|
5982
|
+
color?: string | undefined;
|
|
5805
5983
|
parentFolderId?: string | undefined;
|
|
5806
5984
|
};
|
|
5807
5985
|
output: {
|
|
@@ -5827,6 +6005,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5827
6005
|
} & {
|
|
5828
6006
|
id: string;
|
|
5829
6007
|
name: string;
|
|
6008
|
+
color: string | null;
|
|
5830
6009
|
classId: string | null;
|
|
5831
6010
|
parentFolderId: string | null;
|
|
5832
6011
|
};
|
|
@@ -5865,6 +6044,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5865
6044
|
} & {
|
|
5866
6045
|
id: string;
|
|
5867
6046
|
name: string;
|
|
6047
|
+
color: string | null;
|
|
5868
6048
|
classId: string | null;
|
|
5869
6049
|
parentFolderId: string | null;
|
|
5870
6050
|
};
|
|
@@ -5898,6 +6078,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5898
6078
|
} & {
|
|
5899
6079
|
id: string;
|
|
5900
6080
|
name: string;
|
|
6081
|
+
color: string | null;
|
|
5901
6082
|
classId: string | null;
|
|
5902
6083
|
parentFolderId: string | null;
|
|
5903
6084
|
})[];
|
|
@@ -5932,6 +6113,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5932
6113
|
} & {
|
|
5933
6114
|
id: string;
|
|
5934
6115
|
name: string;
|
|
6116
|
+
color: string | null;
|
|
5935
6117
|
classId: string | null;
|
|
5936
6118
|
parentFolderId: string | null;
|
|
5937
6119
|
})[];
|
|
@@ -5967,6 +6149,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
5967
6149
|
} & {
|
|
5968
6150
|
id: string;
|
|
5969
6151
|
name: string;
|
|
6152
|
+
color: string | null;
|
|
5970
6153
|
classId: string | null;
|
|
5971
6154
|
parentFolderId: string | null;
|
|
5972
6155
|
}) | null;
|
|
@@ -6033,17 +6216,19 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6033
6216
|
} & {
|
|
6034
6217
|
id: string;
|
|
6035
6218
|
name: string;
|
|
6219
|
+
color: string | null;
|
|
6036
6220
|
classId: string | null;
|
|
6037
6221
|
parentFolderId: string | null;
|
|
6038
6222
|
};
|
|
6039
6223
|
meta: object;
|
|
6040
6224
|
}>;
|
|
6041
|
-
|
|
6225
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6042
6226
|
input: {
|
|
6043
6227
|
[x: string]: unknown;
|
|
6044
6228
|
classId: string;
|
|
6229
|
+
name: string;
|
|
6045
6230
|
folderId: string;
|
|
6046
|
-
|
|
6231
|
+
color?: string | undefined;
|
|
6047
6232
|
};
|
|
6048
6233
|
output: {
|
|
6049
6234
|
files: {
|
|
@@ -6068,6 +6253,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
6068
6253
|
} & {
|
|
6069
6254
|
id: string;
|
|
6070
6255
|
name: string;
|
|
6256
|
+
color: string | null;
|
|
6071
6257
|
classId: string | null;
|
|
6072
6258
|
parentFolderId: string | null;
|
|
6073
6259
|
};
|