synapse-react-client 4.0.40 → 4.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SWC.index.d.ts +1 -0
- package/dist/SWC.index.d.ts.map +1 -1
- package/dist/SWC.index.js +2 -1
- package/dist/SWC.index.js.map +1 -1
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.d.ts +1 -0
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.d.ts.map +1 -1
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.js +12 -12
- package/dist/components/AccessRequirement/ImposeRestrictionDialog/ImposeRestrictionDialog.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.d.ts +7 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.js +30 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/AccessorRequirementHelpText.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.js +138 -244
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DataAccessRequestAccessorsFilesForm/DataAccessRequestAccessorsFilesForm.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.d.ts +13 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.js +60 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/DucUploadSection.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts +8 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js +179 -63
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/EDucPreviewStep/EDucPreviewStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.d.ts +2 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.js +13 -13
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementFormWikiWrapper.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItemView.d.ts +3 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItemView.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManagedACTAccessRequirementItemView.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts +3 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ManualUploadDucStep/ManualUploadDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.d.ts +12 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.js +50 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/PrincipalInvestigatorFields.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js +112 -143
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ResearchProjectForm/ResearchProjectForm.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.d.ts +4 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.js +8 -7
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/ReviewDucStep/ReviewDucStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts +3 -2
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.d.ts.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js +79 -47
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SignatureStatusStep/SignatureStatusStep.js.map +1 -1
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.d.ts +12 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.js +51 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/SigningOfficialFields.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.d.ts +12 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.js +24 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/eDucSignatureUtils.js.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts +11 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/requestFlowTypes.js +0 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.d.ts +22 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.d.ts.map +1 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.js +32 -0
- package/dist/components/AccessRequirementList/ManagedACTAccessRequirementRequestFlow/useInitializeRequestAccessors.js.map +1 -0
- package/dist/components/AclEditor/AclEditor.js +20 -20
- package/dist/components/Aridhia/AridhiaAccessStatus.d.ts.map +1 -1
- package/dist/components/Aridhia/AridhiaAccessStatus.js +51 -48
- package/dist/components/Aridhia/AridhiaAccessStatus.js.map +1 -1
- package/dist/components/Authentication/Constants.d.ts +4 -0
- package/dist/components/Authentication/Constants.d.ts.map +1 -1
- package/dist/components/Authentication/Constants.js +5 -2
- package/dist/components/Authentication/Constants.js.map +1 -1
- package/dist/components/Authentication/RecoveryCodeGrid.d.ts.map +1 -1
- package/dist/components/Authentication/RecoveryCodeGrid.js +8 -1
- package/dist/components/Authentication/RecoveryCodeGrid.js.map +1 -1
- package/dist/components/Authentication/RegenerateBackupCodesWarning.js +4 -1
- package/dist/components/Authentication/RegenerateBackupCodesWarning.js.map +1 -1
- package/dist/components/Authentication/TOTPForm.d.ts.map +1 -1
- package/dist/components/Authentication/TOTPForm.js +20 -18
- package/dist/components/Authentication/TOTPForm.js.map +1 -1
- package/dist/components/Authentication/TwoFactorBackupCodes.d.ts.map +1 -1
- package/dist/components/Authentication/TwoFactorBackupCodes.js +41 -12
- package/dist/components/Authentication/TwoFactorBackupCodes.js.map +1 -1
- package/dist/components/Authentication/TwoFactorEnrollmentForm.d.ts.map +1 -1
- package/dist/components/Authentication/TwoFactorEnrollmentForm.js +90 -77
- package/dist/components/Authentication/TwoFactorEnrollmentForm.js.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.d.ts.map +1 -1
- package/dist/components/DataGrid/SynapseGrid.js +244 -246
- package/dist/components/DataGrid/SynapseGrid.js.map +1 -1
- package/dist/components/DataGrid/components/GridLoadingState.d.ts +23 -0
- package/dist/components/DataGrid/components/GridLoadingState.d.ts.map +1 -0
- package/dist/components/DataGrid/components/GridLoadingState.js +64 -0
- package/dist/components/DataGrid/components/GridLoadingState.js.map +1 -0
- package/dist/components/DataGrid/components/ReorderColumnsDialog.d.ts.map +1 -1
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js +52 -54
- package/dist/components/DataGrid/components/ReorderColumnsDialog.js.map +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.d.ts +60 -6
- package/dist/components/DataGrid/useDataGridWebsocket.d.ts.map +1 -1
- package/dist/components/DataGrid/useDataGridWebsocket.js +71 -60
- package/dist/components/DataGrid/useDataGridWebsocket.js.map +1 -1
- package/dist/components/DataGrid/utils/getNamedColumnIndices.d.ts +11 -0
- package/dist/components/DataGrid/utils/getNamedColumnIndices.d.ts.map +1 -0
- package/dist/components/DataGrid/utils/getNamedColumnIndices.js +8 -0
- package/dist/components/DataGrid/utils/getNamedColumnIndices.js.map +1 -0
- package/dist/components/FilePreview/FileHandleContentRenderer.d.ts +6 -2
- package/dist/components/FilePreview/FileHandleContentRenderer.d.ts.map +1 -1
- package/dist/components/FilePreview/FileHandleContentRenderer.js +27 -14
- package/dist/components/FilePreview/FileHandleContentRenderer.js.map +1 -1
- package/dist/components/FilePreview/PdfPreview.d.ts +1 -1
- package/dist/components/FilePreview/PdfPreview.d.ts.map +1 -1
- package/dist/components/FilePreview/PdfPreview.js +15 -16
- package/dist/components/FilePreview/PdfPreview.js.map +1 -1
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.d.ts +11 -0
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js +61 -0
- package/dist/components/FormTemplateEditor/ChoiceOptionsEditor.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.d.ts +33 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js +190 -0
- package/dist/components/FormTemplateEditor/FieldDefinitionDrawer.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.css +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.d.ts +17 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.js +88 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.module.js +5 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibrary.module.scss +12 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.d.ts +19 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.js +115 -0
- package/dist/components/FormTemplateEditor/FieldLibraryRow.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.css +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.d.ts +9 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.js +18 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.module.js +5 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/FieldValidationErrorAlert.module.scss +4 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.d.ts +21 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.js +108 -0
- package/dist/components/FormTemplateEditor/FormStructurePanel.js.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.d.ts +10 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.js +31 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditor.js.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.d.ts +15 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js +234 -0
- package/dist/components/FormTemplateEditor/FormTemplateEditorForm.js.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.d.ts +14 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.js +72 -0
- package/dist/components/FormTemplateEditor/FormTemplatePreview.js.map +1 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.d.ts +13 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.js +33 -0
- package/dist/components/FormTemplateEditor/JsonSchemaBodyEditor.js.map +1 -0
- package/dist/components/FormTemplateEditor/StepCard.d.ts +25 -0
- package/dist/components/FormTemplateEditor/StepCard.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/StepCard.js +203 -0
- package/dist/components/FormTemplateEditor/StepCard.js.map +1 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.d.ts +34 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.js +128 -0
- package/dist/components/FormTemplateEditor/StepFieldRow.js.map +1 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.d.ts +19 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.js +78 -0
- package/dist/components/FormTemplateEditor/TemplateFileHandleField.js.map +1 -0
- package/dist/components/FormTemplateEditor/dragHandle.css +1 -0
- package/dist/components/FormTemplateEditor/dragHandle.module.js +8 -0
- package/dist/components/FormTemplateEditor/dragHandle.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/dragHandle.module.scss +22 -0
- package/dist/components/FormTemplateEditor/dropTarget.css +1 -0
- package/dist/components/FormTemplateEditor/dropTarget.module.js +5 -0
- package/dist/components/FormTemplateEditor/dropTarget.module.js.map +1 -0
- package/dist/components/FormTemplateEditor/dropTarget.module.scss +14 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.d.ts +48 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.js +126 -0
- package/dist/components/FormTemplateEditor/formTemplateDraftState.js.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.d.ts +35 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.js +35 -0
- package/dist/components/FormTemplateEditor/formTemplateSchema.js.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.d.ts +32 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.js +75 -0
- package/dist/components/FormTemplateEditor/formTemplateValidation.js.map +1 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.d.ts +27 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.js +84 -0
- package/dist/components/FormTemplateEditor/schemaFieldUtils.js.map +1 -0
- package/dist/components/FormTemplateEditor/sortableIds.d.ts +23 -0
- package/dist/components/FormTemplateEditor/sortableIds.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/sortableIds.js +24 -0
- package/dist/components/FormTemplateEditor/sortableIds.js.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.d.ts +33 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.js +59 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDraft.js.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.d.ts +9 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.js +66 -0
- package/dist/components/FormTemplateEditor/useFormTemplateDrag.js.map +1 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts +28 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.js +54 -0
- package/dist/components/FormTemplateEditor/useSaveFormTemplate.js.map +1 -0
- package/dist/components/FormTemplateEditor/utils.d.ts +21 -0
- package/dist/components/FormTemplateEditor/utils.d.ts.map +1 -0
- package/dist/components/FormTemplateEditor/utils.js +24 -0
- package/dist/components/FormTemplateEditor/utils.js.map +1 -0
- package/dist/components/JsonSchemaForm/CustomFormContext.d.ts +1 -1
- package/dist/components/JsonSchemaForm/CustomFormContext.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.css +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.js.map +1 -1
- package/dist/components/JsonSchemaForm/JsonSchemaForm.module.scss +6 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js +4 -0
- package/dist/components/JsonSchemaForm/templates/RJSFInputLabel.js.map +1 -1
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.d.ts +11 -0
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.js +28 -19
- package/dist/components/JsonSchemaForm/widgets/SelectWidget.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.css +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.d.ts +3 -0
- package/dist/components/QueryBuilder/FilterConditionRow.d.ts.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.js +123 -123
- package/dist/components/QueryBuilder/FilterConditionRow.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.module.js +10 -11
- package/dist/components/QueryBuilder/FilterConditionRow.module.js.map +1 -1
- package/dist/components/QueryBuilder/FilterConditionRow.module.scss +0 -5
- package/dist/components/QueryBuilder/FilterGroupNode.css +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.d.ts +4 -0
- package/dist/components/QueryBuilder/FilterGroupNode.d.ts.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.js +85 -51
- package/dist/components/QueryBuilder/FilterGroupNode.js.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.module.js +10 -9
- package/dist/components/QueryBuilder/FilterGroupNode.module.js.map +1 -1
- package/dist/components/QueryBuilder/FilterGroupNode.module.scss +9 -0
- package/dist/components/QueryBuilder/QBDragHandle.d.ts +10 -0
- package/dist/components/QueryBuilder/QBDragHandle.d.ts.map +1 -0
- package/dist/components/QueryBuilder/QBDragHandle.js +22 -0
- package/dist/components/QueryBuilder/QBDragHandle.js.map +1 -0
- package/dist/components/QueryBuilder/QueryBuilderControls.d.ts.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderControls.js +120 -108
- package/dist/components/QueryBuilder/QueryBuilderControls.js.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts +7 -0
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.d.ts.map +1 -1
- package/dist/components/QueryBuilder/QueryBuilderInternalContext.js.map +1 -1
- package/dist/components/QueryBuilder/qbTreeToReadable.d.ts +2 -1
- package/dist/components/QueryBuilder/qbTreeToReadable.d.ts.map +1 -1
- package/dist/components/QueryBuilder/qbTreeToReadable.js +25 -21
- package/dist/components/QueryBuilder/qbTreeToReadable.js.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderDnd.d.ts +27 -0
- package/dist/components/QueryBuilder/queryBuilderDnd.d.ts.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderDnd.js +41 -0
- package/dist/components/QueryBuilder/queryBuilderDnd.js.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.css +1 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.module.js +8 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.module.js.map +1 -0
- package/dist/components/QueryBuilder/queryBuilderDrag.module.scss +12 -0
- package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts +16 -0
- package/dist/components/QueryBuilder/queryBuilderMetadata.d.ts.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderMetadata.js +13 -5
- package/dist/components/QueryBuilder/queryBuilderMetadata.js.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderOperations.d.ts +13 -0
- package/dist/components/QueryBuilder/queryBuilderOperations.d.ts.map +1 -1
- package/dist/components/QueryBuilder/queryBuilderOperations.js +39 -36
- package/dist/components/QueryBuilder/queryBuilderOperations.js.map +1 -1
- package/dist/components/QueryBuilder/useQBValueDisplayName.d.ts +18 -0
- package/dist/components/QueryBuilder/useQBValueDisplayName.d.ts.map +1 -0
- package/dist/components/QueryBuilder/useQBValueDisplayName.js +64 -0
- package/dist/components/QueryBuilder/useQBValueDisplayName.js.map +1 -0
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.d.ts.map +1 -1
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js +46 -47
- package/dist/components/QueryWrapperPlotNav/QueryWrapperPlotNav.js.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionControls.js +6 -6
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.d.ts +1 -0
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.d.ts.map +1 -1
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.js +13 -11
- package/dist/components/SynapseTable/RowSelection/RowSelectionUI.js.map +1 -1
- package/dist/components/SynapseTable/SearchV2.js +4 -4
- package/dist/components/ToastMessage/ToastMessage.d.ts.map +1 -1
- package/dist/components/ToastMessage/ToastMessage.js +25 -22
- package/dist/components/ToastMessage/ToastMessage.js.map +1 -1
- package/dist/components/dataaccess/FormTemplateEditorRoute.d.ts +7 -0
- package/dist/components/dataaccess/FormTemplateEditorRoute.d.ts.map +1 -0
- package/dist/components/dataaccess/FormTemplateEditorRoute.js +26 -0
- package/dist/components/dataaccess/FormTemplateEditorRoute.js.map +1 -0
- package/dist/components/dataaccess/FormTemplateTable.d.ts +10 -0
- package/dist/components/dataaccess/FormTemplateTable.d.ts.map +1 -0
- package/dist/components/dataaccess/FormTemplateTable.js +124 -0
- package/dist/components/dataaccess/FormTemplateTable.js.map +1 -0
- package/dist/components/dataaccess/ReviewerDashboard.d.ts.map +1 -1
- package/dist/components/dataaccess/ReviewerDashboard.js +80 -50
- package/dist/components/dataaccess/ReviewerDashboard.js.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.d.ts.map +1 -1
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js +2 -0
- package/dist/components/dataaccess/UserAccessRequestHistory/InFlightEDucSignaturesTable.js.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts +0 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.d.ts.map +1 -1
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js +35 -36
- package/dist/components/entity/page/title_bar/EntityPageTitleBar.js.map +1 -1
- package/dist/components/styled/LeftRightPanel.d.ts.map +1 -1
- package/dist/components/styled/LeftRightPanel.js +19 -2
- package/dist/components/styled/LeftRightPanel.js.map +1 -1
- package/dist/components/widgets/FileHandleLink.d.ts +12 -2
- package/dist/components/widgets/FileHandleLink.d.ts.map +1 -1
- package/dist/components/widgets/FileHandleLink.js +25 -29
- package/dist/components/widgets/FileHandleLink.js.map +1 -1
- package/dist/mocks/accessRequirement/mockFormTemplates.d.ts +4 -2
- package/dist/mocks/accessRequirement/mockFormTemplates.d.ts.map +1 -1
- package/dist/mocks/accessRequirement/mockFormTemplates.js +13 -14
- package/dist/mocks/accessRequirement/mockFormTemplates.js.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemas.d.ts +4 -1
- package/dist/mocks/accessRequirement/mockJsonSchemas.d.ts.map +1 -1
- package/dist/mocks/accessRequirement/mockJsonSchemas.js +24 -17
- package/dist/mocks/accessRequirement/mockJsonSchemas.js.map +1 -1
- package/dist/mocks/msw/handlers/asyncJobHandlers.d.ts +41 -14
- package/dist/mocks/msw/handlers/asyncJobHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/asyncJobHandlers.js +53 -44
- package/dist/mocks/msw/handlers/asyncJobHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/authHandlers.d.ts +1 -0
- package/dist/mocks/msw/handlers/authHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/authHandlers.js +6 -2
- package/dist/mocks/msw/handlers/authHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/chatHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/chatHandlers.js +19 -13
- package/dist/mocks/msw/handlers/chatHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts +2 -0
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js +52 -46
- package/dist/mocks/msw/handlers/dataAccessRequestHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/fileHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/fileHandlers.js +25 -21
- package/dist/mocks/msw/handlers/fileHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/formTemplateHandlers.d.ts +2 -1
- package/dist/mocks/msw/handlers/formTemplateHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/formTemplateHandlers.js +18 -18
- package/dist/mocks/msw/handlers/formTemplateHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/schemaHandlers.d.ts +10 -1
- package/dist/mocks/msw/handlers/schemaHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/schemaHandlers.js +30 -7
- package/dist/mocks/msw/handlers/schemaHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/searchQueryHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/searchQueryHandlers.js +24 -18
- package/dist/mocks/msw/handlers/searchQueryHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/tableQueryHandlers.d.ts.map +1 -1
- package/dist/mocks/msw/handlers/tableQueryHandlers.js +35 -16
- package/dist/mocks/msw/handlers/tableQueryHandlers.js.map +1 -1
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.d.ts +8 -0
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.d.ts.map +1 -0
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.js +19 -0
- package/dist/mocks/msw/handlers/twoFactorEnrollmentHandlers.js.map +1 -0
- package/dist/style/abstracts/_cssVariables.scss +13 -0
- package/dist/style/components/_toasts.scss +10 -1
- package/dist/style/main.css +1 -1
- package/dist/synapse-queries/KeyFactory.d.ts +9 -3
- package/dist/synapse-queries/KeyFactory.d.ts.map +1 -1
- package/dist/synapse-queries/KeyFactory.js +17 -7
- package/dist/synapse-queries/KeyFactory.js.map +1 -1
- package/dist/synapse-queries/auth/index.d.ts +1 -0
- package/dist/synapse-queries/auth/index.d.ts.map +1 -1
- package/dist/synapse-queries/auth/index.js +2 -1
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.d.ts +11 -0
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.d.ts.map +1 -0
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.js +19 -0
- package/dist/synapse-queries/auth/useUnbindOAuthProviderIdentity.js.map +1 -0
- package/dist/synapse-queries/dataaccess/index.d.ts +0 -1
- package/dist/synapse-queries/dataaccess/index.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/index.js +3 -4
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts +18 -0
- package/dist/synapse-queries/dataaccess/useEDuc.d.ts.map +1 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js +33 -1
- package/dist/synapse-queries/dataaccess/useEDuc.js.map +1 -1
- package/dist/synapse-queries/file/useDirectUploadToS3.js +6 -6
- package/dist/synapse-queries/file/useFileHandle.d.ts +8 -0
- package/dist/synapse-queries/file/useFileHandle.d.ts.map +1 -1
- package/dist/synapse-queries/file/useFileHandle.js +15 -6
- package/dist/synapse-queries/file/useFileHandle.js.map +1 -1
- package/dist/synapse-queries/index.js +260 -257
- package/dist/synapse-queries/jsonschema/index.js +2 -2
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts +9 -0
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.d.ts.map +1 -0
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js +22 -0
- package/dist/synapse-queries/jsonschema/useCreateJsonSchema.js.map +1 -0
- package/dist/synapse-queries/jsonschema/useSchema.d.ts +5 -0
- package/dist/synapse-queries/jsonschema/useSchema.d.ts.map +1 -1
- package/dist/synapse-queries/jsonschema/useSchema.js +9 -1
- package/dist/synapse-queries/jsonschema/useSchema.js.map +1 -1
- package/dist/testutils/vitest.setup.js +18 -9
- package/dist/testutils/vitest.setup.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/APIConstants.d.ts +2 -0
- package/dist/utils/APIConstants.d.ts.map +1 -1
- package/dist/utils/APIConstants.js +2 -2
- package/dist/utils/APIConstants.js.map +1 -1
- package/dist/utils/appendFinalQueryParamKey.d.ts.map +1 -1
- package/dist/utils/appendFinalQueryParamKey.js +4 -1
- package/dist/utils/appendFinalQueryParamKey.js.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.d.ts +2 -0
- package/dist/utils/featureflag/FeatureFlags.d.ts.map +1 -1
- package/dist/utils/featureflag/FeatureFlags.js +1 -1
- package/dist/utils/featureflag/FeatureFlags.js.map +1 -1
- package/dist/utils/functions/ArrayUtils.d.ts +3 -0
- package/dist/utils/functions/ArrayUtils.d.ts.map +1 -1
- package/dist/utils/functions/ArrayUtils.js +7 -1
- package/dist/utils/functions/ArrayUtils.js.map +1 -1
- package/dist/utils/functions/toPascalCase.d.ts +6 -0
- package/dist/utils/functions/toPascalCase.d.ts.map +1 -0
- package/dist/utils/functions/toPascalCase.js +8 -0
- package/dist/utils/functions/toPascalCase.js.map +1 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.d.ts +26 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.d.ts.map +1 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.js +28 -0
- package/dist/utils/jsonschema/generateDataAccessSchema.js.map +1 -0
- package/dist/utils/jsonschema/submissionContext.d.ts +91 -0
- package/dist/utils/jsonschema/submissionContext.d.ts.map +1 -0
- package/dist/utils/jsonschema/submissionContext.js +178 -0
- package/dist/utils/jsonschema/submissionContext.js.map +1 -0
- package/package.json +13 -10
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.d.ts +0 -6
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.d.ts.map +0 -1
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.js +0 -32
- package/dist/components/AccessRequirement/AddConditionsForUseButton/AddConditionsForUseButton.js.map +0 -1
- package/dist/components/entity/page/title_bar/TitleBarProperties.d.ts +0 -9
- package/dist/components/entity/page/title_bar/TitleBarProperties.d.ts.map +0 -1
- package/dist/components/entity/page/title_bar/TitleBarProperties.js +0 -24
- package/dist/components/entity/page/title_bar/TitleBarProperties.js.map +0 -1
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.d.ts +0 -21
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.d.ts.map +0 -1
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.js +0 -34
- package/dist/synapse-queries/dataaccess/useGenerateDataAccessSchema.js.map +0 -1
|
@@ -32,6 +32,7 @@ export declare const ENTITY_SCHEMA_VALIDATION: (id: string | number) => string;
|
|
|
32
32
|
export declare const ENTITY_ACCESS_REQUIREMENTS: (entityId: string | number) => string;
|
|
33
33
|
export declare const TABLE_QUERY_ASYNC_START: (id: string | number) => string;
|
|
34
34
|
export declare const TABLE_QUERY_ASYNC_GET: (entityId: string | number, asyncJobToken: string) => string;
|
|
35
|
+
export declare const ASYNCHRONOUS_JOB = "/repo/v1/asynchronous/job";
|
|
35
36
|
export declare const ASYNCHRONOUS_JOB_TOKEN: (asyncJobToken: string) => string;
|
|
36
37
|
export declare const SEARCH_QUERY_ASYNC_START = "/repo/v1/search/query/async/start";
|
|
37
38
|
export declare const SEARCH_QUERY_ASYNC_GET: (asyncJobToken: string) => string;
|
|
@@ -112,6 +113,7 @@ export declare const DATA_ACCESS_REQUEST_SIGNATURE: (id: string | number) => str
|
|
|
112
113
|
export declare const DATA_ACCESS_REQUEST_SIGNATURE_STATUS: (id: string | number) => string;
|
|
113
114
|
export declare const DATA_ACCESS_REQUEST_SIGNATURE_FILEHANDLE_ID: (id: string | number) => string;
|
|
114
115
|
export declare const DATA_ACCESS_REQUEST_SIGNATURE_QUOTA: (id: string | number) => string;
|
|
116
|
+
export declare const DATA_ACCESS_REQUEST_SIGNATURE_PRECHECK: (id: string | number) => string;
|
|
115
117
|
export declare const ACCESS_REQUIREMENT_DATA_ACCESS_REQUEST_FOR_UPDATE: (accessRequirementId: string | number) => string;
|
|
116
118
|
export declare const EDUC_TEMPLATE = "/repo/v1/eDuc/template";
|
|
117
119
|
export declare const EDUC_TEMPLATE_VALIDATION: (templateId: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIConstants.d.ts","sourceRoot":"","sources":["../../src/utils/APIConstants.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAG5D,eAAO,MAAM,gBAAgB,QAE1B,CAAA;AAEH,eAAO,MAAM,IAAI,aAAa,CAAA;AAC9B,eAAO,MAAM,IAAI,aAAa,CAAA;AAC9B,eAAO,MAAM,IAAI,aAAa,CAAA;AAK9B,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,GAAG,MAAM,WAAkC,CAAA;AAC9E,eAAO,MAAM,gBAAgB,GAAI,IAAI,MAAM,GAAG,MAAM,WAA0B,CAAA;AAE9E,eAAO,MAAM,MAAM,oBAAmB,CAAA;AACtC,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,WAAoC,CAAA;AAC9E,eAAO,MA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@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BackendDestinationEnum as e, getEndpoint as t } from "./functions/getEndpoint.js";
|
|
2
2
|
import { ObjectType as n } from "@sage-bionetworks/synapse-types";
|
|
3
3
|
//#region src/utils/APIConstants.ts
|
|
4
|
-
var ee = `${t(e.REPO_ENDPOINT)}`, r = "/repo/v1", i = "/auth/v1", a = "/file/v1", o = "/async/start", s = "/async/get", c = (e) => `${i}/oauth2/client/${e}`, te = (e) => `${c(e)}/acl`,
|
|
4
|
+
var ee = `${t(e.REPO_ENDPOINT)}`, r = "/repo/v1", i = "/auth/v1", a = "/file/v1", o = "/async/start", s = "/async/get", c = (e) => `${i}/oauth2/client/${e}`, te = (e) => `${c(e)}/acl`, ne = `${r}/entity`, l = (e) => `${r}/entity/alias/${e}`, u = (e) => `${r}/entity/${e}`, d = (e, t) => `${r}/entity/${e}${t ? `/version/${t}` : ""}`, f = (e) => `${r}/entity/${e}/version`, re = (e, t) => `${d(e, t)}/bundle2`, ie = (e) => `${r}/entity/${e}/access`, ae = (e) => `${u(e)}/acl`, oe = (e) => `${u(e)}/evaluation`, se = (e) => `${u(e)}/path`, ce = (e) => `${u(e)}/permissions`, le = (e) => `${u(e)}/type`, ue = `${r}/entity/header`, de = (e) => `${r}/entity/${e}/json`, fe = (e, t) => `${r}/entity/${e}/version/${t}/json`, p = (e) => `${r}/entity/${e}/schema`, pe = (e) => `${p(e)}/binding`, me = (e) => `${p(e)}/validation`, he = (e) => `${u(e)}/accessRequirement`, ge = (e) => `${u(e)}/table/query/async/start`, _e = (e, t) => `${u(e)}/table/query/async/get/${t}`, m = `${r}/asynchronous/job`, ve = (e) => `${m}/${e}`, ye = `${r}/search/query/async/start`, be = (e) => `${r}/search/query/async/get/${e}`, xe = `${r}/userProfile`, h = `${r}/schema`, Se = `${r}/schema/type/registered`, g = (e) => `${r}/schema/type/registered/${e}`, _ = `${h}/type/validation${o}`, v = (e) => `${h}/type/validation${s}/${e}`, y = `${r}/user`, b = `${y}/bundle`, x = (e) => `${y}/${e}`, S = (e) => `${x(e)}/bundle`, C = `${r}/userProfile`, w = (e) => `${C}/${e}`, T = `${r}/notificationEmail`, E = `${r}/principal/available`, D = (e) => `${r}/account/emailValidation?portalEndpoint=${e}`, O = `${r}/account2`, k = `${i}/termsOfUse2`, A = `${k}/info`, j = `${k}/status`, Ce = (e) => `${r}/project/${e}`, we = (e) => `${Ce(e)}/storage/usage`, M = `${r}/verificationSubmission`, Te = (e) => `${M}/${e}/state`, Ee = `${i}/user/changePassword`, N = `${r}/accessRequirement`, De = `${N}/search`, Oe = `${r}/dataAccessSubmission/search`, P = (e) => `${N}/${e}`, ke = (e) => P(e) + "/acl", Ae = (e) => P(e) + "/status", je = (e) => `${r}/access_requirement/${e}/wikikey`, Me = `${r}/favorite`, Ne = `${r}/userGroupHeaders`, Pe = `${r}/userGroupHeaders/batch`, Fe = (e) => `${r}/dataAccessSubmission/${e}`, Ie = (e) => `${r}/userProfile/${e}/image/preview`, Le = (e) => P(e) + "/approvedSubmissionInfo", F = `${r}/evaluation`, Re = (e) => F + `/${e}`, ze = (e, t) => t ? `${r}/entity/${e}/version/${t}/generatedBy` : `${r}/entity/${e}/generatedBy`, I = `${r}/trashcan`, Be = `${I}/view`, Ve = (e) => `${I}/restore/${e}`, He = (e) => `${I}/purge/${e}`, L = (e) => `${r}/team/${e}`, R = (e, t) => L(e) + `/member/${t}`, Ue = (e) => `${r}/teamMembers/${e}`, z = "https://www.synapse.org/SignedToken:", B = "https://www.synapse.org/Team:", We = `${r}/teamMember/?teamEndpoint=${B}¬ificationUnsubscribeEndpoint=${z}`, Ge = (e, t) => R(e, t) + `?teamEndpoint=${B}¬ificationUnsubscribeEndpoint=${z}`, Ke = (e) => `${r}/membershipInvitation/${e}`, qe = (e) => `${r}/membershipInvitation/${e}/inviteeVerificationSignedToken`, Je = (e) => `${r}/membershipInvitation/${e}/inviteeId`, V = `${r}/forum`, Ye = (e) => `${V}/${e}/threads`, H = `${r}/thread`, U = (e) => `${H}/${e}`, Xe = (e) => `${H}/submission/${e}`, Ze = (e) => `${U(e)}/replies`, W = `${r}/agent`, G = `${W}/session`, Qe = (e) => `${G}/${e}`, $e = `${G}s/list`, et = (e) => `${G}/history/${e}`, tt = `${W}/chat/async/start`, nt = (e) => `${W}/chat/async/get/${e}`, rt = (e) => `${W}/chat/trace/${e}`, K = `${r}/doi`, it = `${K}/association`, q = `${r}/accessApproval`, at = (e) => `${q}/${e}`, J = `${r}/dataAccessRequest`, ot = `${J}/list`, st = (e) => `${J}/${e}/preview`, ct = (e) => `${J}/${e}/submission`, lt = (e) => `${J}/${e}/signature`, ut = (e) => `${J}/${e}/signature/status`, dt = (e) => `${J}/${e}/signature/filehandleId`, ft = (e) => `${J}/${e}/signature/quota`, pt = (e) => `${J}/${e}/signature/precheck`, mt = (e) => `${P(e)}/dataAccessRequestForUpdate`, Y = `${r}/eDuc/template`, ht = (e) => `${Y}/${e}/validation`, X = `${r}/researchProject`, gt = (e) => `${P(e)}/researchProjectForUpdate`, Z = `${a}/fileHandle`, _t = `${Z}/batch`, vt = `${r}/projects`, yt = (e) => `${r}/entity/${e}/actions/download`, Q = (e) => `${r}/${n[e].toLowerCase()}`, $ = (e, t) => `${Q(e)}/${t}/wiki`, bt = (e, t, n) => `${$(e, t)}/${n ?? ""}`, xt = `${i}/sessionAccessToken`, St = (e) => `${i}/user/${e}/sessionAccessToken/all`;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { q as ACCESS_APPROVAL,
|
|
6
|
+
export { q as ACCESS_APPROVAL, at as ACCESS_APPROVAL_BY_ID, Oe as ACCESS_REQUEST_SUBMISSION_SEARCH, N as ACCESS_REQUIREMENT, ke as ACCESS_REQUIREMENT_ACL, P as ACCESS_REQUIREMENT_BY_ID, mt as ACCESS_REQUIREMENT_DATA_ACCESS_REQUEST_FOR_UPDATE, gt as ACCESS_REQUIREMENT_RESEARCH_PROJECT_FOR_UPDATE, De as ACCESS_REQUIREMENT_SEARCH, Ae as ACCESS_REQUIREMENT_STATUS, je as ACCESS_REQUIREMENT_WIKI_PAGE_KEY, ze as ACTIVITY_FOR_ENTITY, W as AGENT, rt as AGENT_CHAT_TRACE, G as AGENT_SESSION, et as AGENT_SESSION_HISTORY, E as ALIAS_AVAILABLE, St as ALL_USER_SESSION_TOKENS, Le as APPROVED_SUBMISSION_INFO, m as ASYNCHRONOUS_JOB, ve as ASYNCHRONOUS_JOB_TOKEN, i as AUTH, ee as BACKEND_ENDPOINT, Je as BIND_INVITATION_TO_AUTHENTICATED_USER, Ee as CHANGE_PASSWORD, J as DATA_ACCESS_REQUEST, ot as DATA_ACCESS_REQUEST_LIST, st as DATA_ACCESS_REQUEST_PREVIEW, lt as DATA_ACCESS_REQUEST_SIGNATURE, dt as DATA_ACCESS_REQUEST_SIGNATURE_FILEHANDLE_ID, pt as DATA_ACCESS_REQUEST_SIGNATURE_PRECHECK, ft as DATA_ACCESS_REQUEST_SIGNATURE_QUOTA, ut as DATA_ACCESS_REQUEST_SIGNATURE_STATUS, ct as DATA_ACCESS_REQUEST_SUBMISSION, Fe as DATA_ACCESS_SUBMISSION_BY_ID, K as DOI, it as DOI_ASSOCIATION, Y as EDUC_TEMPLATE, ht as EDUC_TEMPLATE_VALIDATION, ne as ENTITY, ie as ENTITY_ACCESS, he as ENTITY_ACCESS_REQUIREMENTS, ae as ENTITY_ACL, yt as ENTITY_ACTIONS_REQUIRED, l as ENTITY_ALIAS, re as ENTITY_BUNDLE_V2, oe as ENTITY_EVALUATION, ue as ENTITY_HEADERS, le as ENTITY_HEADER_BY_ID, u as ENTITY_ID, d as ENTITY_ID_VERSION, f as ENTITY_ID_VERSIONS, de as ENTITY_JSON, se as ENTITY_PATH, ce as ENTITY_PERMISSIONS, p as ENTITY_SCHEMA, pe as ENTITY_SCHEMA_BINDING, me as ENTITY_SCHEMA_VALIDATION, fe as ENTITY_VERSION_JSON, F as EVALUATION, Re as EVALUATION_BY_ID, Me as FAVORITES, a as FILE, Z as FILE_HANDLE, _t as FILE_HANDLE_BATCH, V as FORUM, Ye as FORUM_THREAD, nt as GET_CHAT_ASYNC, qe as INVITEE_VERIFICATION_SIGNED_TOKEN, $e as LIST_AGENT_SESSIONS, Ke as MEMBERSHIP_INVITATION, T as NOTIFICATION_EMAIL, te as OAUTH_CLIENT_ACL, c as OAUTH_ID, Ie as PROFILE_IMAGE_PREVIEW, vt as PROJECTS, we as PROJECT_STORAGE_USAGE, Se as REGISTERED_SCHEMA, g as REGISTERED_SCHEMA_ID, D as REGISTER_ACCOUNT_STEP_1, O as REGISTER_ACCOUNT_STEP_2, r as REPO, X as RESEARCH_PROJECT, h as SCHEMA, v as SCHEMA_VALIDATION_GET, _ as SCHEMA_VALIDATION_START, be as SEARCH_QUERY_ASYNC_GET, ye as SEARCH_QUERY_ASYNC_START, xt as SESSION_ACCESS_TOKEN, tt as START_CHAT_ASYNC, _e as TABLE_QUERY_ASYNC_GET, ge as TABLE_QUERY_ASYNC_START, L as TEAM, R as TEAM_ID_MEMBER_ID, Ge as TEAM_ID_MEMBER_ID_WITH_NOTIFICATION, We as TEAM_MEMBER, Ue as TEAM_MEMBERS, k as TERMS_OF_USE, A as TERMS_OF_USE_INFO, j as TERMS_OF_USE_STATUS, H as THREAD, Xe as THREAD_FOR_SUBMISSION, U as THREAD_ID, Ze as THREAD_REPLIES, I as TRASHCAN, He as TRASHCAN_PURGE, Ve as TRASHCAN_RESTORE, Be as TRASHCAN_VIEW, Qe as UPDATE_AGENT_SESSION, y as USER, b as USER_BUNDLE, Ne as USER_GROUP_HEADERS, Pe as USER_GROUP_HEADERS_BATCH, x as USER_ID, S as USER_ID_BUNDLE, C as USER_PROFILE, xe as USER_PROFILE_ENDPOINT, w as USER_PROFILE_ID, M as VERIFICATION_SUBMISSION, Te as VERIFICATION_SUBMISSION_STATE, Q as WIKI_OBJECT_TYPE, $ as WIKI_PAGE, bt as WIKI_PAGE_ID };
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=APIConstants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"APIConstants.js","names":[],"sources":["../../src/utils/APIConstants.ts"],"sourcesContent":["/**\n * Separating API endpoints into their own constants file\n */\n\nimport { ObjectType } from '@sage-bionetworks/synapse-types'\nimport { getEndpoint, BackendDestinationEnum } from './functions/getEndpoint'\n\nexport const BACKEND_ENDPOINT = `${getEndpoint(\n BackendDestinationEnum.REPO_ENDPOINT,\n)}`\n\nexport const REPO = `/repo/v1`\nexport const AUTH = `/auth/v1`\nexport const FILE = `/file/v1`\n\nconst ASYNC_START = '/async/start'\nconst ASYNC_GET = '/async/get'\n\nexport const OAUTH_ID = (id: string | number) => `${AUTH}/oauth2/client/${id}`\nexport const OAUTH_CLIENT_ACL = (id: string | number) => `${OAUTH_ID(id)}/acl`\n\nexport const ENTITY = `${REPO}/entity`\nexport const ENTITY_ALIAS = (alias: string) => `${REPO}/entity/alias/${alias}`\nexport const ENTITY_ID = (id: string | number) => `${REPO}/entity/${id}`\n/**\n * Some services allow (but do not require) you to specify the version in the path.\n */\nexport const ENTITY_ID_VERSION = (\n id: string | number,\n version?: string | number,\n) => `${REPO}/entity/${id}${version ? `/version/${version}` : ''}`\nexport const ENTITY_ID_VERSIONS = (id: string | number) =>\n `${REPO}/entity/${id}/version`\nexport const ENTITY_BUNDLE_V2 = (\n id: string | number,\n version?: string | number,\n) => `${ENTITY_ID_VERSION(id, version)}/bundle2`\nexport const ENTITY_ACCESS = (id: string | number) =>\n `${REPO}/entity/${id}/access`\nexport const ENTITY_ACL = (id: string | number) => `${ENTITY_ID(id)}/acl`\nexport const ENTITY_EVALUATION = (id: string | number) =>\n `${ENTITY_ID(id)}/evaluation`\nexport const ENTITY_PATH = (id: string | number) => `${ENTITY_ID(id)}/path`\nexport const ENTITY_PERMISSIONS = (id: string | number) =>\n `${ENTITY_ID(id)}/permissions`\nexport const ENTITY_HEADER_BY_ID = (id: string | number) =>\n `${ENTITY_ID(id)}/type`\nexport const ENTITY_HEADERS = `${REPO}/entity/header`\n\nexport const ENTITY_JSON = (id: string | number) => `${REPO}/entity/${id}/json`\nexport const ENTITY_VERSION_JSON = (\n id: string | number,\n versionNumber: number,\n) => `${REPO}/entity/${id}/version/${versionNumber}/json`\n\nexport const ENTITY_SCHEMA = (id: string | number) =>\n `${REPO}/entity/${id}/schema`\nexport const ENTITY_SCHEMA_BINDING = (id: string | number) =>\n `${ENTITY_SCHEMA(id)}/binding`\nexport const ENTITY_SCHEMA_VALIDATION = (id: string | number) =>\n `${ENTITY_SCHEMA(id)}/validation`\n\nexport const ENTITY_ACCESS_REQUIREMENTS = (entityId: string | number) =>\n `${ENTITY_ID(entityId)}/accessRequirement`\n\nexport const TABLE_QUERY_ASYNC_START = (id: string | number) =>\n `${ENTITY_ID(id)}/table/query/async/start`\n\nexport const TABLE_QUERY_ASYNC_GET = (\n entityId: string | number,\n asyncJobToken: string,\n) => `${ENTITY_ID(entityId)}/table/query/async/get/${asyncJobToken}`\n\nexport const ASYNCHRONOUS_JOB_TOKEN = (asyncJobToken: string) =>\n `${REPO}/asynchronous/job/${asyncJobToken}`\n\nexport const SEARCH_QUERY_ASYNC_START = `${REPO}/search/query/async/start`\nexport const SEARCH_QUERY_ASYNC_GET = (asyncJobToken: string) =>\n `${REPO}/search/query/async/get/${asyncJobToken}`\n\nexport const USER_PROFILE_ENDPOINT = `${REPO}/userProfile`\n\nexport const SCHEMA = `${REPO}/schema`\nexport const REGISTERED_SCHEMA = `${REPO}/schema/type/registered`\nexport const REGISTERED_SCHEMA_ID = (schema$id: string | number) =>\n `${REPO}/schema/type/registered/${schema$id}`\nexport const SCHEMA_VALIDATION_START = `${SCHEMA}/type/validation${ASYNC_START}`\nexport const SCHEMA_VALIDATION_GET = (asyncJobId: string | number) =>\n `${SCHEMA}/type/validation${ASYNC_GET}/${asyncJobId}`\n\nexport const USER = `${REPO}/user`\nexport const USER_BUNDLE = `${USER}/bundle`\nexport const USER_ID = (id: string | number) => `${USER}/${id}`\nexport const USER_ID_BUNDLE = (id: string | number) => `${USER_ID(id)}/bundle`\n\nexport const USER_PROFILE = `${REPO}/userProfile`\nexport const USER_PROFILE_ID = (id: string | number) => `${USER_PROFILE}/${id}`\n\nexport const NOTIFICATION_EMAIL = `${REPO}/notificationEmail`\nexport const ALIAS_AVAILABLE = `${REPO}/principal/available`\nexport const REGISTER_ACCOUNT_STEP_1 = (portalEndpoint: string) =>\n `${REPO}/account/emailValidation?portalEndpoint=${portalEndpoint}`\nexport const REGISTER_ACCOUNT_STEP_2 = `${REPO}/account2`\nexport const TERMS_OF_USE = `${AUTH}/termsOfUse2`\nexport const TERMS_OF_USE_INFO = `${TERMS_OF_USE}/info`\nexport const TERMS_OF_USE_STATUS = `${TERMS_OF_USE}/status`\nconst PROJECT = (projectId: string) => `${REPO}/project/${projectId}`\nexport const PROJECT_STORAGE_USAGE = (projectId: string) =>\n `${PROJECT(projectId)}/storage/usage`\nexport const VERIFICATION_SUBMISSION = `${REPO}/verificationSubmission`\nexport const VERIFICATION_SUBMISSION_STATE = (id: string) =>\n `${VERIFICATION_SUBMISSION}/${id}/state`\nexport const CHANGE_PASSWORD = `${AUTH}/user/changePassword`\n\nexport const ACCESS_REQUIREMENT = `${REPO}/accessRequirement`\nexport const ACCESS_REQUIREMENT_SEARCH = `${ACCESS_REQUIREMENT}/search`\nexport const ACCESS_REQUEST_SUBMISSION_SEARCH = `${REPO}/dataAccessSubmission/search`\n\nexport const ACCESS_REQUIREMENT_BY_ID = (id: string | number) =>\n `${ACCESS_REQUIREMENT}/${id}`\n\nexport const ACCESS_REQUIREMENT_ACL = (id: string | number) =>\n ACCESS_REQUIREMENT_BY_ID(id) + '/acl'\n\nexport const ACCESS_REQUIREMENT_STATUS = (id: string | number) =>\n ACCESS_REQUIREMENT_BY_ID(id) + '/status'\n\nexport const ACCESS_REQUIREMENT_WIKI_PAGE_KEY = (id: string | number) =>\n // Note that this is `access_requirement` not `accessRequirement`!\n `${REPO}/access_requirement/${id}/wikikey`\n\nexport const FAVORITES = `${REPO}/favorite`\n\nexport const USER_GROUP_HEADERS = `${REPO}/userGroupHeaders`\nexport const USER_GROUP_HEADERS_BATCH = `${REPO}/userGroupHeaders/batch`\n\nexport const DATA_ACCESS_SUBMISSION_BY_ID = (id: string | number) =>\n `${REPO}/dataAccessSubmission/${id}`\n\nexport const PROFILE_IMAGE_PREVIEW = (userId: string) =>\n `${REPO}/userProfile/${userId}/image/preview`\n\nexport const APPROVED_SUBMISSION_INFO = (\n accessRequirementId: string | number,\n) => ACCESS_REQUIREMENT_BY_ID(accessRequirementId) + `/approvedSubmissionInfo`\n\nexport const EVALUATION = `${REPO}/evaluation`\nexport const EVALUATION_BY_ID = (id: string | number) => EVALUATION + `/${id}`\n\nexport const ACTIVITY_FOR_ENTITY = (entityId: string, versionNumber?: string) =>\n versionNumber\n ? `${REPO}/entity/${entityId}/version/${versionNumber}/generatedBy`\n : `${REPO}/entity/${entityId}/generatedBy`\nexport const TRASHCAN = `${REPO}/trashcan`\nexport const TRASHCAN_VIEW = `${TRASHCAN}/view`\nexport const TRASHCAN_RESTORE = (id: string) => `${TRASHCAN}/restore/${id}`\nexport const TRASHCAN_PURGE = (id: string) => `${TRASHCAN}/purge/${id}`\n\nexport const TEAM = (teamId: string | number) => `${REPO}/team/${teamId}`\nexport const TEAM_ID_MEMBER_ID = (\n teamId: string | number,\n memberId: string | number,\n) => TEAM(teamId) + `/member/${memberId}`\nexport const TEAM_MEMBERS = (teamId: string | number) =>\n `${REPO}/teamMembers/${teamId}`\n\nconst notificationUnsubscribeEndpoint = 'https://www.synapse.org/SignedToken:'\nconst teamEndpoint = 'https://www.synapse.org/Team:'\n\nexport const TEAM_MEMBER = `${REPO}/teamMember/?teamEndpoint=${teamEndpoint}¬ificationUnsubscribeEndpoint=${notificationUnsubscribeEndpoint}`\nexport const TEAM_ID_MEMBER_ID_WITH_NOTIFICATION = (\n teamId: string | number,\n memberId: string | number,\n) =>\n TEAM_ID_MEMBER_ID(teamId, memberId) +\n `?teamEndpoint=${teamEndpoint}¬ificationUnsubscribeEndpoint=${notificationUnsubscribeEndpoint}`\nexport const MEMBERSHIP_INVITATION = (id: string) =>\n `${REPO}/membershipInvitation/${id}`\nexport const INVITEE_VERIFICATION_SIGNED_TOKEN = (id: string) =>\n `${REPO}/membershipInvitation/${id}/inviteeVerificationSignedToken`\nexport const BIND_INVITATION_TO_AUTHENTICATED_USER = (id: string) =>\n `${REPO}/membershipInvitation/${id}/inviteeId`\n\nexport const FORUM = `${REPO}/forum`\nexport const FORUM_THREAD = (id: string) => `${FORUM}/${id}/threads`\n\nexport const THREAD = `${REPO}/thread`\nexport const THREAD_ID = (id: string) => `${THREAD}/${id}`\nexport const THREAD_FOR_SUBMISSION = (submissionId: string | number) =>\n `${THREAD}/submission/${submissionId}`\nexport const THREAD_REPLIES = (id: string) => `${THREAD_ID(id)}/replies`\n\nexport const AGENT = `${REPO}/agent`\nexport const AGENT_SESSION = `${AGENT}/session`\nexport const UPDATE_AGENT_SESSION = (sessionId?: string) =>\n `${AGENT_SESSION}/${sessionId}`\nexport const LIST_AGENT_SESSIONS = `${AGENT_SESSION}s/list`\nexport const AGENT_SESSION_HISTORY = (sessionId?: string) =>\n `${AGENT_SESSION}/history/${sessionId}`\nexport const START_CHAT_ASYNC = `${AGENT}/chat/async/start`\nexport const GET_CHAT_ASYNC = (jobId: string | number) =>\n `${AGENT}/chat/async/get/${jobId}`\n\nexport const AGENT_CHAT_TRACE = (jobId: string | number) =>\n `${AGENT}/chat/trace/${jobId}`\n\nexport const DOI = `${REPO}/doi`\nexport const DOI_ASSOCIATION = `${DOI}/association`\n\nexport const ACCESS_APPROVAL = `${REPO}/accessApproval`\nexport const ACCESS_APPROVAL_BY_ID = (id: string | number) =>\n `${ACCESS_APPROVAL}/${id}`\n\nexport const DATA_ACCESS_REQUEST = `${REPO}/dataAccessRequest`\nexport const DATA_ACCESS_REQUEST_LIST = `${DATA_ACCESS_REQUEST}/list`\nexport const DATA_ACCESS_REQUEST_PREVIEW = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/preview`\nexport const DATA_ACCESS_REQUEST_SUBMISSION = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/submission`\nexport const DATA_ACCESS_REQUEST_SIGNATURE = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_STATUS = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature/status`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_FILEHANDLE_ID = (\n id: string | number,\n) => `${DATA_ACCESS_REQUEST}/${id}/signature/filehandleId`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_QUOTA = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature/quota`\nexport const ACCESS_REQUIREMENT_DATA_ACCESS_REQUEST_FOR_UPDATE = (\n accessRequirementId: string | number,\n) =>\n `${ACCESS_REQUIREMENT_BY_ID(accessRequirementId)}/dataAccessRequestForUpdate`\n\nexport const EDUC_TEMPLATE = `${REPO}/eDuc/template`\nexport const EDUC_TEMPLATE_VALIDATION = (templateId: string) =>\n `${EDUC_TEMPLATE}/${templateId}/validation`\n\nexport const RESEARCH_PROJECT = `${REPO}/researchProject`\nexport const ACCESS_REQUIREMENT_RESEARCH_PROJECT_FOR_UPDATE = (\n accessRequirementId: string | number,\n) => `${ACCESS_REQUIREMENT_BY_ID(accessRequirementId)}/researchProjectForUpdate`\n\nexport const FILE_HANDLE = `${FILE}/fileHandle`\nexport const FILE_HANDLE_BATCH = `${FILE_HANDLE}/batch`\n\nexport const PROJECTS = `${REPO}/projects`\nexport const ENTITY_ACTIONS_REQUIRED = (entityId: string) =>\n `${REPO}/entity/${entityId}/actions/download`\n\nexport const WIKI_OBJECT_TYPE = (objectType: ObjectType) => {\n return `${REPO}/${ObjectType[objectType].toLowerCase()}`\n}\n\nexport const WIKI_PAGE = (\n ownerObjectType: ObjectType,\n ownerObjectId: string,\n) => {\n return `${WIKI_OBJECT_TYPE(ownerObjectType)}/${ownerObjectId}/wiki`\n}\nexport const WIKI_PAGE_ID = (\n ownerObjectType: ObjectType,\n ownerObjectId: string,\n wikiPageId: string | undefined,\n) => {\n return `${WIKI_PAGE(ownerObjectType, ownerObjectId)}/${wikiPageId ?? ''}`\n}\n\nexport const SESSION_ACCESS_TOKEN = `${AUTH}/sessionAccessToken`\nexport const ALL_USER_SESSION_TOKENS = (targetUserId: string | number) =>\n `${AUTH}/user/${targetUserId}/sessionAccessToken/all`\n"],"mappings":";;;AAOA,IAAa,KAAmB,GAAG,EACjC,EAAuB,aACzB,KAEa,IAAO,YACP,IAAO,YACP,IAAO,YAEd,IAAc,gBACd,IAAY,cAEL,KAAY,MAAwB,GAAG,EAAK,iBAAiB,KAC7D,MAAoB,MAAwB,GAAG,EAAS,CAAE,EAAE,OAE5D,IAAS,GAAG,EAAK,UACjB,KAAgB,MAAkB,GAAG,EAAK,gBAAgB,KAC1D,KAAa,MAAwB,GAAG,EAAK,UAAU,KAIvD,KACX,GACA,MACG,GAAG,EAAK,UAAU,IAAK,IAAU,YAAY,MAAY,MACjD,MAAsB,MACjC,GAAG,EAAK,UAAU,EAAG,WACV,MACX,GACA,MACG,GAAG,EAAkB,GAAI,CAAO,EAAE,WAC1B,MAAiB,MAC5B,GAAG,EAAK,UAAU,EAAG,UACV,MAAc,MAAwB,GAAG,EAAU,CAAE,EAAE,OACvD,MAAqB,MAChC,GAAG,EAAU,CAAE,EAAE,cACN,MAAe,MAAwB,GAAG,EAAU,CAAE,EAAE,QACxD,MAAsB,MACjC,GAAG,EAAU,CAAE,EAAE,eACN,MAAuB,MAClC,GAAG,EAAU,CAAE,EAAE,QACN,KAAiB,GAAG,EAAK,iBAEzB,MAAe,MAAwB,GAAG,EAAK,UAAU,EAAG,QAC5D,MACX,GACA,MACG,GAAG,EAAK,UAAU,EAAG,WAAW,EAAc,QAEtC,KAAiB,MAC5B,GAAG,EAAK,UAAU,EAAG,UACV,MAAyB,MACpC,GA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K,QAAQ,EAAa"}
|
|
1
|
+
{"version":3,"file":"APIConstants.js","names":[],"sources":["../../src/utils/APIConstants.ts"],"sourcesContent":["/**\n * Separating API endpoints into their own constants file\n */\n\nimport { ObjectType } from '@sage-bionetworks/synapse-types'\nimport { getEndpoint, BackendDestinationEnum } from './functions/getEndpoint'\n\nexport const BACKEND_ENDPOINT = `${getEndpoint(\n BackendDestinationEnum.REPO_ENDPOINT,\n)}`\n\nexport const REPO = `/repo/v1`\nexport const AUTH = `/auth/v1`\nexport const FILE = `/file/v1`\n\nconst ASYNC_START = '/async/start'\nconst ASYNC_GET = '/async/get'\n\nexport const OAUTH_ID = (id: string | number) => `${AUTH}/oauth2/client/${id}`\nexport const OAUTH_CLIENT_ACL = (id: string | number) => `${OAUTH_ID(id)}/acl`\n\nexport const ENTITY = `${REPO}/entity`\nexport const ENTITY_ALIAS = (alias: string) => `${REPO}/entity/alias/${alias}`\nexport const ENTITY_ID = (id: string | number) => `${REPO}/entity/${id}`\n/**\n * Some services allow (but do not require) you to specify the version in the path.\n */\nexport const ENTITY_ID_VERSION = (\n id: string | number,\n version?: string | number,\n) => `${REPO}/entity/${id}${version ? `/version/${version}` : ''}`\nexport const ENTITY_ID_VERSIONS = (id: string | number) =>\n `${REPO}/entity/${id}/version`\nexport const ENTITY_BUNDLE_V2 = (\n id: string | number,\n version?: string | number,\n) => `${ENTITY_ID_VERSION(id, version)}/bundle2`\nexport const ENTITY_ACCESS = (id: string | number) =>\n `${REPO}/entity/${id}/access`\nexport const ENTITY_ACL = (id: string | number) => `${ENTITY_ID(id)}/acl`\nexport const ENTITY_EVALUATION = (id: string | number) =>\n `${ENTITY_ID(id)}/evaluation`\nexport const ENTITY_PATH = (id: string | number) => `${ENTITY_ID(id)}/path`\nexport const ENTITY_PERMISSIONS = (id: string | number) =>\n `${ENTITY_ID(id)}/permissions`\nexport const ENTITY_HEADER_BY_ID = (id: string | number) =>\n `${ENTITY_ID(id)}/type`\nexport const ENTITY_HEADERS = `${REPO}/entity/header`\n\nexport const ENTITY_JSON = (id: string | number) => `${REPO}/entity/${id}/json`\nexport const ENTITY_VERSION_JSON = (\n id: string | number,\n versionNumber: number,\n) => `${REPO}/entity/${id}/version/${versionNumber}/json`\n\nexport const ENTITY_SCHEMA = (id: string | number) =>\n `${REPO}/entity/${id}/schema`\nexport const ENTITY_SCHEMA_BINDING = (id: string | number) =>\n `${ENTITY_SCHEMA(id)}/binding`\nexport const ENTITY_SCHEMA_VALIDATION = (id: string | number) =>\n `${ENTITY_SCHEMA(id)}/validation`\n\nexport const ENTITY_ACCESS_REQUIREMENTS = (entityId: string | number) =>\n `${ENTITY_ID(entityId)}/accessRequirement`\n\nexport const TABLE_QUERY_ASYNC_START = (id: string | number) =>\n `${ENTITY_ID(id)}/table/query/async/start`\n\nexport const TABLE_QUERY_ASYNC_GET = (\n entityId: string | number,\n asyncJobToken: string,\n) => `${ENTITY_ID(entityId)}/table/query/async/get/${asyncJobToken}`\n\nexport const ASYNCHRONOUS_JOB = `${REPO}/asynchronous/job`\nexport const ASYNCHRONOUS_JOB_TOKEN = (asyncJobToken: string) =>\n `${ASYNCHRONOUS_JOB}/${asyncJobToken}`\n\nexport const SEARCH_QUERY_ASYNC_START = `${REPO}/search/query/async/start`\nexport const SEARCH_QUERY_ASYNC_GET = (asyncJobToken: string) =>\n `${REPO}/search/query/async/get/${asyncJobToken}`\n\nexport const USER_PROFILE_ENDPOINT = `${REPO}/userProfile`\n\nexport const SCHEMA = `${REPO}/schema`\nexport const REGISTERED_SCHEMA = `${REPO}/schema/type/registered`\nexport const REGISTERED_SCHEMA_ID = (schema$id: string | number) =>\n `${REPO}/schema/type/registered/${schema$id}`\nexport const SCHEMA_VALIDATION_START = `${SCHEMA}/type/validation${ASYNC_START}`\nexport const SCHEMA_VALIDATION_GET = (asyncJobId: string | number) =>\n `${SCHEMA}/type/validation${ASYNC_GET}/${asyncJobId}`\n\nexport const USER = `${REPO}/user`\nexport const USER_BUNDLE = `${USER}/bundle`\nexport const USER_ID = (id: string | number) => `${USER}/${id}`\nexport const USER_ID_BUNDLE = (id: string | number) => `${USER_ID(id)}/bundle`\n\nexport const USER_PROFILE = `${REPO}/userProfile`\nexport const USER_PROFILE_ID = (id: string | number) => `${USER_PROFILE}/${id}`\n\nexport const NOTIFICATION_EMAIL = `${REPO}/notificationEmail`\nexport const ALIAS_AVAILABLE = `${REPO}/principal/available`\nexport const REGISTER_ACCOUNT_STEP_1 = (portalEndpoint: string) =>\n `${REPO}/account/emailValidation?portalEndpoint=${portalEndpoint}`\nexport const REGISTER_ACCOUNT_STEP_2 = `${REPO}/account2`\nexport const TERMS_OF_USE = `${AUTH}/termsOfUse2`\nexport const TERMS_OF_USE_INFO = `${TERMS_OF_USE}/info`\nexport const TERMS_OF_USE_STATUS = `${TERMS_OF_USE}/status`\nconst PROJECT = (projectId: string) => `${REPO}/project/${projectId}`\nexport const PROJECT_STORAGE_USAGE = (projectId: string) =>\n `${PROJECT(projectId)}/storage/usage`\nexport const VERIFICATION_SUBMISSION = `${REPO}/verificationSubmission`\nexport const VERIFICATION_SUBMISSION_STATE = (id: string) =>\n `${VERIFICATION_SUBMISSION}/${id}/state`\nexport const CHANGE_PASSWORD = `${AUTH}/user/changePassword`\n\nexport const ACCESS_REQUIREMENT = `${REPO}/accessRequirement`\nexport const ACCESS_REQUIREMENT_SEARCH = `${ACCESS_REQUIREMENT}/search`\nexport const ACCESS_REQUEST_SUBMISSION_SEARCH = `${REPO}/dataAccessSubmission/search`\n\nexport const ACCESS_REQUIREMENT_BY_ID = (id: string | number) =>\n `${ACCESS_REQUIREMENT}/${id}`\n\nexport const ACCESS_REQUIREMENT_ACL = (id: string | number) =>\n ACCESS_REQUIREMENT_BY_ID(id) + '/acl'\n\nexport const ACCESS_REQUIREMENT_STATUS = (id: string | number) =>\n ACCESS_REQUIREMENT_BY_ID(id) + '/status'\n\nexport const ACCESS_REQUIREMENT_WIKI_PAGE_KEY = (id: string | number) =>\n // Note that this is `access_requirement` not `accessRequirement`!\n `${REPO}/access_requirement/${id}/wikikey`\n\nexport const FAVORITES = `${REPO}/favorite`\n\nexport const USER_GROUP_HEADERS = `${REPO}/userGroupHeaders`\nexport const USER_GROUP_HEADERS_BATCH = `${REPO}/userGroupHeaders/batch`\n\nexport const DATA_ACCESS_SUBMISSION_BY_ID = (id: string | number) =>\n `${REPO}/dataAccessSubmission/${id}`\n\nexport const PROFILE_IMAGE_PREVIEW = (userId: string) =>\n `${REPO}/userProfile/${userId}/image/preview`\n\nexport const APPROVED_SUBMISSION_INFO = (\n accessRequirementId: string | number,\n) => ACCESS_REQUIREMENT_BY_ID(accessRequirementId) + `/approvedSubmissionInfo`\n\nexport const EVALUATION = `${REPO}/evaluation`\nexport const EVALUATION_BY_ID = (id: string | number) => EVALUATION + `/${id}`\n\nexport const ACTIVITY_FOR_ENTITY = (entityId: string, versionNumber?: string) =>\n versionNumber\n ? `${REPO}/entity/${entityId}/version/${versionNumber}/generatedBy`\n : `${REPO}/entity/${entityId}/generatedBy`\nexport const TRASHCAN = `${REPO}/trashcan`\nexport const TRASHCAN_VIEW = `${TRASHCAN}/view`\nexport const TRASHCAN_RESTORE = (id: string) => `${TRASHCAN}/restore/${id}`\nexport const TRASHCAN_PURGE = (id: string) => `${TRASHCAN}/purge/${id}`\n\nexport const TEAM = (teamId: string | number) => `${REPO}/team/${teamId}`\nexport const TEAM_ID_MEMBER_ID = (\n teamId: string | number,\n memberId: string | number,\n) => TEAM(teamId) + `/member/${memberId}`\nexport const TEAM_MEMBERS = (teamId: string | number) =>\n `${REPO}/teamMembers/${teamId}`\n\nconst notificationUnsubscribeEndpoint = 'https://www.synapse.org/SignedToken:'\nconst teamEndpoint = 'https://www.synapse.org/Team:'\n\nexport const TEAM_MEMBER = `${REPO}/teamMember/?teamEndpoint=${teamEndpoint}¬ificationUnsubscribeEndpoint=${notificationUnsubscribeEndpoint}`\nexport const TEAM_ID_MEMBER_ID_WITH_NOTIFICATION = (\n teamId: string | number,\n memberId: string | number,\n) =>\n TEAM_ID_MEMBER_ID(teamId, memberId) +\n `?teamEndpoint=${teamEndpoint}¬ificationUnsubscribeEndpoint=${notificationUnsubscribeEndpoint}`\nexport const MEMBERSHIP_INVITATION = (id: string) =>\n `${REPO}/membershipInvitation/${id}`\nexport const INVITEE_VERIFICATION_SIGNED_TOKEN = (id: string) =>\n `${REPO}/membershipInvitation/${id}/inviteeVerificationSignedToken`\nexport const BIND_INVITATION_TO_AUTHENTICATED_USER = (id: string) =>\n `${REPO}/membershipInvitation/${id}/inviteeId`\n\nexport const FORUM = `${REPO}/forum`\nexport const FORUM_THREAD = (id: string) => `${FORUM}/${id}/threads`\n\nexport const THREAD = `${REPO}/thread`\nexport const THREAD_ID = (id: string) => `${THREAD}/${id}`\nexport const THREAD_FOR_SUBMISSION = (submissionId: string | number) =>\n `${THREAD}/submission/${submissionId}`\nexport const THREAD_REPLIES = (id: string) => `${THREAD_ID(id)}/replies`\n\nexport const AGENT = `${REPO}/agent`\nexport const AGENT_SESSION = `${AGENT}/session`\nexport const UPDATE_AGENT_SESSION = (sessionId?: string) =>\n `${AGENT_SESSION}/${sessionId}`\nexport const LIST_AGENT_SESSIONS = `${AGENT_SESSION}s/list`\nexport const AGENT_SESSION_HISTORY = (sessionId?: string) =>\n `${AGENT_SESSION}/history/${sessionId}`\nexport const START_CHAT_ASYNC = `${AGENT}/chat/async/start`\nexport const GET_CHAT_ASYNC = (jobId: string | number) =>\n `${AGENT}/chat/async/get/${jobId}`\n\nexport const AGENT_CHAT_TRACE = (jobId: string | number) =>\n `${AGENT}/chat/trace/${jobId}`\n\nexport const DOI = `${REPO}/doi`\nexport const DOI_ASSOCIATION = `${DOI}/association`\n\nexport const ACCESS_APPROVAL = `${REPO}/accessApproval`\nexport const ACCESS_APPROVAL_BY_ID = (id: string | number) =>\n `${ACCESS_APPROVAL}/${id}`\n\nexport const DATA_ACCESS_REQUEST = `${REPO}/dataAccessRequest`\nexport const DATA_ACCESS_REQUEST_LIST = `${DATA_ACCESS_REQUEST}/list`\nexport const DATA_ACCESS_REQUEST_PREVIEW = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/preview`\nexport const DATA_ACCESS_REQUEST_SUBMISSION = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/submission`\nexport const DATA_ACCESS_REQUEST_SIGNATURE = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_STATUS = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature/status`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_FILEHANDLE_ID = (\n id: string | number,\n) => `${DATA_ACCESS_REQUEST}/${id}/signature/filehandleId`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_QUOTA = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature/quota`\nexport const DATA_ACCESS_REQUEST_SIGNATURE_PRECHECK = (id: string | number) =>\n `${DATA_ACCESS_REQUEST}/${id}/signature/precheck`\nexport const ACCESS_REQUIREMENT_DATA_ACCESS_REQUEST_FOR_UPDATE = (\n accessRequirementId: string | number,\n) =>\n `${ACCESS_REQUIREMENT_BY_ID(accessRequirementId)}/dataAccessRequestForUpdate`\n\nexport const EDUC_TEMPLATE = `${REPO}/eDuc/template`\nexport const EDUC_TEMPLATE_VALIDATION = (templateId: string) =>\n `${EDUC_TEMPLATE}/${templateId}/validation`\n\nexport const RESEARCH_PROJECT = `${REPO}/researchProject`\nexport const ACCESS_REQUIREMENT_RESEARCH_PROJECT_FOR_UPDATE = (\n accessRequirementId: string | number,\n) => `${ACCESS_REQUIREMENT_BY_ID(accessRequirementId)}/researchProjectForUpdate`\n\nexport const FILE_HANDLE = `${FILE}/fileHandle`\nexport const FILE_HANDLE_BATCH = `${FILE_HANDLE}/batch`\n\nexport const PROJECTS = `${REPO}/projects`\nexport const ENTITY_ACTIONS_REQUIRED = (entityId: string) =>\n `${REPO}/entity/${entityId}/actions/download`\n\nexport const WIKI_OBJECT_TYPE = (objectType: ObjectType) => {\n return `${REPO}/${ObjectType[objectType].toLowerCase()}`\n}\n\nexport const WIKI_PAGE = (\n ownerObjectType: ObjectType,\n ownerObjectId: string,\n) => {\n return `${WIKI_OBJECT_TYPE(ownerObjectType)}/${ownerObjectId}/wiki`\n}\nexport const WIKI_PAGE_ID = (\n ownerObjectType: ObjectType,\n ownerObjectId: string,\n wikiPageId: string | undefined,\n) => {\n return `${WIKI_PAGE(ownerObjectType, ownerObjectId)}/${wikiPageId ?? ''}`\n}\n\nexport const SESSION_ACCESS_TOKEN = `${AUTH}/sessionAccessToken`\nexport const ALL_USER_SESSION_TOKENS = (targetUserId: string | number) =>\n `${AUTH}/user/${targetUserId}/sessionAccessToken/all`\n"],"mappings":";;;AAOA,IAAa,KAAmB,GAAG,EACjC,EAAuB,aACzB,KAEa,IAAO,YACP,IAAO,YACP,IAAO,YAEd,IAAc,gBACd,IAAY,cAEL,KAAY,MAAwB,GAAG,EAAK,iBAAiB,KAC7D,MAAoB,MAAwB,GAAG,EAAS,CAAE,EAAE,OAE5D,KAAS,GAAG,EAAK,UACjB,KAAgB,MAAkB,GAAG,EAAK,gBAAgB,KAC1D,KAAa,MAAwB,GAAG,EAAK,UAAU,KAIvD,KACX,GACA,MACG,GAAG,EAAK,UAAU,IAAK,IAAU,YAAY,MAAY,MACjD,KAAsB,MACjC,GAAG,EAAK,UAAU,EAAG,WACV,MACX,GACA,MACG,GAAG,EAAkB,GAAI,CAAO,EAAE,WAC1B,MAAiB,MAC5B,GAAG,EAAK,UAAU,EAAG,UACV,MAAc,MAAwB,GAAG,EAAU,CAAE,EAAE,OACvD,MAAqB,MAChC,GAAG,EAAU,CAAE,EAAE,cACN,MAAe,MAAwB,GAAG,EAAU,CAAE,EAAE,QACxD,MAAsB,MACjC,GAAG,EAAU,CAAE,EAAE,eACN,MAAuB,MAClC,GAAG,EAAU,CAAE,EAAE,QACN,KAAiB,GAAG,EAAK,iBAEzB,MAAe,MAAwB,GA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EAAK,GAAG,EAAW,GAAY,YAAY,KAG1C,KACX,GACA,MAEO,GAAG,EAAiB,CAAe,EAAE,GAAG,EAAc,QAElD,MACX,GACA,GACA,MAEO,GAAG,EAAU,GAAiB,CAAa,EAAE,GAAG,KAAc,MAG1D,KAAuB,GAAG,EAAK,sBAC/B,MAA2B,MACtC,GAAG,EAAK,QAAQ,EAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appendFinalQueryParamKey.d.ts","sourceRoot":"","sources":["../../src/utils/appendFinalQueryParamKey.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,MAAM,GACjB,MAAM,
|
|
1
|
+
{"version":3,"file":"appendFinalQueryParamKey.d.ts","sourceRoot":"","sources":["../../src/utils/appendFinalQueryParamKey.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,MAAM,GACjB,MAAM,CAeR"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
//#region src/utils/appendFinalQueryParamKey.ts
|
|
2
2
|
function e(e, t) {
|
|
3
|
-
|
|
3
|
+
let n = e;
|
|
4
|
+
e.searchParams.has(t) && (n = new URL(e), n.searchParams.delete(t));
|
|
5
|
+
let r = Array.from(n.searchParams).length === 0 ? "?" : "&";
|
|
6
|
+
return `${n.toString()}${r}${t}=`;
|
|
4
7
|
}
|
|
5
8
|
//#endregion
|
|
6
9
|
export { e as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appendFinalQueryParamKey.js","names":[],"sources":["../../src/utils/appendFinalQueryParamKey.ts"],"sourcesContent":["/**\n * Appends a query param key to the passed URL and returns a URL string.\n *\n * This is useful for Synapse APIs where a URL is passed as a query parameter and a token is appended to the end of the URL,\n * such as initiating a reset password request or reset 2FA request.\n * @param url\n * @param queryParam\n */\nexport default function appendFinalQueryParamKey(\n url: URL,\n queryParam: string,\n): string {\n
|
|
1
|
+
{"version":3,"file":"appendFinalQueryParamKey.js","names":[],"sources":["../../src/utils/appendFinalQueryParamKey.ts"],"sourcesContent":["/**\n * Appends a query param key to the passed URL and returns a URL string.\n *\n * This is useful for Synapse APIs where a URL is passed as a query parameter and a token is appended to the end of the URL,\n * such as initiating a reset password request or reset 2FA request.\n * @param url\n * @param queryParam\n */\nexport default function appendFinalQueryParamKey(\n url: URL,\n queryParam: string,\n): string {\n let targetUrl = url\n if (url.searchParams.has(queryParam)) {\n // Callers typically pass the current browser URL, which may already carry a token from an\n // earlier round-trip. Stale copies have to be dropped before appending: the API concatenates\n // the new token onto the end of this string, so keeping them produces a link with duplicate\n // keys, which `URLSearchParams.get` resolves to the first (stale or empty) value rather than\n // the newly minted token.\n targetUrl = new URL(url)\n targetUrl.searchParams.delete(queryParam)\n }\n\n // TODO: URLSearchParams.size returns undefined in our test environment\n const separator = Array.from(targetUrl.searchParams).length === 0 ? '?' : '&'\n return `${targetUrl.toString()}${separator}${queryParam}=`\n}\n"],"mappings":";AAQA,SAAwB,EACtB,GACA,GACQ;CACR,IAAI,IAAY;CAChB,AAAI,EAAI,aAAa,IAAI,CAAU,MAMjC,IAAY,IAAI,IAAI,CAAG,GACvB,EAAU,aAAa,OAAO,CAAU;CAI1C,IAAM,IAAY,MAAM,KAAK,EAAU,YAAY,EAAE,WAAW,IAAI,MAAM;CAC1E,OAAO,GAAG,EAAU,SAAS,IAAI,IAAY,EAAW;AAC1D"}
|
|
@@ -8,6 +8,8 @@ export declare enum FeatureFlagEnum {
|
|
|
8
8
|
CURIE_CHAT_WIDGET = "CURIE_CHAT_WIDGET",
|
|
9
9
|
CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON = "CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON",
|
|
10
10
|
ELITE_PORTAL_MODELS = "ELITE_PORTAL_MODELS",
|
|
11
|
+
AMPALS_RDCA_DAP_FORM_ENABLED = "AMPALS_RDCA_DAP_FORM_ENABLED",
|
|
12
|
+
ACT_DASHBOARD_FORM_TEMPLATES = "ACT_DASHBOARD_FORM_TEMPLATES",
|
|
11
13
|
TEST_ONLY = "TEST_ONLY"
|
|
12
14
|
}
|
|
13
15
|
//# sourceMappingURL=FeatureFlags.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlags.d.ts","sourceRoot":"","sources":["../../../src/utils/featureflag/FeatureFlags.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;AAE3D,oBAAY,eAAe;IAEzB,oBAAoB,yBAAyB;IAG7C,gBAAgB,qBAAqB;IAGrC,WAAW,gBAAgB;IAG3B,UAAU,eAAe;IAGzB,WAAW,gBAAgB;IAG3B,iBAAiB,sBAAsB;IAGvC,uCAAuC,4CAA4C;IAGnF,mBAAmB,wBAAwB;IAG3C,SAAS,cAAc;CACxB"}
|
|
1
|
+
{"version":3,"file":"FeatureFlags.d.ts","sourceRoot":"","sources":["../../../src/utils/featureflag/FeatureFlags.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;AAE3D,oBAAY,eAAe;IAEzB,oBAAoB,yBAAyB;IAG7C,gBAAgB,qBAAqB;IAGrC,WAAW,gBAAgB;IAG3B,UAAU,eAAe;IAGzB,WAAW,gBAAgB;IAG3B,iBAAiB,sBAAsB;IAGvC,uCAAuC,4CAA4C;IAGnF,mBAAmB,wBAAwB;IAG3C,4BAA4B,iCAAiC;IAG7D,4BAA4B,iCAAiC;IAG7D,SAAS,cAAc;CACxB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/utils/featureflag/FeatureFlags.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
|
-
return e.PORTAL_SEARCH_HEADER = "PORTAL_SEARCH_HEADER", e.HOMEPAGE_CHATBOT = "HOMEPAGE_CHATBOT", e.WEBHOOKS_UI = "WEBHOOKS_UI", e.CRISP_CHAT = "CRISP_CHAT", e.PORTAL_CHAT = "PORTAL_CHAT", e.CURIE_CHAT_WIDGET = "CURIE_CHAT_WIDGET", e.CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON = "CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON", e.ELITE_PORTAL_MODELS = "ELITE_PORTAL_MODELS", e.TEST_ONLY = "TEST_ONLY", e;
|
|
3
|
+
return e.PORTAL_SEARCH_HEADER = "PORTAL_SEARCH_HEADER", e.HOMEPAGE_CHATBOT = "HOMEPAGE_CHATBOT", e.WEBHOOKS_UI = "WEBHOOKS_UI", e.CRISP_CHAT = "CRISP_CHAT", e.PORTAL_CHAT = "PORTAL_CHAT", e.CURIE_CHAT_WIDGET = "CURIE_CHAT_WIDGET", e.CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON = "CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON", e.ELITE_PORTAL_MODELS = "ELITE_PORTAL_MODELS", e.AMPALS_RDCA_DAP_FORM_ENABLED = "AMPALS_RDCA_DAP_FORM_ENABLED", e.ACT_DASHBOARD_FORM_TEMPLATES = "ACT_DASHBOARD_FORM_TEMPLATES", e.TEST_ONLY = "TEST_ONLY", e;
|
|
4
4
|
}({});
|
|
5
5
|
//#endregion
|
|
6
6
|
export { e as FeatureFlagEnum };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureFlags.js","names":[],"sources":["../../../src/utils/featureflag/FeatureFlags.ts"],"sourcesContent":["export type FeatureFlags = Record<FeatureFlagEnum, boolean>\n\nexport enum FeatureFlagEnum {\n // If enabled, show the new header component that uses the HeaderSearchBox component\n PORTAL_SEARCH_HEADER = 'PORTAL_SEARCH_HEADER',\n\n // If enabled, show the chatbot entrypoint from the new Synapse Homepage\n HOMEPAGE_CHATBOT = 'HOMEPAGE_CHATBOT',\n\n // If enabled, account settings will link to a page to manage webhooks\n WEBHOOKS_UI = 'WEBHOOKS_UI',\n\n // If enabled, load the Crisp chat widget\n CRISP_CHAT = 'CRISP_CHAT',\n\n // If enabled, show the SynapseChat dialog in portals\n PORTAL_CHAT = 'PORTAL_CHAT',\n\n // If enabled, show the Curie launcher widget in portals\n CURIE_CHAT_WIDGET = 'CURIE_CHAT_WIDGET',\n\n // If enabled, shows a \"New Task\" button on the metadata tasks page\n CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON = 'CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON',\n\n // If enabled, show the Models section in the ELITE portal (nav item, Explore tab, and Search tab)\n ELITE_PORTAL_MODELS = 'ELITE_PORTAL_MODELS',\n\n // Reserved for unit tests. Not configured in Stack Builder; do not use in production code.\n TEST_ONLY = 'TEST_ONLY',\n}\n"],"mappings":";AAEA,IAAY,IAAL,yBAAA,GAAA;QAEL,EAAA,uBAAA,wBAGA,EAAA,mBAAA,oBAGA,EAAA,cAAA,eAGA,EAAA,aAAA,cAGA,EAAA,cAAA,eAGA,EAAA,oBAAA,qBAGA,EAAA,0CAAA,2CAGA,EAAA,sBAAA,uBAGA,EAAA,YAAA;AACF,EAAA,CAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"FeatureFlags.js","names":[],"sources":["../../../src/utils/featureflag/FeatureFlags.ts"],"sourcesContent":["export type FeatureFlags = Record<FeatureFlagEnum, boolean>\n\nexport enum FeatureFlagEnum {\n // If enabled, show the new header component that uses the HeaderSearchBox component\n PORTAL_SEARCH_HEADER = 'PORTAL_SEARCH_HEADER',\n\n // If enabled, show the chatbot entrypoint from the new Synapse Homepage\n HOMEPAGE_CHATBOT = 'HOMEPAGE_CHATBOT',\n\n // If enabled, account settings will link to a page to manage webhooks\n WEBHOOKS_UI = 'WEBHOOKS_UI',\n\n // If enabled, load the Crisp chat widget\n CRISP_CHAT = 'CRISP_CHAT',\n\n // If enabled, show the SynapseChat dialog in portals\n PORTAL_CHAT = 'PORTAL_CHAT',\n\n // If enabled, show the Curie launcher widget in portals\n CURIE_CHAT_WIDGET = 'CURIE_CHAT_WIDGET',\n\n // If enabled, shows a \"New Task\" button on the metadata tasks page\n CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON = 'CURATION_TASK_PAGE_SHOW_NEW_TASK_BUTTON',\n\n // If enabled, show the Models section in the ELITE portal (nav item, Explore tab, and Search tab)\n ELITE_PORTAL_MODELS = 'ELITE_PORTAL_MODELS',\n\n // If enabled, opens the RDCA-DAP data access request form when requesting access to an Aridhia dataset\n AMPALS_RDCA_DAP_FORM_ENABLED = 'AMPALS_RDCA_DAP_FORM_ENABLED',\n\n // If enabled, ACT members see the Form Templates tab in the reviewer (ACT) dashboard\n ACT_DASHBOARD_FORM_TEMPLATES = 'ACT_DASHBOARD_FORM_TEMPLATES',\n\n // Reserved for unit tests. Not configured in Stack Builder; do not use in production code.\n TEST_ONLY = 'TEST_ONLY',\n}\n"],"mappings":";AAEA,IAAY,IAAL,yBAAA,GAAA;QAEL,EAAA,uBAAA,wBAGA,EAAA,mBAAA,oBAGA,EAAA,cAAA,eAGA,EAAA,aAAA,cAGA,EAAA,cAAA,eAGA,EAAA,oBAAA,qBAGA,EAAA,0CAAA,2CAGA,EAAA,sBAAA,uBAGA,EAAA,+BAAA,gCAGA,EAAA,+BAAA,gCAGA,EAAA,YAAA;AACF,EAAA,CAAA,CAAA"}
|
|
@@ -7,4 +7,7 @@ export declare function removeTrailingUndefinedElements(params: unknown[]): unkn
|
|
|
7
7
|
* Returns true if an item exists in one array that does not exist in another, using deep comparison by default.
|
|
8
8
|
*/
|
|
9
9
|
export declare function hasDifference(x: Array<unknown>, y: Array<unknown>, comparator?: (value: any, other: any) => boolean): boolean;
|
|
10
|
+
/** Move the item at `idx` by `direction` (-1 or 1). Returns the same array reference if the move
|
|
11
|
+
* would go out of bounds; otherwise a new array with the item relocated. */
|
|
12
|
+
export declare function moveItem<T>(arr: T[], idx: number, direction: -1 | 1): T[];
|
|
10
13
|
//# sourceMappingURL=ArrayUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/functions/ArrayUtils.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAc5E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,EACjB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,EACjB,UAAU,sCAAU,GACnB,OAAO,CAET"}
|
|
1
|
+
{"version":3,"file":"ArrayUtils.d.ts","sourceRoot":"","sources":["../../../src/utils/functions/ArrayUtils.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,wBAAgB,+BAA+B,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAc5E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,EACjB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,EACjB,UAAU,sCAAU,GACnB,OAAO,CAET;AAED;4EAC4E;AAC5E,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAOzE"}
|
|
@@ -11,7 +11,13 @@ function i(n) {
|
|
|
11
11
|
function a(e, t, i = n) {
|
|
12
12
|
return r(e, t, i).length > 0;
|
|
13
13
|
}
|
|
14
|
+
function o(e, t, n) {
|
|
15
|
+
let r = t + n;
|
|
16
|
+
if (r < 0 || r >= e.length) return e;
|
|
17
|
+
let i = [...e], [a] = i.splice(t, 1);
|
|
18
|
+
return i.splice(r, 0, a), i;
|
|
19
|
+
}
|
|
14
20
|
//#endregion
|
|
15
|
-
export { a as hasDifference, i as removeTrailingUndefinedElements };
|
|
21
|
+
export { a as hasDifference, o as moveItem, i as removeTrailingUndefinedElements };
|
|
16
22
|
|
|
17
23
|
//# sourceMappingURL=ArrayUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayUtils.js","names":[],"sources":["../../../src/utils/functions/ArrayUtils.ts"],"sourcesContent":["import isEmpty from 'lodash-es/isEmpty'\nimport isEqual from 'lodash-es/isEqual'\nimport xorWith from 'lodash-es/xorWith'\nimport { removeUndefined } from './ObjectUtils'\n\n/**\n * Removes trailing undefined elements from an array. Also removes trailing objects that are empty or only keys with\n * undefined values are present.\n */\nexport function removeTrailingUndefinedElements(params: unknown[]): unknown[] {\n const result = [...params]\n let lastElement = result[result.length - 1]\n while (\n result.length > 0 &&\n (lastElement === undefined ||\n // Also remove empty objects or objects where only keys with undefined values are present\n (typeof lastElement === 'object' &&\n isEmpty(removeUndefined(lastElement as Record<string, unknown>))))\n ) {\n result.pop()\n lastElement = result[result.length - 1]\n }\n return result\n}\n\n/**\n * Returns true if an item exists in one array that does not exist in another, using deep comparison by default.\n */\nexport function hasDifference(\n x: Array<unknown>,\n y: Array<unknown>,\n comparator = isEqual,\n): boolean {\n return xorWith(x, y, comparator).length > 0\n}\n"],"mappings":";;;;;AASA,SAAgB,EAAgC,GAA8B;CAC5E,IAAM,IAAS,CAAC,GAAG,CAAM,GACrB,IAAc,EAAO,EAAO,SAAS;CACzC,OACE,EAAO,SAAS,MACf,MAAgB,KAAA,KAEd,OAAO,KAAgB,YACtB,EAAQ,EAAgB,CAAsC,CAAC,KAGnE,AADA,EAAO,IAAI,GACX,IAAc,EAAO,EAAO,SAAS;CAEvC,OAAO;AACT;AAKA,SAAgB,EACd,GACA,GACA,IAAa,GACJ;CACT,OAAO,EAAQ,GAAG,GAAG,CAAU,EAAE,SAAS;AAC5C"}
|
|
1
|
+
{"version":3,"file":"ArrayUtils.js","names":[],"sources":["../../../src/utils/functions/ArrayUtils.ts"],"sourcesContent":["import isEmpty from 'lodash-es/isEmpty'\nimport isEqual from 'lodash-es/isEqual'\nimport xorWith from 'lodash-es/xorWith'\nimport { removeUndefined } from './ObjectUtils'\n\n/**\n * Removes trailing undefined elements from an array. Also removes trailing objects that are empty or only keys with\n * undefined values are present.\n */\nexport function removeTrailingUndefinedElements(params: unknown[]): unknown[] {\n const result = [...params]\n let lastElement = result[result.length - 1]\n while (\n result.length > 0 &&\n (lastElement === undefined ||\n // Also remove empty objects or objects where only keys with undefined values are present\n (typeof lastElement === 'object' &&\n isEmpty(removeUndefined(lastElement as Record<string, unknown>))))\n ) {\n result.pop()\n lastElement = result[result.length - 1]\n }\n return result\n}\n\n/**\n * Returns true if an item exists in one array that does not exist in another, using deep comparison by default.\n */\nexport function hasDifference(\n x: Array<unknown>,\n y: Array<unknown>,\n comparator = isEqual,\n): boolean {\n return xorWith(x, y, comparator).length > 0\n}\n\n/** Move the item at `idx` by `direction` (-1 or 1). Returns the same array reference if the move\n * would go out of bounds; otherwise a new array with the item relocated. */\nexport function moveItem<T>(arr: T[], idx: number, direction: -1 | 1): T[] {\n const newIdx = idx + direction\n if (newIdx < 0 || newIdx >= arr.length) return arr\n const next = [...arr]\n const [item] = next.splice(idx, 1)\n next.splice(newIdx, 0, item)\n return next\n}\n"],"mappings":";;;;;AASA,SAAgB,EAAgC,GAA8B;CAC5E,IAAM,IAAS,CAAC,GAAG,CAAM,GACrB,IAAc,EAAO,EAAO,SAAS;CACzC,OACE,EAAO,SAAS,MACf,MAAgB,KAAA,KAEd,OAAO,KAAgB,YACtB,EAAQ,EAAgB,CAAsC,CAAC,KAGnE,AADA,EAAO,IAAI,GACX,IAAc,EAAO,EAAO,SAAS;CAEvC,OAAO;AACT;AAKA,SAAgB,EACd,GACA,GACA,IAAa,GACJ;CACT,OAAO,EAAQ,GAAG,GAAG,CAAU,EAAE,SAAS;AAC5C;AAIA,SAAgB,EAAY,GAAU,GAAa,GAAwB;CACzE,IAAM,IAAS,IAAM;CACrB,IAAI,IAAS,KAAK,KAAU,EAAI,QAAQ,OAAO;CAC/C,IAAM,IAAO,CAAC,GAAG,CAAG,GACd,CAAC,KAAQ,EAAK,OAAO,GAAK,CAAC;CAEjC,OADA,EAAK,OAAO,GAAQ,GAAG,CAAI,GACpB;AACT"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Joins the alphanumeric words of a string with each word's first letter capitalized. Any other
|
|
3
|
+
* character separates words and is dropped; letters after the first in a word are unchanged.
|
|
4
|
+
*/
|
|
5
|
+
export declare function toPascalCase(str: string): string;
|
|
6
|
+
//# sourceMappingURL=toPascalCase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPascalCase.d.ts","sourceRoot":"","sources":["../../../src/utils/functions/toPascalCase.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toPascalCase.js","names":[],"sources":["../../../src/utils/functions/toPascalCase.ts"],"sourcesContent":["/**\n * Joins the alphanumeric words of a string with each word's first letter capitalized. Any other\n * character separates words and is dropped; letters after the first in a word are unchanged.\n */\nexport function toPascalCase(str: string): string {\n const words = str.match(/[A-Za-z0-9]+/g) ?? []\n return words\n .map(word => word.charAt(0).toUpperCase() + word.slice(1))\n .join('')\n}\n"],"mappings":";AAIA,SAAgB,EAAa,GAAqB;CAEhD,QADc,EAAI,MAAM,eAAe,KAAK,CAAC,GAE1C,KAAI,MAAQ,EAAK,OAAO,CAAC,EAAE,YAAY,IAAI,EAAK,MAAM,CAAC,CAAC,EACxD,KAAK,EAAE;AACZ"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { RJSFSchema, UiSchema } from '@rjsf/utils';
|
|
2
|
+
import { DataAccessRequestType, FormTemplate } from '@sage-bionetworks/synapse-client';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the inputs to RJSF for a single step in the form.
|
|
5
|
+
*/
|
|
6
|
+
export type GeneratedFormStepForRjsf = {
|
|
7
|
+
jsonSchema: RJSFSchema;
|
|
8
|
+
uiSchema: UiSchema;
|
|
9
|
+
};
|
|
10
|
+
export type GeneratedFormSchemaForRjsf = {
|
|
11
|
+
steps: GeneratedFormStepForRjsf[];
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Generate a per-step (jsonSchema, uiSchema) bundle from a FormTemplate and its referenced JSON
|
|
15
|
+
* Schema body. Each step's `jsonSchema` slices the referenced schema to the properties targeted
|
|
16
|
+
* by that step's fields, with the step's title/description encoded as `jsonSchema.title` /
|
|
17
|
+
* `jsonSchema.description`. A field whose property only applies to the other `requestType` (per
|
|
18
|
+
* the `x-synapse-submissionContext` convention -- see `./submissionContext`) is omitted.
|
|
19
|
+
*
|
|
20
|
+
* @param template The form template defining the steps and fields.
|
|
21
|
+
* @param schema The full JSON Schema referenced by the form template.
|
|
22
|
+
* @param requestType The type of data access request, used to filter fields based on context.
|
|
23
|
+
* @returns A bundle of per-step (jsonSchema, uiSchema) objects suitable for RJSF.
|
|
24
|
+
*/
|
|
25
|
+
export declare function generateDataAccessSchema(template: FormTemplate, schema: RJSFSchema, requestType?: DataAccessRequestType): GeneratedFormSchemaForRjsf;
|
|
26
|
+
//# sourceMappingURL=generateDataAccessSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateDataAccessSchema.d.ts","sourceRoot":"","sources":["../../../src/utils/jsonschema/generateDataAccessSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,EACL,qBAAqB,EACrB,YAAY,EACb,MAAM,kCAAkC,CAAA;AAOzC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IAAE,KAAK,EAAE,wBAAwB,EAAE,CAAA;CAAE,CAAA;AAE9E;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,EAClB,WAAW,GAAE,qBAAqD,GACjE,0BAA0B,CAkD5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { contextAppliesForRequestType as e, listResolvedSchemaProperties as t, pointerToPropertyKey as n } from "./submissionContext.js";
|
|
2
|
+
import { DataAccessRequestType as r } from "@sage-bionetworks/synapse-client";
|
|
3
|
+
//#region src/utils/jsonschema/generateDataAccessSchema.ts
|
|
4
|
+
function i(i, a, o = r.REQUEST) {
|
|
5
|
+
let s = new Map(t(a).map((e) => [e.propertyKey, e])), c = [];
|
|
6
|
+
for (let t of i.steps) {
|
|
7
|
+
let r = {}, i = [], a = {}, l = [];
|
|
8
|
+
for (let c of t.fields) {
|
|
9
|
+
let t = n(c.schemaPath), u = t ? s.get(t) : void 0;
|
|
10
|
+
u && e(u.context, o) && (r[u.propertyKey] = { ...u.subSchema }, u.isRequired && i.push(u.propertyKey), c.uiDefinition && Object.keys(c.uiDefinition).length > 0 && (a[u.propertyKey] = { ...c.uiDefinition }), l.push(u.propertyKey));
|
|
11
|
+
}
|
|
12
|
+
if (l.length === 0) continue;
|
|
13
|
+
let u = {
|
|
14
|
+
type: "object",
|
|
15
|
+
title: t.title,
|
|
16
|
+
properties: r
|
|
17
|
+
};
|
|
18
|
+
t.description && (u.description = t.description), i.length > 0 && (u.required = i), a["ui:order"] = l, c.push({
|
|
19
|
+
jsonSchema: u,
|
|
20
|
+
uiSchema: a
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
return { steps: c };
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as generateDataAccessSchema };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=generateDataAccessSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateDataAccessSchema.js","names":[],"sources":["../../../src/utils/jsonschema/generateDataAccessSchema.ts"],"sourcesContent":["import { RJSFSchema, UiSchema } from '@rjsf/utils'\nimport {\n DataAccessRequestType,\n FormTemplate,\n} from '@sage-bionetworks/synapse-client'\nimport {\n contextAppliesForRequestType,\n listResolvedSchemaProperties,\n pointerToPropertyKey,\n} from './submissionContext'\n\n/**\n * Describes the inputs to RJSF for a single step in the form.\n */\nexport type GeneratedFormStepForRjsf = {\n jsonSchema: RJSFSchema\n uiSchema: UiSchema\n}\n\nexport type GeneratedFormSchemaForRjsf = { steps: GeneratedFormStepForRjsf[] }\n\n/**\n * Generate a per-step (jsonSchema, uiSchema) bundle from a FormTemplate and its referenced JSON\n * Schema body. Each step's `jsonSchema` slices the referenced schema to the properties targeted\n * by that step's fields, with the step's title/description encoded as `jsonSchema.title` /\n * `jsonSchema.description`. A field whose property only applies to the other `requestType` (per\n * the `x-synapse-submissionContext` convention -- see `./submissionContext`) is omitted.\n *\n * @param template The form template defining the steps and fields.\n * @param schema The full JSON Schema referenced by the form template.\n * @param requestType The type of data access request, used to filter fields based on context.\n * @returns A bundle of per-step (jsonSchema, uiSchema) objects suitable for RJSF.\n */\nexport function generateDataAccessSchema(\n template: FormTemplate,\n schema: RJSFSchema,\n requestType: DataAccessRequestType = DataAccessRequestType.REQUEST,\n): GeneratedFormSchemaForRjsf {\n const resolvedByKey = new Map(\n listResolvedSchemaProperties(schema).map(p => [p.propertyKey, p]),\n )\n\n const steps: GeneratedFormStepForRjsf[] = []\n\n for (const step of template.steps) {\n const properties: Record<string, RJSFSchema> = {}\n const required: string[] = []\n const uiSchema: UiSchema = {}\n const uiOrder: string[] = []\n\n for (const field of step.fields) {\n const propertyKey = pointerToPropertyKey(field.schemaPath)\n const resolved = propertyKey ? resolvedByKey.get(propertyKey) : undefined\n if (!resolved) continue\n if (!contextAppliesForRequestType(resolved.context, requestType)) {\n continue\n }\n\n properties[resolved.propertyKey] = { ...resolved.subSchema }\n if (resolved.isRequired) {\n required.push(resolved.propertyKey)\n }\n if (field.uiDefinition && Object.keys(field.uiDefinition).length > 0) {\n uiSchema[resolved.propertyKey] = { ...(field.uiDefinition as UiSchema) }\n }\n uiOrder.push(resolved.propertyKey)\n }\n\n if (uiOrder.length === 0) continue\n\n const stepJsonSchema: RJSFSchema = {\n type: 'object',\n title: step.title,\n properties,\n }\n if (step.description) {\n stepJsonSchema.description = step.description\n }\n if (required.length > 0) {\n stepJsonSchema.required = required\n }\n uiSchema['ui:order'] = uiOrder\n\n steps.push({ jsonSchema: stepJsonSchema, uiSchema })\n }\n\n return { steps }\n}\n"],"mappings":";;;AAiCA,SAAgB,EACd,GACA,GACA,IAAqC,EAAsB,SAC/B;CAC5B,IAAM,IAAgB,IAAI,IACxB,EAA6B,CAAM,EAAE,KAAI,MAAK,CAAC,EAAE,aAAa,CAAC,CAAC,CAClE,GAEM,IAAoC,CAAC;CAE3C,KAAK,IAAM,KAAQ,EAAS,OAAO;EACjC,IAAM,IAAyC,CAAC,GAC1C,IAAqB,CAAC,GACtB,IAAqB,CAAC,GACtB,IAAoB,CAAC;EAE3B,KAAK,IAAM,KAAS,EAAK,QAAQ;GAC/B,IAAM,IAAc,EAAqB,EAAM,UAAU,GACnD,IAAW,IAAc,EAAc,IAAI,CAAW,IAAI,KAAA;GAC3D,KACA,EAA6B,EAAS,SAAS,CAAW,MAI/D,EAAW,EAAS,eAAe,EAAE,GAAG,EAAS,UAAU,GACvD,EAAS,cACX,EAAS,KAAK,EAAS,WAAW,GAEhC,EAAM,gBAAgB,OAAO,KAAK,EAAM,YAAY,EAAE,SAAS,MACjE,EAAS,EAAS,eAAe,EAAE,GAAI,EAAM,aAA0B,IAEzE,EAAQ,KAAK,EAAS,WAAW;EACnC;EAEA,IAAI,EAAQ,WAAW,GAAG;EAE1B,IAAM,IAA6B;GACjC,MAAM;GACN,OAAO,EAAK;GACZ;EACF;EASA,AARI,EAAK,gBACP,EAAe,cAAc,EAAK,cAEhC,EAAS,SAAS,MACpB,EAAe,WAAW,IAE5B,EAAS,cAAc,GAEvB,EAAM,KAAK;GAAE,YAAY;GAAgB;EAAS,CAAC;CACrD;CAEA,OAAO,EAAE,SAAM;AACjB"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convention for gating a JSON Schema property to a data access REQUEST or RENEWAL submission.
|
|
3
|
+
*
|
|
4
|
+
* To gate a property to a specific submission context, a client can use conditional logic in
|
|
5
|
+
* the JSON Schema against the 'x-synapse-submissionContext' property.
|
|
6
|
+
*
|
|
7
|
+
* A property that should only appear for a RENEWAL (or only for a REQUEST) is declared inside
|
|
8
|
+
* an `allOf` entry keyed on the reserved `x-synapse-submissionContext` property, e.g.:
|
|
9
|
+
*
|
|
10
|
+
* ```json
|
|
11
|
+
* {
|
|
12
|
+
* "allOf": [{
|
|
13
|
+
* "if": { "properties": { "x-synapse-submissionContext": { "const": "RENEWAL" } } },
|
|
14
|
+
* "then": {
|
|
15
|
+
* "properties": { "summaryOfUse": { "type": "string" } },
|
|
16
|
+
* "required": ["summaryOfUse"]
|
|
17
|
+
* }
|
|
18
|
+
* }]
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* The submitted `schemaData` MUST include `x-synapse-submissionContext`; the server validates
|
|
23
|
+
* that it matches the actual submission context. This module resolves the convention client-side
|
|
24
|
+
* so the FormTemplateEditor's field library, step slots, and preview can discover and render such
|
|
25
|
+
* properties, and provides a guided authoring API (`setSchemaProperty`,
|
|
26
|
+
* `setSchemaPropertyContext`, `setSchemaPropertyRequired`, `removeSchemaProperty`,
|
|
27
|
+
* `renameSchemaProperty`) so ACT can author a Request/Renewal-only field from a "Submission
|
|
28
|
+
* context" select box, without hand-editing a JSON Schema.
|
|
29
|
+
*/
|
|
30
|
+
import { RJSFSchema } from '@rjsf/utils';
|
|
31
|
+
import { DataAccessRequestType } from '@sage-bionetworks/synapse-client';
|
|
32
|
+
export declare const SUBMISSION_CONTEXT_PROPERTY = "x-synapse-submissionContext";
|
|
33
|
+
export type SchemaPropertyContext = 'ALWAYS' | 'REQUEST_ONLY' | 'RENEWAL_ONLY';
|
|
34
|
+
export type ResolvedSchemaProperty = {
|
|
35
|
+
propertyKey: string;
|
|
36
|
+
subSchema: RJSFSchema;
|
|
37
|
+
isRequired: boolean;
|
|
38
|
+
context: SchemaPropertyContext;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Enumerate every leaf property the schema declares along with which submission
|
|
42
|
+
* context applies to each. The reserved `x-synapse-submissionContext`
|
|
43
|
+
* property itself is never included; it isn't a bindable field.
|
|
44
|
+
*/
|
|
45
|
+
export declare function listResolvedSchemaProperties(schema: RJSFSchema): ResolvedSchemaProperty[];
|
|
46
|
+
/** The property key addressed by a single-segment JSON Pointer (e.g. `/institution` -> `institution`). */
|
|
47
|
+
export declare function pointerToPropertyKey(pointer: string): string | null;
|
|
48
|
+
/** The single-segment JSON Pointer addressing a property key (e.g. `institution` -> `/institution`),
|
|
49
|
+
* the inverse of `pointerToPropertyKey`. */
|
|
50
|
+
export declare function propertyKeyToPointer(propertyKey: string): string;
|
|
51
|
+
/** Resolve a `FormTemplateField.schemaPath`-style JSON Pointer, applying the same rules as
|
|
52
|
+
* `listResolvedSchemaProperties`. */
|
|
53
|
+
export declare function resolveSchemaPropertyAtPointer(schema: RJSFSchema, pointer: string): ResolvedSchemaProperty | undefined;
|
|
54
|
+
/** Whether a property's context applies for the given requestType (`ALWAYS` always applies). */
|
|
55
|
+
export declare function contextAppliesForRequestType(context: SchemaPropertyContext, requestType: DataAccessRequestType): boolean;
|
|
56
|
+
/** Human label for display, e.g. a field library row or step slot badge. */
|
|
57
|
+
export declare function submissionContextLabel(context: SchemaPropertyContext): string;
|
|
58
|
+
/**
|
|
59
|
+
* Remove `propertyKey` from wherever it's currently defined. Drops now-empty
|
|
60
|
+
* `then.properties`/branches/the `allOf` array itself so relocating or deleting
|
|
61
|
+
* a property never leaves extra schema components behind.
|
|
62
|
+
*/
|
|
63
|
+
export declare function removeSchemaProperty(schema: RJSFSchema, propertyKey: string): RJSFSchema;
|
|
64
|
+
/**
|
|
65
|
+
* Insert or replace a property's definition at the given submission context, relocating it there
|
|
66
|
+
* from wherever it previously lived.
|
|
67
|
+
*
|
|
68
|
+
* Does not modify the property's requiredness behind at its old location. Callers that need to
|
|
69
|
+
* preserve it (e.g. changing a property's context) should follow up with `setSchemaPropertyRequired`.
|
|
70
|
+
*/
|
|
71
|
+
export declare function setSchemaProperty(schema: RJSFSchema, propertyKey: string, subSchema: RJSFSchema, context: SchemaPropertyContext): RJSFSchema;
|
|
72
|
+
/** Set whether a property is required within its current context's branch (top-level `required`
|
|
73
|
+
* for `ALWAYS`, or the matching `allOf` branch's `then.required` otherwise). A no-op if the
|
|
74
|
+
* property isn't actually defined at that context. */
|
|
75
|
+
export declare function setSchemaPropertyRequired(schema: RJSFSchema, propertyKey: string, context: SchemaPropertyContext, isRequired: boolean): RJSFSchema;
|
|
76
|
+
/**
|
|
77
|
+
* Move a property to a different submission context, preserving its definition and
|
|
78
|
+
* requiredness. A no-op if the property doesn't resolve, or is already at that context.
|
|
79
|
+
*/
|
|
80
|
+
export declare function setSchemaPropertyContext(schema: RJSFSchema, propertyKey: string, context: SchemaPropertyContext): RJSFSchema;
|
|
81
|
+
/**
|
|
82
|
+
* Replace a property's definition wherever it's defined (top-level or an `allOf` branch),
|
|
83
|
+
* preserving its context and required-ness. A no-op if the property doesn't resolve.
|
|
84
|
+
*/
|
|
85
|
+
export declare function replaceSchemaPropertyDefinition(schema: RJSFSchema, propertyKey: string, subSchema: RJSFSchema): RJSFSchema;
|
|
86
|
+
/**
|
|
87
|
+
* Rename a property's key wherever it's defined (top-level or an `allOf` branch), preserving its
|
|
88
|
+
* definition, context, and required-ness. A no-op if `oldKey` doesn't resolve.
|
|
89
|
+
*/
|
|
90
|
+
export declare function renameSchemaProperty(schema: RJSFSchema, oldKey: string, newKey: string): RJSFSchema;
|
|
91
|
+
//# sourceMappingURL=submissionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"submissionContext.d.ts","sourceRoot":"","sources":["../../../src/utils/jsonschema/submissionContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAExE,eAAO,MAAM,2BAA2B,gCAAgC,CAAA;AAExE,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,cAAc,GAAG,cAAc,CAAA;AAE9E,MAAM,MAAM,sBAAsB,GAAG;IACnC,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,UAAU,CAAA;IACrB,UAAU,EAAE,OAAO,CAAA;IACnB,OAAO,EAAE,qBAAqB,CAAA;CAC/B,CAAA;AAuDD;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,UAAU,GACjB,sBAAsB,EAAE,CAkC1B;AAED,0GAA0G;AAC1G,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKnE;AAED;4CAC4C;AAC5C,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED;qCACqC;AACrC,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,MAAM,GACd,sBAAsB,GAAG,SAAS,CAMpC;AAED,gGAAgG;AAChG,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,qBAAqB,EAC9B,WAAW,EAAE,qBAAqB,GACjC,OAAO,CAGT;AAED,4EAA4E;AAC5E,wBAAgB,sBAAs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