@opra/elastic 1.0.0-beta.1 → 1.0.0-beta.2

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.1",
3
+ "version": "1.0.0-beta.2",
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.1",
16
- "@opra/core": "^1.0.0-beta.1"
15
+ "@opra/common": "^1.0.0-beta.2",
16
+ "@opra/core": "^1.0.0-beta.2"
17
17
  },
18
18
  "type": "module",
19
19
  "exports": {
@@ -1,6 +1,6 @@
1
1
  import type * as elastic from '@elastic/elasticsearch/lib/api/types';
2
2
  import { HttpContext } from '@opra/core';
3
- import type { DTO, Nullish, PartialDTO, PatchDTO, RequiredSome, Type } from 'ts-gems';
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';
6
6
  import { ElasticService } from './elastic-service.js';
@@ -70,7 +70,7 @@ export declare class ElasticCollectionService<T extends object = any> extends El
70
70
  * @returns {Promise<PartialDTO<T>>} A promise that resolves to the created document.
71
71
  * @throws {Error} if an unknown error occurs while creating the document.
72
72
  */
73
- create(input: DTO<T>, options?: ElasticEntityService.CreateOptions): Promise<elastic.CreateResponse>;
73
+ create(input: PartialDTO<T>, options?: ElasticEntityService.CreateOptions): Promise<elastic.CreateResponse>;
74
74
  /**
75
75
  * Returns the count of documents in the collection based on the provided options.
76
76
  *