@carbonbox/domain 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldCollectionType.js +1 -1
  2. package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.js +3 -3
  3. package/build/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.js +2 -2
  4. package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.js +20 -16
  5. package/build/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.js +14 -10
  6. package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelLabelMappings.js +7 -7
  7. package/build/carbonbox/activity-data-collection/contextual-labels/domain/value-objects/ContextualLabelPlaceholderMappings.js +6 -6
  8. package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationFootprintType.js +1 -1
  9. package/build/carbonbox/activity-data-collection/stakeholder-adaptations/domain/value-objects/StakeholderAdaptationStakeholderType.js +1 -1
  10. package/build/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.js +2 -1
  11. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.js +2 -0
  12. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.js +263 -0
  13. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.js +20 -0
  14. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.js +9 -0
  15. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.js +10 -0
  16. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.js +19 -0
  17. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.js +19 -0
  18. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.js +19 -0
  19. package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.js +2 -0
  20. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.js +2 -0
  21. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.js +2 -0
  22. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.js +131 -0
  23. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.js +22 -0
  24. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.js +22 -0
  25. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.js +140 -0
  26. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.js +247 -0
  27. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.js +24 -0
  28. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.js +26 -0
  29. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.js +21 -0
  30. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.js +23 -0
  31. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.js +212 -0
  32. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.js +193 -0
  33. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.js +22 -0
  34. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.js +22 -0
  35. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.js +24 -0
  36. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.js +22 -0
  37. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.js +22 -0
  38. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.js +22 -0
  39. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.js +22 -0
  40. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.js +22 -0
  41. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.js +22 -0
  42. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.js +246 -0
  43. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.js +23 -0
  44. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.js +246 -0
  45. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.js +221 -0
  46. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.js +235 -0
  47. package/build/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.js +2 -2
  48. package/build/carbonbox/shared/domain/types/ServiceCatalogReference.js +2 -0
  49. package/build/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.js +2 -0
  50. package/build/carbonbox/shared/domain/value-objects/ServiceCatalogReference.js +301 -0
  51. package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +75 -75
  52. package/build/main/index.js +45 -37
  53. package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.d.ts +1 -1
  54. package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDataType.d.ts.map +1 -1
  55. package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.d.ts +1 -1
  56. package/build/types/carbonbox/activity-data-collection/collection-fields/domain/value-objects/CollectionFieldDefaultValue.d.ts.map +1 -1
  57. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.d.ts +1 -4
  58. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleAction.d.ts.map +1 -1
  59. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.d.ts +2 -5
  60. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/value-objects/ConditionalFieldRuleTriggerValue.d.ts.map +1 -1
  61. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.d.ts +52 -0
  62. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IServiceCatalog.d.ts.map +1 -0
  63. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.d.ts +60 -0
  64. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/ServiceCatalog.d.ts.map +1 -0
  65. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.d.ts +17 -0
  66. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogCategory.d.ts.map +1 -0
  67. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.d.ts +6 -0
  68. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogStatus.d.ts.map +1 -0
  69. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.d.ts +7 -0
  70. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCatalogType.d.ts.map +1 -0
  71. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts +8 -0
  72. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts.map +1 -0
  73. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts +8 -0
  74. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts.map +1 -0
  75. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts +8 -0
  76. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts.map +1 -0
  77. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.d.ts +22 -0
  78. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceCatalogRepository.d.ts.map +1 -0
  79. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +19 -19
  80. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +1 -1
  81. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.d.ts +35 -0
  82. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogPrimitives.d.ts.map +1 -0
  83. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.d.ts +35 -0
  84. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceCatalogProps.d.ts.map +1 -0
  85. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.d.ts +71 -0
  86. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAdditionalUserRoles.d.ts.map +1 -0
  87. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.d.ts +9 -0
  88. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsDocumentReading.d.ts.map +1 -0
  89. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.d.ts +9 -0
  90. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogAllowsSectoralComparison.d.ts.map +1 -0
  91. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.d.ts +54 -0
  92. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogBasePricePercentage.d.ts.map +1 -0
  93. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.d.ts +120 -0
  94. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCategory.d.ts.map +1 -0
  95. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.d.ts +9 -0
  96. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCode.d.ts.map +1 -0
  97. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.d.ts +11 -0
  98. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogCreatedByStakeholder.d.ts.map +1 -0
  99. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.d.ts +9 -0
  100. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDependsOnServiceCode.d.ts.map +1 -0
  101. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.d.ts +9 -0
  102. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogDescription.d.ts.map +1 -0
  103. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.d.ts +92 -0
  104. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogExpertDedicationLevel.d.ts.map +1 -0
  105. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.d.ts +83 -0
  106. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogFixedPriceAmount.d.ts.map +1 -0
  107. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.d.ts +9 -0
  108. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasBasePrice.d.ts.map +1 -0
  109. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.d.ts +9 -0
  110. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogHasFixedPrice.d.ts.map +1 -0
  111. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts +9 -0
  112. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogId.d.ts.map +1 -0
  113. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.d.ts +9 -0
  114. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesCarbonBoxAcademy.d.ts.map +1 -0
  115. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.d.ts +9 -0
  116. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIncludesESGIndicators.d.ts.map +1 -0
  117. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.d.ts +9 -0
  118. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForCorporate.d.ts.map +1 -0
  119. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.d.ts +9 -0
  120. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForEvent.d.ts.map +1 -0
  121. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.d.ts +9 -0
  122. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsAvailableForProduct.d.ts.map +1 -0
  123. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.d.ts +9 -0
  124. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogIsRequiredService.d.ts.map +1 -0
  125. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.d.ts +99 -0
  126. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogMaxUsers.d.ts.map +1 -0
  127. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.d.ts +9 -0
  128. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogName.d.ts.map +1 -0
  129. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.d.ts +119 -0
  130. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogReportTypes.d.ts.map +1 -0
  131. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.d.ts +110 -0
  132. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogStatus.d.ts.map +1 -0
  133. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.d.ts +111 -0
  134. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCatalogType.d.ts.map +1 -0
  135. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingPrimitives.d.ts +2 -2
  136. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingPrimitives.d.ts.map +1 -1
  137. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingProps.d.ts +2 -2
  138. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/types/ServicePricingProps.d.ts.map +1 -1
  139. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.d.ts +7 -7
  140. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/value-objects/ServicePricingService.d.ts.map +1 -1
  141. package/build/types/carbonbox/shared/domain/types/ServiceCatalogReference.d.ts +8 -0
  142. package/build/types/carbonbox/shared/domain/types/ServiceCatalogReference.d.ts.map +1 -0
  143. package/build/types/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.d.ts +8 -0
  144. package/build/types/carbonbox/shared/domain/types/ServiceCatalogReferencePrimitives.d.ts.map +1 -0
  145. package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts +134 -0
  146. package/build/types/carbonbox/shared/domain/value-objects/ServiceCatalogReference.d.ts.map +1 -0
  147. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +18 -18
  148. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +1 -1
  149. package/build/types/main/index.d.ts +25 -21
  150. package/build/types/main/index.d.ts.map +1 -1
  151. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogCode = void 0;
4
+ const Code_1 = require("../../../../shared/domain/value-objects/Code");
5
+ class ServiceCatalogCode extends Code_1.Code {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogCode.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Code_1.Code.guardAgainstEmptyValue(value, ServiceCatalogCode.PROPERTY_NAME);
11
+ Code_1.Code.guardAgainstInvalidType(value, ServiceCatalogCode.PROPERTY_NAME);
12
+ Code_1.Code.guardAgainstInvalidCode(value, ServiceCatalogCode.PROPERTY_NAME);
13
+ return new ServiceCatalogCode(value, false);
14
+ }
15
+ static fromPrimitives(primitive) {
16
+ const value = primitive;
17
+ return new ServiceCatalogCode(value, true);
18
+ }
19
+ toPrimitives() {
20
+ return this.value;
21
+ }
22
+ }
23
+ exports.ServiceCatalogCode = ServiceCatalogCode;
24
+ ServiceCatalogCode.PROPERTY_NAME = 'code';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogCreatedByStakeholder = void 0;
4
+ const StakeholderReference_1 = require("../../../../shared/domain/value-objects/StakeholderReference");
5
+ class ServiceCatalogCreatedByStakeholder extends StakeholderReference_1.StakeholderReference {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogCreatedByStakeholder.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ return new ServiceCatalogCreatedByStakeholder(value, false);
11
+ }
12
+ static fromPrimitives(primitives) {
13
+ const value = {
14
+ id: primitives.id,
15
+ displayName: primitives.displayName,
16
+ roleType: primitives.roleType,
17
+ taxIdentification: primitives.taxIdentification,
18
+ };
19
+ return new ServiceCatalogCreatedByStakeholder(value, true);
20
+ }
21
+ toPrimitives() {
22
+ return this.value;
23
+ }
24
+ }
25
+ exports.ServiceCatalogCreatedByStakeholder = ServiceCatalogCreatedByStakeholder;
26
+ ServiceCatalogCreatedByStakeholder.PROPERTY_NAME = 'createdByStakeholder';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogDependsOnServiceCode = void 0;
4
+ const NullableCode_1 = require("../../../../shared/domain/value-objects/NullableCode");
5
+ class ServiceCatalogDependsOnServiceCode extends NullableCode_1.NullableCode {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogDependsOnServiceCode.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ return new ServiceCatalogDependsOnServiceCode(value, false);
11
+ }
12
+ static fromPrimitives(primitive) {
13
+ const value = primitive;
14
+ return new ServiceCatalogDependsOnServiceCode(value, true);
15
+ }
16
+ toPrimitives() {
17
+ return this.value;
18
+ }
19
+ }
20
+ exports.ServiceCatalogDependsOnServiceCode = ServiceCatalogDependsOnServiceCode;
21
+ ServiceCatalogDependsOnServiceCode.PROPERTY_NAME = 'dependsOnServiceCode';
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogDescription = void 0;
4
+ const String_1 = require("../../../../shared/domain/value-objects/String");
5
+ class ServiceCatalogDescription extends String_1.String {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogDescription.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ String_1.String.guardAgainstEmptyValue(value, ServiceCatalogDescription.PROPERTY_NAME);
11
+ String_1.String.guardAgainstInvalidType(value, ServiceCatalogDescription.PROPERTY_NAME);
12
+ return new ServiceCatalogDescription(value, false);
13
+ }
14
+ static fromPrimitives(primitive) {
15
+ const value = primitive;
16
+ return new ServiceCatalogDescription(value, true);
17
+ }
18
+ toPrimitives() {
19
+ return this.value;
20
+ }
21
+ }
22
+ exports.ServiceCatalogDescription = ServiceCatalogDescription;
23
+ ServiceCatalogDescription.PROPERTY_NAME = 'description';
@@ -0,0 +1,212 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogExpertDedicationLevel = void 0;
4
+ const NullableString_1 = require("../../../../shared/domain/value-objects/NullableString");
5
+ const ExpertDedicationLevel_1 = require("../enums/ExpertDedicationLevel");
6
+ const InvalidExpertDedicationLevelError_1 = require("../exceptions/InvalidExpertDedicationLevelError");
7
+ class ServiceCatalogExpertDedicationLevel extends NullableString_1.NullableString {
8
+ constructor(value, skipDomainValidation) {
9
+ super(value, skipDomainValidation, ServiceCatalogExpertDedicationLevel.PROPERTY_NAME);
10
+ if (skipDomainValidation === false) {
11
+ this.validateExpertDedicationLevel(value);
12
+ }
13
+ }
14
+ static create(value) {
15
+ return new ServiceCatalogExpertDedicationLevel(value, false);
16
+ }
17
+ static fromPrimitives(primitive) {
18
+ const value = primitive;
19
+ return new ServiceCatalogExpertDedicationLevel(value, true);
20
+ }
21
+ /**
22
+ * Valida que el valor sea un nivel de dedicación de experto válido cuando no es null.
23
+ */
24
+ validateExpertDedicationLevel(value) {
25
+ if (value !== null && !ServiceCatalogExpertDedicationLevel.VALID_DEDICATION_LEVELS.includes(value)) {
26
+ throw InvalidExpertDedicationLevelError_1.InvalidExpertDedicationLevelError.create(value, ServiceCatalogExpertDedicationLevel.VALID_DEDICATION_LEVELS);
27
+ }
28
+ }
29
+ /**
30
+ * Verifica si es dedicación completa (full time).
31
+ */
32
+ isFullTime() {
33
+ if (!this.hasValue())
34
+ return null;
35
+ return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME;
36
+ }
37
+ /**
38
+ * Verifica si es dedicación de 80 horas.
39
+ */
40
+ isEightyHours() {
41
+ if (!this.hasValue())
42
+ return null;
43
+ return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS;
44
+ }
45
+ /**
46
+ * Verifica si es dedicación de 40 horas.
47
+ */
48
+ isFortyHours() {
49
+ if (!this.hasValue())
50
+ return null;
51
+ return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS;
52
+ }
53
+ /**
54
+ * Verifica si es dedicación de 20 horas.
55
+ */
56
+ isTwentyHours() {
57
+ if (!this.hasValue())
58
+ return null;
59
+ return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS;
60
+ }
61
+ /**
62
+ * Verifica si es una dedicación alta (full time o 80 horas).
63
+ */
64
+ isHighDedication() {
65
+ if (!this.hasValue())
66
+ return null;
67
+ return this.isFullTime() || this.isEightyHours();
68
+ }
69
+ /**
70
+ * Verifica si es una dedicación baja (20 o 40 horas).
71
+ */
72
+ isLowDedication() {
73
+ if (!this.hasValue())
74
+ return null;
75
+ return this.isTwentyHours() || this.isFortyHours();
76
+ }
77
+ /**
78
+ * Verifica si es dedicación de tiempo parcial (no full time).
79
+ */
80
+ isPartTime() {
81
+ if (!this.hasValue())
82
+ return null;
83
+ return !this.isFullTime();
84
+ }
85
+ /**
86
+ * Obtiene las horas aproximadas de dedicación.
87
+ */
88
+ getApproximateHours() {
89
+ if (!this.hasValue())
90
+ return null;
91
+ switch (this.value) {
92
+ case ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME:
93
+ return 160; // Aproximadamente 40h/semana * 4 semanas
94
+ case ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS:
95
+ return 80;
96
+ case ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS:
97
+ return 40;
98
+ case ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS:
99
+ return 20;
100
+ default:
101
+ return null;
102
+ }
103
+ }
104
+ /**
105
+ * Obtiene el nivel de intensidad de la dedicación.
106
+ */
107
+ getIntensityLevel() {
108
+ if (!this.hasValue())
109
+ return null;
110
+ if (this.isFullTime())
111
+ return 'high';
112
+ if (this.isEightyHours())
113
+ return 'high';
114
+ if (this.isFortyHours())
115
+ return 'medium';
116
+ if (this.isTwentyHours())
117
+ return 'low';
118
+ return null;
119
+ }
120
+ /**
121
+ * Obtiene los niveles de dedicación válidos.
122
+ */
123
+ static getValidDedicationLevels() {
124
+ return Object.freeze([...ServiceCatalogExpertDedicationLevel.VALID_DEDICATION_LEVELS]);
125
+ }
126
+ /**
127
+ * Verifica si un valor es un nivel de dedicación válido.
128
+ */
129
+ static isValidDedicationLevel(value) {
130
+ return ServiceCatalogExpertDedicationLevel.VALID_DEDICATION_LEVELS.includes(value);
131
+ }
132
+ /**
133
+ * Obtiene la descripción del nivel de dedicación.
134
+ */
135
+ getDescription() {
136
+ if (!this.hasValue())
137
+ return null;
138
+ const descriptions = {
139
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME]: 'Dedicación completa (tiempo completo)',
140
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS]: 'Dedicación alta (80 horas mensuales)',
141
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS]: 'Dedicación media (40 horas mensuales)',
142
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS]: 'Dedicación baja (20 horas mensuales)',
143
+ };
144
+ return descriptions[this.value] || this.value;
145
+ }
146
+ /**
147
+ * Obtiene el factor de costo relativo (basado en horas).
148
+ */
149
+ getCostFactor() {
150
+ if (!this.hasValue())
151
+ return null;
152
+ const baseHours = 20; // 20 horas como base (factor 1.0)
153
+ const currentHours = this.getApproximateHours();
154
+ if (currentHours === null)
155
+ return null;
156
+ return currentHours / baseHours;
157
+ }
158
+ /**
159
+ * Verifica si requiere aprobación especial (dedicaciones altas).
160
+ */
161
+ requiresSpecialApproval() {
162
+ if (!this.hasValue())
163
+ return null;
164
+ return this.isHighDedication();
165
+ }
166
+ /**
167
+ * Obtiene las características del nivel de dedicación.
168
+ */
169
+ getCharacteristics() {
170
+ if (!this.hasValue())
171
+ return null;
172
+ return {
173
+ isFullTime: this.isFullTime(),
174
+ isPartTime: this.isPartTime(),
175
+ isHighDedication: this.isHighDedication(),
176
+ isLowDedication: this.isLowDedication(),
177
+ approximateHours: this.getApproximateHours(),
178
+ intensityLevel: this.getIntensityLevel(),
179
+ costFactor: this.getCostFactor(),
180
+ requiresSpecialApproval: this.requiresSpecialApproval(),
181
+ };
182
+ }
183
+ /**
184
+ * Convierte a enum para uso tipado.
185
+ */
186
+ toEnum() {
187
+ if (!this.hasValue())
188
+ return null;
189
+ return this.value;
190
+ }
191
+ toPrimitives() {
192
+ return this.value;
193
+ }
194
+ /**
195
+ * Representación como string descriptiva.
196
+ */
197
+ toString() {
198
+ if (!this.hasValue())
199
+ return 'No dedication level defined';
200
+ const levelNames = {
201
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME]: 'Tiempo Completo',
202
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS]: '80 Horas',
203
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS]: '40 Horas',
204
+ [ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS]: '20 Horas',
205
+ };
206
+ return levelNames[this.value] || this.value;
207
+ }
208
+ }
209
+ exports.ServiceCatalogExpertDedicationLevel = ServiceCatalogExpertDedicationLevel;
210
+ ServiceCatalogExpertDedicationLevel.PROPERTY_NAME = 'expertDedicationLevel';
211
+ // Niveles de dedicación de experto válidos
212
+ ServiceCatalogExpertDedicationLevel.VALID_DEDICATION_LEVELS = Object.values(ExpertDedicationLevel_1.ExpertDedicationLevel);
@@ -0,0 +1,193 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogFixedPriceAmount = void 0;
4
+ const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
+ class ServiceCatalogFixedPriceAmount extends NullableNumeric_1.NullableNumeric {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogFixedPriceAmount.PROPERTY_NAME, ServiceCatalogFixedPriceAmount.FIXED_PRICE_OPTIONS);
8
+ }
9
+ static create(value) {
10
+ return new ServiceCatalogFixedPriceAmount(value, false);
11
+ }
12
+ static fromPrimitives(primitive) {
13
+ const value = primitive;
14
+ return new ServiceCatalogFixedPriceAmount(value, true);
15
+ }
16
+ /**
17
+ * Verifica si es un servicio gratuito.
18
+ */
19
+ isFree() {
20
+ if (!this.hasValue())
21
+ return null;
22
+ return this.value === 0;
23
+ }
24
+ /**
25
+ * Verifica si es un precio bajo (menos de $100).
26
+ */
27
+ isLowPrice() {
28
+ if (!this.hasValue())
29
+ return null;
30
+ return this.value > 0 && this.value < 100;
31
+ }
32
+ /**
33
+ * Verifica si es un precio medio (entre $100 y $1000).
34
+ */
35
+ isMediumPrice() {
36
+ if (!this.hasValue())
37
+ return null;
38
+ return this.value >= 100 && this.value <= 1000;
39
+ }
40
+ /**
41
+ * Verifica si es un precio alto (más de $1000).
42
+ */
43
+ isHighPrice() {
44
+ if (!this.hasValue())
45
+ return null;
46
+ return this.value > 1000;
47
+ }
48
+ /**
49
+ * Verifica si es un precio premium (más de $10000).
50
+ */
51
+ isPremiumPrice() {
52
+ if (!this.hasValue())
53
+ return null;
54
+ return this.value > 10000;
55
+ }
56
+ /**
57
+ * Obtiene el precio formateado como moneda.
58
+ */
59
+ getFormattedPrice(currencySymbol = '$') {
60
+ if (!this.hasValue())
61
+ return null;
62
+ return `${currencySymbol}${this.value.toLocaleString('en-US', {
63
+ minimumFractionDigits: 2,
64
+ maximumFractionDigits: 2,
65
+ })}`;
66
+ }
67
+ /**
68
+ * Obtiene el precio en miles (para display).
69
+ */
70
+ getPriceInThousands() {
71
+ if (!this.hasValue())
72
+ return null;
73
+ return Math.round((this.value / 1000) * 100) / 100;
74
+ }
75
+ /**
76
+ * Calcula el precio con impuestos.
77
+ */
78
+ calculatePriceWithTax(taxRate) {
79
+ if (!this.hasValue())
80
+ return null;
81
+ if (taxRate < 0 || taxRate > 1)
82
+ return null; // Tax rate debe estar entre 0 y 1
83
+ return this.value * (1 + taxRate);
84
+ }
85
+ /**
86
+ * Calcula un descuento sobre el precio fijo.
87
+ */
88
+ applyDiscount(discountPercentage) {
89
+ if (!this.hasValue())
90
+ return null;
91
+ if (discountPercentage < 0 || discountPercentage > 100)
92
+ return null;
93
+ const discountFactor = discountPercentage / 100;
94
+ return this.value * (1 - discountFactor);
95
+ }
96
+ /**
97
+ * Obtiene la categoría de precio.
98
+ */
99
+ getPriceCategory() {
100
+ if (!this.hasValue())
101
+ return null;
102
+ if (this.isFree())
103
+ return 'free';
104
+ if (this.isLowPrice())
105
+ return 'low';
106
+ if (this.isMediumPrice())
107
+ return 'medium';
108
+ if (this.isPremiumPrice())
109
+ return 'premium';
110
+ if (this.isHighPrice())
111
+ return 'high';
112
+ return null;
113
+ }
114
+ /**
115
+ * Verifica si el precio requiere aprobación especial.
116
+ */
117
+ requiresSpecialApproval() {
118
+ if (!this.hasValue())
119
+ return null;
120
+ // Precios premium requieren aprobación especial
121
+ return this.isPremiumPrice();
122
+ }
123
+ /**
124
+ * Obtiene una descripción del nivel de precio.
125
+ */
126
+ getPriceDescription() {
127
+ if (!this.hasValue())
128
+ return null;
129
+ const category = this.getPriceCategory();
130
+ const descriptions = {
131
+ free: 'Servicio gratuito',
132
+ low: 'Precio económico',
133
+ medium: 'Precio estándar',
134
+ high: 'Precio elevado',
135
+ premium: 'Precio premium',
136
+ };
137
+ return descriptions[category] || 'Precio no categorizado';
138
+ }
139
+ /**
140
+ * Compara con otro precio fijo.
141
+ */
142
+ compareWith(other) {
143
+ if (!this.hasValue() || !other.hasValue())
144
+ return null;
145
+ return this.value - other.value;
146
+ }
147
+ /**
148
+ * Verifica si está dentro de un rango de precios.
149
+ */
150
+ isWithinRange(minPrice, maxPrice) {
151
+ if (!this.hasValue())
152
+ return null;
153
+ return this.value >= minPrice && this.value <= maxPrice;
154
+ }
155
+ /**
156
+ * Obtiene las características del precio.
157
+ */
158
+ getCharacteristics() {
159
+ if (!this.hasValue())
160
+ return null;
161
+ return {
162
+ isFree: this.isFree(),
163
+ isLowPrice: this.isLowPrice(),
164
+ isMediumPrice: this.isMediumPrice(),
165
+ isHighPrice: this.isHighPrice(),
166
+ isPremiumPrice: this.isPremiumPrice(),
167
+ priceCategory: this.getPriceCategory(),
168
+ requiresSpecialApproval: this.requiresSpecialApproval(),
169
+ formattedPrice: this.getFormattedPrice(),
170
+ };
171
+ }
172
+ toPrimitives() {
173
+ return this.value;
174
+ }
175
+ /**
176
+ * Representación como string descriptiva.
177
+ */
178
+ toString() {
179
+ if (!this.hasValue())
180
+ return 'No fixed price defined';
181
+ return this.getFormattedPrice() || 'Invalid price';
182
+ }
183
+ }
184
+ exports.ServiceCatalogFixedPriceAmount = ServiceCatalogFixedPriceAmount;
185
+ ServiceCatalogFixedPriceAmount.PROPERTY_NAME = 'fixedPriceAmount';
186
+ ServiceCatalogFixedPriceAmount.FIXED_PRICE_OPTIONS = {
187
+ allowNegative: false, // Los precios fijos no pueden ser negativos
188
+ allowZero: true, // Permitir servicios gratuitos (precio fijo de 0)
189
+ allowDecimals: true, // Permitir decimales para precisión monetaria
190
+ maxDecimalPlaces: 2, // Máximo 2 decimales para valores monetarios
191
+ minValue: 0, // Valor mínimo es cero
192
+ maxValue: 999999999.99, // Valor máximo razonable para precios fijos
193
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogHasBasePrice = void 0;
4
+ const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
+ class ServiceCatalogHasBasePrice extends Boolean_1.Boolean {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogHasBasePrice.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceCatalogHasBasePrice.PROPERTY_NAME);
11
+ return new ServiceCatalogHasBasePrice(value, false);
12
+ }
13
+ static fromPrimitives(primitive) {
14
+ const value = primitive;
15
+ return new ServiceCatalogHasBasePrice(value, true);
16
+ }
17
+ toPrimitives() {
18
+ return this.value;
19
+ }
20
+ }
21
+ exports.ServiceCatalogHasBasePrice = ServiceCatalogHasBasePrice;
22
+ ServiceCatalogHasBasePrice.PROPERTY_NAME = 'hasBasePrice';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogHasFixedPrice = void 0;
4
+ const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
+ class ServiceCatalogHasFixedPrice extends Boolean_1.Boolean {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogHasFixedPrice.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceCatalogHasFixedPrice.PROPERTY_NAME);
11
+ return new ServiceCatalogHasFixedPrice(value, false);
12
+ }
13
+ static fromPrimitives(primitive) {
14
+ const value = primitive;
15
+ return new ServiceCatalogHasFixedPrice(value, true);
16
+ }
17
+ toPrimitives() {
18
+ return this.value;
19
+ }
20
+ }
21
+ exports.ServiceCatalogHasFixedPrice = ServiceCatalogHasFixedPrice;
22
+ ServiceCatalogHasFixedPrice.PROPERTY_NAME = 'hasFixedPrice';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogId = void 0;
4
+ const AggregateId_1 = require("../../../../shared/domain/value-objects/AggregateId");
5
+ class ServiceCatalogId extends AggregateId_1.AggregateId {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogId.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ AggregateId_1.AggregateId.guardAgainstEmptyValue(value, ServiceCatalogId.PROPERTY_NAME);
11
+ AggregateId_1.AggregateId.guardAgainstInvalidType(value, ServiceCatalogId.PROPERTY_NAME);
12
+ AggregateId_1.AggregateId.guardAgainstInvalidId(value, ServiceCatalogId.PROPERTY_NAME);
13
+ return new ServiceCatalogId(value, false);
14
+ }
15
+ static fromPrimitives(primitive) {
16
+ const value = primitive;
17
+ return new ServiceCatalogId(value, true);
18
+ }
19
+ toPrimitives() {
20
+ return this.value;
21
+ }
22
+ }
23
+ exports.ServiceCatalogId = ServiceCatalogId;
24
+ ServiceCatalogId.PROPERTY_NAME = 'id';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogIncludesCarbonBoxAcademy = void 0;
4
+ const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
+ class ServiceCatalogIncludesCarbonBoxAcademy extends Boolean_1.Boolean {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogIncludesCarbonBoxAcademy.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceCatalogIncludesCarbonBoxAcademy.PROPERTY_NAME);
11
+ return new ServiceCatalogIncludesCarbonBoxAcademy(value, false);
12
+ }
13
+ static fromPrimitives(primitive) {
14
+ const value = primitive;
15
+ return new ServiceCatalogIncludesCarbonBoxAcademy(value, true);
16
+ }
17
+ toPrimitives() {
18
+ return this.value;
19
+ }
20
+ }
21
+ exports.ServiceCatalogIncludesCarbonBoxAcademy = ServiceCatalogIncludesCarbonBoxAcademy;
22
+ ServiceCatalogIncludesCarbonBoxAcademy.PROPERTY_NAME = 'includesCarbonBoxAcademy';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogIncludesESGIndicators = void 0;
4
+ const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
+ class ServiceCatalogIncludesESGIndicators extends Boolean_1.Boolean {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogIncludesESGIndicators.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceCatalogIncludesESGIndicators.PROPERTY_NAME);
11
+ return new ServiceCatalogIncludesESGIndicators(value, false);
12
+ }
13
+ static fromPrimitives(primitive) {
14
+ const value = primitive;
15
+ return new ServiceCatalogIncludesESGIndicators(value, true);
16
+ }
17
+ toPrimitives() {
18
+ return this.value;
19
+ }
20
+ }
21
+ exports.ServiceCatalogIncludesESGIndicators = ServiceCatalogIncludesESGIndicators;
22
+ ServiceCatalogIncludesESGIndicators.PROPERTY_NAME = 'includesESGIndicators';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogIsAvailableForCorporate = void 0;
4
+ const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
+ class ServiceCatalogIsAvailableForCorporate extends Boolean_1.Boolean {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogIsAvailableForCorporate.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceCatalogIsAvailableForCorporate.PROPERTY_NAME);
11
+ return new ServiceCatalogIsAvailableForCorporate(value, false);
12
+ }
13
+ static fromPrimitives(primitive) {
14
+ const value = primitive;
15
+ return new ServiceCatalogIsAvailableForCorporate(value, true);
16
+ }
17
+ toPrimitives() {
18
+ return this.value;
19
+ }
20
+ }
21
+ exports.ServiceCatalogIsAvailableForCorporate = ServiceCatalogIsAvailableForCorporate;
22
+ ServiceCatalogIsAvailableForCorporate.PROPERTY_NAME = 'isAvailableForCorporate';
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceCatalogIsAvailableForEvent = void 0;
4
+ const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
+ class ServiceCatalogIsAvailableForEvent extends Boolean_1.Boolean {
6
+ constructor(value, skipDomainValidation) {
7
+ super(value, skipDomainValidation, ServiceCatalogIsAvailableForEvent.PROPERTY_NAME);
8
+ }
9
+ static create(value) {
10
+ Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceCatalogIsAvailableForEvent.PROPERTY_NAME);
11
+ return new ServiceCatalogIsAvailableForEvent(value, false);
12
+ }
13
+ static fromPrimitives(primitive) {
14
+ const value = primitive;
15
+ return new ServiceCatalogIsAvailableForEvent(value, true);
16
+ }
17
+ toPrimitives() {
18
+ return this.value;
19
+ }
20
+ }
21
+ exports.ServiceCatalogIsAvailableForEvent = ServiceCatalogIsAvailableForEvent;
22
+ ServiceCatalogIsAvailableForEvent.PROPERTY_NAME = 'isAvailableForEvent';