Skip to content

Commit 46afa19

Browse files
aaanhbhufmann
authored andcommitted
Add GANTT_CHART enum to output-descriptor
1 parent dc7ccd1 commit 46afa19

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

tsp-typescript-client/src/models/output-descriptor.ts

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,44 @@
1-
import { createNormalizer } from '../protocol/serialization';
2-
import { Configuration } from './configuration';
3-
import { OutputCapabilities } from './output-capabilities';
1+
import { createNormalizer } from "../protocol/serialization";
2+
import { Configuration } from "./configuration";
3+
import { OutputCapabilities } from "./output-capabilities";
44

55
export const OutputDescriptor = createNormalizer<OutputDescriptor>({
66
end: BigInt,
77
queryParameters: undefined,
88
start: BigInt,
9-
configuration: Configuration
9+
configuration: Configuration,
1010
});
1111

1212
/**
13-
* Provider type
13+
* Provider type
1414
*/
1515
export enum ProviderType {
1616
/**
1717
* A provider for a table data structure implemented as virtual table.
1818
*/
19-
TABLE = 'TABLE',
19+
TABLE = "TABLE",
2020
/**
2121
* A provider for a tree, whose entries have XY series. The x-series is time.
2222
*/
23-
TREE_TIME_XY = 'TREE_TIME_XY',
23+
TREE_TIME_XY = "TREE_TIME_XY",
2424
/**
2525
* A provider for a Time Graph model, which has entries with a start and end
2626
* time, each entry has a series of states, arrows link from one series to
2727
* another
2828
*/
29-
TIME_GRAPH = 'TIME_GRAPH',
29+
TIME_GRAPH = "TIME_GRAPH",
3030
/**
3131
* A provider for a data tree, which has entries (rows) and columns.
3232
*/
33-
DATA_TREE = 'DATA_TREE',
33+
DATA_TREE = "DATA_TREE",
3434
/**
3535
* A provider with no data. Can be used for grouping purposes and/or as data provider configurator.
3636
*/
37-
NONE = 'NONE'
37+
NONE = "NONE",
38+
/**
39+
* A provider for a gantt chart (abitrary x-axis). E.g. flame graph.
40+
*/
41+
GANTT_CHART = "GANTT_CHART",
3842
}
3943

4044
/**
@@ -64,7 +68,7 @@ export interface OutputDescriptor {
6468
/**
6569
* Type of data returned by this output.
6670
* Serve as a hint to determine what kind of view should be use for this output (ex. XY, Time Graph, Table, etc..)
67-
*
71+
*
6872
* See {@link ProviderType} for supported strings.
6973
*/
7074
type: string;

0 commit comments

Comments
 (0)