// This file is auto-generated by scripts/generate-schemas.ts // Do not edit manually. import { z } from "zod"; import { AttributeSchema, CategoryOrderHintsSchema, CategoryResourceIdentifierSchema, LocalizedStringSchema, ProductPriceModeEnumSchema, ProductTypeResourceIdentifierSchema, ProductVariantDraftSchema, SearchKeywordsSchema, StateResourceIdentifierSchema, TaxCategoryResourceIdentifierSchema, } from "./common.ts"; export const ProductDraftSchema = z.object({ productType: ProductTypeResourceIdentifierSchema, name: LocalizedStringSchema, slug: LocalizedStringSchema, key: z.string().nullish(), description: LocalizedStringSchema.nullish(), categories: z.array(CategoryResourceIdentifierSchema).nullish(), categoryOrderHints: CategoryOrderHintsSchema.nullish(), metaTitle: LocalizedStringSchema.nullish(), metaDescription: LocalizedStringSchema.nullish(), metaKeywords: LocalizedStringSchema.nullish(), masterVariant: ProductVariantDraftSchema.nullish(), variants: z.array(ProductVariantDraftSchema).nullish(), taxCategory: TaxCategoryResourceIdentifierSchema.nullish(), searchKeywords: SearchKeywordsSchema.nullish(), state: StateResourceIdentifierSchema.nullish(), publish: z.boolean().nullish(), priceMode: ProductPriceModeEnumSchema.nullish(), attributes: z.array(AttributeSchema).nullish(), });