"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteFunction = exports.publishFunction = exports.saveFunction = exports.pushList = exports.fetchList = exports.openEditDrawer = exports.updatePaginationInfo = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__UPDATE_FETCH_LOADING', (loading) => ({
    loading,
}))();
exports.updatePaginationInfo = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__UPDATE_PAGINATION_INFO', (pageInfo) => ({
    pageInfo,
}))();
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__UPDATE_FUNCTION_DRAWER_VISIBLE', (open, editFunc, type) => ({
    open,
    editFunc,
    type,
}))();
exports.fetchList = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__FETCH_LIST', (params) => ({
    params,
}))();
exports.pushList = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__PUSH_LIST', (list, pageInfo, cb) => ({
    list,
    pageInfo,
    cb,
}))();
exports.saveFunction = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__SAVE_FUNCTION', (params, cb) => ({
    params,
    cb,
}))();
exports.publishFunction = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__PUBLISH_FUNCTION', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteFunction = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_FUNCTIONS__DELETE_FUNCTION', (params, cb) => ({
    params,
    cb,
}))();
