diff --git a/.changeset/cyan-gorillas-sniff.md b/.changeset/cyan-gorillas-sniff.md new file mode 100644 index 00000000..647a1cc0 --- /dev/null +++ b/.changeset/cyan-gorillas-sniff.md @@ -0,0 +1,5 @@ +--- +'@onehop/js': patch +--- + +Deprecate Deployment.active\_{build,rollout} diff --git a/src/rest/types/ignite.ts b/src/rest/types/ignite.ts index 24d91462..81301d94 100644 --- a/src/rest/types/ignite.ts +++ b/src/rest/types/ignite.ts @@ -211,19 +211,34 @@ export interface Deployment { config: Omit; /** + * Current active rollout for deployment * @deprecated Use latest_rollout */ active_rollout: DeploymentRollout | null; + /** + * Current active build for deployment + * @deprecated Use latest_build instead + */ + active_build: Build | null; + + /** + * The active build ID to use. This can differ from .latest_build.id + * because if we promote an older build to production, then the latest_build + * will *not* be the active build. + */ + build_id: Build['id'] | null; + /** * Current active rollout for deployment */ latest_rollout: DeploymentRollout | null; /** - * Current active build for deployment + * Current active build for deployment. + * Is nullable if the deployment has no builds yet. */ - active_build: Build | null; + latest_build: Build | null; /** * The amount of containers in the running state