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
This commit is contained in:
Kim Santiago
2022-10-17 13:54:49 -07:00
committed by GitHub
parent 5106a08ea3
commit 0f46b3ef9b

View File

@@ -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 {