Variable CreateFinishedProductSchemaConst
CreateFinishedProductSchema: ZodObject<
{
name: ZodString;
description: ZodOptional<ZodString>;
variant: ZodOptional<ZodString>;
productType: ZodEnum<["STOCKABLE", "CONSUMABLE", "SERVICE", "OUTILLAGE"]>;
stage: ZodNullable<
ZodOptional<ZodEnum<["DEVELOPPEMENT", "EN_SERIE", "ARRETE"]>>,
>;
billingPolicy: ZodOptional<ZodEnum<["ORDERED", "DELIVERED", "MANUAL"]>>;
sellingPrice: ZodNumber;
cost: ZodNumber;
costPerUnit: ZodOptional<ZodString>;
categoryId: ZodOptional<ZodString>;
clientId: ZodOptional<ZodString>;
unitOfMeasureId: ZodOptional<ZodString>;
unitOfSaleId: ZodOptional<ZodString>;
unitOfProductionId: ZodOptional<ZodString>;
conversionFactor: ZodOptional<ZodNumber>;
salesTaxId: ZodOptional<ZodString>;
height: ZodOptional<ZodNumber>;
width: ZodOptional<ZodNumber>;
length: ZodOptional<ZodNumber>;
thickness: ZodOptional<ZodNumber>;
depth: ZodOptional<ZodNumber>;
weight: ZodOptional<ZodNumber>;
color: ZodOptional<ZodString>;
salesMultiple: ZodOptional<ZodNumber>;
minimumQuantity: ZodOptional<ZodNumber>;
barcode: ZodOptional<ZodString>;
internalReference: ZodOptional<ZodString>;
supplierCode: ZodOptional<ZodString>;
internalNotes: ZodOptional<ZodString>;
tags: ZodOptional<ZodString>;
imageUrl: ZodOptional<ZodString>;
imageKey: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
name: string;
description?: string;
variant?: string;
productType: "CONSUMABLE"
| "SERVICE"
| "OUTILLAGE"
| "STOCKABLE";
stage?: "DEVELOPPEMENT" | "EN_SERIE" | "ARRETE" | null;
billingPolicy?: "DELIVERED" | "ORDERED" | "MANUAL";
sellingPrice: number;
cost: number;
costPerUnit?: string;
categoryId?: string;
clientId?: string;
unitOfMeasureId?: string;
unitOfSaleId?: string;
unitOfProductionId?: string;
conversionFactor?: number;
salesTaxId?: string;
height?: number;
width?: number;
length?: number;
thickness?: number;
depth?: number;
weight?: number;
color?: string;
salesMultiple?: number;
minimumQuantity?: number;
barcode?: string;
internalReference?: string;
supplierCode?: string;
internalNotes?: string;
tags?: string;
imageUrl?: string;
imageKey?: string;
},
{
name: string;
description?: string;
variant?: string;
productType: "CONSUMABLE"
| "SERVICE"
| "OUTILLAGE"
| "STOCKABLE";
stage?: "DEVELOPPEMENT" | "EN_SERIE" | "ARRETE" | null;
billingPolicy?: "DELIVERED" | "ORDERED" | "MANUAL";
sellingPrice: number;
cost: number;
costPerUnit?: string;
categoryId?: string;
clientId?: string;
unitOfMeasureId?: string;
unitOfSaleId?: string;
unitOfProductionId?: string;
conversionFactor?: number;
salesTaxId?: string;
height?: number;
width?: number;
length?: number;
thickness?: number;
depth?: number;
weight?: number;
color?: string;
salesMultiple?: number;
minimumQuantity?: number;
barcode?: string;
internalReference?: string;
supplierCode?: string;
internalNotes?: string;
tags?: string;
imageUrl?: string;
imageKey?: string;
},
> = ...