@travetto/model-elasticsearch 7.0.4 → 7.0.6

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/README.md CHANGED
@@ -30,7 +30,7 @@ Out of the box, by installing the module, everything should be wired up by defau
30
30
  **Code: Wiring up a custom Model Source**
31
31
  ```typescript
32
32
  import { InjectableFactory } from '@travetto/di';
33
- import { ElasticsearchModelConfig, ElasticsearchModelService } from '@travetto/model-elasticsearch';
33
+ import { type ElasticsearchModelConfig, ElasticsearchModelService } from '@travetto/model-elasticsearch';
34
34
 
35
35
  export class Init {
36
36
  @InjectableFactory({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-elasticsearch",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "type": "module",
5
5
  "description": "Elasticsearch backing for the travetto model module, with real-time modeling support for Elasticsearch mappings.",
6
6
  "keywords": [
@@ -29,10 +29,17 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@elastic/elasticsearch": "^9.2.0",
32
- "@travetto/cli": "^7.0.4",
33
- "@travetto/config": "^7.0.4",
34
- "@travetto/model": "^7.0.4",
35
- "@travetto/model-query": "^7.0.4"
32
+ "@travetto/config": "^7.0.5",
33
+ "@travetto/model": "^7.0.5",
34
+ "@travetto/model-query": "^7.0.5"
35
+ },
36
+ "peerDependencies": {
37
+ "@travetto/cli": "^7.0.6"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "@travetto/cli": {
41
+ "optional": true
42
+ }
36
43
  },
37
44
  "travetto": {
38
45
  "displayName": "Elasticsearch Model Source"
package/src/config.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { TimeSpan } from '@travetto/runtime';
1
+ import type { TimeSpan } from '@travetto/runtime';
2
2
  import { Config } from '@travetto/config';
3
3
 
4
- import { EsSchemaConfig } from './internal/types.ts';
4
+ import type { EsSchemaConfig } from './internal/types.ts';
5
5
 
6
6
  /**
7
7
  * Elasticsearch model config
@@ -1,9 +1,9 @@
1
- import { Client, estypes } from '@elastic/elasticsearch';
1
+ import type { Client, estypes } from '@elastic/elasticsearch';
2
2
 
3
- import { Class } from '@travetto/runtime';
4
- import { ModelRegistryIndex, ModelType, ModelStorageSupport } from '@travetto/model';
3
+ import type { Class } from '@travetto/runtime';
4
+ import { ModelRegistryIndex, type ModelType, type ModelStorageSupport } from '@travetto/model';
5
5
 
6
- import { ElasticsearchModelConfig } from './config.ts';
6
+ import type { ElasticsearchModelConfig } from './config.ts';
7
7
  import { ElasticsearchSchemaUtil } from './internal/schema.ts';
8
8
 
9
9
  /**
@@ -1,11 +1,11 @@
1
- import { estypes } from '@elastic/elasticsearch';
1
+ import type { estypes } from '@elastic/elasticsearch';
2
2
 
3
- import { castTo, Class, TypedObject } from '@travetto/runtime';
4
- import { WhereClause, SelectClause, SortClause, Query, ModelQueryUtil } from '@travetto/model-query';
5
- import { IndexConfig, ModelType, ModelRegistryIndex } from '@travetto/model';
3
+ import { castTo, type Class, TypedObject } from '@travetto/runtime';
4
+ import { type WhereClause, type SelectClause, type SortClause, type Query, ModelQueryUtil } from '@travetto/model-query';
5
+ import { type IndexConfig, type ModelType, ModelRegistryIndex } from '@travetto/model';
6
6
  import { DataUtil, SchemaRegistryIndex } from '@travetto/schema';
7
7
 
8
- import { EsSchemaConfig } from './types.ts';
8
+ import { type EsSchemaConfig } from './types.ts';
9
9
 
10
10
  /**
11
11
  * Support tools for dealing with elasticsearch specific requirements
@@ -1,9 +1,9 @@
1
- import { estypes } from '@elastic/elasticsearch';
1
+ import type { estypes } from '@elastic/elasticsearch';
2
2
 
3
- import { Class, toConcrete } from '@travetto/runtime';
4
- import { Point, DataUtil, SchemaRegistryIndex } from '@travetto/schema';
3
+ import { type Class, toConcrete } from '@travetto/runtime';
4
+ import { type Point, DataUtil, SchemaRegistryIndex } from '@travetto/schema';
5
5
 
6
- import { EsSchemaConfig } from './types.ts';
6
+ import type { EsSchemaConfig } from './types.ts';
7
7
 
8
8
  const PointConcrete = toConcrete<Point>();
9
9
 
package/src/service.ts CHANGED
@@ -1,23 +1,23 @@
1
- import { Client, errors, estypes } from '@elastic/elasticsearch';
1
+ import { Client, errors, type estypes } from '@elastic/elasticsearch';
2
2
 
3
3
  import {
4
- ModelCrudSupport, BulkOperation, BulkResponse, ModelBulkSupport, ModelExpirySupport,
5
- ModelIndexedSupport, ModelType, ModelStorageSupport, NotFoundError, ModelRegistryIndex, OptionalId,
4
+ type ModelCrudSupport, type BulkOperation, type BulkResponse, type ModelBulkSupport, type ModelExpirySupport,
5
+ type ModelIndexedSupport, type ModelType, type ModelStorageSupport, NotFoundError, ModelRegistryIndex, type OptionalId,
6
6
  ModelCrudUtil, ModelIndexedUtil, ModelStorageUtil, ModelExpiryUtil, ModelBulkUtil,
7
7
  } from '@travetto/model';
8
8
  import { ShutdownManager, type DeepPartial, type Class, castTo, asFull, TypedObject, asConstructable } from '@travetto/runtime';
9
9
  import { BindUtil } from '@travetto/schema';
10
10
  import { Injectable } from '@travetto/di';
11
11
  import {
12
- ModelQuery, ModelQueryCrudSupport, ModelQueryFacetSupport,
13
- ModelQuerySupport, PageableModelQuery, Query, ValidStringFields,
14
- QueryVerifier, ModelQuerySuggestSupport,
12
+ type ModelQuery, type ModelQueryCrudSupport, type ModelQueryFacetSupport,
13
+ type ModelQuerySupport, type PageableModelQuery, type Query, type ValidStringFields,
14
+ QueryVerifier, type ModelQuerySuggestSupport,
15
15
  ModelQueryUtil, ModelQuerySuggestUtil, ModelQueryCrudUtil,
16
- ModelQueryFacet,
16
+ type ModelQueryFacet,
17
17
  } from '@travetto/model-query';
18
18
 
19
- import { ElasticsearchModelConfig } from './config.ts';
20
- import { EsBulkError } from './internal/types.ts';
19
+ import type { ElasticsearchModelConfig } from './config.ts';
20
+ import type { EsBulkError } from './internal/types.ts';
21
21
  import { ElasticsearchQueryUtil } from './internal/query.ts';
22
22
  import { ElasticsearchSchemaUtil } from './internal/schema.ts';
23
23
  import { IndexManager } from './index-manager.ts';