|
| 1 | +// TODO: does it make sense to have all this stuff? Don't we just need enough for the top-level API, ie. the globals? |
| 2 | +import AggregationCursor from './aggregation-cursor'; |
| 3 | +import RunCommandCursor from './run-command-cursor'; |
| 4 | +export { Collection } from './collection'; |
| 5 | +import Cursor from './cursor'; |
| 6 | +import Database, { CollectionNamesWithTypes } from './database'; |
| 7 | +import Explainable from './explainable'; |
| 8 | +import ExplainableCursor from './explainable-cursor'; |
| 9 | +import Help, { HelpProperties } from './help'; |
| 10 | +export { |
| 11 | + ShellInstanceState, |
| 12 | + EvaluationListener, |
| 13 | + ShellCliOptions, |
| 14 | + OnLoadResult, |
| 15 | + ShellPlugin, |
| 16 | + AutocompleteParameters, |
| 17 | +} from './shell-instance-state'; |
| 18 | +export type { ShellBson } from './shell-bson'; |
| 19 | +import Shard from './shard'; |
| 20 | +import ReplicaSet from './replica-set'; |
| 21 | +import ShellApi from './shell-api'; |
| 22 | +export { |
| 23 | + BulkWriteResult, |
| 24 | + CommandResult, |
| 25 | + CursorIterationResult, |
| 26 | + DeleteResult, |
| 27 | + InsertManyResult, |
| 28 | + InsertOneResult, |
| 29 | + UpdateResult, |
| 30 | +} from './result'; |
| 31 | +import Mongo from './mongo'; |
| 32 | +export { |
| 33 | + signatures, |
| 34 | + ShellResult, |
| 35 | + toShellResult, |
| 36 | + getShellApiType, |
| 37 | + TypeSignature, |
| 38 | + Namespace, |
| 39 | +} from './decorators'; |
| 40 | +import { Topologies, ServerVersions } from './enums'; |
| 41 | +import { InterruptFlag } from './interruptor'; |
| 42 | +export type { |
| 43 | + GenericCollectionSchema, |
| 44 | + GenericDatabaseSchema, |
| 45 | + GenericServerSideSchema, |
| 46 | + StringKey, |
| 47 | + FindAndModifyMethodShellOptions, |
| 48 | + FindAndModifyShellOptions, |
| 49 | + RemoveShellOptions, |
| 50 | +} from './helpers'; |
| 51 | +export type { Streams } from './streams'; |
| 52 | +export type { StreamProcessor } from './stream-processor'; |
| 53 | + |
| 54 | +export { |
| 55 | + AggregationCursor, |
| 56 | + RunCommandCursor, |
| 57 | + CollectionNamesWithTypes, |
| 58 | + Cursor, |
| 59 | + Database, |
| 60 | + Explainable, |
| 61 | + ExplainableCursor, |
| 62 | + Help, |
| 63 | + HelpProperties, |
| 64 | + Mongo, |
| 65 | + Shard, |
| 66 | + ReplicaSet, |
| 67 | + ShellApi, |
| 68 | + ServerVersions, |
| 69 | + Topologies, |
| 70 | + InterruptFlag, |
| 71 | +}; |
| 72 | + |
| 73 | +// TODO: do we really want all these? |
| 74 | + |
| 75 | +/* |
| 76 | +export { AggregateOrFindCursor } from './aggregate-or-find-cursor'; |
| 77 | +export { |
| 78 | + ServiceProviderFindCursor, |
| 79 | + ServiceProviderAggregationCursor, |
| 80 | + ReadPreferenceLike, |
| 81 | + ReadConcernLevel, |
| 82 | + TagSet, |
| 83 | + CollationOptions, |
| 84 | + HedgeOptions, |
| 85 | + ExplainVerbosityLike, |
| 86 | + FindOptions, |
| 87 | + CountOptions, |
| 88 | + DistinctOptions, |
| 89 | + FindOneAndDeleteOptions, |
| 90 | + FindOneAndReplaceOptions, |
| 91 | + FindOneAndUpdateOptions, |
| 92 | + UpdateOptions, |
| 93 | + CommandOperationOptions, |
| 94 | + AggregateOptions |
| 95 | +} from '@mongosh/service-provider-core'; |
| 96 | +export { DatabaseImpl } from './database'; |
| 97 | +export { CollectionImpl } from './collection'; |
| 98 | +export { ShellResultSourceInformation, ShellCommandCompleter, Signatures, ShellApiWithMongoClass } from './decorators'; |
| 99 | +export { MapReduceShellOptions } from './helpers'; |
| 100 | +
|
| 101 | +// and many more |
| 102 | +*/ |
0 commit comments