diff --git a/src/Speckle.Sdk/Api/GraphQL/Enums/ProjectVisibility.cs b/src/Speckle.Sdk/Api/GraphQL/Enums/ProjectVisibility.cs index 5e4b1440..7bb78f78 100644 --- a/src/Speckle.Sdk/Api/GraphQL/Enums/ProjectVisibility.cs +++ b/src/Speckle.Sdk/Api/GraphQL/Enums/ProjectVisibility.cs @@ -2,7 +2,9 @@ public enum ProjectVisibility { - Private, - Public, - Unlisted, + Private = 0, + + [Obsolete("Use Unlisted instead", true)] + Public = 1, + Unlisted = 2, } diff --git a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceTests.cs b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceTests.cs index 05688815..612b42a7 100644 --- a/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceTests.cs +++ b/tests/Speckle.Sdk.Tests.Integration/Api/GraphQL/Resources/ProjectResourceTests.cs @@ -29,7 +29,7 @@ public class ProjectResourceTests [Theory] [InlineData("Very private project", "My secret project", ProjectVisibility.Private)] - [InlineData("Very public project", null, ProjectVisibility.Public)] + [InlineData("Very unlisted project", null, ProjectVisibility.Unlisted)] public async Task ProjectCreate_Should_CreateProjectSuccessfully( string name, string? description, @@ -70,7 +70,7 @@ public class ProjectResourceTests // Arrange const string NEW_NAME = "MY new name"; const string NEW_DESCRIPTION = "MY new desc"; - const ProjectVisibility NEW_VISIBILITY = ProjectVisibility.Public; + const ProjectVisibility NEW_VISIBILITY = ProjectVisibility.Unlisted; // Act var newProject = await Sut.Update( diff --git a/tests/Speckle.Sdk.Tests.Performance/Benchmarks/GeneralSendTest.cs b/tests/Speckle.Sdk.Tests.Performance/Benchmarks/GeneralSendTest.cs index 994ea723..4c424731 100644 --- a/tests/Speckle.Sdk.Tests.Performance/Benchmarks/GeneralSendTest.cs +++ b/tests/Speckle.Sdk.Tests.Performance/Benchmarks/GeneralSendTest.cs @@ -57,7 +57,7 @@ public class GeneralSendTest client = TestDataHelper.ServiceProvider.GetRequiredService().Create(acc); _project = await client.Project.Create( - new($"General Send Test run {Guid.NewGuid()}", null, ProjectVisibility.Public) + new($"General Send Test run {Guid.NewGuid()}", null, ProjectVisibility.Unlisted) ); _remote = TestDataHelper.ServiceProvider.GetRequiredService().Create(acc, _project.id); }