@dgpholdings/greatoak-shared 1.1.119 → 1.1.121
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.
|
@@ -61,18 +61,17 @@ export type TApiTrainerGetClientWorkoutHistoryReq = {
|
|
|
61
61
|
};
|
|
62
62
|
export type TExerciseScore = {
|
|
63
63
|
exerciseId: string;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
};
|
|
64
|
+
recordScore: {
|
|
65
|
+
score: number;
|
|
66
|
+
recordDate: number;
|
|
67
|
+
}[];
|
|
68
68
|
};
|
|
69
69
|
export type TRecentSession = {
|
|
70
70
|
createdAt: Date;
|
|
71
71
|
userDuration: number;
|
|
72
72
|
planId: string | null;
|
|
73
73
|
isOwnPlan: boolean;
|
|
74
|
-
|
|
75
|
-
exerciseScores?: TExerciseScore[];
|
|
74
|
+
exerciseScores: TExerciseScore[];
|
|
76
75
|
};
|
|
77
76
|
export type TApiTrainerGetClientWorkoutHistoryRes = {
|
|
78
77
|
status: 200;
|
|
@@ -81,7 +80,7 @@ export type TApiTrainerGetClientWorkoutHistoryRes = {
|
|
|
81
80
|
fullName?: string;
|
|
82
81
|
clientEmail?: string;
|
|
83
82
|
history: Pick<TClientWorkoutHistory, "totalCompletedSessions" | "planId" | "sessions">[];
|
|
84
|
-
recentSessions:
|
|
83
|
+
recentSessions: TExerciseScore[];
|
|
85
84
|
} | {
|
|
86
85
|
status: 400 | 500;
|
|
87
86
|
message?: string;
|
|
@@ -48,11 +48,11 @@ export type TApiTemplateShopCreateReq = ({
|
|
|
48
48
|
type: "trainer-created";
|
|
49
49
|
} & Omit<Extract<TTemplateShopDb, {
|
|
50
50
|
type: "trainer-created";
|
|
51
|
-
}>, "type" | "planCode" | "slug" | "clonedCount" | "ownerId">) | ({
|
|
51
|
+
}>, "type" | "planCode" | "slug" | "clonedCount" | "ownerId" | "planId">) | ({
|
|
52
52
|
type: "system";
|
|
53
53
|
} & Omit<Extract<TTemplateShopDb, {
|
|
54
54
|
type: "system";
|
|
55
|
-
}>, "type" | "planCode" | "clonedCount">);
|
|
55
|
+
}>, "type" | "planCode" | "clonedCount" | "planId">);
|
|
56
56
|
export type TApiTemplateShopCreateRes = {
|
|
57
57
|
status: 400;
|
|
58
58
|
state: "failed";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dgpholdings/greatoak-shared",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.121",
|
|
4
4
|
"description": "Shared TypeScript types and utilities for @dgpholdings projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
|
-
"pub": "npm run build && npm version patch && npm publish"
|
|
12
|
+
"pub": "npm run build && npm version patch && npm publish",
|
|
13
|
+
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
|
|
14
|
+
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md}\""
|
|
13
15
|
},
|
|
14
16
|
"repository": {
|
|
15
17
|
"type": "git",
|