@indxsearch/indx-types 2.0.0 → 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 +8 -0
- 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,6 +5,14 @@ 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.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
|
+
|
|
8
16
|
## [2.0.0] - 2026-08-25
|
|
9
17
|
|
|
10
18
|
First stable release of the v2 line, targeting IndxCloudApi v2 (IndxSearchLib v5).
|
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",
|