Skip to content
Snippets Groups Projects
Commit d07e3bc2 authored by Tom Robinson's avatar Tom Robinson
Browse files

Export types

parent 5cf8f047
No related branches found
No related tags found
No related merge requests found
......@@ -4,39 +4,39 @@ import type { CardObject, CardId } from "./Card";
import type { ConcreteField } from "./Query";
type DashboardObject = {
export type DashboardObject = {
id: number,
ordered_cards: Array<DashCardObject>,
// incomplete
parameters: Array<ParameterObject>
};
type DashCardObject = {
export type DashCardObject = {
id: number,
series: Array<CardObject>,
// incomplete
parameter_mappings: Array<ParameterMappingObject>;
};
type ParameterId = string;
export type ParameterId = string;
type ParameterType =
export type ParameterType =
"date-range" |
"category" |
"id";
type ParameterObject = {
export type ParameterObject = {
id: ParameterId,
name: string,
type: ParameterType,
default: any
};
type ParameterMappingTarget =
export type ParameterMappingTarget =
["parameter", string] |
["dimension", ConcreteField];
type ParameterMappingObject = {
export type ParameterMappingObject = {
card_id: CardId,
parameter_id: ParameterId,
target: ParameterMappingTarget
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment