File tree Expand file tree Collapse file tree 4 files changed +26
-16
lines changed
packages/types/src/rest-api-manager Expand file tree Collapse file tree 4 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,9 @@ export type HealthCheckInfo = {
22
22
[ key : string ] : boolean ;
23
23
} ;
24
24
}
25
+
26
+ export type Pagination = {
27
+ pagination : {
28
+ total : number
29
+ }
30
+ }
Original file line number Diff line number Diff line change 1
1
import { GetInstanceResponse } from "../rest-api-sth" ;
2
+ import { Pagination } from "./common" ;
2
3
3
- export type GetInstancesResponse = GetInstanceResponse [ ] ;
4
+ export type GetInstancesResponse = Pagination & { data : GetInstanceResponse [ ] } ;
Original file line number Diff line number Diff line change 1
- import { ConnectedSTHInfoDetails } from "./common" ;
1
+ import { ConnectedSTHInfoDetails , Pagination } from "./common" ;
2
2
3
- export type GetListResponse = {
4
- id : string ,
5
- info : ConnectedSTHInfoDetails ,
6
- healthy : boolean ,
7
- selfHosted : boolean ,
8
- isConnectionActive : boolean ,
9
- description ?: string ,
10
- tags ?: string [ ] ,
11
- disconnectReason ?: string ,
12
- topics : string [ ] ,
13
- sequences : string [ ] ,
14
- instances : string [ ] ,
15
- } [ ]
3
+ export type GetListResponse = Pagination & {
4
+ data : {
5
+ id : string ,
6
+ info : ConnectedSTHInfoDetails ,
7
+ healthy : boolean ,
8
+ selfHosted : boolean ,
9
+ isConnectionActive : boolean ,
10
+ description ?: string ,
11
+ tags ?: string [ ] ,
12
+ disconnectReason ?: string ,
13
+ topics : string [ ] ,
14
+ sequences : string [ ] ,
15
+ instances : string [ ] ,
16
+ } [ ]
17
+ }
Original file line number Diff line number Diff line change
1
+ import { Pagination } from "./common" ;
1
2
import { GetSequenceResponse } from "./get-sequence" ;
2
3
3
- export type GetSequencesResponse = GetSequenceResponse [ ] ;
4
+ export type GetSequencesResponse = Pagination & { data : GetSequenceResponse [ ] }
You can’t perform that action at this time.
0 commit comments