@@ -73,6 +73,20 @@ export {
73
73
GridFSBucket
74
74
} ;
75
75
76
+ // enums
77
+ export { ProfilingLevel } from './operations/set_profiling_level' ;
78
+ export { ServerType , TopologyType } from './sdam/common' ;
79
+ export { LoggerLevel } from './logger' ;
80
+ export { AutoEncryptionLoggerLevel } from './deps' ;
81
+ export { BatchType } from './bulk/common' ;
82
+ export { AuthMechanism } from './cmap/auth/defaultAuthProviders' ;
83
+ export { CURSOR_FLAGS } from './cursor/abstract_cursor' ;
84
+ export { Compressor } from './cmap/wire_protocol/compression' ;
85
+ export { ExplainVerbosity } from './explain' ;
86
+ export { ReadConcernLevel } from './read_concern' ;
87
+ export { ReadPreferenceMode } from './read_preference' ;
88
+
89
+ // type only exports below, these are removed from emitted JS
76
90
export type { AdminPrivate } from './admin' ;
77
91
export type { Instrumentation } from './apm' ;
78
92
export type { Document , BSONSerializeOptions } from './bson' ;
@@ -99,7 +113,7 @@ export type {
99
113
OperationTime ,
100
114
ResumeOptions
101
115
} from './change_stream' ;
102
- export type { AuthMechanism , AuthMechanismId } from './cmap/auth/defaultAuthProviders' ;
116
+ export type { AuthMechanismId } from './cmap/auth/defaultAuthProviders' ;
103
117
export type { MongoCredentials , MongoCredentialsOptions } from './cmap/auth/mongo_credentials' ;
104
118
export type {
105
119
WriteProtocolMessageType ,
@@ -132,20 +146,19 @@ export type {
132
146
MessageStreamOptions
133
147
} from './cmap/message_stream' ;
134
148
export type { StreamDescription , StreamDescriptionOptions } from './cmap/stream_description' ;
135
- export type { CompressorName , Compressor } from './cmap/wire_protocol/compression' ;
149
+ export type { CompressorName } from './cmap/wire_protocol/compression' ;
136
150
export type { CollectionPrivate , CollectionOptions } from './collection' ;
137
151
export type { AggregationCursorOptions } from './cursor/aggregation_cursor' ;
138
152
export type {
139
153
CursorCloseOptions ,
140
154
CursorStreamOptions ,
141
155
AbstractCursorOptions ,
142
- CURSOR_FLAGS ,
143
156
CursorFlag
144
157
} from './cursor/abstract_cursor' ;
145
158
export type { DbPrivate , DbOptions } from './db' ;
146
- export type { AutoEncryptionOptions , AutoEncryptionLoggerLevels , AutoEncrypter } from './deps' ;
159
+ export type { AutoEncryptionOptions , AutoEncryptionLoggerLevelId , AutoEncrypter } from './deps' ;
147
160
export type { AnyError , ErrorDescription } from './error' ;
148
- export type { Explain , ExplainOptions , ExplainVerbosity , ExplainVerbosityLike } from './explain' ;
161
+ export type { Explain , ExplainOptions , ExplainVerbosityLike } from './explain' ;
149
162
export type {
150
163
GridFSBucketReadStream ,
151
164
GridFSBucketReadStreamOptions ,
@@ -159,14 +172,12 @@ export type {
159
172
TFileId ,
160
173
GridFSBucketWriteStream
161
174
} from './gridfs-stream/upload' ;
162
- export type { LoggerOptions , LoggerFunction , LoggerLevel } from './logger' ;
175
+ export type { LoggerOptions , LoggerFunction , LoggerLevelId } from './logger' ;
163
176
export type {
164
177
MongoClientPrivate ,
165
178
MongoClientOptions ,
166
179
WithSessionCallback ,
167
180
PkFactory ,
168
- LogLevel ,
169
- LogLevelId ,
170
181
Auth ,
171
182
DriverInfo ,
172
183
MongoOptions ,
@@ -221,7 +232,7 @@ export type { ProfilingLevelOptions } from './operations/profiling_level';
221
232
export type { RemoveUserOptions } from './operations/remove_user' ;
222
233
export type { RenameOptions } from './operations/rename' ;
223
234
export type { RunCommandOptions } from './operations/run_command' ;
224
- export type { ProfilingLevel , SetProfilingLevelOptions } from './operations/set_profiling_level' ;
235
+ export type { ProfilingLevelId , SetProfilingLevelOptions } from './operations/set_profiling_level' ;
225
236
export type { CollStatsOptions , DbStatsOptions } from './operations/stats' ;
226
237
export type {
227
238
UpdateResult ,
@@ -230,22 +241,16 @@ export type {
230
241
UpdateStatement
231
242
} from './operations/update' ;
232
243
export type { ValidateCollectionOptions } from './operations/validate_collection' ;
233
- export type {
234
- ReadConcern ,
235
- ReadConcernLike ,
236
- ReadConcernLevel ,
237
- ReadConcernLevelId
238
- } from './read_concern' ;
244
+ export type { ReadConcern , ReadConcernLike , ReadConcernLevelId } from './read_concern' ;
239
245
export type {
240
246
ReadPreferenceLike ,
241
247
ReadPreferenceModeId ,
242
- ReadPreferenceMode ,
243
248
ReadPreferenceOptions ,
244
249
ReadPreferenceLikeOptions ,
245
250
ReadPreferenceFromOptions ,
246
251
HedgeOptions
247
252
} from './read_preference' ;
248
- export type { ClusterTime , ServerType , TimerQueue , TopologyType } from './sdam/common' ;
253
+ export type { ClusterTime , ServerTypeId , TimerQueue , TopologyTypeId } from './sdam/common' ;
249
254
export type { TopologyDescriptionChangedEvent } from './sdam/events' ;
250
255
export type {
251
256
Monitor ,
@@ -282,7 +287,7 @@ export type {
282
287
ServerSessionId ,
283
288
WithTransactionCallback
284
289
} from './sessions' ;
285
- export type { TransactionOptions , Transaction , TxnState } from './transactions' ;
290
+ export type { TransactionOptions , Transaction , TxnState , TxnStateId } from './transactions' ;
286
291
export type {
287
292
Callback ,
288
293
ClientMetadata ,
@@ -298,7 +303,6 @@ export type { InternalAbstractCursorOptions } from './cursor/abstract_cursor';
298
303
export type {
299
304
BulkOperationBase ,
300
305
BulkOperationPrivate ,
301
- BatchType ,
302
306
BatchTypeId ,
303
307
FindOperators ,
304
308
Batch
0 commit comments