@opra/mongodb 1.25.2 → 1.25.3
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/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/mongodb",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.3",
|
|
4
4
|
"description": "Opra MongoDB adapter package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@jsopen/objects": "^2.2.0",
|
|
9
9
|
"tslib": "^2.8.1",
|
|
10
|
-
"valgen": "^
|
|
10
|
+
"valgen": "^6.0.3"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.25.
|
|
14
|
-
"@opra/core": "^1.25.
|
|
15
|
-
"@opra/http": "^1.25.
|
|
13
|
+
"@opra/common": "^1.25.3",
|
|
14
|
+
"@opra/core": "^1.25.3",
|
|
15
|
+
"@opra/http": "^1.25.3",
|
|
16
16
|
"mongodb": "^7.0.0"
|
|
17
17
|
},
|
|
18
18
|
"exports": {
|
|
@@ -2,7 +2,7 @@ import { ComplexType } from '@opra/common';
|
|
|
2
2
|
import { ExecutionContext, ServiceBase } from '@opra/core';
|
|
3
3
|
import mongodb, { ClientSession, type Document, type TransactionOptions } from 'mongodb';
|
|
4
4
|
import type { Nullish, StrictOmit, Type } from 'ts-gems';
|
|
5
|
-
import type {
|
|
5
|
+
import type { vg } from 'valgen';
|
|
6
6
|
import { MongoAdapter } from '../adapter/mongo-adapter.js';
|
|
7
7
|
/**
|
|
8
8
|
* The namespace for the MongoService.
|
|
@@ -156,8 +156,8 @@ export declare class MongoService<T extends mongodb.Document = mongodb.Document>
|
|
|
156
156
|
protected _dataTypeScope?: string;
|
|
157
157
|
protected _dataType_: Type | string;
|
|
158
158
|
protected _dataType?: ComplexType;
|
|
159
|
-
protected _inputCodecs: Record<string,
|
|
160
|
-
protected _outputCodecs: Record<string,
|
|
159
|
+
protected _inputCodecs: Record<string, vg.isObject.Validator<T>>;
|
|
160
|
+
protected _outputCodecs: Record<string, vg.isObject.Validator<T>>;
|
|
161
161
|
/**
|
|
162
162
|
* Defines comma delimited scopes for api document
|
|
163
163
|
*/
|
|
@@ -280,9 +280,9 @@ export declare class MongoService<T extends mongodb.Document = mongodb.Document>
|
|
|
280
280
|
*
|
|
281
281
|
* @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
|
|
282
282
|
*/
|
|
283
|
-
protected _getInputCodec(operation: string):
|
|
283
|
+
protected _getInputCodec(operation: string): vg.isObject.Validator<T>;
|
|
284
284
|
/**
|
|
285
285
|
* Retrieves the codec.
|
|
286
286
|
*/
|
|
287
|
-
protected _getOutputCodec(operation: string):
|
|
287
|
+
protected _getOutputCodec(operation: string): vg.isObject.Validator<T>;
|
|
288
288
|
}
|