@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,246 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceMaxUsers = void 0;
4
- const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
- class ServiceMaxUsers extends NullableNumeric_1.NullableNumeric {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceMaxUsers.PROPERTY_NAME, ServiceMaxUsers.MAX_USERS_OPTIONS);
8
- }
9
- static create(value) {
10
- return new ServiceMaxUsers(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceMaxUsers(value, true);
15
- }
16
- /**
17
- * Verifica si no permite usuarios adicionales.
18
- */
19
- allowsNoAdditionalUsers() {
20
- if (!this.hasValue())
21
- return null;
22
- return this.value === 0;
23
- }
24
- /**
25
- * Verifica si es un límite bajo de usuarios (1-10).
26
- */
27
- isLowUserLimit() {
28
- if (!this.hasValue())
29
- return null;
30
- return this.value > 0 && this.value <= 10;
31
- }
32
- /**
33
- * Verifica si es un límite medio de usuarios (11-50).
34
- */
35
- isMediumUserLimit() {
36
- if (!this.hasValue())
37
- return null;
38
- return this.value > 10 && this.value <= 50;
39
- }
40
- /**
41
- * Verifica si es un límite alto de usuarios (51-200).
42
- */
43
- isHighUserLimit() {
44
- if (!this.hasValue())
45
- return null;
46
- return this.value > 50 && this.value <= 200;
47
- }
48
- /**
49
- * Verifica si es un límite enterprise de usuarios (>200).
50
- */
51
- isEnterpriseUserLimit() {
52
- if (!this.hasValue())
53
- return null;
54
- return this.value > 200;
55
- }
56
- /**
57
- * Verifica si permite usuarios adicionales.
58
- */
59
- allowsAdditionalUsers() {
60
- if (!this.hasValue())
61
- return null;
62
- return this.value > 0;
63
- }
64
- /**
65
- * Verifica si es un servicio de usuario único.
66
- */
67
- isSingleUser() {
68
- if (!this.hasValue())
69
- return null;
70
- return this.value === 1;
71
- }
72
- /**
73
- * Verifica si requiere licenciamiento especial (límites altos).
74
- */
75
- requiresSpecialLicensing() {
76
- if (!this.hasValue())
77
- return null;
78
- return this.isEnterpriseUserLimit();
79
- }
80
- /**
81
- * Obtiene la categoría de usuarios.
82
- */
83
- getUserCategory() {
84
- if (!this.hasValue())
85
- return null;
86
- if (this.allowsNoAdditionalUsers())
87
- return 'none';
88
- if (this.isSingleUser())
89
- return 'single';
90
- if (this.isLowUserLimit())
91
- return 'small';
92
- if (this.isMediumUserLimit())
93
- return 'medium';
94
- if (this.isHighUserLimit())
95
- return 'large';
96
- if (this.isEnterpriseUserLimit())
97
- return 'enterprise';
98
- return null;
99
- }
100
- /**
101
- * Obtiene el tipo de plan según el número de usuarios.
102
- */
103
- getPlanType() {
104
- if (!this.hasValue())
105
- return null;
106
- if (this.value <= 10)
107
- return 'basic';
108
- if (this.value <= 50)
109
- return 'standard';
110
- if (this.value <= 200)
111
- return 'professional';
112
- return 'enterprise';
113
- }
114
- /**
115
- * Calcula el costo adicional por usuario (basado en escalas).
116
- */
117
- calculateUserCost(costPerUser) {
118
- if (!this.hasValue())
119
- return null;
120
- if (costPerUser < 0)
121
- return null;
122
- return this.value * costPerUser;
123
- }
124
- /**
125
- * Calcula descuentos por volumen según el número de usuarios.
126
- */
127
- getVolumeDiscountRate() {
128
- if (!this.hasValue())
129
- return null;
130
- // Escalas de descuento por volumen
131
- if (this.value <= 10)
132
- return 0; // Sin descuento
133
- if (this.value <= 50)
134
- return 0.05; // 5% descuento
135
- if (this.value <= 200)
136
- return 0.10; // 10% descuento
137
- return 0.15; // 15% descuento para enterprise
138
- }
139
- /**
140
- * Verifica si excede un límite específico.
141
- */
142
- exceedsLimit(limit) {
143
- if (!this.hasValue())
144
- return null;
145
- return this.value > limit;
146
- }
147
- /**
148
- * Verifica si está dentro de un rango de usuarios.
149
- */
150
- isWithinRange(minUsers, maxUsers) {
151
- if (!this.hasValue())
152
- return null;
153
- return this.value >= minUsers && this.value <= maxUsers;
154
- }
155
- /**
156
- * Obtiene la descripción del límite de usuarios.
157
- */
158
- getDescription() {
159
- if (!this.hasValue())
160
- return null;
161
- const category = this.getUserCategory();
162
- const descriptions = {
163
- none: 'Sin usuarios adicionales permitidos',
164
- single: 'Un usuario adicional',
165
- small: 'Grupo pequeño (2-10 usuarios)',
166
- medium: 'Grupo medio (11-50 usuarios)',
167
- large: 'Grupo grande (51-200 usuarios)',
168
- enterprise: 'Nivel empresarial (más de 200 usuarios)',
169
- };
170
- return descriptions[category] || `${this.value} usuarios máximo`;
171
- }
172
- /**
173
- * Obtiene recomendaciones de uso.
174
- */
175
- getUsageRecommendations() {
176
- if (!this.hasValue())
177
- return null;
178
- const category = this.getUserCategory();
179
- const recommendations = {
180
- none: ['Servicio individual', 'Sin colaboración multi-usuario'],
181
- single: ['Ideal para asistentes', 'Soporte básico adicional'],
182
- small: ['Equipos pequeños', 'Startups', 'Departamentos específicos'],
183
- medium: ['Empresas medianas', 'Múltiples departamentos', 'Proyectos colaborativos'],
184
- large: ['Grandes organizaciones', 'División corporativa', 'Múltiples ubicaciones'],
185
- enterprise: ['Corporaciones', 'Multinacionales', 'Implementación masiva'],
186
- };
187
- return recommendations[category] || [];
188
- }
189
- /**
190
- * Verifica si requiere infraestructura especial.
191
- */
192
- requiresSpecialInfrastructure() {
193
- if (!this.hasValue())
194
- return null;
195
- // Más de 100 usuarios requiere infraestructura especial
196
- return this.value > 100;
197
- }
198
- /**
199
- * Obtiene las características del límite de usuarios.
200
- */
201
- getCharacteristics() {
202
- if (!this.hasValue())
203
- return null;
204
- return {
205
- allowsAdditionalUsers: this.allowsAdditionalUsers(),
206
- userCategory: this.getUserCategory(),
207
- planType: this.getPlanType(),
208
- requiresSpecialLicensing: this.requiresSpecialLicensing(),
209
- requiresSpecialInfrastructure: this.requiresSpecialInfrastructure(),
210
- volumeDiscountRate: this.getVolumeDiscountRate(),
211
- description: this.getDescription(),
212
- usageRecommendations: this.getUsageRecommendations(),
213
- };
214
- }
215
- /**
216
- * Compara con otro límite de usuarios.
217
- */
218
- compareWith(other) {
219
- if (!this.hasValue() || !other.hasValue())
220
- return null;
221
- return this.value - other.value;
222
- }
223
- toPrimitives() {
224
- return this.value;
225
- }
226
- /**
227
- * Representación como string descriptiva.
228
- */
229
- toString() {
230
- if (!this.hasValue())
231
- return 'No user limit defined';
232
- if (this.value === 0)
233
- return 'No additional users allowed';
234
- return `Maximum ${this.value} additional users`;
235
- }
236
- }
237
- exports.ServiceMaxUsers = ServiceMaxUsers;
238
- ServiceMaxUsers.PROPERTY_NAME = 'maxUsers';
239
- ServiceMaxUsers.MAX_USERS_OPTIONS = {
240
- allowNegative: false, // El número de usuarios no puede ser negativo
241
- allowZero: true, // Permitir 0 usuarios adicionales (servicio sin extensión de usuarios)
242
- allowDecimals: false, // Los usuarios deben ser números enteros
243
- maxDecimalPlaces: 0, // Sin decimales para conteo de usuarios
244
- minValue: 0, // Valor mínimo es cero
245
- maxValue: 10000, // Valor máximo razonable para usuarios adicionales
246
- };
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceName = void 0;
4
- const String_1 = require("../../../../shared/domain/value-objects/String");
5
- class ServiceName extends String_1.String {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceName.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- String_1.String.guardAgainstEmptyValue(value, ServiceName.PROPERTY_NAME);
11
- String_1.String.guardAgainstInvalidType(value, ServiceName.PROPERTY_NAME);
12
- return new ServiceName(value, false);
13
- }
14
- static fromPrimitives(primitive) {
15
- const value = primitive;
16
- return new ServiceName(value, true);
17
- }
18
- toPrimitives() {
19
- return this.value;
20
- }
21
- }
22
- exports.ServiceName = ServiceName;
23
- ServiceName.PROPERTY_NAME = 'name';
@@ -1,246 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceReportTypes = void 0;
4
- const StringList_1 = require("../../../../shared/domain/value-objects/StringList");
5
- const ReportType_1 = require("../enums/ReportType");
6
- const InvalidReportTypeError_1 = require("../exceptions/InvalidReportTypeError");
7
- class ServiceReportTypes extends StringList_1.StringList {
8
- constructor(reportTypes, skipDomainValidation) {
9
- super(reportTypes, skipDomainValidation, ServiceReportTypes.PROPERTY_NAME, { allowEmpty: true });
10
- if (skipDomainValidation === false) {
11
- this.validateReportTypes(reportTypes);
12
- }
13
- }
14
- static create(reportTypes) {
15
- StringList_1.StringList.guardAgainstInvalidStringList(reportTypes, ServiceReportTypes.PROPERTY_NAME);
16
- return new ServiceReportTypes(reportTypes, false);
17
- }
18
- static fromPrimitives(primitives) {
19
- const value = primitives.map((primitive) => primitive);
20
- return new ServiceReportTypes(value, true);
21
- }
22
- /**
23
- * Valida que todos los tipos de reporte sean válidos.
24
- */
25
- validateReportTypes(reportTypes) {
26
- for (const reportType of reportTypes) {
27
- if (!ServiceReportTypes.VALID_REPORT_TYPES.includes(reportType)) {
28
- throw InvalidReportTypeError_1.InvalidReportTypeError.create(reportType, ServiceReportTypes.VALID_REPORT_TYPES);
29
- }
30
- }
31
- }
32
- /**
33
- * Verifica si incluye reportes auditables.
34
- */
35
- includesAuditableReports() {
36
- return this.value.includes(ReportType_1.ReportType.AUDITABLE);
37
- }
38
- /**
39
- * Verifica si incluye reportes técnicos.
40
- */
41
- includesTechnicalReports() {
42
- return this.value.includes(ReportType_1.ReportType.TECHNICAL);
43
- }
44
- /**
45
- * Verifica si incluye reportes ejecutivos.
46
- */
47
- includesExecutiveReports() {
48
- return this.value.includes(ReportType_1.ReportType.EXECUTIVE);
49
- }
50
- /**
51
- * Verifica si incluye múltiples tipos de reporte.
52
- */
53
- hasMultipleReportTypes() {
54
- return this.value.length > 1;
55
- }
56
- /**
57
- * Verifica si incluye todos los tipos de reporte.
58
- */
59
- includesAllReportTypes() {
60
- return this.value.length === ServiceReportTypes.VALID_REPORT_TYPES.length
61
- && ServiceReportTypes.VALID_REPORT_TYPES.every((type) => this.value.includes(type));
62
- }
63
- /**
64
- * Verifica si solo incluye reportes de cumplimiento (auditables).
65
- */
66
- isComplianceOnly() {
67
- return this.value.length === 1 && this.includesAuditableReports();
68
- }
69
- /**
70
- * Verifica si solo incluye reportes técnicos.
71
- */
72
- isTechnicalOnly() {
73
- return this.value.length === 1 && this.includesTechnicalReports();
74
- }
75
- /**
76
- * Verifica si solo incluye reportes ejecutivos.
77
- */
78
- isExecutiveOnly() {
79
- return this.value.length === 1 && this.includesExecutiveReports();
80
- }
81
- /**
82
- * Verifica si incluye reportes para audiencias técnicas.
83
- */
84
- includesTechnicalAudience() {
85
- return this.includesTechnicalReports() || this.includesAuditableReports();
86
- }
87
- /**
88
- * Verifica si incluye reportes para audiencias ejecutivas.
89
- */
90
- includesExecutiveAudience() {
91
- return this.includesExecutiveReports();
92
- }
93
- /**
94
- * Obtiene los tipos de reporte válidos.
95
- */
96
- static getValidReportTypes() {
97
- return Object.freeze([...ServiceReportTypes.VALID_REPORT_TYPES]);
98
- }
99
- /**
100
- * Verifica si un valor es un tipo de reporte válido.
101
- */
102
- static isValidReportType(reportType) {
103
- return ServiceReportTypes.VALID_REPORT_TYPES.includes(reportType);
104
- }
105
- /**
106
- * Agrega un nuevo tipo de reporte si no está ya presente.
107
- */
108
- addReportType(reportType) {
109
- if (this.value.includes(reportType)) {
110
- return this;
111
- }
112
- const newReportTypes = [...this.value, reportType];
113
- return new ServiceReportTypes(newReportTypes, false);
114
- }
115
- /**
116
- * Remueve un tipo de reporte específico.
117
- */
118
- removeReportType(reportType) {
119
- const newReportTypes = this.value.filter((type) => type !== reportType);
120
- return new ServiceReportTypes(newReportTypes, false);
121
- }
122
- /**
123
- * Obtiene los tipos de reporte faltantes.
124
- */
125
- getMissingReportTypes() {
126
- return ServiceReportTypes.VALID_REPORT_TYPES.filter((type) => !this.value.includes(type));
127
- }
128
- /**
129
- * Obtiene el nivel de cobertura de reportes.
130
- */
131
- getCoverageLevel() {
132
- if (this.value.length === 0)
133
- return 'none';
134
- if (this.value.length === 1)
135
- return 'basic';
136
- if (this.value.length === 2)
137
- return 'standard';
138
- return 'comprehensive';
139
- }
140
- /**
141
- * Obtiene las audiencias objetivo de los reportes.
142
- */
143
- getTargetAudiences() {
144
- const audiences = [];
145
- if (this.includesAuditableReports()) {
146
- audiences.push('Auditores externos', 'Organismos regulatorios');
147
- }
148
- if (this.includesTechnicalReports()) {
149
- audiences.push('Equipos técnicos', 'Especialistas en sostenibilidad');
150
- }
151
- if (this.includesExecutiveReports()) {
152
- audiences.push('Alta dirección', 'Stakeholders externos');
153
- }
154
- return audiences;
155
- }
156
- /**
157
- * Obtiene las características de los tipos de reporte.
158
- */
159
- getReportCharacteristics() {
160
- const characteristics = {};
161
- if (this.includesAuditableReports()) {
162
- characteristics[ReportType_1.ReportType.AUDITABLE] = {
163
- purpose: 'Cumplimiento y verificación',
164
- audience: 'Auditores y reguladores',
165
- detail: 'Alto nivel de detalle y trazabilidad',
166
- format: 'Formal y estructurado',
167
- };
168
- }
169
- if (this.includesTechnicalReports()) {
170
- characteristics[ReportType_1.ReportType.TECHNICAL] = {
171
- purpose: 'Análisis técnico detallado',
172
- audience: 'Equipos técnicos y especialistas',
173
- detail: 'Datos técnicos y metodológicos',
174
- format: 'Detallado con anexos técnicos',
175
- };
176
- }
177
- if (this.includesExecutiveReports()) {
178
- characteristics[ReportType_1.ReportType.EXECUTIVE] = {
179
- purpose: 'Resumen ejecutivo y toma de decisiones',
180
- audience: 'Alta dirección y stakeholders',
181
- detail: 'Resumen con insights clave',
182
- format: 'Visual y fácil de entender',
183
- };
184
- }
185
- return characteristics;
186
- }
187
- /**
188
- * Verifica si requiere recursos especializados.
189
- */
190
- requiresSpecializedResources() {
191
- // Múltiples tipos de reporte requieren recursos especializados
192
- return this.hasMultipleReportTypes() || this.includesAuditableReports();
193
- }
194
- /**
195
- * Obtiene una descripción de los tipos de reporte incluidos.
196
- */
197
- getDescription() {
198
- if (this.value.length === 0) {
199
- return 'Sin tipos de reporte definidos';
200
- }
201
- const typeDescriptions = {
202
- [ReportType_1.ReportType.AUDITABLE]: 'Reportes Auditables',
203
- [ReportType_1.ReportType.TECHNICAL]: 'Reportes Técnicos',
204
- [ReportType_1.ReportType.EXECUTIVE]: 'Reportes Ejecutivos',
205
- };
206
- const descriptions = this.value.map((type) => typeDescriptions[type]);
207
- return descriptions.join(', ');
208
- }
209
- /**
210
- * Convierte los tipos de reporte a enum para uso tipado.
211
- */
212
- toEnumArray() {
213
- return this.value;
214
- }
215
- /**
216
- * Obtiene el número de tipos de reporte únicos.
217
- */
218
- getReportTypeCount() {
219
- return this.value.length;
220
- }
221
- /**
222
- * Verifica si está vacío (sin tipos de reporte).
223
- */
224
- isEmpty() {
225
- return this.value.length === 0;
226
- }
227
- toPrimitives() {
228
- return this.value;
229
- }
230
- /**
231
- * Representación como string descriptiva.
232
- */
233
- toString() {
234
- if (this.isEmpty()) {
235
- return 'No report types';
236
- }
237
- return this.getDescription();
238
- }
239
- toEnums() {
240
- return this.value;
241
- }
242
- }
243
- exports.ServiceReportTypes = ServiceReportTypes;
244
- ServiceReportTypes.PROPERTY_NAME = 'reportTypes';
245
- // Tipos de reporte válidos
246
- ServiceReportTypes.VALID_REPORT_TYPES = Object.values(ReportType_1.ReportType);