Compare commits
3 Commits
3.3.0-dev.1
...
3.3.2
| Author | SHA1 | Date | |
|---|---|---|---|
| a4f0e0e4aa | |||
| 227729a0df | |||
| 178085f3f8 |
@@ -4,4 +4,6 @@ public sealed class ProjectPermissionChecks
|
|||||||
{
|
{
|
||||||
public PermissionCheckResult canCreateModel { get; init; }
|
public PermissionCheckResult canCreateModel { get; init; }
|
||||||
public PermissionCheckResult canDelete { get; init; }
|
public PermissionCheckResult canDelete { get; init; }
|
||||||
|
public PermissionCheckResult canLoad { get; init; }
|
||||||
|
public PermissionCheckResult canPublish { get; init; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,10 @@ public sealed class Workspace
|
|||||||
public string role { get; init; }
|
public string role { get; init; }
|
||||||
public string slug { get; init; }
|
public string slug { get; init; }
|
||||||
public string? description { get; init; }
|
public string? description { get; init; }
|
||||||
|
public string? logo { get; init; }
|
||||||
|
public DateTime? createdAt { get; init; }
|
||||||
|
public DateTime? updatedAt { get; init; }
|
||||||
|
public bool? readOnly { get; init; }
|
||||||
public WorkspacePermissionChecks permissions { get; init; }
|
public WorkspacePermissionChecks permissions { get; init; }
|
||||||
public WorkspaceCreationState? creationState { get; init; }
|
public WorkspaceCreationState? creationState { get; init; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -71,6 +71,16 @@ public sealed class ProjectResource
|
|||||||
code
|
code
|
||||||
message
|
message
|
||||||
}
|
}
|
||||||
|
canLoad {
|
||||||
|
authorized
|
||||||
|
code
|
||||||
|
message
|
||||||
|
}
|
||||||
|
canPublish {
|
||||||
|
authorized
|
||||||
|
code
|
||||||
|
message
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,10 +50,10 @@ public sealed class WorkspaceResource
|
|||||||
var request = new GraphQLRequest { Query = QUERY, Variables = new { workspaceId } };
|
var request = new GraphQLRequest { Query = QUERY, Variables = new { workspaceId } };
|
||||||
|
|
||||||
var response = await _client
|
var response = await _client
|
||||||
.ExecuteGraphQLRequest<RequiredResponse<RequiredResponse<Workspace>>>(request, cancellationToken)
|
.ExecuteGraphQLRequest<RequiredResponse<Workspace>>(request, cancellationToken)
|
||||||
.ConfigureAwait(false);
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
return response.data.data;
|
return response.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <param name="workspaceId"></param>
|
/// <param name="workspaceId"></param>
|
||||||
|
|||||||
Reference in New Issue
Block a user