export type AdminOrderFulfillmentProgress = {
  totalTaskCount: number
  preparedTaskCount: number
  completedTaskCount: number
  resourceStatus: string
  customerStatus: string
}

export type AdminOrderListItem = {
  orderId: number
  provider: string
  platform: string
  shopId: string
  shopName: string
  platformOrderId: string
  orderStatus: string
  payStatus: string
  buyerId: string
  buyerName: string
  receiverContact: string
  totalAmount: string
  totalAmountFen: number
  currency: string
  paidAt: string | null
  createdAt: string
  updatedAt: string
  itemCount: number
  totalQuantity: number
  itemSummary: string
  taskCount: number
  resourceStatus: string
  customerStatus: string
  preparedTaskCount: number
  completedTaskCount: number
}

export type AdminTaskListItem = {
  taskId: number
  taskNo: string
  platformOrderId: string
  skuCode: string
  skuName: string
  status: string
  executorKey: string
  deliveryStatus: string
  resultCode: string
  resultMessage: string
  resourceStatus: string
  customerStatus: string
  loginType: string
  roleName: string
  roleId: string
  runtimeSessionId: string
  claimedAt: string | null
  roleConfirmedAt: string | null
  redeemedAt: string | null
  retryCount: number
  lastError: string
  createdAt: string
  updatedAt: string
  claimToken: string
  screenshotPath: string
}

export type AdminPagination = {
  page: number
  pageSize: number
  total: number
}

export type AdminOrderListResponse = {
  items: AdminOrderListItem[]
  pagination: AdminPagination
}

export type AdminTaskListResponse = {
  items: AdminTaskListItem[]
  pagination: AdminPagination
}
