"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.saveComponents = exports.saveEditors = exports.pushResourcesSaved = exports.saveResources = exports.saveChanges = exports.clearChanges = exports.updateChanges = exports.updateSearchName = exports.updateSelected = exports.pushPackages = exports.fetchPackages = exports.selectGroup = exports.updateSaving = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__UPDATE_LOADING', (status) => ({
    status,
}))();
exports.updateSaving = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__UPDATE_UPDATE_SAVING', (status) => ({
    status,
}))();
exports.selectGroup = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__SELECT_GROUP', (id) => ({
    id,
}))();
exports.fetchPackages = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__FETCH_PACKAGES', (params) => (Object.assign({}, params)))();
exports.pushPackages = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__PUSH_PACKAGES', (list, pageInfo) => ({
    list,
    pageInfo,
}))();
exports.updateSelected = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__UPDATE_SELECTED', (selected) => ({
    selected,
}))();
exports.updateSearchName = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__UPDATE_SEARCH_NAME', (name) => ({
    name,
}))();
exports.updateChanges = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__UPDATE_CHANGES', (componentName, params) => ({ componentName, params }))();
exports.clearChanges = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__CLEAR_CHANGES', () => ({}))();
exports.saveChanges = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__SAVE_CHANGES', (applicationId, cb) => ({
    applicationId,
    cb,
}))();
exports.saveResources = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__SAVE_RESOURCES', (params, cb) => (Object.assign(Object.assign({}, params), { cb })))();
exports.pushResourcesSaved = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__PUSH_RESOURCES_SAVED', (data) => ({ data }))();
exports.saveEditors = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__SAVE_EDITORS', (params) => (Object.assign({}, params)))();
exports.saveComponents = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_FAST__SAVE_COMPONENTS', () => ({}))();
