"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.pushApps = exports.fetchApps = exports.deleteProject = exports.saveProject = exports.updateEditProjectValue = exports.openEditDrawer = exports.pushProjectList = exports.fetchProjectList = 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_FOLDER__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__UPDATE_SAVE_LOADING', (loading) => ({
    loading,
}))();
// project list related
exports.fetchProjectList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__FETCH_PROJECT_LIST', (params) => (Object.assign({}, params)))();
exports.pushProjectList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__PUSH_PROJECT_LIST', (projectList, pageInfo) => ({ projectList, pageInfo }))();
// add/edit related
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__OPEN_EDIT_DRAWER', (drawerOpen = false, editProject) => ({
    drawerOpen,
    editProject,
}))();
exports.updateEditProjectValue = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__UPDATE_EDIT_PROJECT_VALUE', (name, value) => ({ name, value }))();
exports.saveProject = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__SAVE_PROJECT', (params, cb) => ({
    params,
    cb,
}))();
// delete related
exports.deleteProject = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__DELETE_PROJECT', (id, applicationId, organizationId) => ({
    id,
    applicationId,
    organizationId,
}))();
// application list related
exports.fetchApps = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__FETCH_LIST', (params) => ({ params }))();
exports.pushApps = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__PUSH_LIST', (data) => ({
    data,
}))();
// authorize related
exports.fetchAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__FETCH_AUTH_LIST', (params) => ({ params }))();
exports.pushAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__PUSH_AUTH_LIST', (list) => ({ list }))();
exports.updateAuthListLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__UPDATE_AUTH_LIST_LOADING', (status) => ({
    status,
}))();
exports.updateAuthDrawerVisible = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__UPDATE_AUTH_DRAWER_VISIBLE', (visible = false, editProject) => ({
    visible,
    editProject,
}))();
exports.saveAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__SAVE_AUTH_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER__DELETE_AUTH_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.fetchUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER___FETCH_USER_LIST', (params, cb) => ({
    params,
    cb,
}))();
exports.pushUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_INVOLVED_FOLDER___PUSH_USER_LIST', (list) => ({
    list,
}))();
