diff --git a/Core/Core/Api/GraphQL/Inputs/VersionInputs.cs b/Core/Core/Api/GraphQL/Inputs/VersionInputs.cs index 5bbee6e791..b3f0d91206 100644 --- a/Core/Core/Api/GraphQL/Inputs/VersionInputs.cs +++ b/Core/Core/Api/GraphQL/Inputs/VersionInputs.cs @@ -2,8 +2,8 @@ namespace Speckle.Core.Api.GraphQL.Inputs; -public sealed record UpdateVersionInput(string versionId, string? message); +public sealed record UpdateVersionInput(string versionId, string projectId, string? message); -public sealed record MoveVersionsInput(string targetModelName, IReadOnlyList versionIds); +public sealed record MoveVersionsInput(string projectId, string targetModelName, IReadOnlyList versionIds); -public sealed record DeleteVersionsInput(IReadOnlyList versionIds); +public sealed record DeleteVersionsInput(IReadOnlyList versionIds, string projectId); diff --git a/Core/Tests/Speckle.Core.Tests.Integration/Api/GraphQL/Resources/VersionResourceTests.cs b/Core/Tests/Speckle.Core.Tests.Integration/Api/GraphQL/Resources/VersionResourceTests.cs index d54c966e0b..4350801324 100644 --- a/Core/Tests/Speckle.Core.Tests.Integration/Api/GraphQL/Resources/VersionResourceTests.cs +++ b/Core/Tests/Speckle.Core.Tests.Integration/Api/GraphQL/Resources/VersionResourceTests.cs @@ -80,7 +80,7 @@ public async Task VersionUpdate() { const string NEW_MESSAGE = "MY new version message"; - UpdateVersionInput input = new(_version.id, NEW_MESSAGE); + UpdateVersionInput input = new(_version.id, _project.id, NEW_MESSAGE); Version updatedVersion = await Sut.Update(input); Assert.That(updatedVersion, Has.Property(nameof(Version.id)).EqualTo(_version.id)); @@ -91,7 +91,7 @@ public async Task VersionUpdate() [Test] public async Task VersionMoveToModel() { - MoveVersionsInput input = new(_model2.name, new[] { _version.id }); + MoveVersionsInput input = new(_project.id, _model2.name, new[] { _version.id }); string id = await Sut.MoveToModel(input); Assert.That(id, Is.EqualTo(_model2.id)); Version movedVersion = await Sut.Get(_version.id, _model2.id, _project.id); @@ -106,7 +106,7 @@ public async Task VersionMoveToModel() [Test] public async Task VersionDelete() { - DeleteVersionsInput input = new(new[] { _version.id }); + DeleteVersionsInput input = new(new[] { _version.id }, _project.id); bool response = await Sut.Delete(input); Assert.That(response, Is.True);