hevy-shared 1.0.990 → 1.0.991
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 +13 -3
- package/built/schemas.d.ts +0 -51
- package/built/schemas.js +1 -15
- 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 {
|
|
3
|
+
import { postEmailBackofficeSchema } from './schemas';
|
|
4
4
|
import { Language } from './translations';
|
|
5
5
|
import { Lookup } from './typeUtils';
|
|
6
6
|
import { z } from 'zod';
|
|
@@ -1618,6 +1618,18 @@ export interface UserMetadataResponse {
|
|
|
1618
1618
|
export interface NetworkInfoRequest {
|
|
1619
1619
|
networkType: NetworkType;
|
|
1620
1620
|
}
|
|
1621
|
+
export type Gym = {
|
|
1622
|
+
name: string;
|
|
1623
|
+
address: string;
|
|
1624
|
+
distanceM: number;
|
|
1625
|
+
};
|
|
1626
|
+
export interface GymRequest {
|
|
1627
|
+
latitude: number;
|
|
1628
|
+
longitude: number;
|
|
1629
|
+
}
|
|
1630
|
+
export interface GymResponse {
|
|
1631
|
+
gyms: Gym[];
|
|
1632
|
+
}
|
|
1621
1633
|
export interface StripePrice {
|
|
1622
1634
|
product_id: string;
|
|
1623
1635
|
billing_period: 'month' | 'year' | 'pay-once';
|
|
@@ -2012,8 +2024,6 @@ export interface GetAccountsByEmailResponse {
|
|
|
2012
2024
|
}[];
|
|
2013
2025
|
}
|
|
2014
2026
|
export type PostEmailBackofficeRequest = z.infer<typeof postEmailBackofficeSchema>;
|
|
2015
|
-
export type BugReportQuestion = z.infer<typeof BugReportQuestionSchema>;
|
|
2016
|
-
export type CreateBugReportRequestBody = z.infer<typeof CreateBugReportRequestBodySchema>;
|
|
2017
2027
|
export interface UserReportSummaryBackoffice {
|
|
2018
2028
|
reported_by: string;
|
|
2019
2029
|
reported_at: string;
|
package/built/schemas.d.ts
CHANGED
|
@@ -12,54 +12,3 @@ 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,23 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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
|
-
});
|