"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.addGoods = exports.pushAllApplicationList = exports.fetchAllApplicationList = exports.pushApplicationList = exports.fetchApplicationList = exports.updateType = exports.updateSelectedAppIds = exports.updateSearchText = exports.updateVariableResourceItemChecked = exports.updatePackageResourceItemChecked = exports.updateProjectResourceItemChecked = exports.updatePreviewModalVisible = exports.updateBuyModalVisible = exports.pushVariableResources = exports.pushPackageResources = exports.pushProjectResources = exports.fetchResources = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('STORE_CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('STORE__UPDATE_LOADING', (loading) => ({ loading }))();
exports.fetchResources = (0, typesafe_actions_1.createAction)('STORE__FETCH_RESOURCES', (params) => (Object.assign({}, params)))();
exports.pushProjectResources = (0, typesafe_actions_1.createAction)('STORE__PUSH_PROJECT_RESOURCES', (list, pageInfo) => ({
    list,
    pageInfo,
}))();
exports.pushPackageResources = (0, typesafe_actions_1.createAction)('STORE__PUSH_PACKAGE_RESOURCES', (list, pageInfo) => ({
    list,
    pageInfo,
}))();
exports.pushVariableResources = (0, typesafe_actions_1.createAction)('STORE__PUSH_VARIABLE_RESOURCES', (list, pageInfo) => ({
    list,
    pageInfo,
}))();
exports.updateBuyModalVisible = (0, typesafe_actions_1.createAction)('STORE__UPDATE_BUY_MODAL_VISIBLE', (visible, ids) => ({
    visible,
    ids,
}))();
exports.updatePreviewModalVisible = (0, typesafe_actions_1.createAction)('STORE__UPDATE_PREVIEW_MODAL_VISIBLE', (visible, resourceItem) => ({
    visible,
    resourceItem,
}))();
exports.updateProjectResourceItemChecked = (0, typesafe_actions_1.createAction)('STORE__UPDATE_RESOURCE_ITEM_CHECKED', (id) => ({
    id,
}))();
exports.updatePackageResourceItemChecked = (0, typesafe_actions_1.createAction)('STORE__UPDATE_PACKAGE_RESOURCE_ITEM_CHECKED', (id) => ({
    id,
}))();
exports.updateVariableResourceItemChecked = (0, typesafe_actions_1.createAction)('STORE__UPDATE_VARIABLE_RESOURCE_ITEM_CHECKED', (id) => ({
    id,
}))();
exports.updateSearchText = (0, typesafe_actions_1.createAction)('STORE__UPDATE_SEARCH_TEXT', (text) => ({
    text,
}))();
exports.updateSelectedAppIds = (0, typesafe_actions_1.createAction)('STORE__UPDATE_SELECTED_APP_IDS', (ids) => ({
    ids,
}))();
exports.updateType = (0, typesafe_actions_1.createAction)('STORE__UPDATE_TYPE', (type) => ({
    type,
}))();
// application relation
exports.fetchApplicationList = (0, typesafe_actions_1.createAction)('STORE__FETCH_APPLICATION_LIST', (params) => ({
    params,
}))();
exports.pushApplicationList = (0, typesafe_actions_1.createAction)('STORE__PUSH_APPLICATION_LIST', (list) => ({
    list,
}))();
exports.fetchAllApplicationList = (0, typesafe_actions_1.createAction)('STORE__FETCH_ALL_APPLICATION_LIST', (params) => (Object.assign({}, params)))();
exports.pushAllApplicationList = (0, typesafe_actions_1.createAction)('STORE__PUSH_ALL_APPLICATION_LIST', (list) => ({
    list,
}))();
// common goods
exports.addGoods = (0, typesafe_actions_1.createAction)('STORE__ADD_GOODS', (params) => (Object.assign({}, params)))();
