mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-31 05:31:47 +00:00
Reworked info provider system to merge all provider metadata into a unified DTO
This commit is contained in:
parent
661cc5a052
commit
071ffe322d
39 changed files with 412 additions and 533 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue