// tslint:disable:max-line-length import { KernelInfo, KernelspecRecord, LanguageInfoMetadata } from "@nteract/types"; import { Action, ErrorAction, HasContent, HasKernel, makeActionFunction, makeErrorActionFunction } from "../utils"; export const SET_KERNEL_INFO = "CORE/SET_KERNEL_INFO"; export const SET_KERNEL_METADATA = "SET_KERNEL_METADATA"; export const SET_LANGUAGE_INFO = "SET_LANGUAGE_INFO"; export const KERNEL_RAW_STDOUT = "KERNEL_RAW_STDOUT"; export const KERNEL_RAW_STDERR = "KERNEL_RAW_STDERR"; export const DELETE_CONNECTION_FILE_FAILED = "DELETE_CONNECTION_FILE_FAILED"; export const DELETE_CONNECTION_FILE_SUCCESSFUL = "DELETE_CONNECTION_FILE_SUCCESSFUL"; export type SetKernelInfo = Action ; export type SetKernelMetadata = Action ; export type SetLanguageInfo = Action ; export type KernelRawStdout = Action ; export type KernelRawStderr = Action ; export type DeleteConnectionFileFailedAction = ErrorAction; export type DeleteConnectionFileSuccessfulAction = Action ; export const setKernelInfo = makeActionFunction (SET_KERNEL_INFO); export const setKernelMetadata = makeActionFunction (SET_KERNEL_METADATA); export const setLanguageInfo = makeActionFunction (SET_LANGUAGE_INFO); export const kernelRawStdout = makeActionFunction (KERNEL_RAW_STDOUT); export const kernelRawStderr = makeActionFunction (KERNEL_RAW_STDERR); export const deleteConnectionFileFailed = makeErrorActionFunction (DELETE_CONNECTION_FILE_FAILED); export const deleteConnectionFileSuccessful = makeActionFunction (DELETE_CONNECTION_FILE_SUCCESSFUL);