@opra/elastic 1.0.0-alpha.28 → 1.0.0-alpha.30
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/cjs/elastic-adapter.js
CHANGED
|
@@ -17,7 +17,7 @@ var ElasticAdapter;
|
|
|
17
17
|
ElasticAdapter.prepareSort = prepare_sort_js_1.default;
|
|
18
18
|
async function parseRequest(context) {
|
|
19
19
|
const { operation } = context;
|
|
20
|
-
if (operation
|
|
20
|
+
if (operation?.composition?.startsWith('Entity.') && operation.compositionOptions?.type) {
|
|
21
21
|
const controller = operation.owner;
|
|
22
22
|
switch (operation.composition) {
|
|
23
23
|
case 'Entity.Create': {
|
package/esm/elastic-adapter.js
CHANGED
|
@@ -13,7 +13,7 @@ export var ElasticAdapter;
|
|
|
13
13
|
ElasticAdapter.prepareSort = _prepareSort;
|
|
14
14
|
async function parseRequest(context) {
|
|
15
15
|
const { operation } = context;
|
|
16
|
-
if (operation
|
|
16
|
+
if (operation?.composition?.startsWith('Entity.') && operation.compositionOptions?.type) {
|
|
17
17
|
const controller = operation.owner;
|
|
18
18
|
switch (operation.composition) {
|
|
19
19
|
case 'Entity.Create': {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/elastic",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.30",
|
|
4
4
|
"description": "Opra Elastic Search adapter package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"clean:cover": "rimraf ../../coverage/client"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"putil-isplainobject": "^1.1.5"
|
|
31
|
+
"putil-isplainobject": "^1.1.5",
|
|
32
|
+
"tslib": "^2.6.3"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
35
|
"@elastic/elasticsearch": "^8.14.0",
|
|
@@ -37,8 +38,8 @@
|
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"@elastic/elasticsearch": ">=8.7.0",
|
|
40
|
-
"@opra/common": "^1.0.0-alpha.
|
|
41
|
-
"@opra/core": "^1.0.0-alpha.
|
|
41
|
+
"@opra/common": "^1.0.0-alpha.30",
|
|
42
|
+
"@opra/core": "^1.0.0-alpha.30"
|
|
42
43
|
},
|
|
43
44
|
"type": "module",
|
|
44
45
|
"module": "./esm/index.js",
|
|
@@ -35,7 +35,7 @@ export declare namespace ElasticService {
|
|
|
35
35
|
*/
|
|
36
36
|
export declare class ElasticService<T extends object> extends ServiceBase {
|
|
37
37
|
protected _dataType_: Type | string;
|
|
38
|
-
protected _dataType
|
|
38
|
+
protected _dataType?: ComplexType;
|
|
39
39
|
protected _inputCodecs: Record<string, IsObject.Validator<T>>;
|
|
40
40
|
protected _outputCodecs: Record<string, IsObject.Validator<T>>;
|
|
41
41
|
/**
|