@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,110 +0,0 @@
1
- import { String } from '../../../../shared/domain/value-objects/String';
2
- import { ServiceStatus as ServiceStatusEnum } from '../enums/ServiceStatus';
3
- export declare class ServiceStatus extends String {
4
- private static readonly PROPERTY_NAME;
5
- private static readonly VALID_SERVICE_STATUSES;
6
- private constructor();
7
- static create(value: string): ServiceStatus;
8
- static fromPrimitives(primitive: string): ServiceStatus;
9
- /**
10
- * Valida que el valor sea un estado de servicio válido.
11
- */
12
- private validateServiceStatus;
13
- /**
14
- * Verifica si el servicio está activo.
15
- */
16
- isActive(): boolean;
17
- /**
18
- * Verifica si el servicio está inactivo.
19
- */
20
- isInactive(): boolean;
21
- /**
22
- * Verifica si el servicio está descontinuado.
23
- */
24
- isDiscontinued(): boolean;
25
- /**
26
- * Verifica si el servicio está disponible para uso (activo).
27
- */
28
- isAvailable(): boolean;
29
- /**
30
- * Verifica si el servicio no está disponible (inactivo o descontinuado).
31
- */
32
- isUnavailable(): boolean;
33
- /**
34
- * Verifica si es un estado temporal (inactivo).
35
- */
36
- isTemporaryStatus(): boolean;
37
- /**
38
- * Verifica si es un estado permanente (activo o descontinuado).
39
- */
40
- isPermanentStatus(): boolean;
41
- /**
42
- * Verifica si el servicio puede ser reactivado.
43
- */
44
- canBeReactivated(): boolean;
45
- /**
46
- * Verifica si el servicio puede ser contratado.
47
- */
48
- canBeContracted(): boolean;
49
- /**
50
- * Verifica si requiere migración (descontinuado).
51
- */
52
- requiresMigration(): boolean;
53
- /**
54
- * Obtiene los estados de servicio válidos.
55
- */
56
- static getValidServiceStatuses(): readonly ServiceStatusEnum[];
57
- /**
58
- * Verifica si un valor es un estado de servicio válido.
59
- */
60
- static isValidServiceStatus(value: string): boolean;
61
- /**
62
- * Obtiene la descripción del estado del servicio.
63
- */
64
- getDescription(): string;
65
- /**
66
- * Obtiene el impacto del estado en el negocio.
67
- */
68
- getBusinessImpact(): string;
69
- /**
70
- * Obtiene las acciones recomendadas según el estado.
71
- */
72
- getRecommendedActions(): string[];
73
- /**
74
- * Obtiene el nivel de prioridad de atención.
75
- */
76
- getPriorityLevel(): 'high' | 'medium' | 'low';
77
- /**
78
- * Verifica si el estado permite actualizaciones del servicio.
79
- */
80
- allowsServiceUpdates(): boolean;
81
- /**
82
- * Obtiene las características del estado del servicio.
83
- */
84
- getCharacteristics(): {
85
- isAvailable: boolean;
86
- isTemporary: boolean;
87
- canBeReactivated: boolean;
88
- canBeContracted: boolean;
89
- requiresMigration: boolean;
90
- allowsUpdates: boolean;
91
- priorityLevel: string;
92
- businessImpact: string;
93
- recommendedActions: string[];
94
- };
95
- /**
96
- * Obtiene los estados de transición válidos desde el estado actual.
97
- */
98
- getValidTransitions(): ServiceStatusEnum[];
99
- /**
100
- * Verifica si puede transicionar a un estado específico.
101
- */
102
- canTransitionTo(targetStatus: ServiceStatusEnum): boolean;
103
- toPrimitives(): string;
104
- toEnum(): ServiceStatusEnum;
105
- /**
106
- * Representación como string descriptiva.
107
- */
108
- toString(): string;
109
- }
110
- //# sourceMappingURL=ServiceStatus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceStatus.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AACxE,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG5E,qBAAa,aACX,SAAQ,MAAM;IACd,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAY;IAGjD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAyD;IAEvG,OAAO;WAQgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa;WAOpC,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,aAA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;IAI/B,MAAM,IAAI,iBAAiB;IAIlC;;OAEG;IACa,QAAQ,IAAI,MAAM;CASnC"}
@@ -1,111 +0,0 @@
1
- import { String } from '../../../../shared/domain/value-objects/String';
2
- import { ServiceType as ServiceTypeEnum } from '../enums/ServiceType';
3
- export declare class ServiceType extends String {
4
- private static readonly PROPERTY_NAME;
5
- private static readonly VALID_SERVICE_TYPES;
6
- private constructor();
7
- static create(value: string): ServiceType;
8
- static fromPrimitives(primitive: string): ServiceType;
9
- /**
10
- * Valida que el valor sea un tipo de servicio válido.
11
- */
12
- private validateServiceType;
13
- /**
14
- * Verifica si es un servicio base.
15
- */
16
- isBaseService(): boolean;
17
- /**
18
- * Verifica si es un servicio adicional.
19
- */
20
- isAdditionalService(): boolean;
21
- /**
22
- * Verifica si es una característica de plataforma.
23
- */
24
- isPlatformFeature(): boolean;
25
- /**
26
- * Verifica si es un servicio dependiente.
27
- */
28
- isDependentService(): boolean;
29
- /**
30
- * Verifica si es un servicio principal (base o adicional).
31
- */
32
- isPrincipalService(): boolean;
33
- /**
34
- * Verifica si es un servicio que requiere dependencias.
35
- */
36
- requiresDependencies(): boolean;
37
- /**
38
- * Verifica si es un servicio que genera ingresos directos.
39
- */
40
- generatesDirectRevenue(): boolean;
41
- /**
42
- * Verifica si es un servicio que mejora la propuesta de valor.
43
- */
44
- enhancesValueProposition(): boolean;
45
- /**
46
- * Verifica si puede ser contratado independientemente.
47
- */
48
- canBeContractedIndependently(): boolean;
49
- /**
50
- * Verifica si puede ser incluido en paquetes.
51
- */
52
- canBeIncludedInPackages(): boolean;
53
- /**
54
- * Verifica si requiere configuración especial.
55
- */
56
- requiresSpecialConfiguration(): boolean;
57
- /**
58
- * Obtiene los tipos de servicio válidos.
59
- */
60
- static getValidServiceTypes(): readonly ServiceTypeEnum[];
61
- /**
62
- * Verifica si un valor es un tipo de servicio válido.
63
- */
64
- static isValidServiceType(value: string): boolean;
65
- /**
66
- * Obtiene la descripción del tipo de servicio.
67
- */
68
- getDescription(): string;
69
- /**
70
- * Obtiene el modelo de negocio del tipo de servicio.
71
- */
72
- getBusinessModel(): string;
73
- /**
74
- * Obtiene la estrategia de precio del tipo de servicio.
75
- */
76
- getPricingStrategy(): string;
77
- /**
78
- * Obtiene el nivel de prioridad comercial.
79
- */
80
- getCommercialPriority(): 'high' | 'medium' | 'low';
81
- /**
82
- * Obtiene las características del tipo de servicio.
83
- */
84
- getCharacteristics(): {
85
- isPrincipal: boolean;
86
- requiresDependencies: boolean;
87
- generatesDirectRevenue: boolean;
88
- enhancesValueProposition: boolean;
89
- canBeContractedIndependently: boolean;
90
- canBeIncludedInPackages: boolean;
91
- requiresSpecialConfiguration: boolean;
92
- commercialPriority: string;
93
- businessModel: string;
94
- pricingStrategy: string;
95
- };
96
- /**
97
- * Obtiene los tipos de servicio compatibles para bundling.
98
- */
99
- getCompatibleTypesForBundling(): ServiceTypeEnum[];
100
- /**
101
- * Verifica si puede ser bundled con otro tipo de servicio.
102
- */
103
- canBeBundledWith(otherType: ServiceTypeEnum): boolean;
104
- toPrimitives(): string;
105
- toEnum(): ServiceTypeEnum;
106
- /**
107
- * Representación como string descriptiva.
108
- */
109
- toString(): string;
110
- }
111
- //# sourceMappingURL=ServiceType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceType.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AACxE,OAAO,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAGtE,qBAAa,WACX,SAAQ,MAAM;IACd,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAU;IAG/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAqD;IAEhG,OAAO;WAQgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;WAOlC,cAA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,gBAAgB,CAAC,SAAS,EAAE,eAAe,GAAG,OAAO;IAI5C,YAAY,IAAI,MAAM;IAI/B,MAAM,IAAI,eAAe;IAIhC;;OAEG;IACa,QAAQ,IAAI,MAAM;CAUnC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from './RootError';
2
- export declare class InvalidSemanticUuidError extends RootError {
3
- private static readonly INVALID_SEMANTIC_UUID_ERROR_MESSAGE;
4
- private constructor();
5
- static create(semanticUuid: string, propertyName: string): InvalidSemanticUuidError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidSemanticUuidError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidSemanticUuidError.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,wBAAyB,SAAQ,SAAS;IACrD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mCAAmC,CAAgJ;IAE3M,OAAO;WASgB,MAAM,CAC3B,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GACnB,wBAAwB;IAIX,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,95 +0,0 @@
1
- /**
2
- * Domain Service for date and datetime formatting and validation operations.
3
- * Provides centralized business logic for date/datetime handling across the domain.
4
- */
5
- export declare class DateTimeFormattingDomainService {
6
- private static readonly DATE_REGEX;
7
- private static readonly DATETIME_REGEX;
8
- /**
9
- * Validates if a date string has the correct format (DD/MM/YYYY)
10
- * @param dateValue The date string to validate
11
- * @returns true if the format is valid, false otherwise
12
- */
13
- static isValidDateFormat(dateValue: string): boolean;
14
- /**
15
- * Validates if a datetime string has the correct format (DD/MM/YYYY HH:mm:ss)
16
- * @param dateTimeValue The datetime string to validate
17
- * @returns true if the format is valid, false otherwise
18
- */
19
- static isValidDateTimeFormat(dateTimeValue: string): boolean;
20
- /**
21
- * Formats a Date object to a date string (DD/MM/YYYY)
22
- * @param date The Date object to format
23
- * @returns The formatted date string
24
- */
25
- static formatDateToString(date: Date): string;
26
- /**
27
- * Formats a Date object to a datetime string (DD/MM/YYYY HH:mm:ss)
28
- * @param date The Date object to format
29
- * @returns The formatted datetime string
30
- */
31
- static formatDateTimeToString(date: Date): string;
32
- /**
33
- * Gets the current date formatted as a string (DD/MM/YYYY)
34
- * @returns The current date as a formatted string
35
- */
36
- static getCurrentDateString(): string;
37
- /**
38
- * Gets the current datetime formatted as a string (DD/MM/YYYY HH:mm:ss)
39
- * @returns The current datetime as a formatted string
40
- */
41
- static getCurrentDateTimeString(): string;
42
- /**
43
- * Parses a date string (DD/MM/YYYY) to a Date object
44
- * @param dateString The date string to parse
45
- * @returns The parsed Date object
46
- * @throws InvalidDateFormatError if the format is invalid
47
- */
48
- static parseDateString(dateString: string): Date;
49
- /**
50
- * Parses a datetime string (DD/MM/YYYY HH:mm:ss) to a Date object
51
- * @param dateTimeString The datetime string to parse
52
- * @returns The parsed Date object
53
- * @throws InvalidDateFormatError if the format is invalid
54
- */
55
- static parseDateTimeString(dateTimeString: string): Date;
56
- /**
57
- * Validates if a date string represents a valid calendar date
58
- * @param dateString The date string to validate
59
- * @returns true if the date is valid, false otherwise
60
- */
61
- static isValidDate(dateString: string): boolean;
62
- /**
63
- * Validates if a datetime string represents a valid calendar datetime
64
- * @param dateTimeString The datetime string to validate
65
- * @returns true if the datetime is valid, false otherwise
66
- */
67
- static isValidDateTime(dateTimeString: string): boolean;
68
- /**
69
- * Compares two date strings
70
- * @param dateString1 First date string
71
- * @param dateString2 Second date string
72
- * @returns negative if first is earlier, positive if later, 0 if equal
73
- * @throws InvalidDateFormatError if any format is invalid
74
- */
75
- static compareDates(dateString1: string, dateString2: string): number;
76
- /**
77
- * Compares two datetime strings
78
- * @param dateTimeString1 First datetime string
79
- * @param dateTimeString2 Second datetime string
80
- * @returns negative if first is earlier, positive if later, 0 if equal
81
- * @throws InvalidDateFormatError if any format is invalid
82
- */
83
- static compareDateTimes(dateTimeString1: string, dateTimeString2: string): number;
84
- /**
85
- * Gets the supported date format string
86
- * @returns The date format string
87
- */
88
- static getDateFormat(): string;
89
- /**
90
- * Gets the supported datetime format string
91
- * @returns The datetime format string
92
- */
93
- static getDateTimeFormat(): string;
94
- }
95
- //# sourceMappingURL=DateTimeFormattingDomainService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DateTimeFormattingDomainService.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/services/DateTimeFormattingDomainService.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,qBAAa,+BAA+B;IAC1C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAA2D;IAE7F,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAyG;IAE/I;;;;OAIG;WACW,iBAAiB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAI3D;;;;OAIG;WACW,qBAAqB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO;IAInE;;;;OAIG;WACW,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAQpD;;;;OAIG;WACW,sBAAsB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAWxD;;;OAGG;WACW,oBAAoB,IAAI,MAAM;IAI5C;;;OAGG;WACW,wBAAwB,IAAI,MAAM;IAIhD;;;;;OAKG;WACW,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI;IASvD;;;;;OAKG;WACW,mBAAmB,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI;IAY/D;;;;OAIG;WACW,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IActD;;;;OAIG;WACW,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO;IAc9D;;;;;;OAMG;WACW,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM;IAO5E;;;;;;OAMG;WACW,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM;IAOxF;;;OAGG;WACW,aAAa,IAAI,MAAM;IAIrC;;;OAGG;WACW,iBAAiB,IAAI,MAAM;CAG1C"}
@@ -1,85 +0,0 @@
1
- import { IEither } from '../../../either';
2
- import { SemanticUuidPrefix } from '../../enums/SemanticUuidPrefix';
3
- import { InvalidSemanticUuidError } from '../../exceptions/InvalidSemanticUuidError';
4
- /**
5
- * Interface for Semantic UUID parsing and validation domain service.
6
- * Provides centralized business logic for semantic UUID handling across the domain.
7
- * Uses Either pattern for functional error handling.
8
- *
9
- * This service is designed to be used in factories, application services, and other
10
- * non-value-object contexts to maintain Value Object purity.
11
- */
12
- export interface ISemanticUuidDomainService {
13
- /**
14
- * Validates if a string is a valid semantic UUID prefix
15
- * @param prefix The prefix string to validate
16
- * @returns Either with validation result or error
17
- */
18
- isValidPrefix(prefix: string): IEither<InvalidSemanticUuidError, boolean>;
19
- /**
20
- * Gets the bounded context name from a semantic UUID prefix
21
- * @param prefix The semantic UUID prefix
22
- * @returns Either with bounded context name or error
23
- */
24
- getBoundedContext(prefix: SemanticUuidPrefix): IEither<InvalidSemanticUuidError, string>;
25
- /**
26
- * Gets the subdomain from a semantic UUID prefix
27
- * @param prefix The semantic UUID prefix
28
- * @returns Either with subdomain name or error
29
- */
30
- getSubdomain(prefix: SemanticUuidPrefix): IEither<InvalidSemanticUuidError, string>;
31
- /**
32
- * Gets all available prefixes as an array
33
- * @returns Either with array of all prefixes or error
34
- */
35
- getAllPrefixes(): IEither<InvalidSemanticUuidError, string[]>;
36
- /**
37
- * Gets prefixes by bounded context
38
- * @param boundedContext The bounded context name
39
- * @returns Either with array of prefixes for the context or error
40
- */
41
- getPrefixesByBoundedContext(boundedContext: string): IEither<InvalidSemanticUuidError, SemanticUuidPrefix[]>;
42
- /**
43
- * Validates a complete semantic UUID format
44
- * @param semanticUuid The complete semantic UUID to validate
45
- * @returns Either with validation result or error
46
- */
47
- validateSemanticUuidFormat(semanticUuid: string): IEither<InvalidSemanticUuidError, boolean>;
48
- /**
49
- * Extracts and validates the prefix from a semantic UUID
50
- * @param semanticUuid The complete semantic UUID
51
- * @returns Either with extracted prefix or error
52
- */
53
- extractPrefix(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
54
- /**
55
- * Extracts and validates the UUID from a semantic UUID
56
- * @param semanticUuid The complete semantic UUID
57
- * @returns Either with extracted UUID or error
58
- */
59
- extractUuid(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
60
- /**
61
- * Extracts the bounded context code (first 3 letters) from a semantic UUID
62
- * @param semanticUuid The complete semantic UUID
63
- * @returns Either with bounded context code or error
64
- */
65
- extractBoundedContextCode(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
66
- /**
67
- * Extracts all subdomain parts from a semantic UUID
68
- * @param semanticUuid The complete semantic UUID
69
- * @returns Either with array of subdomain parts or error
70
- */
71
- extractSubdomains(semanticUuid: string): IEither<InvalidSemanticUuidError, string[]>;
72
- /**
73
- * Checks if a semantic UUID has subdomains or is BC-level only
74
- * @param semanticUuid The complete semantic UUID
75
- * @returns Either with boolean indicating if it has subdomains or error
76
- */
77
- hasSubdomains(semanticUuid: string): IEither<InvalidSemanticUuidError, boolean>;
78
- /**
79
- * Creates a human-readable log representation of a semantic UUID
80
- * @param semanticUuid The complete semantic UUID
81
- * @returns Either with log string or error
82
- */
83
- toLogString(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
84
- }
85
- //# sourceMappingURL=ISemanticUuidDomainService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ISemanticUuidDomainService.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EA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G;IACH,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;CAC9E"}
@@ -1,67 +0,0 @@
1
- import { IEither } from '../../../either';
2
- import { SemanticUuidPrefix } from '../../enums/SemanticUuidPrefix';
3
- import { InvalidSemanticUuidError } from '../../exceptions/InvalidSemanticUuidError';
4
- import { ISemanticUuidDomainService } from '../contracts/ISemanticUuidDomainService';
5
- /**
6
- * Domain Service for semantic UUID parsing, validation and business logic operations.
7
- * Provides centralized business logic for semantic UUID handling across the domain.
8
- * Refactored to support dependency injection and Either pattern for error handling.
9
- *
10
- * This service maintains Value Object purity by being used in factories,
11
- * application services, and other appropriate contexts.
12
- */
13
- export declare class SemanticUuidDomainService implements ISemanticUuidDomainService {
14
- private constructor();
15
- static create(): SemanticUuidDomainService;
16
- private readonly SEMANTIC_UUID_REGEX;
17
- private readonly UUID_REGEX;
18
- /**
19
- * Validates if a string is a valid semantic UUID prefix
20
- */
21
- isValidPrefix(prefix: string): IEither<InvalidSemanticUuidError, boolean>;
22
- /**
23
- * Gets the bounded context name from a semantic UUID prefix
24
- */
25
- getBoundedContext(prefix: SemanticUuidPrefix): IEither<InvalidSemanticUuidError, string>;
26
- /**
27
- * Gets the subdomain from a semantic UUID prefix
28
- */
29
- getSubdomain(prefix: SemanticUuidPrefix): IEither<InvalidSemanticUuidError, string>;
30
- /**
31
- * Gets all available prefixes as an array
32
- */
33
- getAllPrefixes(): IEither<InvalidSemanticUuidError, string[]>;
34
- /**
35
- * Gets prefixes by bounded context
36
- */
37
- getPrefixesByBoundedContext(boundedContext: string): IEither<InvalidSemanticUuidError, SemanticUuidPrefix[]>;
38
- /**
39
- * Validates a complete semantic UUID format
40
- */
41
- validateSemanticUuidFormat(semanticUuid: string): IEither<InvalidSemanticUuidError, boolean>;
42
- /**
43
- * Extracts and validates the prefix from a semantic UUID
44
- */
45
- extractPrefix(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
46
- /**
47
- * Extracts and validates the UUID from a semantic UUID
48
- */
49
- extractUuid(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
50
- /**
51
- * Extracts the bounded context code (first 3 letters) from a semantic UUID
52
- */
53
- extractBoundedContextCode(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
54
- /**
55
- * Extracts all subdomain parts from a semantic UUID
56
- */
57
- extractSubdomains(semanticUuid: string): IEither<InvalidSemanticUuidError, string[]>;
58
- /**
59
- * Checks if a semantic UUID has subdomains or is BC-level only
60
- */
61
- hasSubdomains(semanticUuid: string): IEither<InvalidSemanticUuidError, boolean>;
62
- /**
63
- * Creates a human-readable log representation of a semantic UUID
64
- */
65
- toLogString(semanticUuid: string): IEither<InvalidSemanticUuidError, string>;
66
- }
67
- //# sourceMappingURL=SemanticUuidDomainService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SemanticUuidDomainService.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAIrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AAErF;;;;;;;GAOG;AACH,qBAAa,yBAA0B,YAAW,0BAA0B;IAC1E,OAAO;WAIO,MAAM,IAAI,yBAAyB;IAKjD,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAiG;IAGrI,OAAO,CAAC,QAAQ,CAAC,UAAU,CAA4E;IAEvG;;OAEG;IACI,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,OAAO,CAAC;IAmBhF;;OAEG;IACI,iBAAiB,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;IA4B/F;;OAEG;IACI,YAAY,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAc1F;;OAEG;IACI,cAAc,IAAI,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,CAAC;IAOpE;;OAEG;IACI,2BAA2B,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,kBAAkB,EAAE,CAAC;IA2DnH;;OAEG;IACI,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,OAAO,CAAC;IAYnG;;OAEG;IACI,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAarF;;OAEG;IACI,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAmBnF;;OAEG;IACI,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;IAejG;;OAEG;IACI,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,EAAE,CAAC;IAiB3F;;OAEG;IACI,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,OAAO,CAAC;IAetF;;OAEG;IACI,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC;CA+BpF"}
@@ -1,12 +0,0 @@
1
- import { ActivityDataCollectionPermissions } from './ActivityDataCollectionPermissions';
2
- import { EmissionCalculationProcessPermissions } from './EmissionCalculationProcessPermissions';
3
- import { EmissionCalculationResultsPermissions } from './EmissionCalculationResultsPermissions';
4
- import { CarbonFootprintConfigurationPermissions } from './CarbonFootprintConfigurationPermissions';
5
- import { EmissionCalculationFormulaPermissions } from './EmissionCalculationFormulaPermissions';
6
- import { PurchaseManagementPermissions } from './PurchaseManagementPermissions';
7
- import { SystemAdministrationPermissions } from './SystemAdministrationPermissions';
8
- import { UserManagementPermissions } from './UserManagementPermissions';
9
- import { CompanyResourcesPermissions } from './CompanyResourcesPermissions';
10
- import { StakeholderManagementPermissions } from './StakeholderManagementPermissions';
11
- export type AllPermissions = UserManagementPermissions & CarbonFootprintConfigurationPermissions & EmissionCalculationFormulaPermissions & ActivityDataCollectionPermissions & EmissionCalculationProcessPermissions & EmissionCalculationResultsPermissions & PurchaseManagementPermissions & SystemAdministrationPermissions & CompanyResourcesPermissions & StakeholderManagementPermissions;
12
- //# sourceMappingURL=AllPermissions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AllPermissions.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/AllPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC5E,OAAO,EAAE,gCAAgC,EAAE,MAAM,oCAAoC,CAAC;AAItF,MAAM,MAAM,cAAc,GAAG,yBAAyB,GACtD,uCAAuC,GACvC,qCAAqC,GACrC,iCAAiC,GACjC,qCAAqC,GACrC,qCAAqC,GACrC,6BAA6B,GAC7B,+BAA+B,GAC/B,2BAA2B,GAC3B,gCAAgC,CAAC"}
@@ -1,12 +0,0 @@
1
- import { ActivityDataCollectionPermissionsPrimitives } from './ActivityDataCollectionPermissionsPrimitives';
2
- import { EmissionCalculationProcessPermissionsPrimitives } from './EmissionCalculationProcessPermissionsPrimitives';
3
- import { EmissionCalculationResultsPermissionsPrimitives } from './EmissionCalculationResultsPermissionsPrimitives';
4
- import { CarbonFootprintConfigurationPermissionsPrimitives } from './CarbonFootprintConfigurationPermissionsPrimitives';
5
- import { EmissionCalculationFormulaPermissionsPrimitives } from './EmissionCalculationFormulaPermissionsPrimitives';
6
- import { PurchaseManagementPermissionsPrimitives } from './PurchaseManagementPermissionsPrimitives';
7
- import { SystemAdministrationPermissionsPrimitives } from './SystemAdministrationPermissionsPrimitives';
8
- import { UserManagementPermissionsPrimitives } from './UserManagementPermissionsPrimitives';
9
- import { CompanyResourcesPermissionsPrimitives } from './CompanyResourcesPermissionsPrimitives';
10
- import { StakeholderManagementPermissionsPrimitives } from './StakeholderManagementPermissionsPrimitives';
11
- export type AllPermissionsPrimitives = UserManagementPermissionsPrimitives & CarbonFootprintConfigurationPermissionsPrimitives & EmissionCalculationFormulaPermissionsPrimitives & ActivityDataCollectionPermissionsPrimitives & EmissionCalculationProcessPermissionsPrimitives & EmissionCalculationResultsPermissionsPrimitives & PurchaseManagementPermissionsPrimitives & SystemAdministrationPermissionsPrimitives & CompanyResourcesPermissionsPrimitives & StakeholderManagementPermissionsPrimitives;
12
- //# sourceMappingURL=AllPermissionsPrimitives.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AllPermissionsPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/AllPermissionsPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2CAA2C,EAAE,MAAM,+CAA+C,CAAC;AAC5G,OAAO,EAAE,+CAA+C,EAAE,MAAM,mDAAmD,CAAC;AACpH,OAAO,EAAE,+CAA+C,EAAE,MAAM,mDAAmD,CAAC;AACpH,OAAO,EAAE,iDAAiD,EAAE,MAAM,qDAAqD,CAAC;AACxH,OAAO,EAAE,+CAA+C,EAAE,MAAM,mDAAmD,CAAC;AACpH,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AACxG,OAAO,EAAE,mCAAmC,EAAE,MAAM,uCAAuC,CAAC;AAC5F,OAAO,EAAE,qCAAqC,EAAE,MAAM,yCAAyC,CAAC;AAChG,OAAO,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC;AAI1G,MAAM,MAAM,wBAAwB,GAAG,mCAAmC,GAC1E,iDAAiD,GACjD,+CAA+C,GAC/C,2CAA2C,GAC3C,+CAA+C,GAC/C,+CAA+C,GAC/C,uCAAuC,GACvC,yCAAyC,GACzC,qCAAqC,GACrC,0CAA0C,CAAC"}
@@ -1,8 +0,0 @@
1
- import { ServiceType } from '../../../purchase-management-system/service-catalog/domain/enums/ServiceType';
2
- export type ServiceReference = {
3
- id: string;
4
- code: string;
5
- name: string;
6
- type: ServiceType;
7
- };
8
- //# sourceMappingURL=ServiceReference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceReference.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ServiceReference.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8EAA8E,CAAC;AAE3G,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
@@ -1,8 +0,0 @@
1
- import { ServiceType } from '../../../purchase-management-system/service-catalog/domain/enums/ServiceType';
2
- export type ServiceReferencePrimitives = {
3
- id: string;
4
- code: string;
5
- name: string;
6
- type: ServiceType;
7
- };
8
- //# sourceMappingURL=ServiceReferencePrimitives.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceReferencePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/ServiceReferencePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8EAA8E,CAAC;AAE3G,MAAM,MAAM,0BAA0B,GAAG;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACnB,CAAC"}
@@ -1,5 +0,0 @@
1
- export type UserEmailProps = {
2
- value: string;
3
- emailVerified: boolean;
4
- };
5
- //# sourceMappingURL=UserEmailProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UserEmailProps.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/types/UserEmailProps.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC"}