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 = {
|
2024-09-08 23:15:54 +03:00
|
|
|
container: string
|
|
|
|
cpu?: Unit
|
|
|
|
ram?: Unit
|
|
|
|
name?: string
|
|
|
|
envs?: string[]
|
|
|
|
volumes?: string[]
|
2024-09-08 21:09:48 +03:00
|
|
|
}
|
2024-09-05 21:02:35 +03:00
|
|
|
|
|
|
|
export type Deployment = {
|
2024-09-08 23:15:54 +03:00
|
|
|
kind: "compose" | "simple" | "deployment"
|
|
|
|
spec: Spec
|
|
|
|
promocode?: string
|
2024-09-05 21:02:35 +03:00
|
|
|
}
|
2024-09-05 22:40:11 +03:00
|
|
|
|
|
|
|
export type DeploymentResponse = Deployment & {
|
2024-09-08 23:15:54 +03:00
|
|
|
uuid: string
|
|
|
|
payLink: string
|
2024-09-05 22:40:11 +03:00
|
|
|
}
|