Merged changes from o10aupva/main
Replit-Task-Id: 96838fc6-bf00-4a8d-ae18-84ba08feec56
This commit is contained in:
@@ -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()
|
||||
})
|
||||
|
||||
|
||||
|
||||
12
lib/api-zod/src/generated/types/contactError.ts
Normal file
12
lib/api-zod/src/generated/types/contactError.ts
Normal 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;
|
||||
}
|
||||
24
lib/api-zod/src/generated/types/contactRequest.ts
Normal file
24
lib/api-zod/src/generated/types/contactRequest.ts
Normal 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;
|
||||
}
|
||||
12
lib/api-zod/src/generated/types/contactResponse.ts
Normal file
12
lib/api-zod/src/generated/types/contactResponse.ts
Normal 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;
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v8.5.3 🍺
|
||||
* Generated by orval v8.9.1 🍺
|
||||
* Do not edit manually.
|
||||
* Api
|
||||
* API specification
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user