import type { Client } from '~/modules/directory/services/dto/client'
import type { Workflow } from './workflow'

export type Project = {
    id: number
    '@id'?: string
    code: string
    name: string
    description: string | null
    color: string
    client: Client | null
    workflow: Workflow
    giteaOwner: string | null
    giteaRepo: string | null
    bookstackShelfId: number | null
    bookstackShelfName: string | null
    archived: boolean
    taskCount: number
}

export type ProjectWrite = {
    code?: string
    name: string
    description: string | null
    color: string
    client: string | null  // IRI : "/api/clients/1" ou null
    workflow?: string      // IRI : "/api/workflows/1"
    giteaOwner?: string | null
    giteaRepo?: string | null
    bookstackShelfId?: number | null
    bookstackShelfName?: string | null
    archived?: boolean
}
