@travetto/model-elasticsearch 7.0.0-rc.0 → 7.0.0-rc.1
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 +5 -5
- package/src/internal/query.ts +1 -1
- package/src/internal/schema.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-elasticsearch",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.1",
|
|
4
4
|
"description": "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"elasticsearch",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@elastic/elasticsearch": "^9.2.0",
|
|
31
|
-
"@travetto/cli": "^7.0.0-rc.
|
|
32
|
-
"@travetto/config": "^7.0.0-rc.
|
|
33
|
-
"@travetto/model": "^7.0.0-rc.
|
|
34
|
-
"@travetto/model-query": "^7.0.0-rc.
|
|
31
|
+
"@travetto/cli": "^7.0.0-rc.1",
|
|
32
|
+
"@travetto/config": "^7.0.0-rc.1",
|
|
33
|
+
"@travetto/model": "^7.0.0-rc.1",
|
|
34
|
+
"@travetto/model-query": "^7.0.0-rc.1"
|
|
35
35
|
},
|
|
36
36
|
"travetto": {
|
|
37
37
|
"displayName": "Elasticsearch Model Source"
|
package/src/internal/query.ts
CHANGED
|
@@ -65,7 +65,7 @@ export class ElasticsearchQueryUtil {
|
|
|
65
65
|
*/
|
|
66
66
|
static extractWhereTermQuery<T>(cls: Class<T>, o: Record<string, unknown>, config?: EsSchemaConfig, path: string = ''): Record<string, unknown> {
|
|
67
67
|
const items = [];
|
|
68
|
-
const fields = SchemaRegistryIndex.
|
|
68
|
+
const fields = SchemaRegistryIndex.get(cls).getFields();
|
|
69
69
|
|
|
70
70
|
for (const key of TypedObject.keys(o)) {
|
|
71
71
|
const top = o[key];
|
package/src/internal/schema.ts
CHANGED
|
@@ -74,7 +74,7 @@ export class ElasticsearchSchemaUtil {
|
|
|
74
74
|
* Build a mapping for a given class
|
|
75
75
|
*/
|
|
76
76
|
static generateSingleMapping<T>(cls: Class<T>, config?: EsSchemaConfig): estypes.MappingTypeMapping {
|
|
77
|
-
const fields = SchemaRegistryIndex.
|
|
77
|
+
const fields = SchemaRegistryIndex.get(cls).getFields();
|
|
78
78
|
|
|
79
79
|
const props: Record<string, estypes.MappingProperty> = {};
|
|
80
80
|
|