@studious-lms/server 1.2.48 → 1.2.49

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;
@@ -6293,6 +6368,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6293
6368
  teacher: {
6294
6369
  id: string;
6295
6370
  username: string;
6371
+ profile: {
6372
+ displayName: string | null;
6373
+ profilePicture: string | null;
6374
+ profilePictureThumbnail: string | null;
6375
+ } | null;
6296
6376
  };
6297
6377
  createdAt: Date;
6298
6378
  modifiedAt: Date | null;
@@ -6322,6 +6402,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6322
6402
  teacher: {
6323
6403
  id: string;
6324
6404
  username: string;
6405
+ profile: {
6406
+ displayName: string | null;
6407
+ profilePicture: string | null;
6408
+ profilePictureThumbnail: string | null;
6409
+ } | null;
6325
6410
  };
6326
6411
  createdAt: Date;
6327
6412
  modifiedAt: Date | null;
@@ -6357,6 +6442,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6357
6442
  teacher: {
6358
6443
  id: string;
6359
6444
  username: string;
6445
+ profile: {
6446
+ displayName: string | null;
6447
+ profilePicture: string | null;
6448
+ profilePictureThumbnail: string | null;
6449
+ } | null;
6360
6450
  };
6361
6451
  createdAt: Date;
6362
6452
  modifiedAt: Date | null;
@@ -6397,6 +6487,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6397
6487
  teacher: {
6398
6488
  id: string;
6399
6489
  username: string;
6490
+ profile: {
6491
+ displayName: string | null;
6492
+ profilePicture: string | null;
6493
+ profilePictureThumbnail: string | null;
6494
+ } | null;
6400
6495
  };
6401
6496
  createdAt: Date;
6402
6497
  modifiedAt: Date | null;
@@ -6999,6 +7094,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
6999
7094
  eventAttached: {
7000
7095
  id: string;
7001
7096
  name: string | null;
7097
+ color: string | null;
7002
7098
  location: string | null;
7003
7099
  startTime: Date;
7004
7100
  endTime: Date;
@@ -7831,6 +7927,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7831
7927
  eventAttached: {
7832
7928
  id: string;
7833
7929
  name: string | null;
7930
+ color: string | null;
7834
7931
  startTime: Date;
7835
7932
  endTime: Date;
7836
7933
  } | null;
@@ -7929,6 +8026,7 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
7929
8026
  events: {
7930
8027
  id: string;
7931
8028
  name: string | null;
8029
+ color: string | null;
7932
8030
  location: string | null;
7933
8031
  startTime: Date;
7934
8032
  endTime: Date;
@@ -9162,6 +9260,32 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9162
9260
  section: string;
9163
9261
  syllabus: string | null;
9164
9262
  } | null;
9263
+ assignmentsAttached: {
9264
+ type: import(".prisma/client").$Enums.AssignmentType;
9265
+ id: string;
9266
+ title: string;
9267
+ dueDate: Date;
9268
+ maxGrade: number | null;
9269
+ classId: string;
9270
+ eventId: string | null;
9271
+ markSchemeId: string | null;
9272
+ gradingBoundaryId: string | null;
9273
+ instructions: string;
9274
+ weight: number;
9275
+ graded: boolean;
9276
+ sectionId: string | null;
9277
+ template: boolean;
9278
+ createdAt: Date | null;
9279
+ modifiedAt: Date | null;
9280
+ teacherId: string;
9281
+ acceptFiles: boolean;
9282
+ acceptExtendedResponse: boolean;
9283
+ acceptWorksheet: boolean;
9284
+ gradeWithAI: boolean;
9285
+ aiPolicyLevel: number;
9286
+ inProgress: boolean;
9287
+ order: number | null;
9288
+ }[];
9165
9289
  } & {
9166
9290
  id: string;
9167
9291
  name: string | null;
@@ -9183,6 +9307,32 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
9183
9307
  section: string;
9184
9308
  syllabus: string | null;
9185
9309
  } | null;
9310
+ assignmentsAttached: {
9311
+ type: import(".prisma/client").$Enums.AssignmentType;
9312
+ id: string;
9313
+ title: string;
9314
+ dueDate: Date;
9315
+ maxGrade: number | null;
9316
+ classId: string;
9317
+ eventId: string | null;
9318
+ markSchemeId: string | null;
9319
+ gradingBoundaryId: string | null;
9320
+ instructions: string;
9321
+ weight: number;
9322
+ graded: boolean;
9323
+ sectionId: string | null;
9324
+ template: boolean;
9325
+ createdAt: Date | null;
9326
+ modifiedAt: Date | null;
9327
+ teacherId: string;
9328
+ acceptFiles: boolean;
9329
+ acceptExtendedResponse: boolean;
9330
+ acceptWorksheet: boolean;
9331
+ gradeWithAI: boolean;
9332
+ aiPolicyLevel: number;
9333
+ inProgress: boolean;
9334
+ order: number | null;
9335
+ }[];
9186
9336
  } & {
9187
9337
  id: string;
9188
9338
  name: string | 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,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,O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ACL,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,OA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AE,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