123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- import { Admin } from './admin';
- import { OrderedBulkOperation } from './bulk/ordered';
- import { UnorderedBulkOperation } from './bulk/unordered';
- import { ChangeStream } from './change_stream';
- import { Collection } from './collection';
- import { AbstractCursor } from './cursor/abstract_cursor';
- import { AggregationCursor } from './cursor/aggregation_cursor';
- import { FindCursor } from './cursor/find_cursor';
- import { ListCollectionsCursor } from './cursor/list_collections_cursor';
- import { ListIndexesCursor } from './cursor/list_indexes_cursor';
- import type { RunCommandCursor } from './cursor/run_command_cursor';
- import { Db } from './db';
- import { GridFSBucket } from './gridfs';
- import { GridFSBucketReadStream } from './gridfs/download';
- import { GridFSBucketWriteStream } from './gridfs/upload';
- import { MongoClient } from './mongo_client';
- import { CancellationToken } from './mongo_types';
- import { ClientSession } from './sessions';
- /** @public */
- export { BSON } from './bson';
- export {
- Binary,
- BSONRegExp,
- BSONSymbol,
- BSONType,
- Code,
- DBRef,
- Decimal128,
- Double,
- Int32,
- Long,
- MaxKey,
- MinKey,
- ObjectId,
- Timestamp
- } from './bson';
- export { AnyBulkWriteOperation, BulkWriteOptions, MongoBulkWriteError } from './bulk/common';
- export { ChangeStreamCursor } from './cursor/change_stream_cursor';
- export {
- MongoAPIError,
- MongoAWSError,
- MongoAzureError,
- MongoBatchReExecutionError,
- MongoChangeStreamError,
- MongoCompatibilityError,
- MongoCursorExhaustedError,
- MongoCursorInUseError,
- MongoDecompressionError,
- MongoDriverError,
- MongoError,
- MongoExpiredSessionError,
- MongoGridFSChunkError,
- MongoGridFSStreamError,
- MongoInvalidArgumentError,
- MongoKerberosError,
- MongoMissingCredentialsError,
- MongoMissingDependencyError,
- MongoNetworkError,
- MongoNetworkTimeoutError,
- MongoNotConnectedError,
- MongoParseError,
- MongoRuntimeError,
- MongoServerClosedError,
- MongoServerError,
- MongoServerSelectionError,
- MongoSystemError,
- MongoTailableCursorError,
- MongoTopologyClosedError,
- MongoTransactionError,
- MongoUnexpectedServerResponseError,
- MongoWriteConcernError
- } from './error';
- export {
- AbstractCursor,
- // Actual driver classes exported
- Admin,
- AggregationCursor,
- CancellationToken,
- ChangeStream,
- ClientSession,
- Collection,
- Db,
- FindCursor,
- GridFSBucket,
- GridFSBucketReadStream,
- GridFSBucketWriteStream,
- ListCollectionsCursor,
- ListIndexesCursor,
- MongoClient,
- OrderedBulkOperation,
- RunCommandCursor,
- UnorderedBulkOperation
- };
- // enums
- export { BatchType } from './bulk/common';
- export { GSSAPICanonicalizationValue } from './cmap/auth/gssapi';
- export { AuthMechanism } from './cmap/auth/providers';
- export { Compressor } from './cmap/wire_protocol/compression';
- export { CURSOR_FLAGS } from './cursor/abstract_cursor';
- export { AutoEncryptionLoggerLevel } from './deps';
- export { MongoErrorLabel } from './error';
- export { ExplainVerbosity } from './explain';
- export { ServerApiVersion } from './mongo_client';
- export { ReturnDocument } from './operations/find_and_modify';
- export { ProfilingLevel } from './operations/set_profiling_level';
- export { ReadConcernLevel } from './read_concern';
- export { ReadPreferenceMode } from './read_preference';
- export { ServerType, TopologyType } from './sdam/common';
- // Helper classes
- export { ReadConcern } from './read_concern';
- export { ReadPreference } from './read_preference';
- export { WriteConcern } from './write_concern';
- // events
- export {
- CommandFailedEvent,
- CommandStartedEvent,
- CommandSucceededEvent
- } from './cmap/command_monitoring_events';
- export {
- ConnectionCheckedInEvent,
- ConnectionCheckedOutEvent,
- ConnectionCheckOutFailedEvent,
- ConnectionCheckOutStartedEvent,
- ConnectionClosedEvent,
- ConnectionCreatedEvent,
- ConnectionPoolClearedEvent,
- ConnectionPoolClosedEvent,
- ConnectionPoolCreatedEvent,
- ConnectionPoolMonitoringEvent,
- ConnectionPoolReadyEvent,
- ConnectionReadyEvent
- } from './cmap/connection_pool_events';
- export {
- ServerClosedEvent,
- ServerDescriptionChangedEvent,
- ServerHeartbeatFailedEvent,
- ServerHeartbeatStartedEvent,
- ServerHeartbeatSucceededEvent,
- ServerOpeningEvent,
- TopologyClosedEvent,
- TopologyDescriptionChangedEvent,
- TopologyOpeningEvent
- } from './sdam/events';
- export { SrvPollingEvent } from './sdam/srv_polling';
- // type only exports below, these are removed from emitted JS
- export type { AdminPrivate } from './admin';
- export type { BSONSerializeOptions, Document } from './bson';
- export type { deserialize, serialize } from './bson';
- export type {
- BulkResult,
- BulkWriteOperationError,
- BulkWriteResult,
- DeleteManyModel,
- DeleteOneModel,
- InsertOneModel,
- ReplaceOneModel,
- UpdateManyModel,
- UpdateOneModel,
- WriteConcernError,
- WriteError
- } from './bulk/common';
- export type {
- Batch,
- BulkOperationBase,
- BulkOperationPrivate,
- FindOperators,
- WriteConcernErrorData
- } from './bulk/common';
- export type {
- ChangeStreamCollModDocument,
- ChangeStreamCreateDocument,
- ChangeStreamCreateIndexDocument,
- ChangeStreamDeleteDocument,
- ChangeStreamDocument,
- ChangeStreamDocumentCollectionUUID,
- ChangeStreamDocumentCommon,
- ChangeStreamDocumentKey,
- ChangeStreamDocumentOperationDescription,
- ChangeStreamDropDatabaseDocument,
- ChangeStreamDropDocument,
- ChangeStreamDropIndexDocument,
- ChangeStreamEvents,
- ChangeStreamInsertDocument,
- ChangeStreamInvalidateDocument,
- ChangeStreamNameSpace,
- ChangeStreamOptions,
- ChangeStreamRefineCollectionShardKeyDocument,
- ChangeStreamRenameDocument,
- ChangeStreamReplaceDocument,
- ChangeStreamReshardCollectionDocument,
- ChangeStreamShardCollectionDocument,
- ChangeStreamSplitEvent,
- ChangeStreamUpdateDocument,
- OperationTime,
- ResumeOptions,
- ResumeToken,
- UpdateDescription
- } from './change_stream';
- export type { AuthContext } from './cmap/auth/auth_provider';
- export type {
- AuthMechanismProperties,
- MongoCredentials,
- MongoCredentialsOptions
- } from './cmap/auth/mongo_credentials';
- export type {
- IdPServerInfo,
- IdPServerResponse,
- OIDCCallbackContext,
- OIDCRefreshFunction,
- OIDCRequestFunction
- } from './cmap/auth/mongodb_oidc';
- export type {
- BinMsg,
- MessageHeader,
- Msg,
- OpMsgOptions,
- OpQueryOptions,
- OpResponseOptions,
- Query,
- Response,
- WriteProtocolMessageType
- } from './cmap/commands';
- export type { LEGAL_TCP_SOCKET_OPTIONS, LEGAL_TLS_SOCKET_OPTIONS, Stream } from './cmap/connect';
- export type {
- CommandOptions,
- Connection,
- ConnectionEvents,
- ConnectionOptions,
- DestroyOptions,
- ProxyOptions
- } from './cmap/connection';
- export type {
- CloseOptions,
- ConnectionPool,
- ConnectionPoolEvents,
- ConnectionPoolOptions,
- PoolState,
- WaitQueueMember,
- WithConnectionCallback
- } from './cmap/connection_pool';
- export type { ClientMetadata, ClientMetadataOptions } from './cmap/handshake/client_metadata';
- export type {
- MessageStream,
- MessageStreamOptions,
- OperationDescription
- } from './cmap/message_stream';
- export type { ConnectionPoolMetrics } from './cmap/metrics';
- export type { StreamDescription, StreamDescriptionOptions } from './cmap/stream_description';
- export type { CompressorName } from './cmap/wire_protocol/compression';
- export type { CollectionOptions, CollectionPrivate, ModifyResult } from './collection';
- export type {
- CONNECTION_CHECK_OUT_FAILED,
- CONNECTION_CHECK_OUT_STARTED,
- CONNECTION_CHECKED_IN,
- CONNECTION_CHECKED_OUT,
- CONNECTION_CLOSED,
- CONNECTION_CREATED,
- CONNECTION_POOL_CLEARED,
- CONNECTION_POOL_CLOSED,
- CONNECTION_POOL_CREATED,
- CONNECTION_POOL_READY,
- CONNECTION_READY,
- MONGO_CLIENT_EVENTS
- } from './constants';
- export type {
- AbstractCursorEvents,
- AbstractCursorOptions,
- CursorFlag,
- CursorStreamOptions
- } from './cursor/abstract_cursor';
- export type { InternalAbstractCursorOptions } from './cursor/abstract_cursor';
- export type { AggregationCursorOptions } from './cursor/aggregation_cursor';
- export type {
- ChangeStreamAggregateRawResult,
- ChangeStreamCursorOptions
- } from './cursor/change_stream_cursor';
- export type {
- ListSearchIndexesCursor,
- ListSearchIndexesOptions
- } from './cursor/list_search_indexes_cursor';
- export type { RunCursorCommandOptions } from './cursor/run_command_cursor';
- export type { DbOptions, DbPrivate } from './db';
- export type { AutoEncrypter, AutoEncryptionOptions, AutoEncryptionTlsOptions } from './deps';
- export type { Encrypter, EncrypterOptions } from './encrypter';
- export type { AnyError, ErrorDescription, MongoNetworkErrorOptions } from './error';
- export type { Explain, ExplainOptions, ExplainVerbosityLike } from './explain';
- export type {
- GridFSBucketReadStreamOptions,
- GridFSBucketReadStreamOptionsWithRevision,
- GridFSBucketReadStreamPrivate,
- GridFSFile
- } from './gridfs/download';
- export type { GridFSBucketEvents, GridFSBucketOptions, GridFSBucketPrivate } from './gridfs/index';
- export type { GridFSBucketWriteStreamOptions, GridFSChunk } from './gridfs/upload';
- export type {
- Auth,
- DriverInfo,
- MongoClientEvents,
- MongoClientOptions,
- MongoClientPrivate,
- MongoOptions,
- PkFactory,
- ServerApi,
- SupportedNodeConnectionOptions,
- SupportedSocketOptions,
- SupportedTLSConnectionOptions,
- SupportedTLSSocketOptions,
- WithSessionCallback
- } from './mongo_client';
- export type {
- Log,
- LogConvertible,
- Loggable,
- LoggableEvent,
- MongoDBLogWritable,
- MongoLoggableComponent,
- MongoLogger,
- MongoLoggerEnvOptions,
- MongoLoggerMongoClientOptions,
- MongoLoggerOptions,
- SeverityLevel
- } from './mongo_logger';
- export type {
- CommonEvents,
- EventsDescription,
- GenericListener,
- TypedEventEmitter
- } from './mongo_types';
- export type {
- AcceptedFields,
- AddToSetOperators,
- AlternativeType,
- ArrayElement,
- ArrayOperator,
- BitwiseFilter,
- BSONTypeAlias,
- Condition,
- EnhancedOmit,
- Filter,
- FilterOperations,
- FilterOperators,
- Flatten,
- InferIdType,
- IntegerType,
- IsAny,
- Join,
- KeysOfAType,
- KeysOfOtherType,
- MatchKeysAndValues,
- NestedPaths,
- NestedPathsOfType,
- NonObjectIdLikeDocument,
- NotAcceptedFields,
- NumericType,
- OneOrMore,
- OnlyFieldsOfType,
- OptionalId,
- OptionalUnlessRequiredId,
- PropertyType,
- PullAllOperator,
- PullOperator,
- PushOperator,
- RegExpOrString,
- RootFilterOperators,
- SchemaMember,
- SetFields,
- StrictFilter,
- StrictMatchKeysAndValues,
- StrictUpdateFilter,
- UpdateFilter,
- WithId,
- WithoutId
- } from './mongo_types';
- export type { AddUserOptions, RoleSpecification } from './operations/add_user';
- export type {
- AggregateOperation,
- AggregateOptions,
- DB_AGGREGATE_COLLECTION
- } from './operations/aggregate';
- export type {
- CollationOptions,
- CommandOperation,
- CommandOperationOptions,
- OperationParent
- } from './operations/command';
- export type { CommandCallbackOperation } from './operations/command';
- export type { IndexInformationOptions } from './operations/common_functions';
- export type { CountOptions } from './operations/count';
- export type { CountDocumentsOptions } from './operations/count_documents';
- export type {
- ClusteredCollectionOptions,
- CreateCollectionOptions,
- TimeSeriesCollectionOptions
- } from './operations/create_collection';
- export type { DeleteOptions, DeleteResult, DeleteStatement } from './operations/delete';
- export type { DistinctOptions } from './operations/distinct';
- export type { DropCollectionOptions, DropDatabaseOptions } from './operations/drop';
- export type { EstimatedDocumentCountOptions } from './operations/estimated_document_count';
- export type { EvalOptions } from './operations/eval';
- export type { ExecutionResult } from './operations/execute_operation';
- export type { FindOptions } from './operations/find';
- export type {
- FindOneAndDeleteOptions,
- FindOneAndReplaceOptions,
- FindOneAndUpdateOptions
- } from './operations/find_and_modify';
- export type {
- CreateIndexesOptions,
- DropIndexesOptions,
- IndexDescription,
- IndexDirection,
- IndexSpecification,
- ListIndexesOptions
- } from './operations/indexes';
- export type { InsertManyResult, InsertOneOptions, InsertOneResult } from './operations/insert';
- export type { CollectionInfo, ListCollectionsOptions } from './operations/list_collections';
- export type { ListDatabasesOptions, ListDatabasesResult } from './operations/list_databases';
- export type {
- AbstractCallbackOperation,
- AbstractOperation,
- Hint,
- OperationOptions
- } from './operations/operation';
- export type { ProfilingLevelOptions } from './operations/profiling_level';
- export type { RemoveUserOptions } from './operations/remove_user';
- export type { RenameOptions } from './operations/rename';
- export type { RunCommandOptions } from './operations/run_command';
- export type { SearchIndexDescription } from './operations/search_indexes/create';
- export type { SetProfilingLevelOptions } from './operations/set_profiling_level';
- export type {
- CollStats,
- CollStatsOptions,
- DbStatsOptions,
- WiredTigerData
- } from './operations/stats';
- export type {
- ReplaceOptions,
- UpdateOptions,
- UpdateResult,
- UpdateStatement
- } from './operations/update';
- export type { ValidateCollectionOptions } from './operations/validate_collection';
- export type { ReadConcernLike } from './read_concern';
- export type {
- HedgeOptions,
- ReadPreferenceFromOptions,
- ReadPreferenceLike,
- ReadPreferenceLikeOptions,
- ReadPreferenceOptions
- } from './read_preference';
- export type { ClusterTime, TimerQueue } from './sdam/common';
- export type {
- Monitor,
- MonitorEvents,
- MonitorInterval,
- MonitorIntervalOptions,
- MonitorOptions,
- MonitorPrivate,
- RTTPinger,
- RTTPingerOptions
- } from './sdam/monitor';
- export type { Server, ServerEvents, ServerOptions, ServerPrivate } from './sdam/server';
- export type {
- ServerDescription,
- ServerDescriptionOptions,
- TagSet,
- TopologyVersion
- } from './sdam/server_description';
- export type { ServerSelector } from './sdam/server_selection';
- export type { SrvPoller, SrvPollerEvents, SrvPollerOptions } from './sdam/srv_polling';
- export type {
- ConnectOptions,
- SelectServerOptions,
- ServerCapabilities,
- ServerSelectionCallback,
- ServerSelectionRequest,
- Topology,
- TopologyEvents,
- TopologyOptions,
- TopologyPrivate
- } from './sdam/topology';
- export type { TopologyDescription, TopologyDescriptionOptions } from './sdam/topology_description';
- export type {
- ClientSessionEvents,
- ClientSessionOptions,
- EndSessionOptions,
- ServerSession,
- ServerSessionId,
- ServerSessionPool,
- WithTransactionCallback
- } from './sessions';
- export type { Sort, SortDirection, SortDirectionForCmd, SortForCmd } from './sort';
- export type { Transaction, TransactionOptions, TxnState } from './transactions';
- export type {
- BufferPool,
- Callback,
- EventEmitterWithState,
- HostAddress,
- List,
- MongoDBCollectionNamespace,
- MongoDBNamespace
- } from './utils';
- export type { W, WriteConcernOptions, WriteConcernSettings } from './write_concern';
|