hevy-shared 1.0.1000 → 1.0.1002
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 -1
- package/built/schemas.d.ts +51 -0
- package/built/schemas.js +15 -1
- package/package.json +1 -1
package/built/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InstructionsLanguage } from './exerciseLocaleUtils';
|
|
2
2
|
import { WorkoutDurationMinutes } from './hevyTrainer';
|
|
3
|
-
import { postEmailBackofficeSchema } from './schemas';
|
|
3
|
+
import { BugReportQuestionSchema, CreateBugReportRequestBodySchema, postEmailBackofficeSchema } from './schemas';
|
|
4
4
|
import { Language } from './translations';
|
|
5
5
|
import { Lookup } from './typeUtils';
|
|
6
6
|
import { z } from 'zod';
|
|
@@ -2026,6 +2026,8 @@ export interface GetAccountsByEmailResponse {
|
|
|
2026
2026
|
}[];
|
|
2027
2027
|
}
|
|
2028
2028
|
export type PostEmailBackofficeRequest = z.infer<typeof postEmailBackofficeSchema>;
|
|
2029
|
+
export type BugReportQuestion = z.infer<typeof BugReportQuestionSchema>;
|
|
2030
|
+
export type CreateBugReportRequestBody = z.infer<typeof CreateBugReportRequestBodySchema>;
|
|
2029
2031
|
export interface UserReportSummaryBackoffice {
|
|
2030
2032
|
reported_by: string;
|
|
2031
2033
|
reported_at: string;
|
package/built/schemas.d.ts
CHANGED
|
@@ -12,3 +12,54 @@ export declare const postEmailBackofficeSchema: z.ZodObject<{
|
|
|
12
12
|
toUserId: string;
|
|
13
13
|
subject: string;
|
|
14
14
|
}>;
|
|
15
|
+
export declare const BugReportQuestionSchema: z.ZodObject<{
|
|
16
|
+
question: z.ZodString;
|
|
17
|
+
answer: z.ZodString;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
question: string;
|
|
20
|
+
answer: string;
|
|
21
|
+
}, {
|
|
22
|
+
question: string;
|
|
23
|
+
answer: string;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const AppLogLineSchema: z.ZodObject<{
|
|
26
|
+
index: z.ZodNumber;
|
|
27
|
+
text: z.ZodString;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
text: string;
|
|
30
|
+
index: number;
|
|
31
|
+
}, {
|
|
32
|
+
text: string;
|
|
33
|
+
index: number;
|
|
34
|
+
}>;
|
|
35
|
+
export declare const CreateBugReportRequestBodySchema: z.ZodObject<{
|
|
36
|
+
questions: z.ZodArray<z.ZodObject<{
|
|
37
|
+
question: z.ZodString;
|
|
38
|
+
answer: z.ZodString;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
question: string;
|
|
41
|
+
answer: string;
|
|
42
|
+
}, {
|
|
43
|
+
question: string;
|
|
44
|
+
answer: string;
|
|
45
|
+
}>, "many">;
|
|
46
|
+
message: z.ZodString;
|
|
47
|
+
media_urls: z.ZodArray<z.ZodString, "many">;
|
|
48
|
+
debugInfo: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
message: string;
|
|
51
|
+
questions: {
|
|
52
|
+
question: string;
|
|
53
|
+
answer: string;
|
|
54
|
+
}[];
|
|
55
|
+
media_urls: string[];
|
|
56
|
+
debugInfo: Record<string, unknown>;
|
|
57
|
+
}, {
|
|
58
|
+
message: string;
|
|
59
|
+
questions: {
|
|
60
|
+
question: string;
|
|
61
|
+
answer: string;
|
|
62
|
+
}[];
|
|
63
|
+
media_urls: string[];
|
|
64
|
+
debugInfo: Record<string, unknown>;
|
|
65
|
+
}>;
|
package/built/schemas.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.postEmailBackofficeSchema = void 0;
|
|
3
|
+
exports.CreateBugReportRequestBodySchema = exports.AppLogLineSchema = exports.BugReportQuestionSchema = exports.postEmailBackofficeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.postEmailBackofficeSchema = zod_1.z.object({
|
|
6
6
|
toUserId: zod_1.z.string(),
|
|
7
7
|
subject: zod_1.z.string(),
|
|
8
8
|
message: zod_1.z.string(),
|
|
9
9
|
});
|
|
10
|
+
exports.BugReportQuestionSchema = zod_1.z.object({
|
|
11
|
+
question: zod_1.z.string(),
|
|
12
|
+
answer: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.AppLogLineSchema = zod_1.z.object({
|
|
15
|
+
index: zod_1.z.number(),
|
|
16
|
+
text: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
exports.CreateBugReportRequestBodySchema = zod_1.z.object({
|
|
19
|
+
questions: zod_1.z.array(exports.BugReportQuestionSchema),
|
|
20
|
+
message: zod_1.z.string(),
|
|
21
|
+
media_urls: zod_1.z.array(zod_1.z.string()),
|
|
22
|
+
debugInfo: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
23
|
+
});
|