chore: Update api service type directories to maintain consistency

This commit is contained in:
Aaron William Po
2023-07-07 23:23:04 -04:00
parent ee47f99f8a
commit 5292c47a2a
69 changed files with 99 additions and 99 deletions

View File

@@ -0,0 +1,22 @@
import { z } from 'zod';
const BreweryPostQueryResult = z.object({
id: z.string(),
name: z.string(),
description: z.string(),
location: z.object({
city: z.string(),
address: z.string(),
coordinates: z.array(z.number()),
country: z.string().nullable(),
stateOrProvince: z.string().nullable(),
}),
postedBy: z.object({ id: z.string(), username: z.string() }),
breweryImages: z.array(
z.object({ path: z.string(), caption: z.string(), id: z.string(), alt: z.string() }),
),
createdAt: z.coerce.date(),
dateEstablished: z.coerce.date(),
});
export default BreweryPostQueryResult;