diff --git a/.changeset/warm-lizards-bathe.md b/.changeset/warm-lizards-bathe.md new file mode 100644 index 00000000..55e6080d --- /dev/null +++ b/.changeset/warm-lizards-bathe.md @@ -0,0 +1,5 @@ +--- +'@onehop/js': minor +--- + +deprecation warning for active_rollout in favor for latest_rollout, new fields for rollout including init_container_id, health_check_failed, and last_updated_at. diff --git a/src/rest/types/ignite.ts b/src/rest/types/ignite.ts index 775cc3fe..82ae77fb 100644 --- a/src/rest/types/ignite.ts +++ b/src/rest/types/ignite.ts @@ -211,10 +211,15 @@ export interface Deployment { config: Omit; /** - * Current active rollout for deployment + * @deprecated Use latest_rollout */ active_rollout: DeploymentRollout | null; + /** + * Current active rollout for deployment + */ + latest_rollout: DeploymentRollout | null; + /** * Current active build for deployment */ @@ -399,6 +404,21 @@ export type DeploymentRollout = { * The build that triggered the rollout */ build: Build | null; + + /** + * Container ID that the rollout is pertaining to + */ + init_container_id: string; + + /** + * If a health check failed (causing the rollout to fail) + */ + health_check_failed: boolean; + + /** + * Last time latest rollout was updated + */ + last_updated_at: Timestamp; }; // This is a type not an interface so we can make a union