@carbonbox/domain 0.6.2 → 0.6.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.
Files changed (189) hide show
  1. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +1 -1
  2. package/build/carbonbox/shared/domain/value-objects/AggregateId.js +12 -7
  3. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
  4. package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts +9 -5
  5. package/build/types/carbonbox/shared/domain/value-objects/AggregateId.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.js +0 -2
  8. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.js +0 -263
  9. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.js +0 -20
  10. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.js +0 -9
  11. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.js +0 -10
  12. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.js +0 -19
  13. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.js +0 -19
  14. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.js +0 -19
  15. package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.js +0 -2
  16. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.js +0 -2
  17. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.js +0 -2
  18. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.js +0 -131
  19. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.js +0 -22
  20. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.js +0 -22
  21. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.js +0 -140
  22. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.js +0 -243
  23. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.js +0 -24
  24. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.js +0 -26
  25. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.js +0 -21
  26. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.js +0 -23
  27. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.js +0 -212
  28. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.js +0 -193
  29. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.js +0 -22
  30. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.js +0 -22
  31. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.js +0 -24
  32. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.js +0 -22
  33. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.js +0 -22
  34. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.js +0 -22
  35. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.js +0 -22
  36. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.js +0 -22
  37. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.js +0 -22
  38. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.js +0 -246
  39. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.js +0 -23
  40. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.js +0 -246
  41. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.js +0 -221
  42. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.js +0 -235
  43. package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.js +0 -19
  44. package/build/carbonbox/shared/domain/services/DateTimeFormattingDomainService.js +0 -172
  45. package/build/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.js +0 -2
  46. package/build/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.js +0 -235
  47. package/build/carbonbox/shared/domain/types/AllPermissions.js +0 -2
  48. package/build/carbonbox/shared/domain/types/AllPermissionsPrimitives.js +0 -2
  49. package/build/carbonbox/shared/domain/types/ServiceReference.js +0 -2
  50. package/build/carbonbox/shared/domain/types/ServiceReferencePrimitives.js +0 -2
  51. package/build/carbonbox/shared/domain/types/UserEmailProps.js +0 -2
  52. package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +0 -301
  53. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.js +0 -2
  54. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.js +0 -2
  55. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.js +0 -2
  56. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.js +0 -2
  57. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.js +0 -2
  58. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.js +0 -2
  59. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.js +0 -2
  60. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.js +0 -2
  61. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.js +0 -2
  62. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.js +0 -2
  63. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.js +0 -2
  64. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.js +0 -2
  65. package/build/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.js +0 -10
  66. package/build/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.js +0 -18
  67. package/build/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.js +0 -2
  68. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts +0 -52
  69. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts.map +0 -1
  70. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts +0 -60
  71. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts.map +0 -1
  72. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts +0 -17
  73. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts.map +0 -1
  74. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts +0 -6
  75. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts.map +0 -1
  76. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts +0 -7
  77. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts.map +0 -1
  78. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts +0 -8
  79. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts.map +0 -1
  80. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts +0 -8
  81. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts.map +0 -1
  82. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts +0 -8
  83. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts.map +0 -1
  84. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +0 -22
  85. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +0 -1
  86. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts +0 -35
  87. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts.map +0 -1
  88. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts +0 -35
  89. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts.map +0 -1
  90. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts +0 -71
  91. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts.map +0 -1
  92. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts +0 -9
  93. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts.map +0 -1
  94. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts +0 -9
  95. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts.map +0 -1
  96. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts +0 -54
  97. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts.map +0 -1
  98. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts +0 -123
  99. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts.map +0 -1
  100. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts +0 -9
  101. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts.map +0 -1
  102. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts +0 -11
  103. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts.map +0 -1
  104. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts +0 -9
  105. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts.map +0 -1
  106. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts +0 -9
  107. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts.map +0 -1
  108. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts +0 -92
  109. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts.map +0 -1
  110. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts +0 -83
  111. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts.map +0 -1
  112. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts +0 -9
  113. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts.map +0 -1
  114. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts +0 -9
  115. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts.map +0 -1
  116. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts +0 -9
  117. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts.map +0 -1
  118. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts +0 -9
  119. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts.map +0 -1
  120. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts +0 -9
  121. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts.map +0 -1
  122. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts +0 -9
  123. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts.map +0 -1
  124. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts +0 -9
  125. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts.map +0 -1
  126. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts +0 -9
  127. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts.map +0 -1
  128. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts +0 -9
  129. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts.map +0 -1
  130. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts +0 -99
  131. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts.map +0 -1
  132. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts +0 -9
  133. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts.map +0 -1
  134. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts +0 -119
  135. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts.map +0 -1
  136. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts +0 -110
  137. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts.map +0 -1
  138. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts +0 -111
  139. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts.map +0 -1
  140. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts +0 -8
  141. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts.map +0 -1
  142. package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts +0 -95
  143. package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts.map +0 -1
  144. package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts +0 -85
  145. package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts.map +0 -1
  146. package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts +0 -67
  147. package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts.map +0 -1
  148. package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts +0 -12
  149. package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts.map +0 -1
  150. package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts +0 -12
  151. package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts.map +0 -1
  152. package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts +0 -8
  153. package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts.map +0 -1
  154. package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts +0 -8
  155. package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts.map +0 -1
  156. package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts +0 -5
  157. package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts.map +0 -1
  158. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +0 -134
  159. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +0 -1
  160. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts +0 -3
  161. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts.map +0 -1
  162. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts +0 -3
  163. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts.map +0 -1
  164. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts +0 -3
  165. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts.map +0 -1
  166. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts +0 -3
  167. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts.map +0 -1
  168. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts +0 -3
  169. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts.map +0 -1
  170. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts +0 -3
  171. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts.map +0 -1
  172. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts +0 -3
  173. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts.map +0 -1
  174. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts +0 -3
  175. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts.map +0 -1
  176. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts +0 -3
  177. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts.map +0 -1
  178. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts +0 -3
  179. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts.map +0 -1
  180. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts +0 -3
  181. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts.map +0 -1
  182. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts +0 -3
  183. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts.map +0 -1
  184. package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts +0 -7
  185. package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts.map +0 -1
  186. package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts +0 -7
  187. package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts.map +0 -1
  188. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts +0 -10
  189. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts.map +0 -1
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceAllowsDocumentReading = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceAllowsDocumentReading extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceAllowsDocumentReading.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceAllowsDocumentReading.PROPERTY_NAME);
11
- return new ServiceAllowsDocumentReading(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceAllowsDocumentReading(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceAllowsDocumentReading = ServiceAllowsDocumentReading;
22
- ServiceAllowsDocumentReading.PROPERTY_NAME = 'allowsDocumentReading';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceAllowsSectoralComparison = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceAllowsSectoralComparison extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceAllowsSectoralComparison.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceAllowsSectoralComparison.PROPERTY_NAME);
11
- return new ServiceAllowsSectoralComparison(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceAllowsSectoralComparison(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceAllowsSectoralComparison = ServiceAllowsSectoralComparison;
22
- ServiceAllowsSectoralComparison.PROPERTY_NAME = 'allowsSectoralComparison';
@@ -1,140 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceBasePricePercentage = void 0;
4
- const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
- class ServiceBasePricePercentage extends NullableNumeric_1.NullableNumeric {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceBasePricePercentage.PROPERTY_NAME, ServiceBasePricePercentage.PERCENTAGE_OPTIONS);
8
- }
9
- static create(value) {
10
- return new ServiceBasePricePercentage(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceBasePricePercentage(value, true);
15
- }
16
- /**
17
- * Verifica si representa un incremento en el precio.
18
- */
19
- isIncrease() {
20
- if (!this.hasValue())
21
- return null;
22
- return this.value > 0;
23
- }
24
- /**
25
- * Verifica si representa un descuento en el precio.
26
- */
27
- isDiscount() {
28
- if (!this.hasValue())
29
- return null;
30
- return this.value < 0;
31
- }
32
- /**
33
- * Verifica si no hay cambio en el precio.
34
- */
35
- isNeutral() {
36
- if (!this.hasValue())
37
- return null;
38
- return this.value === 0;
39
- }
40
- /**
41
- * Verifica si es un incremento significativo (>= 50%).
42
- */
43
- isSignificantIncrease() {
44
- if (!this.hasValue())
45
- return null;
46
- return this.value >= 50;
47
- }
48
- /**
49
- * Verifica si es un descuento significativo (<= -25%).
50
- */
51
- isSignificantDiscount() {
52
- if (!this.hasValue())
53
- return null;
54
- return this.value <= -25;
55
- }
56
- /**
57
- * Obtiene el porcentaje formateado como string.
58
- */
59
- getFormattedPercentage() {
60
- if (!this.hasValue())
61
- return null;
62
- const sign = this.value >= 0 ? '+' : '';
63
- return `${sign}${this.value.toFixed(2)}%`;
64
- }
65
- /**
66
- * Calcula el precio final basado en un precio base.
67
- */
68
- calculateFinalPrice(basePrice) {
69
- if (!this.hasValue())
70
- return null;
71
- if (basePrice < 0)
72
- return null; // No permitir precios base negativos
73
- const multiplier = 1 + (this.value / 100);
74
- return basePrice * multiplier;
75
- }
76
- /**
77
- * Obtiene el factor multiplicador (1 + porcentaje/100).
78
- */
79
- getMultiplier() {
80
- if (!this.hasValue())
81
- return null;
82
- return 1 + (this.value / 100);
83
- }
84
- /**
85
- * Obtiene una descripción del impacto del porcentaje.
86
- */
87
- getImpactDescription() {
88
- if (!this.hasValue())
89
- return null;
90
- const value = this.value;
91
- if (value === 0)
92
- return 'Sin cambio en el precio';
93
- if (value > 0) {
94
- if (value >= 100)
95
- return 'Incremento muy alto';
96
- if (value >= 50)
97
- return 'Incremento alto';
98
- if (value >= 25)
99
- return 'Incremento moderado';
100
- return 'Incremento bajo';
101
- }
102
- if (value <= -75)
103
- return 'Descuento muy alto';
104
- if (value <= -50)
105
- return 'Descuento alto';
106
- if (value <= -25)
107
- return 'Descuento moderado';
108
- return 'Descuento bajo';
109
- }
110
- /**
111
- * Verifica si el porcentaje está dentro de un rango típico de servicios.
112
- */
113
- isWithinTypicalRange() {
114
- if (!this.hasValue())
115
- return null;
116
- // Rango típico: entre -50% (descuento máximo común) y +200% (incremento máximo común)
117
- return this.value >= -50 && this.value <= 200;
118
- }
119
- toPrimitives() {
120
- return this.value;
121
- }
122
- /**
123
- * Representación como string descriptiva.
124
- */
125
- toString() {
126
- if (!this.hasValue())
127
- return 'No percentage defined';
128
- return this.getFormattedPercentage() || 'Invalid percentage';
129
- }
130
- }
131
- exports.ServiceBasePricePercentage = ServiceBasePricePercentage;
132
- ServiceBasePricePercentage.PROPERTY_NAME = 'basePricePercentage';
133
- ServiceBasePricePercentage.PERCENTAGE_OPTIONS = {
134
- allowNegative: true, // Permitir descuentos (valores negativos)
135
- allowZero: true, // Permitir 0% (sin cambio en el precio)
136
- allowDecimals: true, // Permitir decimales para precisión en porcentajes
137
- maxDecimalPlaces: 2, // Máximo 2 decimales para porcentajes (ej: 25.50%)
138
- minValue: -100, // Mínimo -100% (descuento total)
139
- maxValue: 1000, // Máximo 1000% (incremento masivo para casos excepcionales)
140
- };
@@ -1,243 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCategory = void 0;
4
- const String_1 = require("../../../../shared/domain/value-objects/String");
5
- const ServiceCategory_1 = require("../enums/ServiceCategory");
6
- const InvalidServiceCategoryError_1 = require("../exceptions/InvalidServiceCategoryError");
7
- class ServiceCategory extends String_1.String {
8
- constructor(value, skipDomainValidation) {
9
- super(value, skipDomainValidation, ServiceCategory.PROPERTY_NAME);
10
- if (skipDomainValidation === false) {
11
- this.validateServiceCategory(value);
12
- }
13
- }
14
- static create(value) {
15
- String_1.String.guardAgainstEmptyValue(value, ServiceCategory.PROPERTY_NAME);
16
- String_1.String.guardAgainstInvalidType(value, ServiceCategory.PROPERTY_NAME);
17
- return new ServiceCategory(value, false);
18
- }
19
- static fromPrimitives(primitive) {
20
- const value = primitive;
21
- return new ServiceCategory(value, true);
22
- }
23
- /**
24
- * Valida que el valor sea una categoría de servicio válida.
25
- */
26
- validateServiceCategory(value) {
27
- if (!ServiceCategory.VALID_SERVICE_CATEGORIES.includes(value)) {
28
- throw InvalidServiceCategoryError_1.InvalidServiceCategoryError.create(value, ServiceCategory.VALID_SERVICE_CATEGORIES);
29
- }
30
- }
31
- /**
32
- * Verifica si es una categoría de huella de carbono.
33
- */
34
- isCarbonFootprintCategory() {
35
- return this.isCorporateFootprint() || this.isProductFootprint() || this.isEventFootprint();
36
- }
37
- /**
38
- * Verifica si es huella corporativa.
39
- */
40
- isCorporateFootprint() {
41
- return this.value === ServiceCategory_1.ServiceCategory.CORPORATE_FOOTPRINT;
42
- }
43
- /**
44
- * Verifica si es huella de producto.
45
- */
46
- isProductFootprint() {
47
- return this.value === ServiceCategory_1.ServiceCategory.PRODUCT_FOOTPRINT;
48
- }
49
- /**
50
- * Verifica si es huella de evento.
51
- */
52
- isEventFootprint() {
53
- return this.value === ServiceCategory_1.ServiceCategory.EVENT_FOOTPRINT;
54
- }
55
- /**
56
- * Verifica si es soporte experto.
57
- */
58
- isExpertSupport() {
59
- return this.value === ServiceCategory_1.ServiceCategory.EXPERT_SUPPORT;
60
- }
61
- /**
62
- * Verifica si es entrenamiento.
63
- */
64
- isTraining() {
65
- return this.value === ServiceCategory_1.ServiceCategory.TRAINING;
66
- }
67
- /**
68
- * Verifica si es soporte de auditoría.
69
- */
70
- isAuditSupport() {
71
- return this.value === ServiceCategory_1.ServiceCategory.AUDIT_SUPPORT;
72
- }
73
- /**
74
- * Verifica si es validación de datos.
75
- */
76
- isDataValidation() {
77
- return this.value === ServiceCategory_1.ServiceCategory.DATA_VALIDATION;
78
- }
79
- /**
80
- * Verifica si es reportería.
81
- */
82
- isReporting() {
83
- return this.value === ServiceCategory_1.ServiceCategory.REPORTING;
84
- }
85
- /**
86
- * Verifica si es lectura de documentos.
87
- */
88
- isDocumentReading() {
89
- return this.value === ServiceCategory_1.ServiceCategory.DOCUMENT_READING;
90
- }
91
- /**
92
- * Verifica si es comparación sectorial.
93
- */
94
- isSectoralComparison() {
95
- return this.value === ServiceCategory_1.ServiceCategory.SECTORAL_COMPARISON;
96
- }
97
- /**
98
- * Verifica si es usuarios adicionales.
99
- */
100
- isAdditionalUsers() {
101
- return this.value === ServiceCategory_1.ServiceCategory.ADDITIONAL_USERS;
102
- }
103
- /**
104
- * Verifica si es CarbonBox Academy.
105
- */
106
- isCarbonBoxAcademy() {
107
- return this.value === ServiceCategory_1.ServiceCategory.CARBONBOX_ACADEMY;
108
- }
109
- /**
110
- * Verifica si es indicadores ESG.
111
- */
112
- isESGIndicators() {
113
- return this.value === ServiceCategory_1.ServiceCategory.ESG_INDICATORS;
114
- }
115
- /**
116
- * Verifica si es compensación de carbono.
117
- */
118
- isCarbonOffsetting() {
119
- return this.value === ServiceCategory_1.ServiceCategory.CARBON_OFFSETTING;
120
- }
121
- /**
122
- * Verifica si es una categoría de soporte técnico.
123
- */
124
- isTechnicalSupportCategory() {
125
- return this.isExpertSupport() || this.isAuditSupport() || this.isDataValidation();
126
- }
127
- /**
128
- * Verifica si es una categoría de características de plataforma.
129
- */
130
- isPlatformFeatureCategory() {
131
- return this.isDocumentReading() || this.isSectoralComparison() || this.isCarbonBoxAcademy() || this.isESGIndicators();
132
- }
133
- /**
134
- * Verifica si es una categoría de extensión de usuarios.
135
- */
136
- isUserExtensionCategory() {
137
- return this.isAdditionalUsers();
138
- }
139
- /**
140
- * Verifica si es una categoría de sostenibilidad avanzada.
141
- */
142
- isAdvancedSustainabilityCategory() {
143
- return this.isESGIndicators() || this.isCarbonOffsetting();
144
- }
145
- /**
146
- * Obtiene las categorías de servicio válidas.
147
- */
148
- static getValidServiceCategories() {
149
- return Object.freeze([...ServiceCategory.VALID_SERVICE_CATEGORIES]);
150
- }
151
- /**
152
- * Verifica si un valor es una categoría de servicio válida.
153
- */
154
- static isValidServiceCategory(value) {
155
- return ServiceCategory.VALID_SERVICE_CATEGORIES.includes(value);
156
- }
157
- /**
158
- * Obtiene el tipo de categoría principal.
159
- */
160
- getCategoryType() {
161
- if (this.isCarbonFootprintCategory())
162
- return 'footprint';
163
- if (this.isTechnicalSupportCategory() || this.isTraining())
164
- return 'support';
165
- if (this.isPlatformFeatureCategory())
166
- return 'platform';
167
- if (this.isUserExtensionCategory())
168
- return 'user_extension';
169
- if (this.isAdvancedSustainabilityCategory())
170
- return 'sustainability';
171
- if (this.isReporting())
172
- return 'reporting';
173
- // Este caso nunca debería ocurrir debido a las validaciones
174
- return 'support'; // Valor por defecto
175
- }
176
- /**
177
- * Obtiene la descripción de la categoría.
178
- */
179
- getDescription() {
180
- const descriptions = {
181
- [ServiceCategory_1.ServiceCategory.CORPORATE_FOOTPRINT]: 'Servicios de huella de carbono corporativa',
182
- [ServiceCategory_1.ServiceCategory.PRODUCT_FOOTPRINT]: 'Servicios de huella de carbono de producto',
183
- [ServiceCategory_1.ServiceCategory.EVENT_FOOTPRINT]: 'Servicios de huella de carbono de eventos',
184
- [ServiceCategory_1.ServiceCategory.EXPERT_SUPPORT]: 'Soporte especializado de expertos',
185
- [ServiceCategory_1.ServiceCategory.TRAINING]: 'Servicios de capacitación y entrenamiento',
186
- [ServiceCategory_1.ServiceCategory.AUDIT_SUPPORT]: 'Soporte para procesos de auditoría',
187
- [ServiceCategory_1.ServiceCategory.DATA_VALIDATION]: 'Validación y verificación de datos',
188
- [ServiceCategory_1.ServiceCategory.REPORTING]: 'Servicios de reportería y documentación',
189
- [ServiceCategory_1.ServiceCategory.DOCUMENT_READING]: 'Lectura y análisis de documentos',
190
- [ServiceCategory_1.ServiceCategory.SECTORAL_COMPARISON]: 'Comparación sectorial de métricas',
191
- [ServiceCategory_1.ServiceCategory.ADDITIONAL_USERS]: 'Usuarios adicionales en la plataforma',
192
- [ServiceCategory_1.ServiceCategory.CARBONBOX_ACADEMY]: 'Acceso a CarbonBox Academy',
193
- [ServiceCategory_1.ServiceCategory.ESG_INDICATORS]: 'Indicadores ESG avanzados',
194
- [ServiceCategory_1.ServiceCategory.CARBON_OFFSETTING]: 'Servicios de compensación de carbono',
195
- };
196
- return descriptions[this.value] || this.value;
197
- }
198
- /**
199
- * Obtiene las características de la categoría.
200
- */
201
- getCharacteristics() {
202
- return {
203
- isCarbonFootprintCategory: this.isCarbonFootprintCategory(),
204
- isTechnicalSupportCategory: this.isTechnicalSupportCategory(),
205
- isPlatformFeatureCategory: this.isPlatformFeatureCategory(),
206
- isUserExtensionCategory: this.isUserExtensionCategory(),
207
- isAdvancedSustainabilityCategory: this.isAdvancedSustainabilityCategory(),
208
- categoryType: this.getCategoryType(),
209
- };
210
- }
211
- toPrimitives() {
212
- return this.value;
213
- }
214
- toEnum() {
215
- return this.value;
216
- }
217
- /**
218
- * Representación como string descriptiva.
219
- */
220
- toString() {
221
- const categoryNames = {
222
- [ServiceCategory_1.ServiceCategory.CORPORATE_FOOTPRINT]: 'Huella Corporativa',
223
- [ServiceCategory_1.ServiceCategory.PRODUCT_FOOTPRINT]: 'Huella de Producto',
224
- [ServiceCategory_1.ServiceCategory.EVENT_FOOTPRINT]: 'Huella de Evento',
225
- [ServiceCategory_1.ServiceCategory.EXPERT_SUPPORT]: 'Soporte Experto',
226
- [ServiceCategory_1.ServiceCategory.TRAINING]: 'Entrenamiento',
227
- [ServiceCategory_1.ServiceCategory.AUDIT_SUPPORT]: 'Soporte de Auditoría',
228
- [ServiceCategory_1.ServiceCategory.DATA_VALIDATION]: 'Validación de Datos',
229
- [ServiceCategory_1.ServiceCategory.REPORTING]: 'Reportería',
230
- [ServiceCategory_1.ServiceCategory.DOCUMENT_READING]: 'Lectura de Documentos',
231
- [ServiceCategory_1.ServiceCategory.SECTORAL_COMPARISON]: 'Comparación Sectorial',
232
- [ServiceCategory_1.ServiceCategory.ADDITIONAL_USERS]: 'Usuarios Adicionales',
233
- [ServiceCategory_1.ServiceCategory.CARBONBOX_ACADEMY]: 'CarbonBox Academy',
234
- [ServiceCategory_1.ServiceCategory.ESG_INDICATORS]: 'Indicadores ESG',
235
- [ServiceCategory_1.ServiceCategory.CARBON_OFFSETTING]: 'Compensación de Carbono',
236
- };
237
- return categoryNames[this.value] || this.value;
238
- }
239
- }
240
- exports.ServiceCategory = ServiceCategory;
241
- ServiceCategory.PROPERTY_NAME = 'category';
242
- // Categorías de servicio válidas
243
- ServiceCategory.VALID_SERVICE_CATEGORIES = Object.values(ServiceCategory_1.ServiceCategory);
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCode = void 0;
4
- const Code_1 = require("../../../../shared/domain/value-objects/Code");
5
- class ServiceCode extends Code_1.Code {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceCode.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Code_1.Code.guardAgainstEmptyValue(value, ServiceCode.PROPERTY_NAME);
11
- Code_1.Code.guardAgainstInvalidType(value, ServiceCode.PROPERTY_NAME);
12
- Code_1.Code.guardAgainstInvalidCode(value, ServiceCode.PROPERTY_NAME);
13
- return new ServiceCode(value, false);
14
- }
15
- static fromPrimitives(primitive) {
16
- const value = primitive;
17
- return new ServiceCode(value, true);
18
- }
19
- toPrimitives() {
20
- return this.value;
21
- }
22
- }
23
- exports.ServiceCode = ServiceCode;
24
- ServiceCode.PROPERTY_NAME = 'code';
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceCreatedByStakeholder = void 0;
4
- const StakeholderReference_1 = require("../../../../shared/domain/value-objects/StakeholderReference");
5
- class ServiceCreatedByStakeholder extends StakeholderReference_1.StakeholderReference {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceCreatedByStakeholder.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- return new ServiceCreatedByStakeholder(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 ServiceCreatedByStakeholder(value, true);
20
- }
21
- toPrimitives() {
22
- return this.value;
23
- }
24
- }
25
- exports.ServiceCreatedByStakeholder = ServiceCreatedByStakeholder;
26
- ServiceCreatedByStakeholder.PROPERTY_NAME = 'createdByStakeholder';
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceDependsOnServiceCode = void 0;
4
- const NullableCode_1 = require("../../../../shared/domain/value-objects/NullableCode");
5
- class ServiceDependsOnServiceCode extends NullableCode_1.NullableCode {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceDependsOnServiceCode.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- return new ServiceDependsOnServiceCode(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceDependsOnServiceCode(value, true);
15
- }
16
- toPrimitives() {
17
- return this.value;
18
- }
19
- }
20
- exports.ServiceDependsOnServiceCode = ServiceDependsOnServiceCode;
21
- ServiceDependsOnServiceCode.PROPERTY_NAME = 'dependsOnServiceCode';
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceDescription = void 0;
4
- const String_1 = require("../../../../shared/domain/value-objects/String");
5
- class ServiceDescription extends String_1.String {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceDescription.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- String_1.String.guardAgainstEmptyValue(value, ServiceDescription.PROPERTY_NAME);
11
- String_1.String.guardAgainstInvalidType(value, ServiceDescription.PROPERTY_NAME);
12
- return new ServiceDescription(value, false);
13
- }
14
- static fromPrimitives(primitive) {
15
- const value = primitive;
16
- return new ServiceDescription(value, true);
17
- }
18
- toPrimitives() {
19
- return this.value;
20
- }
21
- }
22
- exports.ServiceDescription = ServiceDescription;
23
- ServiceDescription.PROPERTY_NAME = 'description';