@studious-lms/server 1.1.15 → 1.1.16
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/lib/jsonConversion.d.ts +1 -1
- package/dist/lib/jsonConversion.d.ts.map +1 -1
- package/dist/lib/jsonConversion.js +1 -1
- package/dist/routers/_app.d.ts +10 -0
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/class.d.ts +5 -0
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/class.js +7 -0
- package/dist/routers/labChat.js +2 -2
- package/package.json +1 -1
- package/src/lib/jsonConversion.ts +1 -1
- package/src/routers/class.ts +7 -0
- package/src/routers/labChat.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonConversion.d.ts","sourceRoot":"","sources":["../../src/lib/jsonConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"jsonConversion.d.ts","sourceRoot":"","sources":["../../src/lib/jsonConversion.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAsB,MAAM,iBAAiB,CAAA;AAEnE,wBAAsB,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,wCAohBtD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PDFDocument, StandardFonts, rgb } from 'pdf-lib';
|
|
2
|
-
import { FormatTypes, Fonts } from './jsonStyles';
|
|
2
|
+
import { FormatTypes, Fonts } from './jsonStyles.js';
|
|
3
3
|
export async function createPdf(blocks) {
|
|
4
4
|
console.log('createPdf: Starting PDF creation with', blocks.length, 'blocks');
|
|
5
5
|
try {
|
package/dist/routers/_app.d.ts
CHANGED
|
@@ -151,6 +151,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
151
151
|
teachers: {
|
|
152
152
|
id: string;
|
|
153
153
|
username: string;
|
|
154
|
+
profile: {
|
|
155
|
+
displayName: string | null;
|
|
156
|
+
profilePicture: string | null;
|
|
157
|
+
profilePictureThumbnail: string | null;
|
|
158
|
+
} | null;
|
|
154
159
|
}[];
|
|
155
160
|
id: string;
|
|
156
161
|
schoolId: string | null;
|
|
@@ -4062,6 +4067,11 @@ export declare const createCaller: import("@trpc/server").TRPCRouterCaller<{
|
|
|
4062
4067
|
teachers: {
|
|
4063
4068
|
id: string;
|
|
4064
4069
|
username: string;
|
|
4070
|
+
profile: {
|
|
4071
|
+
displayName: string | null;
|
|
4072
|
+
profilePicture: string | null;
|
|
4073
|
+
profilePictureThumbnail: string | null;
|
|
4074
|
+
} | null;
|
|
4065
4075
|
}[];
|
|
4066
4076
|
id: string;
|
|
4067
4077
|
schoolId: string | null;
|
|
@@ -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"}
|
package/dist/routers/class.d.ts
CHANGED
|
@@ -134,6 +134,11 @@ export declare const classRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
134
134
|
teachers: {
|
|
135
135
|
id: string;
|
|
136
136
|
username: string;
|
|
137
|
+
profile: {
|
|
138
|
+
displayName: string | null;
|
|
139
|
+
profilePicture: string | null;
|
|
140
|
+
profilePictureThumbnail: string | null;
|
|
141
|
+
} | null;
|
|
137
142
|
}[];
|
|
138
143
|
id: string;
|
|
139
144
|
schoolId: string | null;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0kCtB,CAAC"}
|
package/dist/routers/class.js
CHANGED
|
@@ -102,6 +102,13 @@ export const classRouter = createTRPCRouter({
|
|
|
102
102
|
select: {
|
|
103
103
|
id: true,
|
|
104
104
|
username: true,
|
|
105
|
+
profile: {
|
|
106
|
+
select: {
|
|
107
|
+
displayName: true,
|
|
108
|
+
profilePicture: true,
|
|
109
|
+
profilePictureThumbnail: true,
|
|
110
|
+
}
|
|
111
|
+
}
|
|
105
112
|
},
|
|
106
113
|
},
|
|
107
114
|
students: {
|
package/dist/routers/labChat.js
CHANGED
|
@@ -6,8 +6,8 @@ import { TRPCError } from '@trpc/server';
|
|
|
6
6
|
import { inferenceClient, sendAIMessage } from '../utils/inference.js';
|
|
7
7
|
import { logger } from '../utils/logger.js';
|
|
8
8
|
import { isAIUser } from '../utils/aiUser.js';
|
|
9
|
-
import { uploadFile } from '
|
|
10
|
-
import { createPdf } from "
|
|
9
|
+
import { uploadFile } from '../lib/googleCloudStorage.js';
|
|
10
|
+
import { createPdf } from "../lib/jsonConversion.js";
|
|
11
11
|
import { v4 as uuidv4 } from "uuid";
|
|
12
12
|
export const labChatRouter = createTRPCRouter({
|
|
13
13
|
create: protectedProcedure
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PDFDocument, PDFFont, RGB, StandardFonts, last, rgb } from 'pdf-lib'
|
|
2
2
|
import { writeFile } from 'fs'
|
|
3
|
-
import { DocumentBlock, FormatTypes, Fonts } from './jsonStyles'
|
|
3
|
+
import { DocumentBlock, FormatTypes, Fonts } from './jsonStyles.js'
|
|
4
4
|
|
|
5
5
|
export async function createPdf(blocks: DocumentBlock[]) {
|
|
6
6
|
console.log('createPdf: Starting PDF creation with', blocks.length, 'blocks');
|
package/src/routers/class.ts
CHANGED
|
@@ -107,6 +107,13 @@ export const classRouter = createTRPCRouter({
|
|
|
107
107
|
select: {
|
|
108
108
|
id: true,
|
|
109
109
|
username: true,
|
|
110
|
+
profile: {
|
|
111
|
+
select: {
|
|
112
|
+
displayName: true,
|
|
113
|
+
profilePicture: true,
|
|
114
|
+
profilePictureThumbnail: true,
|
|
115
|
+
}
|
|
116
|
+
}
|
|
110
117
|
},
|
|
111
118
|
},
|
|
112
119
|
students: {
|
package/src/routers/labChat.ts
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
} from '../utils/inference.js';
|
|
11
11
|
import { logger } from '../utils/logger.js';
|
|
12
12
|
import { isAIUser } from '../utils/aiUser.js';
|
|
13
|
-
import { uploadFile } from '
|
|
14
|
-
import { createPdf } from "
|
|
13
|
+
import { uploadFile } from '../lib/googleCloudStorage.js';
|
|
14
|
+
import { createPdf } from "../lib/jsonConversion.js"
|
|
15
15
|
import OpenAI from 'openai';
|
|
16
16
|
import { v4 as uuidv4 } from "uuid";
|
|
17
17
|
|