import type { ClaimIdentityAdminSummary } from '../claim-identity.js'
import type { JsonObject } from '../json.js'

/**
 * 后台任务详情 API 返回形状（与前端 AdminTaskDetail 对齐的后端契约）。
 * 深层履约字段仍用 JsonObject，避免一次改完所有 mapper。
 */
export type AdminClaimIdentitySummary = ClaimIdentityAdminSummary

export type AdminTaskDetailView = {
  task: JsonObject
  order: JsonObject | null
  orderItem: JsonObject | null
  claimToken: JsonObject | null
  artifacts: JsonObject
  screenshotUrl: string
  review: JsonObject
  redeemResolution: JsonObject | null
  claimIdentity: AdminClaimIdentitySummary
  kuaishouCloudFulfillment: JsonObject | null
  kuaishouIndustryVoucher: JsonObject | null
  manualDispatch: JsonObject | null
  events: JsonObject[]
  operations: JsonObject
}
