|
21 | 21 | use Mindee\Http\WorkflowEndpoint; |
22 | 22 | use Mindee\Input\Base64Input; |
23 | 23 | use Mindee\Input\BytesInput; |
24 | | -use Mindee\Input\EnqueueAndParseMethodOptions; |
25 | 24 | use Mindee\Input\FileInput; |
26 | 25 | use Mindee\Input\InputSource; |
27 | 26 | use Mindee\Input\LocalInputSource; |
28 | 27 | use Mindee\Input\LocalResponse; |
29 | 28 | use Mindee\Input\PageOptions; |
30 | 29 | use Mindee\Input\PathInput; |
| 30 | +use Mindee\Input\PollingOptions; |
31 | 31 | use Mindee\Input\PredictMethodOptions; |
32 | 32 | use Mindee\Input\URLInputSource; |
33 | 33 | use Mindee\Input\WorkflowOptions; |
@@ -429,26 +429,26 @@ public function parse( |
429 | 429 | /** |
430 | 430 | * Enqueues a document and automatically polls the response. Asynchronous calls only. |
431 | 431 | * |
432 | | - * @param string $predictionType Name of the product's class. |
433 | | - * @param InputSource $inputDoc Input file. |
434 | | - * @param PredictMethodOptions|null $options Prediction Options. |
435 | | - * @param EnqueueAndParseMethodOptions|null $asyncOptions Async Options. Manages timers. |
436 | | - * @param PageOptions|null $pageOptions Options to apply to the PDF file. |
| 432 | + * @param string $predictionType Name of the product's class. |
| 433 | + * @param InputSource $inputDoc Input file. |
| 434 | + * @param PredictMethodOptions|null $options Prediction Options. |
| 435 | + * @param PollingOptions|null $asyncOptions Async Options. Manages timers. |
| 436 | + * @param PageOptions|null $pageOptions Options to apply to the PDF file. |
437 | 437 | * @return AsyncPredictResponse |
438 | 438 | * @throws MindeeApiException Throws if the document couldn't be retrieved in time. |
439 | 439 | */ |
440 | 440 | public function enqueueAndParse( |
441 | 441 | string $predictionType, |
442 | 442 | InputSource $inputDoc, |
443 | 443 | ?PredictMethodOptions $options = null, |
444 | | - ?EnqueueAndParseMethodOptions $asyncOptions = null, |
| 444 | + ?PollingOptions $asyncOptions = null, |
445 | 445 | ?PageOptions $pageOptions = null |
446 | 446 | ): AsyncPredictResponse { |
447 | 447 | if ($options == null) { |
448 | 448 | $options = new PredictMethodOptions(); |
449 | 449 | } |
450 | 450 | if ($asyncOptions == null) { |
451 | | - $asyncOptions = new EnqueueAndParseMethodOptions(); |
| 451 | + $asyncOptions = new PollingOptions(); |
452 | 452 | } |
453 | 453 |
|
454 | 454 | $options->endpoint = $options->endpoint ?? $this->constructOTSEndpoint( |
|
0 commit comments