"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushOrganizationUsers = exports.fetchOrganizationUsers = exports.updateTeamManagementLoading = exports.pushTeamUsers = exports.fetchTeamUsers = exports.updateTeamUsersAfterAdd = exports.updateTeamUsersAfterDelete = exports.deleteTeamUsers = exports.addTeamUsers = exports.openUserManagementDrawer = exports.deleteTeam = exports.saveTeam = exports.updateEditTeamValue = exports.openDrawer = exports.pushTeamList = exports.fetchTeamList = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('TEAMS__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('TEAMS__UPDATE_LOADING', (status) => ({
    status,
}))();
exports.fetchTeamList = (0, typesafe_actions_1.createAction)('TEAMS__FETCH_TEAM_LIST', (params) => (Object.assign({}, params)))();
exports.pushTeamList = (0, typesafe_actions_1.createAction)('TEAMS__PUSH_TEAM_LIST', (list, pageInfo) => ({
    list,
    pageInfo,
}))();
exports.openDrawer = (0, typesafe_actions_1.createAction)('TEAMS__OPEN_EDIT_DRAWER', (status, team) => ({
    status,
    team,
}))();
exports.updateEditTeamValue = (0, typesafe_actions_1.createAction)('TEAMS__UPDATE_EDIT_TEAM_VALUE', (key, value) => ({
    key,
    value,
}))();
exports.saveTeam = (0, typesafe_actions_1.createAction)('TEAMS__SAVE_TEAM', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteTeam = (0, typesafe_actions_1.createAction)('TEAMS__DELETE_TEAM', (organizationId, team) => ({
    organizationId,
    team,
}))();
exports.openUserManagementDrawer = (0, typesafe_actions_1.createAction)('TEAMS__OPEN_USER_MANAGEMENT_DRAWER', (open, team) => ({
    open,
    team,
}))();
exports.addTeamUsers = (0, typesafe_actions_1.createAction)('TEAMS__ADD_TEAM_USERS', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteTeamUsers = (0, typesafe_actions_1.createAction)('TEAMS__DELETE_TEAM_USERS', (params) => ({
    params,
}))();
exports.updateTeamUsersAfterDelete = (0, typesafe_actions_1.createAction)('TEAMS__UPDATE_TEAM_USERS_AFTER_DELETE', (users) => ({
    users,
}))();
exports.updateTeamUsersAfterAdd = (0, typesafe_actions_1.createAction)('TEAMS__UPDATE_TEAM_USERS_AFTER_ADD', (users) => ({
    users,
}))();
// teams user detail
exports.fetchTeamUsers = (0, typesafe_actions_1.createAction)('TEAMS__FETCH_TEAM_MEMBERS', (params) => ({
    params,
}))();
exports.pushTeamUsers = (0, typesafe_actions_1.createAction)('TEAMS__PUSH_TEAM_MEMBERS', (users) => ({
    users,
}))();
exports.updateTeamManagementLoading = (0, typesafe_actions_1.createAction)('TEAMS__UPDATE_TEAM_MANAGEMENT_LOADING', (loading) => ({
    loading,
}))();
// organization user list
exports.fetchOrganizationUsers = (0, typesafe_actions_1.createAction)('TEAMS__FETCH_ORGANIZATION_USERS', (params) => ({
    params,
}))();
exports.pushOrganizationUsers = (0, typesafe_actions_1.createAction)('TEAMS__PUSH_ORGANIZATION_USERS', (users) => ({
    users,
}))();
