"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushApps = exports.fetchApps = exports.openEditDrawer = exports.updateEditProjectValue = exports.deleteProject = exports.saveProject = 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)('PROJECTS_LIST__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__UPDATE_LOADING', (status) => ({
    status,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__UPDATE_SAVE_LOADING', (status) => ({
    status,
}))();
exports.fetchProjectList = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__FETCH_PROJECT_LIST', (params) => (Object.assign({}, params)))();
exports.pushProjectList = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__FETCH_PROJECT_LIST_SUCCESS', (projectList, pageInfo) => ({ projectList, pageInfo }))();
exports.saveProject = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__SAVE_PROJECT', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteProject = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__DELETE_PROJECT', (id, applicationId, organizationId) => ({ id, applicationId, organizationId }))();
exports.updateEditProjectValue = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__UPDATE_DRAWER_VALUE', (name, value) => ({ name, value }))();
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('PROJECTS_LIST__OPEN_EDIT_DRAWER', (open = false, editProject) => ({ open, editProject }))();
exports.fetchApps = (0, typesafe_actions_1.createAction)('PROJECTS_LIST_APPLICATION_LIST__FETCH_LIST', (params) => ({ params }))();
exports.pushApps = (0, typesafe_actions_1.createAction)('PROJECTS_LIST_APPLICATION_LIST__FETCH_LIST_SUCCEED', (data) => ({ data }))();
