From 49ef9917c480b1bbe98bbc7b1735b2d9a07451d1 Mon Sep 17 00:00:00 2001 From: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com> Date: Mon, 26 Jan 2026 16:03:16 +0000 Subject: [PATCH] Model Ingestion Version message (#427) --- src/Speckle.Sdk/Api/GraphQL/Inputs/ModelIngestionInputs.cs | 7 ++++++- .../Api/GraphQL/Resources/ModelIngestionResourceTests.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Speckle.Sdk/Api/GraphQL/Inputs/ModelIngestionInputs.cs b/src/Speckle.Sdk/Api/GraphQL/Inputs/ModelIngestionInputs.cs index 9f243b11..1215d034 100644 --- a/src/Speckle.Sdk/Api/GraphQL/Inputs/ModelIngestionInputs.cs +++ b/src/Speckle.Sdk/Api/GraphQL/Inputs/ModelIngestionInputs.cs @@ -19,7 +19,12 @@ public record ModelIngestionCreateInput( public record ModelIngestionUpdateInput(string ingestionId, string projectId, string progressMessage, double? progress); -public record ModelIngestionSuccessInput(string ingestionId, string projectId, string rootObjectId); +public record ModelIngestionSuccessInput( + string ingestionId, + string projectId, + string rootObjectId, + string? versionMessage +); public record ModelIngestionFailedInput( string ingestionId, diff --git a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ModelIngestionResourceTests.cs b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ModelIngestionResourceTests.cs index bb25a5be..829deb5a 100644 --- a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ModelIngestionResourceTests.cs +++ b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ModelIngestionResourceTests.cs @@ -130,7 +130,7 @@ public sealed class ModelIngestionResourceTests : IAsyncLifetime new(true, true) ); - ModelIngestionSuccessInput finish = new(ingest.id, _project.id, sendResult.RootId); + ModelIngestionSuccessInput finish = new(ingest.id, _project.id, sendResult.RootId, "yay!"); string versionId = await Sut.Complete(finish); Version version = await _testUser.Version.Get(versionId, _project.id); Assert.Equal(version.id, versionId);