@indxsearch/indx-types 2.0.0-alpha.20260617 → 2.1.0
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/CHANGELOG.md +19 -2
- package/README.md +1 -1
- package/dist/enums.d.ts +9 -0
- package/dist/enums.js +10 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/synonyms.d.ts +24 -0
- package/dist/synonyms.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,10 +5,27 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [2.
|
|
8
|
+
## [2.1.0] - 2026-09-08
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- `SynonymList`, `SynonymEntry`, and the `SynonymDirection` enum, typing the
|
|
13
|
+
`GET`/`PUT …/synonyms` endpoints. `direction` is numeric on the wire
|
|
14
|
+
(0 = Multidirectional, 1 = OneWay), like every enum in this API.
|
|
15
|
+
|
|
16
|
+
## [2.0.0] - 2026-08-25
|
|
17
|
+
|
|
18
|
+
First stable release of the v2 line, targeting IndxCloudApi v2 (IndxSearchLib v5).
|
|
19
|
+
(Consolidates the unpublished 2026-05-12 draft and the `2.0.0-alpha.20260617`
|
|
20
|
+
pre-release that shipped under the `next` tag.)
|
|
9
21
|
|
|
10
22
|
### Changed
|
|
11
|
-
-
|
|
23
|
+
- **BREAKING**: Type definitions target IndxCloudApi v2 (Indx v5).
|
|
24
|
+
- `DataSetListDto` reflects the team model (`name`, `teamName`, `role`).
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
- `LicenseInfo.licenseFileFound` and `ProcessError.timeStampUtc`, matching the
|
|
28
|
+
IndxCloudApi v2 OpenAPI schema exactly (verified field-by-field).
|
|
12
29
|
|
|
13
30
|
### Compatibility
|
|
14
31
|
- Requires IndxCloudApi v2
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ npm install @indxsearch/indx-types
|
|
|
18
18
|
|
|
19
19
|
## Version Compatibility
|
|
20
20
|
|
|
21
|
-
This package (`@indxsearch/indx-types`
|
|
21
|
+
This package (`@indxsearch/indx-types` 2.x) provides types for **IndxCloudApi v2.0** (IndxSearchLib v5). The shapes are generated from and verified against the live v5 OpenAPI spec.
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
package/dist/enums.d.ts
CHANGED
|
@@ -12,3 +12,12 @@ export declare enum BoostStrength {
|
|
|
12
12
|
Medium = 2,
|
|
13
13
|
High = 3
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* How a SynonymEntry expands. Multidirectional: every term in the entry triggers the whole
|
|
17
|
+
* group. OneWay: only `source` expands, into `terms` (acronyms).
|
|
18
|
+
* Numeric on the wire, like every enum in this API.
|
|
19
|
+
*/
|
|
20
|
+
export declare enum SynonymDirection {
|
|
21
|
+
Multidirectional = 0,
|
|
22
|
+
OneWay = 1
|
|
23
|
+
}
|
package/dist/enums.js
CHANGED
|
@@ -14,3 +14,13 @@ export var BoostStrength;
|
|
|
14
14
|
BoostStrength[BoostStrength["Medium"] = 2] = "Medium";
|
|
15
15
|
BoostStrength[BoostStrength["High"] = 3] = "High";
|
|
16
16
|
})(BoostStrength || (BoostStrength = {}));
|
|
17
|
+
/**
|
|
18
|
+
* How a SynonymEntry expands. Multidirectional: every term in the entry triggers the whole
|
|
19
|
+
* group. OneWay: only `source` expands, into `terms` (acronyms).
|
|
20
|
+
* Numeric on the wire, like every enum in this API.
|
|
21
|
+
*/
|
|
22
|
+
export var SynonymDirection;
|
|
23
|
+
(function (SynonymDirection) {
|
|
24
|
+
SynonymDirection[SynonymDirection["Multidirectional"] = 0] = "Multidirectional";
|
|
25
|
+
SynonymDirection[SynonymDirection["OneWay"] = 1] = "OneWay";
|
|
26
|
+
})(SynonymDirection || (SynonymDirection = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export { SystemState, BoostStrength } from './enums';
|
|
1
|
+
export { SystemState, BoostStrength, SynonymDirection } from './enums';
|
|
2
2
|
export { JsonErrorType } from './errors';
|
|
3
3
|
export { LoginInfo, LoginResponse, ChangePasswordRequest } from './auth';
|
|
4
4
|
export { CloudQuery, CoverageSetup } from './query';
|
|
5
5
|
export { FilterProxy, RangeFilterProxy, ValueFilterProxy, CombinedFilterProxy, UpdateFieldProxy, FilterFieldUpdateProxy } from './filters';
|
|
6
6
|
export { BoostProxy } from './boost';
|
|
7
|
+
export { SynonymList, SynonymEntry } from './synonyms';
|
|
7
8
|
export { VectorQueryProxy, HybridQueryProxy, EmbeddingResultEntry } from './vector';
|
|
8
9
|
export { Result, ScoreEntry } from './result';
|
|
9
10
|
export { SystemStatus, LicenseInfo } from './status';
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SynonymDirection } from './enums';
|
|
2
|
+
/**
|
|
3
|
+
* One synonym rule: a set of terms plus the direction they expand in. Multi-word terms are
|
|
4
|
+
* matched as whole phrases.
|
|
5
|
+
*/
|
|
6
|
+
export interface SynonymEntry {
|
|
7
|
+
direction: SynonymDirection;
|
|
8
|
+
/** The trigger term for OneWay entries; null/omitted for Multidirectional ones. */
|
|
9
|
+
source?: string | null;
|
|
10
|
+
/** Terms appended to the query when the entry matches. */
|
|
11
|
+
terms: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* A dataset's synonym list. GET/PUT api/teams/{team}/datasets/{dataset}/synonyms —
|
|
15
|
+
* GET returns the list or a literal null; PUT replaces it (a null body removes it, editor
|
|
16
|
+
* role required). Expansion happens at search time, so a PUT applies on the next search
|
|
17
|
+
* with no re-indexing.
|
|
18
|
+
*/
|
|
19
|
+
export interface SynonymList {
|
|
20
|
+
name?: string;
|
|
21
|
+
description?: string | null;
|
|
22
|
+
updatedUtc?: string;
|
|
23
|
+
entries: SynonymEntry[];
|
|
24
|
+
}
|
package/dist/synonyms.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indxsearch/indx-types",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "TypeScript type definitions for IndxCloudApi v2. Provides complete types for search queries, filters, boosts, results, and system status based on the official Swagger specification.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"indx",
|