@opra/sqb 1.25.1 → 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 +4 -4
- package/sqb-entity-service.d.ts +6 -6
- package/sqb-entity-service.js +1 -1
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/sqb",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.3",
|
|
4
4
|
"description": "Opra SQB adapter package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"reflect-metadata": "^0.2.2",
|
|
9
9
|
"tslib": "^2.8.1",
|
|
10
|
-
"valgen": "^
|
|
10
|
+
"valgen": "^6.0.3"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/core": "^1.25.
|
|
14
|
-
"@opra/http": "^1.25.
|
|
13
|
+
"@opra/core": "^1.25.3",
|
|
14
|
+
"@opra/http": "^1.25.3",
|
|
15
15
|
"@sqb/builder": ">4.0.0 <5",
|
|
16
16
|
"@sqb/connect": ">4.0.0 <5"
|
|
17
17
|
},
|
package/sqb-entity-service.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ComplexType } from '@opra/common';
|
|
|
2
2
|
import { ExecutionContext, ServiceBase } from '@opra/core';
|
|
3
3
|
import { EntityMetadata, Repository } from '@sqb/connect';
|
|
4
4
|
import type { Nullish, PartialDTO, PatchDTO, RequiredSome, StrictOmit, Type } from 'ts-gems';
|
|
5
|
-
import { type
|
|
5
|
+
import { type vg } from 'valgen';
|
|
6
6
|
import { SQBAdapter } from './sqb-adapter.js';
|
|
7
7
|
import { SqbServiceBase } from './sqb-service-base.js';
|
|
8
8
|
/**
|
|
@@ -160,10 +160,10 @@ export declare class SqbEntityService<T extends object = object> extends SqbServ
|
|
|
160
160
|
protected _dataType?: ComplexType;
|
|
161
161
|
protected _dataTypeClass?: Type;
|
|
162
162
|
protected _entityMetadata?: EntityMetadata;
|
|
163
|
-
protected _inputCodecs: Record<string,
|
|
164
|
-
protected _outputCodecs: Record<string,
|
|
163
|
+
protected _inputCodecs: Record<string, vg.isObject.Validator<T>>;
|
|
164
|
+
protected _outputCodecs: Record<string, vg.isObject.Validator<T>>;
|
|
165
165
|
/**
|
|
166
|
-
* Defines comma
|
|
166
|
+
* Defines comma-delimited scopes for the api document
|
|
167
167
|
*/
|
|
168
168
|
scope?: string;
|
|
169
169
|
/**
|
|
@@ -223,11 +223,11 @@ export declare class SqbEntityService<T extends object = object> extends SqbServ
|
|
|
223
223
|
*
|
|
224
224
|
* @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
|
|
225
225
|
*/
|
|
226
|
-
getInputCodec(operation: string):
|
|
226
|
+
getInputCodec(operation: string): vg.isObject.Validator<T>;
|
|
227
227
|
/**
|
|
228
228
|
* Retrieves the codec.
|
|
229
229
|
*/
|
|
230
|
-
getOutputCodec(operation: string):
|
|
230
|
+
getOutputCodec(operation: string): vg.isObject.Validator<T>;
|
|
231
231
|
/**
|
|
232
232
|
* Insert a new record into database
|
|
233
233
|
*
|
package/sqb-entity-service.js
CHANGED