mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-27 12:51:41 +00:00
* Hide entire Accordion of options in Settings Pane * In PartitionKeyComponent hide "Change partition key" label when read-only. * Create sample data container with correct pkey * Add unit tests to PartitionKeyComponent * Fix format * fix unit test snapshot * Add Fabric message to open Settings to given tab id * Improve syntax on message contract * Remove "(preview)" in partition key tab title in Settings Tab
31 lines
857 B
TypeScript
31 lines
857 B
TypeScript
import { FabricMessageTypes } from "./FabricMessageTypes";
|
|
|
|
// This is the current version of these messages
|
|
export const DATA_EXPLORER_RPC_VERSION = "3";
|
|
|
|
// Data Explorer to Fabric
|
|
export type DataExploreMessageV3 =
|
|
| {
|
|
type: FabricMessageTypes.Ready;
|
|
id: string;
|
|
params: [string]; // version
|
|
}
|
|
| {
|
|
type: FabricMessageTypes.GetAuthorizationToken;
|
|
id: string;
|
|
params: GetCosmosTokenMessageOptions[];
|
|
}
|
|
| {
|
|
type: FabricMessageTypes.GetAllResourceTokens;
|
|
id: string;
|
|
}
|
|
| {
|
|
type: FabricMessageTypes.OpenSettings;
|
|
settingsId: string;
|
|
};
|
|
export interface GetCosmosTokenMessageOptions {
|
|
verb: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
resourceType: "" | "dbs" | "colls" | "docs" | "sprocs" | "pkranges";
|
|
resourceId: string;
|
|
}
|