@dgpholdings/greatoak-shared 1.2.62 → 1.2.64

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,46 @@
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 TMultilingualStrings = {
28
+ en: string[];
29
+ de: string[];
30
+ fr: string[];
31
+ es: string[];
32
+ ru: string[];
33
+ };
34
+ export type TTipsResponse = {
35
+ exerciseId: string;
36
+ exerciseName: string;
37
+ instructions: TMultilingualStrings;
38
+ tips: TMultilingualStrings;
39
+ };
40
+ export type TApiAdminAiAssistantRes = {
41
+ case: "compare";
42
+ data: TCompareResponse;
43
+ } | {
44
+ case: "tips";
45
+ data: TTipsResponse;
46
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,3 +12,4 @@ export type * from "./TApiClientProgress";
12
12
  export type * from "./TApiProPlan";
13
13
  export type * from "./TApiSales";
14
14
  export type * from "./TApiAiExerciseAnalysis";
15
+ export type * from "./TApiAdminAiHelp";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dgpholdings/greatoak-shared",
3
- "version": "1.2.62",
3
+ "version": "1.2.64",
4
4
  "description": "Shared TypeScript types and utilities for @dgpholdings projects",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",