d6f6254a92
.NET Build and Publish / build (push) Has been cancelled
* add file import resource * disabled health check * re-enable healthcheck * git ignore volumes * disabled importer * start_period * Skipped broken tests * Verify tests * Fixed tests * reverted volumes path * Update docker-compose.yml
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
namespace Speckle.Sdk.Api.GraphQL.Inputs;
|
|
|
|
public record GenerateFileUploadUrlInput(string projectId, string fileName);
|
|
|
|
public record StartFileImportInput(string projectId, string modelId, string fileId, string etag);
|
|
|
|
public record FileImportResult(
|
|
double durationSeconds,
|
|
double downloadDurationSeconds,
|
|
double parseDurationSeconds,
|
|
string parser,
|
|
string? versionId
|
|
);
|
|
|
|
public abstract class FileImportInputBase
|
|
{
|
|
public required string projectId { get; init; }
|
|
public required string jobId { get; init; }
|
|
public required IReadOnlyCollection<string> warnings { get; init; }
|
|
public required FileImportResult result { get; init; }
|
|
}
|
|
|
|
#pragma warning disable CA1822 //Mark members as static
|
|
|
|
public sealed class FileImportSuccessInput() : FileImportInputBase()
|
|
{
|
|
public const string TYPE_STATUS = "success";
|
|
|
|
public string status => TYPE_STATUS;
|
|
}
|
|
|
|
public sealed class FileImportErrorInput() : FileImportInputBase()
|
|
{
|
|
public const string TYPE_STATUS = "error";
|
|
|
|
public string status => TYPE_STATUS;
|
|
public required string reason { get; init; }
|
|
}
|