Files
cadSet/SimpleCADAPI/scene-contract/src/generated/connector_binding.ts
T

95 lines
2.5 KiB
TypeScript

/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "logicalId".
*/
export type LogicalId = string;
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "productId".
*/
export type ProductId = string;
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "hash".
*/
export type Hash = string;
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "structuralId".
*/
export type StructuralId = string;
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "safeInteger".
*/
export type SafeInteger = number;
export interface ConnectorBindingDocument {
schema_version: "1.0";
binding_id: LogicalId;
source_model: SourceModel;
source_scene: SourceScene;
owner_definition_id: StructuralId;
selected_occurrence_node_id: StructuralId;
connector_id: ProductId;
name: string | null;
target: Target;
}
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "sourceModel".
*/
export interface SourceModel {
graph_id: ProductId;
model_schema_version: "2.0";
artifact_hash: Hash;
}
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "sourceScene".
*/
export interface SourceScene {
scene_id: LogicalId;
revision: Hash;
}
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "target".
*/
export interface Target {
kind: "topology_entity";
entity_asset_id: Hash;
entity_id: string;
expected_source: ModelOutput | ModelTopology;
flip: boolean;
}
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "modelOutput".
*/
export interface ModelOutput {
kind: "model_output";
graph_id: ProductId;
node_id: ProductId;
output_slot: SafeInteger;
}
/**
* This interface was referenced by `ConnectorBindingDocument`'s JSON-Schema
* via the `definition` "modelTopology".
*/
export interface ModelTopology {
kind: "model_topology";
graph_id: ProductId;
node_id: ProductId;
output_slot: SafeInteger;
topology_kind: "FACE" | "EDGE" | "VERTEX";
topo_id: string;
}