Skip to content

Commit c171d96

Browse files
committed
chore: lint pass — format regenerated upload contract types, template style in verify test
1 parent 0e2e7f9 commit c171d96

3 files changed

Lines changed: 553 additions & 289 deletions

File tree

‎apps/upload/types/client.d.ts‎

Lines changed: 137 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1,116 +1,184 @@
11
import { z } from "zod";
2-
export declare const BundleFileSchema: z.ZodObject<{
2+
export declare const BundleFileSchema: z.ZodObject<
3+
{
34
path: z.ZodString;
45
contentBase64: z.ZodString;
5-
}, z.core.$strip>;
6-
export declare const UploadRequestSchema: z.ZodObject<{
6+
},
7+
z.core.$strip
8+
>;
9+
export declare const UploadRequestSchema: z.ZodObject<
10+
{
711
account: z.ZodString;
812
gateway: z.ZodString;
913
workspace: z.ZodString;
10-
files: z.ZodArray<z.ZodObject<{
11-
path: z.ZodString;
12-
contentBase64: z.ZodString;
13-
}, z.core.$strip>>;
14-
}, z.core.$strip>;
15-
export declare const UploadResponseSchema: z.ZodObject<{
14+
files: z.ZodArray<
15+
z.ZodObject<
16+
{
17+
path: z.ZodString;
18+
contentBase64: z.ZodString;
19+
},
20+
z.core.$strip
21+
>
22+
>;
23+
},
24+
z.core.$strip
25+
>;
26+
export declare const UploadResponseSchema: z.ZodObject<
27+
{
1628
stored: z.ZodNumber;
1729
unchanged: z.ZodOptional<z.ZodNumber>;
1830
totalBytes: z.ZodNumber;
1931
integrity: z.ZodRecord<z.ZodString, z.ZodString>;
20-
storage: z.ZodOptional<z.ZodEnum<{
32+
storage: z.ZodOptional<
33+
z.ZodEnum<{
2134
memory: "memory";
2235
s3: "s3";
23-
}>>;
24-
}, z.core.$strip>;
25-
export declare const ListBundlesQuerySchema: z.ZodObject<{
36+
}>
37+
>;
38+
},
39+
z.core.$strip
40+
>;
41+
export declare const ListBundlesQuerySchema: z.ZodObject<
42+
{
2643
account: z.ZodString;
2744
gateway: z.ZodString;
2845
workspace: z.ZodOptional<z.ZodString>;
29-
}, z.core.$strip>;
30-
export declare const BundleObjectSummarySchema: z.ZodObject<{
46+
},
47+
z.core.$strip
48+
>;
49+
export declare const BundleObjectSummarySchema: z.ZodObject<
50+
{
3151
key: z.ZodString;
3252
size: z.ZodNumber;
3353
lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34-
}, z.core.$strip>;
35-
export declare const ListBundlesResultSchema: z.ZodObject<{
54+
},
55+
z.core.$strip
56+
>;
57+
export declare const ListBundlesResultSchema: z.ZodObject<
58+
{
3659
storage: z.ZodEnum<{
37-
memory: "memory";
38-
s3: "s3";
60+
memory: "memory";
61+
s3: "s3";
3962
}>;
4063
prefix: z.ZodString;
41-
objects: z.ZodArray<z.ZodObject<{
42-
key: z.ZodString;
43-
size: z.ZodNumber;
44-
lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45-
}, z.core.$strip>>;
64+
objects: z.ZodArray<
65+
z.ZodObject<
66+
{
67+
key: z.ZodString;
68+
size: z.ZodNumber;
69+
lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70+
},
71+
z.core.$strip
72+
>
73+
>;
4674
truncated: z.ZodBoolean;
47-
}, z.core.$strip>;
48-
export declare const ListVersionsQuerySchema: z.ZodObject<{
75+
},
76+
z.core.$strip
77+
>;
78+
export declare const ListVersionsQuerySchema: z.ZodObject<
79+
{
4980
account: z.ZodString;
5081
gateway: z.ZodString;
5182
workspace: z.ZodString;
52-
}, z.core.$strip>;
53-
export declare const VersionSummarySchema: z.ZodObject<{
83+
},
84+
z.core.$strip
85+
>;
86+
export declare const VersionSummarySchema: z.ZodObject<
87+
{
5488
version: z.ZodString;
5589
entry: z.ZodString;
5690
entryIntegrity: z.ZodString;
5791
gitSha: z.ZodOptional<z.ZodString>;
5892
builtAt: z.ZodOptional<z.ZodString>;
5993
fileCount: z.ZodOptional<z.ZodNumber>;
6094
lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61-
}, z.core.$strip>;
62-
export declare const ListVersionsResultSchema: z.ZodObject<{
95+
},
96+
z.core.$strip
97+
>;
98+
export declare const ListVersionsResultSchema: z.ZodObject<
99+
{
63100
storage: z.ZodEnum<{
64-
memory: "memory";
65-
s3: "s3";
101+
memory: "memory";
102+
s3: "s3";
66103
}>;
67-
versions: z.ZodArray<z.ZodObject<{
68-
version: z.ZodString;
69-
entry: z.ZodString;
70-
entryIntegrity: z.ZodString;
71-
gitSha: z.ZodOptional<z.ZodString>;
72-
builtAt: z.ZodOptional<z.ZodString>;
73-
fileCount: z.ZodOptional<z.ZodNumber>;
74-
lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75-
}, z.core.$strip>>;
104+
versions: z.ZodArray<
105+
z.ZodObject<
106+
{
107+
version: z.ZodString;
108+
entry: z.ZodString;
109+
entryIntegrity: z.ZodString;
110+
gitSha: z.ZodOptional<z.ZodString>;
111+
builtAt: z.ZodOptional<z.ZodString>;
112+
fileCount: z.ZodOptional<z.ZodNumber>;
113+
lastModified: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114+
},
115+
z.core.$strip
116+
>
117+
>;
76118
truncated: z.ZodBoolean;
77-
}, z.core.$strip>;
78-
export declare const IntegrityReportQuerySchema: z.ZodObject<{
119+
},
120+
z.core.$strip
121+
>;
122+
export declare const IntegrityReportQuerySchema: z.ZodObject<
123+
{
79124
account: z.ZodString;
80125
gateway: z.ZodString;
81126
workspace: z.ZodString;
82127
version: z.ZodString;
83-
}, z.core.$strip>;
84-
export declare const IntegrityReportResultSchema: z.ZodObject<{
128+
},
129+
z.core.$strip
130+
>;
131+
export declare const IntegrityReportResultSchema: z.ZodObject<
132+
{
85133
storage: z.ZodEnum<{
86-
memory: "memory";
87-
s3: "s3";
134+
memory: "memory";
135+
s3: "s3";
88136
}>;
89-
manifest: z.ZodObject<{
137+
manifest: z.ZodObject<
138+
{
90139
version: z.ZodString;
91140
builtAt: z.ZodOptional<z.ZodString>;
92141
gitSha: z.ZodOptional<z.ZodString>;
93142
dir: z.ZodOptional<z.ZodString>;
94143
entry: z.ZodString;
95144
entryIntegrity: z.ZodString;
96-
ssr: z.ZodOptional<z.ZodObject<{
97-
entry: z.ZodString;
98-
integrity: z.ZodString;
99-
}, z.core.$strip>>;
100-
browserManifest: z.ZodOptional<z.ZodObject<{
101-
file: z.ZodString;
102-
integrity: z.ZodString;
103-
}, z.core.$strip>>;
145+
ssr: z.ZodOptional<
146+
z.ZodObject<
147+
{
148+
entry: z.ZodString;
149+
integrity: z.ZodString;
150+
},
151+
z.core.$strip
152+
>
153+
>;
154+
browserManifest: z.ZodOptional<
155+
z.ZodObject<
156+
{
157+
file: z.ZodString;
158+
integrity: z.ZodString;
159+
},
160+
z.core.$strip
161+
>
162+
>;
104163
assets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
105164
shared: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
106165
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
107-
source: z.ZodOptional<z.ZodObject<{
108-
file: z.ZodString;
109-
integrity: z.ZodString;
110-
}, z.core.$strip>>;
111-
}, z.core.$strip>;
166+
source: z.ZodOptional<
167+
z.ZodObject<
168+
{
169+
file: z.ZodString;
170+
integrity: z.ZodString;
171+
},
172+
z.core.$strip
173+
>
174+
>;
175+
},
176+
z.core.$strip
177+
>;
112178
entryVerified: z.ZodNullable<z.ZodBoolean>;
113-
}, z.core.$strip>;
179+
},
180+
z.core.$strip
181+
>;
114182
export type BundleFile = z.infer<typeof BundleFileSchema>;
115183
export type UploadRequest = z.infer<typeof UploadRequestSchema>;
116184
export type UploadResponse = z.infer<typeof UploadResponseSchema>;
@@ -123,14 +191,14 @@ export type ListVersionsResult = z.infer<typeof ListVersionsResultSchema>;
123191
export type IntegrityReportQuery = z.infer<typeof IntegrityReportQuerySchema>;
124192
export type IntegrityReportResult = z.infer<typeof IntegrityReportResultSchema>;
125193
export interface UploadClientConfig {
126-
origin: string;
127-
apiKey?: string;
128-
fetchImpl?: typeof fetch;
194+
origin: string;
195+
apiKey?: string;
196+
fetchImpl?: typeof fetch;
129197
}
130198
export interface UploadClient {
131-
uploadBundle(input: UploadRequest): Promise<UploadResponse>;
132-
listBundles(input: ListBundlesQuery): Promise<ListBundlesResult>;
133-
listVersions(input: ListVersionsQuery): Promise<ListVersionsResult>;
134-
integrityReport(input: IntegrityReportQuery): Promise<IntegrityReportResult>;
199+
uploadBundle(input: UploadRequest): Promise<UploadResponse>;
200+
listBundles(input: ListBundlesQuery): Promise<ListBundlesResult>;
201+
listVersions(input: ListVersionsQuery): Promise<ListVersionsResult>;
202+
integrityReport(input: IntegrityReportQuery): Promise<IntegrityReportResult>;
135203
}
136204
export declare function createUploadClient(config: UploadClientConfig): UploadClient;

0 commit comments

Comments
 (0)