diff --git a/src/Asset/Attribute/Request/CsvExportAssetRequestBody.php b/src/Asset/Attribute/Request/CsvExportAssetRequestBody.php index a6c0e7c0..47ccc0a6 100644 --- a/src/Asset/Attribute/Request/CsvExportAssetRequestBody.php +++ b/src/Asset/Attribute/Request/CsvExportAssetRequestBody.php @@ -21,7 +21,7 @@ use OpenApi\Attributes\JsonContent; use OpenApi\Attributes\Property; use OpenApi\Attributes\RequestBody; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\Grid\Schema\Column; /** @@ -42,12 +42,12 @@ public function __construct() items: new Items(ref: Column::class) ), new Property(property: 'config', properties: [ - new Property(property: Csv::SETTINGS_DELIMITER->value, type: 'string', example: ';'), + new Property(property: StepConfig::SETTINGS_DELIMITER->value, type: 'string', example: ';'), new Property( - property: Csv::SETTINGS_HEADER->value, + property: StepConfig::SETTINGS_HEADER->value, type: 'enum', - enum: Csv::values(), - example: Csv::SETTINGS_HEADER_TITLE->value + enum: StepConfig::values(), + example: StepConfig::SETTINGS_HEADER_TITLE->value ), ], type: 'object'), ], diff --git a/src/Asset/Attribute/Request/CsvExportFolderRequestBody.php b/src/Asset/Attribute/Request/CsvExportFolderRequestBody.php index 877bff95..275b4c07 100644 --- a/src/Asset/Attribute/Request/CsvExportFolderRequestBody.php +++ b/src/Asset/Attribute/Request/CsvExportFolderRequestBody.php @@ -21,7 +21,7 @@ use OpenApi\Attributes\JsonContent; use OpenApi\Attributes\Property; use OpenApi\Attributes\RequestBody; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\Grid\Schema\Column; use Pimcore\Bundle\StudioBackendBundle\Grid\Schema\Filter; @@ -48,12 +48,12 @@ public function __construct() type: 'object' ), new Property(property: 'config', properties: [ - new Property(property: Csv::SETTINGS_DELIMITER->value, type: 'string', example: ';'), + new Property(property: StepConfig::SETTINGS_DELIMITER->value, type: 'string', example: ';'), new Property( - property: Csv::SETTINGS_HEADER->value, + property: StepConfig::SETTINGS_HEADER->value, type: 'enum', - enum: Csv::values(), - example: Csv::SETTINGS_HEADER_TITLE->value + enum: StepConfig::values(), + example: StepConfig::SETTINGS_HEADER_TITLE->value ), ], type: 'object'), ], diff --git a/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvAssetDataCollectionHandler.php b/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvAssetDataCollectionHandler.php index 06c7cdae..9e143134 100644 --- a/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvAssetDataCollectionHandler.php +++ b/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvAssetDataCollectionHandler.php @@ -20,7 +20,7 @@ use Pimcore\Bundle\StaticResolverBundle\Models\User\UserResolverInterface; use Pimcore\Bundle\StudioBackendBundle\Asset\ExecutionEngine\AutomationAction\Messenger\Messages\CsvAssetCollectionMessage; use Pimcore\Bundle\StudioBackendBundle\Asset\Service\AssetServiceInterface; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\AutomationAction\AbstractHandler; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Config; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Trait\HandlerProgressTrait; @@ -37,8 +37,6 @@ final class CsvAssetDataCollectionHandler extends AbstractHandler { use HandlerProgressTrait; - private const ARRAY_TYPE = 'array'; - public function __construct( private readonly PublishServiceInterface $publishService, private readonly UserResolverInterface $userResolver, @@ -69,7 +67,7 @@ public function __invoke(CsvAssetCollectionMessage $message): void )); } - $jobAsset = $this->extractConfigFieldFromJobStepConfig($message, Csv::ASSET_TO_EXPORT->value); + $jobAsset = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::ASSET_TO_EXPORT->value); $asset = $this->assetService->getAssetForUser($jobAsset['id'], $user); @@ -84,7 +82,7 @@ public function __invoke(CsvAssetCollectionMessage $message): void return; } - $columns = $this->extractConfigFieldFromJobStepConfig($message, Csv::JOB_STEP_CONFIG_COLUMNS->value); + $columns = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::CONFIG_COLUMNS->value); $columnCollection = $this->gridService->getConfigurationFromArray( $columns, @@ -100,7 +98,7 @@ public function __invoke(CsvAssetCollectionMessage $message): void ), ]; - $this->updateContextArrayValues($jobRun, Csv::ASSET_EXPORT_DATA->value, $assetData); + $this->updateContextArrayValues($jobRun, StepConfig::ASSET_EXPORT_DATA->value, $assetData); } catch (Exception $e) { $this->abort($this->getAbortData( Config::CSV_DATA_COLLECTION_FAILED_MESSAGE->value, @@ -116,15 +114,15 @@ public function __invoke(CsvAssetCollectionMessage $message): void protected function configureStep(): void { - $this->stepConfiguration->setRequired(Csv::ASSET_TO_EXPORT->value); + $this->stepConfiguration->setRequired(StepConfig::ASSET_TO_EXPORT->value); $this->stepConfiguration->setAllowedTypes( - Csv::ASSET_TO_EXPORT->value, - self::ARRAY_TYPE + StepConfig::ASSET_TO_EXPORT->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); - $this->stepConfiguration->setRequired(Csv::JOB_STEP_CONFIG_COLUMNS->value); + $this->stepConfiguration->setRequired(StepConfig::CONFIG_COLUMNS->value); $this->stepConfiguration->setAllowedTypes( - Csv::JOB_STEP_CONFIG_COLUMNS->value, - self::ARRAY_TYPE + StepConfig::CONFIG_COLUMNS->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); } } diff --git a/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvCreationHandler.php b/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvCreationHandler.php index b4624cc1..4a79ed83 100644 --- a/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvCreationHandler.php +++ b/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvCreationHandler.php @@ -20,7 +20,7 @@ use League\Flysystem\FilesystemException; use Pimcore\Bundle\StudioBackendBundle\Asset\ExecutionEngine\AutomationAction\Messenger\Messages\CsvCreationMessage; use Pimcore\Bundle\StudioBackendBundle\Asset\Service\ExecutionEngine\CsvServiceInterface; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\AutomationAction\AbstractHandler; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Config; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Trait\HandlerProgressTrait; @@ -36,8 +36,6 @@ final class CsvCreationHandler extends AbstractHandler { use HandlerProgressTrait; - private const ARRAY_TYPE = 'array'; - public function __construct( private readonly PublishServiceInterface $publishService, private readonly CsvServiceInterface $csvService, @@ -56,21 +54,21 @@ public function __invoke(CsvCreationMessage $message): void return; } - $columns = $this->extractConfigFieldFromJobStepConfig($message, Csv::JOB_STEP_CONFIG_COLUMNS->value); + $columns = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::CONFIG_COLUMNS->value); - $settings = $this->extractConfigFieldFromJobStepConfig($message, Csv::JOB_STEP_CONFIG_CONFIGURATION->value); + $settings = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::CONFIG_CONFIGURATION->value); $columnCollection = $this->gridService->getConfigurationFromArray( $columns, true ); - if (!isset($jobRun->getContext()[Csv::ASSET_EXPORT_DATA->value])) { + if (!isset($jobRun->getContext()[StepConfig::ASSET_EXPORT_DATA->value])) { $this->abort($this->getAbortData( Config::CSV_CREATION_FAILED_MESSAGE->value, ['message' => 'Asset export data not found in job run context'] )); } - $assetData = $jobRun->getContext()[Csv::ASSET_EXPORT_DATA->value]; + $assetData = $jobRun->getContext()[StepConfig::ASSET_EXPORT_DATA->value]; try { $this->csvService->createCsvFile( @@ -91,15 +89,15 @@ public function __invoke(CsvCreationMessage $message): void protected function configureStep(): void { - $this->stepConfiguration->setRequired(Csv::JOB_STEP_CONFIG_CONFIGURATION->value); + $this->stepConfiguration->setRequired(StepConfig::CONFIG_CONFIGURATION->value); $this->stepConfiguration->setAllowedTypes( - Csv::JOB_STEP_CONFIG_CONFIGURATION->value, - self::ARRAY_TYPE + StepConfig::CONFIG_CONFIGURATION->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); - $this->stepConfiguration->setRequired(Csv::JOB_STEP_CONFIG_COLUMNS->value); + $this->stepConfiguration->setRequired(StepConfig::CONFIG_COLUMNS->value); $this->stepConfiguration->setAllowedTypes( - Csv::JOB_STEP_CONFIG_COLUMNS->value, - self::ARRAY_TYPE + StepConfig::CONFIG_COLUMNS->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); } } diff --git a/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvFolderDataCollectionHandler.php b/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvFolderDataCollectionHandler.php index fb7d1694..b213ee6b 100644 --- a/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvFolderDataCollectionHandler.php +++ b/src/Asset/ExecutionEngine/AutomationAction/Messenger/Handler/CsvFolderDataCollectionHandler.php @@ -19,7 +19,7 @@ use Exception; use Pimcore\Bundle\StaticResolverBundle\Models\User\UserResolverInterface; use Pimcore\Bundle\StudioBackendBundle\Asset\ExecutionEngine\AutomationAction\Messenger\Messages\CsvFolderCollectionMessage; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\DataIndex\Grid\GridSearchInterface; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\AutomationAction\AbstractHandler; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Config; @@ -40,8 +40,6 @@ final class CsvFolderDataCollectionHandler extends AbstractHandler { use HandlerProgressTrait; - private const ARRAY_TYPE = 'array'; - public function __construct( private readonly FilterParameterMapperInterface $filterParameterMapper, private readonly PublishServiceInterface $publishService, @@ -73,11 +71,11 @@ public function __invoke(CsvFolderCollectionMessage $message): void )); } - $jobFolder = $this->extractConfigFieldFromJobStepConfig($message, Csv::FOLDER_TO_EXPORT->value); + $jobFolder = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::FOLDER_TO_EXPORT->value); - $columns = $this->extractConfigFieldFromJobStepConfig($message, Csv::JOB_STEP_CONFIG_COLUMNS->value); + $columns = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::CONFIG_COLUMNS->value); - $filters = $this->extractConfigFieldFromJobStepConfig($message, Csv::JOB_STEP_CONFIG_FILTERS->value); + $filters = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::CONFIG_FILTERS->value); $assets = $this->gridSearch->searchAssetsForUser( new GridParameter( @@ -109,7 +107,7 @@ public function __invoke(CsvFolderCollectionMessage $message): void ), ]; - $this->updateContextArrayValues($jobRun, Csv::ASSET_EXPORT_DATA->value, $assetData); + $this->updateContextArrayValues($jobRun, StepConfig::ASSET_EXPORT_DATA->value, $assetData); } catch (Exception $e) { $this->abort($this->getAbortData( Config::CSV_DATA_COLLECTION_FAILED_MESSAGE->value, @@ -126,20 +124,20 @@ public function __invoke(CsvFolderCollectionMessage $message): void protected function configureStep(): void { - $this->stepConfiguration->setRequired(Csv::FOLDER_TO_EXPORT->value); + $this->stepConfiguration->setRequired(StepConfig::FOLDER_TO_EXPORT->value); $this->stepConfiguration->setAllowedTypes( - Csv::FOLDER_TO_EXPORT->value, - self::ARRAY_TYPE + StepConfig::FOLDER_TO_EXPORT->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); - $this->stepConfiguration->setRequired(Csv::JOB_STEP_CONFIG_COLUMNS->value); + $this->stepConfiguration->setRequired(StepConfig::CONFIG_COLUMNS->value); $this->stepConfiguration->setAllowedTypes( - Csv::JOB_STEP_CONFIG_COLUMNS->value, - self::ARRAY_TYPE + StepConfig::CONFIG_COLUMNS->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); - $this->stepConfiguration->setRequired(Csv::JOB_STEP_CONFIG_FILTERS->value); + $this->stepConfiguration->setRequired(StepConfig::CONFIG_FILTERS->value); $this->stepConfiguration->setAllowedTypes( - Csv::JOB_STEP_CONFIG_FILTERS->value, - self::ARRAY_TYPE + StepConfig::CONFIG_FILTERS->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); } } diff --git a/src/Asset/Service/ExecutionEngine/CsvService.php b/src/Asset/Service/ExecutionEngine/CsvService.php index c7f0e897..55b11dc3 100644 --- a/src/Asset/Service/ExecutionEngine/CsvService.php +++ b/src/Asset/Service/ExecutionEngine/CsvService.php @@ -27,7 +27,7 @@ use Pimcore\Bundle\StudioBackendBundle\Asset\ExecutionEngine\Util\JobSteps; use Pimcore\Bundle\StudioBackendBundle\Asset\MappedParameter\ExportAssetParameter; use Pimcore\Bundle\StudioBackendBundle\Asset\MappedParameter\ExportFolderParameter; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\Element\Service\StorageServiceInterface; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Config; use Pimcore\Bundle\StudioBackendBundle\ExecutionEngine\Util\Jobs; @@ -56,12 +56,12 @@ public function __construct( public function generateCsvFileForAssets(ExportAssetParameter $exportAssetParameter): int { $collectionSettings = [ - Csv::JOB_STEP_CONFIG_COLUMNS->value => $exportAssetParameter->getColumns(), + StepConfig::CONFIG_COLUMNS->value => $exportAssetParameter->getColumns(), ]; $creationSettings = [ - Csv::JOB_STEP_CONFIG_COLUMNS->value => $exportAssetParameter->getColumns(), - Csv::JOB_STEP_CONFIG_CONFIGURATION->value => $exportAssetParameter->getConfig(), + StepConfig::CONFIG_COLUMNS->value => $exportAssetParameter->getColumns(), + StepConfig::CONFIG_CONFIGURATION->value => $exportAssetParameter->getConfig(), ]; return $this->generateCsvFileJob( @@ -75,13 +75,13 @@ public function generateCsvFileForAssets(ExportAssetParameter $exportAssetParame public function generateCsvFileForFolders(ExportFolderParameter $exportFolderParameter): int { $collectionSettings = [ - Csv::JOB_STEP_CONFIG_COLUMNS->value => $exportFolderParameter->getColumns(), - Csv::JOB_STEP_CONFIG_FILTERS->value => $exportFolderParameter->getFilters(), + StepConfig::CONFIG_COLUMNS->value => $exportFolderParameter->getColumns(), + StepConfig::CONFIG_FILTERS->value => $exportFolderParameter->getFilters(), ]; $creationSettings = [ - Csv::JOB_STEP_CONFIG_COLUMNS->value => $exportFolderParameter->getColumns(), - Csv::JOB_STEP_CONFIG_CONFIGURATION->value => $exportFolderParameter->getConfig(), + StepConfig::CONFIG_COLUMNS->value => $exportFolderParameter->getColumns(), + StepConfig::CONFIG_CONFIGURATION->value => $exportFolderParameter->getConfig(), ]; return $this->generateCsvFileJob( @@ -89,7 +89,7 @@ public function generateCsvFileForFolders(ExportFolderParameter $exportFolderPar $collectionSettings, $creationSettings, CsvFolderCollectionMessage::class, - Csv::FOLDER_TO_EXPORT + StepConfig::FOLDER_TO_EXPORT ); } @@ -108,9 +108,9 @@ public function createCsvFile( if ($delimiter === null) { $delimiter = $this->defaultDelimiter; } - $data[] = implode($delimiter, $headers) . Csv::NEW_LINE->value; + $data[] = implode($delimiter, $headers) . StepConfig::NEW_LINE->value; foreach ($assetData as $row) { - $data[] = implode($delimiter, array_map([$this, 'encodeFunc'], $row)) . Csv::NEW_LINE->value; + $data[] = implode($delimiter, array_map([$this, 'encodeFunc'], $row)) . StepConfig::NEW_LINE->value; } $storage->write( @@ -124,7 +124,7 @@ private function generateCsvFileJob( array $collectionSettings, array $creationSettings, string $messageFQCN, - Csv $export = Csv::ASSET_TO_EXPORT + StepConfig $export = StepConfig::ASSET_TO_EXPORT ): int { $jobSteps = [ @@ -163,14 +163,14 @@ private function encodeFunc(?string $value): string private function getHeaders(ColumnCollection $columnCollection, array $settings): array { - $header = $settings[Csv::SETTINGS_HEADER->value] ?? Csv::SETTINGS_HEADER_NO_HEADER->value; - if ($header === Csv::SETTINGS_HEADER_NO_HEADER->value) { + $header = $settings[StepConfig::SETTINGS_HEADER->value] ?? StepConfig::SETTINGS_HEADER_NO_HEADER->value; + if ($header === StepConfig::SETTINGS_HEADER_NO_HEADER->value) { return []; } return $this->gridService->getColumnKeys( $columnCollection, - $header === Csv::SETTINGS_HEADER_NAME->value + $header === StepConfig::SETTINGS_HEADER_NAME->value ); } @@ -178,7 +178,7 @@ private function mapJobSteps( array $elements, array $collectionSettings, string $messageFQCN, - Csv $export + StepConfig $export ): array { return array_map( static fn (ElementDescriptor $asset) => new JobStep( diff --git a/src/Asset/Util/Trait/CsvConfigValidationTrait.php b/src/Asset/Util/Trait/CsvConfigValidationTrait.php index f0b1f668..fc2425d9 100644 --- a/src/Asset/Util/Trait/CsvConfigValidationTrait.php +++ b/src/Asset/Util/Trait/CsvConfigValidationTrait.php @@ -16,7 +16,7 @@ namespace Pimcore\Bundle\StudioBackendBundle\Asset\Util\Trait; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\Exception\Api\InvalidArgumentException; trait CsvConfigValidationTrait @@ -32,7 +32,7 @@ private function validateConfig(): void throw new InvalidArgumentException('No settings provided'); } - if (!isset($this->getConfig()[Csv::SETTINGS_DELIMITER->value])) { + if (!isset($this->getConfig()[StepConfig::SETTINGS_DELIMITER->value])) { throw new InvalidArgumentException('No delimiter provided'); } } diff --git a/src/Element/ExecutionEngine/AutomationAction/Messenger/Handler/PatchFolderHandler.php b/src/Element/ExecutionEngine/AutomationAction/Messenger/Handler/PatchFolderHandler.php index 632ebae6..d5699aa9 100644 --- a/src/Element/ExecutionEngine/AutomationAction/Messenger/Handler/PatchFolderHandler.php +++ b/src/Element/ExecutionEngine/AutomationAction/Messenger/Handler/PatchFolderHandler.php @@ -18,7 +18,7 @@ use Exception; use Pimcore\Bundle\StaticResolverBundle\Models\User\UserResolverInterface; -use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\Csv; +use Pimcore\Bundle\StudioBackendBundle\Asset\Util\Constant\StepConfig; use Pimcore\Bundle\StudioBackendBundle\DataIndex\Grid\GridSearchInterface; use Pimcore\Bundle\StudioBackendBundle\Element\ExecutionEngine\AutomationAction\Messenger\Messages\PatchFolderMessage; use Pimcore\Bundle\StudioBackendBundle\Element\Service\ElementServiceInterface; @@ -75,7 +75,7 @@ public function __invoke(PatchFolderMessage $message): void $folderId = $validatedParameters->getSubject()->getId(); $elementType = $validatedParameters->getSubject()->getType(); - $filters = $this->extractConfigFieldFromJobStepConfig($message, Csv::JOB_STEP_CONFIG_FILTERS->value); + $filters = $this->extractConfigFieldFromJobStepConfig($message, StepConfig::CONFIG_FILTERS->value); $result = $this->gridSearch->searchElementsForUser( $elementType, @@ -127,10 +127,10 @@ public function __invoke(PatchFolderMessage $message): void protected function configureStep(): void { - $this->stepConfiguration->setRequired('filters'); + $this->stepConfiguration->setRequired(StepConfig::CONFIG_FILTERS->value); $this->stepConfiguration->setAllowedTypes( - 'filters', - 'array' + StepConfig::CONFIG_FILTERS->value, + StepConfig::CONFIG_TYPE_ARRAY->value ); } } diff --git a/src/Asset/Util/Constant/Csv.php b/src/ExecutionEngine/Util/StepConfig.php similarity index 85% rename from src/Asset/Util/Constant/Csv.php rename to src/ExecutionEngine/Util/StepConfig.php index aed7a7a2..f33d962c 100644 --- a/src/Asset/Util/Constant/Csv.php +++ b/src/ExecutionEngine/Util/StepConfig.php @@ -18,20 +18,21 @@ use Pimcore\Bundle\StudioBackendBundle\Util\Trait\EnumToValueArrayTrait; -enum Csv: string +enum StepConfig: string { use EnumToValueArrayTrait; case ASSET_TO_EXPORT = 'asset_to_export'; case FOLDER_TO_EXPORT = 'folder_to_export'; case ASSET_EXPORT_DATA = 'asset_export_data'; - case JOB_STEP_CONFIG_CONFIGURATION = 'config'; - case JOB_STEP_CONFIG_COLUMNS = 'columns'; - case JOB_STEP_CONFIG_FILTERS = 'filters'; + case CONFIG_CONFIGURATION = 'config'; + case CONFIG_COLUMNS = 'columns'; + case CONFIG_FILTERS = 'filters'; case SETTINGS_DELIMITER = 'delimiter'; case SETTINGS_HEADER = 'header'; case SETTINGS_HEADER_NO_HEADER = 'no_header'; case SETTINGS_HEADER_TITLE = 'title'; case SETTINGS_HEADER_NAME = 'name'; case NEW_LINE = "\r\n"; + case CONFIG_TYPE_ARRAY = 'array'; }