File tree 2 files changed +25
-8
lines changed
packages/client-search/src/types
2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1
- export type Indice = {
1
+ export type Index = {
2
2
/**
3
3
* Index name.
4
4
*/
5
5
readonly name : string ;
6
6
7
7
/**
8
- * Index creation date.
8
+ * Index creation date. (ISO-8601 format)
9
9
*/
10
- readonly createdAt : number ;
10
+ readonly createdAt : string ;
11
11
12
12
/**
13
- * Date of last update.
13
+ * Date of last update. (ISO-8601 format)
14
14
*/
15
- readonly updatedAt : number ;
15
+ readonly updatedAt : string ;
16
16
17
17
/**
18
18
* Number of records contained in the index
@@ -32,7 +32,7 @@ export type Indice = {
32
32
/**
33
33
* Last build time in seconds.
34
34
*/
35
- readonly lastBuildTimes : number ;
35
+ readonly lastBuildTimeS : number ;
36
36
37
37
/**
38
38
* Number of pending indexing operations.
@@ -43,4 +43,21 @@ export type Indice = {
43
43
* A boolean which says whether the index has pending tasks.
44
44
*/
45
45
readonly pendingTask : boolean ;
46
+
47
+ /**
48
+ * Only present if the index is a replica.
49
+ * Contains the name of the related primary index.
50
+ */
51
+ readonly primary ?: string ;
52
+
53
+ /**
54
+ * Only present if the index is a primary index with replicas.
55
+ * Contains the names of all linked replicas.
56
+ */
57
+ readonly replicas ?: readonly string [ ] ;
46
58
} ;
59
+
60
+ /**
61
+ * @deprecated please use `Index` instead of `Indice`
62
+ */
63
+ export type Indice = Index ;
Original file line number Diff line number Diff line change 1
- import { Indice } from '.' ;
1
+ import { Index } from '.' ;
2
2
3
3
export type ListIndicesResponse = {
4
4
/**
@@ -9,5 +9,5 @@ export type ListIndicesResponse = {
9
9
/**
10
10
* List of index response
11
11
*/
12
- items : Indice [ ] ;
12
+ items : Index [ ] ;
13
13
} ;
You can’t perform that action at this time.
0 commit comments