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.

1.1 KB
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import type Market from '../../types/generated/Market';
import { CountrySchema } from './Country';

export const MarketSchema = z.object({
  id: z.string(),
  name: z.string(),
  currency: z.string(),
  default_locale: z.string(),
  tax_inclusive: z.boolean(),
  default: z.boolean(),
  country_codes: z.array(z.string()),
  country_isos: z.array(z.string()),
  supported_locales: z.array(z.string()),
  get countries() { return z.array(CountrySchema).optional(); },
}) as unknown as z.ZodObject<{
  id: z.ZodType<Market['id']>;
  name: z.ZodType<Market['name']>;
  currency: z.ZodType<Market['currency']>;
  default_locale: z.ZodType<Market['default_locale']>;
  tax_inclusive: z.ZodType<Market['tax_inclusive']>;
  default: z.ZodType<Market['default']>;
  country_codes: z.ZodType<Market['country_codes']>;
  country_isos: z.ZodType<Market['country_isos']>;
  supported_locales: z.ZodType<Market['supported_locales']>;
  countries: z.ZodOptional<z.ZodType<Exclude<Market['countries'], undefined>>>;
}>;

export type { Market };