synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
33 lines • 1.73 kB
TypeScript
import { AlertProps as MuiAlertProps } from '@mui/material';
import { ManagedACTAccessRequirement, Renewal, Request, RestrictableObjectType } from '@sage-bionetworks/synapse-types';
import { ReactNode } from 'react';
export type DataAccessRequestAccessorsFilesFormProps = {
/**
* The ID of the object of interest. This corresponds to the subjectId of the {@link CreateSubmissionRequest}
*/
subjectId: string;
subjectType: RestrictableObjectType;
managedACTAccessRequirement: ManagedACTAccessRequirement;
onSubmissionCreated: (submissionId: string) => void;
researchProjectId: string;
onHide: () => void;
onCancel: (modifiedDataAccessRequest: Request | Renewal) => void;
/** Callback invoked when the 'Back' action button is clicked */
onBackClicked: () => void;
};
export type AlertProps = {
key: MuiAlertProps['severity'];
message: string | ReactNode;
};
/**
* Step 2 of the Data Access Request/Renewal flow prompts the user to
* - Manage the list of accessors, i.e. Synapse users who will gain, renew, or lose access
* - Download and upload documents required by the Access Requirement
* - If a renewal, provide publications and a summary of use statement.
*
* The component expects a researchProjectId, which should reference complete researchProject created in Step 1.
* The user may click a "Submit" button, which will save the request and issue a data access submission that references
* the requestId created/updated in this component.
*/
export default function DataAccessRequestAccessorsFilesForm(props: DataAccessRequestAccessorsFilesFormProps): import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=DataAccessRequestAccessorsFilesForm.d.ts.map