Files
homaroma/apps/backend/src/routes/contacts.d.ts
T
2026-06-24 19:15:04 -04:00

134 lines
3.5 KiB
TypeScript

import { Elysia } from "elysia";
export declare const contactsRoute: Elysia<"/contacts", {
decorator: {};
store: {};
derive: {};
resolve: {};
}, {
typebox: {};
error: {};
}, {
schema: {};
standaloneSchema: {};
macro: {};
macroFn: {};
parser: {};
response: {};
}, {
contacts: {
post: {
body: {
name: string;
email: string;
message: string;
};
params: {};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
data: {
id: number;
name: string;
createdAt: Date;
updatedAt: Date;
email: string;
message: string;
isRead: boolean;
};
error?: never;
} | {
success: boolean;
error: string;
data?: never;
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};
};
};
} & {
contacts: {
get: {
body: unknown;
params: {};
query: unknown;
headers: unknown;
response: {
200: {
id: number;
name: string;
createdAt: Date;
updatedAt: Date;
email: string;
message: string;
isRead: boolean;
}[];
};
};
};
} & {
contacts: {
":id": {
patch: {
body: {
isRead: boolean;
};
params: {
id: string;
};
query: unknown;
headers: unknown;
response: {
200: {
success: boolean;
data: {
id: number;
name: string;
createdAt: Date;
updatedAt: Date;
email: string;
message: string;
isRead: boolean;
};
error?: never;
} | {
success: boolean;
error: string;
data?: never;
};
422: {
type: "validation";
on: string;
summary?: string;
message?: string;
found?: unknown;
property?: string;
expected?: string;
};
};
};
};
};
}, {
derive: {};
resolve: {};
schema: {};
standaloneSchema: {};
response: {};
}, {
derive: {};
resolve: {};
schema: {};
standaloneSchema: {};
response: {};
}>;
//# sourceMappingURL=contacts.d.ts.map