<?php

declare (strict_types=1);
namespace idoit\Module\SyneticsJdisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Resolver\AutoGenerationInterface;

/**
 * This code is @generated by axtiva/flexible-graphql-php
 * if you want to extend it or change, then remove interface AutoGenerationInterface
 * and it will be managed by you, not axtiva/flexible-graphql-php code generator
 * PHP representation of graphql type EventDeletionProgressInfo
 * This object contains information about the background task deleteEvents within the eventManagement interface.
Deleting events can be a lengthy operation and the async version can delete the events in the background.
This object can be used to track the progress and hold the result of the operation. */
final class EventDeletionProgressInfoType implements AutoGenerationInterface, ProgressInfoInterface
{
    /**
     * The current action being performed. Can be empty or null.
     */
    public ?string $action = null;
    /**
     * A message that describes the completion status once the task is completed or canceled.
     */
    public ?string $completionMessage = null;
    /**
     * The current value for the operation's progress. Together with the maxValue, you can calculate the percentage.
     */
    public ?int $currentValue = null;
    /**
     * The error object. The error object type depends on the type of action.
     */
    public $errorObject = null;
    /**
     * The exception, that occurred during the execution of the monitored operation.
     */
    public $exception = null;
    /**
     * Is the task failed?
     */
    public bool $hasFailed;
    /**
     * Is the task finished?
     */
    public bool $isFinished;
    /**
     * The maximum value for the operation's progress. A max value < 0 indicates, that the maximum value is not known for this operation.
     */
    public ?int $maxValue = null;
    /**
     * The operationId identifies a specific operation. Use this operationId to poll the current status.
     */
    public string $operationId;
    /**
     * The result if there is one.
     */
    public $resultObject = null;
    /**
     * The current sub-action being performed. Can be empty or null.
     */
    public ?string $subaction = null;
    /**
     * When the operation completed, this property holds the list of events which could not be found during the deletion process.
     * @var null|iterable
     */
    public ?iterable $notFoundEvents = null;
}