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.

3.0 KB
Raw Blame
// This file is auto-generated. Do not edit directly.
import { z } from 'zod';
import { SetupTaskSchema } from './SetupTask';

export const StoreSchema = z.object({
  id: z.string(),
  name: z.string(),
  seo_title: z.string().nullable(),
  meta_description: z.string().nullable(),
  metadata: z.record(z.string(), z.unknown()),
  code: z.string(),
  default_currency: z.string(),
  default_locale: z.string(),
  default_country_code: z.string().nullable(),
  mail_from_address: z.string().nullable(),
  customer_support_email: z.string().nullable(),
  new_order_notifications_email: z.string().nullable(),
  created_at: z.string(),
  updated_at: z.string(),
  order_routing_strategy: z.string(),
  payout_provider: z.string().nullable(),
  admin_locale: z.string().nullable(),
  timezone: z.string(),
  storefront_url: z.string().nullable(),
  weight_unit: z.string(),
  unit_system: z.string(),
  storefront_access: z.string(),
  guest_checkout: z.boolean(),
  always_include_confirm_step: z.boolean(),
  company_field_enabled: z.boolean(),
  address_requires_company: z.boolean(),
  address_requires_phone: z.boolean(),
  capture_method: z.string(),
  track_inventory_levels: z.boolean(),
  stock_reservations_enabled: z.boolean(),
  low_stock_threshold: z.number(),
  tax_using_ship_address: z.boolean(),
  track_price_history: z.boolean(),
  show_products_without_price: z.boolean(),
  disable_sku_validation: z.boolean(),
  pricing_provider: z.string(),
  inventory_provider: z.string(),
  pricing_provider_failure_policy: z.string(),
  inventory_provider_failure_policy: z.string(),
  default_payouts_schedule_interval: z.string(),
  auto_approve_sellers: z.boolean(),
  auto_approve_seller_products: z.boolean(),
  seller_digital_assets_enabled: z.boolean(),
  seller_digital_asset_content_types: z.array(z.string()),
  review_seller_digital_asset_changes: z.boolean(),
  send_seller_transactional_emails: z.boolean(),
  document_number_format: z.string(),
  order_number_prefix: z.string(),
  order_number_suffix: z.string(),
  order_number_sequence_start: z.number(),
  limit_digital_download_count: z.boolean(),
  digital_asset_authorized_clicks: z.number(),
  limit_digital_download_days: z.boolean(),
  digital_asset_authorized_days: z.number(),
  send_consumer_transactional_emails: z.boolean(),
  email_accent_color: z.string().nullable(),
  email_background_color: z.string().nullable(),
  email_card_color: z.string().nullable(),
  email_text_color: z.string().nullable(),
  email_heading_color: z.string().nullable(),
  email_font: z.string().nullable(),
  order_number_sequence_started: z.boolean(),
  default_minimum_payout_amount: z.string().nullable(),
  default_commission_tax_rate: z.string().nullable(),
  url: z.string(),
  api_url: z.string(),
  setup_tasks: z.array(SetupTaskSchema),
  supported_currencies: z.array(z.string()),
  supported_locales: z.array(z.string()),
  available_locales: z.array(z.string()),
  logo_url: z.string().nullable(),
  mailer_logo_url: z.string().nullable(),
});

export type Store = z.infer<typeof StoreSchema>;