From 5b85da54b762c3d3637ef76a28c1f08ee3f0b23f Mon Sep 17 00:00:00 2001 From: ElektrikSpark Date: Thu, 30 Nov 2023 02:09:34 -0600 Subject: [PATCH 1/3] finally, type safe zod client --- .../(landing)/_components/all-patients.tsx | 15 +- packages/api/src/canvas.client.ts | 3340 +++++++ packages/api/src/openapi.yaml | 7892 +++++++++++++++++ packages/api/src/router/canvas.ts | 42 +- packages/api/src/validators.ts | 361 - 5 files changed, 11266 insertions(+), 384 deletions(-) create mode 100644 packages/api/src/canvas.client.ts create mode 100644 packages/api/src/openapi.yaml diff --git a/apps/nextjs/src/app/(landing)/_components/all-patients.tsx b/apps/nextjs/src/app/(landing)/_components/all-patients.tsx index 64ee89cd..113fa8f2 100644 --- a/apps/nextjs/src/app/(landing)/_components/all-patients.tsx +++ b/apps/nextjs/src/app/(landing)/_components/all-patients.tsx @@ -26,22 +26,11 @@ export function AllPatients() { {patients.length > 0 ? (