@mongosh/shell-api 2.1.1 → 2.1.4
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/AUTHORS +1 -0
- package/lib/abstract-cursor.js +176 -132
- package/lib/abstract-cursor.js.map +1 -1
- package/lib/aggregate-or-find-cursor.js +102 -51
- package/lib/aggregate-or-find-cursor.js.map +1 -1
- package/lib/aggregation-cursor.js +59 -13
- package/lib/aggregation-cursor.js.map +1 -1
- package/lib/bulk.js +248 -197
- package/lib/bulk.js.map +1 -1
- package/lib/change-stream-cursor.js +145 -101
- package/lib/change-stream-cursor.js.map +1 -1
- package/lib/collection.d.ts +2 -1
- package/lib/collection.js +1185 -1245
- package/lib/collection.js.map +1 -1
- package/lib/cursor.js +238 -203
- package/lib/cursor.js.map +1 -1
- package/lib/database.js +1189 -1206
- package/lib/database.js.map +1 -1
- package/lib/dbquery.js +68 -22
- package/lib/dbquery.js.map +1 -1
- package/lib/decorators.d.ts +39 -13
- package/lib/decorators.js +34 -34
- package/lib/decorators.js.map +1 -1
- package/lib/explainable-cursor.js +66 -20
- package/lib/explainable-cursor.js.map +1 -1
- package/lib/explainable.js +214 -179
- package/lib/explainable.js.map +1 -1
- package/lib/field-level-encryption.js +286 -235
- package/lib/field-level-encryption.js.map +1 -1
- package/lib/helpers.d.ts +9 -1
- package/lib/helpers.js +24 -17
- package/lib/helpers.js.map +1 -1
- package/lib/interruptor.js.map +1 -1
- package/lib/log-entry.js.map +1 -1
- package/lib/mongo-errors.js +3 -1
- package/lib/mongo-errors.js.map +1 -1
- package/lib/mongo.js +581 -547
- package/lib/mongo.js.map +1 -1
- package/lib/plan-cache.js +108 -64
- package/lib/plan-cache.js.map +1 -1
- package/lib/replica-set.js +290 -277
- package/lib/replica-set.js.map +1 -1
- package/lib/result.js +228 -91
- package/lib/result.js.map +1 -1
- package/lib/run-command-cursor.js +59 -13
- package/lib/run-command-cursor.js.map +1 -1
- package/lib/session.js +123 -76
- package/lib/session.js.map +1 -1
- package/lib/shard.js +507 -514
- package/lib/shard.js.map +1 -1
- package/lib/shell-api.js +313 -268
- package/lib/shell-api.js.map +1 -1
- package/lib/shell-bson.js.map +1 -1
- package/lib/shell-instance-state.js.map +1 -1
- package/lib/stream-processor.js +139 -92
- package/lib/stream-processor.js.map +1 -1
- package/lib/streams.js +158 -110
- package/lib/streams.js.map +1 -1
- package/package.json +10 -10
package/lib/streams.js
CHANGED
|
@@ -1,131 +1,179 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
3
|
+
var useValue = arguments.length > 2;
|
|
4
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
5
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
6
|
+
}
|
|
7
|
+
return useValue ? value : void 0;
|
|
8
|
+
};
|
|
9
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
10
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
11
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
12
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
13
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
14
|
+
var _, done = false;
|
|
15
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
16
|
+
var context = {};
|
|
17
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
18
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
19
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
20
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
21
|
+
if (kind === "accessor") {
|
|
22
|
+
if (result === void 0) continue;
|
|
23
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
24
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
25
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
26
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
27
|
+
}
|
|
28
|
+
else if (_ = accept(result)) {
|
|
29
|
+
if (kind === "field") initializers.unshift(_);
|
|
30
|
+
else descriptor[key] = _;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
34
|
+
done = true;
|
|
35
|
+
};
|
|
36
|
+
var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) {
|
|
37
|
+
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
|
38
|
+
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
|
7
39
|
};
|
|
8
40
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
41
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
42
|
};
|
|
11
|
-
var Streams_1;
|
|
12
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
44
|
exports.Streams = void 0;
|
|
14
45
|
const errors_1 = require("@mongosh/errors");
|
|
15
46
|
const decorators_1 = require("./decorators");
|
|
16
47
|
const stream_processor_1 = __importDefault(require("./stream-processor"));
|
|
17
48
|
const enums_1 = require("./enums");
|
|
18
|
-
let Streams =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
49
|
+
let Streams = (() => {
|
|
50
|
+
let _classDecorators = [decorators_1.shellApiClassDefault];
|
|
51
|
+
let _classDescriptor;
|
|
52
|
+
let _classExtraInitializers = [];
|
|
53
|
+
let _classThis;
|
|
54
|
+
let _classSuper = decorators_1.ShellApiWithMongoClass;
|
|
55
|
+
let _instanceExtraInitializers = [];
|
|
56
|
+
let _process_decorators;
|
|
57
|
+
let _createStreamProcessor_decorators;
|
|
58
|
+
let _listStreamProcessors_decorators;
|
|
59
|
+
let _listConnections_decorators;
|
|
60
|
+
var Streams = _classThis = class extends _classSuper {
|
|
61
|
+
static newInstance(database) {
|
|
62
|
+
return new Proxy(new Streams(database), {
|
|
63
|
+
get(target, prop) {
|
|
64
|
+
const v = target[prop];
|
|
65
|
+
if (v !== undefined) {
|
|
66
|
+
return v;
|
|
67
|
+
}
|
|
68
|
+
if (typeof prop === 'string' && !prop.startsWith('_')) {
|
|
69
|
+
return target.getProcessor(prop);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
constructor(database) {
|
|
75
|
+
super();
|
|
76
|
+
this._database = (__runInitializers(this, _instanceExtraInitializers), void 0);
|
|
77
|
+
this._database = database;
|
|
78
|
+
}
|
|
79
|
+
get _mongo() {
|
|
80
|
+
return this._database._mongo;
|
|
81
|
+
}
|
|
82
|
+
[enums_1.asPrintable]() {
|
|
83
|
+
return 'Atlas Stream Processing';
|
|
48
84
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
...(options ? { options } : {}),
|
|
52
|
-
});
|
|
53
|
-
if (result.ok !== 1) {
|
|
54
|
-
return result;
|
|
85
|
+
getProcessor(name) {
|
|
86
|
+
return new stream_processor_1.default(this, name);
|
|
55
87
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
await sp._drop();
|
|
88
|
+
async process(pipeline, options) {
|
|
89
|
+
if (!Array.isArray(pipeline) || !pipeline.length) {
|
|
90
|
+
throw new errors_1.MongoshInvalidInputError('Invalid pipeline', errors_1.CommonErrors.InvalidArgument, pipeline);
|
|
61
91
|
}
|
|
62
|
-
|
|
92
|
+
const result = await this._runStreamCommand({
|
|
93
|
+
processStreamProcessor: pipeline,
|
|
94
|
+
...(options ? { options } : {}),
|
|
95
|
+
});
|
|
96
|
+
if (result.ok !== 1) {
|
|
97
|
+
return result;
|
|
63
98
|
}
|
|
99
|
+
const { name, cursorId } = result;
|
|
100
|
+
const sp = this.getProcessor(name);
|
|
101
|
+
async function dropSp() {
|
|
102
|
+
try {
|
|
103
|
+
await sp._drop();
|
|
104
|
+
}
|
|
105
|
+
catch (_a) {
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
await this._instanceState.interrupted.withOverrideInterruptBehavior(() => sp._sampleFrom(cursorId), dropSp);
|
|
109
|
+
return dropSp();
|
|
64
110
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
111
|
+
async createStreamProcessor(name, pipeline, options) {
|
|
112
|
+
if (typeof name !== 'string' || name.trim() === '') {
|
|
113
|
+
throw new errors_1.MongoshInvalidInputError(`Invalid processor name: ${name}`, errors_1.CommonErrors.InvalidArgument);
|
|
114
|
+
}
|
|
115
|
+
if (!Array.isArray(pipeline) || !pipeline.length) {
|
|
116
|
+
throw new errors_1.MongoshInvalidInputError('Invalid pipeline', errors_1.CommonErrors.InvalidArgument, pipeline);
|
|
117
|
+
}
|
|
118
|
+
const result = await this._runStreamCommand({
|
|
119
|
+
createStreamProcessor: name,
|
|
120
|
+
pipeline,
|
|
121
|
+
...(options ? { options } : {}),
|
|
122
|
+
});
|
|
123
|
+
if (result.ok !== 1) {
|
|
124
|
+
return result;
|
|
125
|
+
}
|
|
126
|
+
return this.getProcessor(name);
|
|
74
127
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
128
|
+
async listStreamProcessors(filter) {
|
|
129
|
+
const result = await this._runStreamCommand({
|
|
130
|
+
listStreamProcessors: 1,
|
|
131
|
+
filter,
|
|
132
|
+
});
|
|
133
|
+
if (result.ok !== 1) {
|
|
134
|
+
return result;
|
|
135
|
+
}
|
|
136
|
+
const rawProcessors = result.streamProcessors;
|
|
137
|
+
const sps = rawProcessors.map((sp) => this.getProcessor(sp.name));
|
|
138
|
+
return Object.defineProperties(sps, {
|
|
139
|
+
[enums_1.asPrintable]: { value: () => rawProcessors },
|
|
140
|
+
[enums_1.shellApiType]: { value: 'StreamsListResult' },
|
|
141
|
+
});
|
|
82
142
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
return result
|
|
143
|
+
async listConnections(filter) {
|
|
144
|
+
const result = await this._runStreamCommand({
|
|
145
|
+
listStreamConnections: 1,
|
|
146
|
+
filter,
|
|
147
|
+
});
|
|
148
|
+
if (result.ok !== 1) {
|
|
149
|
+
return result;
|
|
150
|
+
}
|
|
151
|
+
return Object.defineProperties(result.connections, {
|
|
152
|
+
[enums_1.shellApiType]: { value: 'StreamsListResult' },
|
|
153
|
+
});
|
|
92
154
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return Object.defineProperties(sps, {
|
|
96
|
-
[enums_1.asPrintable]: { value: () => rawProcessors },
|
|
97
|
-
[enums_1.shellApiType]: { value: 'StreamsListResult' },
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
async listConnections(filter) {
|
|
101
|
-
const result = await this._runStreamCommand({
|
|
102
|
-
listStreamConnections: 1,
|
|
103
|
-
filter,
|
|
104
|
-
});
|
|
105
|
-
if (result.ok !== 1) {
|
|
106
|
-
return result;
|
|
155
|
+
async _runStreamCommand(cmd, options = {}) {
|
|
156
|
+
return this._mongo._serviceProvider.runCommand(enums_1.ADMIN_DB, cmd, options);
|
|
107
157
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
exports.Streams = Streams
|
|
129
|
-
decorators_1.shellApiClassDefault
|
|
130
|
-
], Streams);
|
|
158
|
+
};
|
|
159
|
+
__setFunctionName(_classThis, "Streams");
|
|
160
|
+
(() => {
|
|
161
|
+
var _a;
|
|
162
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create((_a = _classSuper[Symbol.metadata]) !== null && _a !== void 0 ? _a : null) : void 0;
|
|
163
|
+
_process_decorators = [decorators_1.returnsPromise];
|
|
164
|
+
_createStreamProcessor_decorators = [decorators_1.returnsPromise];
|
|
165
|
+
_listStreamProcessors_decorators = [decorators_1.returnsPromise];
|
|
166
|
+
_listConnections_decorators = [decorators_1.returnsPromise];
|
|
167
|
+
__esDecorate(_classThis, null, _process_decorators, { kind: "method", name: "process", static: false, private: false, access: { has: obj => "process" in obj, get: obj => obj.process }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
168
|
+
__esDecorate(_classThis, null, _createStreamProcessor_decorators, { kind: "method", name: "createStreamProcessor", static: false, private: false, access: { has: obj => "createStreamProcessor" in obj, get: obj => obj.createStreamProcessor }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
169
|
+
__esDecorate(_classThis, 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);
|
|
170
|
+
__esDecorate(_classThis, null, _listConnections_decorators, { kind: "method", name: "listConnections", static: false, private: false, access: { has: obj => "listConnections" in obj, get: obj => obj.listConnections }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
171
|
+
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
172
|
+
Streams = _classThis = _classDescriptor.value;
|
|
173
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
174
|
+
__runInitializers(_classThis, _classExtraInitializers);
|
|
175
|
+
})();
|
|
176
|
+
return Streams = _classThis;
|
|
177
|
+
})();
|
|
178
|
+
exports.Streams = Streams;
|
|
131
179
|
//# sourceMappingURL=streams.js.map
|
package/lib/streams.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,4CAAyE;AAEzE,6CAIsB;AACtB,0EAAiD;AACjD,mCAA8D;IAKjD,OAAO;4BADnB,iCAAoB;;;;sBACQ,mCAAsB;;;;;;oCAA9B,SAAQ,WAAsB;QAC1C,MAAM,CAAC,WAAW,CAAC,QAAkB;YAC1C,OAAO,IAAI,KAAK,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE;gBACtC,GAAG,CAAC,MAAM,EAAE,IAAI;oBACd,MAAM,CAAC,GAAI,MAAc,CAAC,IAAI,CAAC,CAAC;oBAChC,IAAI,CAAC,KAAK,SAAS,EAAE,CAAC;wBACpB,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,2BAAc;uCAoBd,2BAAc;QA7Ff,8KAAM,OAAO,6DAuCZ;QAGD,wNAAM,qBAAqB,6DA6B1B;QAGD,qNAAM,oBAAoB,6DAiBzB;QAGD,sMAAM,eAAe,6DAWpB;QA5IH,6KAiJC;;;QAjJY,uDAAO;;;;AAAP,0BAAO"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mongosh/shell-api",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "MongoDB Shell API Classes Package",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
"build"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@mongosh/arg-parser": "2.1.
|
|
44
|
-
"@mongosh/errors": "2.1.
|
|
45
|
-
"@mongosh/history": "2.1.
|
|
46
|
-
"@mongosh/i18n": "2.1.
|
|
47
|
-
"@mongosh/service-provider-core": "2.1.
|
|
43
|
+
"@mongosh/arg-parser": "2.1.4",
|
|
44
|
+
"@mongosh/errors": "2.1.4",
|
|
45
|
+
"@mongosh/history": "2.1.4",
|
|
46
|
+
"@mongosh/i18n": "2.1.4",
|
|
47
|
+
"@mongosh/service-provider-core": "2.1.4",
|
|
48
48
|
"mongodb-redact": "^0.2.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@mongodb-js/eslint-config-mongosh": "
|
|
51
|
+
"@mongodb-js/eslint-config-mongosh": "2.1.4",
|
|
52
52
|
"@mongodb-js/prettier-config-devtools": "^1.0.1",
|
|
53
|
-
"@mongodb-js/tsconfig-mongosh": "
|
|
54
|
-
"@mongosh/types": "2.1.
|
|
53
|
+
"@mongodb-js/tsconfig-mongosh": "2.1.4",
|
|
54
|
+
"@mongosh/types": "2.1.4",
|
|
55
55
|
"bson": "^6.2.0",
|
|
56
56
|
"depcheck": "^1.4.3",
|
|
57
57
|
"eslint": "^7.25.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"prettier": "^2.8.8",
|
|
60
60
|
"semver": "^7.5.3"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "aa68f995797d6ca42337c932408d1923924ca714"
|
|
63
63
|
}
|