import request from '@/utils/request'

export interface ExtensionResourceSnapshotVO {
  resourceType: string
  resourceName: string
  warehouse: string
  capacity: number
  boundCount: number
  reservedCount: number
  totalCount: number
  remainingCapacity: number
  reservedChainCodes: string[]
}

export function getExtensionResourceSnapshots(warehouse: string) {
  return request.get<never, { code: number; data: ExtensionResourceSnapshotVO[] }>(
    '/api/robot/external/admin/extension-resource/snapshot',
    { params: { warehouse } },
  )
}
