synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
37 lines • 2.38 kB
TypeScript
import { DoiObjectType } from '@sage-bionetworks/synapse-client/generated/models/DoiObjectType';
export type ErrorPageProps = {
type: SynapseErrorType;
message?: string;
/** @deprecated use `id` and objectType: DoiObjectType.ENTITY */
entityId?: string;
/** @deprecated use `version` and objectType: DoiObjectType.ENTITY */
entityVersion?: number;
/** The ID of the object that was attempted to be retrieved, which may be used to show a 'tombstone' */
id?: string;
/** The version of the object that was attempted to be retrieved, which may be used to show a 'tombstone' */
version?: number;
/** The type of the object that was attempted to be retrieved, which may be used to show a 'tombstone' */
objectType?: DoiObjectType;
/** If on a portal that may mint DOIs, this portal ID may be used to find a DOI to show a 'tombstone' */
portalId?: string;
gotoPlace: (href: string) => void;
};
export declare const SYNAPSE_DOWN_TITLE = "Synapse is down for maintenance.";
export declare const ACCESS_DENIED_TITLE = "You don\u2019t have permission to view this.";
export declare const NOT_FOUND_TITLE = "This page isn\u2019t available.";
export declare const LOG_IN_LINK_TEXT = "Log in to Synapse";
export declare const CONTACT_US_LINK_TEXT = "Contact us for more information";
export declare const CONTACT_ADMIN_LINK_TEXT = "Contact the Administrator";
export declare const ACCESS_DENIED_ANONYMOUS_MESSAGE = "Try logging in. If you still see this message after logging in, you have not been granted access to view this resource.";
export declare const ACCESS_DENIED_MESSAGE = "This account has not been granted access to view this resource.";
export declare const NOT_FOUND_MESSAGE = "The link you followed may be broken, or the page may have been removed.";
export declare const ACCESS_DENIED_ANONYMOUS_ACTION_DESCRIPTION = "A Synapse account is free, and lets you view public resources.";
export declare const ACCESS_DENIED_CONTACT_ADMIN_ACTION_DESCRIPTION = "Write a message to the owner of the resource asking for permission to view.";
export declare enum SynapseErrorType {
DOWN = "DOWN",
ACCESS_DENIED = "ACCESS_DENIED",
NOT_FOUND = "NOT_FOUND"
}
declare function ErrorPage(props: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
export default ErrorPage;
//# sourceMappingURL=ErrorPage.d.ts.map