Promote some Azure account API typings (#20615)

This commit is contained in:
Charles Gagnon
2022-09-16 11:44:33 -07:00
committed by GitHub
parent c2c16c99e8
commit 5f8cefc45c
3 changed files with 148 additions and 40 deletions

View File

@@ -477,35 +477,6 @@ declare module 'azdata' {
type?: ExtensionNodeType;
}
export interface AccountDisplayInfo {
email?: string;
name?: string;
}
export interface AccountProvider {
/**
* Generates a security token for the provided account and tenant
* @param account The account to generate a security token for
* @param resource The resource to get the token for
* @return Promise to return a security token object
*/
getAccountSecurityToken(account: Account, tenant: string, resource: AzureResource): Thenable<accounts.AccountSecurityToken | undefined>;
}
export interface AccountKey {
/**
* A version string for an account
*/
accountVersion?: string;
}
export interface Account {
/**
* Specifies if an account should be deleted
*/
delete?: boolean;
}
export namespace workspace {
/**
* Creates and enters a workspace at the specified location
@@ -671,15 +642,6 @@ declare module 'azdata' {
connectionUriChanged(newUri: string, oldUri: string): Thenable<void>;
}
export namespace accounts {
export interface AccountSecurityToken {
/**
* Access token expiry timestamp
*/
expiresOn?: number
}
}
export enum DataProviderType {
TableDesignerProvider = 'TableDesignerProvider',
ExecutionPlanProvider = 'ExecutionPlanProvider'