Deployment Job Type Definitions (src/types.ts)

EstateWise-Chapel-Hill-Chatbot · deployment-control/src/types.ts · typescript · MIT
infra, dev-tools, lang:typescript

TypeScript interfaces and unions defining deployment job types, statuses, records, responses, and cluster summaries; reuse to type deployment-control APIs and job tracking.

// Source: https://github.com/hoangsonww/EstateWise-Chapel-Hill-Chatbot | License: MIT | Copyright 2026 Son Nguyen
// Provided via justclaw.it.com; keep this notice with the code.
export type JobType =
  | "blue-green"
  | "canary"
  | "rolling"
  | "scale"
  | "cluster-status";

export type JobStatus = "queued" | "running" | "succeeded" | "failed";

export interface JobRecord {
  id: string;
  type: JobType;
  description: string;
  command: string;
  status: JobStatus;
  createdAt: Date;
  startedAt?: Date;
  finishedAt?: Date;
  output: string[];
  exitCode?: number | null;
  parameters?: Record<string, unknown>;
  error?: string;
}

export interface JobResponse {
  id: string;
  type: JobType;
  description: string;
  command: string;
  status: JobStatus;
  createdAt: string;
  started

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key