mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
68 lines
1.4 KiB
TypeScript
68 lines
1.4 KiB
TypeScript
/**
|
|
* Module: Schema of Synthesis Operations.
|
|
*/
|
|
|
|
import { ILibraryItemData } from './library';
|
|
import { UserID } from './user';
|
|
import { IConstituenta, ISubstitution } from '@/models/rsform.ts';
|
|
|
|
/**
|
|
* Represents backend data for Schema of Synthesis Operations.
|
|
*/
|
|
export interface IOperationSchemaData extends ILibraryItemData {
|
|
input_nodes: IInputNode[];
|
|
operation_nodes: ISynthesisNode[];
|
|
edges: ISynthesisEdge[];
|
|
substitutions: ISynthesisSubstitution[];
|
|
graph: ISynthesisGraph;
|
|
}
|
|
|
|
interface ISynthesisGraph {
|
|
id: number;
|
|
status: string;
|
|
}
|
|
|
|
interface IInputNode {
|
|
id: number | null;
|
|
graph_id: number;
|
|
vertical_coordinate: number;
|
|
horizontal_coordinate: number;
|
|
rsform_id: number;
|
|
}
|
|
|
|
interface ISynthesisNode extends IInputNode {
|
|
id: number | null;
|
|
name: string;
|
|
status: string;
|
|
}
|
|
|
|
interface ISynthesisEdge {
|
|
id: number | null;
|
|
decoded_id: string;
|
|
source_handle: string;
|
|
graph_id: number;
|
|
node_from: string;
|
|
node_to: string;
|
|
}
|
|
|
|
export interface ISynthesisSubstitution extends ISubstitution {
|
|
id: number | null;
|
|
graph_id: number;
|
|
operation_id: string;
|
|
}
|
|
|
|
export interface IRunSynthesis {
|
|
operationId: number;
|
|
}
|
|
|
|
export interface IRunSynthesisResponse {
|
|
rsformId: number;
|
|
}
|
|
|
|
/**
|
|
* Represents Schema of Synthesis Operations.
|
|
*/
|
|
export interface IOperationSchema extends IOperationSchemaData {
|
|
subscribers: UserID[];
|
|
editors: UserID[];
|