"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushUserList = exports.fetchUserList = exports.deleteAuthUser = exports.saveAuthUser = exports.updateAuthDrawerVisible = exports.updateAuthListLoading = exports.pushAuthList = exports.fetchAuthList = exports.pushParentFiles = exports.fetchParentFiles = exports.updateFileOnlineStatus = exports.pushFileDetail = exports.fetchFileDetail = exports.offlineFileFromStore = exports.commitFileToStore = exports.pushLocales = exports.fetchLocales = exports.deleteContent = exports.saveContent = exports.updateEditContentTags = exports.updateEditContentValue = exports.openEditDrawer = 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)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_SAVE_LOADING', (loading) => ({
    loading,
}))();
// project content list related
exports.fetchContentList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_CONTENT_LIST', (params) => (Object.assign({}, params)))();
exports.pushContentList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__PUSH_CONTENT_LIST', (data) => ({ data }))();
// add/edit related
exports.openEditDrawer = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__OPEN_EDIT_DRAWER', (open, editContent) => ({ open, editContent }))();
exports.updateEditContentValue = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_DRAWER_VALUE', (key, value) => ({ key, value }))();
exports.updateEditContentTags = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_UPDATE_DRAWER_TAGS', (key, value) => ({ key, value }))();
exports.saveContent = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__SAVE_CONTENT', (params) => (Object.assign({}, params)))();
// delete related
exports.deleteContent = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__DELETE_CONTENT', (params) => (Object.assign({}, params)))();
// locale related
exports.fetchLocales = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_LOCALES', (applicationId) => ({
    applicationId,
}))();
exports.pushLocales = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_LOCALES_SUCCESS', (locales) => ({
    locales,
}))();
// store related
exports.commitFileToStore = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__COMMIT_FILE_TO_STORE', (params, cb) => ({ params, cb }))();
exports.offlineFileFromStore = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__REVOKE_FILE_FROM_STORE', (params, cb) => ({ params, cb }))();
exports.fetchFileDetail = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_FILE_DETAIL', (params) => ({ params }))();
exports.pushFileDetail = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__PUSH_FILE_DETAIL', (data) => ({
    data,
}))();
exports.updateFileOnlineStatus = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_ONLINE_STATUS', (online) => ({ online }))();
// parent file related
exports.fetchParentFiles = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_PARENT_FILES', (params, cb) => ({
    params,
    cb,
}))();
exports.pushParentFiles = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__PUSH_PARENT_FILES', (folder) => ({
    folder,
}))();
// authorize
exports.fetchAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_AUTH_LIST', (params) => ({ params }))();
exports.pushAuthList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__PUSH_AUTH_LIST', (list) => ({ list }))();
exports.updateAuthListLoading = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_AUTH_LIST_LOADING', (status) => ({
    status,
}))();
exports.updateAuthDrawerVisible = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__UPDATE_AUTH_DRAWER_VISIBLE', (visible = false, editContent) => ({
    visible,
    editContent,
}))();
exports.saveAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__AUTH_ADD_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.deleteAuthUser = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__AUTH_DELETE_USER', (params, cb) => ({
    params,
    cb,
}))();
exports.fetchUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__FETCH_USER_LIST', (params, cb) => ({
    params,
    cb,
}))();
exports.pushUserList = (0, typesafe_actions_1.createAction)('WORKSPACE_PROJECTS_PERSONAL_CONTENT__PUSH_USER_LIST', (list) => ({
    list,
}))();
