2024-09-05 22:40:11 +03:00
|
|
|
import type { Compose } from "./compose.d.ts"
|
2024-09-08 21:09:48 +03:00
|
|
|
import type { Unit } from "./unit.d.ts"
|
2024-09-05 22:40:11 +03:00
|
|
|
|
2024-09-08 21:09:48 +03:00
|
|
|
type Spec = string | Compose | Simple
|
|
|
|
|
|
|
|
type Simple = {
|
|
|
|
container: string
|
|
|
|
cpu?: Unit
|
|
|
|
ram?: Unit
|
|
|
|
name?: string
|
|
|
|
envs?: string[]
|
|
|
|
volumes?: string[]
|
|
|
|
}
|
2024-09-05 21:02:35 +03:00
|
|
|
|
|
|
|
export type Deployment = {
|
2024-09-08 21:09:48 +03:00
|
|
|
kind: "compose" | "simple" | "deployment"
|
2024-09-05 21:02:35 +03:00
|
|
|
spec: Spec
|
|
|
|
promocode?: string
|
|
|
|
}
|
2024-09-05 22:40:11 +03:00
|
|
|
|
|
|
|
export type DeploymentResponse = Deployment & {
|
|
|
|
uuid: string
|
|
|
|
payLink: string
|
|
|
|
}
|