import { Movement as PrismaMovement } from "@/generated/prisma/client"

import { Asset } from "./asset"
import { Item } from "./item"
import { Recipient } from "./recipient"

export type Movement = PrismaMovement

export type MovementSummary = Pick<Movement, "id" | "type" | "quantity">

export type MovementWithItem = Movement & {
  item: Item | null
}

export type MovementWithItemAndAsset = Movement & {
  item: Item | null
  asset: Asset | null
}

export type MovementWithRecipientItemAsset = Movement & {
  recipient: Recipient | null
  item: Item | null
  asset: Asset | null
}
