From 0f46b3ef9bac74de5dbe5277ece470f1111cc3a5 Mon Sep 17 00:00:00 2001 From: Kim Santiago <31145923+kisantia@users.noreply.github.com> Date: Mon, 17 Oct 2022 13:54:49 -0700 Subject: [PATCH] update vscode-mssql.d.ts to match the one in vscode-mssql (#20861) * update vscode-mssql.d.ts to match the one in vscode-mssql * format file --- extensions/types/vscode-mssql.d.ts | 167 +++++++++++++++-------------- 1 file changed, 84 insertions(+), 83 deletions(-) diff --git a/extensions/types/vscode-mssql.d.ts b/extensions/types/vscode-mssql.d.ts index 24f68f2ec7..3a9a83e538 100644 --- a/extensions/types/vscode-mssql.d.ts +++ b/extensions/types/vscode-mssql.d.ts @@ -118,39 +118,95 @@ declare module 'vscode-mssql' { /** * Get the server info for a connection * @param connectionInfo connection info of the connection + * @returns server information */ getServerInfo(connectionInfo: IConnectionInfo): ServerInfo } + /** + * Information about a SQL Server instance. + */ + export interface ServerInfo { /** - * Well-known Authentication types. + * The major version of the SQL Server instance. */ - export const enum AuthenticationType { - /** - * Username and password - */ - SqlLogin = 'SqlLogin', - /** - * Windows Authentication - */ - Integrated = 'Integrated', - /** - * Azure Active Directory - Universal with MFA support - */ - AzureMFA = 'AzureMFA', - /** - * Azure Active Directory - Password - */ - AzureMFAAndUser = 'AzureMFAAndUser', - /** - * Datacenter Security Token Service Authentication - */ - DSTSAuth = 'dstsAuth', - /** - * No authentication required - */ - None = 'None' - } + serverMajorVersion: number; + + /** + * The minor version of the SQL Server instance. + */ + serverMinorVersion: number; + + /** + * The build of the SQL Server instance. + */ + serverReleaseVersion: number; + + /** + * The ID of the engine edition of the SQL Server instance. + */ + engineEditionId: number; + + /** + * String containing the full server version text. + */ + serverVersion: string; + + /** + * String describing the product level of the server. + */ + serverLevel: string; + + /** + * The edition of the SQL Server instance. + */ + serverEdition: string; + + /** + * Whether the SQL Server instance is running in the cloud (Azure) or not. + */ + isCloud: boolean; + + /** + * The version of Azure that the SQL Server instance is running on, if applicable. + */ + azureVersion: number; + + /** + * The Operating System version string of the machine running the SQL Server instance. + */ + osVersion: string; + } + + /** + * Well-known Authentication types. + */ + export const enum AuthenticationType { + /** + * Username and password + */ + SqlLogin = 'SqlLogin', + /** + * Windows Authentication + */ + Integrated = 'Integrated', + /** + * Azure Active Directory - Universal with MFA support + */ + AzureMFA = 'AzureMFA', + /** + * Azure Active Directory - Password + */ + AzureMFAAndUser = 'AzureMFAAndUser', + /** + * Datacenter Security Token Service Authentication + */ + DSTSAuth = 'dstsAuth', + /** + * No authentication required + */ + None = 'None' + } /** * The possible values of the server engine edition @@ -169,7 +225,6 @@ declare module 'vscode-mssql' { SqlOnDemand = 11 } - /** * Information about a database connection */ @@ -343,61 +398,6 @@ declare module 'vscode-mssql' { connectionString: string | undefined; } - /** - * Information about a SQL Server instance. - */ - export interface ServerInfo { - /** - * The major version of the SQL Server instance. - */ - serverMajorVersion: number; - - /** - * The minor version of the SQL Server instance. - */ - serverMinorVersion: number; - - /** - * The build of the SQL Server instance. - */ - serverReleaseVersion: number; - - /** - * The ID of the engine edition of the SQL Server instance. - */ - engineEditionId: number; - - /** - * String containing the full server version text. - */ - serverVersion: string; - - /** - * String describing the product level of the server. - */ - serverLevel: string; - - /** - * The edition of the SQL Server instance. - */ - serverEdition: string; - - /** - * Whether the SQL Server instance is running in the cloud (Azure) or not. - */ - isCloud: boolean; - - /** - * The version of Azure that the SQL Server instance is running on, if applicable. - */ - azureVersion: number; - - /** - * The Operating System version string of the machine running the SQL Server instance. - */ - osVersion: string; - } - export const enum ExtractTarget { dacpac = 0, file = 1, @@ -672,6 +672,7 @@ declare module 'vscode-mssql' { ownerUri: string; extractTarget?: ExtractTarget; taskExecutionMode: TaskExecutionMode; + includePermissions?: boolean; } export interface DeployParams {