@opra/elastic 1.26.1 → 1.26.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.
@@ -1,26 +1,5 @@
1
1
  import { Client } from '@elastic/elasticsearch';
2
2
  import { ServiceBase } from '@opra/core';
3
- /**
4
- * The namespace for the ElasticService.
5
- *
6
- * @namespace ElasticService
7
- */
8
- export declare namespace ElasticService {
9
- interface Options {
10
- client?: ElasticService['client'];
11
- interceptor?: ElasticService['interceptor'];
12
- onError?: ElasticService['onError'];
13
- }
14
- type CrudOp = 'create' | 'read' | 'update' | 'delete';
15
- interface CommandInfo {
16
- crud: CrudOp;
17
- method: string;
18
- byId: boolean;
19
- documentId?: any;
20
- input?: any;
21
- options?: any;
22
- }
23
- }
24
3
  export interface ElasticService {
25
4
  /**
26
5
  * Interceptor function for handling callback execution with provided arguments.
@@ -66,3 +45,24 @@ export declare class ElasticService extends ServiceBase {
66
45
  getClient(): Client;
67
46
  protected _executeCommand(command: ElasticService.CommandInfo, commandFn: () => any): Promise<any>;
68
47
  }
48
+ /**
49
+ * The namespace for the ElasticService.
50
+ *
51
+ * @namespace ElasticService
52
+ */
53
+ export declare namespace ElasticService {
54
+ interface Options extends ServiceBase.Options {
55
+ client?: ElasticService['client'];
56
+ interceptor?: ElasticService['interceptor'];
57
+ onError?: ElasticService['onError'];
58
+ }
59
+ type CrudOp = 'create' | 'read' | 'update' | 'delete';
60
+ interface CommandInfo {
61
+ crud: CrudOp;
62
+ method: string;
63
+ byId: boolean;
64
+ documentId?: any;
65
+ input?: any;
66
+ options?: any;
67
+ }
68
+ }
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@opra/elastic",
3
- "version": "1.26.1",
3
+ "version": "1.26.3",
4
4
  "description": "Opra Elastic Search adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "@jsopen/objects": "^2.2.0",
8
+ "@jsopen/objects": "^2.2.1",
9
9
  "tslib": "^2.8.1",
10
10
  "valgen": "^6.0.3"
11
11
  },
12
12
  "peerDependencies": {
13
13
  "@elastic/elasticsearch": ">=8.7.0 <10",
14
- "@opra/common": "^1.26.1",
15
- "@opra/core": "^1.26.1"
14
+ "@opra/common": "^1.26.3",
15
+ "@opra/core": "^1.26.3"
16
16
  },
17
17
  "type": "module",
18
18
  "module": "./index.js",