@dgpholdings/greatoak-shared 1.2.62 → 1.2.63
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.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { TExercise } from "./TApiExercise";
|
|
2
|
+
export type TAiAssistantCase = "compare" | "tips";
|
|
3
|
+
export type TApiAdminAiAssistantReq = {
|
|
4
|
+
case: TAiAssistantCase;
|
|
5
|
+
exerciseId: string;
|
|
6
|
+
};
|
|
7
|
+
export type TExercisePropSuggestion = {
|
|
8
|
+
prop: keyof TExercise;
|
|
9
|
+
currentValue: unknown;
|
|
10
|
+
suggestedValue: unknown;
|
|
11
|
+
reason: string;
|
|
12
|
+
};
|
|
13
|
+
export type TNamingConflict = {
|
|
14
|
+
hasConflict: boolean;
|
|
15
|
+
currentName: string;
|
|
16
|
+
aiSuggestedName: string;
|
|
17
|
+
conflictReason: string;
|
|
18
|
+
recommendation: string;
|
|
19
|
+
};
|
|
20
|
+
export type TCompareResponse = {
|
|
21
|
+
exerciseId: string;
|
|
22
|
+
namingConflict: TNamingConflict;
|
|
23
|
+
improvements: TExercisePropSuggestion[];
|
|
24
|
+
reviewNotes: string[];
|
|
25
|
+
overallQuality: "excellent" | "good" | "fair" | "needs-improvement";
|
|
26
|
+
};
|
|
27
|
+
export type TTipsResponse = {
|
|
28
|
+
exerciseId: string;
|
|
29
|
+
exerciseName: string;
|
|
30
|
+
instructions: string[];
|
|
31
|
+
tips: string[];
|
|
32
|
+
commonMistakes: string[];
|
|
33
|
+
safetyNotes: string[];
|
|
34
|
+
beginnerAdvice: string;
|
|
35
|
+
};
|
|
36
|
+
export type TApiAdminAiAssistantRes = {
|
|
37
|
+
case: "compare";
|
|
38
|
+
data: TCompareResponse;
|
|
39
|
+
} | {
|
|
40
|
+
case: "tips";
|
|
41
|
+
data: TTipsResponse;
|
|
42
|
+
};
|
package/dist/types/index.d.ts
CHANGED