"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateCloudSyncDrawerLoadingStatus = exports.saveComponentRemote = exports.pushComponentRemotes = exports.fetchComponentRemotes = exports.updateCloudSyncDrawerOpenStatus = exports.pushFileDetail = exports.fetchFileDetail = exports.updateComponentOnlineStatus = exports.liveComponentVersionAction = exports.updateComponentVersionStatusAction = exports.editComponentVersionAction = exports.addComponentVersionAction = exports.fetchComponentVersionsAction = exports.fetchComponentInfoAction = exports.resetVersionDrawerState = exports.updateVersionDrawerState = exports.resetVersionListState = exports.updateVersionListState = exports.resetComponentInfoState = exports.updateComponentInfoState = exports.updateDetailState = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_LOADING', (loading) => ({ loading }))();
exports.updateDetailState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_STATE', (params) => ({
    params,
}))();
exports.updateComponentInfoState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_COMPONENT_INFO_STATE', (params) => ({
    params,
}))();
exports.resetComponentInfoState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__RESET_COMPONENT_INFO_STATE', () => ({}))();
exports.updateVersionListState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_VERSION_LIST_STATE', (params) => ({
    params,
}))();
exports.resetVersionListState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__RESET_VERSION_LIST_STATE', () => ({}))();
exports.updateVersionDrawerState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_VERSION_DRAWER_STATE', (params) => ({
    params,
}))();
exports.resetVersionDrawerState = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__RESET_VERSION_DRAWER_STATE', () => ({}))();
// actions
exports.fetchComponentInfoAction = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__FETCH_COMPONENT_INFO_API', (params, options) => ({ params, options }))();
exports.fetchComponentVersionsAction = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__FETCH_COMPONENT_VERSIONS_API', (params, options) => ({ params, options }))();
exports.addComponentVersionAction = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__ADD_COMPONENT_VERSION_API', (params, options) => ({ params, options }))();
exports.editComponentVersionAction = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__EDIT_COMPONENT_VERSION_API', (params, options) => ({ params, options }))();
exports.updateComponentVersionStatusAction = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_COMPONENT_VERSION_STATUS_API', (params, options) => ({
    params,
    options,
}))();
exports.liveComponentVersionAction = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__LIVE_COMPONENT_VERSION_API', (params, options) => ({ params, options }))();
exports.updateComponentOnlineStatus = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_COMPONENT_ONLINE_STATUS', (online) => ({ online }))();
exports.fetchFileDetail = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__FETCH_FILE_DETAIL', (params) => (Object.assign({}, params)))();
exports.pushFileDetail = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__PUSH_FILE_DETAIL', (data) => ({
    data,
}))();
exports.updateCloudSyncDrawerOpenStatus = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_SYNC_DRAWER_OPEN_STATUS', (open) => ({
    open,
}))();
exports.fetchComponentRemotes = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__SEARCH_COMPONENT_REMOTES', (params) => (Object.assign({}, params)))();
exports.pushComponentRemotes = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__PUSH_COMPONENT_REMOTES', (remote, lastVersion) => ({
    remote,
    lastVersion,
}))();
exports.saveComponentRemote = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__SAVE_COMPONENT_REMOTES', (params) => (Object.assign({}, params)))();
exports.updateCloudSyncDrawerLoadingStatus = (0, typesafe_actions_1.createAction)('APPLICATION_PACKAGES_DETAIL__UPDATE_SYNC_DRAWER_Loading_STATUS', (open) => ({
    open,
}))();
