@opra/sqb 1.25.2 → 1.25.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/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@opra/sqb",
3
- "version": "1.25.2",
3
+ "version": "1.25.4",
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": "^5.19.5"
10
+ "valgen": "^6.0.3"
11
11
  },
12
12
  "peerDependencies": {
13
- "@opra/core": "^1.25.2",
14
- "@opra/http": "^1.25.2",
13
+ "@opra/core": "^1.25.4",
14
+ "@opra/http": "^1.25.4",
15
15
  "@sqb/builder": ">4.0.0 <5",
16
16
  "@sqb/connect": ">4.0.0 <5"
17
17
  },
@@ -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 IsObject } from 'valgen';
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, IsObject.Validator<T>>;
164
- protected _outputCodecs: Record<string, IsObject.Validator<T>>;
163
+ protected _inputCodecs: Record<string, vg.isObject.Validator<T>>;
164
+ protected _outputCodecs: Record<string, vg.isObject.Validator<T>>;
165
165
  /**
166
- * Defines comma delimited scopes for api document
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): IsObject.Validator<T>;
226
+ getInputCodec(operation: string): vg.isObject.Validator<T>;
227
227
  /**
228
228
  * Retrieves the codec.
229
229
  */
230
- getOutputCodec(operation: string): IsObject.Validator<T>;
230
+ getOutputCodec(operation: string): vg.isObject.Validator<T>;
231
231
  /**
232
232
  * Insert a new record into database
233
233
  *
@@ -17,7 +17,7 @@ export class SqbEntityService extends SqbServiceBase {
17
17
  _inputCodecs = {};
18
18
  _outputCodecs = {};
19
19
  /**
20
- * Defines comma delimited scopes for api document
20
+ * Defines comma-delimited scopes for the api document
21
21
  */
22
22
  scope;
23
23
  /**