Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

520 B
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { CatalogPriceSchema } from './CatalogPrice';
import { CatalogProductTermSchema } from './CatalogProductTerm';

export const CatalogProductSchema = z.object({
  id: z.string(),
  name: z.string(),
  thumbnail_url: z.string().nullable(),
  quantity_rule: CatalogProductTermSchema.nullable().optional(),
  catalog_variants: z.array(CatalogPriceSchema).optional(),
});

export type CatalogProduct = z.infer<typeof CatalogProductSchema>;