hise-flow-graphs 1.1.20 → 1.1.22

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.
Files changed (53) hide show
  1. package/dist/@types/CertificateTypes.d.ts +64 -0
  2. package/dist/@types/GeneralTypes.d.ts +35 -0
  3. package/dist/components/Certificates/CertificateGraph/LayerBackButton.d.ts +2 -0
  4. package/dist/components/Certificates/CertificateGraph/NodeAttributes.d.ts +9 -0
  5. package/dist/components/Certificates/CertificateGraph/helpers.d.ts +31 -0
  6. package/dist/components/Certificates/CertificateGraph/index.d.ts +16 -0
  7. package/dist/components/Certificates/EditCertificate/EditNode.d.ts +3 -0
  8. package/dist/components/Certificates/EditCertificate/EditNodeModal.d.ts +18 -0
  9. package/dist/components/Certificates/EditCertificate/MaskMetadataModal/EMRMaskingTables.d.ts +10 -0
  10. package/dist/components/Certificates/EditCertificate/MaskMetadataModal/MaskMetadataTable.d.ts +20 -0
  11. package/dist/components/Certificates/EditCertificate/MaskMetadataModal/helpers.d.ts +7 -0
  12. package/dist/components/Certificates/EditCertificate/MaskMetadataModal/index.d.ts +21 -0
  13. package/dist/components/Certificates/EditCertificate/helpers.d.ts +6 -0
  14. package/dist/components/Certificates/EditCertificate/index.d.ts +8 -0
  15. package/dist/components/Certificates/FileLayerNode/CopyFileLayer.d.ts +24 -0
  16. package/dist/components/Certificates/FileLayerNode/index.d.ts +3 -0
  17. package/dist/components/Certificates/ReadCertificate/MetadataModal/MetadataTable.d.ts +10 -0
  18. package/dist/components/Certificates/ReadCertificate/MetadataModal/helpers.d.ts +8 -0
  19. package/dist/components/Certificates/ReadCertificate/MetadataModal/index.d.ts +10 -0
  20. package/dist/components/Certificates/ReadCertificate/ReadNode.d.ts +3 -0
  21. package/dist/components/Certificates/ReadCertificate/index.d.ts +5 -0
  22. package/dist/components/Certificates/ReviewCertificate/RestrictNode/index.d.ts +10 -0
  23. package/dist/components/Certificates/ReviewCertificate/ReviewNode.d.ts +3 -0
  24. package/dist/components/Certificates/ReviewCertificate/ReviewNodes/index.d.ts +22 -0
  25. package/dist/components/Certificates/ReviewCertificate/helpers.d.ts +14 -0
  26. package/dist/components/Certificates/ReviewCertificate/index.d.ts +7 -0
  27. package/dist/components/Certificates/WalkingGraph/ActionsMenu.d.ts +4 -0
  28. package/dist/components/Certificates/WalkingGraph/LayerItemsModal.d.ts +5 -0
  29. package/dist/components/Certificates/WalkingGraph/WalkingNode.d.ts +3 -0
  30. package/dist/components/Certificates/WalkingGraph/helpers.d.ts +11 -0
  31. package/dist/components/Certificates/WalkingGraph/index.d.ts +5 -0
  32. package/dist/components/Certificates/WorkspaceCertificate/ReplicaIDENode/helpers.d.ts +2 -0
  33. package/dist/components/Certificates/WorkspaceCertificate/ReplicaIDENode/index.d.ts +3 -0
  34. package/dist/components/Certificates/WorkspaceCertificate/ReplicaPipelineNode/index.d.ts +15 -0
  35. package/dist/components/Certificates/WorkspaceCertificate/RestrictedNode/index.d.ts +7 -0
  36. package/dist/components/Certificates/WorkspaceCertificate/WorkspaceFileNode/helpers.d.ts +1 -0
  37. package/dist/components/Certificates/WorkspaceCertificate/WorkspaceFileNode/index.d.ts +3 -0
  38. package/dist/components/Certificates/WorkspaceCertificate/WorkspaceIDENode/IDEModal.d.ts +7 -0
  39. package/dist/components/Certificates/WorkspaceCertificate/WorkspaceIDENode/helpers.d.ts +3 -0
  40. package/dist/components/Certificates/WorkspaceCertificate/WorkspaceIDENode/index.d.ts +3 -0
  41. package/dist/components/Certificates/WorkspaceCertificate/WorkspaceNode/index.d.ts +8 -0
  42. package/dist/components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/PipelineModal.d.ts +7 -0
  43. package/dist/components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/helpers.d.ts +3 -0
  44. package/dist/components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/index.d.ts +3 -0
  45. package/dist/components/Certificates/WorkspaceCertificate/helpers.d.ts +10 -0
  46. package/dist/components/Certificates/WorkspaceCertificate/index.d.ts +8 -0
  47. package/dist/context/HiseConfigContext.d.ts +33 -0
  48. package/dist/index.d.ts +18 -0
  49. package/dist/index.es.js +19782 -17896
  50. package/dist/index.umd.js +156 -49
  51. package/dist/state/GraphContext.d.ts +21 -0
  52. package/dist/utils/getCertificateBody.d.ts +3 -0
  53. package/package.json +2 -2
@@ -0,0 +1,64 @@
1
+ import { Edge, Node } from 'reactflow';
2
+ import { StringMap } from './GeneralTypes';
3
+ export interface Certificate {
4
+ id: string;
5
+ isExecutable: boolean;
6
+ vertices: Array<string>;
7
+ edges: object;
8
+ generatedLabels: StringMap;
9
+ customLabels: StringMap;
10
+ serviceLabels: StringMap;
11
+ schemes: StringMap;
12
+ metadata: {
13
+ [key: string]: Metadata;
14
+ };
15
+ restrictedAssets: {
16
+ [vertex: string]: RestrictedAssetObject;
17
+ };
18
+ subgraphs: {
19
+ [key: string]: {
20
+ edges: {
21
+ [key: string]: Array<string>;
22
+ };
23
+ vertices: {
24
+ [key: string]: null;
25
+ };
26
+ };
27
+ };
28
+ }
29
+ export interface RestrictedAssetObject {
30
+ restrictionInstructions: string;
31
+ restrictionNotes: string;
32
+ }
33
+ export type MetadataMap = {
34
+ [key: string]: any;
35
+ };
36
+ export declare enum MetadataType {
37
+ labData = "labData",
38
+ surveyData = "surveyData",
39
+ demographicsData = "demographicsData",
40
+ emrData = "emrData"
41
+ }
42
+ export type Metadata = {
43
+ [key in MetadataType]?: MetadataMap;
44
+ };
45
+ export type Replica = {
46
+ matches: StringMap;
47
+ replicaOperations: {
48
+ [key: string]: ReplicaPipelineOperation;
49
+ };
50
+ };
51
+ export type ReplicaPipelineOperation = {
52
+ failureMessage: string;
53
+ operationStatus: string;
54
+ };
55
+ export type NodeLayers = {
56
+ previous: {
57
+ nodes: Array<Node>;
58
+ edges: Array<Edge>;
59
+ };
60
+ current: {
61
+ nodes: Array<Node>;
62
+ edges: Array<Edge>;
63
+ };
64
+ };
@@ -0,0 +1,35 @@
1
+ export type StringMap = {
2
+ [key: string]: any;
3
+ };
4
+ export type Response = {
5
+ status: Number;
6
+ data: any;
7
+ };
8
+ export type Error = {
9
+ Message: string;
10
+ Status: Number;
11
+ };
12
+ export type Pipeline = {
13
+ id: string;
14
+ pipelineType: string;
15
+ status: PipelineStatus;
16
+ samplesComplete: object;
17
+ sampleCount: Number;
18
+ mainProcessID: string;
19
+ projectGuid: string;
20
+ };
21
+ export declare enum PipelineStatus {
22
+ Completed = "Completed",
23
+ Failure = "Failure",
24
+ Running = "Running",
25
+ Processing = "Processing",
26
+ Initiated = "Initiated"
27
+ }
28
+ export type IDE = {
29
+ name: string;
30
+ state: IDEState;
31
+ };
32
+ export declare enum IDEState {
33
+ ACTIVE = "ACTIVE",
34
+ STOPPED = "STOPPED"
35
+ }
@@ -0,0 +1,2 @@
1
+ declare const LayerBackButton: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export default LayerBackButton;
@@ -0,0 +1,9 @@
1
+ export declare const Description: ({ label, description }: {
2
+ label: string;
3
+ description: any;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
+ export declare const Label: ({ label, description, link }: {
6
+ label: string;
7
+ description?: any | null;
8
+ link?: string | null;
9
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { CSSProperties } from 'react';
2
+ import { Node, Edge } from 'reactflow';
3
+ import { StringMap } from '../../../@types/GeneralTypes';
4
+ import { Certificate } from '../../../@types/CertificateTypes';
5
+ export declare const getNodesAndEdges: (vertices: Certificate["vertices"], edges: Certificate["edges"], restrictedAssets: Certificate["restrictedAssets"], type: string, data?: {
6
+ [key: string]: Function;
7
+ } | undefined) => {
8
+ nodes: Node[];
9
+ edges: Edge[];
10
+ };
11
+ export declare const getNodes: (vertices: Certificate["vertices"], restrictedAssets: Certificate["restrictedAssets"], type: string, data: {
12
+ [key: string]: Function;
13
+ } | undefined) => Node[];
14
+ export declare const getEdges: (edges: Certificate["edges"]) => never[];
15
+ export declare const getLayoutedElements: (nodes: Array<Node>, edges: Array<Edge>, direction?: string) => {
16
+ nodes: Node[];
17
+ edges: Edge[];
18
+ };
19
+ export declare const getStyle: (type: string) => CSSProperties;
20
+ export declare const getSchemes: (label: string, vertex: string, labels: Certificate["serviceLabels"], schemes: Certificate["schemes"]) => {
21
+ [key: string]: object;
22
+ };
23
+ export declare const getNodeLabel: (type: string, desc: any) => string | import("react/jsx-runtime").JSX.Element;
24
+ export declare const getNodeDescription: (type: string, desc: any) => any;
25
+ export declare const getLabelLink: (type: string, guid: string, isExecutable: "true" | "false") => string | null;
26
+ export declare const getKey: (key: string, scheme: {
27
+ [key: string]: StringMap;
28
+ }, tab: string) => any;
29
+ export declare const getValue: (key: string, value: any, scheme: {
30
+ [key: string]: StringMap;
31
+ }, tab: string) => any;
@@ -0,0 +1,16 @@
1
+ import { Node, Edge } from 'reactflow';
2
+ import { Certificate, Replica } from '../../../@types/CertificateTypes';
3
+ import 'react-toastify/dist/ReactToastify.css';
4
+ import 'reactflow/dist/style.css';
5
+ import './style.css';
6
+ declare const CertificateGraph: ({ type, certificate, replica, graph, children }: {
7
+ type: string;
8
+ certificate: Certificate;
9
+ graph: {
10
+ nodes: Array<Node>;
11
+ edges: Array<Edge>;
12
+ };
13
+ replica?: Replica;
14
+ children?: any;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
+ export default CertificateGraph;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const EditNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default EditNode;
@@ -0,0 +1,18 @@
1
+ import { NodeProps } from 'reactflow';
2
+ export declare const EditNodeModalBtn: ({ node }: {
3
+ node: NodeProps;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ declare const EditNodeModal: ({ isOpen, loading, toggle, handleUpdate, refresh, ingestUiNode }: {
6
+ isOpen: boolean;
7
+ loading: boolean;
8
+ toggle: Function;
9
+ handleUpdate: Function;
10
+ refresh: Function;
11
+ ingestUiNode?: {
12
+ node: {
13
+ id: string;
14
+ };
15
+ certificate: any;
16
+ };
17
+ }) => import("react/jsx-runtime").JSX.Element | null;
18
+ export default EditNodeModal;
@@ -0,0 +1,10 @@
1
+ import { Metadata, MetadataType } from '../../../../@types/CertificateTypes';
2
+ declare const EMRMaskingTables: ({ type, metadata, setMetadata, ingestUiProps }: {
3
+ type: MetadataType;
4
+ metadata: Metadata;
5
+ setMetadata: Function;
6
+ ingestUiProps?: {
7
+ schemes: any;
8
+ };
9
+ }) => import("react/jsx-runtime").JSX.Element | null;
10
+ export default EMRMaskingTables;
@@ -0,0 +1,20 @@
1
+ import { Metadata, MetadataType } from '../../../../@types/CertificateTypes';
2
+ declare const MaskMetadataTable: {
3
+ ({ type, metadata, setMetadata, emrEntry, emrIndex, ingestUiProps }: {
4
+ type: MetadataType;
5
+ metadata: Metadata;
6
+ setMetadata: Function;
7
+ emrEntry: {
8
+ [key: string]: any;
9
+ };
10
+ emrIndex: number;
11
+ ingestUiProps?: {
12
+ schemes: any;
13
+ };
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ defaultProps: {
16
+ emrEntry: null;
17
+ emrIndex: null;
18
+ };
19
+ };
20
+ export default MaskMetadataTable;
@@ -0,0 +1,7 @@
1
+ import { Metadata } from '../../../../@types/CertificateTypes';
2
+ export declare const maskRow: (variable: string, currMetadata: {
3
+ [key: string]: any;
4
+ }, dataType: string, update: Function) => void;
5
+ export declare const maskEMRRow: (variable: string, currMetadata: Metadata, update: Function, emrEntry: {
6
+ [key: string]: any;
7
+ }, emrIndex: number) => void;
@@ -0,0 +1,21 @@
1
+ import { NodeProps } from "reactflow";
2
+ export declare const labels: {
3
+ [key: string]: string;
4
+ };
5
+ export declare const MaskMetadataButton: ({ node }: {
6
+ node: NodeProps;
7
+ }) => import("react/jsx-runtime").JSX.Element | null;
8
+ declare const MaskMetadataModal: ({ isOpen, loading, toggle, handleUpdate, refresh, ingestUiNode, }: {
9
+ isOpen: boolean;
10
+ loading: boolean;
11
+ toggle: Function;
12
+ handleUpdate: Function;
13
+ refresh: Function;
14
+ ingestUiNode?: {
15
+ node: {
16
+ id: string;
17
+ };
18
+ certificate: any;
19
+ };
20
+ }) => import("react/jsx-runtime").JSX.Element;
21
+ export default MaskMetadataModal;
@@ -0,0 +1,6 @@
1
+ export declare const getFormControls: (label: string, description: object) => ({
2
+ type: string;
3
+ key: string;
4
+ label: string;
5
+ invalid: (d: string) => boolean;
6
+ } | null)[] | null;
@@ -0,0 +1,8 @@
1
+ import { Certificate } from '../../../@types/CertificateTypes';
2
+ declare const EditCertificate: ({ certificate, loading, handleUpdate, refresh }: {
3
+ certificate: Certificate;
4
+ loading: boolean;
5
+ handleUpdate: Function;
6
+ refresh: Function;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default EditCertificate;
@@ -0,0 +1,24 @@
1
+ type CopyFileLayerNodeButton = {
2
+ vertexId: string;
3
+ certificateId: string;
4
+ type: string;
5
+ isNodeHover: boolean;
6
+ toggle: Function;
7
+ };
8
+ type CopyFileLayerSubgraphButton = {
9
+ vertexId: string;
10
+ certificateId: string;
11
+ type: string;
12
+ refresh: Function;
13
+ };
14
+ type CopyFileLayerModalProps = {
15
+ vertexId: string;
16
+ certificateId: string;
17
+ refresh: Function;
18
+ isOpen: boolean;
19
+ toggle: Function;
20
+ };
21
+ declare const CopyFileLayerNodeButton: (props: CopyFileLayerNodeButton) => import("react/jsx-runtime").JSX.Element | null;
22
+ export declare const CopyFileLayerSubgraphButton: (props: CopyFileLayerSubgraphButton) => import("react/jsx-runtime").JSX.Element | null;
23
+ export declare const CopyFileLayerModal: ({ vertexId, certificateId, refresh, isOpen, toggle }: CopyFileLayerModalProps) => import("react/jsx-runtime").JSX.Element;
24
+ export default CopyFileLayerNodeButton;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const FileLayerNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default FileLayerNode;
@@ -0,0 +1,10 @@
1
+ declare const MetadataTable: ({ metadata, scheme, activeTab }: {
2
+ metadata: {
3
+ [key: string]: any;
4
+ };
5
+ scheme: {
6
+ [key: string]: any;
7
+ };
8
+ activeTab: string;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default MetadataTable;
@@ -0,0 +1,8 @@
1
+ import { Metadata } from "../../../../@types/CertificateTypes";
2
+ export declare const getHeader: (label: string, desc: {
3
+ [key: string]: string;
4
+ }) => string;
5
+ export declare const getTabs: (metadata: Metadata) => string[];
6
+ export declare const hasMetadata: (metadata: {
7
+ [key: string]: Metadata;
8
+ }, nodeId: string) => boolean;
@@ -0,0 +1,10 @@
1
+ import { NodeProps } from 'reactflow';
2
+ export declare const MetadataButton: ({ label, node }: {
3
+ label: string;
4
+ node: NodeProps;
5
+ }) => import("react/jsx-runtime").JSX.Element | null;
6
+ declare const MetadataModal: ({ isOpen, toggle }: {
7
+ isOpen: boolean;
8
+ toggle: Function;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default MetadataModal;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const ReadNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ReadNode;
@@ -0,0 +1,5 @@
1
+ import { Certificate } from '../../../@types/CertificateTypes';
2
+ declare const ReadCertificate: ({ certificate }: {
3
+ certificate: Certificate;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ReadCertificate;
@@ -0,0 +1,10 @@
1
+ import 'react-quill/dist/quill.snow.css';
2
+ import './style.css';
3
+ type ModalProps = {
4
+ isOpen: boolean;
5
+ onClose: Function;
6
+ refresh: Function;
7
+ handleUpdate: Function;
8
+ };
9
+ declare const RestrictNodeModal: React.FC<ModalProps>;
10
+ export default RestrictNodeModal;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const ReviewNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ReviewNode;
@@ -0,0 +1,22 @@
1
+ import { NodeProps } from 'reactflow';
2
+ export declare const ReviewBtn: ({ node }: {
3
+ node: NodeProps;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
5
+ type ModalProps = {
6
+ isOpen: boolean;
7
+ loading: boolean;
8
+ form: object;
9
+ setForm: Function;
10
+ getSubmissionBody: Function;
11
+ clear: Function;
12
+ toggle: Function;
13
+ handleUpdate: Function;
14
+ refresh: Function;
15
+ };
16
+ declare const ReviewNodesModal: {
17
+ (props: ModalProps): import("react/jsx-runtime").JSX.Element;
18
+ defaultProps: {
19
+ children: null;
20
+ };
21
+ };
22
+ export default ReviewNodesModal;
@@ -0,0 +1,14 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const getStyle: (type: string, isAssetRestricted: boolean) => CSSProperties;
3
+ export declare const getFormControls: (key?: "restrictionNotes" | undefined) => {
4
+ type: string;
5
+ key: string;
6
+ label: string;
7
+ invalid: (d: any) => boolean;
8
+ } | {
9
+ type: string;
10
+ key: string;
11
+ label: string;
12
+ invalid: (d: any) => boolean;
13
+ }[];
14
+ export declare const getFilteredRestrictedAssets: (assetBeingRemoved: string, restrictedAssets: any) => any;
@@ -0,0 +1,7 @@
1
+ import { Certificate } from '../../../@types/CertificateTypes';
2
+ declare const ReviewCertificate: ({ certificate, handleUpdate, refresh }: {
3
+ certificate: Certificate;
4
+ handleUpdate: Function;
5
+ refresh: Function;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default ReviewCertificate;
@@ -0,0 +1,4 @@
1
+ declare const ActionsMenu: ({ setIsLayersItemModalOpen }: {
2
+ setIsLayersItemModalOpen: Function;
3
+ }) => import("react/jsx-runtime").JSX.Element | null;
4
+ export default ActionsMenu;
@@ -0,0 +1,5 @@
1
+ declare const LayerItemsModal: ({ isOpen, setIsOpen }: {
2
+ isOpen: boolean;
3
+ setIsOpen: Function;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default LayerItemsModal;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const WalkingNode: ({ id }: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default WalkingNode;
@@ -0,0 +1,11 @@
1
+ import { Edge, Node } from 'reactflow';
2
+ import { Certificate } from '../../../@types/CertificateTypes';
3
+ export declare const nodeWidth = 250;
4
+ export declare const nodeHeight = 120;
5
+ export declare const getWalkingNodesAndEdges: (nodes: Array<Node>, edges: Array<Edge>, direction?: string) => {
6
+ nodes: Node[];
7
+ edges: Edge[];
8
+ };
9
+ export declare const getUpdatedNodes: (currentNodes: Array<Node>, newNodes: Certificate["vertices"], certificate: Certificate, isUpdate?: boolean) => Node[];
10
+ export declare const getUpdatedEdges: (currentEdges: Array<Edge>, newEdges: Certificate["edges"]) => Edge[];
11
+ export declare const getLink: (id: Node["id"]) => string;
@@ -0,0 +1,5 @@
1
+ import { Certificate } from '../../../@types/CertificateTypes';
2
+ declare const WalkingGraph: ({ certificate }: {
3
+ certificate: Certificate;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default WalkingGraph;
@@ -0,0 +1,2 @@
1
+ export declare const startIDE: () => void;
2
+ export declare const stopIDE: () => void;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const ReplicaIDENode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ReplicaIDENode;
@@ -0,0 +1,15 @@
1
+ import { NodeProps } from 'reactflow';
2
+ import { Pipeline, PipelineStatus } from '../../../../@types/GeneralTypes';
3
+ import { ReplicaPipelineOperation } from '../../../../@types/CertificateTypes';
4
+ export declare const Status: ({ status, replicaPipelineOperation, pipelineId }: {
5
+ status: PipelineStatus;
6
+ replicaPipelineOperation: ReplicaPipelineOperation;
7
+ pipelineId: string;
8
+ }) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const ReplicaPipelineInfo: ({ pipeline, replicaPipelineOperation, refresh }: {
10
+ pipeline: Pipeline | null;
11
+ replicaPipelineOperation: ReplicaPipelineOperation;
12
+ refresh: Function;
13
+ }) => import("react/jsx-runtime").JSX.Element | null;
14
+ declare const ReplicaPipelineNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
15
+ export default ReplicaPipelineNode;
@@ -0,0 +1,7 @@
1
+ import { NodeProps } from 'reactflow';
2
+ import { RestrictedAssetObject } from '../../../../@types/CertificateTypes';
3
+ interface RestrictedNode extends NodeProps {
4
+ restrictedAsset: RestrictedAssetObject;
5
+ }
6
+ declare const RestrictedNode: (props: RestrictedNode) => import("react/jsx-runtime").JSX.Element;
7
+ export default RestrictedNode;
@@ -0,0 +1 @@
1
+ export declare const copyFile: (vertexId: string, certId: string, apiRoute: string) => Promise<Response>;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const WorkspaceFileNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default WorkspaceFileNode;
@@ -0,0 +1,7 @@
1
+ declare const IDEModal: ({ loading, isOpen, toggle, onStartIDE }: {
2
+ loading: boolean;
3
+ isOpen: boolean;
4
+ toggle: Function;
5
+ onStartIDE: Function;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default IDEModal;
@@ -0,0 +1,3 @@
1
+ import { Replica } from "../../../../@types/CertificateTypes";
2
+ export declare const runIDE: (vertexId: string, certId: string, apiRoute: string) => Promise<Response>;
3
+ export declare const startIDE: (vertexId: string, certificateId: string, edges: object, matches: Replica["matches"], refresh: Function, toggleModal: Function, apiRoute: string) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const WorkspaceIDENode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default WorkspaceIDENode;
@@ -0,0 +1,8 @@
1
+ import { Node } from 'reactflow';
2
+ declare const WorkspaceNode: (props: {
3
+ id: string;
4
+ data: Node["data"];
5
+ modal: React.ReactNode;
6
+ toggle: Function;
7
+ }) => import("react/jsx-runtime").JSX.Element;
8
+ export default WorkspaceNode;
@@ -0,0 +1,7 @@
1
+ declare const PipelineModal: ({ loading, isOpen, toggle, onStartPipeline }: {
2
+ loading: boolean;
3
+ isOpen: boolean;
4
+ toggle: Function;
5
+ onStartPipeline: Function;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export default PipelineModal;
@@ -0,0 +1,3 @@
1
+ import { Replica } from "../../../../@types/CertificateTypes";
2
+ export declare const runPipeline: (vertexId: string, certId: string, apiRoute: string) => Promise<Response>;
3
+ export declare const startPipeline: (vertexId: string, certificateId: string, edges: object, matches: Replica["matches"], refresh: Function, toggleModal: Function, apiRoute: string) => Promise<void>;
@@ -0,0 +1,3 @@
1
+ import { NodeProps } from 'reactflow';
2
+ declare const WorkspacePipelineNode: (props: NodeProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default WorkspacePipelineNode;
@@ -0,0 +1,10 @@
1
+ import { Edge, Node } from 'reactflow';
2
+ import { Certificate, Replica } from '../../../@types/CertificateTypes';
3
+ export declare const getWorkspaceNodesAndEdges: (vertices: Certificate["vertices"], edges: Certificate["edges"], replica: Replica, data: {
4
+ [key: string]: Node["data"];
5
+ }) => {
6
+ nodes: Node[];
7
+ edges: Edge[];
8
+ };
9
+ export declare const findInputFiles: (vertexId: string, edges: object, matches: Replica["matches"]) => Promise<string[]>;
10
+ export declare const copyInputFiles: (files: Array<string>, certId: string, apiRoute: string) => Promise<Response[]>;
@@ -0,0 +1,8 @@
1
+ import { Certificate, Replica } from '../../../@types/CertificateTypes';
2
+ import './style.css';
3
+ declare const WorkspaceCertificate: ({ certificate, replica, refresh }: {
4
+ certificate: Certificate;
5
+ replica: Replica;
6
+ refresh: Function;
7
+ }) => import("react/jsx-runtime").JSX.Element | undefined;
8
+ export default WorkspaceCertificate;
@@ -0,0 +1,33 @@
1
+ import React, { ReactNode } from 'react';
2
+ /**
3
+ * Configuration interface for hise-flow-graphs
4
+ * These values should be provided by the parent application (ingest-ui, or other)
5
+ */
6
+ export interface HiseConfig {
7
+ /** Base API route (e.g., https://[development | staging | production].allenimmunology.org) */
8
+ apiRoute: string;
9
+ }
10
+ interface HiseConfigProviderProps {
11
+ config: HiseConfig;
12
+ children: ReactNode;
13
+ }
14
+ /**
15
+ * Provider component that supplies configuration to hise-flow-graphs
16
+ * Must be wrapped around any hise-flow-graphs components in the parent app
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * import { HiseConfigProvider } from 'hise-flow-graphs';
21
+ *
22
+ * <HiseConfigProvider config={{ apiRoute: import.meta.env.VITE_API_ROUTE }}>
23
+ * <YourApp />
24
+ * </HiseConfigProvider>
25
+ * ```
26
+ */
27
+ export declare const HiseConfigProvider: React.FC<HiseConfigProviderProps>;
28
+ /**
29
+ * Hook to access hise-flow-graphs configuration
30
+ * @throws Error if used outside of HiseConfigProvider
31
+ */
32
+ export declare const useHiseConfig: () => HiseConfig;
33
+ export {};
@@ -0,0 +1,18 @@
1
+ import ReadCertificate from './components/Certificates/ReadCertificate/index';
2
+ import EditCertificate from './components/Certificates/EditCertificate/index';
3
+ import ReviewCertificate from './components/Certificates/ReviewCertificate/index';
4
+ import WorkspaceCertificate from './components/Certificates/WorkspaceCertificate/index';
5
+ import WalkingGraph from './components/Certificates/WalkingGraph';
6
+ import getCertificateBody from './utils/getCertificateBody';
7
+ import EditNodeModal from './components/Certificates/EditCertificate/EditNodeModal';
8
+ import MaskMetadataModal from './components/Certificates/EditCertificate/MaskMetadataModal/index';
9
+ import PipelineModal from './components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/PipelineModal';
10
+ import IDEModal from './components/Certificates/WorkspaceCertificate/WorkspaceIDENode/IDEModal';
11
+ import { getSchemes } from './components/Certificates/CertificateGraph/helpers';
12
+ import { startPipeline } from './components/Certificates/WorkspaceCertificate/WorkspacePipelineNode/helpers';
13
+ import { startIDE } from './components/Certificates/WorkspaceCertificate/WorkspaceIDENode/helpers';
14
+ import { ReplicaPipelineInfo } from './components/Certificates/WorkspaceCertificate/ReplicaPipelineNode';
15
+ import { HiseConfigProvider, useHiseConfig } from './context/HiseConfigContext';
16
+ import type { HiseConfig } from './context/HiseConfigContext';
17
+ export { ReadCertificate, EditCertificate, ReviewCertificate, WorkspaceCertificate, WalkingGraph, getCertificateBody, EditNodeModal, MaskMetadataModal, getSchemes, startPipeline, startIDE, PipelineModal, IDEModal, ReplicaPipelineInfo, HiseConfigProvider, useHiseConfig, };
18
+ export type { HiseConfig };