7f092d529c
.NET Build and Publish / build (push) Has been cancelled
* 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>
34 lines
942 B
C#
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; }
|
|
}
|