diff --git a/indico/queries/submission.py b/indico/queries/submission.py index 5a6b5795..e1a316f0 100644 --- a/indico/queries/submission.py +++ b/indico/queries/submission.py @@ -57,6 +57,14 @@ class ListSubmissions(PagedRequest): datasetId workflowId status + inputFiles { + id + filename + filepath + filetype + fileSize + numPages + } inputFile inputFilename resultFile @@ -128,6 +136,14 @@ class GetSubmission(GraphQLRequest): datasetId workflowId status + inputFiles { + id + filename + filepath + filetype + fileSize + numPages + } inputFile inputFilename resultFile @@ -171,6 +187,14 @@ class WaitForSubmissions(RequestChain): datasetId workflowId status + inputFiles { + id + filename + filepath + filetype + fileSize + numPages + } inputFile inputFilename resultFile @@ -231,6 +255,14 @@ class UpdateSubmission(GraphQLRequest): datasetId workflowId status + inputFiles { + id + filename + filepath + filetype + fileSize + numPages + } inputFile inputFilename resultFile diff --git a/indico/types/submission_file.py b/indico/types/submission_file.py index 748571ea..e9109307 100644 --- a/indico/types/submission_file.py +++ b/indico/types/submission_file.py @@ -10,16 +10,18 @@ class SubmissionFile(BaseType): Attributes: id (int): The Submission file id - filepath (str): URL of the input datafile within the Indico Platform. - filename (str): Name of the original file submission_id (int): The parent Submission id + filename (str): Name of the original file + filepath (str): URL of the input datafile within the Indico Platform. + filetype (str): The file type of the original file; most likely, this is "PDF". file_size (int): Size of file, in bytes num_pages (int): Number of pages in file """ id: int - filepath: str - filename: str submission_id: int + filename: str + filepath: str + filetype: str file_size: int num_pages: int