2323
2424namespace App \Services ;
2525
26+ use App \Entity \AssemblySystem \Assembly ;
27+ use App \Entity \AssemblySystem \AssemblyBOMEntry ;
2628use App \Entity \Attachments \Attachment ;
2729use App \Entity \Attachments \AttachmentType ;
2830use App \Entity \InfoProviderSystem \BulkInfoProviderImportJob ;
@@ -57,6 +59,8 @@ enum ElementTypes: string implements TranslatableInterface
5759 case ATTACHMENT_TYPE = "attachment_type " ;
5860 case PROJECT = "project " ;
5961 case PROJECT_BOM_ENTRY = "project_bom_entry " ;
62+ case ASSEMBLY = "assembly " ;
63+ case ASSEMBLY_BOM_ENTRY = "assembly_bom_entry " ;
6064 case FOOTPRINT = "footprint " ;
6165 case MANUFACTURER = "manufacturer " ;
6266 case MEASUREMENT_UNIT = "measurement_unit " ;
@@ -83,6 +87,8 @@ enum ElementTypes: string implements TranslatableInterface
8387 AttachmentType::class => self ::ATTACHMENT_TYPE ,
8488 Project::class => self ::PROJECT ,
8589 ProjectBOMEntry::class => self ::PROJECT_BOM_ENTRY ,
90+ Assembly::class => self ::ASSEMBLY ,
91+ AssemblyBOMEntry::class => self ::ASSEMBLY_BOM_ENTRY ,
8692 Footprint::class => self ::FOOTPRINT ,
8793 Manufacturer::class => self ::MANUFACTURER ,
8894 MeasurementUnit::class => self ::MEASUREMENT_UNIT ,
@@ -114,6 +120,8 @@ public function getDefaultLabelKey(): string
114120 self ::ATTACHMENT_TYPE => 'attachment_type.label ' ,
115121 self ::PROJECT => 'project.label ' ,
116122 self ::PROJECT_BOM_ENTRY => 'project_bom_entry.label ' ,
123+ self ::ASSEMBLY => 'assembly.label ' ,
124+ self ::ASSEMBLY_BOM_ENTRY => 'assembly_bom_entry.label ' ,
117125 self ::FOOTPRINT => 'footprint.label ' ,
118126 self ::MANUFACTURER => 'manufacturer.label ' ,
119127 self ::MEASUREMENT_UNIT => 'measurement_unit.label ' ,
@@ -143,6 +151,8 @@ public function getDefaultPluralLabelKey(): string
143151 self ::ATTACHMENT_TYPE => 'attachment_type.labelp ' ,
144152 self ::PROJECT => 'project.labelp ' ,
145153 self ::PROJECT_BOM_ENTRY => 'project_bom_entry.labelp ' ,
154+ self ::ASSEMBLY => 'assembly.labelp ' ,
155+ self ::ASSEMBLY_BOM_ENTRY => 'assembly_bom_entry.labelp ' ,
146156 self ::FOOTPRINT => 'footprint.labelp ' ,
147157 self ::MANUFACTURER => 'manufacturer.labelp ' ,
148158 self ::MEASUREMENT_UNIT => 'measurement_unit.labelp ' ,
0 commit comments