// tslint:disable:max-line-length import { Action, ErrorAction, HasContent, HasFilepath, HasKernel, makeActionFunction, makeErrorActionFunction } from "../utils"; export const FETCH_CONTENT = "CORE/FETCH_CONTENT"; export const FETCH_CONTENT_FULFILLED = "CORE/FETCH_CONTENT_FULFILLED"; export const FETCH_CONTENT_FAILED = "CORE/FETCH_CONTENT_FAILED"; export const DOWNLOAD_CONTENT = "CORE/DOWNLOAD_CONTENT"; export const DOWNLOAD_CONTENT_FULFILLED = "CORE/DOWNLOAD_CONTENT_FULFILLED"; export const DOWNLOAD_CONTENT_FAILED = "CORE/DOWNLOAD_CONTENT_FAILED"; export const SAVE = "SAVE"; export const SAVE_FULFILLED = "SAVE_FULFILLED"; export const SAVE_FAILED = "SAVE_FAILED"; export const SAVE_AS = "SAVE_AS"; export const SAVE_AS_FULFILLED = "SAVE_AS_FULFILLED"; export const SAVE_AS_FAILED = "SAVE_AS_FAILED"; export type FetchContent = Action ; export type FetchContentFulfilled = Action ; export type FetchContentFailed = ErrorAction; export type DownloadContent = Action ; export type DownloadContentFulfilled = Action ; export type DownloadContentFailed = ErrorAction; export type Save = Action ; export type SaveFulfilled = Action ; export type SaveFailed = ErrorAction; export type SaveAs = Action ; export type SaveAsFulfilled = Action ; export type SaveAsFailed = ErrorAction; export const fetchContent = makeActionFunction (FETCH_CONTENT); export const fetchContentFulfilled = makeActionFunction (FETCH_CONTENT_FULFILLED); export const fetchContentFailed = makeErrorActionFunction (FETCH_CONTENT_FAILED); export const downloadContent = makeActionFunction (DOWNLOAD_CONTENT); export const downloadContentFulfilled = makeActionFunction (DOWNLOAD_CONTENT_FULFILLED); export const downloadContentFailed = makeErrorActionFunction (DOWNLOAD_CONTENT_FAILED); export const save = makeActionFunction (SAVE); export const saveFulfilled = makeActionFunction (SAVE_FULFILLED); export const saveFailed = makeErrorActionFunction (SAVE_FAILED); export const saveAs = makeActionFunction (SAVE_AS); export const saveAsFulfilled = makeActionFunction (SAVE_AS_FULFILLED); export const saveAsFailed = makeErrorActionFunction (SAVE_AS_FAILED);