"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateValue = exports.updateApp = exports.saveApp = 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)('APPLICATIONS_LIST__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__UPDATE_SAVE_LOADING', (loading) => ({
    loading,
}))();
exports.fetchList = (0, typesafe_actions_1.createAction)('APPLICATION_LISTS__FETCH_LIST', (params) => ({
    params,
}))();
exports.pushList = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__FETCH_LIST_SUCCEED', (applicationList, pageInfo) => ({
    applicationList,
    pageInfo,
}))();
// add
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__OPEN_EDIT_DRAWER', (visible, app) => ({
    visible,
    app,
}))();
exports.saveApp = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__SAVE_APP', () => ({}))();
exports.updateApp = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__UPDATE_APP', (key, value) => ({
    key,
    value,
}))();
exports.updateValue = (0, typesafe_actions_1.createAction)('APPLICATIONS_LIST__UPDATE_VALUE', (key, value) => ({
    key,
    value,
}))();
