Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/features/deploymentEnvironments/environmentRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export class EnvironmentRepository extends SpaceScopedBasicRepository<Deployment
return response;
}

async deprovisionEphemeralEnvironment(environmentId: string): Promise<DeprovisionEphemeralEnvironmentProjectResponse> {
const response = await this.client.doCreate<DeprovisionEphemeralEnvironmentProjectResponse>(
async deprovisionEphemeralEnvironment(environmentId: string): Promise<DeprovisionEphemeralEnvironmentResponse> {
const response = await this.client.doCreate<DeprovisionEphemeralEnvironmentResponse>(
`${spaceScopedRoutePrefix}/environments/ephemeral/{environmentId}/deprovision`,
{},
{
Expand Down Expand Up @@ -139,6 +139,15 @@ export interface CreateEphemeralEnvironmentResponse {
Id: string;
}

export type DeprovisioningRunbookRun = {
RunbookRunId: string;
TaskId: string;
};

export interface DeprovisionEphemeralEnvironmentProjectResponse {
RunbookRunId?: string;
DeprovisioningRun?: DeprovisioningRunbookRun;
}

export interface DeprovisionEphemeralEnvironmentResponse {
DeprovisioningRuns?: DeprovisioningRunbookRun[];
}
Loading