@mongodb-js/compass-web 0.16.3 → 0.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connection-storage.d.ts +3 -27
- package/dist/connection-storage.d.ts.map +1 -1
- package/dist/index.js +20 -20
- package/package.json +32 -33
|
@@ -34,23 +34,6 @@ export type ClusterDescriptionWithDataProcessingRegion = ClusterDescription & {
|
|
|
34
34
|
regionalUrl: string;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
type ReplicaSetDeploymentItem = {
|
|
38
|
-
_id: string;
|
|
39
|
-
state: {
|
|
40
|
-
clusterId: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
type ShardingDeploymentItem = {
|
|
44
|
-
name: string;
|
|
45
|
-
state: {
|
|
46
|
-
clusterId: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
type Deployment = {
|
|
50
|
-
replicaSets?: ReplicaSetDeploymentItem[];
|
|
51
|
-
sharding?: ShardingDeploymentItem[];
|
|
52
|
-
};
|
|
53
|
-
export declare function buildConnectionInfoFromClusterDescription(driverProxyEndpoint: string, orgId: string, projectId: string, description: ClusterDescriptionWithDataProcessingRegion, deployment: Deployment, extraConnectionOptions?: Record<string, any>): ConnectionInfo;
|
|
54
37
|
/**
|
|
55
38
|
* @internal exported for testing purposes
|
|
56
39
|
*/
|
|
@@ -59,18 +42,12 @@ export declare class AtlasCloudConnectionStorage extends InMemoryConnectionStora
|
|
|
59
42
|
private orgId;
|
|
60
43
|
private projectId;
|
|
61
44
|
private logger;
|
|
62
|
-
private extraConnectionOptions?;
|
|
63
45
|
private loadAllPromise;
|
|
64
|
-
|
|
65
|
-
constructor(atlasService: AtlasService, orgId: string, projectId: string, logger: Logger, extraConnectionOptions?: Record<string, any> | undefined);
|
|
46
|
+
constructor(atlasService: AtlasService, orgId: string, projectId: string, logger: Logger);
|
|
66
47
|
load({ id }: {
|
|
67
48
|
id: string;
|
|
68
49
|
}): Promise<ConnectionInfo | undefined>;
|
|
69
|
-
private
|
|
70
|
-
/**
|
|
71
|
-
* TODO(COMPASS-9263): clean-up when new endpoint is fully rolled out
|
|
72
|
-
*/
|
|
73
|
-
private _loadAndNormalizeClusterDescriptionInfoV1;
|
|
50
|
+
private _loadAndNormalizeClusterDescriptionInfo;
|
|
74
51
|
loadAll(): Promise<ConnectionInfo[]>;
|
|
75
52
|
}
|
|
76
53
|
/**
|
|
@@ -78,9 +55,8 @@ export declare class AtlasCloudConnectionStorage extends InMemoryConnectionStora
|
|
|
78
55
|
* non-Atlas deployment
|
|
79
56
|
* @internal
|
|
80
57
|
*/
|
|
81
|
-
export declare const SandboxConnectionStorageProvider: ({ value,
|
|
58
|
+
export declare const SandboxConnectionStorageProvider: ({ value, children, }: {
|
|
82
59
|
value: ConnectionStorage | null;
|
|
83
|
-
extraConnectionOptions?: Record<string, any> | undefined;
|
|
84
60
|
children: React.ReactNode;
|
|
85
61
|
}) => React.JSX.Element;
|
|
86
62
|
export declare const AtlasCloudConnectionStorageProvider: ({ orgId, projectId, children, }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-storage.d.ts","sourceRoot":"","sources":["../src/connection-storage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EAEf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,yBAAyB,EAC1B,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"connection-storage.d.ts","sourceRoot":"","sources":["../src/connection-storage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAClD,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EAEf,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAEL,yBAAyB,EAC1B,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,EAAE,YAAY,EAAE,MA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