infoalloggi-monorepo/apps/infoalloggi/src/schemas/public/GenericStatusEnum.ts
Marco Pedone 60e4b187bf Refactor: Update Zod schemas and replace custom types with imported schemas across various files
- Replaced custom Zod types with imported schemas in stripe router and user router.
- Updated payment controller to use new enum imports for order types and payment statuses.
- Refactored payment tests to utilize the new enum structure.
- Removed deprecated zod_types file and created new zod_chat_types file for chat-related schemas.
- Adjusted service files to align with the new order type enums and schemas.
- Enhanced the Caratteristiche type definition using Zod for better validation.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 20:32:19 +02:00

16 lines
No EOL
305 B
TypeScript

import { z } from 'zod';
/** Represents the enum public.GenericStatusEnum */
type GenericStatusEnum =
| 'pending'
| 'success'
| 'failed';
export default GenericStatusEnum;
/** Zod schema for GenericStatusEnum */
export const genericStatusEnum = z.enum([
'pending',
'success',
'failed',
]);