"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushConditionDetail = exports.fetchConditionDetail = exports.saveConditionVersion = exports.deleteCondition = exports.publishCondition = exports.saveCondition = exports.pushList = exports.fetchList = exports.openEditDrawer = exports.updatePaginationInfo = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
// common
exports.clearAll = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updatePaginationInfo = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__UPDATE_PAGINATION_INFO', (pageInfo) => ({
    pageInfo,
}))();
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__UPDATE_CONDITION_DRAWER_VISIBLE', (open, editCondition, type) => ({
    open,
    editCondition,
    type,
}))();
// fetch
exports.fetchList = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__FETCH_LIST', (params) => ({
    params,
}))();
exports.pushList = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__PUSH_LIST', (list, pageInfo) => ({
    list,
    pageInfo,
}))();
exports.saveCondition = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__SAVE_CONDITION', (params, cb) => ({
    params,
    cb,
}))();
exports.publishCondition = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__PUBLISH_CONDITION', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteCondition = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__DELETE_CONDITION', (params, cb) => ({
    params,
    cb,
}))();
exports.saveConditionVersion = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__SAVE_CONDITION_VERSION', (params, cb) => ({
    params,
    cb,
}))();
exports.fetchConditionDetail = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__FETCH_CONDITION_DETAIL', (params, cb) => ({
    params,
    cb,
}))();
exports.pushConditionDetail = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_CONDITIONS__PUSH_CONDITION_DETAIL', (condition) => ({
    condition,
}))();
