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.

413 B
Raw Blame
import { z } from 'zod'

/**
 * One consignment's editable fields.
 *
 * The carrier is free text: a forwarder's own name is as valid as a
 * registered carrier, and an empty value asks the server to detect one from
 * the number.
 */
export const deliveryFormSchema = z.object({
  tracking_number: z.string().min(1),
  carrier: z.string(),
})

export type DeliveryFormValues = z.infer<typeof deliveryFormSchema>