mongodb-data-service 22.28.4 → 22.29.0
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/lib/connect-mongo-client.d.ts +0 -1
- package/lib/connect-mongo-client.d.ts.map +1 -1
- package/lib/connect-mongo-client.js +4 -6
- package/lib/connect-mongo-client.js.map +1 -1
- package/lib/connect.d.ts +0 -1
- package/lib/connect.d.ts.map +1 -1
- package/lib/connect.js +1 -1
- package/lib/connect.js.map +1 -1
- package/lib/connection-attempt.d.ts +0 -1
- package/lib/connection-attempt.d.ts.map +1 -1
- package/lib/connection-attempt.js +7 -7
- package/lib/connection-attempt.js.map +1 -1
- package/lib/csfle-collection-tracker.d.ts.map +1 -1
- package/lib/csfle-collection-tracker.js +6 -6
- package/lib/csfle-collection-tracker.js.map +1 -1
- package/lib/data-service.d.ts +0 -1
- package/lib/data-service.d.ts.map +1 -1
- package/lib/data-service.js +123 -120
- package/lib/data-service.js.map +1 -1
- package/lib/index-detail-helper.js +4 -5
- package/lib/index-detail-helper.js.map +1 -1
- package/lib/instance-detail-helper.js +11 -12
- package/lib/instance-detail-helper.js.map +1 -1
- package/lib/logger.d.ts +0 -1
- package/lib/logger.d.ts.map +1 -1
- package/lib/redact.js +2 -2
- package/lib/redact.js.map +1 -1
- package/lib/ssh-tunnel-helpers.js +2 -3
- package/lib/ssh-tunnel-helpers.js.map +1 -1
- package/package.json +14 -14
package/lib/data-service.js
CHANGED
|
@@ -23,10 +23,10 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn,
|
|
|
23
23
|
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
24
24
|
if (_ = accept(result.get)) descriptor.get = _;
|
|
25
25
|
if (_ = accept(result.set)) descriptor.set = _;
|
|
26
|
-
if (_ = accept(result.init)) initializers.
|
|
26
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
27
27
|
}
|
|
28
28
|
else if (_ = accept(result)) {
|
|
29
|
-
if (kind === "field") initializers.
|
|
29
|
+
if (kind === "field") initializers.unshift(_);
|
|
30
30
|
else descriptor[key] = _;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -114,7 +114,7 @@ function op(logId, pickLogAttrs = maybePickNs) {
|
|
|
114
114
|
};
|
|
115
115
|
const handleError = (error) => {
|
|
116
116
|
const err = translateErrorMessage(error);
|
|
117
|
-
this._logger.error((0, logger_1.mongoLogId)(
|
|
117
|
+
this._logger.error((0, logger_1.mongoLogId)(1_001_000_058), 'Failed to perform data service operation', {
|
|
118
118
|
op: opName,
|
|
119
119
|
message: err,
|
|
120
120
|
...(pickLogAttrs(args) ?? {}),
|
|
@@ -138,6 +138,7 @@ function op(logId, pickLogAttrs = maybePickNs) {
|
|
|
138
138
|
}
|
|
139
139
|
let DataServiceImpl = (() => {
|
|
140
140
|
var _a;
|
|
141
|
+
let _classSuper = logger_1.WithLogContext;
|
|
141
142
|
let _instanceExtraInitializers = [];
|
|
142
143
|
let _collectionStats_decorators;
|
|
143
144
|
let _collectionInfo_decorators;
|
|
@@ -186,10 +187,10 @@ let DataServiceImpl = (() => {
|
|
|
186
187
|
let _startStreamProcessor_decorators;
|
|
187
188
|
let _stopStreamProcessor_decorators;
|
|
188
189
|
let _dropStreamProcessor_decorators;
|
|
189
|
-
return _a = class DataServiceImpl extends
|
|
190
|
+
return _a = class DataServiceImpl extends _classSuper {
|
|
190
191
|
constructor(connectionOptions, logger, proxyOptions) {
|
|
191
192
|
super();
|
|
192
|
-
this._connectionOptions =
|
|
193
|
+
this._connectionOptions = __runInitializers(this, _instanceExtraInitializers);
|
|
193
194
|
this._isConnecting = false;
|
|
194
195
|
this._useCRUDClient = true;
|
|
195
196
|
this._reauthenticationHandlers = new Set();
|
|
@@ -249,7 +250,7 @@ let DataServiceImpl = (() => {
|
|
|
249
250
|
// `notifyDeviceFlow` is a function which cannot be serialized for inclusion
|
|
250
251
|
// in the shell, `signal` is an abortSignal, and `allowedFlows` is turned
|
|
251
252
|
// into a function by the connection code.
|
|
252
|
-
return (0, lodash_1.omit)(this._mongoClientConnectionOptions, 'options.oidc.notifyDeviceFlow', 'options.oidc.signal', 'options.oidc.allowedFlows', 'options.oidc.customHttpOptions
|
|
253
|
+
return (0, lodash_1.omit)(this._mongoClientConnectionOptions, 'options.oidc.notifyDeviceFlow', 'options.oidc.signal', 'options.oidc.allowedFlows', 'options.oidc.customFetch', 'options.oidc.customHttpOptions');
|
|
253
254
|
}
|
|
254
255
|
getConnectionOptions() {
|
|
255
256
|
return this._connectionOptions;
|
|
@@ -258,7 +259,7 @@ let DataServiceImpl = (() => {
|
|
|
258
259
|
return new mongodb_connection_string_url_1.default(this._connectionOptions.connectionString);
|
|
259
260
|
}
|
|
260
261
|
setCSFLEEnabled(enabled) {
|
|
261
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
262
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_117), 'Setting CSFLE mode', {
|
|
262
263
|
enabled,
|
|
263
264
|
});
|
|
264
265
|
this._useCRUDClient = enabled;
|
|
@@ -417,7 +418,7 @@ let DataServiceImpl = (() => {
|
|
|
417
418
|
// cases
|
|
418
419
|
//
|
|
419
420
|
// TODO: https://jira.mongodb.org/browse/COMPASS-5275
|
|
420
|
-
this._logger.warn((0, logger_1.mongoLogId)(
|
|
421
|
+
this._logger.warn((0, logger_1.mongoLogId)(1_001_000_099), 'Failed to run listCollections', { message: err.message });
|
|
421
422
|
return [];
|
|
422
423
|
}
|
|
423
424
|
}
|
|
@@ -486,7 +487,7 @@ let DataServiceImpl = (() => {
|
|
|
486
487
|
// and only avoid throwing in these cases
|
|
487
488
|
//
|
|
488
489
|
// TODO: https://jira.mongodb.org/browse/COMPASS-5275
|
|
489
|
-
this._logger.warn((0, logger_1.mongoLogId)(
|
|
490
|
+
this._logger.warn((0, logger_1.mongoLogId)(1_001_000_098), 'Failed to run listDatabases', { message: err.message });
|
|
490
491
|
return [];
|
|
491
492
|
}
|
|
492
493
|
};
|
|
@@ -535,7 +536,7 @@ let DataServiceImpl = (() => {
|
|
|
535
536
|
this._reauthenticationHandlers.add(handler);
|
|
536
537
|
}
|
|
537
538
|
async _requestReauthenticationFromUser() {
|
|
538
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
539
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_194), 'Requesting re-authentication from user');
|
|
539
540
|
let threw = true;
|
|
540
541
|
try {
|
|
541
542
|
for (const handler of this._reauthenticationHandlers)
|
|
@@ -543,7 +544,7 @@ let DataServiceImpl = (() => {
|
|
|
543
544
|
threw = false;
|
|
544
545
|
}
|
|
545
546
|
finally {
|
|
546
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
547
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_193), 'Completed re-authentication request', {
|
|
547
548
|
wantsReauth: !threw,
|
|
548
549
|
});
|
|
549
550
|
}
|
|
@@ -559,7 +560,7 @@ let DataServiceImpl = (() => {
|
|
|
559
560
|
}
|
|
560
561
|
(0, logger_1.debug)('connecting...');
|
|
561
562
|
this._isConnecting = true;
|
|
562
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
563
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_014), 'Connecting Started', {
|
|
563
564
|
connectionId: this._id,
|
|
564
565
|
url: (0, redact_1.redactConnectionString)(this._connectionOptions.connectionString),
|
|
565
566
|
csfle: this._csfleLogInformation(this._connectionOptions.fleOptions),
|
|
@@ -580,7 +581,7 @@ let DataServiceImpl = (() => {
|
|
|
580
581
|
isWritable: this.isWritable(),
|
|
581
582
|
isMongos: this.isMongos(),
|
|
582
583
|
};
|
|
583
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
584
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_015), 'Connecting Succeeded', attr);
|
|
584
585
|
(0, logger_1.debug)('connected!', attr);
|
|
585
586
|
state.oidcPlugin.logger.on('mongodb-oidc-plugin:state-updated', () => {
|
|
586
587
|
this._emitter.emit('connectionInfoSecretsChanged');
|
|
@@ -596,7 +597,7 @@ let DataServiceImpl = (() => {
|
|
|
596
597
|
this._csfleCollectionTracker = new csfle_collection_tracker_1.CSFLECollectionTrackerImpl(this, this._crudClient);
|
|
597
598
|
}
|
|
598
599
|
catch (error) {
|
|
599
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
600
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_359), 'Connecting Failed', {
|
|
600
601
|
connectionId: this._id,
|
|
601
602
|
error: error && typeof error === 'object' && 'message' in error
|
|
602
603
|
? error?.message
|
|
@@ -648,7 +649,7 @@ let DataServiceImpl = (() => {
|
|
|
648
649
|
return await coll.updateMany(filter, update, options);
|
|
649
650
|
}
|
|
650
651
|
async disconnect() {
|
|
651
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
652
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_016), 'Disconnecting');
|
|
652
653
|
try {
|
|
653
654
|
await Promise.all([
|
|
654
655
|
this._metadataClient
|
|
@@ -668,7 +669,7 @@ let DataServiceImpl = (() => {
|
|
|
668
669
|
}
|
|
669
670
|
finally {
|
|
670
671
|
this._cleanup();
|
|
671
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
672
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_017), 'Fully closed');
|
|
672
673
|
}
|
|
673
674
|
}
|
|
674
675
|
async dropCollection(ns) {
|
|
@@ -1028,7 +1029,7 @@ let DataServiceImpl = (() => {
|
|
|
1028
1029
|
let result;
|
|
1029
1030
|
const abort = async () => {
|
|
1030
1031
|
const logAbortError = (error) => {
|
|
1031
|
-
this._logger.warn((0, logger_1.mongoLogId)(
|
|
1032
|
+
this._logger.warn((0, logger_1.mongoLogId)(1_001_000_140), 'Attempting to kill the operation failed', { error: error.message });
|
|
1032
1033
|
};
|
|
1033
1034
|
await stop(session).catch(logAbortError);
|
|
1034
1035
|
await this._killSessions(session).catch(logAbortError);
|
|
@@ -1050,7 +1051,7 @@ let DataServiceImpl = (() => {
|
|
|
1050
1051
|
_setupListeners(client) {
|
|
1051
1052
|
if (client) {
|
|
1052
1053
|
client.on('serverDescriptionChanged', (evt) => {
|
|
1053
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
1054
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_018), 'Server description changed', {
|
|
1054
1055
|
address: evt.address,
|
|
1055
1056
|
error: evt.newDescription.error?.message ?? null,
|
|
1056
1057
|
previousType: evt.previousDescription.type,
|
|
@@ -1058,16 +1059,16 @@ let DataServiceImpl = (() => {
|
|
|
1058
1059
|
});
|
|
1059
1060
|
});
|
|
1060
1061
|
client.on('serverOpening', (evt) => {
|
|
1061
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
1062
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_019), 'Server opening', {
|
|
1062
1063
|
address: evt.address,
|
|
1063
1064
|
});
|
|
1064
1065
|
});
|
|
1065
1066
|
client.on('close', () => {
|
|
1066
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
1067
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_315), 'Client is closed');
|
|
1067
1068
|
this._emitter.emit('close');
|
|
1068
1069
|
});
|
|
1069
1070
|
client.on('serverClosed', (evt) => {
|
|
1070
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
1071
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_020), 'Server closed', {
|
|
1071
1072
|
address: evt.address,
|
|
1072
1073
|
});
|
|
1073
1074
|
});
|
|
@@ -1079,7 +1080,7 @@ let DataServiceImpl = (() => {
|
|
|
1079
1080
|
previousType: evt.previousDescription.type,
|
|
1080
1081
|
newType: evt.newDescription.type,
|
|
1081
1082
|
};
|
|
1082
|
-
this._logger.info((0, logger_1.mongoLogId)(
|
|
1083
|
+
this._logger.info((0, logger_1.mongoLogId)(1_001_000_021), 'Topology description changed', attr);
|
|
1083
1084
|
this._lastSeenTopology = evt.newDescription;
|
|
1084
1085
|
this._emitter.emit('topologyDescriptionChanged', evt);
|
|
1085
1086
|
});
|
|
@@ -1103,7 +1104,7 @@ let DataServiceImpl = (() => {
|
|
|
1103
1104
|
failure: null,
|
|
1104
1105
|
duration: evt.duration,
|
|
1105
1106
|
});
|
|
1106
|
-
this._logger.debug((0, logger_1.mongoLogId)(
|
|
1107
|
+
this._logger.debug((0, logger_1.mongoLogId)(1_001_000_022), 'Server heartbeat succeeded', {
|
|
1107
1108
|
connectionId: evt.connectionId,
|
|
1108
1109
|
duration: evt.duration,
|
|
1109
1110
|
});
|
|
@@ -1118,7 +1119,7 @@ let DataServiceImpl = (() => {
|
|
|
1118
1119
|
failure: evt.failure.message,
|
|
1119
1120
|
duration: evt.duration,
|
|
1120
1121
|
});
|
|
1121
|
-
this._logger.warn((0, logger_1.mongoLogId)(
|
|
1122
|
+
this._logger.warn((0, logger_1.mongoLogId)(1_001_000_023), 'Server heartbeat failed', {
|
|
1122
1123
|
connectionId: evt.connectionId,
|
|
1123
1124
|
duration: evt.duration,
|
|
1124
1125
|
failure: evt.failure.message,
|
|
@@ -1128,7 +1129,7 @@ let DataServiceImpl = (() => {
|
|
|
1128
1129
|
});
|
|
1129
1130
|
client.on('commandSucceeded', (evt) => {
|
|
1130
1131
|
const { address, connectionId, duration, commandName } = evt;
|
|
1131
|
-
this._logger.debug((0, logger_1.mongoLogId)(
|
|
1132
|
+
this._logger.debug((0, logger_1.mongoLogId)(1_001_000_029), 'Driver command succeeded', {
|
|
1132
1133
|
address,
|
|
1133
1134
|
serverConnectionId: connectionId,
|
|
1134
1135
|
duration,
|
|
@@ -1137,7 +1138,7 @@ let DataServiceImpl = (() => {
|
|
|
1137
1138
|
});
|
|
1138
1139
|
client.on('commandFailed', (evt) => {
|
|
1139
1140
|
const { address, connectionId, duration, commandName, failure } = evt;
|
|
1140
|
-
this._logger.debug((0, logger_1.mongoLogId)(
|
|
1141
|
+
this._logger.debug((0, logger_1.mongoLogId)(1_001_000_030), 'Driver command failed', {
|
|
1141
1142
|
address,
|
|
1142
1143
|
serverConnectionId: connectionId,
|
|
1143
1144
|
duration,
|
|
@@ -1419,92 +1420,93 @@ let DataServiceImpl = (() => {
|
|
|
1419
1420
|
}
|
|
1420
1421
|
},
|
|
1421
1422
|
(() => {
|
|
1422
|
-
|
|
1423
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
1424
|
+
_collectionStats_decorators = [op((0, logger_1.mongoLogId)(1_001_000_178), ([dbName, collName], result) => {
|
|
1423
1425
|
return { ns: `${dbName}.${collName}`, ...(result && { result }) };
|
|
1424
1426
|
})];
|
|
1425
|
-
_collectionInfo_decorators = [op((0, logger_1.mongoLogId)(
|
|
1426
|
-
_killOp_decorators = [op((0, logger_1.mongoLogId)(
|
|
1427
|
-
__connectionStatus_decorators = [op((0, logger_1.mongoLogId)(
|
|
1428
|
-
_listCollections_decorators = [op((0, logger_1.mongoLogId)(
|
|
1427
|
+
_collectionInfo_decorators = [op((0, logger_1.mongoLogId)(1_001_000_179))];
|
|
1428
|
+
_killOp_decorators = [op((0, logger_1.mongoLogId)(1_001_000_031))];
|
|
1429
|
+
__connectionStatus_decorators = [op((0, logger_1.mongoLogId)(1_001_000_100))];
|
|
1430
|
+
_listCollections_decorators = [op((0, logger_1.mongoLogId)(1_001_000_032), ([databaseName, , options], colls) => {
|
|
1429
1431
|
return {
|
|
1430
1432
|
db: databaseName,
|
|
1431
1433
|
nameOnly: options?.nameOnly ?? false,
|
|
1432
1434
|
...(colls && { collectionsCount: colls.length }),
|
|
1433
1435
|
};
|
|
1434
1436
|
})];
|
|
1435
|
-
_listDatabases_decorators = [op((0, logger_1.mongoLogId)(
|
|
1437
|
+
_listDatabases_decorators = [op((0, logger_1.mongoLogId)(1_001_000_033), ([options], dbs) => {
|
|
1436
1438
|
return {
|
|
1437
1439
|
nameOnly: options?.nameOnly ?? false,
|
|
1438
1440
|
...(dbs && { databasesCount: dbs.length }),
|
|
1439
1441
|
};
|
|
1440
1442
|
})];
|
|
1441
|
-
_estimatedCount_decorators = [op((0, logger_1.mongoLogId)(
|
|
1443
|
+
_estimatedCount_decorators = [op((0, logger_1.mongoLogId)(1_001_000_034), ([ns, options]) => {
|
|
1442
1444
|
return { ns, maxTimeMS: options?.maxTimeMS };
|
|
1443
1445
|
})];
|
|
1444
|
-
_count_decorators = [op((0, logger_1.mongoLogId)(
|
|
1445
|
-
_createCollection_decorators = [op((0, logger_1.mongoLogId)(
|
|
1446
|
+
_count_decorators = [op((0, logger_1.mongoLogId)(1_001_000_035))];
|
|
1447
|
+
_createCollection_decorators = [op((0, logger_1.mongoLogId)(1_001_000_036), ([ns, options], result) => {
|
|
1446
1448
|
return { ns, options, ...(result && { result }) };
|
|
1447
1449
|
})];
|
|
1448
|
-
_createIndex_decorators = [op((0, logger_1.mongoLogId)(
|
|
1450
|
+
_createIndex_decorators = [op((0, logger_1.mongoLogId)(1_001_000_037), ([ns, spec, options], result) => {
|
|
1449
1451
|
return { ns, spec, options, ...(result && { result }) };
|
|
1450
1452
|
})];
|
|
1451
|
-
_deleteOne_decorators = [op((0, logger_1.mongoLogId)(
|
|
1453
|
+
_deleteOne_decorators = [op((0, logger_1.mongoLogId)(1_001_000_038), ([ns], result) => {
|
|
1452
1454
|
return { ns, ...(result && { result }) };
|
|
1453
1455
|
})];
|
|
1454
|
-
_deleteMany_decorators = [op((0, logger_1.mongoLogId)(
|
|
1456
|
+
_deleteMany_decorators = [op((0, logger_1.mongoLogId)(1_001_000_039), ([ns], result) => {
|
|
1455
1457
|
return { ns, ...(result && { result }) };
|
|
1456
1458
|
})];
|
|
1457
|
-
_dropCollection_decorators = [op((0, logger_1.mongoLogId)(
|
|
1459
|
+
_dropCollection_decorators = [op((0, logger_1.mongoLogId)(1_001_000_059), ([ns], result) => {
|
|
1458
1460
|
return { ns, ...(result && { result }) };
|
|
1459
1461
|
})];
|
|
1460
|
-
_renameCollection_decorators = [op((0, logger_1.mongoLogId)(
|
|
1461
|
-
_dropDatabase_decorators = [op((0, logger_1.mongoLogId)(
|
|
1462
|
+
_renameCollection_decorators = [op((0, logger_1.mongoLogId)(1_001_000_276))];
|
|
1463
|
+
_dropDatabase_decorators = [op((0, logger_1.mongoLogId)(1_001_000_040), ([db], result) => {
|
|
1462
1464
|
return { db, ...(result && { result }) };
|
|
1463
1465
|
})];
|
|
1464
|
-
_dropIndex_decorators = [op((0, logger_1.mongoLogId)(
|
|
1466
|
+
_dropIndex_decorators = [op((0, logger_1.mongoLogId)(1_001_000_182), ([ns, name], result) => {
|
|
1465
1467
|
return { ns, name, ...(result && { result }) };
|
|
1466
1468
|
})];
|
|
1467
|
-
_isListSearchIndexesSupported_decorators = [op((0, logger_1.mongoLogId)(
|
|
1468
|
-
_getSearchIndexes_decorators = [op((0, logger_1.mongoLogId)(
|
|
1469
|
-
_createSearchIndex_decorators = [op((0, logger_1.mongoLogId)(
|
|
1470
|
-
_updateSearchIndex_decorators = [op((0, logger_1.mongoLogId)(
|
|
1471
|
-
_dropSearchIndex_decorators = [op((0, logger_1.mongoLogId)(
|
|
1472
|
-
_aggregateCursor_decorators = [op((0, logger_1.mongoLogId)(
|
|
1469
|
+
_isListSearchIndexesSupported_decorators = [op((0, logger_1.mongoLogId)(1_001_000_237))];
|
|
1470
|
+
_getSearchIndexes_decorators = [op((0, logger_1.mongoLogId)(1_001_000_238))];
|
|
1471
|
+
_createSearchIndex_decorators = [op((0, logger_1.mongoLogId)(1_001_000_239))];
|
|
1472
|
+
_updateSearchIndex_decorators = [op((0, logger_1.mongoLogId)(1_001_000_240))];
|
|
1473
|
+
_dropSearchIndex_decorators = [op((0, logger_1.mongoLogId)(1_001_000_241))];
|
|
1474
|
+
_aggregateCursor_decorators = [op((0, logger_1.mongoLogId)(1_001_000_041), ([ns, pipeline, options]) => {
|
|
1473
1475
|
return {
|
|
1474
1476
|
ns,
|
|
1475
1477
|
stages: pipeline.map((stage) => Object.keys(stage)[0]),
|
|
1476
1478
|
maxTimeMS: options?.maxTimeMS,
|
|
1477
1479
|
};
|
|
1478
1480
|
})];
|
|
1479
|
-
_aggregate_decorators = [op((0, logger_1.mongoLogId)(
|
|
1481
|
+
_aggregate_decorators = [op((0, logger_1.mongoLogId)(1_001_000_181), ([ns, pipeline, options]) => {
|
|
1480
1482
|
return {
|
|
1481
1483
|
ns,
|
|
1482
1484
|
stages: pipeline.map((stage) => Object.keys(stage)[0]),
|
|
1483
1485
|
maxTimeMS: options?.maxTimeMS,
|
|
1484
1486
|
};
|
|
1485
1487
|
})];
|
|
1486
|
-
_find_decorators = [op((0, logger_1.mongoLogId)(
|
|
1488
|
+
_find_decorators = [op((0, logger_1.mongoLogId)(1_001_000_060), ([ns, , options]) => {
|
|
1487
1489
|
return { ns, maxTimeMS: options?.maxTimeMS };
|
|
1488
1490
|
})];
|
|
1489
|
-
_findCursor_decorators = [op((0, logger_1.mongoLogId)(
|
|
1490
|
-
_findOneAndReplace_decorators = [op((0, logger_1.mongoLogId)(
|
|
1491
|
-
_findOneAndUpdate_decorators = [op((0, logger_1.mongoLogId)(
|
|
1492
|
-
_updateOne_decorators = [op((0, logger_1.mongoLogId)(
|
|
1493
|
-
_replaceOne_decorators = [op((0, logger_1.mongoLogId)(
|
|
1494
|
-
_explainFind_decorators = [op((0, logger_1.mongoLogId)(
|
|
1491
|
+
_findCursor_decorators = [op((0, logger_1.mongoLogId)(1_001_000_043))];
|
|
1492
|
+
_findOneAndReplace_decorators = [op((0, logger_1.mongoLogId)(1_001_000_044))];
|
|
1493
|
+
_findOneAndUpdate_decorators = [op((0, logger_1.mongoLogId)(1_001_000_045))];
|
|
1494
|
+
_updateOne_decorators = [op((0, logger_1.mongoLogId)(1_001_000_183))];
|
|
1495
|
+
_replaceOne_decorators = [op((0, logger_1.mongoLogId)(1_001_000_191))];
|
|
1496
|
+
_explainFind_decorators = [op((0, logger_1.mongoLogId)(1_001_000_046), ([ns, , , executionOptions]) => {
|
|
1495
1497
|
return {
|
|
1496
1498
|
ns,
|
|
1497
1499
|
verbosity: executionOptions?.explainVerbosity || mongodb_1.ExplainVerbosity.executionStats,
|
|
1498
1500
|
};
|
|
1499
1501
|
})];
|
|
1500
|
-
_explainAggregate_decorators = [op((0, logger_1.mongoLogId)(
|
|
1502
|
+
_explainAggregate_decorators = [op((0, logger_1.mongoLogId)(1_001_000_177), ([ns, , , executionOptions]) => {
|
|
1501
1503
|
return {
|
|
1502
1504
|
ns,
|
|
1503
1505
|
verbosity: executionOptions?.explainVerbosity || mongodb_1.ExplainVerbosity.executionStats,
|
|
1504
1506
|
};
|
|
1505
1507
|
})];
|
|
1506
|
-
_indexes_decorators = [op((0, logger_1.mongoLogId)(
|
|
1507
|
-
_instance_decorators = [op((0, logger_1.mongoLogId)(
|
|
1508
|
+
_indexes_decorators = [op((0, logger_1.mongoLogId)(1_001_000_047))];
|
|
1509
|
+
_instance_decorators = [op((0, logger_1.mongoLogId)(1_001_000_024), (_, instanceData) => {
|
|
1508
1510
|
if (instanceData) {
|
|
1509
1511
|
return {
|
|
1510
1512
|
serverVersion: instanceData.build.version,
|
|
@@ -1514,10 +1516,10 @@ let DataServiceImpl = (() => {
|
|
|
1514
1516
|
};
|
|
1515
1517
|
}
|
|
1516
1518
|
})];
|
|
1517
|
-
_insertOne_decorators = [op((0, logger_1.mongoLogId)(
|
|
1519
|
+
_insertOne_decorators = [op((0, logger_1.mongoLogId)(1_001_000_048), ([ns], result) => {
|
|
1518
1520
|
return { ns, ...(result && { acknowledged: result.acknowledged }) };
|
|
1519
1521
|
})];
|
|
1520
|
-
_insertMany_decorators = [op((0, logger_1.mongoLogId)(
|
|
1522
|
+
_insertMany_decorators = [op((0, logger_1.mongoLogId)(1_001_000_049), ([ns], result) => {
|
|
1521
1523
|
return {
|
|
1522
1524
|
ns,
|
|
1523
1525
|
...(result && {
|
|
@@ -1526,17 +1528,17 @@ let DataServiceImpl = (() => {
|
|
|
1526
1528
|
}),
|
|
1527
1529
|
};
|
|
1528
1530
|
})];
|
|
1529
|
-
_updateCollection_decorators = [op((0, logger_1.mongoLogId)(
|
|
1531
|
+
_updateCollection_decorators = [op((0, logger_1.mongoLogId)(1_001_000_050), ([ns], result) => {
|
|
1530
1532
|
return { ns, ...(result && { result }) };
|
|
1531
1533
|
})];
|
|
1532
|
-
_currentOp_decorators = [op((0, logger_1.mongoLogId)(
|
|
1533
|
-
_serverStatus_decorators = [op((0, logger_1.mongoLogId)(
|
|
1534
|
+
_currentOp_decorators = [op((0, logger_1.mongoLogId)(1_001_000_053))];
|
|
1535
|
+
_serverStatus_decorators = [op((0, logger_1.mongoLogId)(1_001_000_061), (_, result) => {
|
|
1534
1536
|
return result ? { result } : undefined;
|
|
1535
1537
|
})];
|
|
1536
|
-
_top_decorators = [op((0, logger_1.mongoLogId)(
|
|
1538
|
+
_top_decorators = [op((0, logger_1.mongoLogId)(1_001_000_062), (_, result) => {
|
|
1537
1539
|
return result ? { result } : undefined;
|
|
1538
1540
|
})];
|
|
1539
|
-
_createView_decorators = [op((0, logger_1.mongoLogId)(
|
|
1541
|
+
_createView_decorators = [op((0, logger_1.mongoLogId)(1_001_000_055), ([name, sourceNs, pipeline, options], result) => {
|
|
1540
1542
|
return {
|
|
1541
1543
|
name,
|
|
1542
1544
|
sourceNs,
|
|
@@ -1545,62 +1547,63 @@ let DataServiceImpl = (() => {
|
|
|
1545
1547
|
...(result && { result }),
|
|
1546
1548
|
};
|
|
1547
1549
|
})];
|
|
1548
|
-
_databaseStats_decorators = [op((0, logger_1.mongoLogId)(
|
|
1549
|
-
_previewUpdate_decorators = [op((0, logger_1.mongoLogId)(
|
|
1550
|
-
_createDataKey_decorators = [op((0, logger_1.mongoLogId)(
|
|
1550
|
+
_databaseStats_decorators = [op((0, logger_1.mongoLogId)(1_001_000_057))];
|
|
1551
|
+
_previewUpdate_decorators = [op((0, logger_1.mongoLogId)(1_001_000_266))];
|
|
1552
|
+
_createDataKey_decorators = [op((0, logger_1.mongoLogId)(1_001_000_123), ([provider]) => {
|
|
1551
1553
|
return { provider };
|
|
1552
1554
|
})];
|
|
1553
|
-
_listStreamProcessors_decorators = [op((0, logger_1.mongoLogId)(
|
|
1554
|
-
_startStreamProcessor_decorators = [op((0, logger_1.mongoLogId)(
|
|
1555
|
-
_stopStreamProcessor_decorators = [op((0, logger_1.mongoLogId)(
|
|
1556
|
-
_dropStreamProcessor_decorators = [op((0, logger_1.mongoLogId)(
|
|
1557
|
-
__esDecorate(_a, null, _collectionStats_decorators, { kind: "method", name: "collectionStats", static: false, private: false, access: { has: obj => "collectionStats" in obj, get: obj => obj.collectionStats } }, null, _instanceExtraInitializers);
|
|
1558
|
-
__esDecorate(_a, null, _collectionInfo_decorators, { kind: "method", name: "collectionInfo", static: false, private: false, access: { has: obj => "collectionInfo" in obj, get: obj => obj.collectionInfo } }, null, _instanceExtraInitializers);
|
|
1559
|
-
__esDecorate(_a, null, _killOp_decorators, { kind: "method", name: "killOp", static: false, private: false, access: { has: obj => "killOp" in obj, get: obj => obj.killOp } }, null, _instanceExtraInitializers);
|
|
1560
|
-
__esDecorate(_a, null, __connectionStatus_decorators, { kind: "method", name: "_connectionStatus", static: false, private: false, access: { has: obj => "_connectionStatus" in obj, get: obj => obj._connectionStatus } }, null, _instanceExtraInitializers);
|
|
1561
|
-
__esDecorate(_a, null, _listCollections_decorators, { kind: "method", name: "listCollections", static: false, private: false, access: { has: obj => "listCollections" in obj, get: obj => obj.listCollections } }, null, _instanceExtraInitializers);
|
|
1562
|
-
__esDecorate(_a, null, _listDatabases_decorators, { kind: "method", name: "listDatabases", static: false, private: false, access: { has: obj => "listDatabases" in obj, get: obj => obj.listDatabases } }, null, _instanceExtraInitializers);
|
|
1563
|
-
__esDecorate(_a, null, _estimatedCount_decorators, { kind: "method", name: "estimatedCount", static: false, private: false, access: { has: obj => "estimatedCount" in obj, get: obj => obj.estimatedCount } }, null, _instanceExtraInitializers);
|
|
1564
|
-
__esDecorate(_a, null, _count_decorators, { kind: "method", name: "count", static: false, private: false, access: { has: obj => "count" in obj, get: obj => obj.count } }, null, _instanceExtraInitializers);
|
|
1565
|
-
__esDecorate(_a, null, _createCollection_decorators, { kind: "method", name: "createCollection", static: false, private: false, access: { has: obj => "createCollection" in obj, get: obj => obj.createCollection } }, null, _instanceExtraInitializers);
|
|
1566
|
-
__esDecorate(_a, null, _createIndex_decorators, { kind: "method", name: "createIndex", static: false, private: false, access: { has: obj => "createIndex" in obj, get: obj => obj.createIndex } }, null, _instanceExtraInitializers);
|
|
1567
|
-
__esDecorate(_a, null, _deleteOne_decorators, { kind: "method", name: "deleteOne", static: false, private: false, access: { has: obj => "deleteOne" in obj, get: obj => obj.deleteOne } }, null, _instanceExtraInitializers);
|
|
1568
|
-
__esDecorate(_a, null, _deleteMany_decorators, { kind: "method", name: "deleteMany", static: false, private: false, access: { has: obj => "deleteMany" in obj, get: obj => obj.deleteMany } }, null, _instanceExtraInitializers);
|
|
1569
|
-
__esDecorate(_a, null, _dropCollection_decorators, { kind: "method", name: "dropCollection", static: false, private: false, access: { has: obj => "dropCollection" in obj, get: obj => obj.dropCollection } }, null, _instanceExtraInitializers);
|
|
1570
|
-
__esDecorate(_a, null, _renameCollection_decorators, { kind: "method", name: "renameCollection", static: false, private: false, access: { has: obj => "renameCollection" in obj, get: obj => obj.renameCollection } }, null, _instanceExtraInitializers);
|
|
1571
|
-
__esDecorate(_a, null, _dropDatabase_decorators, { kind: "method", name: "dropDatabase", static: false, private: false, access: { has: obj => "dropDatabase" in obj, get: obj => obj.dropDatabase } }, null, _instanceExtraInitializers);
|
|
1572
|
-
__esDecorate(_a, null, _dropIndex_decorators, { kind: "method", name: "dropIndex", static: false, private: false, access: { has: obj => "dropIndex" in obj, get: obj => obj.dropIndex } }, null, _instanceExtraInitializers);
|
|
1573
|
-
__esDecorate(_a, null, _isListSearchIndexesSupported_decorators, { kind: "method", name: "isListSearchIndexesSupported", static: false, private: false, access: { has: obj => "isListSearchIndexesSupported" in obj, get: obj => obj.isListSearchIndexesSupported } }, null, _instanceExtraInitializers);
|
|
1574
|
-
__esDecorate(_a, null, _getSearchIndexes_decorators, { kind: "method", name: "getSearchIndexes", static: false, private: false, access: { has: obj => "getSearchIndexes" in obj, get: obj => obj.getSearchIndexes } }, null, _instanceExtraInitializers);
|
|
1575
|
-
__esDecorate(_a, null, _createSearchIndex_decorators, { kind: "method", name: "createSearchIndex", static: false, private: false, access: { has: obj => "createSearchIndex" in obj, get: obj => obj.createSearchIndex } }, null, _instanceExtraInitializers);
|
|
1576
|
-
__esDecorate(_a, null, _updateSearchIndex_decorators, { kind: "method", name: "updateSearchIndex", static: false, private: false, access: { has: obj => "updateSearchIndex" in obj, get: obj => obj.updateSearchIndex } }, null, _instanceExtraInitializers);
|
|
1577
|
-
__esDecorate(_a, null, _dropSearchIndex_decorators, { kind: "method", name: "dropSearchIndex", static: false, private: false, access: { has: obj => "dropSearchIndex" in obj, get: obj => obj.dropSearchIndex } }, null, _instanceExtraInitializers);
|
|
1578
|
-
__esDecorate(_a, null, _aggregateCursor_decorators, { kind: "method", name: "aggregateCursor", static: false, private: false, access: { has: obj => "aggregateCursor" in obj, get: obj => obj.aggregateCursor } }, null, _instanceExtraInitializers);
|
|
1579
|
-
__esDecorate(_a, null, _aggregate_decorators, { kind: "method", name: "aggregate", static: false, private: false, access: { has: obj => "aggregate" in obj, get: obj => obj.aggregate } }, null, _instanceExtraInitializers);
|
|
1580
|
-
__esDecorate(_a, null, _find_decorators, { kind: "method", name: "find", static: false, private: false, access: { has: obj => "find" in obj, get: obj => obj.find } }, null, _instanceExtraInitializers);
|
|
1581
|
-
__esDecorate(_a, null, _findCursor_decorators, { kind: "method", name: "findCursor", static: false, private: false, access: { has: obj => "findCursor" in obj, get: obj => obj.findCursor } }, null, _instanceExtraInitializers);
|
|
1582
|
-
__esDecorate(_a, null, _findOneAndReplace_decorators, { kind: "method", name: "findOneAndReplace", static: false, private: false, access: { has: obj => "findOneAndReplace" in obj, get: obj => obj.findOneAndReplace } }, null, _instanceExtraInitializers);
|
|
1583
|
-
__esDecorate(_a, null, _findOneAndUpdate_decorators, { kind: "method", name: "findOneAndUpdate", static: false, private: false, access: { has: obj => "findOneAndUpdate" in obj, get: obj => obj.findOneAndUpdate } }, null, _instanceExtraInitializers);
|
|
1584
|
-
__esDecorate(_a, null, _updateOne_decorators, { kind: "method", name: "updateOne", static: false, private: false, access: { has: obj => "updateOne" in obj, get: obj => obj.updateOne } }, null, _instanceExtraInitializers);
|
|
1585
|
-
__esDecorate(_a, null, _replaceOne_decorators, { kind: "method", name: "replaceOne", static: false, private: false, access: { has: obj => "replaceOne" in obj, get: obj => obj.replaceOne } }, null, _instanceExtraInitializers);
|
|
1586
|
-
__esDecorate(_a, null, _explainFind_decorators, { kind: "method", name: "explainFind", static: false, private: false, access: { has: obj => "explainFind" in obj, get: obj => obj.explainFind } }, null, _instanceExtraInitializers);
|
|
1587
|
-
__esDecorate(_a, null, _explainAggregate_decorators, { kind: "method", name: "explainAggregate", static: false, private: false, access: { has: obj => "explainAggregate" in obj, get: obj => obj.explainAggregate } }, null, _instanceExtraInitializers);
|
|
1588
|
-
__esDecorate(_a, null, _indexes_decorators, { kind: "method", name: "indexes", static: false, private: false, access: { has: obj => "indexes" in obj, get: obj => obj.indexes } }, null, _instanceExtraInitializers);
|
|
1589
|
-
__esDecorate(_a, null, _instance_decorators, { kind: "method", name: "instance", static: false, private: false, access: { has: obj => "instance" in obj, get: obj => obj.instance } }, null, _instanceExtraInitializers);
|
|
1590
|
-
__esDecorate(_a, null, _insertOne_decorators, { kind: "method", name: "insertOne", static: false, private: false, access: { has: obj => "insertOne" in obj, get: obj => obj.insertOne } }, null, _instanceExtraInitializers);
|
|
1591
|
-
__esDecorate(_a, null, _insertMany_decorators, { kind: "method", name: "insertMany", static: false, private: false, access: { has: obj => "insertMany" in obj, get: obj => obj.insertMany } }, null, _instanceExtraInitializers);
|
|
1592
|
-
__esDecorate(_a, null, _updateCollection_decorators, { kind: "method", name: "updateCollection", static: false, private: false, access: { has: obj => "updateCollection" in obj, get: obj => obj.updateCollection } }, null, _instanceExtraInitializers);
|
|
1593
|
-
__esDecorate(_a, null, _currentOp_decorators, { kind: "method", name: "currentOp", static: false, private: false, access: { has: obj => "currentOp" in obj, get: obj => obj.currentOp } }, null, _instanceExtraInitializers);
|
|
1594
|
-
__esDecorate(_a, null, _serverStatus_decorators, { kind: "method", name: "serverStatus", static: false, private: false, access: { has: obj => "serverStatus" in obj, get: obj => obj.serverStatus } }, null, _instanceExtraInitializers);
|
|
1595
|
-
__esDecorate(_a, null, _top_decorators, { kind: "method", name: "top", static: false, private: false, access: { has: obj => "top" in obj, get: obj => obj.top } }, null, _instanceExtraInitializers);
|
|
1596
|
-
__esDecorate(_a, null, _createView_decorators, { kind: "method", name: "createView", static: false, private: false, access: { has: obj => "createView" in obj, get: obj => obj.createView } }, null, _instanceExtraInitializers);
|
|
1597
|
-
__esDecorate(_a, null, _databaseStats_decorators, { kind: "method", name: "databaseStats", static: false, private: false, access: { has: obj => "databaseStats" in obj, get: obj => obj.databaseStats } }, null, _instanceExtraInitializers);
|
|
1598
|
-
__esDecorate(_a, null, _previewUpdate_decorators, { kind: "method", name: "previewUpdate", static: false, private: false, access: { has: obj => "previewUpdate" in obj, get: obj => obj.previewUpdate } }, null, _instanceExtraInitializers);
|
|
1599
|
-
__esDecorate(_a, null, _createDataKey_decorators, { kind: "method", name: "createDataKey", static: false, private: false, access: { has: obj => "createDataKey" in obj, get: obj => obj.createDataKey } }, null, _instanceExtraInitializers);
|
|
1600
|
-
__esDecorate(_a, null, _listStreamProcessors_decorators, { kind: "method", name: "listStreamProcessors", static: false, private: false, access: { has: obj => "listStreamProcessors" in obj, get: obj => obj.listStreamProcessors } }, null, _instanceExtraInitializers);
|
|
1601
|
-
__esDecorate(_a, null, _startStreamProcessor_decorators, { kind: "method", name: "startStreamProcessor", static: false, private: false, access: { has: obj => "startStreamProcessor" in obj, get: obj => obj.startStreamProcessor } }, null, _instanceExtraInitializers);
|
|
1602
|
-
__esDecorate(_a, null, _stopStreamProcessor_decorators, { kind: "method", name: "stopStreamProcessor", static: false, private: false, access: { has: obj => "stopStreamProcessor" in obj, get: obj => obj.stopStreamProcessor } }, null, _instanceExtraInitializers);
|
|
1603
|
-
__esDecorate(_a, null, _dropStreamProcessor_decorators, { kind: "method", name: "dropStreamProcessor", static: false, private: false, access: { has: obj => "dropStreamProcessor" in obj, get: obj => obj.dropStreamProcessor } }, null, _instanceExtraInitializers);
|
|
1555
|
+
_listStreamProcessors_decorators = [op((0, logger_1.mongoLogId)(1_001_000_284))];
|
|
1556
|
+
_startStreamProcessor_decorators = [op((0, logger_1.mongoLogId)(1_001_000_285))];
|
|
1557
|
+
_stopStreamProcessor_decorators = [op((0, logger_1.mongoLogId)(1_001_000_286))];
|
|
1558
|
+
_dropStreamProcessor_decorators = [op((0, logger_1.mongoLogId)(1_001_000_287))];
|
|
1559
|
+
__esDecorate(_a, null, _collectionStats_decorators, { kind: "method", name: "collectionStats", static: false, private: false, access: { has: obj => "collectionStats" in obj, get: obj => obj.collectionStats }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1560
|
+
__esDecorate(_a, null, _collectionInfo_decorators, { kind: "method", name: "collectionInfo", static: false, private: false, access: { has: obj => "collectionInfo" in obj, get: obj => obj.collectionInfo }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1561
|
+
__esDecorate(_a, null, _killOp_decorators, { kind: "method", name: "killOp", static: false, private: false, access: { has: obj => "killOp" in obj, get: obj => obj.killOp }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1562
|
+
__esDecorate(_a, null, __connectionStatus_decorators, { kind: "method", name: "_connectionStatus", static: false, private: false, access: { has: obj => "_connectionStatus" in obj, get: obj => obj._connectionStatus }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1563
|
+
__esDecorate(_a, null, _listCollections_decorators, { kind: "method", name: "listCollections", static: false, private: false, access: { has: obj => "listCollections" in obj, get: obj => obj.listCollections }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1564
|
+
__esDecorate(_a, null, _listDatabases_decorators, { kind: "method", name: "listDatabases", static: false, private: false, access: { has: obj => "listDatabases" in obj, get: obj => obj.listDatabases }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1565
|
+
__esDecorate(_a, null, _estimatedCount_decorators, { kind: "method", name: "estimatedCount", static: false, private: false, access: { has: obj => "estimatedCount" in obj, get: obj => obj.estimatedCount }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1566
|
+
__esDecorate(_a, null, _count_decorators, { kind: "method", name: "count", static: false, private: false, access: { has: obj => "count" in obj, get: obj => obj.count }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1567
|
+
__esDecorate(_a, null, _createCollection_decorators, { kind: "method", name: "createCollection", static: false, private: false, access: { has: obj => "createCollection" in obj, get: obj => obj.createCollection }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1568
|
+
__esDecorate(_a, null, _createIndex_decorators, { kind: "method", name: "createIndex", static: false, private: false, access: { has: obj => "createIndex" in obj, get: obj => obj.createIndex }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1569
|
+
__esDecorate(_a, null, _deleteOne_decorators, { kind: "method", name: "deleteOne", static: false, private: false, access: { has: obj => "deleteOne" in obj, get: obj => obj.deleteOne }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1570
|
+
__esDecorate(_a, null, _deleteMany_decorators, { kind: "method", name: "deleteMany", static: false, private: false, access: { has: obj => "deleteMany" in obj, get: obj => obj.deleteMany }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1571
|
+
__esDecorate(_a, null, _dropCollection_decorators, { kind: "method", name: "dropCollection", static: false, private: false, access: { has: obj => "dropCollection" in obj, get: obj => obj.dropCollection }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1572
|
+
__esDecorate(_a, null, _renameCollection_decorators, { kind: "method", name: "renameCollection", static: false, private: false, access: { has: obj => "renameCollection" in obj, get: obj => obj.renameCollection }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1573
|
+
__esDecorate(_a, null, _dropDatabase_decorators, { kind: "method", name: "dropDatabase", static: false, private: false, access: { has: obj => "dropDatabase" in obj, get: obj => obj.dropDatabase }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1574
|
+
__esDecorate(_a, null, _dropIndex_decorators, { kind: "method", name: "dropIndex", static: false, private: false, access: { has: obj => "dropIndex" in obj, get: obj => obj.dropIndex }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1575
|
+
__esDecorate(_a, null, _isListSearchIndexesSupported_decorators, { kind: "method", name: "isListSearchIndexesSupported", static: false, private: false, access: { has: obj => "isListSearchIndexesSupported" in obj, get: obj => obj.isListSearchIndexesSupported }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1576
|
+
__esDecorate(_a, null, _getSearchIndexes_decorators, { kind: "method", name: "getSearchIndexes", static: false, private: false, access: { has: obj => "getSearchIndexes" in obj, get: obj => obj.getSearchIndexes }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1577
|
+
__esDecorate(_a, null, _createSearchIndex_decorators, { kind: "method", name: "createSearchIndex", static: false, private: false, access: { has: obj => "createSearchIndex" in obj, get: obj => obj.createSearchIndex }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1578
|
+
__esDecorate(_a, null, _updateSearchIndex_decorators, { kind: "method", name: "updateSearchIndex", static: false, private: false, access: { has: obj => "updateSearchIndex" in obj, get: obj => obj.updateSearchIndex }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1579
|
+
__esDecorate(_a, null, _dropSearchIndex_decorators, { kind: "method", name: "dropSearchIndex", static: false, private: false, access: { has: obj => "dropSearchIndex" in obj, get: obj => obj.dropSearchIndex }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1580
|
+
__esDecorate(_a, null, _aggregateCursor_decorators, { kind: "method", name: "aggregateCursor", static: false, private: false, access: { has: obj => "aggregateCursor" in obj, get: obj => obj.aggregateCursor }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1581
|
+
__esDecorate(_a, null, _aggregate_decorators, { kind: "method", name: "aggregate", static: false, private: false, access: { has: obj => "aggregate" in obj, get: obj => obj.aggregate }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1582
|
+
__esDecorate(_a, null, _find_decorators, { kind: "method", name: "find", static: false, private: false, access: { has: obj => "find" in obj, get: obj => obj.find }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1583
|
+
__esDecorate(_a, null, _findCursor_decorators, { kind: "method", name: "findCursor", static: false, private: false, access: { has: obj => "findCursor" in obj, get: obj => obj.findCursor }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1584
|
+
__esDecorate(_a, null, _findOneAndReplace_decorators, { kind: "method", name: "findOneAndReplace", static: false, private: false, access: { has: obj => "findOneAndReplace" in obj, get: obj => obj.findOneAndReplace }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1585
|
+
__esDecorate(_a, null, _findOneAndUpdate_decorators, { kind: "method", name: "findOneAndUpdate", static: false, private: false, access: { has: obj => "findOneAndUpdate" in obj, get: obj => obj.findOneAndUpdate }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1586
|
+
__esDecorate(_a, null, _updateOne_decorators, { kind: "method", name: "updateOne", static: false, private: false, access: { has: obj => "updateOne" in obj, get: obj => obj.updateOne }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1587
|
+
__esDecorate(_a, null, _replaceOne_decorators, { kind: "method", name: "replaceOne", static: false, private: false, access: { has: obj => "replaceOne" in obj, get: obj => obj.replaceOne }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1588
|
+
__esDecorate(_a, null, _explainFind_decorators, { kind: "method", name: "explainFind", static: false, private: false, access: { has: obj => "explainFind" in obj, get: obj => obj.explainFind }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1589
|
+
__esDecorate(_a, null, _explainAggregate_decorators, { kind: "method", name: "explainAggregate", static: false, private: false, access: { has: obj => "explainAggregate" in obj, get: obj => obj.explainAggregate }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1590
|
+
__esDecorate(_a, null, _indexes_decorators, { kind: "method", name: "indexes", static: false, private: false, access: { has: obj => "indexes" in obj, get: obj => obj.indexes }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1591
|
+
__esDecorate(_a, null, _instance_decorators, { kind: "method", name: "instance", static: false, private: false, access: { has: obj => "instance" in obj, get: obj => obj.instance }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1592
|
+
__esDecorate(_a, null, _insertOne_decorators, { kind: "method", name: "insertOne", static: false, private: false, access: { has: obj => "insertOne" in obj, get: obj => obj.insertOne }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1593
|
+
__esDecorate(_a, null, _insertMany_decorators, { kind: "method", name: "insertMany", static: false, private: false, access: { has: obj => "insertMany" in obj, get: obj => obj.insertMany }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1594
|
+
__esDecorate(_a, null, _updateCollection_decorators, { kind: "method", name: "updateCollection", static: false, private: false, access: { has: obj => "updateCollection" in obj, get: obj => obj.updateCollection }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1595
|
+
__esDecorate(_a, null, _currentOp_decorators, { kind: "method", name: "currentOp", static: false, private: false, access: { has: obj => "currentOp" in obj, get: obj => obj.currentOp }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1596
|
+
__esDecorate(_a, null, _serverStatus_decorators, { kind: "method", name: "serverStatus", static: false, private: false, access: { has: obj => "serverStatus" in obj, get: obj => obj.serverStatus }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1597
|
+
__esDecorate(_a, null, _top_decorators, { kind: "method", name: "top", static: false, private: false, access: { has: obj => "top" in obj, get: obj => obj.top }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1598
|
+
__esDecorate(_a, null, _createView_decorators, { kind: "method", name: "createView", static: false, private: false, access: { has: obj => "createView" in obj, get: obj => obj.createView }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1599
|
+
__esDecorate(_a, null, _databaseStats_decorators, { kind: "method", name: "databaseStats", static: false, private: false, access: { has: obj => "databaseStats" in obj, get: obj => obj.databaseStats }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1600
|
+
__esDecorate(_a, null, _previewUpdate_decorators, { kind: "method", name: "previewUpdate", static: false, private: false, access: { has: obj => "previewUpdate" in obj, get: obj => obj.previewUpdate }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1601
|
+
__esDecorate(_a, null, _createDataKey_decorators, { kind: "method", name: "createDataKey", static: false, private: false, access: { has: obj => "createDataKey" in obj, get: obj => obj.createDataKey }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1602
|
+
__esDecorate(_a, null, _listStreamProcessors_decorators, { kind: "method", name: "listStreamProcessors", static: false, private: false, access: { has: obj => "listStreamProcessors" in obj, get: obj => obj.listStreamProcessors }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1603
|
+
__esDecorate(_a, null, _startStreamProcessor_decorators, { kind: "method", name: "startStreamProcessor", static: false, private: false, access: { has: obj => "startStreamProcessor" in obj, get: obj => obj.startStreamProcessor }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1604
|
+
__esDecorate(_a, null, _stopStreamProcessor_decorators, { kind: "method", name: "stopStreamProcessor", static: false, private: false, access: { has: obj => "stopStreamProcessor" in obj, get: obj => obj.stopStreamProcessor }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1605
|
+
__esDecorate(_a, null, _dropStreamProcessor_decorators, { kind: "method", name: "dropStreamProcessor", static: false, private: false, access: { has: obj => "dropStreamProcessor" in obj, get: obj => obj.dropStreamProcessor }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
1606
|
+
if (_metadata) Object.defineProperty(_a, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
1604
1607
|
})(),
|
|
1605
1608
|
(() => {
|
|
1606
1609
|
const assertNoExtraProps = (
|