Cambios de nombres de variables y esquema

This commit is contained in:
2025-08-21 15:11:00 -04:00
parent c45307d47d
commit f050db4359
6 changed files with 25 additions and 121 deletions

View File

@@ -3,7 +3,7 @@
import { url } from 'inspector';
import { z } from 'zod';
export type InventoryTable = z.infer<typeof product>;
export type InventoryTable = z.infer<typeof seeProduct>;
export type EditInventory = z.infer<typeof editInventory>;
export type ProductApiResponseSchema = z.infer<typeof productApiResponseSchema>;
export type allProducts = z.infer<typeof productDetails>;
@@ -17,12 +17,10 @@ export const product = z.object({
title: z.string(),
description: z.string(),
address: z.string(),
// category: z.string(),
stock: z.number(),
price: z.string(),
urlImg: z.custom<FileList | undefined>().optional(),
gallery: z.array(z.string()).optional(),
// urlImg: z.string(),
status: z.string(),
userId: z.number().optional()
})
@@ -98,7 +96,7 @@ export const test = z.object({
export const productMutate = z.object({
message: z.string(),
data: product,
data: seeProduct,
})
export const getProduct = z.object({