"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushParentFiles = exports.fetchParentFiles = exports.deleteFile = exports.saveFile = exports.updateEditFileValue = exports.openEditDrawer = exports.pushFileList = exports.fetchFileList = exports.updateSaveLoading = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__SET_FILE_LOADING', (status) => ({
    status,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__SET_FILE_SAVE_LOADING', (status) => ({
    status,
}))();
exports.fetchFileList = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__FETCH_FILE_LIST', (params) => ({ params }))();
exports.pushFileList = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__FETCH_FILE_LIST_SUCCESS', (fileList, pageInfo) => ({ fileList, pageInfo }))();
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__OPEN_EDIT_DRAWER', (open = false, editFile) => ({ open, editFile }))();
exports.updateEditFileValue = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__UPDATE_DRAWER_VALUE', (name, value) => ({ name, value }))();
exports.saveFile = (0, typesafe_actions_1.createAction)('PROJECTS_FILE__SAVE_FILE', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteFile = (0, typesafe_actions_1.createAction)('PROJECTS_DETAILS__DELETE_FILE', (params) => ({
    params,
}))();
// parent file relation
exports.fetchParentFiles = (0, typesafe_actions_1.createAction)('PROJECTS_DETAILS__FETCH_PARENT_FILES', (params, cb) => ({
    params,
    cb,
}))();
exports.pushParentFiles = (0, typesafe_actions_1.createAction)('PROJECTS_DETAILS__PUSH_PARENT_FILES', (folder) => ({
    folder,
}))();
