Skip to content

Commit 79880f6

Browse files
committed
Added constant class for the export job status values.
1 parent 299bb35 commit 79880f6

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

src/Constant/ExportJobStatus.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace FactorioItemBrowser\Api\Client\Constant;
6+
7+
/**
8+
* The status values of the export jobs.
9+
*
10+
* @author BluePsyduck <[email protected]>
11+
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
12+
*/
13+
interface ExportJobStatus
14+
{
15+
/**
16+
* The export job is currently queued and has not been touched yet.
17+
*/
18+
public const QUEUED = 'queued';
19+
20+
/**
21+
* A node has taken the export job and is currently downloading the missing mods from the Mod Portal.
22+
*/
23+
public const DOWNLOADING = 'downloading';
24+
25+
/**
26+
* The node is currently running a Factorio instance and parsing the dumped data.
27+
*/
28+
public const PROCESSING = 'processing';
29+
30+
/**
31+
* The node is currently uploading the gathered data to the importer.
32+
*/
33+
public const UPLOADING = 'uploading';
34+
35+
/**
36+
* The data has been uploaded to the importer and is currently waiting to actually get imported into the database.
37+
*/
38+
public const UPLOADED = 'uploaded';
39+
40+
/**
41+
* The importer is running and currently importing the data into the database.
42+
*/
43+
public const IMPORTING = 'importing';
44+
45+
/**
46+
* The export job is done and its data is available through the API server.
47+
*/
48+
public const DONE = 'done';
49+
50+
/**
51+
* An error occurred while processing the export job. No further updates are expected.
52+
*/
53+
public const ERROR = 'error';
54+
}

0 commit comments

Comments
 (0)