"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushParentFiles = exports.fetchParentFiles = exports.pushFileDetail = exports.fetchFileDetail = exports.offlineFileFromStore = exports.commitFileToStore = exports.updateFileOnlineStatus = exports.pushLocales = exports.fetchLocales = exports.deleteContent = exports.saveContent = exports.updateEditContentTags = exports.updateEditContentValue = exports.updateEditDrawerOpen = exports.pushContentList = exports.fetchContentList = exports.updateSaveLoading = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__UPDATE_LOADING', (status) => ({
    status,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__UPDATE_SAVE_LOADING', (status) => ({
    status,
}))();
exports.fetchContentList = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__FETCH_CONTENT_LIST', (params) => (Object.assign({}, params)))();
exports.pushContentList = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__FETCH_CONTENT_LIST_SUCCESS', (data) => ({ data }))();
exports.updateEditDrawerOpen = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__UPDATE_EDIT_DRAWER_OPEN_STATUS', (open, editContent) => ({ open, editContent }))();
exports.updateEditContentValue = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__UPDATE_DRAWER_VALUE', (key, value) => ({ key, value }))();
exports.updateEditContentTags = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__UPDATE_UPDATE_DRAWER_TAGS', (key, value) => ({ key, value }))();
exports.saveContent = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__SAVE_CONTENT', (params) => (Object.assign({}, params)))();
exports.deleteContent = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__DELETE_CONTENT', (params) => (Object.assign({}, params)))();
exports.fetchLocales = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__FETCH_LOCALES', (applicationId) => ({
    applicationId,
}))();
exports.pushLocales = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__FETCH_LOCALES_SUCCESS', (locales) => ({
    locales,
}))();
exports.updateFileOnlineStatus = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__UPDATE_ONLINE_STATUS', (online) => ({ online }))();
// store related
exports.commitFileToStore = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__COMMIT_FILE_TO_STORE', (params, cb) => ({ params, cb }))();
exports.offlineFileFromStore = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__REVOKE_FILE_FROM_STORE', (params, cb) => ({ params, cb }))();
// file detail related
exports.fetchFileDetail = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__FETCH_FILE_DETAIL', (params) => (Object.assign({}, params)))();
exports.pushFileDetail = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__PUSH_FILE_DETAIL', (data) => ({
    data,
}))();
// parent file related
exports.fetchParentFiles = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__FETCH_PARENT_FILES', (params, cb) => ({
    params,
    cb,
}))();
exports.pushParentFiles = (0, typesafe_actions_1.createAction)('PROJECTS_CONTENT__PUSH_PARENT_FILES', (folder) => ({
    folder,
}))();
