"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushUserList = exports.fetchUserList = exports.deleteAuthUser = exports.saveAuthUser = exports.updateAuthDrawerVisible = exports.updateAuthListLoading = exports.pushAuthList = exports.fetchAuthList = 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)('WORKSPACE_PROJECTS_INVOLVED_FILE__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__UPDATE_SAVE_LOADING', (loading) => ({
    loading,
}))();
// project file list related
exports.fetchFileList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__FETCH_FILE_LIST', (params) => ({ params }))();
exports.pushFileList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__PUSH_FILE_LIST', (fileList, pageInfo) => ({ fileList, pageInfo }))();
// add/edit related
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__OPEN_EDIT_DRAWER', (drawerOpen = false, editFile) => ({ drawerOpen, editFile }))();
exports.updateEditFileValue = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__UPDATE_EDIT_FILE_VALUE', (name, value) => ({ name, value }))();
exports.saveFile = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__SAVE_FILE', (params) => (Object.assign({}, params)))();
// delete related
exports.deleteFile = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__DELETE_FILE', (params) => (Object.assign({}, params)))();
// parent file relation
exports.fetchParentFiles = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__FETCH_PARENT_FILES', (params, cb) => ({
    params,
    cb,
}))();
exports.pushParentFiles = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__PUSH_PARENT_FILES', (folder) => ({
    folder,
}))();
// authorize related
exports.fetchAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__FETCH_AUTH_LIST', (params) => ({ params }))();
exports.pushAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__PUSH_AUTH_LIST', (list) => ({ list }))();
exports.updateAuthListLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__UPDATE_AUTH_LIST_LOADING', (status) => ({
    status,
}))();
exports.updateAuthDrawerVisible = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__UPDATE_AUTH_DRAWER_VISIBLE', (visible = false, editFile) => ({
    visible,
    editFile,
}))();
exports.saveAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__SAVE_AUTH_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__DELETE_AUTH_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.fetchUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__FETCH_USER_LIST', (params, cb) => ({
    params,
    cb,
}))();
exports.pushUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FILE__PUSH_USER_LIST', (list) => ({
    list,
}))();
