Files
speckle-sharp-sdk/src/Speckle.Sdk/Api/GraphQL/Models/Project.cs
T
Jedd Morgan 7f092d529c
.NET Build and Publish / build (push) Has been cancelled
feat(api): Add ActiveUserResource.GetProjectsWithPermissions (#299)
* Fixed Mistakes (#296)

* Added extra permission checks (#297)

* Add extra query for project with permissions

---------

Co-authored-by: Adam Hathcock <adamhathcock@users.noreply.github.com>
Co-authored-by: Adam Hathcock <adam@hathcock.uk>
2025-05-08 15:11:53 +00:00

34 lines
942 B
C#

using Speckle.Sdk.Api.GraphQL.Enums;
namespace Speckle.Sdk.Api.GraphQL.Models;
public class Project
{
public bool allowPublicComments { get; init; }
public DateTime createdAt { get; init; }
public string? description { get; init; }
public string id { get; init; }
public string name { get; init; }
public string? role { get; init; }
public List<string> sourceApps { get; init; }
public DateTime updatedAt { get; init; }
public ProjectVisibility visibility { get; init; }
public string? workspaceId { get; init; }
}
public sealed class ProjectWithModels : Project
{
public ResourceCollection<Model> models { get; init; }
}
public sealed class ProjectWithTeam : Project
{
public List<PendingStreamCollaborator> invitedTeam { get; init; }
public List<ProjectCollaborator> team { get; init; }
}
public sealed class ProjectWithPermissions : Project
{
public ProjectPermissionChecks permissions { get; init; }
}