Merged changes from o10aupva/main

Replit-Task-Id: 96838fc6-bf00-4a8d-ae18-84ba08feec56
This commit is contained in:
joachimhummel
2026-05-15 16:11:01 +00:00
parent 83a3bf9c62
commit e9f0d1ed98
18 changed files with 612 additions and 140 deletions

View File

@@ -1,16 +1,46 @@
/**
* Generated by orval v8.5.3 🍺
* Generated by orval v8.9.1 🍺
* Do not edit manually.
* Api
* API specification
* OpenAPI spec version: 0.1.0
*/
import * as zod from "zod";
import * as zod from 'zod';
/**
* Sends a contact message via email
* @summary Send contact form message
*/
export const sendContactMessageBodyNameMax = 100;
export const sendContactMessageBodyEmailMax = 200;
export const sendContactMessageBodySubjectMax = 200;
export const sendContactMessageBodyMessageMax = 5000;
export const SendContactMessageBody = zod.object({
"name": zod.string().min(1).max(sendContactMessageBodyNameMax),
"email": zod.string().email().max(sendContactMessageBodyEmailMax),
"subject": zod.string().max(sendContactMessageBodySubjectMax).optional(),
"message": zod.string().min(1).max(sendContactMessageBodyMessageMax)
})
export const SendContactMessageResponse = zod.object({
"success": zod.boolean(),
"message": zod.string()
})
/**
* Returns server health status
* @summary Health check
*/
export const HealthCheckResponse = zod.object({
status: zod.string(),
});
"status": zod.string()
})

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v8.9.1 🍺
* Do not edit manually.
* Api
* API specification
* OpenAPI spec version: 0.1.0
*/
export interface ContactError {
success: boolean;
message: string;
}

View File

@@ -0,0 +1,24 @@
/**
* Generated by orval v8.9.1 🍺
* Do not edit manually.
* Api
* API specification
* OpenAPI spec version: 0.1.0
*/
export interface ContactRequest {
/**
* @minLength 1
* @maxLength 100
*/
name: string;
/** @maxLength 200 */
email: string;
/** @maxLength 200 */
subject?: string;
/**
* @minLength 1
* @maxLength 5000
*/
message: string;
}

View File

@@ -0,0 +1,12 @@
/**
* Generated by orval v8.9.1 🍺
* Do not edit manually.
* Api
* API specification
* OpenAPI spec version: 0.1.0
*/
export interface ContactResponse {
success: boolean;
message: string;
}

View File

@@ -1,5 +1,5 @@
/**
* Generated by orval v8.5.3 🍺
* Generated by orval v8.9.1 🍺
* Do not edit manually.
* Api
* API specification

View File

@@ -1,9 +1,12 @@
/**
* Generated by orval v8.5.3 🍺
* Generated by orval v8.9.1 🍺
* Do not edit manually.
* Api
* API specification
* OpenAPI spec version: 0.1.0
*/
export * from "./healthStatus";
export * from './contactError';
export * from './contactRequest';
export * from './contactResponse';
export * from './healthStatus';