Reworked info provider system to merge all provider metadata into a unified DTO

This commit is contained in:
Jan Böhmer 2026-07-26 13:55:27 +02:00
parent 661cc5a052
commit 071ffe322d
39 changed files with 412 additions and 533 deletions

View file

@ -26,28 +26,28 @@ namespace App\Services\InfoProviderSystem\Providers;
/**
* This enum contains all capabilities (which data it can provide) a provider can have.
*/
enum ProviderCapabilities
enum ProviderCapabilities: string
{
/** Basic information about a part, like the name, description, part number, manufacturer etc */
case BASIC;
case BASIC = 'BASIC';
/** Provider can provide a picture for a part */
case PICTURE;
case PICTURE = 'PICTURE';
/** Provider can provide datasheets for a part */
case DATASHEET;
case DATASHEET = 'DATASHEET';
/** Provider can provide prices for a part */
case PRICE;
case PRICE = 'PRICE';
/** Information about the footprint of a part */
case FOOTPRINT;
case FOOTPRINT = 'FOOTPRINT';
/** Provider can provide GTIN for a part */
case GTIN;
case GTIN = 'GTIN';
/** Provider can provide parameters/specifications for a part */
case PARAMETERS;
case PARAMETERS = 'PARAMETERS';
/**
* Get the order index for displaying capabilities in a stable order.