UNPKG

@craftercms/studio-ui

Version:

Services, components, models & utils to build CrafterCMS authoring extensions.

57 lines (55 loc) 2.73 kB
/* * Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import { Credentials } from '../../models/Credentials'; import { ObtainAuthTokenResponse } from '../../services/auth'; import { AjaxError } from 'rxjs/ajax'; export declare const login: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<Credentials, string>; export declare const loginComplete: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'LOGIN_COMPLETE'>; export declare const loginFailed: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<AjaxError, string>; export declare const logout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'LOGOUT'>; export declare const logoutComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload<boolean, string>; export declare const logoutFailed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'LOGOUT_FAILED'>; export declare const refreshAuthToken: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< { xsrfToken: string; }, string >; export declare const refreshAuthTokenComplete: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< ObtainAuthTokenResponse, string >; export declare const refreshAuthTokenFailed: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'REFRESH_AUTH_TOKEN_FAILED'>; export declare const sharedWorkerToken: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< ObtainAuthTokenResponse, string >; export declare const sharedWorkerUnauthenticated: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'SHARED_WORKER_UNAUTHENTICATED'>; export declare const sharedWorkerError: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< { status: number; message: string; }, string >; export declare const sharedWorkerConnect: import('@reduxjs/toolkit').ActionCreatorWithOptionalPayload< { xsrfToken: string; }, string >; export declare const sharedWorkerDisconnect: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'DISCONNECT'>; export declare const sharedWorkerTimeout: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<'TIMEOUT'>;