Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 15 additions & 11 deletions tsp-typescript-client/src/models/output-descriptor.ts
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
import { createNormalizer } from '../protocol/serialization';
import { Configuration } from './configuration';
import { OutputCapabilities } from './output-capabilities';
import { createNormalizer } from "../protocol/serialization";
import { Configuration } from "./configuration";
import { OutputCapabilities } from "./output-capabilities";

export const OutputDescriptor = createNormalizer<OutputDescriptor>({
end: BigInt,
queryParameters: undefined,
start: BigInt,
configuration: Configuration
configuration: Configuration,
});

/**
* Provider type
* Provider type
*/
export enum ProviderType {
/**
* A provider for a table data structure implemented as virtual table.
*/
TABLE = 'TABLE',
TABLE = "TABLE",
/**
* A provider for a tree, whose entries have XY series. The x-series is time.
*/
TREE_TIME_XY = 'TREE_TIME_XY',
TREE_TIME_XY = "TREE_TIME_XY",
/**
* A provider for a Time Graph model, which has entries with a start and end
* time, each entry has a series of states, arrows link from one series to
* another
*/
TIME_GRAPH = 'TIME_GRAPH',
TIME_GRAPH = "TIME_GRAPH",
/**
* A provider for a data tree, which has entries (rows) and columns.
*/
DATA_TREE = 'DATA_TREE',
DATA_TREE = "DATA_TREE",
/**
* A provider with no data. Can be used for grouping purposes and/or as data provider configurator.
*/
NONE = 'NONE'
NONE = "NONE",
/**
* A provider for a gantt chart (abitrary x-axis). E.g. flame graph.
*/
GANTT_CHART = "GANTT_CHART",
}

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