"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.commitToStore = exports.publishVariable = exports.saveVariable = exports.pushVariableBuilderVersion = exports.updateVariableContentProps = exports.updateVariableContentValue = exports.updateVariableRelations = exports.updateVariableContentRelation = exports.updateEditVariableValue = exports.openEditDrawer = exports.updateVariableContent = exports.deleteVariable = exports.fetchVariableBuilderVersion = exports.pushList = exports.fetchList = exports.setVariableBindModalVisibleStatus = exports.updatePaginationInfo = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_LOADING', (loading) => ({ loading }))();
exports.updatePaginationInfo = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_PAGINATION_INFO', (pageInfo) => ({
    pageInfo,
}))();
exports.setVariableBindModalVisibleStatus = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__VARIABLES_SET_VARIABLE_USE_MODAL_VISIBLE_STATUS', (params) => (Object.assign({}, params)))();
exports.fetchList = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__FETCH_LIST', (params) => ({
    params,
}))();
exports.pushList = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__PUSH_LIST', (list, pageInfo) => ({ list, pageInfo }))();
exports.fetchVariableBuilderVersion = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__GET_VARIABLE_BUILD_VERSION', (applicationId, file) => ({
    applicationId,
    file,
}))();
exports.deleteVariable = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__DELETE_VARIABLE', (params, cb) => ({
    params,
    cb,
}))();
exports.updateVariableContent = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_VARIABLE_CONTENT', (fileId, folderId) => ({
    fileId,
    folderId,
}))();
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__OPEN_EDIT_DRAWER', (open, variable, type) => ({ open, variable, type }))();
exports.updateEditVariableValue = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_EDIT_VARIABLE_VALUE', (key, value) => ({ key, value }))();
exports.updateVariableContentRelation = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_VARIABLE_CONTENT_RELATION', (key, value) => ({ key, value }))();
exports.updateVariableRelations = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_VARIABLE_RELATIONS', (relations) => ({ relations }))();
exports.updateVariableContentValue = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_VARIABLE_CONTENT_VALUE', (key, value) => ({ key, value }))();
exports.updateVariableContentProps = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__UPDATE_VARIABLE_CONTENT_PROPS', (key, value) => ({ key, value }))();
exports.pushVariableBuilderVersion = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__PUSH_VARIABLE_BUILD_VERSION', (data) => ({
    data,
}))();
exports.saveVariable = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__SAVE_VARIABLE', (params, cb) => ({
    params,
    cb,
}))();
//publish
exports.publishVariable = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__PUBLISH_VARIABLE', (params, cb) => ({
    params,
    cb,
}))();
// commit to store
exports.commitToStore = (0, typesafe_actions_1.createAction)('APPLICATION_FILE_VARIABLES__COMMIT_TO_STORE', (params, cb) => ({ params, cb }))();
