-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { FacetedCompositeUnitSpec } from 'vega-lite/build/src/spec'; | ||
import { ResultPlot } from '../models/result'; | ||
import { PlainReduxAction, ReduxAction } from './redux-action'; | ||
export declare type BookmarkAction = BookmarkAddPlot | BookmarkClearAll | BookmarkRemovePlot | BookmarkModifyNote; | ||
export declare const BOOKMARK_ADD_PLOT = "BOOKMARK_ADD_PLOT"; | ||
export declare type BookmarkAddPlot = ReduxAction<typeof BOOKMARK_ADD_PLOT, { | ||
plot: ResultPlot; | ||
}>; | ||
export declare const BOOKMARK_REMOVE_PLOT = "BOOKMARK_REMOVE_PLOT"; | ||
export declare type BookmarkRemovePlot = ReduxAction<typeof BOOKMARK_REMOVE_PLOT, { | ||
spec: FacetedCompositeUnitSpec; | ||
}>; | ||
export declare const BOOKMARK_MODIFY_NOTE = "BOOKMARK_MODIFY_NOTE"; | ||
export declare type BookmarkModifyNote = ReduxAction<typeof BOOKMARK_MODIFY_NOTE, { | ||
note: string; | ||
spec: FacetedCompositeUnitSpec; | ||
}>; | ||
export declare const BOOKMARK_CLEAR_ALL = "BOOKMARK_CLEAR_ALL"; | ||
export declare type BookmarkClearAll = PlainReduxAction<typeof BOOKMARK_CLEAR_ALL>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { VoyagerConfig } from '../models/config'; | ||
import { ReduxAction } from './redux-action'; | ||
export declare type ConfigAction = SetConfig; | ||
export declare const SET_CONFIG = "SET_CONFIG"; | ||
export declare type SetConfig = ReduxAction<typeof SET_CONFIG, { | ||
config: VoyagerConfig; | ||
}>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { ExpandedType } from 'compassql/build/src/query/expandedtype'; | ||
import { ReduxAction } from './redux-action'; | ||
export declare type CustomWildcardAction = CustomWildcardAdd | CustomWildcardAddField | CustomWildcardRemove | CustomWildcardRemoveField | CustomWildcardModifyDescription; | ||
export declare const CUSTOM_WILDCARD_ADD = "CUSTOM_WILDCARD_ADD"; | ||
export declare type CustomWildcardAdd = ReduxAction<typeof CUSTOM_WILDCARD_ADD, { | ||
fields: string[]; | ||
type: ExpandedType; | ||
index?: number; | ||
}>; | ||
export declare const CUSTOM_WILDCARD_REMOVE = "CUSTOM_WILDCARD_REMOVE"; | ||
export declare type CustomWildcardRemove = ReduxAction<typeof CUSTOM_WILDCARD_REMOVE, { | ||
index: number; | ||
}>; | ||
export declare const CUSTOM_WILDCARD_ADD_FIELD = "CUSTOM_WILDCARD_ADD_FIELD"; | ||
export declare type CustomWildcardAddField = ReduxAction<typeof CUSTOM_WILDCARD_ADD_FIELD, { | ||
fields: string[]; | ||
index: number; | ||
}>; | ||
export declare const CUSTOM_WILDCARD_REMOVE_FIELD = "CUSTOM_WILDCARD_REMOVE_FIELD"; | ||
export declare type CustomWildcardRemoveField = ReduxAction<typeof CUSTOM_WILDCARD_REMOVE_FIELD, { | ||
field: string; | ||
index: number; | ||
}>; | ||
export declare const CUSTOM_WILDCARD_MODIFY_DESCRIPTION = "CUSTOM_WILDCARD_MODIFY_DESCRIPTION"; | ||
export declare type CustomWildcardModifyDescription = ReduxAction<typeof CUSTOM_WILDCARD_MODIFY_DESCRIPTION, { | ||
description: string; | ||
index: number; | ||
}>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { ExpandedType } from 'compassql/build/src/query/expandedtype'; | ||
import { Schema } from 'compassql/build/src/schema'; | ||
import { ThunkAction } from 'redux-thunk'; | ||
import { Data, InlineData } from 'vega-lite/build/src/data'; | ||
import { State } from '../models/index'; | ||
import { ReduxAction } from './redux-action'; | ||
export declare const DATASET_SCHEMA_CHANGE_FIELD_TYPE = "DATASET_SCHEMA_CHANGE_FIELD_TYPE"; | ||
export declare type DatasetSchemaChangeFieldType = ReduxAction<typeof DATASET_SCHEMA_CHANGE_FIELD_TYPE, { | ||
field: string; | ||
type: ExpandedType; | ||
}>; | ||
export declare const DATASET_SCHEMA_CHANGE_ORDINAL_DOMAIN = "DATASET_SCHEMA_CHANGE_ORDINAL_DOMAIN"; | ||
export declare type DatasetSchemaChangeOrdinalDomain = ReduxAction<typeof DATASET_SCHEMA_CHANGE_ORDINAL_DOMAIN, { | ||
field: string; | ||
domain: string[]; | ||
}>; | ||
export declare type DatasetAction = DatasetSchemaChangeFieldType | DatasetSchemaChangeOrdinalDomain | DatasetRequest | DatasetReceive; | ||
export declare type DatasetAsyncAction = DatasetLoad; | ||
export declare const DATASET_REQUEST = "DATASET_REQUEST"; | ||
export declare type DatasetRequest = ReduxAction<typeof DATASET_REQUEST, { | ||
name: string; | ||
}>; | ||
export declare const DATASET_RECEIVE = "DATASET_RECEIVE"; | ||
export declare type DatasetReceive = ReduxAction<typeof DATASET_RECEIVE, { | ||
name: string; | ||
data: InlineData; | ||
schema: Schema; | ||
}>; | ||
export declare type DatasetLoad = ThunkAction<void, State, undefined>; | ||
export declare function datasetLoad(name: string, data: Data): DatasetLoad; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import { BookmarkAction } from './bookmark'; | ||
import { ConfigAction } from './config'; | ||
import { CustomWildcardAction } from './custom-wildcard-field'; | ||
import { DatasetAction } from './dataset'; | ||
import { LogAction } from './log'; | ||
import { RelatedViewsAction } from './related-views'; | ||
import { ResetAction } from './reset'; | ||
import { ResultAction } from './result'; | ||
import { ShelfAction } from './shelf'; | ||
import { ShelfPreviewAction } from './shelf-preview'; | ||
import { ApplicationStateAction } from './state'; | ||
import { TabAction } from './tab'; | ||
import { UndoableAction } from './undo-redo'; | ||
export * from './bookmark'; | ||
export * from './custom-wildcard-field'; | ||
export * from './config'; | ||
export * from './dataset'; | ||
export * from './log'; | ||
export * from './redux-action'; | ||
export * from './related-views'; | ||
export * from './reset'; | ||
export * from './result'; | ||
export * from './shelf'; | ||
export * from './state'; | ||
export * from './tab'; | ||
export * from './undo-redo'; | ||
export * from './shelf-preview'; | ||
/** | ||
* Union type of all actions in our application. | ||
*/ | ||
export declare type Action = (ApplicationStateAction | BookmarkAction | ConfigAction | CustomWildcardAction | DatasetAction | LogAction | RelatedViewsAction | ResetAction | ResultAction | ShelfAction | ShelfPreviewAction | TabAction | UndoableAction); | ||
export declare type ActionType = Action['type']; | ||
export declare const ACTION_TYPE_INDEX: { | ||
[k in ActionType]: 1; | ||
}; | ||
/** An array of all possible action types. */ | ||
export declare const ACTION_TYPES: ("BOOKMARK_ADD_PLOT" | "BOOKMARK_CLEAR_ALL" | "BOOKMARK_REMOVE_PLOT" | "BOOKMARK_MODIFY_NOTE" | "SET_CONFIG" | "CUSTOM_WILDCARD_ADD" | "CUSTOM_WILDCARD_ADD_FIELD" | "CUSTOM_WILDCARD_REMOVE" | "CUSTOM_WILDCARD_REMOVE_FIELD" | "CUSTOM_WILDCARD_MODIFY_DESCRIPTION" | "RESET" | "DATASET_SCHEMA_CHANGE_FIELD_TYPE" | "DATASET_SCHEMA_CHANGE_ORDINAL_DOMAIN" | "DATASET_REQUEST" | "DATASET_RECEIVE" | "SET_APPLICATION_STATE" | "LOG_ERRORS_ADD" | "LOG_WARNINGS_ADD" | "LOG_WARNINGS_CLEAR" | "LOG_ERRORS_CLEAR" | "RELATED_VIEWS_HIDE_TOGGLE" | "RESULT_REQUEST" | "RESULT_RECEIVE" | "RESULT_LIMIT_INCREASE" | "RESULT_MODIFY_FIELD_PROP" | "RESULT_MODIFY_NESTED_FIELD_PROP" | "FILTER_ADD" | "FILTER_CLEAR" | "FILTER_REMOVE" | "FILTER_TOGGLE" | "FILTER_MODIFY_EXTENT" | "FILTER_MODIFY_MIN_BOUND" | "FILTER_MODIFY_MAX_BOUND" | "FILTER_MODIFY_ONE_OF" | "FILTER_MODIFY_TIME_UNIT" | "SPEC_CLEAR" | "SPEC_MARK_CHANGE_TYPE" | "SPEC_FIELD_ADD" | "SPEC_FIELD_AUTO_ADD" | "SPEC_FIELD_REMOVE" | "SPEC_FIELD_MOVE" | "SPEC_FIELD_PROP_CHANGE" | "SPEC_FIELD_NESTED_PROP_CHANGE" | "SPEC_FUNCTION_CHANGE" | "SPEC_FUNCTION_ADD_WILDCARD" | "SPEC_FUNCTION_REMOVE_WILDCARD" | "SPEC_FUNCTION_DISABLE_WILDCARD" | "SPEC_FUNCTION_ENABLE_WILDCARD" | "SPEC_LOAD" | "SPEC_VALUE_CHANGE" | "SHELF_LOAD_QUERY" | "SHELF_AUTO_ADD_COUNT_CHANGE" | "SHELF_GROUP_BY_CHANGE" | "SHELF_PREVIEW_SPEC" | "SHELF_PREVIEW_QUERY" | "SHELF_PREVIEW_DISABLE" | "TAB_ADD" | "TAB_REMOVE" | "TAB_SWITCH" | "TAB_TITLE_UPDATE" | "UNDO" | "REDO")[]; | ||
export declare function isVoyagerAction(action: { | ||
type: any; | ||
}): action is Action; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { WarningLevel } from '../models/log'; | ||
import { PlainReduxAction, ReduxAction } from './redux-action'; | ||
export declare type LogAction = LogErrorsAdd | LogWarningsAdd | LogWarningsClear | LogErrorsRemove; | ||
export declare const LOG_ERRORS_ADD = "LOG_ERRORS_ADD"; | ||
export declare type LogErrorsAdd = ReduxAction<typeof LOG_ERRORS_ADD, { | ||
errors: string[]; | ||
}>; | ||
export declare const LOG_WARNINGS_ADD = "LOG_WARNINGS_ADD"; | ||
export declare type LogWarningsAdd = ReduxAction<typeof LOG_WARNINGS_ADD, { | ||
warnings: string[]; | ||
level: WarningLevel; | ||
}>; | ||
export declare const LOG_WARNINGS_CLEAR = "LOG_WARNINGS_CLEAR"; | ||
export declare type LogWarningsClear = PlainReduxAction<typeof LOG_WARNINGS_CLEAR>; | ||
export declare const LOG_ERRORS_CLEAR = "LOG_ERRORS_CLEAR"; | ||
export declare type LogErrorsRemove = PlainReduxAction<typeof LOG_ERRORS_CLEAR>; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.