@vestcards/server-types 1.5.0 → 1.6.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.
|
@@ -1024,6 +1024,36 @@ declare const app: Elysia<"", {
|
|
|
1024
1024
|
params: {};
|
|
1025
1025
|
query: {};
|
|
1026
1026
|
headers: {};
|
|
1027
|
+
response: {
|
|
1028
|
+
200: {
|
|
1029
|
+
success: boolean;
|
|
1030
|
+
reviewLogId: number;
|
|
1031
|
+
};
|
|
1032
|
+
422: {
|
|
1033
|
+
type: "validation";
|
|
1034
|
+
on: string;
|
|
1035
|
+
summary?: string;
|
|
1036
|
+
message?: string;
|
|
1037
|
+
found?: unknown;
|
|
1038
|
+
property?: string;
|
|
1039
|
+
expected?: string;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
} & {
|
|
1047
|
+
v1: {
|
|
1048
|
+
study: {
|
|
1049
|
+
grade: {
|
|
1050
|
+
delete: {
|
|
1051
|
+
body: {};
|
|
1052
|
+
params: {};
|
|
1053
|
+
query: {
|
|
1054
|
+
reviewLogId: number;
|
|
1055
|
+
};
|
|
1056
|
+
headers: {};
|
|
1027
1057
|
response: {
|
|
1028
1058
|
200: {
|
|
1029
1059
|
success: boolean;
|
|
@@ -503,6 +503,36 @@ export declare const studyModule: Elysia<"/v1/study", {
|
|
|
503
503
|
params: {};
|
|
504
504
|
query: {};
|
|
505
505
|
headers: {};
|
|
506
|
+
response: {
|
|
507
|
+
200: {
|
|
508
|
+
success: boolean;
|
|
509
|
+
reviewLogId: number;
|
|
510
|
+
};
|
|
511
|
+
422: {
|
|
512
|
+
type: "validation";
|
|
513
|
+
on: string;
|
|
514
|
+
summary?: string;
|
|
515
|
+
message?: string;
|
|
516
|
+
found?: unknown;
|
|
517
|
+
property?: string;
|
|
518
|
+
expected?: string;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
};
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
} & {
|
|
526
|
+
v1: {
|
|
527
|
+
study: {
|
|
528
|
+
grade: {
|
|
529
|
+
delete: {
|
|
530
|
+
body: {};
|
|
531
|
+
params: {};
|
|
532
|
+
query: {
|
|
533
|
+
reviewLogId: number;
|
|
534
|
+
};
|
|
535
|
+
headers: {};
|
|
506
536
|
response: {
|
|
507
537
|
200: {
|
|
508
538
|
success: boolean;
|
|
@@ -17,4 +17,8 @@ export declare namespace StudyModel {
|
|
|
17
17
|
reviewDurationInSeconds: import("@sinclair/typebox").TNumber;
|
|
18
18
|
}>;
|
|
19
19
|
type GradeCardBody = typeof gradeCardBody.static;
|
|
20
|
+
const undoGradeCardQuery: import("@sinclair/typebox").TObject<{
|
|
21
|
+
reviewLogId: import("@sinclair/typebox").TInteger;
|
|
22
|
+
}>;
|
|
23
|
+
type UndoGradeCardQuery = typeof undoGradeCardQuery.static;
|
|
20
24
|
}
|
|
@@ -16,7 +16,10 @@ export declare abstract class StudyService {
|
|
|
16
16
|
createdAt: Date;
|
|
17
17
|
}>;
|
|
18
18
|
static getCardReview(userId: string, cardId: string): Promise<CardReview>;
|
|
19
|
-
static gradeCard(userId: string, input: StudyModel.GradeCardBody): Promise<
|
|
19
|
+
static gradeCard(userId: string, input: StudyModel.GradeCardBody): Promise<{
|
|
20
|
+
reviewLogId: number;
|
|
21
|
+
}>;
|
|
22
|
+
static undoGradeCard(userId: string, input: StudyModel.UndoGradeCardQuery): Promise<void>;
|
|
20
23
|
static getStudyContext(userId: string, type: StudyType, id?: string): Promise<{
|
|
21
24
|
type: "ALL";
|
|
22
25
|
title: string;
|