@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.
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.js +28 -0
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.js +28 -0
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.js +24 -0
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.js +24 -0
- package/build/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.js +24 -0
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.js +24 -0
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.js +30 -2
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.js +32 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.js +32 -1
- package/build/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.js +24 -0
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.js +24 -0
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.js +30 -2
- package/build/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/event-edition-lifecycle-stages/domain/value-objects/EventEditionLifecycleStageId.js +30 -2
- 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
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.js +24 -0
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.js +29 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.js +32 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.js +32 -1
- package/build/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.js +29 -1
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.js +29 -1
- package/build/carbonbox/company-resources/events/domain/value-objects/EventId.js +28 -0
- package/build/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.js +28 -0
- package/build/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.js +29 -1
- package/build/carbonbox/company-resources/products/domain/value-objects/ProductId.js +29 -1
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.js +28 -0
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.js +28 -0
- package/build/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.js +28 -0
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.js +28 -0
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.js +28 -0
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.js +28 -0
- package/build/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.js +28 -0
- package/build/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.js +28 -0
- package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.js +28 -0
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.js +28 -0
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.js +28 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +28 -0
- package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.js +28 -0
- package/build/carbonbox/shared/domain/enums/SemanticUuidPrefix.js +16 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +1 -1
- package/build/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.js +31 -0
- package/build/carbonbox/shared/domain/value-objects/UserId.js +0 -5
- package/build/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.js +28 -0
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.js +28 -0
- package/build/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.js +28 -0
- package/build/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.js +28 -0
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.d.ts +5 -0
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/value-objects/ActivityDataSubmissionId.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.d.ts +5 -0
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldId.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.d.ts +2 -0
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleId.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.d.ts +2 -0
- package/build/types/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelId.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.d.ts +2 -0
- package/build/types/carbonbox/activity-data-collection/dynamic-forms/domain/value-objects/DynamicFormId.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.d.ts +2 -0
- package/build/types/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/domain/value-objects/CorporateCarbonFootprintSegmentConfigurationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/domain/value-objects/CorporateConfigurationCarbonFootprintSegmentId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/corporate-segment-configurations/segments/subsegments/domain/value-objects/CorporateConfigurationCarbonFootprintSubsegmentId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.d.ts +2 -0
- package/build/types/carbonbox/carbon-footprint-configurations/corporate-configurations/domain/value-objects/CorporateCarbonFootprintConfigurationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.d.ts +2 -0
- package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/domain/value-objects/EventCarbonFootprintConfigurationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/event-configurations/event-edition-lifecycle-stage-configurations/domain/value-objects/EventEditionLifecycleStageConfigurationId.d.ts.map +1 -1
- 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
- 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
- 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
- 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
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.d.ts +2 -0
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/domain/value-objects/ProductCarbonFootprintConfigurationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/domain/value-objects/ProductCarbonFootprintSegmentConfigurationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/domain/value-objects/ProductConfigurationCarbonFootprintSegmentId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/product-segment-configurations/segments/subsegments/domain/value-objects/ProductConfigurationCarbonFootprintSubsegmentId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/product-configurations/system-boundaries/domain/value-objects/ProductConfigurationSystemBoundaryId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationId.d.ts +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintConfigurationId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.d.ts +5 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintIntensityIndicatorId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSegmentId.d.ts +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSegmentId.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentCode.d.ts +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentCode.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentId.d.ts +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/value-objects/CarbonFootprintSubsegmentId.d.ts.map +1 -1
- package/build/types/carbonbox/company-resources/events/domain/value-objects/EventId.d.ts +5 -0
- package/build/types/carbonbox/company-resources/events/domain/value-objects/EventId.d.ts.map +1 -1
- package/build/types/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.d.ts +5 -0
- package/build/types/carbonbox/company-resources/events/editions/domain/value-objects/EventEditionId.d.ts.map +1 -1
- package/build/types/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.d.ts +5 -0
- package/build/types/carbonbox/company-resources/facilities/domain/value-objects/FacilityId.d.ts.map +1 -1
- package/build/types/carbonbox/company-resources/products/domain/value-objects/ProductId.d.ts +5 -0
- package/build/types/carbonbox/company-resources/products/domain/value-objects/ProductId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/value-objects/CalculationVariableId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/value-objects/CalculationJobId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-results/emission-calculations/domain/value-objects/EmissionCalculationId.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.d.ts +5 -0
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultId.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.d.ts +5 -0
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/value-objects/PurchaseContractId.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.d.ts +5 -0
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/value-objects/PurchaseOrderId.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts +5 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.d.ts +5 -0
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingId.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts +15 -0
- package/build/types/carbonbox/shared/domain/enums/SemanticUuidPrefix.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts +20 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/UserId.d.ts +0 -4
- package/build/types/carbonbox/shared/domain/value-objects/UserId.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.d.ts +5 -0
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/value-objects/CarbonClientId.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.d.ts +5 -0
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/value-objects/CarbonCoordinatorId.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.d.ts +5 -0
- package/build/types/carbonbox/stakeholders/carbon-host/domain/value-objects/CarbonHostId.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.d.ts +5 -0
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/value-objects/CarbonManagerId.d.ts.map +1 -1
- package/package.json +1 -1
- package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.js +0 -2
- package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.js +0 -263
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.js +0 -20
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.js +0 -9
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.js +0 -10
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.js +0 -19
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.js +0 -19
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.js +0 -19
- package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.js +0 -2
- package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.js +0 -2
- package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.js +0 -2
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.js +0 -131
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.js +0 -140
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.js +0 -243
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.js +0 -24
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.js +0 -26
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.js +0 -21
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.js +0 -23
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.js +0 -212
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.js +0 -193
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.js +0 -24
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.js +0 -22
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.js +0 -246
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.js +0 -23
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.js +0 -246
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.js +0 -221
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.js +0 -235
- package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.js +0 -19
- package/build/carbonbox/shared/domain/services/DateTimeFormattingDomainService.js +0 -172
- package/build/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.js +0 -2
- package/build/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.js +0 -235
- package/build/carbonbox/shared/domain/types/AllPermissions.js +0 -2
- package/build/carbonbox/shared/domain/types/AllPermissionsPrimitives.js +0 -2
- package/build/carbonbox/shared/domain/types/ServiceReference.js +0 -2
- package/build/carbonbox/shared/domain/types/ServiceReferencePrimitives.js +0 -2
- package/build/carbonbox/shared/domain/types/UserEmailProps.js +0 -2
- package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +0 -301
- package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.js +0 -2
- package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.js +0 -2
- package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.js +0 -2
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.js +0 -2
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.js +0 -2
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.js +0 -2
- package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.js +0 -2
- package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.js +0 -2
- package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.js +0 -2
- package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.js +0 -2
- package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.js +0 -2
- package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.js +0 -2
- package/build/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.js +0 -10
- package/build/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.js +0 -18
- package/build/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.js +0 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts +0 -52
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts +0 -60
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts +0 -17
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts +0 -6
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts +0 -7
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts +0 -8
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts +0 -8
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts +0 -8
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +0 -22
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts +0 -35
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts +0 -35
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts +0 -71
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts +0 -54
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts +0 -123
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts +0 -11
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts +0 -92
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts +0 -83
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts +0 -99
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts +0 -9
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts +0 -119
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts +0 -110
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts.map +0 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts +0 -111
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts +0 -8
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts +0 -95
- package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts +0 -85
- package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts +0 -67
- package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts +0 -12
- package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts +0 -12
- package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts +0 -8
- package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts +0 -8
- package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts +0 -5
- package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts.map +0 -1
- package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +0 -134
- package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts +0 -3
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts +0 -7
- package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts +0 -7
- package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts.map +0 -1
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts +0 -10
- package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts.map +0 -1
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceReportTypes = void 0;
|
|
4
|
-
const StringList_1 = require("../../../../shared/domain/value-objects/StringList");
|
|
5
|
-
const ReportType_1 = require("../enums/ReportType");
|
|
6
|
-
const InvalidReportTypeError_1 = require("../exceptions/InvalidReportTypeError");
|
|
7
|
-
class ServiceReportTypes extends StringList_1.StringList {
|
|
8
|
-
constructor(reportTypes, skipDomainValidation) {
|
|
9
|
-
super(reportTypes, skipDomainValidation, ServiceReportTypes.PROPERTY_NAME, { allowEmpty: true });
|
|
10
|
-
if (skipDomainValidation === false) {
|
|
11
|
-
this.validateReportTypes(reportTypes);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
static create(reportTypes) {
|
|
15
|
-
StringList_1.StringList.guardAgainstInvalidStringList(reportTypes, ServiceReportTypes.PROPERTY_NAME);
|
|
16
|
-
return new ServiceReportTypes(reportTypes, false);
|
|
17
|
-
}
|
|
18
|
-
static fromPrimitives(primitives) {
|
|
19
|
-
const value = primitives.map((primitive) => primitive);
|
|
20
|
-
return new ServiceReportTypes(value, true);
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Valida que todos los tipos de reporte sean válidos.
|
|
24
|
-
*/
|
|
25
|
-
validateReportTypes(reportTypes) {
|
|
26
|
-
for (const reportType of reportTypes) {
|
|
27
|
-
if (!ServiceReportTypes.VALID_REPORT_TYPES.includes(reportType)) {
|
|
28
|
-
throw InvalidReportTypeError_1.InvalidReportTypeError.create(reportType, ServiceReportTypes.VALID_REPORT_TYPES);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Verifica si incluye reportes auditables.
|
|
34
|
-
*/
|
|
35
|
-
includesAuditableReports() {
|
|
36
|
-
return this.value.includes(ReportType_1.ReportType.AUDITABLE);
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Verifica si incluye reportes técnicos.
|
|
40
|
-
*/
|
|
41
|
-
includesTechnicalReports() {
|
|
42
|
-
return this.value.includes(ReportType_1.ReportType.TECHNICAL);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Verifica si incluye reportes ejecutivos.
|
|
46
|
-
*/
|
|
47
|
-
includesExecutiveReports() {
|
|
48
|
-
return this.value.includes(ReportType_1.ReportType.EXECUTIVE);
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Verifica si incluye múltiples tipos de reporte.
|
|
52
|
-
*/
|
|
53
|
-
hasMultipleReportTypes() {
|
|
54
|
-
return this.value.length > 1;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Verifica si incluye todos los tipos de reporte.
|
|
58
|
-
*/
|
|
59
|
-
includesAllReportTypes() {
|
|
60
|
-
return this.value.length === ServiceReportTypes.VALID_REPORT_TYPES.length
|
|
61
|
-
&& ServiceReportTypes.VALID_REPORT_TYPES.every((type) => this.value.includes(type));
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Verifica si solo incluye reportes de cumplimiento (auditables).
|
|
65
|
-
*/
|
|
66
|
-
isComplianceOnly() {
|
|
67
|
-
return this.value.length === 1 && this.includesAuditableReports();
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Verifica si solo incluye reportes técnicos.
|
|
71
|
-
*/
|
|
72
|
-
isTechnicalOnly() {
|
|
73
|
-
return this.value.length === 1 && this.includesTechnicalReports();
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Verifica si solo incluye reportes ejecutivos.
|
|
77
|
-
*/
|
|
78
|
-
isExecutiveOnly() {
|
|
79
|
-
return this.value.length === 1 && this.includesExecutiveReports();
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Verifica si incluye reportes para audiencias técnicas.
|
|
83
|
-
*/
|
|
84
|
-
includesTechnicalAudience() {
|
|
85
|
-
return this.includesTechnicalReports() || this.includesAuditableReports();
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Verifica si incluye reportes para audiencias ejecutivas.
|
|
89
|
-
*/
|
|
90
|
-
includesExecutiveAudience() {
|
|
91
|
-
return this.includesExecutiveReports();
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Obtiene los tipos de reporte válidos.
|
|
95
|
-
*/
|
|
96
|
-
static getValidReportTypes() {
|
|
97
|
-
return Object.freeze([...ServiceReportTypes.VALID_REPORT_TYPES]);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Verifica si un valor es un tipo de reporte válido.
|
|
101
|
-
*/
|
|
102
|
-
static isValidReportType(reportType) {
|
|
103
|
-
return ServiceReportTypes.VALID_REPORT_TYPES.includes(reportType);
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Agrega un nuevo tipo de reporte si no está ya presente.
|
|
107
|
-
*/
|
|
108
|
-
addReportType(reportType) {
|
|
109
|
-
if (this.value.includes(reportType)) {
|
|
110
|
-
return this;
|
|
111
|
-
}
|
|
112
|
-
const newReportTypes = [...this.value, reportType];
|
|
113
|
-
return new ServiceReportTypes(newReportTypes, false);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Remueve un tipo de reporte específico.
|
|
117
|
-
*/
|
|
118
|
-
removeReportType(reportType) {
|
|
119
|
-
const newReportTypes = this.value.filter((type) => type !== reportType);
|
|
120
|
-
return new ServiceReportTypes(newReportTypes, false);
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Obtiene los tipos de reporte faltantes.
|
|
124
|
-
*/
|
|
125
|
-
getMissingReportTypes() {
|
|
126
|
-
return ServiceReportTypes.VALID_REPORT_TYPES.filter((type) => !this.value.includes(type));
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Obtiene el nivel de cobertura de reportes.
|
|
130
|
-
*/
|
|
131
|
-
getCoverageLevel() {
|
|
132
|
-
if (this.value.length === 0)
|
|
133
|
-
return 'none';
|
|
134
|
-
if (this.value.length === 1)
|
|
135
|
-
return 'basic';
|
|
136
|
-
if (this.value.length === 2)
|
|
137
|
-
return 'standard';
|
|
138
|
-
return 'comprehensive';
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Obtiene las audiencias objetivo de los reportes.
|
|
142
|
-
*/
|
|
143
|
-
getTargetAudiences() {
|
|
144
|
-
const audiences = [];
|
|
145
|
-
if (this.includesAuditableReports()) {
|
|
146
|
-
audiences.push('Auditores externos', 'Organismos regulatorios');
|
|
147
|
-
}
|
|
148
|
-
if (this.includesTechnicalReports()) {
|
|
149
|
-
audiences.push('Equipos técnicos', 'Especialistas en sostenibilidad');
|
|
150
|
-
}
|
|
151
|
-
if (this.includesExecutiveReports()) {
|
|
152
|
-
audiences.push('Alta dirección', 'Stakeholders externos');
|
|
153
|
-
}
|
|
154
|
-
return audiences;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Obtiene las características de los tipos de reporte.
|
|
158
|
-
*/
|
|
159
|
-
getReportCharacteristics() {
|
|
160
|
-
const characteristics = {};
|
|
161
|
-
if (this.includesAuditableReports()) {
|
|
162
|
-
characteristics[ReportType_1.ReportType.AUDITABLE] = {
|
|
163
|
-
purpose: 'Cumplimiento y verificación',
|
|
164
|
-
audience: 'Auditores y reguladores',
|
|
165
|
-
detail: 'Alto nivel de detalle y trazabilidad',
|
|
166
|
-
format: 'Formal y estructurado',
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
if (this.includesTechnicalReports()) {
|
|
170
|
-
characteristics[ReportType_1.ReportType.TECHNICAL] = {
|
|
171
|
-
purpose: 'Análisis técnico detallado',
|
|
172
|
-
audience: 'Equipos técnicos y especialistas',
|
|
173
|
-
detail: 'Datos técnicos y metodológicos',
|
|
174
|
-
format: 'Detallado con anexos técnicos',
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
if (this.includesExecutiveReports()) {
|
|
178
|
-
characteristics[ReportType_1.ReportType.EXECUTIVE] = {
|
|
179
|
-
purpose: 'Resumen ejecutivo y toma de decisiones',
|
|
180
|
-
audience: 'Alta dirección y stakeholders',
|
|
181
|
-
detail: 'Resumen con insights clave',
|
|
182
|
-
format: 'Visual y fácil de entender',
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
return characteristics;
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Verifica si requiere recursos especializados.
|
|
189
|
-
*/
|
|
190
|
-
requiresSpecializedResources() {
|
|
191
|
-
// Múltiples tipos de reporte requieren recursos especializados
|
|
192
|
-
return this.hasMultipleReportTypes() || this.includesAuditableReports();
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Obtiene una descripción de los tipos de reporte incluidos.
|
|
196
|
-
*/
|
|
197
|
-
getDescription() {
|
|
198
|
-
if (this.value.length === 0) {
|
|
199
|
-
return 'Sin tipos de reporte definidos';
|
|
200
|
-
}
|
|
201
|
-
const typeDescriptions = {
|
|
202
|
-
[ReportType_1.ReportType.AUDITABLE]: 'Reportes Auditables',
|
|
203
|
-
[ReportType_1.ReportType.TECHNICAL]: 'Reportes Técnicos',
|
|
204
|
-
[ReportType_1.ReportType.EXECUTIVE]: 'Reportes Ejecutivos',
|
|
205
|
-
};
|
|
206
|
-
const descriptions = this.value.map((type) => typeDescriptions[type]);
|
|
207
|
-
return descriptions.join(', ');
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Convierte los tipos de reporte a enum para uso tipado.
|
|
211
|
-
*/
|
|
212
|
-
toEnumArray() {
|
|
213
|
-
return this.value;
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Obtiene el número de tipos de reporte únicos.
|
|
217
|
-
*/
|
|
218
|
-
getReportTypeCount() {
|
|
219
|
-
return this.value.length;
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* Verifica si está vacío (sin tipos de reporte).
|
|
223
|
-
*/
|
|
224
|
-
isEmpty() {
|
|
225
|
-
return this.value.length === 0;
|
|
226
|
-
}
|
|
227
|
-
toPrimitives() {
|
|
228
|
-
return this.value;
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Representación como string descriptiva.
|
|
232
|
-
*/
|
|
233
|
-
toString() {
|
|
234
|
-
if (this.isEmpty()) {
|
|
235
|
-
return 'No report types';
|
|
236
|
-
}
|
|
237
|
-
return this.getDescription();
|
|
238
|
-
}
|
|
239
|
-
toEnums() {
|
|
240
|
-
return this.value;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
exports.ServiceReportTypes = ServiceReportTypes;
|
|
244
|
-
ServiceReportTypes.PROPERTY_NAME = 'reportTypes';
|
|
245
|
-
// Tipos de reporte válidos
|
|
246
|
-
ServiceReportTypes.VALID_REPORT_TYPES = Object.values(ReportType_1.ReportType);
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceStatus = void 0;
|
|
4
|
-
const String_1 = require("../../../../shared/domain/value-objects/String");
|
|
5
|
-
const ServiceStatus_1 = require("../enums/ServiceStatus");
|
|
6
|
-
const InvalidServiceStatusError_1 = require("../exceptions/InvalidServiceStatusError");
|
|
7
|
-
class ServiceStatus extends String_1.String {
|
|
8
|
-
constructor(value, skipDomainValidation) {
|
|
9
|
-
super(value, skipDomainValidation, ServiceStatus.PROPERTY_NAME);
|
|
10
|
-
if (skipDomainValidation === false) {
|
|
11
|
-
this.validateServiceStatus(value);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
static create(value) {
|
|
15
|
-
String_1.String.guardAgainstEmptyValue(value, ServiceStatus.PROPERTY_NAME);
|
|
16
|
-
String_1.String.guardAgainstInvalidType(value, ServiceStatus.PROPERTY_NAME);
|
|
17
|
-
return new ServiceStatus(value, false);
|
|
18
|
-
}
|
|
19
|
-
static fromPrimitives(primitive) {
|
|
20
|
-
const value = primitive;
|
|
21
|
-
return new ServiceStatus(value, true);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Valida que el valor sea un estado de servicio válido.
|
|
25
|
-
*/
|
|
26
|
-
validateServiceStatus(value) {
|
|
27
|
-
if (!ServiceStatus.VALID_SERVICE_STATUSES.includes(value)) {
|
|
28
|
-
throw InvalidServiceStatusError_1.InvalidServiceStatusError.create(value, ServiceStatus.VALID_SERVICE_STATUSES);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Verifica si el servicio está activo.
|
|
33
|
-
*/
|
|
34
|
-
isActive() {
|
|
35
|
-
return this.value === ServiceStatus_1.ServiceStatus.ACTIVE;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Verifica si el servicio está inactivo.
|
|
39
|
-
*/
|
|
40
|
-
isInactive() {
|
|
41
|
-
return this.value === ServiceStatus_1.ServiceStatus.INACTIVE;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Verifica si el servicio está descontinuado.
|
|
45
|
-
*/
|
|
46
|
-
isDiscontinued() {
|
|
47
|
-
return this.value === ServiceStatus_1.ServiceStatus.DISCONTINUED;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Verifica si el servicio está disponible para uso (activo).
|
|
51
|
-
*/
|
|
52
|
-
isAvailable() {
|
|
53
|
-
return this.isActive();
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Verifica si el servicio no está disponible (inactivo o descontinuado).
|
|
57
|
-
*/
|
|
58
|
-
isUnavailable() {
|
|
59
|
-
return this.isInactive() || this.isDiscontinued();
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Verifica si es un estado temporal (inactivo).
|
|
63
|
-
*/
|
|
64
|
-
isTemporaryStatus() {
|
|
65
|
-
return this.isInactive();
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Verifica si es un estado permanente (activo o descontinuado).
|
|
69
|
-
*/
|
|
70
|
-
isPermanentStatus() {
|
|
71
|
-
return this.isActive() || this.isDiscontinued();
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Verifica si el servicio puede ser reactivado.
|
|
75
|
-
*/
|
|
76
|
-
canBeReactivated() {
|
|
77
|
-
// Los servicios inactivos pueden ser reactivados, los descontinuados no
|
|
78
|
-
return this.isInactive();
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Verifica si el servicio puede ser contratado.
|
|
82
|
-
*/
|
|
83
|
-
canBeContracted() {
|
|
84
|
-
return this.isActive();
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Verifica si requiere migración (descontinuado).
|
|
88
|
-
*/
|
|
89
|
-
requiresMigration() {
|
|
90
|
-
return this.isDiscontinued();
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Obtiene los estados de servicio válidos.
|
|
94
|
-
*/
|
|
95
|
-
static getValidServiceStatuses() {
|
|
96
|
-
return Object.freeze([...ServiceStatus.VALID_SERVICE_STATUSES]);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Verifica si un valor es un estado de servicio válido.
|
|
100
|
-
*/
|
|
101
|
-
static isValidServiceStatus(value) {
|
|
102
|
-
return ServiceStatus.VALID_SERVICE_STATUSES.includes(value);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Obtiene la descripción del estado del servicio.
|
|
106
|
-
*/
|
|
107
|
-
getDescription() {
|
|
108
|
-
const descriptions = {
|
|
109
|
-
[ServiceStatus_1.ServiceStatus.ACTIVE]: 'Servicio activo y disponible para contratación',
|
|
110
|
-
[ServiceStatus_1.ServiceStatus.INACTIVE]: 'Servicio temporalmente inactivo, no disponible para nuevas contrataciones',
|
|
111
|
-
[ServiceStatus_1.ServiceStatus.DISCONTINUED]: 'Servicio descontinuado permanentemente, requiere migración',
|
|
112
|
-
};
|
|
113
|
-
return descriptions[this.value] || this.value;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Obtiene el impacto del estado en el negocio.
|
|
117
|
-
*/
|
|
118
|
-
getBusinessImpact() {
|
|
119
|
-
const impacts = {
|
|
120
|
-
[ServiceStatus_1.ServiceStatus.ACTIVE]: 'Generación de ingresos activa',
|
|
121
|
-
[ServiceStatus_1.ServiceStatus.INACTIVE]: 'Pérdida temporal de ingresos',
|
|
122
|
-
[ServiceStatus_1.ServiceStatus.DISCONTINUED]: 'Fin del ciclo de vida del producto',
|
|
123
|
-
};
|
|
124
|
-
return impacts[this.value] || 'Impacto desconocido';
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Obtiene las acciones recomendadas según el estado.
|
|
128
|
-
*/
|
|
129
|
-
getRecommendedActions() {
|
|
130
|
-
const actions = {
|
|
131
|
-
[ServiceStatus_1.ServiceStatus.ACTIVE]: [
|
|
132
|
-
'Monitorear rendimiento del servicio',
|
|
133
|
-
'Mantener calidad del servicio',
|
|
134
|
-
'Promocionar activamente',
|
|
135
|
-
],
|
|
136
|
-
[ServiceStatus_1.ServiceStatus.INACTIVE]: [
|
|
137
|
-
'Evaluar razones de inactividad',
|
|
138
|
-
'Planificar reactivación si es viable',
|
|
139
|
-
'Comunicar estado a clientes existentes',
|
|
140
|
-
],
|
|
141
|
-
[ServiceStatus_1.ServiceStatus.DISCONTINUED]: [
|
|
142
|
-
'Planificar migración de clientes existentes',
|
|
143
|
-
'Comunicar timeline de descontinuación',
|
|
144
|
-
'Ofrecer alternativas equivalentes',
|
|
145
|
-
],
|
|
146
|
-
};
|
|
147
|
-
return actions[this.value] || [];
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Obtiene el nivel de prioridad de atención.
|
|
151
|
-
*/
|
|
152
|
-
getPriorityLevel() {
|
|
153
|
-
const priorities = {
|
|
154
|
-
[ServiceStatus_1.ServiceStatus.ACTIVE]: 'high',
|
|
155
|
-
[ServiceStatus_1.ServiceStatus.INACTIVE]: 'medium',
|
|
156
|
-
[ServiceStatus_1.ServiceStatus.DISCONTINUED]: 'low',
|
|
157
|
-
};
|
|
158
|
-
return priorities[this.value] || 'medium';
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Verifica si el estado permite actualizaciones del servicio.
|
|
162
|
-
*/
|
|
163
|
-
allowsServiceUpdates() {
|
|
164
|
-
// Solo servicios activos e inactivos permiten actualizaciones
|
|
165
|
-
return this.isActive() || this.isInactive();
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Obtiene las características del estado del servicio.
|
|
169
|
-
*/
|
|
170
|
-
getCharacteristics() {
|
|
171
|
-
return {
|
|
172
|
-
isAvailable: this.isAvailable(),
|
|
173
|
-
isTemporary: this.isTemporaryStatus(),
|
|
174
|
-
canBeReactivated: this.canBeReactivated(),
|
|
175
|
-
canBeContracted: this.canBeContracted(),
|
|
176
|
-
requiresMigration: this.requiresMigration(),
|
|
177
|
-
allowsUpdates: this.allowsServiceUpdates(),
|
|
178
|
-
priorityLevel: this.getPriorityLevel(),
|
|
179
|
-
businessImpact: this.getBusinessImpact(),
|
|
180
|
-
recommendedActions: this.getRecommendedActions(),
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Obtiene los estados de transición válidos desde el estado actual.
|
|
185
|
-
*/
|
|
186
|
-
getValidTransitions() {
|
|
187
|
-
const transitions = {
|
|
188
|
-
[ServiceStatus_1.ServiceStatus.ACTIVE]: [ServiceStatus_1.ServiceStatus.INACTIVE, ServiceStatus_1.ServiceStatus.DISCONTINUED],
|
|
189
|
-
[ServiceStatus_1.ServiceStatus.INACTIVE]: [ServiceStatus_1.ServiceStatus.ACTIVE, ServiceStatus_1.ServiceStatus.DISCONTINUED],
|
|
190
|
-
[ServiceStatus_1.ServiceStatus.DISCONTINUED]: [], // No hay transiciones desde descontinuado
|
|
191
|
-
};
|
|
192
|
-
return transitions[this.value] || [];
|
|
193
|
-
}
|
|
194
|
-
/**
|
|
195
|
-
* Verifica si puede transicionar a un estado específico.
|
|
196
|
-
*/
|
|
197
|
-
canTransitionTo(targetStatus) {
|
|
198
|
-
return this.getValidTransitions().includes(targetStatus);
|
|
199
|
-
}
|
|
200
|
-
toPrimitives() {
|
|
201
|
-
return this.value;
|
|
202
|
-
}
|
|
203
|
-
toEnum() {
|
|
204
|
-
return this.value;
|
|
205
|
-
}
|
|
206
|
-
/**
|
|
207
|
-
* Representación como string descriptiva.
|
|
208
|
-
*/
|
|
209
|
-
toString() {
|
|
210
|
-
const statusNames = {
|
|
211
|
-
[ServiceStatus_1.ServiceStatus.ACTIVE]: 'Activo',
|
|
212
|
-
[ServiceStatus_1.ServiceStatus.INACTIVE]: 'Inactivo',
|
|
213
|
-
[ServiceStatus_1.ServiceStatus.DISCONTINUED]: 'Descontinuado',
|
|
214
|
-
};
|
|
215
|
-
return statusNames[this.value] || this.value;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
exports.ServiceStatus = ServiceStatus;
|
|
219
|
-
ServiceStatus.PROPERTY_NAME = 'status';
|
|
220
|
-
// Estados de servicio válidos
|
|
221
|
-
ServiceStatus.VALID_SERVICE_STATUSES = Object.values(ServiceStatus_1.ServiceStatus);
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceType = void 0;
|
|
4
|
-
const String_1 = require("../../../../shared/domain/value-objects/String");
|
|
5
|
-
const ServiceType_1 = require("../enums/ServiceType");
|
|
6
|
-
const InvalidServiceTypeError_1 = require("../exceptions/InvalidServiceTypeError");
|
|
7
|
-
class ServiceType extends String_1.String {
|
|
8
|
-
constructor(value, skipDomainValidation) {
|
|
9
|
-
super(value, skipDomainValidation, ServiceType.PROPERTY_NAME);
|
|
10
|
-
if (skipDomainValidation === false) {
|
|
11
|
-
this.validateServiceType(value);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
static create(value) {
|
|
15
|
-
String_1.String.guardAgainstEmptyValue(value, ServiceType.PROPERTY_NAME);
|
|
16
|
-
String_1.String.guardAgainstInvalidType(value, ServiceType.PROPERTY_NAME);
|
|
17
|
-
return new ServiceType(value, false);
|
|
18
|
-
}
|
|
19
|
-
static fromPrimitives(primitive) {
|
|
20
|
-
const value = primitive;
|
|
21
|
-
return new ServiceType(value, true);
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Valida que el valor sea un tipo de servicio válido.
|
|
25
|
-
*/
|
|
26
|
-
validateServiceType(value) {
|
|
27
|
-
if (!ServiceType.VALID_SERVICE_TYPES.includes(value)) {
|
|
28
|
-
throw InvalidServiceTypeError_1.InvalidServiceTypeError.create(value, ServiceType.VALID_SERVICE_TYPES);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Verifica si es un servicio base.
|
|
33
|
-
*/
|
|
34
|
-
isBaseService() {
|
|
35
|
-
return this.value === ServiceType_1.ServiceType.BASE_SERVICE;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Verifica si es un servicio adicional.
|
|
39
|
-
*/
|
|
40
|
-
isAdditionalService() {
|
|
41
|
-
return this.value === ServiceType_1.ServiceType.ADDITIONAL_SERVICE;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Verifica si es una característica de plataforma.
|
|
45
|
-
*/
|
|
46
|
-
isPlatformFeature() {
|
|
47
|
-
return this.value === ServiceType_1.ServiceType.PLATFORM_FEATURE;
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Verifica si es un servicio dependiente.
|
|
51
|
-
*/
|
|
52
|
-
isDependentService() {
|
|
53
|
-
return this.value === ServiceType_1.ServiceType.DEPENDENT_SERVICE;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Verifica si es un servicio principal (base o adicional).
|
|
57
|
-
*/
|
|
58
|
-
isPrincipalService() {
|
|
59
|
-
return this.isBaseService() || this.isAdditionalService();
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Verifica si es un servicio que requiere dependencias.
|
|
63
|
-
*/
|
|
64
|
-
requiresDependencies() {
|
|
65
|
-
return this.isDependentService();
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Verifica si es un servicio que genera ingresos directos.
|
|
69
|
-
*/
|
|
70
|
-
generatesDirectRevenue() {
|
|
71
|
-
// Los servicios base, adicionales y dependientes generan ingresos directos
|
|
72
|
-
return this.isBaseService() || this.isAdditionalService() || this.isDependentService();
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Verifica si es un servicio que mejora la propuesta de valor.
|
|
76
|
-
*/
|
|
77
|
-
enhancesValueProposition() {
|
|
78
|
-
// Las características de plataforma mejoran la propuesta de valor
|
|
79
|
-
return this.isPlatformFeature();
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Verifica si puede ser contratado independientemente.
|
|
83
|
-
*/
|
|
84
|
-
canBeContractedIndependently() {
|
|
85
|
-
// Solo servicios base y adicionales pueden ser contratados independientemente
|
|
86
|
-
return this.isBaseService() || this.isAdditionalService();
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Verifica si puede ser incluido en paquetes.
|
|
90
|
-
*/
|
|
91
|
-
canBeIncludedInPackages() {
|
|
92
|
-
// Todos los tipos pueden ser incluidos en paquetes
|
|
93
|
-
return true;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Verifica si requiere configuración especial.
|
|
97
|
-
*/
|
|
98
|
-
requiresSpecialConfiguration() {
|
|
99
|
-
// Características de plataforma y servicios dependientes requieren configuración especial
|
|
100
|
-
return this.isPlatformFeature() || this.isDependentService();
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Obtiene los tipos de servicio válidos.
|
|
104
|
-
*/
|
|
105
|
-
static getValidServiceTypes() {
|
|
106
|
-
return Object.freeze([...ServiceType.VALID_SERVICE_TYPES]);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Verifica si un valor es un tipo de servicio válido.
|
|
110
|
-
*/
|
|
111
|
-
static isValidServiceType(value) {
|
|
112
|
-
return ServiceType.VALID_SERVICE_TYPES.includes(value);
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Obtiene la descripción del tipo de servicio.
|
|
116
|
-
*/
|
|
117
|
-
getDescription() {
|
|
118
|
-
const descriptions = {
|
|
119
|
-
[ServiceType_1.ServiceType.BASE_SERVICE]: 'Servicio principal que constituye la oferta base',
|
|
120
|
-
[ServiceType_1.ServiceType.ADDITIONAL_SERVICE]: 'Servicio adicional opcional que complementa la oferta',
|
|
121
|
-
[ServiceType_1.ServiceType.PLATFORM_FEATURE]: 'Característica de plataforma que mejora la experiencia del usuario',
|
|
122
|
-
[ServiceType_1.ServiceType.DEPENDENT_SERVICE]: 'Servicio que requiere un servicio principal para funcionar',
|
|
123
|
-
};
|
|
124
|
-
return descriptions[this.value] || this.value;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Obtiene el modelo de negocio del tipo de servicio.
|
|
128
|
-
*/
|
|
129
|
-
getBusinessModel() {
|
|
130
|
-
const models = {
|
|
131
|
-
[ServiceType_1.ServiceType.BASE_SERVICE]: 'Ingreso principal recurrente',
|
|
132
|
-
[ServiceType_1.ServiceType.ADDITIONAL_SERVICE]: 'Ingreso adicional opcional',
|
|
133
|
-
[ServiceType_1.ServiceType.PLATFORM_FEATURE]: 'Valor agregado incluido',
|
|
134
|
-
[ServiceType_1.ServiceType.DEPENDENT_SERVICE]: 'Ingreso complementario condicionado',
|
|
135
|
-
};
|
|
136
|
-
return models[this.value] || 'Modelo no definido';
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Obtiene la estrategia de precio del tipo de servicio.
|
|
140
|
-
*/
|
|
141
|
-
getPricingStrategy() {
|
|
142
|
-
const strategies = {
|
|
143
|
-
[ServiceType_1.ServiceType.BASE_SERVICE]: 'Precio base competitivo',
|
|
144
|
-
[ServiceType_1.ServiceType.ADDITIONAL_SERVICE]: 'Precio premium por valor agregado',
|
|
145
|
-
[ServiceType_1.ServiceType.PLATFORM_FEATURE]: 'Incluido en precio base',
|
|
146
|
-
[ServiceType_1.ServiceType.DEPENDENT_SERVICE]: 'Precio condicionado al servicio principal',
|
|
147
|
-
};
|
|
148
|
-
return strategies[this.value] || 'Estrategia no definida';
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Obtiene el nivel de prioridad comercial.
|
|
152
|
-
*/
|
|
153
|
-
getCommercialPriority() {
|
|
154
|
-
const priorities = {
|
|
155
|
-
[ServiceType_1.ServiceType.BASE_SERVICE]: 'high',
|
|
156
|
-
[ServiceType_1.ServiceType.ADDITIONAL_SERVICE]: 'medium',
|
|
157
|
-
[ServiceType_1.ServiceType.PLATFORM_FEATURE]: 'low',
|
|
158
|
-
[ServiceType_1.ServiceType.DEPENDENT_SERVICE]: 'medium',
|
|
159
|
-
};
|
|
160
|
-
return priorities[this.value] || 'medium';
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Obtiene las características del tipo de servicio.
|
|
164
|
-
*/
|
|
165
|
-
getCharacteristics() {
|
|
166
|
-
return {
|
|
167
|
-
isPrincipal: this.isPrincipalService(),
|
|
168
|
-
requiresDependencies: this.requiresDependencies(),
|
|
169
|
-
generatesDirectRevenue: this.generatesDirectRevenue(),
|
|
170
|
-
enhancesValueProposition: this.enhancesValueProposition(),
|
|
171
|
-
canBeContractedIndependently: this.canBeContractedIndependently(),
|
|
172
|
-
canBeIncludedInPackages: this.canBeIncludedInPackages(),
|
|
173
|
-
requiresSpecialConfiguration: this.requiresSpecialConfiguration(),
|
|
174
|
-
commercialPriority: this.getCommercialPriority(),
|
|
175
|
-
businessModel: this.getBusinessModel(),
|
|
176
|
-
pricingStrategy: this.getPricingStrategy(),
|
|
177
|
-
};
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Obtiene los tipos de servicio compatibles para bundling.
|
|
181
|
-
*/
|
|
182
|
-
getCompatibleTypesForBundling() {
|
|
183
|
-
const compatibility = {
|
|
184
|
-
[ServiceType_1.ServiceType.BASE_SERVICE]: [
|
|
185
|
-
ServiceType_1.ServiceType.ADDITIONAL_SERVICE,
|
|
186
|
-
ServiceType_1.ServiceType.PLATFORM_FEATURE,
|
|
187
|
-
ServiceType_1.ServiceType.DEPENDENT_SERVICE,
|
|
188
|
-
],
|
|
189
|
-
[ServiceType_1.ServiceType.ADDITIONAL_SERVICE]: [
|
|
190
|
-
ServiceType_1.ServiceType.BASE_SERVICE,
|
|
191
|
-
ServiceType_1.ServiceType.PLATFORM_FEATURE,
|
|
192
|
-
ServiceType_1.ServiceType.DEPENDENT_SERVICE,
|
|
193
|
-
],
|
|
194
|
-
[ServiceType_1.ServiceType.PLATFORM_FEATURE]: [
|
|
195
|
-
ServiceType_1.ServiceType.BASE_SERVICE,
|
|
196
|
-
ServiceType_1.ServiceType.ADDITIONAL_SERVICE,
|
|
197
|
-
ServiceType_1.ServiceType.DEPENDENT_SERVICE,
|
|
198
|
-
],
|
|
199
|
-
[ServiceType_1.ServiceType.DEPENDENT_SERVICE]: [
|
|
200
|
-
ServiceType_1.ServiceType.BASE_SERVICE,
|
|
201
|
-
ServiceType_1.ServiceType.ADDITIONAL_SERVICE,
|
|
202
|
-
ServiceType_1.ServiceType.PLATFORM_FEATURE,
|
|
203
|
-
],
|
|
204
|
-
};
|
|
205
|
-
return compatibility[this.value] || [];
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Verifica si puede ser bundled con otro tipo de servicio.
|
|
209
|
-
*/
|
|
210
|
-
canBeBundledWith(otherType) {
|
|
211
|
-
return this.getCompatibleTypesForBundling().includes(otherType);
|
|
212
|
-
}
|
|
213
|
-
toPrimitives() {
|
|
214
|
-
return this.value;
|
|
215
|
-
}
|
|
216
|
-
toEnum() {
|
|
217
|
-
return this.value;
|
|
218
|
-
}
|
|
219
|
-
/**
|
|
220
|
-
* Representación como string descriptiva.
|
|
221
|
-
*/
|
|
222
|
-
toString() {
|
|
223
|
-
const typeNames = {
|
|
224
|
-
[ServiceType_1.ServiceType.BASE_SERVICE]: 'Servicio Base',
|
|
225
|
-
[ServiceType_1.ServiceType.ADDITIONAL_SERVICE]: 'Servicio Adicional',
|
|
226
|
-
[ServiceType_1.ServiceType.PLATFORM_FEATURE]: 'Característica de Plataforma',
|
|
227
|
-
[ServiceType_1.ServiceType.DEPENDENT_SERVICE]: 'Servicio Dependiente',
|
|
228
|
-
};
|
|
229
|
-
return typeNames[this.value] || this.value;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
exports.ServiceType = ServiceType;
|
|
233
|
-
ServiceType.PROPERTY_NAME = 'type';
|
|
234
|
-
// Tipos de servicio válidos
|
|
235
|
-
ServiceType.VALID_SERVICE_TYPES = Object.values(ServiceType_1.ServiceType);
|