export const PLATFORMS = [
  'TikTok', 'TikTokFull',
  'Shopee', 'ShopeeFull', 'ShopeeLight',
  'Lazada', 'LazadaFull',
  'TemuFull',
  'Shein', 'SheinHalf',
  'Amazon', 'AmazonFull',
  'eBay', 'eBayFull',
  'Walmart', 'WalmartFull',
  'MercadoLibre', 'MercadoLibreFull',
  'Coupang', 'CoupangFull',
  'Ozon', 'Yandex', 'AliExpress', 'AliExpressHalf', 'AliExpressPop',
  'Wildberries', 'Allegro', 'Jumia', 'Joom', 'Wish', 'Emag', 'Miravia',
  'Daraz', 'Joybuy', 'Alibaba', 'Qoo10', 'Shopify', 'Shoplazza',
  'ShopyyV1', 'ShopyyV2', 'Shopline', 'GreatBoss', 'Other',
] as const;

export const PLATFORM_NAMES: Record<string, string> = {
  TikTok: 'TikTok',
  TikTokFull: 'TikTok Shop',
  Shopee: 'Shopee',
  ShopeeFull: 'Shopee Mall',
  ShopeeLight: 'Shopee Lite',
  Lazada: 'Lazada',
  LazadaFull: 'Lazada Mall',
  TemuFull: 'Temu',
  Shein: 'SHEIN',
  SheinHalf: 'SHEIN Mall',
  Amazon: 'Amazon',
  AmazonFull: 'Amazon Store',
  eBay: 'eBay',
  eBayFull: 'eBay Store',
  Walmart: 'Walmart',
  WalmartFull: 'Walmart Store',
  MercadoLibre: 'MercadoLibre',
  MercadoLibreFull: 'MercadoLibre Store',
  Coupang: 'Coupang',
  CoupangFull: 'Coupang Store',
  Ozon: 'Ozon',
  Yandex: 'Yandex Market',
  AliExpress: 'AliExpress',
  AliExpressHalf: 'AliExpress (半仓)',
  AliExpressPop: 'AliExpress Pop',
  Wildberries: 'Wildberries',
  Allegro: 'Allegro',
  Jumia: 'Jumia',
  Joom: 'Joom',
  Wish: 'Wish',
  Emag: 'eMAG',
  Miravia: 'Miravia',
  Daraz: 'Daraz',
  Joybuy: 'Joybuy',
  Alibaba: 'Alibaba',
  Qoo10: 'Qoo10',
  Shopify: 'Shopify',
  Shoplazza: 'Shoplazza',
  ShopyyV1: 'Shopyy V1',
  ShopyyV2: 'Shopyy V2',
  Shopline: 'Shopline',
  GreatBoss: 'GreatBoss',
  Other: 'Other',
} as const;

export const CATEGORIES = ['工业自动化', '电子元器件', '工具设备', '仪器仪表', '安防设备'] as const;

export const ORDER_STATUS = {
  PENDING: 'PENDING',
  CONFIRMED: 'CONFIRMED',
  SHIPPED: 'SHIPPED',
  DELIVERED: 'DELIVERED',
  COMPLETED: 'COMPLETED',
  CANCELLED: 'CANCELLED',
  REFUNDING: 'REFUNDING',
  REFUNDED: 'REFUNDED',
} as const;

export const PAYMENT_STATUS = {
  PENDING: 'PENDING',
  PAID: 'PAID',
  REFUNDED: 'REFUNDED',
} as const;

export const PRODUCT_STATUS = {
  DRAFT: 'DRAFT',
  PRICED: 'PRICED',
  LISTED: 'LISTED',
  SYNCING: 'SYNCING',
  LIVE: 'LIVE',
  SYNC_FAILED: 'SYNC_FAILED',
  OFFLINE: 'OFFLINE',
} as const;

export const SHOP_STATUS = {
  ACTIVE: 'ACTIVE',
  INACTIVE: 'INACTIVE',
  SUSPENDED: 'SUSPENDED',
} as const;

export type Platform = typeof PLATFORMS[number];
export type OrderStatus = typeof ORDER_STATUS[keyof typeof ORDER_STATUS];
export type PaymentStatus = typeof PAYMENT_STATUS[keyof typeof PAYMENT_STATUS];
export type ProductStatus = typeof PRODUCT_STATUS[keyof typeof PRODUCT_STATUS];
export type ShopStatus = typeof SHOP_STATUS[keyof typeof SHOP_STATUS];
