mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-23 02:41:39 +00:00
* Update message de->fabric to v3
* Reinstate get authorization token path which doesn't get called every 5 minutes anymore
* Remove obsolete comment
* Add missing types
* Fix format
* Fix build issue
* Revert "Reinstate get authorization token path which doesn't get called every 5 minutes anymore"
This reverts commit a3f3511043.
* Keep 3 old fabric message types enums for compatibility with the portal
* Re-add warning comment about not changing existing message type enums
---------
Co-authored-by: Laurent Nguyen <languye@microsoft.com>
28 lines
773 B
TypeScript
28 lines
773 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;
|
|
};
|
|
|
|
export type GetCosmosTokenMessageOptions = {
|
|
verb: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace";
|
|
resourceType: "" | "dbs" | "colls" | "docs" | "sprocs" | "pkranges";
|
|
resourceId: string;
|
|
};
|