mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-11 02:32:35 -05:00
Promote some Azure account API typings (#20615)
This commit is contained in:
38
src/sql/azdata.proposed.d.ts
vendored
38
src/sql/azdata.proposed.d.ts
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user