@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,193 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceFixedPriceAmount = void 0;
4
- const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
- class ServiceFixedPriceAmount extends NullableNumeric_1.NullableNumeric {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceFixedPriceAmount.PROPERTY_NAME, ServiceFixedPriceAmount.FIXED_PRICE_OPTIONS);
8
- }
9
- static create(value) {
10
- return new ServiceFixedPriceAmount(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceFixedPriceAmount(value, true);
15
- }
16
- /**
17
- * Verifica si es un servicio gratuito.
18
- */
19
- isFree() {
20
- if (!this.hasValue())
21
- return null;
22
- return this.value === 0;
23
- }
24
- /**
25
- * Verifica si es un precio bajo (menos de $100).
26
- */
27
- isLowPrice() {
28
- if (!this.hasValue())
29
- return null;
30
- return this.value > 0 && this.value < 100;
31
- }
32
- /**
33
- * Verifica si es un precio medio (entre $100 y $1000).
34
- */
35
- isMediumPrice() {
36
- if (!this.hasValue())
37
- return null;
38
- return this.value >= 100 && this.value <= 1000;
39
- }
40
- /**
41
- * Verifica si es un precio alto (más de $1000).
42
- */
43
- isHighPrice() {
44
- if (!this.hasValue())
45
- return null;
46
- return this.value > 1000;
47
- }
48
- /**
49
- * Verifica si es un precio premium (más de $10000).
50
- */
51
- isPremiumPrice() {
52
- if (!this.hasValue())
53
- return null;
54
- return this.value > 10000;
55
- }
56
- /**
57
- * Obtiene el precio formateado como moneda.
58
- */
59
- getFormattedPrice(currencySymbol = '$') {
60
- if (!this.hasValue())
61
- return null;
62
- return `${currencySymbol}${this.value.toLocaleString('en-US', {
63
- minimumFractionDigits: 2,
64
- maximumFractionDigits: 2,
65
- })}`;
66
- }
67
- /**
68
- * Obtiene el precio en miles (para display).
69
- */
70
- getPriceInThousands() {
71
- if (!this.hasValue())
72
- return null;
73
- return Math.round((this.value / 1000) * 100) / 100;
74
- }
75
- /**
76
- * Calcula el precio con impuestos.
77
- */
78
- calculatePriceWithTax(taxRate) {
79
- if (!this.hasValue())
80
- return null;
81
- if (taxRate < 0 || taxRate > 1)
82
- return null; // Tax rate debe estar entre 0 y 1
83
- return this.value * (1 + taxRate);
84
- }
85
- /**
86
- * Calcula un descuento sobre el precio fijo.
87
- */
88
- applyDiscount(discountPercentage) {
89
- if (!this.hasValue())
90
- return null;
91
- if (discountPercentage < 0 || discountPercentage > 100)
92
- return null;
93
- const discountFactor = discountPercentage / 100;
94
- return this.value * (1 - discountFactor);
95
- }
96
- /**
97
- * Obtiene la categoría de precio.
98
- */
99
- getPriceCategory() {
100
- if (!this.hasValue())
101
- return null;
102
- if (this.isFree())
103
- return 'free';
104
- if (this.isLowPrice())
105
- return 'low';
106
- if (this.isMediumPrice())
107
- return 'medium';
108
- if (this.isPremiumPrice())
109
- return 'premium';
110
- if (this.isHighPrice())
111
- return 'high';
112
- return null;
113
- }
114
- /**
115
- * Verifica si el precio requiere aprobación especial.
116
- */
117
- requiresSpecialApproval() {
118
- if (!this.hasValue())
119
- return null;
120
- // Precios premium requieren aprobación especial
121
- return this.isPremiumPrice();
122
- }
123
- /**
124
- * Obtiene una descripción del nivel de precio.
125
- */
126
- getPriceDescription() {
127
- if (!this.hasValue())
128
- return null;
129
- const category = this.getPriceCategory();
130
- const descriptions = {
131
- free: 'Servicio gratuito',
132
- low: 'Precio económico',
133
- medium: 'Precio estándar',
134
- high: 'Precio elevado',
135
- premium: 'Precio premium',
136
- };
137
- return descriptions[category] || 'Precio no categorizado';
138
- }
139
- /**
140
- * Compara con otro precio fijo.
141
- */
142
- compareWith(other) {
143
- if (!this.hasValue() || !other.hasValue())
144
- return null;
145
- return this.value - other.value;
146
- }
147
- /**
148
- * Verifica si está dentro de un rango de precios.
149
- */
150
- isWithinRange(minPrice, maxPrice) {
151
- if (!this.hasValue())
152
- return null;
153
- return this.value >= minPrice && this.value <= maxPrice;
154
- }
155
- /**
156
- * Obtiene las características del precio.
157
- */
158
- getCharacteristics() {
159
- if (!this.hasValue())
160
- return null;
161
- return {
162
- isFree: this.isFree(),
163
- isLowPrice: this.isLowPrice(),
164
- isMediumPrice: this.isMediumPrice(),
165
- isHighPrice: this.isHighPrice(),
166
- isPremiumPrice: this.isPremiumPrice(),
167
- priceCategory: this.getPriceCategory(),
168
- requiresSpecialApproval: this.requiresSpecialApproval(),
169
- formattedPrice: this.getFormattedPrice(),
170
- };
171
- }
172
- toPrimitives() {
173
- return this.value;
174
- }
175
- /**
176
- * Representación como string descriptiva.
177
- */
178
- toString() {
179
- if (!this.hasValue())
180
- return 'No fixed price defined';
181
- return this.getFormattedPrice() || 'Invalid price';
182
- }
183
- }
184
- exports.ServiceFixedPriceAmount = ServiceFixedPriceAmount;
185
- ServiceFixedPriceAmount.PROPERTY_NAME = 'fixedPriceAmount';
186
- ServiceFixedPriceAmount.FIXED_PRICE_OPTIONS = {
187
- allowNegative: false, // Los precios fijos no pueden ser negativos
188
- allowZero: true, // Permitir servicios gratuitos (precio fijo de 0)
189
- allowDecimals: true, // Permitir decimales para precisión monetaria
190
- maxDecimalPlaces: 2, // Máximo 2 decimales para valores monetarios
191
- minValue: 0, // Valor mínimo es cero
192
- maxValue: 999999999.99, // Valor máximo razonable para precios fijos
193
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceHasBasePrice = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceHasBasePrice extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceHasBasePrice.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceHasBasePrice.PROPERTY_NAME);
11
- return new ServiceHasBasePrice(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceHasBasePrice(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceHasBasePrice = ServiceHasBasePrice;
22
- ServiceHasBasePrice.PROPERTY_NAME = 'hasBasePrice';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceHasFixedPrice = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceHasFixedPrice extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceHasFixedPrice.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceHasFixedPrice.PROPERTY_NAME);
11
- return new ServiceHasFixedPrice(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceHasFixedPrice(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceHasFixedPrice = ServiceHasFixedPrice;
22
- ServiceHasFixedPrice.PROPERTY_NAME = 'hasFixedPrice';
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceId = void 0;
4
- const AggregateId_1 = require("../../../../shared/domain/value-objects/AggregateId");
5
- class ServiceId extends AggregateId_1.AggregateId {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceId.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- AggregateId_1.AggregateId.guardAgainstEmptyValue(value, ServiceId.PROPERTY_NAME);
11
- AggregateId_1.AggregateId.guardAgainstInvalidType(value, ServiceId.PROPERTY_NAME);
12
- AggregateId_1.AggregateId.guardAgainstInvalidId(value, ServiceId.PROPERTY_NAME);
13
- return new ServiceId(value, false);
14
- }
15
- static fromPrimitives(primitive) {
16
- const value = primitive;
17
- return new ServiceId(value, true);
18
- }
19
- toPrimitives() {
20
- return this.value;
21
- }
22
- }
23
- exports.ServiceId = ServiceId;
24
- ServiceId.PROPERTY_NAME = 'id';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIncludesCarbonBoxAcademy = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIncludesCarbonBoxAcademy extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIncludesCarbonBoxAcademy.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIncludesCarbonBoxAcademy.PROPERTY_NAME);
11
- return new ServiceIncludesCarbonBoxAcademy(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIncludesCarbonBoxAcademy(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIncludesCarbonBoxAcademy = ServiceIncludesCarbonBoxAcademy;
22
- ServiceIncludesCarbonBoxAcademy.PROPERTY_NAME = 'includesCarbonBoxAcademy';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIncludesESGIndicators = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIncludesESGIndicators extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIncludesESGIndicators.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIncludesESGIndicators.PROPERTY_NAME);
11
- return new ServiceIncludesESGIndicators(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIncludesESGIndicators(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIncludesESGIndicators = ServiceIncludesESGIndicators;
22
- ServiceIncludesESGIndicators.PROPERTY_NAME = 'includesESGIndicators';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsAvailableForCorporate = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsAvailableForCorporate extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsAvailableForCorporate.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsAvailableForCorporate.PROPERTY_NAME);
11
- return new ServiceIsAvailableForCorporate(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsAvailableForCorporate(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsAvailableForCorporate = ServiceIsAvailableForCorporate;
22
- ServiceIsAvailableForCorporate.PROPERTY_NAME = 'isAvailableForCorporate';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsAvailableForEvent = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsAvailableForEvent extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsAvailableForEvent.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsAvailableForEvent.PROPERTY_NAME);
11
- return new ServiceIsAvailableForEvent(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsAvailableForEvent(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsAvailableForEvent = ServiceIsAvailableForEvent;
22
- ServiceIsAvailableForEvent.PROPERTY_NAME = 'isAvailableForEvent';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsAvailableForProduct = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsAvailableForProduct extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsAvailableForProduct.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsAvailableForProduct.PROPERTY_NAME);
11
- return new ServiceIsAvailableForProduct(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsAvailableForProduct(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsAvailableForProduct = ServiceIsAvailableForProduct;
22
- ServiceIsAvailableForProduct.PROPERTY_NAME = 'isAvailableForProduct';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsRequiredService = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsRequiredService extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsRequiredService.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsRequiredService.PROPERTY_NAME);
11
- return new ServiceIsRequiredService(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsRequiredService(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsRequiredService = ServiceIsRequiredService;
22
- ServiceIsRequiredService.PROPERTY_NAME = 'isRequiredService';
@@ -1,246 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceMaxUsers = void 0;
4
- const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
- class ServiceMaxUsers extends NullableNumeric_1.NullableNumeric {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceMaxUsers.PROPERTY_NAME, ServiceMaxUsers.MAX_USERS_OPTIONS);
8
- }
9
- static create(value) {
10
- return new ServiceMaxUsers(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceMaxUsers(value, true);
15
- }
16
- /**
17
- * Verifica si no permite usuarios adicionales.
18
- */
19
- allowsNoAdditionalUsers() {
20
- if (!this.hasValue())
21
- return null;
22
- return this.value === 0;
23
- }
24
- /**
25
- * Verifica si es un límite bajo de usuarios (1-10).
26
- */
27
- isLowUserLimit() {
28
- if (!this.hasValue())
29
- return null;
30
- return this.value > 0 && this.value <= 10;
31
- }
32
- /**
33
- * Verifica si es un límite medio de usuarios (11-50).
34
- */
35
- isMediumUserLimit() {
36
- if (!this.hasValue())
37
- return null;
38
- return this.value > 10 && this.value <= 50;
39
- }
40
- /**
41
- * Verifica si es un límite alto de usuarios (51-200).
42
- */
43
- isHighUserLimit() {
44
- if (!this.hasValue())
45
- return null;
46
- return this.value > 50 && this.value <= 200;
47
- }
48
- /**
49
- * Verifica si es un límite enterprise de usuarios (>200).
50
- */
51
- isEnterpriseUserLimit() {
52
- if (!this.hasValue())
53
- return null;
54
- return this.value > 200;
55
- }
56
- /**
57
- * Verifica si permite usuarios adicionales.
58
- */
59
- allowsAdditionalUsers() {
60
- if (!this.hasValue())
61
- return null;
62
- return this.value > 0;
63
- }
64
- /**
65
- * Verifica si es un servicio de usuario único.
66
- */
67
- isSingleUser() {
68
- if (!this.hasValue())
69
- return null;
70
- return this.value === 1;
71
- }
72
- /**
73
- * Verifica si requiere licenciamiento especial (límites altos).
74
- */
75
- requiresSpecialLicensing() {
76
- if (!this.hasValue())
77
- return null;
78
- return this.isEnterpriseUserLimit();
79
- }
80
- /**
81
- * Obtiene la categoría de usuarios.
82
- */
83
- getUserCategory() {
84
- if (!this.hasValue())
85
- return null;
86
- if (this.allowsNoAdditionalUsers())
87
- return 'none';
88
- if (this.isSingleUser())
89
- return 'single';
90
- if (this.isLowUserLimit())
91
- return 'small';
92
- if (this.isMediumUserLimit())
93
- return 'medium';
94
- if (this.isHighUserLimit())
95
- return 'large';
96
- if (this.isEnterpriseUserLimit())
97
- return 'enterprise';
98
- return null;
99
- }
100
- /**
101
- * Obtiene el tipo de plan según el número de usuarios.
102
- */
103
- getPlanType() {
104
- if (!this.hasValue())
105
- return null;
106
- if (this.value <= 10)
107
- return 'basic';
108
- if (this.value <= 50)
109
- return 'standard';
110
- if (this.value <= 200)
111
- return 'professional';
112
- return 'enterprise';
113
- }
114
- /**
115
- * Calcula el costo adicional por usuario (basado en escalas).
116
- */
117
- calculateUserCost(costPerUser) {
118
- if (!this.hasValue())
119
- return null;
120
- if (costPerUser < 0)
121
- return null;
122
- return this.value * costPerUser;
123
- }
124
- /**
125
- * Calcula descuentos por volumen según el número de usuarios.
126
- */
127
- getVolumeDiscountRate() {
128
- if (!this.hasValue())
129
- return null;
130
- // Escalas de descuento por volumen
131
- if (this.value <= 10)
132
- return 0; // Sin descuento
133
- if (this.value <= 50)
134
- return 0.05; // 5% descuento
135
- if (this.value <= 200)
136
- return 0.10; // 10% descuento
137
- return 0.15; // 15% descuento para enterprise
138
- }
139
- /**
140
- * Verifica si excede un límite específico.
141
- */
142
- exceedsLimit(limit) {
143
- if (!this.hasValue())
144
- return null;
145
- return this.value > limit;
146
- }
147
- /**
148
- * Verifica si está dentro de un rango de usuarios.
149
- */
150
- isWithinRange(minUsers, maxUsers) {
151
- if (!this.hasValue())
152
- return null;
153
- return this.value >= minUsers && this.value <= maxUsers;
154
- }
155
- /**
156
- * Obtiene la descripción del límite de usuarios.
157
- */
158
- getDescription() {
159
- if (!this.hasValue())
160
- return null;
161
- const category = this.getUserCategory();
162
- const descriptions = {
163
- none: 'Sin usuarios adicionales permitidos',
164
- single: 'Un usuario adicional',
165
- small: 'Grupo pequeño (2-10 usuarios)',
166
- medium: 'Grupo medio (11-50 usuarios)',
167
- large: 'Grupo grande (51-200 usuarios)',
168
- enterprise: 'Nivel empresarial (más de 200 usuarios)',
169
- };
170
- return descriptions[category] || `${this.value} usuarios máximo`;
171
- }
172
- /**
173
- * Obtiene recomendaciones de uso.
174
- */
175
- getUsageRecommendations() {
176
- if (!this.hasValue())
177
- return null;
178
- const category = this.getUserCategory();
179
- const recommendations = {
180
- none: ['Servicio individual', 'Sin colaboración multi-usuario'],
181
- single: ['Ideal para asistentes', 'Soporte básico adicional'],
182
- small: ['Equipos pequeños', 'Startups', 'Departamentos específicos'],
183
- medium: ['Empresas medianas', 'Múltiples departamentos', 'Proyectos colaborativos'],
184
- large: ['Grandes organizaciones', 'División corporativa', 'Múltiples ubicaciones'],
185
- enterprise: ['Corporaciones', 'Multinacionales', 'Implementación masiva'],
186
- };
187
- return recommendations[category] || [];
188
- }
189
- /**
190
- * Verifica si requiere infraestructura especial.
191
- */
192
- requiresSpecialInfrastructure() {
193
- if (!this.hasValue())
194
- return null;
195
- // Más de 100 usuarios requiere infraestructura especial
196
- return this.value > 100;
197
- }
198
- /**
199
- * Obtiene las características del límite de usuarios.
200
- */
201
- getCharacteristics() {
202
- if (!this.hasValue())
203
- return null;
204
- return {
205
- allowsAdditionalUsers: this.allowsAdditionalUsers(),
206
- userCategory: this.getUserCategory(),
207
- planType: this.getPlanType(),
208
- requiresSpecialLicensing: this.requiresSpecialLicensing(),
209
- requiresSpecialInfrastructure: this.requiresSpecialInfrastructure(),
210
- volumeDiscountRate: this.getVolumeDiscountRate(),
211
- description: this.getDescription(),
212
- usageRecommendations: this.getUsageRecommendations(),
213
- };
214
- }
215
- /**
216
- * Compara con otro límite de usuarios.
217
- */
218
- compareWith(other) {
219
- if (!this.hasValue() || !other.hasValue())
220
- return null;
221
- return this.value - other.value;
222
- }
223
- toPrimitives() {
224
- return this.value;
225
- }
226
- /**
227
- * Representación como string descriptiva.
228
- */
229
- toString() {
230
- if (!this.hasValue())
231
- return 'No user limit defined';
232
- if (this.value === 0)
233
- return 'No additional users allowed';
234
- return `Maximum ${this.value} additional users`;
235
- }
236
- }
237
- exports.ServiceMaxUsers = ServiceMaxUsers;
238
- ServiceMaxUsers.PROPERTY_NAME = 'maxUsers';
239
- ServiceMaxUsers.MAX_USERS_OPTIONS = {
240
- allowNegative: false, // El número de usuarios no puede ser negativo
241
- allowZero: true, // Permitir 0 usuarios adicionales (servicio sin extensión de usuarios)
242
- allowDecimals: false, // Los usuarios deben ser números enteros
243
- maxDecimalPlaces: 0, // Sin decimales para conteo de usuarios
244
- minValue: 0, // Valor mínimo es cero
245
- maxValue: 10000, // Valor máximo razonable para usuarios adicionales
246
- };
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceName = void 0;
4
- const String_1 = require("../../../../shared/domain/value-objects/String");
5
- class ServiceName extends String_1.String {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceName.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- String_1.String.guardAgainstEmptyValue(value, ServiceName.PROPERTY_NAME);
11
- String_1.String.guardAgainstInvalidType(value, ServiceName.PROPERTY_NAME);
12
- return new ServiceName(value, false);
13
- }
14
- static fromPrimitives(primitive) {
15
- const value = primitive;
16
- return new ServiceName(value, true);
17
- }
18
- toPrimitives() {
19
- return this.value;
20
- }
21
- }
22
- exports.ServiceName = ServiceName;
23
- ServiceName.PROPERTY_NAME = 'name';