Skip to content

Commit c4fff65

Browse files
committed
Move ExtractStreamResp type definition into typings.
1 parent ce6603b commit c4fff65

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

components/log-viewer-webui/client/src/api/query.ts

+4-11
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@ import axios, {
33
AxiosResponse,
44
} from "axios";
55

6-
import {QUERY_JOB_TYPE} from "../typings/query";
7-
8-
9-
interface ExtractStreamResp {
10-
_id: string;
11-
begin_msg_ix: number;
12-
end_msg_ix: number;
13-
is_last_chunk: boolean;
14-
path: string;
15-
stream_id: string;
16-
}
6+
import {
7+
ExtractStreamResp,
8+
QUERY_JOB_TYPE,
9+
} from "../typings/query";
1710

1811

1912
/**

components/log-viewer-webui/client/src/typings/query.ts

+11
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,15 @@ const ExtractJobSearchParams = Type.Object({
4343
logEventIdx: Type.Number(),
4444
});
4545

46+
interface ExtractStreamResp {
47+
_id: string;
48+
begin_msg_ix: number;
49+
end_msg_ix: number;
50+
is_last_chunk: boolean;
51+
path: string;
52+
stream_id: string;
53+
}
54+
4655
interface QueryLoadingStateDescription {
4756
label: string;
4857
description: string;
@@ -68,6 +77,8 @@ const QUERY_LOADING_STATE_DESCRIPTIONS
6877
},
6978
});
7079

80+
81+
export type {ExtractStreamResp};
7182
export {
7283
EXTRACT_JOB_TYPE,
7384
ExtractJobSearchParams,

0 commit comments

Comments
 (0)