-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDeployWorkspaceProjectContext.ts
More file actions
19 lines (16 loc) · 1.57 KB
/
DeployWorkspaceProjectContext.ts
File metadata and controls
19 lines (16 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import type { ExecuteActivityContext } from "@microsoft/vscode-azext-utils";
import type { SetTelemetryProps } from "../../telemetry/SetTelemetryProps";
import type { DeployWorkspaceProjectTelemetryProps as TelemetryProps } from "../../telemetry/commandTelemetryProps";
import type { CreateContainerAppBaseContext } from "../createContainerApp/CreateContainerAppContext";
import type { IManagedEnvironmentContext } from "../createManagedEnvironment/IManagedEnvironmentContext";
import { BuildImageInAzureImageSourceBaseContext } from "../image/imageSource/buildImageInAzure/BuildImageInAzureImageSourceContext";
import type { CreateAcrContext } from "../image/imageSource/containerRegistry/acr/createAcr/CreateAcrContext";
// Use intersection typing instead of an interface here to bypass some minor (relatively trivial) type mismatch issues introduced by having to use the 'Partial' utility
export type DeployWorkspaceProjectContext = IManagedEnvironmentContext & CreateContainerAppBaseContext & CreateAcrContext & Partial<BuildImageInAzureImageSourceBaseContext> & ExecuteActivityContext & DeployWorkspaceProjectTelemetryProps & {
shouldSaveDeploySettings?: boolean;
};
type DeployWorkspaceProjectTelemetryProps = SetTelemetryProps<TelemetryProps>;