Initial commit
This commit is contained in:
12
lib/api-zod/package.json
Normal file
12
lib/api-zod/package.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"name": "@workspace/api-zod",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./src/index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"zod": "catalog:"
|
||||
}
|
||||
}
|
||||
16
lib/api-zod/src/generated/api.ts
Normal file
16
lib/api-zod/src/generated/api.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Do not edit manually.
|
||||
* Api
|
||||
* API specification
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import * as zod from "zod";
|
||||
|
||||
/**
|
||||
* Returns server health status
|
||||
* @summary Health check
|
||||
*/
|
||||
export const HealthCheckResponse = zod.object({
|
||||
status: zod.string(),
|
||||
});
|
||||
11
lib/api-zod/src/generated/types/healthStatus.ts
Normal file
11
lib/api-zod/src/generated/types/healthStatus.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Do not edit manually.
|
||||
* Api
|
||||
* API specification
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface HealthStatus {
|
||||
status: string;
|
||||
}
|
||||
9
lib/api-zod/src/generated/types/index.ts
Normal file
9
lib/api-zod/src/generated/types/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Do not edit manually.
|
||||
* Api
|
||||
* API specification
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from "./healthStatus";
|
||||
2
lib/api-zod/src/index.ts
Normal file
2
lib/api-zod/src/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from "./generated/api";
|
||||
export * from "./generated/types";
|
||||
11
lib/api-zod/tsconfig.json
Normal file
11
lib/api-zod/tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"declarationMap": true,
|
||||
"emitDeclarationOnly": true,
|
||||
"outDir": "dist",
|
||||
"rootDir": "src"
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user