@carbonbox/domain 0.2.3 → 0.2.4
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/collection-fields/domain/value-objects/CollectionFieldCollectionType.js +1 -1
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.js +3 -3
- package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.js +2 -2
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.js +20 -16
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.js +14 -10
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelLabelMappings.js +7 -7
- package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelPlaceholderMappings.js +6 -6
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationFootprintType.js +1 -1
- package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationStakeholderType.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.js +2 -1
- package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.js +263 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.js +20 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.js +9 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.js +10 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.js +19 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.js +19 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.js +19 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.js +2 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.js +131 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.js +140 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.js +247 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.js +24 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.js +26 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.js +21 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.js +23 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.js +212 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.js +193 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +24 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.js +22 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.js +246 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.js +23 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.js +246 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.js +221 -0
- package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.js +235 -0
- package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.js +2 -2
- package/build/carbonbox/shared/domain/types/ServiceCatalogReference.js +2 -0
- package/build/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.js +2 -0
- package/build/carbonbox/shared/domain/value-objects/ServiceCatalogReference.js +301 -0
- package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +75 -75
- package/build/main/index.js +39 -37
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.d.ts +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.d.ts +1 -1
- package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.d.ts +1 -4
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.d.ts +2 -5
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.d.ts +52 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.d.ts +60 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.d.ts +17 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.d.ts +6 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.d.ts +7 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts +8 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts +8 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts +8 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.d.ts +22 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +19 -19
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.d.ts +35 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.d.ts +35 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.d.ts +71 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.d.ts +54 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.d.ts +120 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.d.ts +11 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.d.ts +92 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.d.ts +83 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.d.ts +99 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.d.ts +9 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.d.ts +119 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.d.ts +110 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.d.ts +111 -0
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.d.ts.map +1 -0
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingPrimitives.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingProps.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingProps.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.d.ts +7 -7
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReference.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReference.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.d.ts +8 -0
- package/build/types/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts +134 -0
- package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +18 -18
- package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +1 -1
- package/build/types/main/index.d.ts +22 -21
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceCatalogStatus = void 0;
|
|
4
|
+
const String_1 = require("../../../../shared/domain/value-objects/String");
|
|
5
|
+
const ServiceCatalogStatus_1 = require("../enums/ServiceCatalogStatus");
|
|
6
|
+
const InvalidServiceCatalogStatusError_1 = require("../exceptions/InvalidServiceCatalogStatusError");
|
|
7
|
+
class ServiceCatalogStatus extends String_1.String {
|
|
8
|
+
constructor(value, skipDomainValidation) {
|
|
9
|
+
super(value, skipDomainValidation, ServiceCatalogStatus.PROPERTY_NAME);
|
|
10
|
+
if (skipDomainValidation === false) {
|
|
11
|
+
this.validateServiceCatalogStatus(value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
static create(value) {
|
|
15
|
+
String_1.String.guardAgainstEmptyValue(value, ServiceCatalogStatus.PROPERTY_NAME);
|
|
16
|
+
String_1.String.guardAgainstInvalidType(value, ServiceCatalogStatus.PROPERTY_NAME);
|
|
17
|
+
return new ServiceCatalogStatus(value, false);
|
|
18
|
+
}
|
|
19
|
+
static fromPrimitives(primitive) {
|
|
20
|
+
const value = primitive;
|
|
21
|
+
return new ServiceCatalogStatus(value, true);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Valida que el valor sea un estado de servicio válido.
|
|
25
|
+
*/
|
|
26
|
+
validateServiceCatalogStatus(value) {
|
|
27
|
+
if (!ServiceCatalogStatus.VALID_SERVICE_STATUSES.includes(value)) {
|
|
28
|
+
throw InvalidServiceCatalogStatusError_1.InvalidServiceCatalogStatusError.create(value, ServiceCatalogStatus.VALID_SERVICE_STATUSES);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Verifica si el servicio está activo.
|
|
33
|
+
*/
|
|
34
|
+
isActive() {
|
|
35
|
+
return this.value === ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Verifica si el servicio está inactivo.
|
|
39
|
+
*/
|
|
40
|
+
isInactive() {
|
|
41
|
+
return this.value === ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Verifica si el servicio está descontinuado.
|
|
45
|
+
*/
|
|
46
|
+
isDiscontinued() {
|
|
47
|
+
return this.value === ServiceCatalogStatus_1.ServiceCatalogStatus.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 getValidServiceCatalogStatuses() {
|
|
96
|
+
return Object.freeze([...ServiceCatalogStatus.VALID_SERVICE_STATUSES]);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Verifica si un valor es un estado de servicio válido.
|
|
100
|
+
*/
|
|
101
|
+
static isValidServiceCatalogStatus(value) {
|
|
102
|
+
return ServiceCatalogStatus.VALID_SERVICE_STATUSES.includes(value);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Obtiene la descripción del estado del servicio.
|
|
106
|
+
*/
|
|
107
|
+
getDescription() {
|
|
108
|
+
const descriptions = {
|
|
109
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE]: 'Servicio activo y disponible para contratación',
|
|
110
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE]: 'Servicio temporalmente inactivo, no disponible para nuevas contrataciones',
|
|
111
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.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
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE]: 'Generación de ingresos activa',
|
|
121
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE]: 'Pérdida temporal de ingresos',
|
|
122
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.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
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE]: [
|
|
132
|
+
'Monitorear rendimiento del servicio',
|
|
133
|
+
'Mantener calidad del servicio',
|
|
134
|
+
'Promocionar activamente',
|
|
135
|
+
],
|
|
136
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE]: [
|
|
137
|
+
'Evaluar razones de inactividad',
|
|
138
|
+
'Planificar reactivación si es viable',
|
|
139
|
+
'Comunicar estado a clientes existentes',
|
|
140
|
+
],
|
|
141
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.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
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE]: 'high',
|
|
155
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE]: 'medium',
|
|
156
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.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
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE]: [ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE, ServiceCatalogStatus_1.ServiceCatalogStatus.DISCONTINUED],
|
|
189
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE]: [ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE, ServiceCatalogStatus_1.ServiceCatalogStatus.DISCONTINUED],
|
|
190
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.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
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.ACTIVE]: 'Activo',
|
|
212
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.INACTIVE]: 'Inactivo',
|
|
213
|
+
[ServiceCatalogStatus_1.ServiceCatalogStatus.DISCONTINUED]: 'Descontinuado',
|
|
214
|
+
};
|
|
215
|
+
return statusNames[this.value] || this.value;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
exports.ServiceCatalogStatus = ServiceCatalogStatus;
|
|
219
|
+
ServiceCatalogStatus.PROPERTY_NAME = 'status';
|
|
220
|
+
// Estados de servicio válidos
|
|
221
|
+
ServiceCatalogStatus.VALID_SERVICE_STATUSES = Object.values(ServiceCatalogStatus_1.ServiceCatalogStatus);
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceCatalogType = void 0;
|
|
4
|
+
const String_1 = require("../../../../shared/domain/value-objects/String");
|
|
5
|
+
const ServiceCatalogType_1 = require("../enums/ServiceCatalogType");
|
|
6
|
+
const InvalidServiceCatalogTypeError_1 = require("../exceptions/InvalidServiceCatalogTypeError");
|
|
7
|
+
class ServiceCatalogType extends String_1.String {
|
|
8
|
+
constructor(value, skipDomainValidation) {
|
|
9
|
+
super(value, skipDomainValidation, ServiceCatalogType.PROPERTY_NAME);
|
|
10
|
+
if (skipDomainValidation === false) {
|
|
11
|
+
this.validateServiceCatalogType(value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
static create(value) {
|
|
15
|
+
String_1.String.guardAgainstEmptyValue(value, ServiceCatalogType.PROPERTY_NAME);
|
|
16
|
+
String_1.String.guardAgainstInvalidType(value, ServiceCatalogType.PROPERTY_NAME);
|
|
17
|
+
return new ServiceCatalogType(value, false);
|
|
18
|
+
}
|
|
19
|
+
static fromPrimitives(primitive) {
|
|
20
|
+
const value = primitive;
|
|
21
|
+
return new ServiceCatalogType(value, true);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Valida que el valor sea un tipo de servicio válido.
|
|
25
|
+
*/
|
|
26
|
+
validateServiceCatalogType(value) {
|
|
27
|
+
if (!ServiceCatalogType.VALID_SERVICE_TYPES.includes(value)) {
|
|
28
|
+
throw InvalidServiceCatalogTypeError_1.InvalidServiceCatalogTypeError.create(value, ServiceCatalogType.VALID_SERVICE_TYPES);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Verifica si es un servicio base.
|
|
33
|
+
*/
|
|
34
|
+
isBaseService() {
|
|
35
|
+
return this.value === ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Verifica si es un servicio adicional.
|
|
39
|
+
*/
|
|
40
|
+
isAdditionalService() {
|
|
41
|
+
return this.value === ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Verifica si es una característica de plataforma.
|
|
45
|
+
*/
|
|
46
|
+
isPlatformFeature() {
|
|
47
|
+
return this.value === ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Verifica si es un servicio dependiente.
|
|
51
|
+
*/
|
|
52
|
+
isDependentService() {
|
|
53
|
+
return this.value === ServiceCatalogType_1.ServiceCatalogType.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 getValidServiceCatalogTypes() {
|
|
106
|
+
return Object.freeze([...ServiceCatalogType.VALID_SERVICE_TYPES]);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Verifica si un valor es un tipo de servicio válido.
|
|
110
|
+
*/
|
|
111
|
+
static isValidServiceCatalogType(value) {
|
|
112
|
+
return ServiceCatalogType.VALID_SERVICE_TYPES.includes(value);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Obtiene la descripción del tipo de servicio.
|
|
116
|
+
*/
|
|
117
|
+
getDescription() {
|
|
118
|
+
const descriptions = {
|
|
119
|
+
[ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'Servicio principal que constituye la oferta base',
|
|
120
|
+
[ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'Servicio adicional opcional que complementa la oferta',
|
|
121
|
+
[ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'Característica de plataforma que mejora la experiencia del usuario',
|
|
122
|
+
[ServiceCatalogType_1.ServiceCatalogType.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
|
+
[ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'Ingreso principal recurrente',
|
|
132
|
+
[ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'Ingreso adicional opcional',
|
|
133
|
+
[ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'Valor agregado incluido',
|
|
134
|
+
[ServiceCatalogType_1.ServiceCatalogType.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
|
+
[ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'Precio base competitivo',
|
|
144
|
+
[ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'Precio premium por valor agregado',
|
|
145
|
+
[ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'Incluido en precio base',
|
|
146
|
+
[ServiceCatalogType_1.ServiceCatalogType.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
|
+
[ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'high',
|
|
156
|
+
[ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'medium',
|
|
157
|
+
[ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'low',
|
|
158
|
+
[ServiceCatalogType_1.ServiceCatalogType.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
|
+
[ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: [
|
|
185
|
+
ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE,
|
|
186
|
+
ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE,
|
|
187
|
+
ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE,
|
|
188
|
+
],
|
|
189
|
+
[ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: [
|
|
190
|
+
ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE,
|
|
191
|
+
ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE,
|
|
192
|
+
ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE,
|
|
193
|
+
],
|
|
194
|
+
[ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: [
|
|
195
|
+
ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE,
|
|
196
|
+
ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE,
|
|
197
|
+
ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE,
|
|
198
|
+
],
|
|
199
|
+
[ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE]: [
|
|
200
|
+
ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE,
|
|
201
|
+
ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE,
|
|
202
|
+
ServiceCatalogType_1.ServiceCatalogType.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
|
+
[ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'Servicio Base',
|
|
225
|
+
[ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'Servicio Adicional',
|
|
226
|
+
[ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'Característica de Plataforma',
|
|
227
|
+
[ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE]: 'Servicio Dependiente',
|
|
228
|
+
};
|
|
229
|
+
return typeNames[this.value] || this.value;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
exports.ServiceCatalogType = ServiceCatalogType;
|
|
233
|
+
ServiceCatalogType.PROPERTY_NAME = 'type';
|
|
234
|
+
// Tipos de servicio válidos
|
|
235
|
+
ServiceCatalogType.VALID_SERVICE_TYPES = Object.values(ServiceCatalogType_1.ServiceCatalogType);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ServicePricingService = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ServicePricingService extends
|
|
4
|
+
const ServiceCatalogReference_1 = require("../../../../shared/domain/value-objects/ServiceCatalogReference");
|
|
5
|
+
class ServicePricingService extends ServiceCatalogReference_1.ServiceCatalogReference {
|
|
6
6
|
constructor(value, skipDomainValidation) {
|
|
7
7
|
super(value, skipDomainValidation, ServicePricingService.PROPERTY_NAME);
|
|
8
8
|
}
|