@studious-lms/server 1.2.48 → 1.2.50

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.
@@ -859,6 +859,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
859
859
  teacher: {
860
860
  id: string;
861
861
  username: string;
862
+ profile: {
863
+ displayName: string | null;
864
+ profilePicture: string | null;
865
+ profilePictureThumbnail: string | null;
866
+ } | null;
862
867
  };
863
868
  createdAt: Date;
864
869
  modifiedAt: Date | null;
@@ -888,6 +893,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
888
893
  teacher: {
889
894
  id: string;
890
895
  username: string;
896
+ profile: {
897
+ displayName: string | null;
898
+ profilePicture: string | null;
899
+ profilePictureThumbnail: string | null;
900
+ } | null;
891
901
  };
892
902
  createdAt: Date;
893
903
  modifiedAt: Date | null;
@@ -923,6 +933,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
923
933
  teacher: {
924
934
  id: string;
925
935
  username: string;
936
+ profile: {
937
+ displayName: string | null;
938
+ profilePicture: string | null;
939
+ profilePictureThumbnail: string | null;
940
+ } | null;
926
941
  };
927
942
  createdAt: Date;
928
943
  modifiedAt: Date | null;
@@ -963,6 +978,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
963
978
  teacher: {
964
979
  id: string;
965
980
  username: string;
981
+ profile: {
982
+ displayName: string | null;
983
+ profilePicture: string | null;
984
+ profilePictureThumbnail: string | null;
985
+ } | null;
966
986
  };
967
987
  createdAt: Date;
968
988
  modifiedAt: Date | null;
@@ -1565,6 +1585,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1565
1585
  eventAttached: {
1566
1586
  id: string;
1567
1587
  name: string | null;
1588
+ color: string | null;
1568
1589
  location: string | null;
1569
1590
  startTime: Date;
1570
1591
  endTime: Date;
@@ -2397,6 +2418,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2397
2418
  eventAttached: {
2398
2419
  id: string;
2399
2420
  name: string | null;
2421
+ color: string | null;
2400
2422
  startTime: Date;
2401
2423
  endTime: Date;
2402
2424
  } | null;
@@ -2495,6 +2517,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2495
2517
  events: {
2496
2518
  id: string;
2497
2519
  name: string | null;
2520
+ color: string | null;
2498
2521
  location: string | null;
2499
2522
  startTime: Date;
2500
2523
  endTime: Date;
@@ -3728,6 +3751,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3728
3751
  section: string;
3729
3752
  syllabus: string | null;
3730
3753
  } | null;
3754
+ assignmentsAttached: {
3755
+ type: import(".prisma/client").$Enums.AssignmentType;
3756
+ id: string;
3757
+ title: string;
3758
+ dueDate: Date;
3759
+ maxGrade: number | null;
3760
+ classId: string;
3761
+ eventId: string | null;
3762
+ markSchemeId: string | null;
3763
+ gradingBoundaryId: string | null;
3764
+ instructions: string;
3765
+ weight: number;
3766
+ graded: boolean;
3767
+ sectionId: string | null;
3768
+ template: boolean;
3769
+ createdAt: Date | null;
3770
+ modifiedAt: Date | null;
3771
+ teacherId: string;
3772
+ acceptFiles: boolean;
3773
+ acceptExtendedResponse: boolean;
3774
+ acceptWorksheet: boolean;
3775
+ gradeWithAI: boolean;
3776
+ aiPolicyLevel: number;
3777
+ inProgress: boolean;
3778
+ order: number | null;
3779
+ }[];
3731
3780
  } & {
3732
3781
  id: string;
3733
3782
  name: string | null;
@@ -3749,6 +3798,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3749
3798
  section: string;
3750
3799
  syllabus: string | null;
3751
3800
  } | null;
3801
+ assignmentsAttached: {
3802
+ type: import(".prisma/client").$Enums.AssignmentType;
3803
+ id: string;
3804
+ title: string;
3805
+ dueDate: Date;
3806
+ maxGrade: number | null;
3807
+ classId: string;
3808
+ eventId: string | null;
3809
+ markSchemeId: string | null;
3810
+ gradingBoundaryId: string | null;
3811
+ instructions: string;
3812
+ weight: number;
3813
+ graded: boolean;
3814
+ sectionId: string | null;
3815
+ template: boolean;
3816
+ createdAt: Date | null;
3817
+ modifiedAt: Date | null;
3818
+ teacherId: string;
3819
+ acceptFiles: boolean;
3820
+ acceptExtendedResponse: boolean;
3821
+ acceptWorksheet: boolean;
3822
+ gradeWithAI: boolean;
3823
+ aiPolicyLevel: number;
3824
+ inProgress: boolean;
3825
+ order: number | null;
3826
+ }[];
3752
3827
  } & {
3753
3828
  id: string;
3754
3829
  name: string | null;
@@ -5225,10 +5300,31 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5225
5300
  }) | null;
5226
5301
  meta: object;
5227
5302
  }>;
5228
- cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
5303
+ cancelGrading: import("@trpc/server").TRPCMutationProcedure<{
5229
5304
  input: {
5305
+ worksheetResponseId: string;
5306
+ progressId: string;
5307
+ };
5308
+ output: {
5309
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
5310
+ id: string;
5311
+ feedback: string | null;
5312
+ studentId: string;
5313
+ createdAt: Date;
5314
+ updatedAt: Date | null;
5230
5315
  questionId: string;
5316
+ response: string;
5317
+ isCorrect: boolean;
5318
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
5319
+ points: number;
5320
+ studentWorksheetResponseId: string | null;
5321
+ };
5322
+ meta: object;
5323
+ }>;
5324
+ regradeQuestion: import("@trpc/server").TRPCMutationProcedure<{
5325
+ input: {
5231
5326
  worksheetResponseId: string;
5327
+ progressId: string;
5232
5328
  };
5233
5329
  output: {
5234
5330
  status: import(".prisma/client").$Enums.GenerationStatus | null;
@@ -6293,6 +6389,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6293
6389
  teacher: {
6294
6390
  id: string;
6295
6391
  username: string;
6392
+ profile: {
6393
+ displayName: string | null;
6394
+ profilePicture: string | null;
6395
+ profilePictureThumbnail: string | null;
6396
+ } | null;
6296
6397
  };
6297
6398
  createdAt: Date;
6298
6399
  modifiedAt: Date | null;
@@ -6322,6 +6423,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6322
6423
  teacher: {
6323
6424
  id: string;
6324
6425
  username: string;
6426
+ profile: {
6427
+ displayName: string | null;
6428
+ profilePicture: string | null;
6429
+ profilePictureThumbnail: string | null;
6430
+ } | null;
6325
6431
  };
6326
6432
  createdAt: Date;
6327
6433
  modifiedAt: Date | null;
@@ -6357,6 +6463,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6357
6463
  teacher: {
6358
6464
  id: string;
6359
6465
  username: string;
6466
+ profile: {
6467
+ displayName: string | null;
6468
+ profilePicture: string | null;
6469
+ profilePictureThumbnail: string | null;
6470
+ } | null;
6360
6471
  };
6361
6472
  createdAt: Date;
6362
6473
  modifiedAt: Date | null;
@@ -6397,6 +6508,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6397
6508
  teacher: {
6398
6509
  id: string;
6399
6510
  username: string;
6511
+ profile: {
6512
+ displayName: string | null;
6513
+ profilePicture: string | null;
6514
+ profilePictureThumbnail: string | null;
6515
+ } | null;
6400
6516
  };
6401
6517
  createdAt: Date;
6402
6518
  modifiedAt: Date | null;
@@ -6999,6 +7115,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6999
7115
  eventAttached: {
7000
7116
  id: string;
7001
7117
  name: string | null;
7118
+ color: string | null;
7002
7119
  location: string | null;
7003
7120
  startTime: Date;
7004
7121
  endTime: Date;
@@ -7831,6 +7948,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7831
7948
  eventAttached: {
7832
7949
  id: string;
7833
7950
  name: string | null;
7951
+ color: string | null;
7834
7952
  startTime: Date;
7835
7953
  endTime: Date;
7836
7954
  } | null;
@@ -7929,6 +8047,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7929
8047
  events: {
7930
8048
  id: string;
7931
8049
  name: string | null;
8050
+ color: string | null;
7932
8051
  location: string | null;
7933
8052
  startTime: Date;
7934
8053
  endTime: Date;
@@ -9162,6 +9281,32 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9162
9281
  section: string;
9163
9282
  syllabus: string | null;
9164
9283
  } | null;
9284
+ assignmentsAttached: {
9285
+ type: import(".prisma/client").$Enums.AssignmentType;
9286
+ id: string;
9287
+ title: string;
9288
+ dueDate: Date;
9289
+ maxGrade: number | null;
9290
+ classId: string;
9291
+ eventId: string | null;
9292
+ markSchemeId: string | null;
9293
+ gradingBoundaryId: string | null;
9294
+ instructions: string;
9295
+ weight: number;
9296
+ graded: boolean;
9297
+ sectionId: string | null;
9298
+ template: boolean;
9299
+ createdAt: Date | null;
9300
+ modifiedAt: Date | null;
9301
+ teacherId: string;
9302
+ acceptFiles: boolean;
9303
+ acceptExtendedResponse: boolean;
9304
+ acceptWorksheet: boolean;
9305
+ gradeWithAI: boolean;
9306
+ aiPolicyLevel: number;
9307
+ inProgress: boolean;
9308
+ order: number | null;
9309
+ }[];
9165
9310
  } & {
9166
9311
  id: string;
9167
9312
  name: string | null;
@@ -9183,6 +9328,32 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9183
9328
  section: string;
9184
9329
  syllabus: string | null;
9185
9330
  } | null;
9331
+ assignmentsAttached: {
9332
+ type: import(".prisma/client").$Enums.AssignmentType;
9333
+ id: string;
9334
+ title: string;
9335
+ dueDate: Date;
9336
+ maxGrade: number | null;
9337
+ classId: string;
9338
+ eventId: string | null;
9339
+ markSchemeId: string | null;
9340
+ gradingBoundaryId: string | null;
9341
+ instructions: string;
9342
+ weight: number;
9343
+ graded: boolean;
9344
+ sectionId: string | null;
9345
+ template: boolean;
9346
+ createdAt: Date | null;
9347
+ modifiedAt: Date | null;
9348
+ teacherId: string;
9349
+ acceptFiles: boolean;
9350
+ acceptExtendedResponse: boolean;
9351
+ acceptWorksheet: boolean;
9352
+ gradeWithAI: boolean;
9353
+ aiPolicyLevel: number;
9354
+ inProgress: boolean;
9355
+ order: number | null;
9356
+ }[];
9186
9357
  } & {
9187
9358
  id: string;
9188
9359
  name: string | null;
@@ -10659,10 +10830,31 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
10659
10830
  }) | null;
10660
10831
  meta: object;
10661
10832
  }>;
10662
- cancelAutoGrading: import("@trpc/server").TRPCMutationProcedure<{
10833
+ cancelGrading: import("@trpc/server").TRPCMutationProcedure<{
10663
10834
  input: {
10835
+ worksheetResponseId: string;
10836
+ progressId: string;
10837
+ };
10838
+ output: {
10839
+ status: import(".prisma/client").$Enums.GenerationStatus | null;
10840
+ id: string;
10841
+ feedback: string | null;
10842
+ studentId: string;
10843
+ createdAt: Date;
10844
+ updatedAt: Date | null;
10664
10845
  questionId: string;
10846
+ response: string;
10847
+ isCorrect: boolean;
10848
+ markschemeState: import("@prisma/client/runtime/library.js").JsonValue | null;
10849
+ points: number;
10850
+ studentWorksheetResponseId: string | null;
10851
+ };
10852
+ meta: object;
10853
+ }>;
10854
+ regradeQuestion: import("@trpc/server").TRPCMutationProcedure<{
10855
+ input: {
10665
10856
  worksheetResponseId: string;
10857
+ progressId: string;
10666
10858
  };
10667
10859
  output: {
10668
10860
  status: import(".prisma/client").$Enums.GenerationStatus | null;
@@ -1 +1 @@
1
- {"version":3,"file":"_app.d.ts","sourceRoot":"/","sources":["routers/_app.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAiB1E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC"}
@@ -32,6 +32,32 @@ export declare const agendaRouter: import("@trpc/server").TRPCBuiltRouter<{
32
32
  section: string;
33
33
  syllabus: string | null;
34
34
  } | null;
35
+ assignmentsAttached: {
36
+ type: import(".prisma/client").$Enums.AssignmentType;
37
+ id: string;
38
+ title: string;
39
+ dueDate: Date;
40
+ maxGrade: number | null;
41
+ classId: string;
42
+ eventId: string | null;
43
+ markSchemeId: string | null;
44
+ gradingBoundaryId: string | null;
45
+ instructions: string;
46
+ weight: number;
47
+ graded: boolean;
48
+ sectionId: string | null;
49
+ template: boolean;
50
+ createdAt: Date | null;
51
+ modifiedAt: Date | null;
52
+ teacherId: string;
53
+ acceptFiles: boolean;
54
+ acceptExtendedResponse: boolean;
55
+ acceptWorksheet: boolean;
56
+ gradeWithAI: boolean;
57
+ aiPolicyLevel: number;
58
+ inProgress: boolean;
59
+ order: number | null;
60
+ }[];
35
61
  } & {
36
62
  id: string;
37
63
  name: string | null;
@@ -53,6 +79,32 @@ export declare const agendaRouter: import("@trpc/server").TRPCBuiltRouter<{
53
79
  section: string;
54
80
  syllabus: string | null;
55
81
  } | null;
82
+ assignmentsAttached: {
83
+ type: import(".prisma/client").$Enums.AssignmentType;
84
+ id: string;
85
+ title: string;
86
+ dueDate: Date;
87
+ maxGrade: number | null;
88
+ classId: string;
89
+ eventId: string | null;
90
+ markSchemeId: string | null;
91
+ gradingBoundaryId: string | null;
92
+ instructions: string;
93
+ weight: number;
94
+ graded: boolean;
95
+ sectionId: string | null;
96
+ template: boolean;
97
+ createdAt: Date | null;
98
+ modifiedAt: Date | null;
99
+ teacherId: string;
100
+ acceptFiles: boolean;
101
+ acceptExtendedResponse: boolean;
102
+ acceptWorksheet: boolean;
103
+ gradeWithAI: boolean;
104
+ aiPolicyLevel: number;
105
+ inProgress: boolean;
106
+ order: number | null;
107
+ }[];
56
108
  } & {
57
109
  id: string;
58
110
  name: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"agenda.d.ts","sourceRoot":"/","sources":["routers/agenda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2EvB,CAAC"}
1
+ {"version":3,"file":"agenda.d.ts","sourceRoot":"/","sources":["routers/agenda.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EvB,CAAC"}
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e2e91bcc-ec3e-5d31-8c94-4527074771e6")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="78e5d458-90b7-5beb-b8be-23566d8d9235")}catch(e){}}();
3
3
  import { z } from "zod";
4
4
  import { createTRPCRouter, protectedProcedure } from "../trpc.js";
5
5
  import { prisma } from "../lib/prisma.js";
@@ -36,6 +36,7 @@ export const agendaRouter = createTRPCRouter({
36
36
  },
37
37
  },
38
38
  include: {
39
+ assignmentsAttached: true,
39
40
  class: true,
40
41
  },
41
42
  }),
@@ -66,6 +67,7 @@ export const agendaRouter = createTRPCRouter({
66
67
  },
67
68
  },
68
69
  include: {
70
+ assignmentsAttached: true,
69
71
  class: true,
70
72
  },
71
73
  }),
@@ -79,4 +81,4 @@ export const agendaRouter = createTRPCRouter({
79
81
  }),
80
82
  });
81
83
  //# sourceMappingURL=agenda.js.map
82
- //# debugId=e2e91bcc-ec3e-5d31-8c94-4527074771e6
84
+ //# debugId=78e5d458-90b7-5beb-b8be-23566d8d9235
@@ -1 +1 @@
1
- {"version":3,"file":"agenda.js","sources":["routers/agenda.ts"],"sourceRoot":"/","sourcesContent":["import { z } from \"zod\";\nimport { createTRPCRouter, protectedProcedure } from \"../trpc.js\";\nimport { prisma } from \"../lib/prisma.js\";\nimport { TRPCError } from \"@trpc/server\";\nimport { addDays, addMonths, subMonths, startOfDay, endOfDay } from \"date-fns\";\n\nexport const agendaRouter = createTRPCRouter({\n get: protectedProcedure\n .input(z.object({\n weekStart: z.string(),\n }))\n .query(async ({ ctx, input }) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: \"UNAUTHORIZED\",\n message: \"You must be logged in to get your agenda\",\n });\n }\n\n // Expand query range to 6 months (3 months before and after the reference date)\n // to allow calendar navigation and ensure newly created events are visible\n const referenceDate = new Date(input.weekStart);\n const rangeStart = startOfDay(subMonths(referenceDate, 3));\n const rangeEnd = endOfDay(addMonths(referenceDate, 3));\n\n const [personalEvents, classEvents] = await Promise.all([\n // Get personal events\n prisma.event.findMany({\n where: {\n userId: ctx.user.id,\n startTime: {\n gte: rangeStart,\n lte: rangeEnd,\n },\n class: {\n is: null,\n },\n },\n include: {\n class: true,\n },\n }),\n // Get class events\n prisma.event.findMany({\n where: {\n class: {\n OR: [\n {\n teachers: {\n some: {\n id: ctx.user.id,\n },\n },\n },\n {\n students: {\n some: {\n id: ctx.user.id,\n },\n },\n },\n ],\n },\n startTime: {\n gte: rangeStart,\n lte: rangeEnd,\n },\n },\n include: {\n class: true,\n },\n }),\n ]);\n\n return {\n events: {\n personal: personalEvents,\n class: classEvents,\n },\n };\n }),\n}); "],"names":[],"mappings":";;AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAW,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC;IAC3C,GAAG,EAAE,kBAAkB;SACpB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,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CAAC,EAAE;qCAChB;iCACF;6BACF;yBACF;qBACF;oBACD,SAAS,EAAE;wBACT,GAAG,EAAE,UAAU;wBACf,GAAG,EAAE,QAAQ;qBACd;iBACF;gBACD,OAAO,EAAE;oBACP,KAAK,EAAE,IAAI;iBACZ;aACF,CAAC;SACH,CAAC,CAAC;QAEH,OAAO;YACL,MAAM,EAAE;gBACN,QAAQ,EAAE,cAAc;gBACxB,KAAK,EAAE,WAAW;aACnB;SACF,CAAC;IACJ,CAAC,CAAC;CACL,CAAC,CAAC","debug_id":"e2e91bcc-ec3e-5d31-8c94-4527074771e6"}
1
+ {"version":3,"file":"agenda.js","sources":["routers/agenda.ts"],"sourceRoot":"/","sourcesContent":["import { z } from \"zod\";\nimport { createTRPCRouter, protectedProcedure } from \"../trpc.js\";\nimport { prisma } from \"../lib/prisma.js\";\nimport { TRPCError } from \"@trpc/server\";\nimport { addDays, addMonths, subMonths, startOfDay, endOfDay } from \"date-fns\";\n\nexport const agendaRouter = createTRPCRouter({\n get: protectedProcedure\n .input(z.object({\n weekStart: z.string(),\n }))\n .query(async ({ ctx, input }) => {\n if (!ctx.user) {\n throw new TRPCError({\n code: \"UNAUTHORIZED\",\n message: \"You must be logged in to get your agenda\",\n });\n }\n\n // Expand query range to 6 months (3 months before and after the reference date)\n // to allow calendar navigation and ensure newly created events are visible\n const referenceDate = new Date(input.weekStart);\n const rangeStart = startOfDay(subMonths(referenceDate, 3));\n const rangeEnd = endOfDay(addMonths(referenceDate, 3));\n\n const [personalEvents, classEvents] = await Promise.all([\n // Get personal events\n prisma.event.findMany({\n where: {\n userId: ctx.user.id,\n startTime: {\n gte: rangeStart,\n lte: rangeEnd,\n },\n class: {\n is: null,\n },\n },\n include: {\n assignmentsAttached: true,\n class: true,\n },\n }),\n // Get class events\n prisma.event.findMany({\n where: {\n class: {\n OR: [\n {\n teachers: {\n some: {\n id: ctx.user.id,\n },\n },\n },\n {\n students: {\n some: {\n id: ctx.user.id,\n },\n },\n },\n ],\n },\n startTime: {\n gte: rangeStart,\n lte: rangeEnd,\n },\n },\n include: {\n assignmentsAttached: true,\n class: true,\n },\n }),\n ]);\n\n return {\n events: {\n personal: personalEvents,\n class: classEvents,\n },\n };\n }),\n}); "],"names":[],"mappings":";;AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAW,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAE/E,MAAM,CAAC,MAAM,YAAY,GAAG,gBAAgB,CAAC;IAC3C,GAAG,EAAE,kBAAkB;SACpB,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACd,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;KACtB,CAAC,CAAC;SACF,KAAK,CAAC,KAAK,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE;QAC9B,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;YACd,MAAM,IAAI,SAAS,CAAC;gBAClB,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,0CAA0C;aACpD,CAAC,CAAC;QACL,CAAC;QAED,gFAAgF;QAChF,2EAA2E;QAC3E,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAChD,MAAM,UAAU,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC;QAC3D,MAAM,QAAQ,GAAG,QAAQ,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC;QAEvD,MAAM,CAAC,cAAc,EAAE,WAAW,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;YACtD,sBAAsB;YACtB,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;oBACnB,SAAS,EAAE;wBACT,GAAG,EAAE,UAAU;wBACf,GAAG,EAAE,QAAQ;qBACd;oBACD,KAAK,EAAE;wBACL,EAAE,EAAE,IAAI;qBACT;iBACF;gBACD,OAAO,EAAE;oBACP,mBAAmB,EAAE,IAAI;oBACzB,KAAK,EAAE,IAAI;iBACZ;aACF,CAAC;YACF,mBAAmB;YACnB,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,EAAE,EAAE;4BACF;gCACE,QAAQ,EAAE;oCACR,IAAI,EAAE;wCACJ,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;qCAChB;iCACF;6BACF;4BACD;gCACE,QAAQ,EAAE;oCACR,IAAI,EAAE;wCACJ,EAAE,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;qCAChB;iCACF;6BACF;yBACF;qBACF;oBACD,SAAS,EAAE;wBACT,GAAG,EAAE,UAAU;wBACf,GAAG,EAAE,QAAQ;qBACd;iBACF;gBACD,OAAO,EAAE;oBACP,mBAAmB,EAAE,IAAI;oBACzB,KAAK,EAAE,IAAI;iBACZ;aACF,CAAC;SACH,CAAC,CAAC;QAEH,OAAO;YACL,MAAM,EAAE;gBACN,QAAQ,EAAE,cAAc;gBACxB,KAAK,EAAE,WAAW;aACnB;SACF,CAAC;IACJ,CAAC,CAAC;CACL,CAAC,CAAC","debug_id":"78e5d458-90b7-5beb-b8be-23566d8d9235"}
@@ -31,6 +31,11 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
31
31
  teacher: {
32
32
  id: string;
33
33
  username: string;
34
+ profile: {
35
+ displayName: string | null;
36
+ profilePicture: string | null;
37
+ profilePictureThumbnail: string | null;
38
+ } | null;
34
39
  };
35
40
  createdAt: Date;
36
41
  modifiedAt: Date | null;
@@ -60,6 +65,11 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
60
65
  teacher: {
61
66
  id: string;
62
67
  username: string;
68
+ profile: {
69
+ displayName: string | null;
70
+ profilePicture: string | null;
71
+ profilePictureThumbnail: string | null;
72
+ } | null;
63
73
  };
64
74
  createdAt: Date;
65
75
  modifiedAt: Date | null;
@@ -95,6 +105,11 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
95
105
  teacher: {
96
106
  id: string;
97
107
  username: string;
108
+ profile: {
109
+ displayName: string | null;
110
+ profilePicture: string | null;
111
+ profilePictureThumbnail: string | null;
112
+ } | null;
98
113
  };
99
114
  createdAt: Date;
100
115
  modifiedAt: Date | null;
@@ -135,6 +150,11 @@ export declare const announcementRouter: import("@trpc/server").TRPCBuiltRouter<
135
150
  teacher: {
136
151
  id: string;
137
152
  username: string;
153
+ profile: {
154
+ displayName: string | null;
155
+ profilePicture: string | null;
156
+ profilePictureThumbnail: string | null;
157
+ } | null;
138
158
  };
139
159
  createdAt: Date;
140
160
  modifiedAt: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"announcement.d.ts","sourceRoot":"/","sources":["routers/announcement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAA8C,KAAK,gBAAgB,EAAuB,MAAM,sBAAsB,CAAC;AA+C9H,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAujC7B,CAAC"}
1
+ {"version":3,"file":"announcement.d.ts","sourceRoot":"/","sources":["routers/announcement.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAA8C,KAAK,gBAAgB,EAAuB,MAAM,sBAAsB,CAAC;AAsD9H,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAujC7B,CAAC"}
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="69af2151-3215-5a0d-97a5-c9cee8f1a3dc")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a7728c55-4567-50bb-acc9-7f592bac0ec1")}catch(e){}}();
3
3
  import { z } from "zod";
4
4
  import { createTRPCRouter, protectedClassMemberProcedure, protectedTeacherProcedure, protectedProcedure } from "../trpc.js";
5
5
  import { prisma } from "../lib/prisma.js";
@@ -31,6 +31,13 @@ const AnnouncementSelect = {
31
31
  select: {
32
32
  id: true,
33
33
  username: true,
34
+ profile: {
35
+ select: {
36
+ displayName: true,
37
+ profilePicture: true,
38
+ profilePictureThumbnail: true,
39
+ },
40
+ },
34
41
  },
35
42
  },
36
43
  remarks: true,
@@ -1008,4 +1015,4 @@ export const announcementRouter = createTRPCRouter({
1008
1015
  }),
1009
1016
  });
1010
1017
  //# sourceMappingURL=announcement.js.map
1011
- //# debugId=69af2151-3215-5a0d-97a5-c9cee8f1a3dc
1018
+ //# debugId=a7728c55-4567-50bb-acc9-7f592bac0ec1