@carbonbox/domain 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.js +28 -0
  2. package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.js +28 -0
  3. package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.js +24 -0
  4. package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.js +24 -0
  5. package/build/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.js +24 -0
  6. package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.js +24 -0
  7. package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.js +30 -2
  8. package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.js +32 -1
  9. package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.js +32 -1
  10. package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.js +24 -0
  11. package/build/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.js +24 -0
  12. package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.js +30 -2
  13. package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageId.js +30 -2
  14. package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/subsegments/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentId.js +34 -3
  15. package/build/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.js +24 -0
  16. package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.js +29 -1
  17. package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.js +32 -1
  18. package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.js +32 -1
  19. package/build/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.js +29 -1
  20. package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.js +29 -1
  21. package/build/carbonbox/company-resources/events/domain/value-objects/EventId.js +28 -0
  22. package/build/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.js +28 -0
  23. package/build/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.js +29 -1
  24. package/build/carbonbox/company-resources/products/domain/value-objects/ProductId.js +29 -1
  25. package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.js +28 -0
  26. package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.js +28 -0
  27. package/build/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.js +28 -0
  28. package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.js +28 -0
  29. package/build/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.js +28 -0
  30. package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.js +28 -0
  31. package/build/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.js +28 -0
  32. package/build/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.js +28 -0
  33. package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.js +28 -0
  34. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.js +28 -0
  35. package/build/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.js +28 -0
  36. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +28 -0
  37. package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.js +28 -0
  38. package/build/carbonbox/shared/domain/enums/SemanticUuidPrefix.js +16 -0
  39. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +1 -1
  40. package/build/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.js +31 -0
  41. package/build/carbonbox/shared/domain/value-objects/UserId.js +0 -5
  42. package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.js +28 -0
  43. package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.js +28 -0
  44. package/build/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.js +28 -0
  45. package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.js +28 -0
  46. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.d.ts +5 -0
  47. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.d.ts.map +1 -1
  48. package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.d.ts +5 -0
  49. package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.d.ts.map +1 -1
  50. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.d.ts +2 -0
  51. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.d.ts.map +1 -1
  52. package/build/types/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.d.ts +2 -0
  53. package/build/types/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.d.ts.map +1 -1
  54. package/build/types/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.d.ts +2 -0
  55. package/build/types/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.d.ts.map +1 -1
  56. package/build/types/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.d.ts +2 -0
  57. package/build/types/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.d.ts.map +1 -1
  58. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.d.ts +5 -0
  59. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.d.ts.map +1 -1
  60. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.d.ts +5 -0
  61. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.d.ts.map +1 -1
  62. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.d.ts +5 -0
  63. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.d.ts.map +1 -1
  64. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.d.ts +2 -0
  65. package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.d.ts.map +1 -1
  66. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.d.ts +2 -0
  67. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.d.ts.map +1 -1
  68. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.d.ts +5 -0
  69. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.d.ts.map +1 -1
  70. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageId.d.ts +5 -0
  71. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageId.d.ts.map +1 -1
  72. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/subsegments/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentId.d.ts +7 -2
  73. package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/subsegments/domain/value-objects/EventEditionConfigurationCarbonFootprintSubsegmentId.d.ts.map +1 -1
  74. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.d.ts +2 -0
  75. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.d.ts.map +1 -1
  76. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.d.ts +5 -0
  77. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.d.ts.map +1 -1
  78. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.d.ts +5 -0
  79. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.d.ts.map +1 -1
  80. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.d.ts +5 -0
  81. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.d.ts.map +1 -1
  82. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.d.ts +5 -0
  83. package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.d.ts.map +1 -1
  84. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationId.d.ts +1 -1
  85. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationId.d.ts.map +1 -1
  86. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.d.ts +5 -0
  87. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.d.ts.map +1 -1
  88. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSegmentId.d.ts +1 -1
  89. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSegmentId.d.ts.map +1 -1
  90. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentCode.d.ts +1 -1
  91. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentCode.d.ts.map +1 -1
  92. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentId.d.ts +1 -1
  93. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentId.d.ts.map +1 -1
  94. package/build/types/carbonbox/company-resources/events/domain/value-objects/EventId.d.ts +5 -0
  95. package/build/types/carbonbox/company-resources/events/domain/value-objects/EventId.d.ts.map +1 -1
  96. package/build/types/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.d.ts +5 -0
  97. package/build/types/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.d.ts.map +1 -1
  98. package/build/types/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.d.ts +5 -0
  99. package/build/types/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.d.ts.map +1 -1
  100. package/build/types/carbonbox/company-resources/products/domain/value-objects/ProductId.d.ts +5 -0
  101. package/build/types/carbonbox/company-resources/products/domain/value-objects/ProductId.d.ts.map +1 -1
  102. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.d.ts +5 -0
  103. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.d.ts.map +1 -1
  104. package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.d.ts +5 -0
  105. package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.d.ts.map +1 -1
  106. package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.d.ts +5 -0
  107. package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.d.ts.map +1 -1
  108. package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.d.ts +5 -0
  109. package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.d.ts.map +1 -1
  110. package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.d.ts +5 -0
  111. package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.d.ts.map +1 -1
  112. package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.d.ts +5 -0
  113. package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.d.ts.map +1 -1
  114. package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.d.ts +5 -0
  115. package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.d.ts.map +1 -1
  116. package/build/types/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.d.ts +5 -0
  117. package/build/types/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.d.ts.map +1 -1
  118. package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.d.ts +5 -0
  119. package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.d.ts.map +1 -1
  120. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.d.ts +5 -0
  121. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.d.ts.map +1 -1
  122. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.d.ts +5 -0
  123. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.d.ts.map +1 -1
  124. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts +5 -0
  125. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts.map +1 -1
  126. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.d.ts +5 -0
  127. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.d.ts.map +1 -1
  128. package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts +15 -0
  129. package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts.map +1 -1
  130. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
  131. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts +20 -0
  132. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts.map +1 -0
  133. package/build/types/carbonbox/shared/domain/value-objects/UserId.d.ts +0 -4
  134. package/build/types/carbonbox/shared/domain/value-objects/UserId.d.ts.map +1 -1
  135. package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.d.ts +5 -0
  136. package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.d.ts.map +1 -1
  137. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.d.ts +5 -0
  138. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.d.ts.map +1 -1
  139. package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.d.ts +5 -0
  140. package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.d.ts.map +1 -1
  141. package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.d.ts +5 -0
  142. package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.d.ts.map +1 -1
  143. package/package.json +1 -1
  144. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.js +0 -2
  145. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.js +0 -263
  146. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.js +0 -20
  147. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.js +0 -9
  148. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.js +0 -10
  149. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.js +0 -19
  150. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.js +0 -19
  151. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.js +0 -19
  152. package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.js +0 -2
  153. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.js +0 -2
  154. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.js +0 -2
  155. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.js +0 -131
  156. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.js +0 -22
  157. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.js +0 -22
  158. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.js +0 -140
  159. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.js +0 -243
  160. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.js +0 -24
  161. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.js +0 -26
  162. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.js +0 -21
  163. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.js +0 -23
  164. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.js +0 -212
  165. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.js +0 -193
  166. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.js +0 -22
  167. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.js +0 -22
  168. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.js +0 -24
  169. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.js +0 -22
  170. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.js +0 -22
  171. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.js +0 -22
  172. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.js +0 -22
  173. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.js +0 -22
  174. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.js +0 -22
  175. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.js +0 -246
  176. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.js +0 -23
  177. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.js +0 -246
  178. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.js +0 -221
  179. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.js +0 -235
  180. package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.js +0 -19
  181. package/build/carbonbox/shared/domain/services/DateTimeFormattingDomainService.js +0 -172
  182. package/build/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.js +0 -2
  183. package/build/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.js +0 -235
  184. package/build/carbonbox/shared/domain/types/AllPermissions.js +0 -2
  185. package/build/carbonbox/shared/domain/types/AllPermissionsPrimitives.js +0 -2
  186. package/build/carbonbox/shared/domain/types/ServiceReference.js +0 -2
  187. package/build/carbonbox/shared/domain/types/ServiceReferencePrimitives.js +0 -2
  188. package/build/carbonbox/shared/domain/types/UserEmailProps.js +0 -2
  189. package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +0 -301
  190. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.js +0 -2
  191. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.js +0 -2
  192. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.js +0 -2
  193. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.js +0 -2
  194. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.js +0 -2
  195. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.js +0 -2
  196. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.js +0 -2
  197. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.js +0 -2
  198. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.js +0 -2
  199. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.js +0 -2
  200. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.js +0 -2
  201. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.js +0 -2
  202. package/build/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.js +0 -10
  203. package/build/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.js +0 -18
  204. package/build/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.js +0 -2
  205. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts +0 -52
  206. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts.map +0 -1
  207. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts +0 -60
  208. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts.map +0 -1
  209. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts +0 -17
  210. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts.map +0 -1
  211. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts +0 -6
  212. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts.map +0 -1
  213. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts +0 -7
  214. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts.map +0 -1
  215. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts +0 -8
  216. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts.map +0 -1
  217. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts +0 -8
  218. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts.map +0 -1
  219. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts +0 -8
  220. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts.map +0 -1
  221. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +0 -22
  222. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +0 -1
  223. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts +0 -35
  224. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts.map +0 -1
  225. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts +0 -35
  226. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts.map +0 -1
  227. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts +0 -71
  228. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts.map +0 -1
  229. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts +0 -9
  230. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts.map +0 -1
  231. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts +0 -9
  232. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts.map +0 -1
  233. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts +0 -54
  234. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts.map +0 -1
  235. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts +0 -123
  236. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts.map +0 -1
  237. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts +0 -9
  238. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts.map +0 -1
  239. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts +0 -11
  240. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts.map +0 -1
  241. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts +0 -9
  242. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts.map +0 -1
  243. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts +0 -9
  244. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts.map +0 -1
  245. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts +0 -92
  246. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts.map +0 -1
  247. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts +0 -83
  248. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts.map +0 -1
  249. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts +0 -9
  250. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts.map +0 -1
  251. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts +0 -9
  252. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts.map +0 -1
  253. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts +0 -9
  254. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts.map +0 -1
  255. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts +0 -9
  256. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts.map +0 -1
  257. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts +0 -9
  258. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts.map +0 -1
  259. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts +0 -9
  260. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts.map +0 -1
  261. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts +0 -9
  262. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts.map +0 -1
  263. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts +0 -9
  264. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts.map +0 -1
  265. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts +0 -9
  266. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts.map +0 -1
  267. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts +0 -99
  268. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts.map +0 -1
  269. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts +0 -9
  270. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts.map +0 -1
  271. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts +0 -119
  272. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts.map +0 -1
  273. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts +0 -110
  274. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts.map +0 -1
  275. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts +0 -111
  276. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts.map +0 -1
  277. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts +0 -8
  278. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts.map +0 -1
  279. package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts +0 -95
  280. package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts.map +0 -1
  281. package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts +0 -85
  282. package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts.map +0 -1
  283. package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts +0 -67
  284. package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts.map +0 -1
  285. package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts +0 -12
  286. package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts.map +0 -1
  287. package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts +0 -12
  288. package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts.map +0 -1
  289. package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts +0 -8
  290. package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts.map +0 -1
  291. package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts +0 -8
  292. package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts.map +0 -1
  293. package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts +0 -5
  294. package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts.map +0 -1
  295. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +0 -134
  296. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +0 -1
  297. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts +0 -3
  298. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts.map +0 -1
  299. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts +0 -3
  300. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts.map +0 -1
  301. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts +0 -3
  302. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts.map +0 -1
  303. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts +0 -3
  304. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts.map +0 -1
  305. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts +0 -3
  306. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts.map +0 -1
  307. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts +0 -3
  308. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts.map +0 -1
  309. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts +0 -3
  310. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts.map +0 -1
  311. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts +0 -3
  312. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts.map +0 -1
  313. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts +0 -3
  314. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts.map +0 -1
  315. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts +0 -3
  316. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts.map +0 -1
  317. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts +0 -3
  318. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts.map +0 -1
  319. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts +0 -3
  320. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts.map +0 -1
  321. package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts +0 -7
  322. package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts.map +0 -1
  323. package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts +0 -7
  324. package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts.map +0 -1
  325. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts +0 -10
  326. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts.map +0 -1
@@ -1,140 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceBasePricePercentage = void 0;
4
- const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
- class ServiceBasePricePercentage extends NullableNumeric_1.NullableNumeric {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceBasePricePercentage.PROPERTY_NAME, ServiceBasePricePercentage.PERCENTAGE_OPTIONS);
8
- }
9
- static create(value) {
10
- return new ServiceBasePricePercentage(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceBasePricePercentage(value, true);
15
- }
16
- /**
17
- * Verifica si representa un incremento en el precio.
18
- */
19
- isIncrease() {
20
- if (!this.hasValue())
21
- return null;
22
- return this.value > 0;
23
- }
24
- /**
25
- * Verifica si representa un descuento en el precio.
26
- */
27
- isDiscount() {
28
- if (!this.hasValue())
29
- return null;
30
- return this.value < 0;
31
- }
32
- /**
33
- * Verifica si no hay cambio en el precio.
34
- */
35
- isNeutral() {
36
- if (!this.hasValue())
37
- return null;
38
- return this.value === 0;
39
- }
40
- /**
41
- * Verifica si es un incremento significativo (>= 50%).
42
- */
43
- isSignificantIncrease() {
44
- if (!this.hasValue())
45
- return null;
46
- return this.value >= 50;
47
- }
48
- /**
49
- * Verifica si es un descuento significativo (<= -25%).
50
- */
51
- isSignificantDiscount() {
52
- if (!this.hasValue())
53
- return null;
54
- return this.value <= -25;
55
- }
56
- /**
57
- * Obtiene el porcentaje formateado como string.
58
- */
59
- getFormattedPercentage() {
60
- if (!this.hasValue())
61
- return null;
62
- const sign = this.value >= 0 ? '+' : '';
63
- return `${sign}${this.value.toFixed(2)}%`;
64
- }
65
- /**
66
- * Calcula el precio final basado en un precio base.
67
- */
68
- calculateFinalPrice(basePrice) {
69
- if (!this.hasValue())
70
- return null;
71
- if (basePrice < 0)
72
- return null; // No permitir precios base negativos
73
- const multiplier = 1 + (this.value / 100);
74
- return basePrice * multiplier;
75
- }
76
- /**
77
- * Obtiene el factor multiplicador (1 + porcentaje/100).
78
- */
79
- getMultiplier() {
80
- if (!this.hasValue())
81
- return null;
82
- return 1 + (this.value / 100);
83
- }
84
- /**
85
- * Obtiene una descripción del impacto del porcentaje.
86
- */
87
- getImpactDescription() {
88
- if (!this.hasValue())
89
- return null;
90
- const value = this.value;
91
- if (value === 0)
92
- return 'Sin cambio en el precio';
93
- if (value > 0) {
94
- if (value >= 100)
95
- return 'Incremento muy alto';
96
- if (value >= 50)
97
- return 'Incremento alto';
98
- if (value >= 25)
99
- return 'Incremento moderado';
100
- return 'Incremento bajo';
101
- }
102
- if (value <= -75)
103
- return 'Descuento muy alto';
104
- if (value <= -50)
105
- return 'Descuento alto';
106
- if (value <= -25)
107
- return 'Descuento moderado';
108
- return 'Descuento bajo';
109
- }
110
- /**
111
- * Verifica si el porcentaje está dentro de un rango típico de servicios.
112
- */
113
- isWithinTypicalRange() {
114
- if (!this.hasValue())
115
- return null;
116
- // Rango típico: entre -50% (descuento máximo común) y +200% (incremento máximo común)
117
- return this.value >= -50 && this.value <= 200;
118
- }
119
- toPrimitives() {
120
- return this.value;
121
- }
122
- /**
123
- * Representación como string descriptiva.
124
- */
125
- toString() {
126
- if (!this.hasValue())
127
- return 'No percentage defined';
128
- return this.getFormattedPercentage() || 'Invalid percentage';
129
- }
130
- }
131
- exports.ServiceBasePricePercentage = ServiceBasePricePercentage;
132
- ServiceBasePricePercentage.PROPERTY_NAME = 'basePricePercentage';
133
- ServiceBasePricePercentage.PERCENTAGE_OPTIONS = {
134
- allowNegative: true, // Permitir descuentos (valores negativos)
135
- allowZero: true, // Permitir 0% (sin cambio en el precio)
136
- allowDecimals: true, // Permitir decimales para precisión en porcentajes
137
- maxDecimalPlaces: 2, // Máximo 2 decimales para porcentajes (ej: 25.50%)
138
- minValue: -100, // Mínimo -100% (descuento total)
139
- maxValue: 1000, // Máximo 1000% (incremento masivo para casos excepcionales)
140
- };
@@ -1,243 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCategory = void 0;
4
- const String_1 = require("../../../../shared/domain/value-objects/String");
5
- const ServiceCategory_1 = require("../enums/ServiceCategory");
6
- const InvalidServiceCategoryError_1 = require("../exceptions/InvalidServiceCategoryError");
7
- class ServiceCategory extends String_1.String {
8
- constructor(value, skipDomainValidation) {
9
- super(value, skipDomainValidation, ServiceCategory.PROPERTY_NAME);
10
- if (skipDomainValidation === false) {
11
- this.validateServiceCategory(value);
12
- }
13
- }
14
- static create(value) {
15
- String_1.String.guardAgainstEmptyValue(value, ServiceCategory.PROPERTY_NAME);
16
- String_1.String.guardAgainstInvalidType(value, ServiceCategory.PROPERTY_NAME);
17
- return new ServiceCategory(value, false);
18
- }
19
- static fromPrimitives(primitive) {
20
- const value = primitive;
21
- return new ServiceCategory(value, true);
22
- }
23
- /**
24
- * Valida que el valor sea una categoría de servicio válida.
25
- */
26
- validateServiceCategory(value) {
27
- if (!ServiceCategory.VALID_SERVICE_CATEGORIES.includes(value)) {
28
- throw InvalidServiceCategoryError_1.InvalidServiceCategoryError.create(value, ServiceCategory.VALID_SERVICE_CATEGORIES);
29
- }
30
- }
31
- /**
32
- * Verifica si es una categoría de huella de carbono.
33
- */
34
- isCarbonFootprintCategory() {
35
- return this.isCorporateFootprint() || this.isProductFootprint() || this.isEventFootprint();
36
- }
37
- /**
38
- * Verifica si es huella corporativa.
39
- */
40
- isCorporateFootprint() {
41
- return this.value === ServiceCategory_1.ServiceCategory.CORPORATE_FOOTPRINT;
42
- }
43
- /**
44
- * Verifica si es huella de producto.
45
- */
46
- isProductFootprint() {
47
- return this.value === ServiceCategory_1.ServiceCategory.PRODUCT_FOOTPRINT;
48
- }
49
- /**
50
- * Verifica si es huella de evento.
51
- */
52
- isEventFootprint() {
53
- return this.value === ServiceCategory_1.ServiceCategory.EVENT_FOOTPRINT;
54
- }
55
- /**
56
- * Verifica si es soporte experto.
57
- */
58
- isExpertSupport() {
59
- return this.value === ServiceCategory_1.ServiceCategory.EXPERT_SUPPORT;
60
- }
61
- /**
62
- * Verifica si es entrenamiento.
63
- */
64
- isTraining() {
65
- return this.value === ServiceCategory_1.ServiceCategory.TRAINING;
66
- }
67
- /**
68
- * Verifica si es soporte de auditoría.
69
- */
70
- isAuditSupport() {
71
- return this.value === ServiceCategory_1.ServiceCategory.AUDIT_SUPPORT;
72
- }
73
- /**
74
- * Verifica si es validación de datos.
75
- */
76
- isDataValidation() {
77
- return this.value === ServiceCategory_1.ServiceCategory.DATA_VALIDATION;
78
- }
79
- /**
80
- * Verifica si es reportería.
81
- */
82
- isReporting() {
83
- return this.value === ServiceCategory_1.ServiceCategory.REPORTING;
84
- }
85
- /**
86
- * Verifica si es lectura de documentos.
87
- */
88
- isDocumentReading() {
89
- return this.value === ServiceCategory_1.ServiceCategory.DOCUMENT_READING;
90
- }
91
- /**
92
- * Verifica si es comparación sectorial.
93
- */
94
- isSectoralComparison() {
95
- return this.value === ServiceCategory_1.ServiceCategory.SECTORAL_COMPARISON;
96
- }
97
- /**
98
- * Verifica si es usuarios adicionales.
99
- */
100
- isAdditionalUsers() {
101
- return this.value === ServiceCategory_1.ServiceCategory.ADDITIONAL_USERS;
102
- }
103
- /**
104
- * Verifica si es CarbonBox Academy.
105
- */
106
- isCarbonBoxAcademy() {
107
- return this.value === ServiceCategory_1.ServiceCategory.CARBONBOX_ACADEMY;
108
- }
109
- /**
110
- * Verifica si es indicadores ESG.
111
- */
112
- isESGIndicators() {
113
- return this.value === ServiceCategory_1.ServiceCategory.ESG_INDICATORS;
114
- }
115
- /**
116
- * Verifica si es compensación de carbono.
117
- */
118
- isCarbonOffsetting() {
119
- return this.value === ServiceCategory_1.ServiceCategory.CARBON_OFFSETTING;
120
- }
121
- /**
122
- * Verifica si es una categoría de soporte técnico.
123
- */
124
- isTechnicalSupportCategory() {
125
- return this.isExpertSupport() || this.isAuditSupport() || this.isDataValidation();
126
- }
127
- /**
128
- * Verifica si es una categoría de características de plataforma.
129
- */
130
- isPlatformFeatureCategory() {
131
- return this.isDocumentReading() || this.isSectoralComparison() || this.isCarbonBoxAcademy() || this.isESGIndicators();
132
- }
133
- /**
134
- * Verifica si es una categoría de extensión de usuarios.
135
- */
136
- isUserExtensionCategory() {
137
- return this.isAdditionalUsers();
138
- }
139
- /**
140
- * Verifica si es una categoría de sostenibilidad avanzada.
141
- */
142
- isAdvancedSustainabilityCategory() {
143
- return this.isESGIndicators() || this.isCarbonOffsetting();
144
- }
145
- /**
146
- * Obtiene las categorías de servicio válidas.
147
- */
148
- static getValidServiceCategories() {
149
- return Object.freeze([...ServiceCategory.VALID_SERVICE_CATEGORIES]);
150
- }
151
- /**
152
- * Verifica si un valor es una categoría de servicio válida.
153
- */
154
- static isValidServiceCategory(value) {
155
- return ServiceCategory.VALID_SERVICE_CATEGORIES.includes(value);
156
- }
157
- /**
158
- * Obtiene el tipo de categoría principal.
159
- */
160
- getCategoryType() {
161
- if (this.isCarbonFootprintCategory())
162
- return 'footprint';
163
- if (this.isTechnicalSupportCategory() || this.isTraining())
164
- return 'support';
165
- if (this.isPlatformFeatureCategory())
166
- return 'platform';
167
- if (this.isUserExtensionCategory())
168
- return 'user_extension';
169
- if (this.isAdvancedSustainabilityCategory())
170
- return 'sustainability';
171
- if (this.isReporting())
172
- return 'reporting';
173
- // Este caso nunca debería ocurrir debido a las validaciones
174
- return 'support'; // Valor por defecto
175
- }
176
- /**
177
- * Obtiene la descripción de la categoría.
178
- */
179
- getDescription() {
180
- const descriptions = {
181
- [ServiceCategory_1.ServiceCategory.CORPORATE_FOOTPRINT]: 'Servicios de huella de carbono corporativa',
182
- [ServiceCategory_1.ServiceCategory.PRODUCT_FOOTPRINT]: 'Servicios de huella de carbono de producto',
183
- [ServiceCategory_1.ServiceCategory.EVENT_FOOTPRINT]: 'Servicios de huella de carbono de eventos',
184
- [ServiceCategory_1.ServiceCategory.EXPERT_SUPPORT]: 'Soporte especializado de expertos',
185
- [ServiceCategory_1.ServiceCategory.TRAINING]: 'Servicios de capacitación y entrenamiento',
186
- [ServiceCategory_1.ServiceCategory.AUDIT_SUPPORT]: 'Soporte para procesos de auditoría',
187
- [ServiceCategory_1.ServiceCategory.DATA_VALIDATION]: 'Validación y verificación de datos',
188
- [ServiceCategory_1.ServiceCategory.REPORTING]: 'Servicios de reportería y documentación',
189
- [ServiceCategory_1.ServiceCategory.DOCUMENT_READING]: 'Lectura y análisis de documentos',
190
- [ServiceCategory_1.ServiceCategory.SECTORAL_COMPARISON]: 'Comparación sectorial de métricas',
191
- [ServiceCategory_1.ServiceCategory.ADDITIONAL_USERS]: 'Usuarios adicionales en la plataforma',
192
- [ServiceCategory_1.ServiceCategory.CARBONBOX_ACADEMY]: 'Acceso a CarbonBox Academy',
193
- [ServiceCategory_1.ServiceCategory.ESG_INDICATORS]: 'Indicadores ESG avanzados',
194
- [ServiceCategory_1.ServiceCategory.CARBON_OFFSETTING]: 'Servicios de compensación de carbono',
195
- };
196
- return descriptions[this.value] || this.value;
197
- }
198
- /**
199
- * Obtiene las características de la categoría.
200
- */
201
- getCharacteristics() {
202
- return {
203
- isCarbonFootprintCategory: this.isCarbonFootprintCategory(),
204
- isTechnicalSupportCategory: this.isTechnicalSupportCategory(),
205
- isPlatformFeatureCategory: this.isPlatformFeatureCategory(),
206
- isUserExtensionCategory: this.isUserExtensionCategory(),
207
- isAdvancedSustainabilityCategory: this.isAdvancedSustainabilityCategory(),
208
- categoryType: this.getCategoryType(),
209
- };
210
- }
211
- toPrimitives() {
212
- return this.value;
213
- }
214
- toEnum() {
215
- return this.value;
216
- }
217
- /**
218
- * Representación como string descriptiva.
219
- */
220
- toString() {
221
- const categoryNames = {
222
- [ServiceCategory_1.ServiceCategory.CORPORATE_FOOTPRINT]: 'Huella Corporativa',
223
- [ServiceCategory_1.ServiceCategory.PRODUCT_FOOTPRINT]: 'Huella de Producto',
224
- [ServiceCategory_1.ServiceCategory.EVENT_FOOTPRINT]: 'Huella de Evento',
225
- [ServiceCategory_1.ServiceCategory.EXPERT_SUPPORT]: 'Soporte Experto',
226
- [ServiceCategory_1.ServiceCategory.TRAINING]: 'Entrenamiento',
227
- [ServiceCategory_1.ServiceCategory.AUDIT_SUPPORT]: 'Soporte de Auditoría',
228
- [ServiceCategory_1.ServiceCategory.DATA_VALIDATION]: 'Validación de Datos',
229
- [ServiceCategory_1.ServiceCategory.REPORTING]: 'Reportería',
230
- [ServiceCategory_1.ServiceCategory.DOCUMENT_READING]: 'Lectura de Documentos',
231
- [ServiceCategory_1.ServiceCategory.SECTORAL_COMPARISON]: 'Comparación Sectorial',
232
- [ServiceCategory_1.ServiceCategory.ADDITIONAL_USERS]: 'Usuarios Adicionales',
233
- [ServiceCategory_1.ServiceCategory.CARBONBOX_ACADEMY]: 'CarbonBox Academy',
234
- [ServiceCategory_1.ServiceCategory.ESG_INDICATORS]: 'Indicadores ESG',
235
- [ServiceCategory_1.ServiceCategory.CARBON_OFFSETTING]: 'Compensación de Carbono',
236
- };
237
- return categoryNames[this.value] || this.value;
238
- }
239
- }
240
- exports.ServiceCategory = ServiceCategory;
241
- ServiceCategory.PROPERTY_NAME = 'category';
242
- // Categorías de servicio válidas
243
- ServiceCategory.VALID_SERVICE_CATEGORIES = Object.values(ServiceCategory_1.ServiceCategory);
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCode = void 0;
4
- const Code_1 = require("../../../../shared/domain/value-objects/Code");
5
- class ServiceCode extends Code_1.Code {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceCode.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Code_1.Code.guardAgainstEmptyValue(value, ServiceCode.PROPERTY_NAME);
11
- Code_1.Code.guardAgainstInvalidType(value, ServiceCode.PROPERTY_NAME);
12
- Code_1.Code.guardAgainstInvalidCode(value, ServiceCode.PROPERTY_NAME);
13
- return new ServiceCode(value, false);
14
- }
15
- static fromPrimitives(primitive) {
16
- const value = primitive;
17
- return new ServiceCode(value, true);
18
- }
19
- toPrimitives() {
20
- return this.value;
21
- }
22
- }
23
- exports.ServiceCode = ServiceCode;
24
- ServiceCode.PROPERTY_NAME = 'code';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCreatedByStakeholder = void 0;
4
- const StakeholderReference_1 = require("../../../../shared/domain/value-objects/StakeholderReference");
5
- class ServiceCreatedByStakeholder extends StakeholderReference_1.StakeholderReference {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceCreatedByStakeholder.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- return new ServiceCreatedByStakeholder(value, false);
11
- }
12
- static fromPrimitives(primitives) {
13
- const value = {
14
- id: primitives.id,
15
- displayName: primitives.displayName,
16
- roleType: primitives.roleType,
17
- taxIdentification: primitives.taxIdentification,
18
- };
19
- return new ServiceCreatedByStakeholder(value, true);
20
- }
21
- toPrimitives() {
22
- return this.value;
23
- }
24
- }
25
- exports.ServiceCreatedByStakeholder = ServiceCreatedByStakeholder;
26
- ServiceCreatedByStakeholder.PROPERTY_NAME = 'createdByStakeholder';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceDependsOnServiceCode = void 0;
4
- const NullableCode_1 = require("../../../../shared/domain/value-objects/NullableCode");
5
- class ServiceDependsOnServiceCode extends NullableCode_1.NullableCode {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceDependsOnServiceCode.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- return new ServiceDependsOnServiceCode(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceDependsOnServiceCode(value, true);
15
- }
16
- toPrimitives() {
17
- return this.value;
18
- }
19
- }
20
- exports.ServiceDependsOnServiceCode = ServiceDependsOnServiceCode;
21
- ServiceDependsOnServiceCode.PROPERTY_NAME = 'dependsOnServiceCode';
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceDescription = void 0;
4
- const String_1 = require("../../../../shared/domain/value-objects/String");
5
- class ServiceDescription extends String_1.String {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceDescription.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- String_1.String.guardAgainstEmptyValue(value, ServiceDescription.PROPERTY_NAME);
11
- String_1.String.guardAgainstInvalidType(value, ServiceDescription.PROPERTY_NAME);
12
- return new ServiceDescription(value, false);
13
- }
14
- static fromPrimitives(primitive) {
15
- const value = primitive;
16
- return new ServiceDescription(value, true);
17
- }
18
- toPrimitives() {
19
- return this.value;
20
- }
21
- }
22
- exports.ServiceDescription = ServiceDescription;
23
- ServiceDescription.PROPERTY_NAME = 'description';
@@ -1,212 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceExpertDedicationLevel = void 0;
4
- const NullableString_1 = require("../../../../shared/domain/value-objects/NullableString");
5
- const ExpertDedicationLevel_1 = require("../enums/ExpertDedicationLevel");
6
- const InvalidExpertDedicationLevelError_1 = require("../exceptions/InvalidExpertDedicationLevelError");
7
- class ServiceExpertDedicationLevel extends NullableString_1.NullableString {
8
- constructor(value, skipDomainValidation) {
9
- super(value, skipDomainValidation, ServiceExpertDedicationLevel.PROPERTY_NAME);
10
- if (skipDomainValidation === false) {
11
- this.validateExpertDedicationLevel(value);
12
- }
13
- }
14
- static create(value) {
15
- return new ServiceExpertDedicationLevel(value, false);
16
- }
17
- static fromPrimitives(primitive) {
18
- const value = primitive;
19
- return new ServiceExpertDedicationLevel(value, true);
20
- }
21
- /**
22
- * Valida que el valor sea un nivel de dedicación de experto válido cuando no es null.
23
- */
24
- validateExpertDedicationLevel(value) {
25
- if (value !== null && !ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS.includes(value)) {
26
- throw InvalidExpertDedicationLevelError_1.InvalidExpertDedicationLevelError.create(value, ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS);
27
- }
28
- }
29
- /**
30
- * Verifica si es dedicación completa (full time).
31
- */
32
- isFullTime() {
33
- if (!this.hasValue())
34
- return null;
35
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME;
36
- }
37
- /**
38
- * Verifica si es dedicación de 80 horas.
39
- */
40
- isEightyHours() {
41
- if (!this.hasValue())
42
- return null;
43
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS;
44
- }
45
- /**
46
- * Verifica si es dedicación de 40 horas.
47
- */
48
- isFortyHours() {
49
- if (!this.hasValue())
50
- return null;
51
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS;
52
- }
53
- /**
54
- * Verifica si es dedicación de 20 horas.
55
- */
56
- isTwentyHours() {
57
- if (!this.hasValue())
58
- return null;
59
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS;
60
- }
61
- /**
62
- * Verifica si es una dedicación alta (full time o 80 horas).
63
- */
64
- isHighDedication() {
65
- if (!this.hasValue())
66
- return null;
67
- return this.isFullTime() || this.isEightyHours();
68
- }
69
- /**
70
- * Verifica si es una dedicación baja (20 o 40 horas).
71
- */
72
- isLowDedication() {
73
- if (!this.hasValue())
74
- return null;
75
- return this.isTwentyHours() || this.isFortyHours();
76
- }
77
- /**
78
- * Verifica si es dedicación de tiempo parcial (no full time).
79
- */
80
- isPartTime() {
81
- if (!this.hasValue())
82
- return null;
83
- return !this.isFullTime();
84
- }
85
- /**
86
- * Obtiene las horas aproximadas de dedicación.
87
- */
88
- getApproximateHours() {
89
- if (!this.hasValue())
90
- return null;
91
- switch (this.value) {
92
- case ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME:
93
- return 160; // Aproximadamente 40h/semana * 4 semanas
94
- case ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS:
95
- return 80;
96
- case ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS:
97
- return 40;
98
- case ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS:
99
- return 20;
100
- default:
101
- return null;
102
- }
103
- }
104
- /**
105
- * Obtiene el nivel de intensidad de la dedicación.
106
- */
107
- getIntensityLevel() {
108
- if (!this.hasValue())
109
- return null;
110
- if (this.isFullTime())
111
- return 'high';
112
- if (this.isEightyHours())
113
- return 'high';
114
- if (this.isFortyHours())
115
- return 'medium';
116
- if (this.isTwentyHours())
117
- return 'low';
118
- return null;
119
- }
120
- /**
121
- * Obtiene los niveles de dedicación válidos.
122
- */
123
- static getValidDedicationLevels() {
124
- return Object.freeze([...ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS]);
125
- }
126
- /**
127
- * Verifica si un valor es un nivel de dedicación válido.
128
- */
129
- static isValidDedicationLevel(value) {
130
- return ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS.includes(value);
131
- }
132
- /**
133
- * Obtiene la descripción del nivel de dedicación.
134
- */
135
- getDescription() {
136
- if (!this.hasValue())
137
- return null;
138
- const descriptions = {
139
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME]: 'Dedicación completa (tiempo completo)',
140
- [ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS]: 'Dedicación alta (80 horas mensuales)',
141
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS]: 'Dedicación media (40 horas mensuales)',
142
- [ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS]: 'Dedicación baja (20 horas mensuales)',
143
- };
144
- return descriptions[this.value] || this.value;
145
- }
146
- /**
147
- * Obtiene el factor de costo relativo (basado en horas).
148
- */
149
- getCostFactor() {
150
- if (!this.hasValue())
151
- return null;
152
- const baseHours = 20; // 20 horas como base (factor 1.0)
153
- const currentHours = this.getApproximateHours();
154
- if (currentHours === null)
155
- return null;
156
- return currentHours / baseHours;
157
- }
158
- /**
159
- * Verifica si requiere aprobación especial (dedicaciones altas).
160
- */
161
- requiresSpecialApproval() {
162
- if (!this.hasValue())
163
- return null;
164
- return this.isHighDedication();
165
- }
166
- /**
167
- * Obtiene las características del nivel de dedicación.
168
- */
169
- getCharacteristics() {
170
- if (!this.hasValue())
171
- return null;
172
- return {
173
- isFullTime: this.isFullTime(),
174
- isPartTime: this.isPartTime(),
175
- isHighDedication: this.isHighDedication(),
176
- isLowDedication: this.isLowDedication(),
177
- approximateHours: this.getApproximateHours(),
178
- intensityLevel: this.getIntensityLevel(),
179
- costFactor: this.getCostFactor(),
180
- requiresSpecialApproval: this.requiresSpecialApproval(),
181
- };
182
- }
183
- /**
184
- * Convierte a enum para uso tipado.
185
- */
186
- toEnum() {
187
- if (!this.hasValue())
188
- return null;
189
- return this.value;
190
- }
191
- toPrimitives() {
192
- return this.value;
193
- }
194
- /**
195
- * Representación como string descriptiva.
196
- */
197
- toString() {
198
- if (!this.hasValue())
199
- return 'No dedication level defined';
200
- const levelNames = {
201
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME]: 'Tiempo Completo',
202
- [ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS]: '80 Horas',
203
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS]: '40 Horas',
204
- [ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS]: '20 Horas',
205
- };
206
- return levelNames[this.value] || this.value;
207
- }
208
- }
209
- exports.ServiceExpertDedicationLevel = ServiceExpertDedicationLevel;
210
- ServiceExpertDedicationLevel.PROPERTY_NAME = 'expertDedicationLevel';
211
- // Niveles de dedicación de experto válidos
212
- ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS = Object.values(ExpertDedicationLevel_1.ExpertDedicationLevel);