@mongosh/shell-api 3.16.0 → 3.16.1
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/api-extractor.json +1 -0
- package/lib/api-export.js +1 -1
- package/lib/api-processed.d.ts +16 -1
- package/lib/api-raw.d.ts +18 -1
- package/package.json +2 -2
package/lib/api-processed.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
|
|
3
3
|
import type { Agent } from 'https';
|
|
4
|
-
import type { AutocompletionContext } from '@mongodb-js/mongodb-ts-autocomplete';
|
|
5
4
|
import { Binary } from 'bson';
|
|
6
5
|
import { BSONRegExp } from 'bson';
|
|
7
6
|
import { BSONSymbol } from 'bson';
|
|
@@ -20,6 +19,7 @@ import { EJSONOptions } from 'bson';
|
|
|
20
19
|
import { EventEmitter } from 'events';
|
|
21
20
|
import type { IncomingMessage } from 'http';
|
|
22
21
|
import { Int32 } from 'bson';
|
|
22
|
+
import type { JSONSchema } from 'mongodb-schema';
|
|
23
23
|
import { Long } from 'bson';
|
|
24
24
|
import { MaxKey } from 'bson';
|
|
25
25
|
import { MinKey } from 'bson';
|
|
@@ -825,6 +825,16 @@ declare interface AutocompleteParameters {
|
|
|
825
825
|
getCollectionCompletionsForCurrentDb: (collName: string) => Promise<string[]>;
|
|
826
826
|
getDatabaseCompletions: (dbName: string) => Promise<string[]>;
|
|
827
827
|
}
|
|
828
|
+
declare interface AutocompletionContext {
|
|
829
|
+
currentDatabaseAndConnection(): {
|
|
830
|
+
connectionId: string;
|
|
831
|
+
databaseName: string;
|
|
832
|
+
} | undefined;
|
|
833
|
+
databasesForConnection(connectionId: string): Promise<string[]>;
|
|
834
|
+
collectionsForDatabase(connectionId: string, databaseName: string): Promise<string[]>;
|
|
835
|
+
schemaInformationForCollection(connectionId: string, databaseName: string, collectionName: string): Promise<JSONSchema>;
|
|
836
|
+
cacheOptions?: Partial<CacheOptions>;
|
|
837
|
+
}
|
|
828
838
|
|
|
829
839
|
/** @public */
|
|
830
840
|
declare const AutoEncryptionLoggerLevel: Readonly<{
|
|
@@ -1371,6 +1381,11 @@ declare class BulkWriteResult_2 extends ShellApiValueClass {
|
|
|
1371
1381
|
[index: number]: ObjectId;
|
|
1372
1382
|
});
|
|
1373
1383
|
}
|
|
1384
|
+
declare type CacheOptions = {
|
|
1385
|
+
databaseCollectionsTTL: number;
|
|
1386
|
+
collectionSchemaTTL: number;
|
|
1387
|
+
aggregationSchemaTTL: number;
|
|
1388
|
+
};
|
|
1374
1389
|
|
|
1375
1390
|
/** @public */
|
|
1376
1391
|
declare class CancellationToken extends TypedEventEmitter<{
|
package/lib/api-raw.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
|
|
3
3
|
import type { Agent } from 'https';
|
|
4
|
-
import type { AutocompletionContext } from '@mongodb-js/mongodb-ts-autocomplete';
|
|
5
4
|
import { Binary } from 'bson';
|
|
6
5
|
import { BSONRegExp } from 'bson';
|
|
7
6
|
import { BSONSymbol } from 'bson';
|
|
@@ -20,6 +19,7 @@ import { EJSONOptions } from 'bson';
|
|
|
20
19
|
import { EventEmitter } from 'events';
|
|
21
20
|
import type { IncomingMessage } from 'http';
|
|
22
21
|
import { Int32 } from 'bson';
|
|
22
|
+
import type { JSONSchema } from 'mongodb-schema';
|
|
23
23
|
import { Long } from 'bson';
|
|
24
24
|
import { MaxKey } from 'bson';
|
|
25
25
|
import { MinKey } from 'bson';
|
|
@@ -820,6 +820,17 @@ declare interface AutocompleteParameters {
|
|
|
820
820
|
getDatabaseCompletions: (dbName: string) => Promise<string[]>;
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
+
declare interface AutocompletionContext {
|
|
824
|
+
currentDatabaseAndConnection(): {
|
|
825
|
+
connectionId: string;
|
|
826
|
+
databaseName: string;
|
|
827
|
+
} | undefined;
|
|
828
|
+
databasesForConnection(connectionId: string): Promise<string[]>;
|
|
829
|
+
collectionsForDatabase(connectionId: string, databaseName: string): Promise<string[]>;
|
|
830
|
+
schemaInformationForCollection(connectionId: string, databaseName: string, collectionName: string): Promise<JSONSchema>;
|
|
831
|
+
cacheOptions?: Partial<CacheOptions>;
|
|
832
|
+
}
|
|
833
|
+
|
|
823
834
|
/** @public */
|
|
824
835
|
declare const AutoEncryptionLoggerLevel: Readonly<{
|
|
825
836
|
readonly FatalError: 0;
|
|
@@ -1323,6 +1334,12 @@ declare class BulkWriteResult_2 extends ShellApiValueClass {
|
|
|
1323
1334
|
});
|
|
1324
1335
|
}
|
|
1325
1336
|
|
|
1337
|
+
declare type CacheOptions = {
|
|
1338
|
+
databaseCollectionsTTL: number;
|
|
1339
|
+
collectionSchemaTTL: number;
|
|
1340
|
+
aggregationSchemaTTL: number;
|
|
1341
|
+
};
|
|
1342
|
+
|
|
1326
1343
|
/** @public */
|
|
1327
1344
|
declare class CancellationToken extends TypedEventEmitter<{
|
|
1328
1345
|
cancel(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/shell-api",
|
|
3
|
-
"version": "3.16.
|
|
3
|
+
"version": "3.16.1",
|
|
4
4
|
"description": "MongoDB Shell API Classes Package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"prettier": "^2.8.8",
|
|
76
76
|
"semver": "^7.5.3"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "d660036ab705b977d72e95f8daddbe587fa4466a"
|
|
79
79
|
}
|