@studious-lms/server 1.14.0 → 1.15.0
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/.github/workflows/deploy.yml +1 -1
- package/dist/instrument.js +3 -3
- package/dist/instrument.js.map +1 -1
- package/dist/lib/inferDocumentFormat.d.ts +10 -0
- package/dist/lib/inferDocumentFormat.d.ts.map +1 -0
- package/dist/lib/inferDocumentFormat.js +48 -0
- package/dist/lib/inferDocumentFormat.js.map +1 -0
- package/dist/lib/legal.d.ts +3 -0
- package/dist/lib/legal.d.ts.map +1 -0
- package/dist/lib/legal.js +6 -0
- package/dist/lib/legal.js.map +1 -0
- package/dist/models/announcement.d.ts +47 -45
- package/dist/models/announcement.d.ts.map +1 -1
- package/dist/models/assignment.d.ts +75 -75
- package/dist/models/auth.d.ts +8 -0
- package/dist/models/auth.d.ts.map +1 -1
- package/dist/models/auth.js +4 -2
- package/dist/models/auth.js.map +1 -1
- package/dist/models/class.d.ts +13 -13
- package/dist/models/comment.d.ts +6 -6
- package/dist/models/conversation.d.ts +23 -23
- package/dist/models/event.d.ts +20 -18
- package/dist/models/event.d.ts.map +1 -1
- package/dist/models/file.d.ts +33 -9
- package/dist/models/file.d.ts.map +1 -1
- package/dist/models/labChat.d.ts +4 -4
- package/dist/models/marketing.d.ts +2 -15
- package/dist/models/marketing.d.ts.map +1 -1
- package/dist/models/marketing.js +12 -4
- package/dist/models/marketing.js.map +1 -1
- package/dist/models/message.d.ts +13 -13
- package/dist/models/newtonChat.d.ts +3 -3
- package/dist/models/notification.d.ts +4 -4
- package/dist/models/worksheet.d.ts +121 -121
- package/dist/pipelines/aiLabChat.d.ts +7 -1
- package/dist/pipelines/aiLabChat.d.ts.map +1 -1
- package/dist/pipelines/aiLabChat.js +153 -67
- package/dist/pipelines/aiLabChat.js.map +1 -1
- package/dist/pipelines/aiLabChatContract.d.ts +34 -195
- package/dist/pipelines/aiLabChatContract.d.ts.map +1 -1
- package/dist/pipelines/aiLabChatContract.js +9 -19
- package/dist/pipelines/aiLabChatContract.js.map +1 -1
- package/dist/pipelines/gradeWorksheet.d.ts +6 -6
- package/dist/pipelines/labChatPrompt.d.ts +8 -3
- package/dist/pipelines/labChatPrompt.d.ts.map +1 -1
- package/dist/pipelines/labChatPrompt.js +52 -14
- package/dist/pipelines/labChatPrompt.js.map +1 -1
- package/dist/pipelines/pdfToWorksheet.d.ts +1 -1
- package/dist/routers/_app.d.ts +750 -546
- package/dist/routers/_app.d.ts.map +1 -1
- package/dist/routers/announcement.d.ts +40 -40
- package/dist/routers/assignment.d.ts +131 -121
- package/dist/routers/assignment.d.ts.map +1 -1
- package/dist/routers/auth.d.ts +2 -0
- package/dist/routers/auth.d.ts.map +1 -1
- package/dist/routers/auth.js +15 -2
- package/dist/routers/auth.js.map +1 -1
- package/dist/routers/class.d.ts +12 -8
- package/dist/routers/class.d.ts.map +1 -1
- package/dist/routers/comment.d.ts +5 -5
- package/dist/routers/conversation.d.ts +6 -6
- package/dist/routers/discussion.d.ts +3 -3
- package/dist/routers/embedding.d.ts +6 -2
- package/dist/routers/embedding.d.ts.map +1 -1
- package/dist/routers/embedding.js +44 -36
- package/dist/routers/embedding.js.map +1 -1
- package/dist/routers/event.d.ts +20 -18
- package/dist/routers/event.d.ts.map +1 -1
- package/dist/routers/file.d.ts +2 -2
- package/dist/routers/labChat.d.ts +3 -3
- package/dist/routers/marketing.d.ts +0 -13
- package/dist/routers/marketing.d.ts.map +1 -1
- package/dist/routers/notifications.d.ts +4 -4
- package/dist/routers/school.d.ts +4 -0
- package/dist/routers/school.d.ts.map +1 -1
- package/dist/routers/search.d.ts +2 -2
- package/dist/routers/user.d.ts +89 -0
- package/dist/routers/user.d.ts.map +1 -1
- package/dist/routers/user.js +19 -2
- package/dist/routers/user.js.map +1 -1
- package/dist/routers/worksheet.d.ts +44 -44
- package/dist/routes/aiStream.d.ts.map +1 -1
- package/dist/routes/aiStream.js +41 -11
- package/dist/routes/aiStream.js.map +1 -1
- package/dist/seedDatabase.d.ts +3 -1
- package/dist/seedDatabase.d.ts.map +1 -1
- package/dist/services/aiChatStream.d.ts +20 -0
- package/dist/services/aiChatStream.d.ts.map +1 -1
- package/dist/services/aiChatStream.js +110 -13
- package/dist/services/aiChatStream.js.map +1 -1
- package/dist/services/aiModifierTools.d.ts +0 -16
- package/dist/services/aiModifierTools.d.ts.map +1 -1
- package/dist/services/aiModifierTools.js +112 -3
- package/dist/services/aiModifierTools.js.map +1 -1
- package/dist/services/aiProposalTools.d.ts.map +1 -1
- package/dist/services/aiProposalTools.js +25 -25
- package/dist/services/aiProposalTools.js.map +1 -1
- package/dist/services/aiTools.js +3 -3
- package/dist/services/aiTools.js.map +1 -1
- package/dist/services/announcement.d.ts +34 -34
- package/dist/services/assignment.d.ts +121 -111
- package/dist/services/assignment.d.ts.map +1 -1
- package/dist/services/assignment.js +4 -2
- package/dist/services/assignment.js.map +1 -1
- package/dist/services/auth.d.ts +2 -0
- package/dist/services/auth.d.ts.map +1 -1
- package/dist/services/auth.js +13 -4
- package/dist/services/auth.js.map +1 -1
- package/dist/services/class.d.ts +10 -6
- package/dist/services/class.d.ts.map +1 -1
- package/dist/services/class.js +7 -3
- package/dist/services/class.js.map +1 -1
- package/dist/services/comment.d.ts +5 -5
- package/dist/services/conversation.d.ts +6 -6
- package/dist/services/discussion.d.ts.map +1 -1
- package/dist/services/discussion.js +9 -2
- package/dist/services/discussion.js.map +1 -1
- package/dist/services/embedding.d.ts +19 -1
- package/dist/services/embedding.d.ts.map +1 -1
- package/dist/services/embedding.js +154 -8
- package/dist/services/embedding.js.map +1 -1
- package/dist/services/event.d.ts +20 -18
- package/dist/services/event.d.ts.map +1 -1
- package/dist/services/file.d.ts +4 -4
- package/dist/services/folder.d.ts.map +1 -1
- package/dist/services/folder.js +32 -2
- package/dist/services/folder.js.map +1 -1
- package/dist/services/labChat.d.ts +3 -3
- package/dist/services/marketing.d.ts +1 -14
- package/dist/services/marketing.d.ts.map +1 -1
- package/dist/services/marketing.js +5 -5
- package/dist/services/marketing.js.map +1 -1
- package/dist/services/notification.d.ts +4 -4
- package/dist/services/openaiDocumentGen.d.ts +37 -0
- package/dist/services/openaiDocumentGen.d.ts.map +1 -0
- package/dist/services/openaiDocumentGen.js +262 -0
- package/dist/services/openaiDocumentGen.js.map +1 -0
- package/dist/services/school.d.ts +4 -0
- package/dist/services/school.d.ts.map +1 -1
- package/dist/services/search.d.ts +1 -1
- package/dist/services/search.d.ts.map +1 -1
- package/dist/services/search.js +27 -2
- package/dist/services/search.js.map +1 -1
- package/dist/services/userPrivacy.d.ts +86 -0
- package/dist/services/userPrivacy.d.ts.map +1 -0
- package/dist/services/userPrivacy.js +184 -0
- package/dist/services/userPrivacy.js.map +1 -0
- package/dist/services/worksheet.d.ts +66 -49
- package/dist/services/worksheet.d.ts.map +1 -1
- package/dist/services/worksheet.js +48 -3
- package/dist/services/worksheet.js.map +1 -1
- package/dist/utils/email.d.ts.map +1 -1
- package/dist/utils/email.js +7 -3
- package/dist/utils/email.js.map +1 -1
- package/dist/workers/processors/embedContent.d.ts.map +1 -1
- package/dist/workers/processors/embedContent.js +16 -25
- package/dist/workers/processors/embedContent.js.map +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20260610140000_expand_embedding_source_types/migration.sql +4 -0
- package/prisma/migrations/20260611120000_add_user_terms_acceptance/migration.sql +3 -0
- package/prisma/schema.prisma +6 -0
- package/src/instrument.ts +1 -1
- package/src/lib/inferDocumentFormat.ts +58 -0
- package/src/lib/legal.ts +2 -0
- package/src/models/auth.ts +4 -0
- package/src/models/marketing.ts +10 -2
- package/src/pipelines/aiLabChat.ts +198 -74
- package/src/pipelines/aiLabChatContract.ts +7 -17
- package/src/pipelines/labChatPrompt.ts +64 -14
- package/src/routers/auth.ts +13 -0
- package/src/routers/embedding.ts +44 -39
- package/src/routers/user.ts +26 -0
- package/src/routes/aiStream.ts +47 -9
- package/src/services/aiChatStream.ts +133 -11
- package/src/services/aiModifierTools.ts +154 -1
- package/src/services/aiProposalTools.ts +27 -25
- package/src/services/aiTools.ts +1 -1
- package/src/services/assignment.ts +3 -0
- package/src/services/auth.ts +14 -2
- package/src/services/class.ts +7 -1
- package/src/services/discussion.ts +13 -0
- package/src/services/embedding.ts +167 -6
- package/src/services/folder.ts +31 -0
- package/src/services/marketing.ts +3 -3
- package/src/services/openaiDocumentGen.ts +319 -0
- package/src/services/search.ts +25 -1
- package/src/services/userPrivacy.ts +196 -0
- package/src/services/worksheet.ts +68 -1
- package/src/utils/email.ts +5 -1
- package/src/workers/processors/embedContent.ts +18 -22
- package/tests/helpers/registerInput.ts +20 -0
- package/tests/integration/globalSetup.ts +10 -18
- package/tests/integration/routers/auth.test.ts +13 -18
- package/tests/unit/lib/inferDocumentFormat.test.ts +33 -0
- package/tests/unit/services/aiChatStream.test.ts +92 -0
- package/tests/unit/services/openaiDocumentGen.test.ts +65 -0
package/dist/models/class.d.ts
CHANGED
|
@@ -419,8 +419,8 @@ export declare function findSubmissionsForGrades(userId: string, classId: string
|
|
|
419
419
|
id: string;
|
|
420
420
|
createdAt: Date;
|
|
421
421
|
assignmentId: string;
|
|
422
|
-
modifiedAt: Date;
|
|
423
422
|
studentId: string;
|
|
423
|
+
modifiedAt: Date;
|
|
424
424
|
extendedResponse: string | null;
|
|
425
425
|
gradeReceived: number | null;
|
|
426
426
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -525,10 +525,6 @@ export declare function findAssignmentsWithFiles(classId: string): import("@pris
|
|
|
525
525
|
uploadedAt: Date | null;
|
|
526
526
|
thumbnailId: string | null;
|
|
527
527
|
}[];
|
|
528
|
-
student: {
|
|
529
|
-
id: string;
|
|
530
|
-
username: string;
|
|
531
|
-
};
|
|
532
528
|
annotations: {
|
|
533
529
|
path: string;
|
|
534
530
|
type: string;
|
|
@@ -542,12 +538,16 @@ export declare function findAssignmentsWithFiles(classId: string): import("@pris
|
|
|
542
538
|
uploadedAt: Date | null;
|
|
543
539
|
thumbnailId: string | null;
|
|
544
540
|
}[];
|
|
541
|
+
student: {
|
|
542
|
+
id: string;
|
|
543
|
+
username: string;
|
|
544
|
+
};
|
|
545
545
|
} & {
|
|
546
546
|
id: string;
|
|
547
547
|
createdAt: Date;
|
|
548
548
|
assignmentId: string;
|
|
549
|
-
modifiedAt: Date;
|
|
550
549
|
studentId: string;
|
|
550
|
+
modifiedAt: Date;
|
|
551
551
|
extendedResponse: string | null;
|
|
552
552
|
gradeReceived: number | null;
|
|
553
553
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -559,10 +559,6 @@ export declare function findAssignmentsWithFiles(classId: string): import("@pris
|
|
|
559
559
|
submitted: boolean | null;
|
|
560
560
|
returned: boolean | null;
|
|
561
561
|
})[];
|
|
562
|
-
teacher: {
|
|
563
|
-
id: string;
|
|
564
|
-
username: string;
|
|
565
|
-
};
|
|
566
562
|
attachments: {
|
|
567
563
|
path: string;
|
|
568
564
|
type: string;
|
|
@@ -576,6 +572,10 @@ export declare function findAssignmentsWithFiles(classId: string): import("@pris
|
|
|
576
572
|
uploadedAt: Date | null;
|
|
577
573
|
thumbnailId: string | null;
|
|
578
574
|
}[];
|
|
575
|
+
teacher: {
|
|
576
|
+
id: string;
|
|
577
|
+
username: string;
|
|
578
|
+
};
|
|
579
579
|
} & {
|
|
580
580
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
581
581
|
id: string;
|
|
@@ -658,11 +658,11 @@ export declare function findFullExportableClass(classId: string): Promise<{
|
|
|
658
658
|
type: import(".prisma/client").$Enums.WorksheetQuestionType;
|
|
659
659
|
options: import("@prisma/client/runtime/library.js").JsonValue;
|
|
660
660
|
markScheme: import("@prisma/client/runtime/library.js").JsonValue;
|
|
661
|
-
|
|
662
|
-
worksheetId: string;
|
|
661
|
+
points: number;
|
|
663
662
|
question: string;
|
|
663
|
+
worksheetId: string;
|
|
664
|
+
order: number | null;
|
|
664
665
|
answer: string;
|
|
665
|
-
points: number;
|
|
666
666
|
}[];
|
|
667
667
|
}[];
|
|
668
668
|
markSchemes: {
|
package/dist/models/comment.d.ts
CHANGED
|
@@ -83,8 +83,8 @@ export declare function findCommentById(id: string): import("@prisma/client/runt
|
|
|
83
83
|
content: string;
|
|
84
84
|
assignmentId: string | null;
|
|
85
85
|
submissionId: string | null;
|
|
86
|
-
modifiedAt: Date | null;
|
|
87
86
|
announcementId: string | null;
|
|
87
|
+
modifiedAt: Date | null;
|
|
88
88
|
isPinned: boolean;
|
|
89
89
|
author: {
|
|
90
90
|
id: string;
|
|
@@ -114,8 +114,8 @@ export declare function findRepliesByCommentId(commentId: string): import("@pris
|
|
|
114
114
|
content: string;
|
|
115
115
|
assignmentId: string | null;
|
|
116
116
|
submissionId: string | null;
|
|
117
|
-
modifiedAt: Date | null;
|
|
118
117
|
announcementId: string | null;
|
|
118
|
+
modifiedAt: Date | null;
|
|
119
119
|
authorId: string;
|
|
120
120
|
isPinned: boolean;
|
|
121
121
|
parentCommentId: string | null;
|
|
@@ -160,8 +160,8 @@ export declare function createComment(data: {
|
|
|
160
160
|
content: string;
|
|
161
161
|
assignmentId: string | null;
|
|
162
162
|
submissionId: string | null;
|
|
163
|
-
modifiedAt: Date | null;
|
|
164
163
|
announcementId: string | null;
|
|
164
|
+
modifiedAt: Date | null;
|
|
165
165
|
authorId: string;
|
|
166
166
|
isPinned: boolean;
|
|
167
167
|
parentCommentId: string | null;
|
|
@@ -321,8 +321,8 @@ export declare function findCommentWithAnnouncement(commentId: string): import("
|
|
|
321
321
|
content: string;
|
|
322
322
|
assignmentId: string | null;
|
|
323
323
|
submissionId: string | null;
|
|
324
|
-
modifiedAt: Date | null;
|
|
325
324
|
announcementId: string | null;
|
|
325
|
+
modifiedAt: Date | null;
|
|
326
326
|
authorId: string;
|
|
327
327
|
isPinned: boolean;
|
|
328
328
|
parentCommentId: string | null;
|
|
@@ -511,8 +511,8 @@ export declare function findCommentWithContext(commentId: string): import("@pris
|
|
|
511
511
|
content: string;
|
|
512
512
|
assignmentId: string | null;
|
|
513
513
|
submissionId: string | null;
|
|
514
|
-
modifiedAt: Date | null;
|
|
515
514
|
announcementId: string | null;
|
|
515
|
+
modifiedAt: Date | null;
|
|
516
516
|
authorId: string;
|
|
517
517
|
isPinned: boolean;
|
|
518
518
|
parentCommentId: string | null;
|
|
@@ -524,8 +524,8 @@ export declare function findCommentWithContext(commentId: string): import("@pris
|
|
|
524
524
|
content: string;
|
|
525
525
|
assignmentId: string | null;
|
|
526
526
|
submissionId: string | null;
|
|
527
|
-
modifiedAt: Date | null;
|
|
528
527
|
announcementId: string | null;
|
|
528
|
+
modifiedAt: Date | null;
|
|
529
529
|
authorId: string;
|
|
530
530
|
isPinned: boolean;
|
|
531
531
|
parentCommentId: string | null;
|
|
@@ -4,42 +4,42 @@ export declare function findConversationsByUserId(userId: string): import("@pris
|
|
|
4
4
|
id: string;
|
|
5
5
|
title: string;
|
|
6
6
|
} | null;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
messages: ({
|
|
8
|
+
sender: {
|
|
9
9
|
id: string;
|
|
10
10
|
username: string;
|
|
11
11
|
profile: {
|
|
12
|
-
profilePicture: string | null;
|
|
13
12
|
displayName: string | null;
|
|
14
13
|
} | null;
|
|
15
14
|
};
|
|
16
15
|
} & {
|
|
16
|
+
status: import(".prisma/client").$Enums.JobStatus | null;
|
|
17
|
+
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
17
18
|
id: string;
|
|
18
|
-
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
content: string;
|
|
21
|
+
senderId: string;
|
|
19
22
|
conversationId: string;
|
|
20
|
-
|
|
21
|
-
joinedAt: Date;
|
|
22
|
-
hiddenAt: Date | null;
|
|
23
|
-
lastViewedAt: Date | null;
|
|
24
|
-
lastViewedMentionAt: Date | null;
|
|
23
|
+
runJobId: string | null;
|
|
25
24
|
})[];
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
members: ({
|
|
26
|
+
user: {
|
|
28
27
|
id: string;
|
|
29
28
|
username: string;
|
|
30
29
|
profile: {
|
|
30
|
+
profilePicture: string | null;
|
|
31
31
|
displayName: string | null;
|
|
32
32
|
} | null;
|
|
33
33
|
};
|
|
34
34
|
} & {
|
|
35
|
-
status: import(".prisma/client").$Enums.JobStatus | null;
|
|
36
|
-
meta: import("@prisma/client/runtime/library.js").JsonValue | null;
|
|
37
35
|
id: string;
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
userId: string;
|
|
37
|
+
role: import(".prisma/client").$Enums.ConversationRole;
|
|
40
38
|
conversationId: string;
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
joinedAt: Date;
|
|
40
|
+
hiddenAt: Date | null;
|
|
41
|
+
lastViewedAt: Date | null;
|
|
42
|
+
lastViewedMentionAt: Date | null;
|
|
43
43
|
})[];
|
|
44
44
|
} & {
|
|
45
45
|
type: import(".prisma/client").$Enums.ConversationType;
|
|
@@ -161,8 +161,8 @@ export declare function createConversation(data: {
|
|
|
161
161
|
} & {
|
|
162
162
|
id: string;
|
|
163
163
|
userId: string;
|
|
164
|
-
conversationId: string;
|
|
165
164
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
165
|
+
conversationId: string;
|
|
166
166
|
joinedAt: Date;
|
|
167
167
|
hiddenAt: Date | null;
|
|
168
168
|
lastViewedAt: Date | null;
|
|
@@ -214,8 +214,8 @@ export declare function findConversationByIdAndMember(conversationId: string, us
|
|
|
214
214
|
} & {
|
|
215
215
|
id: string;
|
|
216
216
|
userId: string;
|
|
217
|
-
conversationId: string;
|
|
218
217
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
218
|
+
conversationId: string;
|
|
219
219
|
joinedAt: Date;
|
|
220
220
|
hiddenAt: Date | null;
|
|
221
221
|
lastViewedAt: Date | null;
|
|
@@ -261,8 +261,8 @@ export declare function createConversationMember(data: {
|
|
|
261
261
|
}, {}>, "ConversationMember", "create", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
262
262
|
id: string;
|
|
263
263
|
userId: string;
|
|
264
|
-
conversationId: string;
|
|
265
264
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
265
|
+
conversationId: string;
|
|
266
266
|
joinedAt: Date;
|
|
267
267
|
hiddenAt: Date | null;
|
|
268
268
|
lastViewedAt: Date | null;
|
|
@@ -296,8 +296,8 @@ export declare function hideConversationMember(userId: string, conversationId: s
|
|
|
296
296
|
}, {}>, "ConversationMember", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
297
297
|
id: string;
|
|
298
298
|
userId: string;
|
|
299
|
-
conversationId: string;
|
|
300
299
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
300
|
+
conversationId: string;
|
|
301
301
|
joinedAt: Date;
|
|
302
302
|
hiddenAt: Date | null;
|
|
303
303
|
lastViewedAt: Date | null;
|
|
@@ -331,8 +331,8 @@ export declare function unhideConversationMember(userId: string, conversationId:
|
|
|
331
331
|
}, {}>, "ConversationMember", "update", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
332
332
|
id: string;
|
|
333
333
|
userId: string;
|
|
334
|
-
conversationId: string;
|
|
335
334
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
335
|
+
conversationId: string;
|
|
336
336
|
joinedAt: Date;
|
|
337
337
|
hiddenAt: Date | null;
|
|
338
338
|
lastViewedAt: Date | null;
|
|
@@ -366,8 +366,8 @@ export declare function deleteConversationMember(userId: string, conversationId:
|
|
|
366
366
|
}, {}>, "ConversationMember", "delete", never> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
367
367
|
id: string;
|
|
368
368
|
userId: string;
|
|
369
|
-
conversationId: string;
|
|
370
369
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
370
|
+
conversationId: string;
|
|
371
371
|
joinedAt: Date;
|
|
372
372
|
hiddenAt: Date | null;
|
|
373
373
|
lastViewedAt: Date | null;
|
package/dist/models/event.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export declare function findEventById(id: string): import("@prisma/client/runtim
|
|
|
30
30
|
email: string;
|
|
31
31
|
password: string;
|
|
32
32
|
verified: boolean;
|
|
33
|
+
termsAcceptedAt: Date | null;
|
|
34
|
+
termsVersion: string | null;
|
|
33
35
|
schoolId: string | null;
|
|
34
36
|
} | null;
|
|
35
37
|
class: ({
|
|
@@ -75,6 +77,11 @@ export declare function findEventById(id: string): import("@prisma/client/runtim
|
|
|
75
77
|
title: string;
|
|
76
78
|
dueDate: Date;
|
|
77
79
|
maxGrade: number | null;
|
|
80
|
+
attachments: {
|
|
81
|
+
type: string;
|
|
82
|
+
id: string;
|
|
83
|
+
name: string;
|
|
84
|
+
}[];
|
|
78
85
|
instructions: string;
|
|
79
86
|
graded: boolean;
|
|
80
87
|
weight: number;
|
|
@@ -82,11 +89,6 @@ export declare function findEventById(id: string): import("@prisma/client/runtim
|
|
|
82
89
|
id: string;
|
|
83
90
|
username: string;
|
|
84
91
|
};
|
|
85
|
-
attachments: {
|
|
86
|
-
type: string;
|
|
87
|
-
id: string;
|
|
88
|
-
name: string;
|
|
89
|
-
}[];
|
|
90
92
|
}[];
|
|
91
93
|
} & {
|
|
92
94
|
id: string;
|
|
@@ -451,15 +453,15 @@ export declare function attachAssignmentToEvent(assignmentId: string, eventId: s
|
|
|
451
453
|
id: string;
|
|
452
454
|
name: string;
|
|
453
455
|
} | null;
|
|
454
|
-
teacher: {
|
|
455
|
-
id: string;
|
|
456
|
-
username: string;
|
|
457
|
-
};
|
|
458
456
|
attachments: {
|
|
459
457
|
type: string;
|
|
460
458
|
id: string;
|
|
461
459
|
name: string;
|
|
462
460
|
}[];
|
|
461
|
+
teacher: {
|
|
462
|
+
id: string;
|
|
463
|
+
username: string;
|
|
464
|
+
};
|
|
463
465
|
} & {
|
|
464
466
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
465
467
|
id: string;
|
|
@@ -516,15 +518,15 @@ export declare function detachAssignmentFromEvent(assignmentId: string): import(
|
|
|
516
518
|
id: string;
|
|
517
519
|
name: string;
|
|
518
520
|
} | null;
|
|
519
|
-
teacher: {
|
|
520
|
-
id: string;
|
|
521
|
-
username: string;
|
|
522
|
-
};
|
|
523
521
|
attachments: {
|
|
524
522
|
type: string;
|
|
525
523
|
id: string;
|
|
526
524
|
name: string;
|
|
527
525
|
}[];
|
|
526
|
+
teacher: {
|
|
527
|
+
id: string;
|
|
528
|
+
username: string;
|
|
529
|
+
};
|
|
528
530
|
} & {
|
|
529
531
|
type: import(".prisma/client").$Enums.AssignmentType;
|
|
530
532
|
id: string;
|
|
@@ -562,6 +564,11 @@ export declare function findAvailableAssignmentsForClass(classId: string): impor
|
|
|
562
564
|
title: string;
|
|
563
565
|
dueDate: Date;
|
|
564
566
|
maxGrade: number | null;
|
|
567
|
+
attachments: {
|
|
568
|
+
type: string;
|
|
569
|
+
id: string;
|
|
570
|
+
name: string;
|
|
571
|
+
}[];
|
|
565
572
|
instructions: string;
|
|
566
573
|
graded: boolean;
|
|
567
574
|
weight: number;
|
|
@@ -569,10 +576,5 @@ export declare function findAvailableAssignmentsForClass(classId: string): impor
|
|
|
569
576
|
id: string;
|
|
570
577
|
username: string;
|
|
571
578
|
};
|
|
572
|
-
attachments: {
|
|
573
|
-
type: string;
|
|
574
|
-
id: string;
|
|
575
|
-
name: string;
|
|
576
|
-
}[];
|
|
577
579
|
}[]>;
|
|
578
580
|
//# sourceMappingURL=event.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.d.ts","sourceRoot":"/","sources":["models/event.ts"],"names":[],"mappings":"AA+DA,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"event.d.ts","sourceRoot":"/","sources":["models/event.ts"],"names":[],"mappings":"AA+DA,mEAAmE;AACnE,wBAAgB,aAAa,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAyB3D;AAED,qCAAqC;AACrC,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOhB;AAED,wCAAwC;AACxC,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM7D;AAED,sDAAsD;AACtD,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;KAqB/D"}
|
package/dist/models/file.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
45
45
|
email: string;
|
|
46
46
|
password: string;
|
|
47
47
|
verified: boolean;
|
|
48
|
+
termsAcceptedAt: Date | null;
|
|
49
|
+
termsVersion: string | null;
|
|
48
50
|
schoolId: string | null;
|
|
49
51
|
}[];
|
|
50
52
|
students: {
|
|
@@ -53,6 +55,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
53
55
|
email: string;
|
|
54
56
|
password: string;
|
|
55
57
|
verified: boolean;
|
|
58
|
+
termsAcceptedAt: Date | null;
|
|
59
|
+
termsVersion: string | null;
|
|
56
60
|
schoolId: string | null;
|
|
57
61
|
}[];
|
|
58
62
|
} & {
|
|
@@ -99,6 +103,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
99
103
|
email: string;
|
|
100
104
|
password: string;
|
|
101
105
|
verified: boolean;
|
|
106
|
+
termsAcceptedAt: Date | null;
|
|
107
|
+
termsVersion: string | null;
|
|
102
108
|
schoolId: string | null;
|
|
103
109
|
}[];
|
|
104
110
|
students: {
|
|
@@ -107,6 +113,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
107
113
|
email: string;
|
|
108
114
|
password: string;
|
|
109
115
|
verified: boolean;
|
|
116
|
+
termsAcceptedAt: Date | null;
|
|
117
|
+
termsVersion: string | null;
|
|
110
118
|
schoolId: string | null;
|
|
111
119
|
}[];
|
|
112
120
|
} & {
|
|
@@ -169,6 +177,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
169
177
|
email: string;
|
|
170
178
|
password: string;
|
|
171
179
|
verified: boolean;
|
|
180
|
+
termsAcceptedAt: Date | null;
|
|
181
|
+
termsVersion: string | null;
|
|
172
182
|
schoolId: string | null;
|
|
173
183
|
}[];
|
|
174
184
|
students: {
|
|
@@ -177,6 +187,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
177
187
|
email: string;
|
|
178
188
|
password: string;
|
|
179
189
|
verified: boolean;
|
|
190
|
+
termsAcceptedAt: Date | null;
|
|
191
|
+
termsVersion: string | null;
|
|
180
192
|
schoolId: string | null;
|
|
181
193
|
}[];
|
|
182
194
|
} & {
|
|
@@ -222,6 +234,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
222
234
|
email: string;
|
|
223
235
|
password: string;
|
|
224
236
|
verified: boolean;
|
|
237
|
+
termsAcceptedAt: Date | null;
|
|
238
|
+
termsVersion: string | null;
|
|
225
239
|
schoolId: string | null;
|
|
226
240
|
}[];
|
|
227
241
|
students: {
|
|
@@ -230,6 +244,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
230
244
|
email: string;
|
|
231
245
|
password: string;
|
|
232
246
|
verified: boolean;
|
|
247
|
+
termsAcceptedAt: Date | null;
|
|
248
|
+
termsVersion: string | null;
|
|
233
249
|
schoolId: string | null;
|
|
234
250
|
}[];
|
|
235
251
|
} & {
|
|
@@ -277,14 +293,16 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
277
293
|
email: string;
|
|
278
294
|
password: string;
|
|
279
295
|
verified: boolean;
|
|
296
|
+
termsAcceptedAt: Date | null;
|
|
297
|
+
termsVersion: string | null;
|
|
280
298
|
schoolId: string | null;
|
|
281
299
|
};
|
|
282
300
|
} & {
|
|
283
301
|
id: string;
|
|
284
302
|
createdAt: Date;
|
|
285
303
|
assignmentId: string;
|
|
286
|
-
modifiedAt: Date;
|
|
287
304
|
studentId: string;
|
|
305
|
+
modifiedAt: Date;
|
|
288
306
|
extendedResponse: string | null;
|
|
289
307
|
gradeReceived: number | null;
|
|
290
308
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -318,6 +336,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
318
336
|
email: string;
|
|
319
337
|
password: string;
|
|
320
338
|
verified: boolean;
|
|
339
|
+
termsAcceptedAt: Date | null;
|
|
340
|
+
termsVersion: string | null;
|
|
321
341
|
schoolId: string | null;
|
|
322
342
|
}[];
|
|
323
343
|
students: {
|
|
@@ -326,6 +346,8 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
326
346
|
email: string;
|
|
327
347
|
password: string;
|
|
328
348
|
verified: boolean;
|
|
349
|
+
termsAcceptedAt: Date | null;
|
|
350
|
+
termsVersion: string | null;
|
|
329
351
|
schoolId: string | null;
|
|
330
352
|
}[];
|
|
331
353
|
} & {
|
|
@@ -373,14 +395,16 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
373
395
|
email: string;
|
|
374
396
|
password: string;
|
|
375
397
|
verified: boolean;
|
|
398
|
+
termsAcceptedAt: Date | null;
|
|
399
|
+
termsVersion: string | null;
|
|
376
400
|
schoolId: string | null;
|
|
377
401
|
};
|
|
378
402
|
} & {
|
|
379
403
|
id: string;
|
|
380
404
|
createdAt: Date;
|
|
381
405
|
assignmentId: string;
|
|
382
|
-
modifiedAt: Date;
|
|
383
406
|
studentId: string;
|
|
407
|
+
modifiedAt: Date;
|
|
384
408
|
extendedResponse: string | null;
|
|
385
409
|
gradeReceived: number | null;
|
|
386
410
|
recommendationState: import(".prisma/client").$Enums.SubmissionRecommendationState;
|
|
@@ -404,6 +428,7 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
404
428
|
submissionId: string | null;
|
|
405
429
|
thumbnailId: string | null;
|
|
406
430
|
annotationId: string | null;
|
|
431
|
+
conversationId: string | null;
|
|
407
432
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
408
433
|
uploadUrl: string | null;
|
|
409
434
|
uploadExpiresAt: Date | null;
|
|
@@ -415,7 +440,6 @@ export declare function findFileById(fileId: string): import("@prisma/client/run
|
|
|
415
440
|
cleanupAt: Date | null;
|
|
416
441
|
classDraftId: string | null;
|
|
417
442
|
folderId: string | null;
|
|
418
|
-
conversationId: string | null;
|
|
419
443
|
messageId: string | null;
|
|
420
444
|
announcementId: string | null;
|
|
421
445
|
discussionId: string | null;
|
|
@@ -484,6 +508,7 @@ export declare function findFileWithFolder(fileId: string): import("@prisma/clie
|
|
|
484
508
|
submissionId: string | null;
|
|
485
509
|
thumbnailId: string | null;
|
|
486
510
|
annotationId: string | null;
|
|
511
|
+
conversationId: string | null;
|
|
487
512
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
488
513
|
uploadUrl: string | null;
|
|
489
514
|
uploadExpiresAt: Date | null;
|
|
@@ -495,7 +520,6 @@ export declare function findFileWithFolder(fileId: string): import("@prisma/clie
|
|
|
495
520
|
cleanupAt: Date | null;
|
|
496
521
|
classDraftId: string | null;
|
|
497
522
|
folderId: string | null;
|
|
498
|
-
conversationId: string | null;
|
|
499
523
|
messageId: string | null;
|
|
500
524
|
announcementId: string | null;
|
|
501
525
|
discussionId: string | null;
|
|
@@ -564,6 +588,7 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
|
|
|
564
588
|
submissionId: string | null;
|
|
565
589
|
thumbnailId: string | null;
|
|
566
590
|
annotationId: string | null;
|
|
591
|
+
conversationId: string | null;
|
|
567
592
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
568
593
|
uploadUrl: string | null;
|
|
569
594
|
uploadExpiresAt: Date | null;
|
|
@@ -575,7 +600,6 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
|
|
|
575
600
|
cleanupAt: Date | null;
|
|
576
601
|
classDraftId: string | null;
|
|
577
602
|
folderId: string | null;
|
|
578
|
-
conversationId: string | null;
|
|
579
603
|
messageId: string | null;
|
|
580
604
|
announcementId: string | null;
|
|
581
605
|
discussionId: string | null;
|
|
@@ -594,6 +618,7 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
|
|
|
594
618
|
submissionId: string | null;
|
|
595
619
|
thumbnailId: string | null;
|
|
596
620
|
annotationId: string | null;
|
|
621
|
+
conversationId: string | null;
|
|
597
622
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
598
623
|
uploadUrl: string | null;
|
|
599
624
|
uploadExpiresAt: Date | null;
|
|
@@ -605,7 +630,6 @@ export declare function findFileWithFolderAndThumbnail(fileId: string): import("
|
|
|
605
630
|
cleanupAt: Date | null;
|
|
606
631
|
classDraftId: string | null;
|
|
607
632
|
folderId: string | null;
|
|
608
|
-
conversationId: string | null;
|
|
609
633
|
messageId: string | null;
|
|
610
634
|
announcementId: string | null;
|
|
611
635
|
discussionId: string | null;
|
|
@@ -703,6 +727,7 @@ export declare function updateFileFolder(fileId: string, folderId: string): impo
|
|
|
703
727
|
submissionId: string | null;
|
|
704
728
|
thumbnailId: string | null;
|
|
705
729
|
annotationId: string | null;
|
|
730
|
+
conversationId: string | null;
|
|
706
731
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
707
732
|
uploadUrl: string | null;
|
|
708
733
|
uploadExpiresAt: Date | null;
|
|
@@ -714,7 +739,6 @@ export declare function updateFileFolder(fileId: string, folderId: string): impo
|
|
|
714
739
|
cleanupAt: Date | null;
|
|
715
740
|
classDraftId: string | null;
|
|
716
741
|
folderId: string | null;
|
|
717
|
-
conversationId: string | null;
|
|
718
742
|
messageId: string | null;
|
|
719
743
|
announcementId: string | null;
|
|
720
744
|
discussionId: string | null;
|
|
@@ -763,6 +787,7 @@ export declare function updateFileName(fileId: string, name: string): import("@p
|
|
|
763
787
|
submissionId: string | null;
|
|
764
788
|
thumbnailId: string | null;
|
|
765
789
|
annotationId: string | null;
|
|
790
|
+
conversationId: string | null;
|
|
766
791
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
767
792
|
uploadUrl: string | null;
|
|
768
793
|
uploadExpiresAt: Date | null;
|
|
@@ -774,7 +799,6 @@ export declare function updateFileName(fileId: string, name: string): import("@p
|
|
|
774
799
|
cleanupAt: Date | null;
|
|
775
800
|
classDraftId: string | null;
|
|
776
801
|
folderId: string | null;
|
|
777
|
-
conversationId: string | null;
|
|
778
802
|
messageId: string | null;
|
|
779
803
|
announcementId: string | null;
|
|
780
804
|
discussionId: string | null;
|
|
@@ -818,6 +842,7 @@ export declare function deleteFileById(fileId: string): import("@prisma/client/r
|
|
|
818
842
|
submissionId: string | null;
|
|
819
843
|
thumbnailId: string | null;
|
|
820
844
|
annotationId: string | null;
|
|
845
|
+
conversationId: string | null;
|
|
821
846
|
uploadStatus: import(".prisma/client").$Enums.UploadStatus;
|
|
822
847
|
uploadUrl: string | null;
|
|
823
848
|
uploadExpiresAt: Date | null;
|
|
@@ -829,7 +854,6 @@ export declare function deleteFileById(fileId: string): import("@prisma/client/r
|
|
|
829
854
|
cleanupAt: Date | null;
|
|
830
855
|
classDraftId: string | null;
|
|
831
856
|
folderId: string | null;
|
|
832
|
-
conversationId: string | null;
|
|
833
857
|
messageId: string | null;
|
|
834
858
|
announcementId: string | null;
|
|
835
859
|
discussionId: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"/","sources":["models/file.ts"],"names":[],"mappings":"AAqBA,0GAA0G;AAC1G,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM
|
|
1
|
+
{"version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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQhE;AAED,qBAAqB;AACrB,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAQ1D;AAED,4BAA4B;AAC5B,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAI5C"}
|
package/dist/models/labChat.d.ts
CHANGED
|
@@ -98,8 +98,8 @@ export declare function findLabChatByMember(labChatId: string, userId: string):
|
|
|
98
98
|
} & {
|
|
99
99
|
id: string;
|
|
100
100
|
userId: string;
|
|
101
|
-
conversationId: string;
|
|
102
101
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
102
|
+
conversationId: string;
|
|
103
103
|
joinedAt: Date;
|
|
104
104
|
hiddenAt: Date | null;
|
|
105
105
|
lastViewedAt: Date | null;
|
|
@@ -215,8 +215,8 @@ export declare function findLabChatById(labChatId: string): import("@prisma/clie
|
|
|
215
215
|
} & {
|
|
216
216
|
id: string;
|
|
217
217
|
userId: string;
|
|
218
|
-
conversationId: string;
|
|
219
218
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
219
|
+
conversationId: string;
|
|
220
220
|
joinedAt: Date;
|
|
221
221
|
hiddenAt: Date | null;
|
|
222
222
|
lastViewedAt: Date | null;
|
|
@@ -306,9 +306,9 @@ export declare function findLabChatsByClass(classId: string): import("@prisma/cl
|
|
|
306
306
|
id: string;
|
|
307
307
|
createdAt: Date;
|
|
308
308
|
content: string;
|
|
309
|
+
senderId: string;
|
|
309
310
|
conversationId: string;
|
|
310
311
|
runJobId: string | null;
|
|
311
|
-
senderId: string;
|
|
312
312
|
})[];
|
|
313
313
|
} & {
|
|
314
314
|
type: import(".prisma/client").$Enums.ConversationType;
|
|
@@ -413,8 +413,8 @@ export declare function findLabChatForDelete(labChatId: string, userId: string):
|
|
|
413
413
|
export declare function findMentionedMemberships(conversationId: string, userIds: string[]): import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
414
414
|
id: string;
|
|
415
415
|
userId: string;
|
|
416
|
-
conversationId: string;
|
|
417
416
|
role: import(".prisma/client").$Enums.ConversationRole;
|
|
417
|
+
conversationId: string;
|
|
418
418
|
joinedAt: Date;
|
|
419
419
|
hiddenAt: Date | null;
|
|
420
420
|
lastViewedAt: Date | null;
|
|
@@ -61,8 +61,8 @@ export declare function createSchoolDevelopmentProgram(data: {
|
|
|
61
61
|
additionalInformation: string | null;
|
|
62
62
|
reviewedAt: Date | null;
|
|
63
63
|
}>;
|
|
64
|
-
/**
|
|
65
|
-
export declare function
|
|
64
|
+
/** Public status lookup — omits contact PII (email, phone, address). */
|
|
65
|
+
export declare function findSchoolDevelopmentProgramStatusById(id: string): import("@prisma/client/runtime/library.js").DynamicModelExtensionFluentApi<import(".prisma/client").Prisma.TypeMap<import("@prisma/client/runtime/library.js").InternalArgs & {
|
|
66
66
|
result: {
|
|
67
67
|
userProfile: {
|
|
68
68
|
profilePicture: () => {
|
|
@@ -87,25 +87,12 @@ export declare function findSchoolDevelopmentProgramById(id: string): import("@p
|
|
|
87
87
|
query: {};
|
|
88
88
|
client: {};
|
|
89
89
|
}, {}>, "SchoolDevelopementProgram", "findUnique", null> & import("@prisma/client/runtime/library.js").PrismaPromise<{
|
|
90
|
-
type: string;
|
|
91
90
|
status: string;
|
|
92
91
|
id: string;
|
|
93
|
-
website: string | null;
|
|
94
92
|
name: string;
|
|
95
93
|
submittedAt: Date | null;
|
|
96
|
-
address: string;
|
|
97
94
|
city: string;
|
|
98
95
|
country: string;
|
|
99
|
-
numberOfStudents: number;
|
|
100
|
-
numberOfTeachers: number;
|
|
101
|
-
contactName: string | null;
|
|
102
|
-
contactRole: string | null;
|
|
103
|
-
contactEmail: string | null;
|
|
104
|
-
contactPhone: string | null;
|
|
105
|
-
eligibilityInformation: string | null;
|
|
106
|
-
whyHelp: string | null;
|
|
107
|
-
additionalInformation: string | null;
|
|
108
|
-
reviewedAt: Date | null;
|
|
109
96
|
} | null>;
|
|
110
97
|
/** Create an early access request. */
|
|
111
98
|
export declare function createEarlyAccessRequest(data: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketing.d.ts","sourceRoot":"/","sources":["models/marketing.ts"],"names":[],"mappings":"AAKA,uDAAuD;AACvD,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAIA;AAED,
|
|
1
|
+
{"version":3,"file":"marketing.d.ts","sourceRoot":"/","sources":["models/marketing.ts"],"names":[],"mappings":"AAKA,uDAAuD;AACvD,wBAAgB,8BAA8B,CAAC,IAAI,EAAE;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IAC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