PACKAGE: Update schema
package to contain all the zod types
#519
Labels
difficulty: 4
priority: urgent
scope: api-client
scope: schema
type: chore
Release drafter tag for tagging PRs related to making patches to general code
Description
The
schema
package is meant to be used by all the other apps and packages. We would like it to have the type definitions and the zod schemas.The
api-client
is currently holding the request and response types. We would like to move them out toschema
package.Solution
For every module, we would like to do this:
schema
. For exampleenvironment
,project
, etc.modulename.ts
andmodulename.types.ts
.modulename.ts
would have the following zod schemas: the module base type, all request types, all response types.modulename.types.ts
would be exporting the inferred typesindex.ts
file would be exporting everything.api-client
package to use the types fromschema
.Tasks
Here are the modules which we need to work on:
The text was updated successfully, but these errors were encountered: