@opra/elastic 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.
@@ -2,7 +2,7 @@ import type { estypes } from '@elastic/elasticsearch';
2
2
  import type { TransportRequestOptions } from '@elastic/transport';
3
3
  import { ComplexType } from '@opra/common';
4
4
  import type { PartialDTO, PatchDTO, RequiredSome, StrictOmit, Type } from 'ts-gems';
5
- import { type IsObject } from 'valgen';
5
+ import { type vg } from 'valgen';
6
6
  import { ElasticAdapter } from './elastic-adapter.js';
7
7
  import { ElasticService } from './elastic-service.js';
8
8
  /**
@@ -174,8 +174,8 @@ export declare class ElasticEntityService<T extends object = any> extends Elasti
174
174
  protected _dataTypeScope?: string;
175
175
  protected _dataType_: Type | string;
176
176
  protected _dataType?: ComplexType;
177
- protected _inputCodecs: Record<string, IsObject.Validator<T>>;
178
- protected _outputCodecs: Record<string, IsObject.Validator<T>>;
177
+ protected _inputCodecs: Record<string, vg.isObject.Validator<T>>;
178
+ protected _outputCodecs: Record<string, vg.isObject.Validator<T>>;
179
179
  /**
180
180
  * Defines comma delimited scopes for api document
181
181
  */
@@ -290,11 +290,11 @@ export declare class ElasticEntityService<T extends object = any> extends Elasti
290
290
  *
291
291
  * @param operation - The operation to retrieve the encoder for. Valid values are 'create' and 'update'.
292
292
  */
293
- protected _getInputCodec(operation: string): IsObject.Validator<T>;
293
+ protected _getInputCodec(operation: string): vg.isObject.Validator<T>;
294
294
  /**
295
295
  * Retrieves the codec.
296
296
  */
297
- getOutputCodec(operation: string): IsObject.Validator<T>;
297
+ getOutputCodec(operation: string): vg.isObject.Validator<T>;
298
298
  protected _executeCommand(command: ElasticEntityService.CommandInfo, commandFn: () => any): Promise<any>;
299
299
  protected _mergeQueries(requestQuery?: ElasticEntityService.QueryDslQueryContainer, filterQuery?: ElasticEntityService.QueryDslQueryContainer): ElasticEntityService.QueryDslQueryContainer | undefined;
300
300
  protected _beforeCreate(command: ElasticEntityService.CreateCommand): Promise<void>;
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opra/elastic",
3
- "version": "1.25.2",
3
+ "version": "1.25.3",
4
4
  "description": "Opra Elastic Search 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": "^5.19.5"
10
+ "valgen": "^6.0.3"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@elastic/elasticsearch": ">=8.7.0 <10",
14
- "@opra/common": "^1.25.2",
15
- "@opra/core": "^1.25.2"
14
+ "@opra/common": "^1.25.3",
15
+ "@opra/core": "^1.25.3"
16
16
  },
17
17
  "type": "module",
18
18
  "module": "./index.js",