Skip to content

Commit

Permalink
mirrors and helices return uuids (#691)
Browse files Browse the repository at this point in the history
* mirrors return uuids

* return helix id too

---------

Co-authored-by: gserena <serena@zoo.dev>
  • Loading branch information
gserena01 and gserena authored Dec 19, 2024
1 parent 7f92ddc commit c8cfe1e
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions modeling-cmds/src/ok_response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,26 +84,6 @@ define_ok_modeling_cmd_response_enum! {
pub struct DefaultCameraPerspectiveSettings {
}

/// The response from the `EntityMakeHelix` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelix {
}

/// The response from the `EntityMakeHelixFromParams` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelixFromParams {
}

/// The response from the `EntityMirror` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMirror {
}

/// The response from the `EntityMirrorAcrossEdge` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMirrorAcrossEdge {
}

/// The response from the `SelectAdd` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct SelectAdd {
Expand Down Expand Up @@ -755,6 +735,34 @@ define_ok_modeling_cmd_response_enum! {
pub entity_ids: Vec<Uuid>,
}

/// The response from the `EntityMirror` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMirror {
/// The UUIDs of the entities that were created.
pub entity_ids: Vec<Uuid>
}

/// The response from the `EntityMirrorAcrossEdge` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMirrorAcrossEdge {
/// The UUIDs of the entities that were created.
pub entity_ids: Vec<Uuid>
}

/// The response from the `EntityMakeHelix` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelix {
/// The UUID of the helix that was created.
pub helix_id: Uuid
}

/// The response from the `EntityMakeHelixFromParams` endpoint.
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct EntityMakeHelixFromParams {
/// The UUID of the helix that was created.
pub helix_id: Uuid
}

/// Extrusion face info struct (useful for maintaining mappings between source path segment ids and extrusion faces)
#[derive(Debug, Serialize, Deserialize, Clone, JsonSchema, ModelingCmdOutput)]
pub struct Solid3dGetExtrusionFaceInfo {
Expand Down

0 comments on commit c8cfe1e

Please sign in to comment.