mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-31 06:41:35 +00:00
resolve build time error
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export const Spark = "spark-public-preview";
|
||||
export const Notebooks = "sparknotebooks-public-preview";
|
||||
export const StorageAnalytics = "storageanalytics-public-preview";
|
||||
export const StorageAnalytics = "storageanalytics-public-preview";
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export const Days90 = 7776000;
|
||||
export const Infinite = -1;
|
||||
export const Disabled = 0;
|
||||
export const Disabled = 0;
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export const runtimeProxy = "/api/RuntimeProxy";
|
||||
export const guestRuntimeProxy = "/api/guest/RuntimeProxy";
|
||||
export const guestRuntimeProxy = "/api/guest/RuntimeProxy";
|
||||
|
||||
@@ -3,4 +3,4 @@ export const MongoDB = 1;
|
||||
export const Gremlin = 2;
|
||||
export const Cassandra = 4;
|
||||
export const Table = 8;
|
||||
export const SQL = 16;
|
||||
export const SQL = 16;
|
||||
|
||||
@@ -2,4 +2,4 @@ export const ResourceTree = "Resource Tree";
|
||||
export const ContextualPane = "Contextual Pane";
|
||||
export const Tab = "Tab";
|
||||
export const ShareDialog = "Share Access Dialog";
|
||||
export const Notebook = "Notebook";
|
||||
export const Notebook = "Notebook";
|
||||
|
||||
@@ -3,4 +3,4 @@ export const arcadia = "2019-06-01-preview";
|
||||
export const arcadiaLivy = "2019-11-01-preview";
|
||||
export const arm = "2015-11-01";
|
||||
export const armFeatures = "2014-08-01-preview";
|
||||
export const publicVersion = "2020-04-01";
|
||||
export const publicVersion = "2020-04-01";
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export const notebookWorkspaces = "Microsoft.DocumentDB/databaseAccounts/notebookWorkspaces";
|
||||
export const synapseWorkspaces = "Microsoft.Synapse/workspaces";
|
||||
export const synapseWorkspaces = "Microsoft.Synapse/workspaces";
|
||||
|
||||
@@ -2,4 +2,4 @@ export const partitionKeyKind = "Hash";
|
||||
export const singlePartitionStorageInGb = "10";
|
||||
export const multiPartitionStorageInGb = "100";
|
||||
export const maxChangeFeedRetentionDuration = 10;
|
||||
export const partitionKeyVersion = 2;
|
||||
export const partitionKeyVersion = 2;
|
||||
|
||||
@@ -5,4 +5,4 @@ export const EnableAutoScale = "EnableAutoScale";
|
||||
export const EnableNotebooks = "EnableNotebooks";
|
||||
export const EnableStorageAnalytics = "EnableStorageAnalytics";
|
||||
export const EnableMongo = "EnableMongo";
|
||||
export const EnableServerless = "EnableServerless";
|
||||
export const EnableServerless = "EnableServerless";
|
||||
|
||||
@@ -6,4 +6,4 @@ export const guestQueryApi = "api/guest/cassandra";
|
||||
export const keysApi = "api/cassandra/keys";
|
||||
export const guestKeysApi = "api/guest/cassandra/keys";
|
||||
export const schemaApi = "api/cassandra/schema";
|
||||
export const guestSchemaApi = "api/guest/cassandra/schema";
|
||||
export const guestSchemaApi = "api/guest/cassandra/schema";
|
||||
|
||||
@@ -3,9 +3,7 @@ export const portalCacheTimeoutMs = 10000;
|
||||
export const errorNotificationTimeoutMs = 5000;
|
||||
export const copyHelperTimeoutMs = 2000;
|
||||
export const waitForDOMElementMs = 500;
|
||||
export const cacheBustingTimeoutMs =
|
||||
10 /** minutes **/ * 60 /** to seconds **/ * 1000 /** to milliseconds **/;
|
||||
export const cacheBustingTimeoutMs = 10 /** minutes **/ * 60 /** to seconds **/ * 1000; /** to milliseconds **/
|
||||
export const databaseThroughputIncreaseFactor = 100;
|
||||
export const arcadiaTokenRefreshInterval =
|
||||
20 /** minutes **/ * 60 /** to seconds **/ * 1000 /** to milliseconds **/;
|
||||
export const arcadiaTokenRefreshIntervalPaddingMs = 2000;
|
||||
export const arcadiaTokenRefreshInterval = 20 /** minutes **/ * 60 /** to seconds **/ * 1000; /** to milliseconds **/
|
||||
export const arcadiaTokenRefreshIntervalPaddingMs = 2000;
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export const privacyStatement = "https://aka.ms/ms-privacy-policy";
|
||||
export const codeOfConduct = "https://aka.ms/cosmos-code-of-conduct";
|
||||
export const termsOfUse = "https://aka.ms/ms-terms-of-use";
|
||||
export const termsOfUse = "https://aka.ms/ms-terms-of-use";
|
||||
|
||||
@@ -1 +1 @@
|
||||
export const IsBsonSchemaV2 = "true";
|
||||
export const IsBsonSchemaV2 = "true";
|
||||
|
||||
@@ -1 +1 @@
|
||||
export const Url = "https://aka.ms/cosmosdbanalytics";
|
||||
export const Url = "https://aka.ms/cosmosdbanalytics";
|
||||
|
||||
@@ -5,4 +5,4 @@ export const SplitterMinWidth = 200;
|
||||
export const SplitterMaxWidth = 360;
|
||||
|
||||
export const DocumentEditorMinWidthRatio = 0.2;
|
||||
export const DocumentEditorMaxWidthRatio = 0.4;
|
||||
export const DocumentEditorMaxWidthRatio = 0.4;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const cassandra = [
|
||||
"AccountEndpoint=(.*).cassandra.cosmosdb.azure.com",
|
||||
"HostName=(.*).cassandra.cosmos.azure.com",
|
||||
"AccountEndpoint=(.*).cassandra.cosmosdb.azure.com",
|
||||
"HostName=(.*).cassandra.cosmos.azure.com",
|
||||
];
|
||||
export const mongo = "mongodb://.*:(.*)@(.*).documents.azure.com";
|
||||
export const mongoCompute = "mongodb://.*:(.*)@(.*).mongo.cosmos.azure.com";
|
||||
|
||||
@@ -4,4 +4,4 @@ export const MongoIndexEditor = "mongoindexeditor";
|
||||
export const MongoIndexing = "mongoindexing";
|
||||
export const AutoscaleTest = "autoscaletest";
|
||||
export const PartitionKeyTest = "partitionkeytest";
|
||||
export const PKPartitionKeyTest = "pkpartitionkeytest";
|
||||
export const PKPartitionKeyTest = "pkpartitionkeytest";
|
||||
|
||||
@@ -6,40 +6,35 @@ export const docs = collections + "/docs/{doc_id}/";
|
||||
export const conflicts = collections + "/conflicts";
|
||||
|
||||
export const databasesWithId = (databaseId: string) => {
|
||||
return databases.replace("{db_id}", databaseId).replace("/", ""); // strip the first slash since hasher adds it
|
||||
}
|
||||
return databases.replace("{db_id}", databaseId).replace("/", ""); // strip the first slash since hasher adds it
|
||||
};
|
||||
|
||||
export const collectionsWithIds = (databaseId: string, collectionId: string) => {
|
||||
const transformedDatabasePrefix = collections.replace("{db_id}", databaseId);
|
||||
const transformedDatabasePrefix = collections.replace("{db_id}", databaseId);
|
||||
|
||||
return transformedDatabasePrefix.replace("{coll_id}", collectionId).replace("/", ""); // strip the first slash since hasher adds it
|
||||
}
|
||||
return transformedDatabasePrefix.replace("{coll_id}", collectionId).replace("/", ""); // strip the first slash since hasher adds it
|
||||
};
|
||||
|
||||
export const sprocWithIds = (
|
||||
databaseId: string,
|
||||
collectionId: string,
|
||||
sprocId: string,
|
||||
stripFirstSlash = true
|
||||
) => {
|
||||
const transformedDatabasePrefix = sprocs.replace("{db_id}", databaseId);
|
||||
export const sprocWithIds = (databaseId: string, collectionId: string, sprocId: string, stripFirstSlash = true) => {
|
||||
const transformedDatabasePrefix = sprocs.replace("{db_id}", databaseId);
|
||||
|
||||
const transformedSprocRoute = transformedDatabasePrefix
|
||||
.replace("{coll_id}", collectionId)
|
||||
.replace("{sproc_id}", sprocId);
|
||||
if (stripFirstSlash) {
|
||||
return transformedSprocRoute.replace("/", ""); // strip the first slash since hasher adds it
|
||||
}
|
||||
const transformedSprocRoute = transformedDatabasePrefix
|
||||
.replace("{coll_id}", collectionId)
|
||||
.replace("{sproc_id}", sprocId);
|
||||
if (stripFirstSlash) {
|
||||
return transformedSprocRoute.replace("/", ""); // strip the first slash since hasher adds it
|
||||
}
|
||||
|
||||
return transformedSprocRoute;
|
||||
}
|
||||
return transformedSprocRoute;
|
||||
};
|
||||
|
||||
export const conflictsWithIds = (databaseId: string, collectionId: string) => {
|
||||
const transformedDatabasePrefix = conflicts.replace("{db_id}", databaseId);
|
||||
const transformedDatabasePrefix = conflicts.replace("{db_id}", databaseId);
|
||||
|
||||
return transformedDatabasePrefix.replace("{coll_id}", collectionId).replace("/", ""); // strip the first slash since hasher adds it;
|
||||
}
|
||||
return transformedDatabasePrefix.replace("{coll_id}", collectionId).replace("/", ""); // strip the first slash since hasher adds it;
|
||||
};
|
||||
|
||||
export const docsWithIds = (databaseId: string, collectionId: string, docId: string): string => {
|
||||
const transformedDatabasePrefix = docs.replace("{db_id}", databaseId);
|
||||
return transformedDatabasePrefix.replace("{coll_id}", collectionId).replace("{doc_id}", docId).replace("/", ""); // strip the first slash since hasher adds it
|
||||
}
|
||||
const transformedDatabasePrefix = docs.replace("{db_id}", databaseId);
|
||||
return transformedDatabasePrefix.replace("{coll_id}", collectionId).replace("{doc_id}", docId).replace("/", ""); // strip the first slash since hasher adds it
|
||||
};
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
export const activityId = "x-ms-activity-id";
|
||||
export const apiType = "x-ms-cosmos-apitype";
|
||||
export const authorization = "authorization";
|
||||
export const collectionIndexTransformationProgress =
|
||||
"x-ms-documentdb-collection-index-transformation-progress";
|
||||
export const collectionIndexTransformationProgress = "x-ms-documentdb-collection-index-transformation-progress";
|
||||
export const continuation = "x-ms-continuation";
|
||||
export const correlationRequestId = "x-ms-correlation-request-id";
|
||||
export const enableScriptLogging = "x-ms-documentdb-script-enable-logging";
|
||||
@@ -28,4 +27,4 @@ export const autoPilotThroughput = "autoscaleSettings";
|
||||
export const autoPilotThroughputSDK = "x-ms-cosmos-offer-autopilot-settings";
|
||||
export const partitionKey = "x-ms-documentdb-partitionkey";
|
||||
export const migrateOfferToManualThroughput = "x-ms-cosmos-migrate-offer-to-manual-throughput";
|
||||
export const migrateOfferToAutopilot = "x-ms-cosmos-migrate-offer-to-autopilot";
|
||||
export const migrateOfferToAutopilot = "x-ms-cosmos-migrate-offer-to-autopilot";
|
||||
|
||||
@@ -15,9 +15,9 @@ export const ServiceUnavailable = 503;
|
||||
export const GatewayTimeout = 504;
|
||||
|
||||
export const RetryableStatusCodes: number[] = [
|
||||
TooManyRequests,
|
||||
InternalServerError, // TODO: Handle all 500s on Portal backend and remove from retries list
|
||||
BadGateway,
|
||||
ServiceUnavailable,
|
||||
GatewayTimeout,
|
||||
];
|
||||
TooManyRequests,
|
||||
InternalServerError, // TODO: Handle all 500s on Portal backend and remove from retries list
|
||||
BadGateway,
|
||||
ServiceUnavailable,
|
||||
GatewayTimeout,
|
||||
];
|
||||
|
||||
@@ -5,4 +5,4 @@ export const UpArrow = 38;
|
||||
export const DownArrow = 40;
|
||||
export const LeftArrow = 37;
|
||||
export const RightArrow = 39;
|
||||
export const Tab = 9;
|
||||
export const Tab = 9;
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export const protocol = "https";
|
||||
export const defaultPort = "10255";
|
||||
export const defaultPort = "10255";
|
||||
|
||||
@@ -5,4 +5,4 @@ export const Escape = "Escape";
|
||||
export const UpArrow = "ArrowUp";
|
||||
export const DownArrow = "ArrowDown";
|
||||
export const LeftArrow = "ArrowLeft";
|
||||
export const RightArrow = "ArrowRight";
|
||||
export const RightArrow = "ArrowRight";
|
||||
|
||||
@@ -5,6 +5,6 @@ export const kernelRestartMaxDelayMs = 20000;
|
||||
export const autoSaveIntervalMs = 120000;
|
||||
export const temporarilyDownMsg = "Notebooks is currently not available. We are working on it.";
|
||||
export const mongoShellTemporarilyDownMsg =
|
||||
"We have identified an issue with the Mongo Shell and it is unavailable right now. We are actively working on the mitigation.";
|
||||
"We have identified an issue with the Mongo Shell and it is unavailable right now. We are actively working on the mitigation.";
|
||||
export const cassandraShellTemporarilyDownMsg =
|
||||
"We have identified an issue with the Cassandra Shell and it is unavailable right now. We are actively working on the mitigation.";
|
||||
"We have identified an issue with the Cassandra Shell and it is unavailable right now. We are actively working on the mitigation.";
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
|
||||
export const V1 = "V1";
|
||||
export const V2 = "V2";
|
||||
export const V2 = "V2";
|
||||
|
||||
@@ -5,4 +5,4 @@ export const unlimitedItemsPerPage = 100; // TODO: Figure out appropriate value
|
||||
|
||||
export const QueryEditorMinHeightRatio = 0.1;
|
||||
export const QueryEditorMaxHeightRatio = 0.4;
|
||||
export const DefaultMaxDegreeOfParallelism = 6;
|
||||
export const DefaultMaxDegreeOfParallelism = 6;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const CollectionName = "___Query";
|
||||
export const DatabaseName = "___Cosmos";
|
||||
export const OfferThroughput = 400;
|
||||
export const PartitionKeyProperty = "id";
|
||||
export const PartitionKeyProperty = "id";
|
||||
|
||||
@@ -3,4 +3,4 @@ export const blackforest = "blackforest";
|
||||
export const fairfax = "fairfax";
|
||||
export const mooncake = "mooncake";
|
||||
export const productionPortal = "prod";
|
||||
export const dev = "dev";
|
||||
export const dev = "dev";
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
export const nameMinLength = 3;
|
||||
export const nameMaxLength = 63;
|
||||
export const nameMaxLength = 63;
|
||||
|
||||
@@ -1 +1 @@
|
||||
export const defaultExperience = "defaultExperience";
|
||||
export const defaultExperience = "defaultExperience";
|
||||
|
||||
@@ -2,4 +2,4 @@ export const Terminal = "terminal";
|
||||
export const Server = "server";
|
||||
export const Token = "token";
|
||||
export const SubscriptionId = "subscriptionId";
|
||||
export const TerminalEndpoint = "terminalEndpoint";
|
||||
export const TerminalEndpoint = "terminalEndpoint";
|
||||
|
||||
@@ -2,4 +2,4 @@ export const extendUrl = "https://trycosmosdb.azure.com/api/resource/extendporta
|
||||
export const deleteUrl = "https://trycosmosdb.azure.com/api/resource/deleteportal?userId={0}";
|
||||
export const collectionsPerAccount = 3;
|
||||
export const maxRU = 5000;
|
||||
export const defaultRU = 3000;
|
||||
export const defaultRU = 3000;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const feedbackEmail = "https://aka.ms/cosmosdbfeedback?subject=Cosmos%20DB%20Data%20Explorer%20Feedback";
|
||||
export const autoscaleMigration = "https://aka.ms/cosmos-autoscale-migration";
|
||||
export const freeTierInformation = "https://aka.ms/cosmos-free-tier";
|
||||
export const cosmosPricing = "https://aka.ms/azure-cosmos-db-pricing";
|
||||
export const cosmosPricing = "https://aka.ms/azure-cosmos-db-pricing";
|
||||
|
||||
@@ -1,47 +1,76 @@
|
||||
import * as AfecFeatures from './AfecFeatures';
|
||||
import * as AnalyticalStorageTtl from './AnalyticalStorageTtl';
|
||||
import * as ApiEndpoints from './ApiEndpoints';
|
||||
import * as ApiType from './ApiType';
|
||||
import * as Areas from './Areas';
|
||||
import * as ArmApiVersions from './ArmApiVersions';
|
||||
import * as ArmResourceTypes from './ArmResourceTypes';
|
||||
import * as BackendDefaults from './BackendDefaults';
|
||||
import * as CapabilityNames from './CapabilityNames';
|
||||
import * as CassandraBackend from './CassandraBackend';
|
||||
import * as ClientDefaults from './ClientDefaults';
|
||||
import * as CodeOfConductEndpoints from './CodeOfConductEndpoints';
|
||||
import * as ConfigurationOverridesValues from './ConfigurationOverridesValues';
|
||||
import * as CorrelationBackend from './CorrelationBackend';
|
||||
import * as DocumentsGridMetrics from './DocumentsGridMetrics';
|
||||
import * as EndpointsRegex from './EndpointsRegex';
|
||||
import * as Flights from './Flights';
|
||||
import * as HashRoutePrefixes from './HashRoutePrefixes';
|
||||
import * as HttpHeaders from './HttpHeaders';
|
||||
import * as HttpStatusCodes from './HttpStatusCodes';
|
||||
import * as KeyCodes from './KeyCodes';
|
||||
import * as MongoDBAccounts from './MongoDBAccounts';
|
||||
import * as NormalizedEventKey from './NormalizedEventKey';
|
||||
import * as Notebook from './Notebook';
|
||||
import * as OfferVersions from './OfferVersions';
|
||||
import * as Queries from './Queries';
|
||||
import * as SavedQueries from './SavedQueries';
|
||||
import * as ServerIds from './ServerIds';
|
||||
import * as SparkLibrary from './SparkLibrary';
|
||||
import * as TagNames from './TagNames';
|
||||
import * as TerminalQueryParams from './TerminalQueryParams';
|
||||
import * as TryCosmosExperience from './TryCosmosExperience';
|
||||
import * as Urls from './Urls';
|
||||
import * as AfecFeatures from "./AfecFeatures";
|
||||
import * as AnalyticalStorageTtl from "./AnalyticalStorageTtl";
|
||||
import * as ApiEndpoints from "./ApiEndpoints";
|
||||
import * as ApiType from "./ApiType";
|
||||
import * as Areas from "./Areas";
|
||||
import * as ArmApiVersions from "./ArmApiVersions";
|
||||
import * as ArmResourceTypes from "./ArmResourceTypes";
|
||||
import * as BackendDefaults from "./BackendDefaults";
|
||||
import * as CapabilityNames from "./CapabilityNames";
|
||||
import * as CassandraBackend from "./CassandraBackend";
|
||||
import * as ClientDefaults from "./ClientDefaults";
|
||||
import * as CodeOfConductEndpoints from "./CodeOfConductEndpoints";
|
||||
import * as ConfigurationOverridesValues from "./ConfigurationOverridesValues";
|
||||
import * as CorrelationBackend from "./CorrelationBackend";
|
||||
import * as DocumentsGridMetrics from "./DocumentsGridMetrics";
|
||||
import * as EndpointsRegex from "./EndpointsRegex";
|
||||
import * as Flights from "./Flights";
|
||||
import * as HashRoutePrefixes from "./HashRoutePrefixes";
|
||||
import * as HttpHeaders from "./HttpHeaders";
|
||||
import * as HttpStatusCodes from "./HttpStatusCodes";
|
||||
import * as KeyCodes from "./KeyCodes";
|
||||
import * as MongoDBAccounts from "./MongoDBAccounts";
|
||||
import * as NormalizedEventKey from "./NormalizedEventKey";
|
||||
import * as Notebook from "./Notebook";
|
||||
import * as OfferVersions from "./OfferVersions";
|
||||
import * as Queries from "./Queries";
|
||||
import * as SavedQueries from "./SavedQueries";
|
||||
import * as ServerIds from "./ServerIds";
|
||||
import * as SparkLibrary from "./SparkLibrary";
|
||||
import * as TagNames from "./TagNames";
|
||||
import * as TerminalQueryParams from "./TerminalQueryParams";
|
||||
import * as TryCosmosExperience from "./TryCosmosExperience";
|
||||
import * as Urls from "./Urls";
|
||||
|
||||
const StyleConstants = require("less-vars-loader!../../less/Common/Constants.less");
|
||||
|
||||
export {
|
||||
StyleConstants,
|
||||
SparkLibrary, ConfigurationOverridesValues, OfferVersions, AnalyticalStorageTtl, Notebook, TryCosmosExperience, NormalizedEventKey, KeyCodes,
|
||||
HashRoutePrefixes, Urls, HttpStatusCodes, ApiType, HttpHeaders, Areas,
|
||||
DocumentsGridMetrics, SavedQueries, Queries, CassandraBackend, MongoDBAccounts, TagNames, AfecFeatures, Flights, CorrelationBackend, CapabilityNames, ClientDefaults, BackendDefaults, ArmResourceTypes, ArmApiVersions, TerminalQueryParams, CodeOfConductEndpoints, ApiEndpoints, EndpointsRegex, ServerIds
|
||||
SparkLibrary,
|
||||
ConfigurationOverridesValues,
|
||||
OfferVersions,
|
||||
AnalyticalStorageTtl,
|
||||
Notebook,
|
||||
TryCosmosExperience,
|
||||
NormalizedEventKey,
|
||||
KeyCodes,
|
||||
HashRoutePrefixes,
|
||||
Urls,
|
||||
HttpStatusCodes,
|
||||
ApiType,
|
||||
HttpHeaders,
|
||||
Areas,
|
||||
DocumentsGridMetrics,
|
||||
SavedQueries,
|
||||
Queries,
|
||||
CassandraBackend,
|
||||
MongoDBAccounts,
|
||||
TagNames,
|
||||
AfecFeatures,
|
||||
Flights,
|
||||
CorrelationBackend,
|
||||
CapabilityNames,
|
||||
ClientDefaults,
|
||||
BackendDefaults,
|
||||
ArmResourceTypes,
|
||||
ArmApiVersions,
|
||||
TerminalQueryParams,
|
||||
CodeOfConductEndpoints,
|
||||
ApiEndpoints,
|
||||
EndpointsRegex,
|
||||
ServerIds,
|
||||
};
|
||||
|
||||
|
||||
export enum ConflictOperationType {
|
||||
Replace = "replace",
|
||||
Create = "create",
|
||||
@@ -54,7 +83,6 @@ export const EmulatorMasterKey =
|
||||
|
||||
// A variable @MyVariable defined in Constants.less is accessible as StyleConstants.MyVariable
|
||||
|
||||
|
||||
export enum AccountKind {
|
||||
DocumentDB = "DocumentDB",
|
||||
MongoDB = "MongoDB",
|
||||
|
||||
Reference in New Issue
Block a user