@indxsearch/indx-types 4.0.0-beta.2 → 4.0.0-beta.3
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 +6 -0
- package/dist/access.d.ts +19 -0
- package/dist/access.js +1 -0
- package/dist/fields.d.ts +0 -1
- package/dist/query.d.ts +1 -1
- package/dist/result.d.ts +4 -0
- package/dist/status.d.ts +6 -0
- package/dist/vector.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/access.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface DataSetListDto {
|
|
2
|
+
name: string;
|
|
3
|
+
ownerUserId?: string | null;
|
|
4
|
+
/** "owner" | "editor" | "viewer" */
|
|
5
|
+
role: string;
|
|
6
|
+
}
|
|
7
|
+
export interface AccessGrantDto {
|
|
8
|
+
email: string;
|
|
9
|
+
/** "editor" | "viewer" */
|
|
10
|
+
role: string;
|
|
11
|
+
}
|
|
12
|
+
export interface GrantAccessRequest {
|
|
13
|
+
granteeEmail: string;
|
|
14
|
+
/** "editor" | "viewer" */
|
|
15
|
+
role: string;
|
|
16
|
+
}
|
|
17
|
+
export interface TransferOwnershipRequest {
|
|
18
|
+
newOwnerEmail: string;
|
|
19
|
+
}
|
package/dist/access.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/fields.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export interface FieldProxy {
|
|
|
21
21
|
numberOfStartCharacters?: number | null;
|
|
22
22
|
numberOfStopCharacters?: number | null;
|
|
23
23
|
embeddable?: boolean | null;
|
|
24
|
-
preloadFilters?: boolean | null;
|
|
25
24
|
/** Score weight multiplier (typical 1.0–3.0). Only meaningful when searchable. */
|
|
26
25
|
weight?: number | null;
|
|
27
26
|
/** Per-field length-normalisation parameter b. Range [0,1]. */
|
package/dist/query.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface MatchSetup {
|
|
|
13
13
|
threeEditsFrom?: number;
|
|
14
14
|
/** Where the cursor is in the text: the word it is in is the one being typed. Null: the last word. */
|
|
15
15
|
cursorAt?: number | null;
|
|
16
|
-
/** The word being typed also as the start of a longer word from this many letters (
|
|
16
|
+
/** The word being typed also as the start of a longer word from this many letters (2), and within one edit from (6). */
|
|
17
17
|
typingPrefixFrom?: number;
|
|
18
18
|
typingPrefixOneEditFrom?: number;
|
|
19
19
|
/** Words written together or apart count as the word. Default true. */
|
package/dist/result.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ import { ProcessError } from './errors.js';
|
|
|
4
4
|
import { IndxProblem } from './problem.js';
|
|
5
5
|
export interface ScoreEntry {
|
|
6
6
|
documentKey: number;
|
|
7
|
+
/** The key as text (6.0: keys are text); a text key's documentKey is past what a number holds exactly. */
|
|
8
|
+
key?: string;
|
|
7
9
|
score: number;
|
|
8
10
|
}
|
|
9
11
|
/** How a query word was met in a record. */
|
|
@@ -16,6 +18,8 @@ export interface QueryWordMatch {
|
|
|
16
18
|
}
|
|
17
19
|
export interface RecordMatch {
|
|
18
20
|
documentKey: number;
|
|
21
|
+
/** The key as text (6.0: keys are text); a text key's documentKey is past what a number holds exactly. */
|
|
22
|
+
key?: string;
|
|
19
23
|
/** The query's words, in its order. */
|
|
20
24
|
words: QueryWordMatch[];
|
|
21
25
|
}
|
package/dist/status.d.ts
CHANGED
|
@@ -16,6 +16,12 @@ export interface LicenseInfo {
|
|
|
16
16
|
export interface SystemStatus {
|
|
17
17
|
systemState: SystemState;
|
|
18
18
|
documentCount: number;
|
|
19
|
+
/** The filters kept between searches, how many there are. */
|
|
20
|
+
filterCacheFilters: number;
|
|
21
|
+
/** What the kept filters take, in bytes. */
|
|
22
|
+
filterCacheBytes: number;
|
|
23
|
+
/** The most they may take, in bytes: the dataset's filter cache in megabytes. 0 while it is not loaded. */
|
|
24
|
+
filterCacheLimitBytes: number;
|
|
19
25
|
searchCounter: number;
|
|
20
26
|
secondsToIndex: number;
|
|
21
27
|
invalidDataSetName: boolean;
|
package/dist/vector.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indxsearch/indx-types",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.3",
|
|
4
4
|
"description": "TypeScript type definitions for Indx 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",
|