Open rajdip-b opened 2 weeks ago
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.
schema
The api-client is currently holding the request and response types. We would like to move them out to schema package.
api-client
For every module, we would like to do this:
environment
project
modulename.ts
modulename.types.ts
index.ts
Here are the modules which we need to work on:
@muntaxir4 thanks for the prompt work!
@muntaxir4 updated the details
My pleasure. I will try to implement the 3 more schemas from today onwards.
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: