@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,301 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _a, _ServiceCatalogReference_id, _ServiceCatalogReference_code, _ServiceCatalogReference_name, _ServiceCatalogReference_type, _ServiceCatalogReference_guardAgainstInvalidType, _ServiceCatalogReference_guardAgainstInvalidId, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ServiceCatalogReference = void 0;
16
- const InvalidPropertyTypeError_1 = require("../exceptions/InvalidPropertyTypeError");
17
- const ObjectValueObject_1 = require("./ObjectValueObject");
18
- const Code_1 = require("./Code");
19
- const String_1 = require("./String");
20
- const AggregateId_1 = require("./AggregateId");
21
- const ServiceCatalogType_1 = require("../../../purchase-management-system/service-catalog/domain/enums/ServiceCatalogType");
22
- class ServiceCatalogReference extends ObjectValueObject_1.ObjectValueObject {
23
- /**
24
- * Constructor protegido para que solo clases hijas puedan instanciar.
25
- * Aplica todas las validaciones de dominio al momento de construcción.
26
- */
27
- constructor(value, skipDomainValidation, propertyName = _a.DEFAULT_PROPERTY_NAME) {
28
- super(value, skipDomainValidation, propertyName, 'The provided value must be of type ServiceCatalogReference from the domain layer', { allowNull: false, allowUndefined: false });
29
- _ServiceCatalogReference_id.set(this, void 0);
30
- _ServiceCatalogReference_code.set(this, void 0);
31
- _ServiceCatalogReference_name.set(this, void 0);
32
- _ServiceCatalogReference_type.set(this, void 0);
33
- if (skipDomainValidation === false) {
34
- _a.validateServiceCatalogReference(value, propertyName);
35
- }
36
- __classPrivateFieldSet(this, _ServiceCatalogReference_id, value.id.trim(), "f");
37
- __classPrivateFieldSet(this, _ServiceCatalogReference_code, value.code.trim().toUpperCase(), "f");
38
- __classPrivateFieldSet(this, _ServiceCatalogReference_name, value.name.trim(), "f");
39
- __classPrivateFieldSet(this, _ServiceCatalogReference_type, value.type, "f");
40
- }
41
- /**
42
- * Validación estática para reutilización en factory methods y constructores.
43
- */
44
- static validateServiceCatalogReference(value, propertyName) {
45
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidType).call(this, value, propertyName);
46
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidId).call(this, value.id);
47
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode).call(this, value.code);
48
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName).call(this, value.name);
49
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType).call(this, value.type);
50
- }
51
- get id() {
52
- return __classPrivateFieldGet(this, _ServiceCatalogReference_id, "f");
53
- }
54
- /**
55
- * Código único del servicio (UUID).
56
- */
57
- get code() {
58
- return __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f");
59
- }
60
- /**
61
- * Nombre descriptivo del servicio.
62
- */
63
- get name() {
64
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f");
65
- }
66
- /**
67
- * Tipo de servicio.
68
- */
69
- get type() {
70
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f");
71
- }
72
- hasId(id) {
73
- return __classPrivateFieldGet(this, _ServiceCatalogReference_id, "f") === id.trim();
74
- }
75
- /**
76
- * Verifica si el servicio corresponde a un código específico.
77
- */
78
- hasCode(code) {
79
- return __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f") === code.trim().toUpperCase();
80
- }
81
- /**
82
- * Verifica si el servicio tiene un nombre específico.
83
- */
84
- hasName(name) {
85
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f") === name.trim();
86
- }
87
- /**
88
- * Verifica si el servicio es de un tipo específico.
89
- */
90
- hasType(type) {
91
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === type;
92
- }
93
- /**
94
- * Verifica si es un servicio base.
95
- */
96
- isBaseServiceCatalog() {
97
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE;
98
- }
99
- /**
100
- * Verifica si es un servicio adicional.
101
- */
102
- isAdditionalServiceCatalog() {
103
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE;
104
- }
105
- /**
106
- * Verifica si es una característica de plataforma.
107
- */
108
- isPlatformFeature() {
109
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE;
110
- }
111
- /**
112
- * Verifica si es un servicio dependiente.
113
- */
114
- isDependentServiceCatalog() {
115
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE;
116
- }
117
- /**
118
- * Verifica si es un servicio principal (base o adicional).
119
- */
120
- isPrincipalServiceCatalog() {
121
- return this.isBaseServiceCatalog() || this.isAdditionalServiceCatalog();
122
- }
123
- /**
124
- * Verifica si requiere dependencias.
125
- */
126
- requiresDependencies() {
127
- return this.isDependentServiceCatalog();
128
- }
129
- /**
130
- * Obtiene una representación legible del servicio.
131
- */
132
- getDisplayName() {
133
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f");
134
- }
135
- /**
136
- * Obtiene una representación completa con código y nombre.
137
- */
138
- getFullDisplayName() {
139
- return `${__classPrivateFieldGet(this, _ServiceCatalogReference_name, "f")} (${__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f")})`;
140
- }
141
- /**
142
- * Obtiene una representación completa con código, nombre y tipo.
143
- */
144
- getFullDisplayNameWithType() {
145
- return `${__classPrivateFieldGet(this, _ServiceCatalogReference_name, "f")} (${__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f")}) - ${__classPrivateFieldGet(this, _ServiceCatalogReference_type, "f")}`;
146
- }
147
- /**
148
- * Obtiene el nombre del tipo de servicio en formato legible.
149
- */
150
- getTypeDisplayName() {
151
- const typeNames = {
152
- [ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'Servicio Base',
153
- [ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'Servicio Adicional',
154
- [ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'Característica de Plataforma',
155
- [ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE]: 'Servicio Dependiente',
156
- };
157
- return typeNames[__classPrivateFieldGet(this, _ServiceCatalogReference_type, "f")] || __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f");
158
- }
159
- /**
160
- * Verifica si el nombre del servicio contiene un texto específico.
161
- * Útil para búsquedas parciales.
162
- */
163
- nameContains(searchText) {
164
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f").toLowerCase().includes(searchText.toLowerCase().trim());
165
- }
166
- /**
167
- * Verifica si el servicio coincide con un patrón de búsqueda en código, nombre o tipo.
168
- * Útil para filtros generales.
169
- */
170
- matches(searchText) {
171
- const trimmedSearch = searchText.toLowerCase().trim();
172
- return (__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f").toLowerCase().includes(trimmedSearch)
173
- || __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f").toLowerCase().includes(trimmedSearch)
174
- || __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f").toLowerCase().includes(trimmedSearch));
175
- }
176
- /**
177
- * Verifica si el servicio coincide con criterios específicos.
178
- */
179
- matchesCriteria(criteria) {
180
- if (criteria.code && !this.hasCode(criteria.code)) {
181
- return false;
182
- }
183
- if (criteria.name && !this.hasName(criteria.name)) {
184
- return false;
185
- }
186
- if (criteria.type && !this.hasType(criteria.type)) {
187
- return false;
188
- }
189
- if (criteria.searchText && !this.matches(criteria.searchText)) {
190
- return false;
191
- }
192
- return true;
193
- }
194
- /**
195
- * Compara la igualdad semántica con otra referencia de servicio.
196
- * Dos referencias son iguales si tienen el mismo código, nombre y tipo.
197
- */
198
- equals(other) {
199
- if (!(other instanceof _a)) {
200
- return false;
201
- }
202
- return (__classPrivateFieldGet(this, _ServiceCatalogReference_id, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_id, "f")
203
- && __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_code, "f")
204
- && __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_name, "f")
205
- && __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_type, "f"));
206
- }
207
- /**
208
- * Compara si dos referencias apuntan al mismo servicio
209
- * basándose únicamente en el código (identificador único).
210
- */
211
- hasSameServiceCatalog(other) {
212
- if (!(other instanceof _a)) {
213
- return false;
214
- }
215
- return __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_code, "f");
216
- }
217
- /**
218
- * Verifica si es compatible con otro servicio para bundling.
219
- */
220
- isCompatibleForBundling(other) {
221
- if (!(other instanceof _a)) {
222
- return false;
223
- }
224
- // Un servicio no puede ser bundled consigo mismo
225
- if (this.hasSameServiceCatalog(other)) {
226
- return false;
227
- }
228
- // Lógica específica de compatibilidad basada en tipos
229
- if (this.isDependentServiceCatalog() && other.isBaseServiceCatalog()) {
230
- return true; // Servicios dependientes pueden ser bundled con servicios base
231
- }
232
- if (this.isBaseServiceCatalog() && other.isAdditionalServiceCatalog()) {
233
- return true; // Servicios base pueden ser bundled con servicios adicionales
234
- }
235
- if (this.isPlatformFeature()) {
236
- return true; // Las características de plataforma pueden ser bundled con cualquier servicio
237
- }
238
- return false;
239
- }
240
- /**
241
- * Genera un hash code para usar en colecciones.
242
- * Basado en el código de servicio, nombre y tipo.
243
- */
244
- hashCode() {
245
- return `${__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f")}_${__classPrivateFieldGet(this, _ServiceCatalogReference_name, "f")}_${__classPrivateFieldGet(this, _ServiceCatalogReference_type, "f")}`;
246
- }
247
- /**
248
- * Convierte a representación primitiva para persistencia.
249
- */
250
- toPrimitives() {
251
- return {
252
- id: __classPrivateFieldGet(this, _ServiceCatalogReference_id, "f"),
253
- code: __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f"),
254
- name: __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f"),
255
- type: __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f"),
256
- };
257
- }
258
- /**
259
- * Representación como string (nombre del servicio).
260
- */
261
- toString() {
262
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f");
263
- }
264
- /**
265
- * Representación JSON para serialización.
266
- */
267
- toJSON() {
268
- return this.toPrimitives();
269
- }
270
- }
271
- exports.ServiceCatalogReference = ServiceCatalogReference;
272
- _a = ServiceCatalogReference, _ServiceCatalogReference_id = new WeakMap(), _ServiceCatalogReference_code = new WeakMap(), _ServiceCatalogReference_name = new WeakMap(), _ServiceCatalogReference_type = new WeakMap(), _ServiceCatalogReference_guardAgainstInvalidType = function _ServiceCatalogReference_guardAgainstInvalidType(value, propertyName) {
273
- if (!value || typeof value !== 'object') {
274
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'ServiceCatalogReference object', typeof value);
275
- }
276
- if (typeof value.id !== 'string') {
277
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('id', 'string', typeof value.id);
278
- }
279
- if (typeof value.code !== 'string') {
280
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('code', 'string', typeof value.code);
281
- }
282
- if (typeof value.name !== 'string') {
283
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('name', 'string', typeof value.name);
284
- }
285
- if (typeof value.type !== 'string') {
286
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('type', 'string', typeof value.type);
287
- }
288
- }, _ServiceCatalogReference_guardAgainstInvalidId = function _ServiceCatalogReference_guardAgainstInvalidId(id) {
289
- String_1.String.guardAgainstEmptyValue(id, 'id');
290
- AggregateId_1.AggregateId.guardAgainstInvalidId(id, 'id');
291
- }, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode = function _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode(code) {
292
- String_1.String.guardAgainstEmptyValue(code, 'code');
293
- Code_1.Code.guardAgainstInvalidCode(code);
294
- }, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName = function _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName(name) {
295
- String_1.String.guardAgainstEmptyValue(name, 'name');
296
- }, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType = function _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType(type) {
297
- if (!Object.values(ServiceCatalogType_1.ServiceCatalogType).includes(type)) {
298
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('type', 'valid ServiceCatalogType', type);
299
- }
300
- };
301
- ServiceCatalogReference.DEFAULT_PROPERTY_NAME = 'serviceCatalogReference';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StakeholderBusinessStatus = void 0;
4
- var StakeholderBusinessStatus;
5
- (function (StakeholderBusinessStatus) {
6
- StakeholderBusinessStatus["ACTIVE_IN_SYSTEM"] = "ACTIVE_IN_SYSTEM";
7
- StakeholderBusinessStatus["ONBOARDING_PENDING"] = "ONBOARDING_PENDING";
8
- StakeholderBusinessStatus["TEMPORARILY_SUSPENDED"] = "TEMPORARILY_SUSPENDED";
9
- StakeholderBusinessStatus["AWAITING_VERIFICATION"] = "AWAITING_VERIFICATION";
10
- })(StakeholderBusinessStatus || (exports.StakeholderBusinessStatus = StakeholderBusinessStatus = {}));
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidStakeholderBusinessStatusError = void 0;
4
- const RootError_1 = require("../../../../shared/domain/exceptions/RootError");
5
- class InvalidStakeholderBusinessStatusError extends RootError_1.RootError {
6
- constructor(value, validStatuses) {
7
- const message = `Invalid stakeholder business status: '${value}'. Valid statuses are: ${validStatuses.join(', ')}.`;
8
- super(message);
9
- this.name = 'InvalidStakeholderBusinessStatusError';
10
- }
11
- static create(value, validStatuses) {
12
- return new InvalidStakeholderBusinessStatusError(value, validStatuses);
13
- }
14
- logError() {
15
- return `${this.name}: ${this.message}`;
16
- }
17
- }
18
- exports.InvalidStakeholderBusinessStatusError = InvalidStakeholderBusinessStatusError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,52 +0,0 @@
1
- import { IAggregateRoot } from '../../../../shared/domain/entities/IAggregateRoot';
2
- import { ServiceAdditionalUserRoles } from '../value-objects/ServiceAdditionalUserRoles';
3
- import { ServiceAllowsDocumentReading } from '../value-objects/ServiceAllowsDocumentReading';
4
- import { ServiceAllowsSectoralComparison } from '../value-objects/ServiceAllowsSectoralComparison';
5
- import { ServiceBasePricePercentage } from '../value-objects/ServiceBasePricePercentage';
6
- import { ServiceCategory } from '../value-objects/ServiceCategory';
7
- import { ServiceCode } from '../value-objects/ServiceCode';
8
- import { ServiceCreatedByStakeholder } from '../value-objects/ServiceCreatedByStakeholder';
9
- import { ServiceDependsOnServiceCode } from '../value-objects/ServiceDependsOnServiceCode';
10
- import { ServiceDescription } from '../value-objects/ServiceDescription';
11
- import { ServiceExpertDedicationLevel } from '../value-objects/ServiceExpertDedicationLevel';
12
- import { ServiceFixedPriceAmount } from '../value-objects/ServiceFixedPriceAmount';
13
- import { ServiceHasBasePrice } from '../value-objects/ServiceHasBasePrice';
14
- import { ServiceHasFixedPrice } from '../value-objects/ServiceHasFixedPrice';
15
- import { ServiceIncludesCarbonBoxAcademy } from '../value-objects/ServiceIncludesCarbonBoxAcademy';
16
- import { ServiceIncludesESGIndicators } from '../value-objects/ServiceIncludesESGIndicators';
17
- import { ServiceIsAvailableForCorporate } from '../value-objects/ServiceIsAvailableForCorporate';
18
- import { ServiceIsAvailableForEvent } from '../value-objects/ServiceIsAvailableForEvent';
19
- import { ServiceIsAvailableForProduct } from '../value-objects/ServiceIsAvailableForProduct';
20
- import { ServiceIsRequiredService } from '../value-objects/ServiceIsRequiredService';
21
- import { ServiceMaxUsers } from '../value-objects/ServiceMaxUsers';
22
- import { ServiceName } from '../value-objects/ServiceName';
23
- import { ServiceReportTypes } from '../value-objects/ServiceReportTypes';
24
- import { ServiceStatus } from '../value-objects/ServiceStatus';
25
- import { ServiceType } from '../value-objects/ServiceType';
26
- export interface IService extends IAggregateRoot {
27
- code: ServiceCode;
28
- name: ServiceName;
29
- description: ServiceDescription;
30
- type: ServiceType;
31
- category: ServiceCategory;
32
- status: ServiceStatus;
33
- isRequiredService: ServiceIsRequiredService;
34
- dependsOnServiceCode: ServiceDependsOnServiceCode;
35
- hasBasePrice: ServiceHasBasePrice;
36
- basePricePercentage: ServiceBasePricePercentage;
37
- hasFixedPrice: ServiceHasFixedPrice;
38
- fixedPriceAmount: ServiceFixedPriceAmount;
39
- expertDedicationLevel: ServiceExpertDedicationLevel;
40
- reportTypes: ServiceReportTypes;
41
- additionalUserRoles: ServiceAdditionalUserRoles;
42
- maxUsers: ServiceMaxUsers;
43
- allowsDocumentReading: ServiceAllowsDocumentReading;
44
- allowsSectoralComparison: ServiceAllowsSectoralComparison;
45
- includesCarbonBoxAcademy: ServiceIncludesCarbonBoxAcademy;
46
- includesESGIndicators: ServiceIncludesESGIndicators;
47
- isAvailableForCorporate: ServiceIsAvailableForCorporate;
48
- isAvailableForProduct: ServiceIsAvailableForProduct;
49
- isAvailableForEvent: ServiceIsAvailableForEvent;
50
- createdByStakeholder: ServiceCreatedByStakeholder;
51
- }
52
- //# sourceMappingURL=IService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IService.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC9C,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,kBAAkB,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,oBAAoB,EAAE,2BAA2B,CAAC;IAGlD,YAAY,EAAE,mBAAmB,CAAC;IAClC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,aAAa,EAAE,oBAAoB,CAAC;IACpC,gBAAgB,EAAE,uBAAuB,CAAC;IAG1C,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,WAAW,EAAE,kBAAkB,CAAC;IAChC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,QAAQ,EAAE,eAAe,CAAC;IAG1B,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,wBAAwB,EAAE,+BAA+B,CAAC;IAC1D,wBAAwB,EAAE,+BAA+B,CAAC;IAC1D,qBAAqB,EAAE,4BAA4B,CAAC;IAGpD,uBAAuB,EAAE,8BAA8B,CAAC;IACxD,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,mBAAmB,EAAE,0BAA0B,CAAC;IAEhD,oBAAoB,EAAE,2BAA2B,CAAC;CACnD"}
@@ -1,60 +0,0 @@
1
- import { AggregateRoot } from '../../../../shared/domain/entities/AggregateRoot';
2
- import { ServicePrimitives } from '../types/ServicePrimitives';
3
- import { ServiceProps } from '../types/ServiceProps';
4
- import { ServiceAdditionalUserRoles } from '../value-objects/ServiceAdditionalUserRoles';
5
- import { ServiceAllowsDocumentReading } from '../value-objects/ServiceAllowsDocumentReading';
6
- import { ServiceAllowsSectoralComparison } from '../value-objects/ServiceAllowsSectoralComparison';
7
- import { ServiceBasePricePercentage } from '../value-objects/ServiceBasePricePercentage';
8
- import { ServiceCategory } from '../value-objects/ServiceCategory';
9
- import { ServiceCode } from '../value-objects/ServiceCode';
10
- import { ServiceCreatedByStakeholder } from '../value-objects/ServiceCreatedByStakeholder';
11
- import { ServiceDependsOnServiceCode } from '../value-objects/ServiceDependsOnServiceCode';
12
- import { ServiceDescription } from '../value-objects/ServiceDescription';
13
- import { ServiceExpertDedicationLevel } from '../value-objects/ServiceExpertDedicationLevel';
14
- import { ServiceFixedPriceAmount } from '../value-objects/ServiceFixedPriceAmount';
15
- import { ServiceHasBasePrice } from '../value-objects/ServiceHasBasePrice';
16
- import { ServiceHasFixedPrice } from '../value-objects/ServiceHasFixedPrice';
17
- import { ServiceIncludesCarbonBoxAcademy } from '../value-objects/ServiceIncludesCarbonBoxAcademy';
18
- import { ServiceIncludesESGIndicators } from '../value-objects/ServiceIncludesESGIndicators';
19
- import { ServiceIsAvailableForCorporate } from '../value-objects/ServiceIsAvailableForCorporate';
20
- import { ServiceIsAvailableForEvent } from '../value-objects/ServiceIsAvailableForEvent';
21
- import { ServiceIsAvailableForProduct } from '../value-objects/ServiceIsAvailableForProduct';
22
- import { ServiceIsRequiredService } from '../value-objects/ServiceIsRequiredService';
23
- import { ServiceMaxUsers } from '../value-objects/ServiceMaxUsers';
24
- import { ServiceName } from '../value-objects/ServiceName';
25
- import { ServiceReportTypes } from '../value-objects/ServiceReportTypes';
26
- import { ServiceStatus } from '../value-objects/ServiceStatus';
27
- import { ServiceType } from '../value-objects/ServiceType';
28
- import { IService } from './IService';
29
- export declare class Service extends AggregateRoot<ServicePrimitives> implements IService {
30
- #private;
31
- private constructor();
32
- static create(props: ServiceProps): Service;
33
- static fromPrimitives(primitives: ServicePrimitives): Service;
34
- get toPrimitives(): ServicePrimitives;
35
- get code(): ServiceCode;
36
- get name(): ServiceName;
37
- get description(): ServiceDescription;
38
- get type(): ServiceType;
39
- get category(): ServiceCategory;
40
- get status(): ServiceStatus;
41
- get isRequiredService(): ServiceIsRequiredService;
42
- get dependsOnServiceCode(): ServiceDependsOnServiceCode;
43
- get hasBasePrice(): ServiceHasBasePrice;
44
- get basePricePercentage(): ServiceBasePricePercentage;
45
- get hasFixedPrice(): ServiceHasFixedPrice;
46
- get fixedPriceAmount(): ServiceFixedPriceAmount;
47
- get expertDedicationLevel(): ServiceExpertDedicationLevel;
48
- get reportTypes(): ServiceReportTypes;
49
- get additionalUserRoles(): ServiceAdditionalUserRoles;
50
- get maxUsers(): ServiceMaxUsers;
51
- get allowsDocumentReading(): ServiceAllowsDocumentReading;
52
- get allowsSectoralComparison(): ServiceAllowsSectoralComparison;
53
- get includesCarbonBoxAcademy(): ServiceIncludesCarbonBoxAcademy;
54
- get includesESGIndicators(): ServiceIncludesESGIndicators;
55
- get isAvailableForCorporate(): ServiceIsAvailableForCorporate;
56
- get isAvailableForProduct(): ServiceIsAvailableForProduct;
57
- get isAvailableForEvent(): ServiceIsAvailableForEvent;
58
- get createdByStakeholder(): ServiceCreatedByStakeholder;
59
- }
60
- //# sourceMappingURL=Service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Service.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,OACX,SAAQ,aAAa,CAAC,iBAAiB,CACvC,YAAW,QAAQ;;IAiDnB,OAAO;WA8DgB,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO;WAIpC,cAAc,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO;IAgC7E,IAAoB,YAAY,IAAI,iBAAiB,CA4BpD;IAED,IAAW,IAAI,IAAI,WAAW,CAE7B;IAED,IAAW,IAAI,IAAI,WAAW,CAE7B;IAED,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED,IAAW,IAAI,IAAI,WAAW,CAE7B;IAED,IAAW,QAAQ,IAAI,eAAe,CAErC;IAED,IAAW,MAAM,IAAI,aAAa,CAEjC;IAED,IAAW,iBAAiB,IAAI,wBAAwB,CAEvD;IAED,IAAW,oBAAoB,IAAI,2BAA2B,CAE7D;IAED,IAAW,YAAY,IAAI,mBAAmB,CAE7C;IAED,IAAW,mBAAmB,IAAI,0BAA0B,CAE3D;IAED,IAAW,aAAa,IAAI,oBAAoB,CAE/C;IAED,IAAW,gBAAgB,IAAI,uBAAuB,CAErD;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED,IAAW,mBAAmB,IAAI,0BAA0B,CAE3D;IAED,IAAW,QAAQ,IAAI,eAAe,CAErC;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,wBAAwB,IAAI,+BAA+B,CAErE;IAED,IAAW,wBAAwB,IAAI,+BAA+B,CAErE;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,uBAAuB,IAAI,8BAA8B,CAEnE;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,mBAAmB,IAAI,0BAA0B,CAE3D;IAED,IAAW,oBAAoB,IAAI,2BAA2B,CAE7D;CACF"}
@@ -1,17 +0,0 @@
1
- export declare enum ServiceCategory {
2
- CORPORATE_FOOTPRINT = "CORPORATE_FOOTPRINT",
3
- PRODUCT_FOOTPRINT = "PRODUCT_FOOTPRINT",
4
- EVENT_FOOTPRINT = "EVENT_FOOTPRINT",
5
- EXPERT_SUPPORT = "EXPERT_SUPPORT",
6
- TRAINING = "TRAINING",
7
- AUDIT_SUPPORT = "AUDIT_SUPPORT",
8
- DATA_VALIDATION = "DATA_VALIDATION",
9
- REPORTING = "REPORTING",
10
- DOCUMENT_READING = "DOCUMENT_READING",
11
- SECTORAL_COMPARISON = "SECTORAL_COMPARISON",
12
- ADDITIONAL_USERS = "ADDITIONAL_USERS",
13
- CARBONBOX_ACADEMY = "CARBONBOX_ACADEMY",
14
- ESG_INDICATORS = "ESG_INDICATORS",
15
- CARBON_OFFSETTING = "CARBON_OFFSETTING"
16
- }
17
- //# sourceMappingURL=ServiceCategory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceCategory.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;CACxC"}
@@ -1,6 +0,0 @@
1
- export declare enum ServiceStatus {
2
- ACTIVE = "ACTIVE",
3
- INACTIVE = "INACTIVE",
4
- DISCONTINUED = "DISCONTINUED"
5
- }
6
- //# sourceMappingURL=ServiceStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B"}
@@ -1,7 +0,0 @@
1
- export declare enum ServiceType {
2
- BASE_SERVICE = "BASE_SERVICE",// Servicios principales (huella corporativa, producto, evento)
3
- ADDITIONAL_SERVICE = "ADDITIONAL_SERVICE",// Servicios adicionales opcionales
4
- PLATFORM_FEATURE = "PLATFORM_FEATURE",// Features de plataforma
5
- DEPENDENT_SERVICE = "DEPENDENT_SERVICE"
6
- }
7
- //# sourceMappingURL=ServiceType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,YAAY,iBAAiB,CAAE,+DAA+D;IAC9F,kBAAkB,uBAAuB,CAAE,mCAAmC;IAC9E,gBAAgB,qBAAqB,CAAE,yBAAyB;IAChE,iBAAiB,sBAAsB;CACxC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
- import { ServiceCategory } from '../enums/ServiceCategory';
3
- export declare class InvalidServiceCategoryError extends RootError {
4
- private constructor();
5
- static create(receivedValue: string, validCategories: ServiceCategory[]): InvalidServiceCategoryError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidServiceCategoryError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidServiceCategoryError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,OAAO;WAOgB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,2BAA2B;IAIrG,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
- import { ServiceStatus } from '../enums/ServiceStatus';
3
- export declare class InvalidServiceStatusError extends RootError {
4
- private constructor();
5
- static create(receivedValue: string, validStatuses: ServiceStatus[]): InvalidServiceStatusError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidServiceStatusError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidServiceStatusError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,OAAO;WAOgB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,yBAAyB;IAI/F,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
- import { ServiceType } from '../enums/ServiceType';
3
- export declare class InvalidServiceTypeError extends RootError {
4
- private constructor();
5
- static create(receivedValue: string, validTypes: ServiceType[]): InvalidServiceTypeError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidServiceTypeError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidServiceTypeError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,OAAO;WAOgB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,uBAAuB;IAIxF,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,22 +0,0 @@
1
- import { Nullable } from '../../../../shared/domain/types/Nullable';
2
- import { ServiceCatalog } from '../entity/ServiceCatalog';
3
- import { ServiceCatalogCategory } from '../value-objects/ServiceCatalogCategory';
4
- import { ServiceCatalogCode } from '../value-objects/ServiceCatalogCode';
5
- import { ServiceCatalogCreatedByStakeholder } from '../value-objects/ServiceCatalogCreatedByStakeholder';
6
- import { ServiceCatalogDependsOnServiceCode } from '../value-objects/ServiceCatalogDependsOnServiceCode';
7
- import { ServiceCatalogId } from '../value-objects/ServiceCatalogId';
8
- import { ServiceCatalogStatus } from '../value-objects/ServiceCatalogStatus';
9
- import { ServiceCatalogType } from '../value-objects/ServiceCatalogType';
10
- export interface IServiceCatalogRepository {
11
- save(service: ServiceCatalog): Promise<void>;
12
- findById(id: ServiceCatalogId): Promise<Nullable<ServiceCatalog>>;
13
- findByCode(code: ServiceCatalogCode): Promise<Nullable<ServiceCatalog>>;
14
- findAllByCategory(category: ServiceCatalogCategory): Promise<ServiceCatalog[]>;
15
- findAllByType(type: ServiceCatalogType): Promise<ServiceCatalog[]>;
16
- findAllByStatus(status: ServiceCatalogStatus): Promise<ServiceCatalog[]>;
17
- findAllByCreatedByStakeholder(createdByStakeholder: ServiceCatalogCreatedByStakeholder): Promise<ServiceCatalog[]>;
18
- findAllByDependsOnServiceCatalogCode(dependsOnServiceCatalogCode: ServiceCatalogDependsOnServiceCode): Promise<ServiceCatalog[]>;
19
- findAll(): Promise<ServiceCatalog[]>;
20
- deleteById(id: ServiceCatalogId): Promise<void>;
21
- }
22
- //# sourceMappingURL=IServiceRepository.d.ts.map