josal/entities/deployment.d.ts
kogeletey f44e830205
feat: create client way
refactor: formating using biome code
2024-09-08 23:15:54 +03:00

24 lines
426 B
TypeScript

import type { Compose } from "./compose.d.ts"
import type { Unit } from "./unit.d.ts"
type Spec = string | Compose | Simple
type Simple = {
container: string
cpu?: Unit
ram?: Unit
name?: string
envs?: string[]
volumes?: string[]
}
export type Deployment = {
kind: "compose" | "simple" | "deployment"
spec: Spec
promocode?: string
}
export type DeploymentResponse = Deployment & {
uuid: string
payLink: string
}