core-app-worona
Version:
Core Package of Worona App
41 lines (34 loc) • 2.11 kB
JavaScript
import * as types from '../types';
export const packageActivationRequested = ({ pkg }) =>
({ type: types.PACKAGE_ACTIVATION_REQUESTED, pkg });
export const packageActivationSucceed = ({ pkg }) =>
({ type: types.PACKAGE_ACTIVATION_SUCCEED, pkg });
export const packageActivationFailed = ({ error, pkg }) =>
({ type: types.PACKAGE_ACTIVATION_FAILED, error, pkg });
export const initialPackagesActivated = ({ pkgs }) =>
({ type: types.INITIAL_PACKAGES_ACTIVATED, pkgs });
export const packageDeactivationRequested = ({ pkg }) =>
({ type: types.PACKAGE_DEACTIVATION_REQUESTED, pkg });
export const packageDeactivationSucceed = ({ pkg }) =>
({ type: types.PACKAGE_DEACTIVATION_SUCCEED, pkg });
export const packageDeactivationFailed = ({ error, pkg }) =>
({ type: types.PACKAGE_DEACTIVATION_FAILED, error, pkg });
export const packageDownloadRequested = ({ pkg }) =>
({ type: types.PACKAGE_DOWNLOAD_REQUESTED, pkg });
export const packageDownloadSucceed = ({ pkg }) => ({ type: types.PACKAGE_DOWNLOAD_SUCCEED, pkg });
export const packageDownloadFailed = ({ error, pkg }) =>
({ type: types.PACKAGE_DOWNLOAD_FAILED, error, pkg });
export const packageLoadRequested = ({ pkg }) => ({ type: types.PACKAGE_LOAD_REQUESTED, pkg });
export const packageLoadSucceed = ({ pkg }) => ({ type: types.PACKAGE_LOAD_SUCCEED, pkg });
export const packageLoadFailed = ({ error, pkg }) =>
({ type: types.PACKAGE_LOAD_FAILED, error, pkg });
export const packageAssetsLoadRequested = ({ pkg }) =>
({ type: types.PACKAGE_ASSETS_LOAD_REQUESTED, pkg });
export const packageAssetFileDownloaded = ({ pkgName, assetType, path }) =>
({ type: types.PACKAGE_ASSET_FILE_DOWNLOADED, pkgName, assetType, path });
export const packageAssetFileDontDownloaded = ({ pkgName, assetType, path, error }) =>
({ type: types.PACKAGE_ASSET_FILE_DONT_DOWNLOADED, pkgName, assetType, path, error });
export const packageAssetsLoadSucceed = ({ pkg }) =>
({ type: types.PACKAGE_ASSETS_LOAD_SUCCEED, pkg });
export const packageAssetsLoadFailed = ({ pkg, error }) =>
({ type: types.PACKAGE_ASSETS_LOAD_FAILED, pkg, error });