30 lines
701 B
TypeScript
30 lines
701 B
TypeScript
import type { Client } from './client'
|
|
|
|
export type Project = {
|
|
id: number
|
|
'@id'?: string
|
|
code: string
|
|
name: string
|
|
description: string | null
|
|
color: string
|
|
client: Client | null
|
|
giteaOwner: string | null
|
|
giteaRepo: string | null
|
|
bookstackShelfId: number | null
|
|
bookstackShelfName: string | null
|
|
archived: boolean
|
|
}
|
|
|
|
export type ProjectWrite = {
|
|
code?: string
|
|
name: string
|
|
description: string | null
|
|
color: string
|
|
client: string | null // IRI : "/api/clients/1" ou null
|
|
giteaOwner?: string | null
|
|
giteaRepo?: string | null
|
|
bookstackShelfId?: number | null
|
|
bookstackShelfName?: string | null
|
|
archived?: boolean
|
|
}
|