mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-01-22 08:50:21 +00:00
1c80ced259
* Fix settings tab issue for cassandra and add feature flag * Adding the rest of the changes.... Co-authored-by: Steve Faulkner <southpolesteve@gmail.com>
24 lines
666 B
TypeScript
24 lines
666 B
TypeScript
import { DatabaseAccount } from "./Contracts/DataModels";
|
|
import { DefaultAccountExperienceType } from "./DefaultAccountExperienceType";
|
|
|
|
interface UserContext {
|
|
masterKey?: string;
|
|
subscriptionId?: string;
|
|
resourceGroup?: string;
|
|
databaseAccount?: DatabaseAccount;
|
|
endpoint?: string;
|
|
accessToken?: string;
|
|
authorizationToken?: string;
|
|
resourceToken?: string;
|
|
defaultExperience?: DefaultAccountExperienceType;
|
|
useSDKOperations?: boolean;
|
|
}
|
|
|
|
const userContext: Readonly<UserContext> = {} as const;
|
|
|
|
function updateUserContext(newContext: UserContext): void {
|
|
Object.assign(userContext, newContext);
|
|
}
|
|
|
|
export { userContext, updateUserContext };
|