hevy-shared 1.0.953 → 1.0.954
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/built/index.d.ts +3 -11
- package/built/schemas.d.ts +6 -0
- package/built/schemas.js +12 -0
- package/package.json +3 -2
package/built/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { WorkoutDurationMinutes } from './hevyTrainer';
|
|
2
|
+
import { postEmailBackofficeSchema } from './schemas';
|
|
2
3
|
import { Language } from './translations';
|
|
3
4
|
import { Lookup } from './typeUtils';
|
|
5
|
+
import z from 'zod';
|
|
4
6
|
export * from './constants';
|
|
5
7
|
export * from './utils';
|
|
6
8
|
export * from './units';
|
|
@@ -1987,14 +1989,4 @@ export interface GetAccountsByEmailResponse {
|
|
|
1987
1989
|
wellhub_email: string | null;
|
|
1988
1990
|
}[];
|
|
1989
1991
|
}
|
|
1990
|
-
export
|
|
1991
|
-
reported_by: string;
|
|
1992
|
-
reported_at: string;
|
|
1993
|
-
report_type: string | null;
|
|
1994
|
-
reason: string;
|
|
1995
|
-
data: unknown;
|
|
1996
|
-
}
|
|
1997
|
-
export interface GetReportedUserSummaryBackofficeResponse {
|
|
1998
|
-
username: string;
|
|
1999
|
-
user_reports: UserReportSummaryBackoffice[];
|
|
2000
|
-
}
|
|
1992
|
+
export type PostEmailBackofficeRequest = z.infer<typeof postEmailBackofficeSchema>;
|
package/built/schemas.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.postEmailBackofficeSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.postEmailBackofficeSchema = zod_1.default.object({
|
|
9
|
+
toUserId: zod_1.default.string(),
|
|
10
|
+
subject: zod_1.default.string(),
|
|
11
|
+
message: zod_1.default.string(),
|
|
12
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hevy-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.954",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "built/index.js",
|
|
6
6
|
"types": "built/index.d.ts",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"dayjs": "^1.11.19",
|
|
54
|
-
"lodash": "^4.17.21"
|
|
54
|
+
"lodash": "^4.17.21",
|
|
55
|
+
"zod": "^4.3.6"
|
|
55
56
|
}
|
|
56
57
|
}
|