"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.saveApp = exports.updateValue = exports.updateApp = exports.openEditDrawer = exports.pushList = exports.fetchList = exports.updateSaveLoading = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__UPDATE_SAVE_LOADING', (loading) => ({
    loading,
}))();
exports.fetchList = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__FETCH_LIST', (params) => ({
    params,
}))();
exports.pushList = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__PUSH_LIST', (applicationList, pageInfo) => ({
    applicationList,
    pageInfo,
}))();
// save related
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__OPEN_EDIT_DRAWER', (visible, app) => ({
    visible,
    app,
}))();
exports.updateApp = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__UPDATE_APP', (key, value) => ({
    key,
    value,
}))();
exports.updateValue = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__UPDATE_VALUE', (key, value) => ({
    key,
    value,
}))();
exports.saveApp = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__SAVE_APP', () => ({}))();
// authorize related
exports.fetchAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__FETCH_AUTH_LIST', (params) => ({ params }))();
exports.pushAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__PUSH_AUTH_LIST', (list) => ({ list }))();
exports.updateAuthListLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__UPDATE_AUTH_LIST_LOADING', (status) => ({
    status,
}))();
exports.updateAuthDrawerVisible = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__UPDATE_AUTH_DRAWER_VISIBLE', (visible = false, editApp) => ({
    visible,
    editApp,
}))();
exports.saveAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__SAVE_AUTH_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS__DELETE_AUTH_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.fetchUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS___FETCH_USER_LIST', (params, cb) => ({
    params,
    cb,
}))();
exports.pushUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_APPLICATIONS___PUSH_USER_LIST', (list) => ({
    list,
}))();
