export const adminPayStatusOptions = [
  { label: '全部', value: '' },
  { label: '未支付', value: 'unpaid' },
  { label: '已支付', value: 'paid' },
  { label: '失败', value: 'failed' },
  { label: '已退款', value: 'refunded' },
]

export const adminTaskStatusOptions = [
  { label: '全部', value: '' },
  { label: '待支付', value: 'pending_payment' },
  { label: '已支付', value: 'paid' },
  { label: '待库存', value: 'waiting_inventory' },
  { label: '已预占', value: 'cdk_reserved' },
  { label: '已生成链接', value: 'link_generated' },
  { label: '已创建会话', value: 'claimed' },
  { label: '已确认角色', value: 'role_confirmed' },
  { label: '兑换中', value: 'redeeming' },
  { label: '已兑换', value: 'redeemed' },
  { label: '待重试', value: 'retry_pending' },
  { label: '人工处理', value: 'manual_review' },
  { label: '已过期', value: 'expired' },
  { label: '已关闭', value: 'closed' },
]

export const adminInventoryStatusOptions = [
  { label: '全部', value: '' },
  { label: '可用', value: 'available' },
  { label: '已预占', value: 'reserved' },
  { label: '已发放', value: 'delivered' },
  { label: '已消耗', value: 'consumed' },
  { label: '已作废', value: 'invalid' },
]

export const adminInventoryCredentialTypeOptions = [
  { label: '全部凭据类型', value: '' },
  { label: '腾讯兑换码（自动领取）', value: 'tencent_code' },
  { label: '卡号卡密', value: 'card_password' },
  { label: '账号密码', value: 'account_password' },
  { label: '激活链接', value: 'activation_link' },
  { label: '纯文本凭据', value: 'text_credential' },
]

export const adminMessageDeliveryStatusOptions = [
  { label: '全部状态', value: '' },
  { label: '发送成功', value: 'success' },
  { label: '发送失败', value: 'failed' },
  { label: '等待发送', value: 'pending' },
]

export const adminWebhookProcessedOptions = [
  { label: '全部', value: '' },
  { label: '处理成功', value: '1' },
  { label: '处理失败', value: '0' },
]

export const adminWebhookVisibilityOptions = [
  { label: '仅重要', value: 'important' },
  { label: '仅忽略', value: 'ignored' },
  { label: '全部', value: 'all' },
]

export const adminUserRoleOptions = [
  { label: '全部', value: '' },
  { label: '管理员', value: 'admin' },
  { label: '普通运营', value: 'operator' },
  { label: '客服', value: 'support' },
]

export const adminUserStatusOptions = [
  { label: '全部', value: '' },
  { label: '生效中', value: 'active' },
  { label: '已停用', value: 'disabled' },
]

export const adminAuditActionOptions = [
  { label: '全部', value: '' },
  { label: '创建后台用户', value: 'admin_user_created' },
  { label: '修改用户角色', value: 'admin_user_role_updated' },
  { label: '修改用户状态', value: 'admin_user_status_updated' },
  { label: '修改用户库存组', value: 'admin_user_inventory_groups_updated' },
  { label: '重置用户密码', value: 'admin_user_password_reset' },
  { label: '释放任务库存', value: 'task_release_inventory' },
  { label: '重发领取链接', value: 'task_regenerate_claim_link' },
  { label: '关闭任务', value: 'task_closed' },
  { label: '转人工处理', value: 'task_mark_manual_review' },
  { label: '释放库存项', value: 'inventory_item_released' },
  { label: '作废库存项', value: 'inventory_item_invalidated' },
  { label: '重放 Webhook', value: 'webhook_replayed' },
]

export const adminAuditTargetTypeOptions = [
  { label: '全部', value: '' },
  { label: '后台用户', value: 'admin_user' },
  { label: '交付任务', value: 'task' },
  { label: '库存项', value: 'inventory_item' },
  { label: 'Webhook 事件', value: 'webhook_event' },
]
