@opra/elastic 1.0.0-beta.3 → 1.0.0-beta.5

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/elastic",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.5",
4
4
  "description": "Opra Elastic Search adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -12,8 +12,8 @@
12
12
  },
13
13
  "peerDependencies": {
14
14
  "@elastic/elasticsearch": ">=8.7.0",
15
- "@opra/common": "^1.0.0-beta.3",
16
- "@opra/core": "^1.0.0-beta.3"
15
+ "@opra/common": "^1.0.0-beta.5",
16
+ "@opra/core": "^1.0.0-beta.5"
17
17
  },
18
18
  "type": "module",
19
19
  "exports": {
@@ -1,5 +1,5 @@
1
1
  import type * as elastic from '@elastic/elasticsearch/lib/api/types';
2
- import type { ExecutionContext } from '@opra/core';
2
+ import { ExecutionContext, ServiceBase } from '@opra/core';
3
3
  import type { Nullish, PartialDTO, PatchDTO, RequiredSome, Type } from 'ts-gems';
4
4
  import { ElasticAdapter } from './elastic-adapter.js';
5
5
  import { ElasticEntityService } from './elastic-entity-service.js';
@@ -51,7 +51,7 @@ export declare class ElasticCollectionService<T extends object = any> extends El
51
51
  * @constructor
52
52
  */
53
53
  constructor(dataType: Type | string, options?: ElasticCollectionService.Options);
54
- for<C extends ExecutionContext, P extends Partial<this>>(context: C, overwriteProperties?: Nullish<P>, overwriteContext?: Partial<C>): this & Required<P>;
54
+ for<C extends ExecutionContext, P extends Partial<this>>(context: C | ServiceBase, overwriteProperties?: Nullish<P>, overwriteContext?: Partial<C>): this & Required<P>;
55
55
  /**
56
56
  * Asserts the existence of a resource with the given ID.
57
57
  * Throws a ResourceNotFoundError if the resource does not exist.