@carbonbox/domain 0.6.2 → 0.6.3

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 (186) hide show
  1. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +1 -1
  2. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
  3. package/package.json +1 -1
  4. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.js +0 -2
  5. package/build/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.js +0 -263
  6. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.js +0 -20
  7. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.js +0 -9
  8. package/build/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.js +0 -10
  9. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.js +0 -19
  10. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.js +0 -19
  11. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.js +0 -19
  12. package/build/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.js +0 -2
  13. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.js +0 -2
  14. package/build/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.js +0 -2
  15. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.js +0 -131
  16. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.js +0 -22
  17. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.js +0 -22
  18. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.js +0 -140
  19. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.js +0 -243
  20. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.js +0 -24
  21. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.js +0 -26
  22. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.js +0 -21
  23. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.js +0 -23
  24. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.js +0 -212
  25. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.js +0 -193
  26. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.js +0 -22
  27. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.js +0 -22
  28. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.js +0 -24
  29. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.js +0 -22
  30. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.js +0 -22
  31. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.js +0 -22
  32. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.js +0 -22
  33. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.js +0 -22
  34. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.js +0 -22
  35. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.js +0 -246
  36. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.js +0 -23
  37. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.js +0 -246
  38. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.js +0 -221
  39. package/build/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.js +0 -235
  40. package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.js +0 -19
  41. package/build/carbonbox/shared/domain/services/DateTimeFormattingDomainService.js +0 -172
  42. package/build/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.js +0 -2
  43. package/build/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.js +0 -235
  44. package/build/carbonbox/shared/domain/types/AllPermissions.js +0 -2
  45. package/build/carbonbox/shared/domain/types/AllPermissionsPrimitives.js +0 -2
  46. package/build/carbonbox/shared/domain/types/ServiceReference.js +0 -2
  47. package/build/carbonbox/shared/domain/types/ServiceReferencePrimitives.js +0 -2
  48. package/build/carbonbox/shared/domain/types/UserEmailProps.js +0 -2
  49. package/build/carbonbox/shared/domain/value-objects/ServiceReference.js +0 -301
  50. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.js +0 -2
  51. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.js +0 -2
  52. package/build/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.js +0 -2
  53. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.js +0 -2
  54. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.js +0 -2
  55. package/build/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.js +0 -2
  56. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.js +0 -2
  57. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.js +0 -2
  58. package/build/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.js +0 -2
  59. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.js +0 -2
  60. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.js +0 -2
  61. package/build/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.js +0 -2
  62. package/build/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.js +0 -10
  63. package/build/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.js +0 -18
  64. package/build/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.js +0 -2
  65. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts +0 -52
  66. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.d.ts.map +0 -1
  67. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts +0 -60
  68. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.d.ts.map +0 -1
  69. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts +0 -17
  70. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.d.ts.map +0 -1
  71. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts +0 -6
  72. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceStatus.d.ts.map +0 -1
  73. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts +0 -7
  74. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceType.d.ts.map +0 -1
  75. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts +0 -8
  76. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.d.ts.map +0 -1
  77. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts +0 -8
  78. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.d.ts.map +0 -1
  79. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts +0 -8
  80. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.d.ts.map +0 -1
  81. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts +0 -22
  82. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/repository/IServiceRepository.d.ts.map +0 -1
  83. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts +0 -35
  84. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServicePrimitives.d.ts.map +0 -1
  85. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts +0 -35
  86. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/types/ServiceProps.d.ts.map +0 -1
  87. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts +0 -71
  88. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAdditionalUserRoles.d.ts.map +0 -1
  89. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts +0 -9
  90. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsDocumentReading.d.ts.map +0 -1
  91. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts +0 -9
  92. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceAllowsSectoralComparison.d.ts.map +0 -1
  93. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts +0 -54
  94. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceBasePricePercentage.d.ts.map +0 -1
  95. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts +0 -123
  96. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCategory.d.ts.map +0 -1
  97. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts +0 -9
  98. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCode.d.ts.map +0 -1
  99. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts +0 -11
  100. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceCreatedByStakeholder.d.ts.map +0 -1
  101. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts +0 -9
  102. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDependsOnServiceCode.d.ts.map +0 -1
  103. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts +0 -9
  104. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceDescription.d.ts.map +0 -1
  105. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts +0 -92
  106. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceExpertDedicationLevel.d.ts.map +0 -1
  107. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts +0 -83
  108. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceFixedPriceAmount.d.ts.map +0 -1
  109. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts +0 -9
  110. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasBasePrice.d.ts.map +0 -1
  111. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts +0 -9
  112. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceHasFixedPrice.d.ts.map +0 -1
  113. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts +0 -9
  114. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceId.d.ts.map +0 -1
  115. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts +0 -9
  116. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesCarbonBoxAcademy.d.ts.map +0 -1
  117. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts +0 -9
  118. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIncludesESGIndicators.d.ts.map +0 -1
  119. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts +0 -9
  120. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForCorporate.d.ts.map +0 -1
  121. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts +0 -9
  122. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForEvent.d.ts.map +0 -1
  123. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts +0 -9
  124. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsAvailableForProduct.d.ts.map +0 -1
  125. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts +0 -9
  126. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceIsRequiredService.d.ts.map +0 -1
  127. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts +0 -99
  128. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceMaxUsers.d.ts.map +0 -1
  129. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts +0 -9
  130. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceName.d.ts.map +0 -1
  131. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts +0 -119
  132. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceReportTypes.d.ts.map +0 -1
  133. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts +0 -110
  134. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceStatus.d.ts.map +0 -1
  135. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts +0 -111
  136. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/value-objects/ServiceType.d.ts.map +0 -1
  137. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts +0 -8
  138. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidError.d.ts.map +0 -1
  139. package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts +0 -95
  140. package/build/types/carbonbox/shared/domain/services/DateTimeFormattingDomainService.d.ts.map +0 -1
  141. package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts +0 -85
  142. package/build/types/carbonbox/shared/domain/services/contracts/ISemanticUuidDomainService.d.ts.map +0 -1
  143. package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts +0 -67
  144. package/build/types/carbonbox/shared/domain/services/implementations/SemanticUuidDomainService.d.ts.map +0 -1
  145. package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts +0 -12
  146. package/build/types/carbonbox/shared/domain/types/AllPermissions.d.ts.map +0 -1
  147. package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts +0 -12
  148. package/build/types/carbonbox/shared/domain/types/AllPermissionsPrimitives.d.ts.map +0 -1
  149. package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts +0 -8
  150. package/build/types/carbonbox/shared/domain/types/ServiceReference.d.ts.map +0 -1
  151. package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts +0 -8
  152. package/build/types/carbonbox/shared/domain/types/ServiceReferencePrimitives.d.ts.map +0 -1
  153. package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts +0 -5
  154. package/build/types/carbonbox/shared/domain/types/UserEmailProps.d.ts.map +0 -1
  155. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts +0 -134
  156. package/build/types/carbonbox/shared/domain/value-objects/ServiceReference.d.ts.map +0 -1
  157. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts +0 -3
  158. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissions.d.ts.map +0 -1
  159. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts +0 -3
  160. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsPrimitives.d.ts.map +0 -1
  161. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts +0 -3
  162. package/build/types/carbonbox/stakeholders/carbon-clients/domain/types/CarbonClientPermissionsValue.d.ts.map +0 -1
  163. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts +0 -3
  164. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissions.d.ts.map +0 -1
  165. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts +0 -3
  166. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsPrimitives.d.ts.map +0 -1
  167. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts +0 -3
  168. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/types/CarbonCoordinatorPermissionsValue.d.ts.map +0 -1
  169. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts +0 -3
  170. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissions.d.ts.map +0 -1
  171. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts +0 -3
  172. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsPrimitives.d.ts.map +0 -1
  173. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts +0 -3
  174. package/build/types/carbonbox/stakeholders/carbon-host/domain/types/CarbonHostPermissionsValue.d.ts.map +0 -1
  175. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts +0 -3
  176. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissions.d.ts.map +0 -1
  177. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts +0 -3
  178. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsPrimitives.d.ts.map +0 -1
  179. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts +0 -3
  180. package/build/types/carbonbox/stakeholders/carbon-managers/domain/types/CarbonManagerPermissionsValue.d.ts.map +0 -1
  181. package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts +0 -7
  182. package/build/types/carbonbox/stakeholders/shared/domain/enums/StakeholderBusinessStatus.d.ts.map +0 -1
  183. package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts +0 -7
  184. package/build/types/carbonbox/stakeholders/shared/domain/exceptions/InvalidStakeholderBusinessStatusError.d.ts.map +0 -1
  185. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts +0 -10
  186. package/build/types/carbonbox/stakeholders/shared/domain/types/StakeholderPermissions.d.ts.map +0 -1
@@ -1,301 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _a, _ServiceCatalogReference_id, _ServiceCatalogReference_code, _ServiceCatalogReference_name, _ServiceCatalogReference_type, _ServiceCatalogReference_guardAgainstInvalidType, _ServiceCatalogReference_guardAgainstInvalidId, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ServiceCatalogReference = void 0;
16
- const InvalidPropertyTypeError_1 = require("../exceptions/InvalidPropertyTypeError");
17
- const ObjectValueObject_1 = require("./ObjectValueObject");
18
- const Code_1 = require("./Code");
19
- const String_1 = require("./String");
20
- const AggregateId_1 = require("./AggregateId");
21
- const ServiceCatalogType_1 = require("../../../purchase-management-system/service-catalog/domain/enums/ServiceCatalogType");
22
- class ServiceCatalogReference extends ObjectValueObject_1.ObjectValueObject {
23
- /**
24
- * Constructor protegido para que solo clases hijas puedan instanciar.
25
- * Aplica todas las validaciones de dominio al momento de construcción.
26
- */
27
- constructor(value, skipDomainValidation, propertyName = _a.DEFAULT_PROPERTY_NAME) {
28
- super(value, skipDomainValidation, propertyName, 'The provided value must be of type ServiceCatalogReference from the domain layer', { allowNull: false, allowUndefined: false });
29
- _ServiceCatalogReference_id.set(this, void 0);
30
- _ServiceCatalogReference_code.set(this, void 0);
31
- _ServiceCatalogReference_name.set(this, void 0);
32
- _ServiceCatalogReference_type.set(this, void 0);
33
- if (skipDomainValidation === false) {
34
- _a.validateServiceCatalogReference(value, propertyName);
35
- }
36
- __classPrivateFieldSet(this, _ServiceCatalogReference_id, value.id.trim(), "f");
37
- __classPrivateFieldSet(this, _ServiceCatalogReference_code, value.code.trim().toUpperCase(), "f");
38
- __classPrivateFieldSet(this, _ServiceCatalogReference_name, value.name.trim(), "f");
39
- __classPrivateFieldSet(this, _ServiceCatalogReference_type, value.type, "f");
40
- }
41
- /**
42
- * Validación estática para reutilización en factory methods y constructores.
43
- */
44
- static validateServiceCatalogReference(value, propertyName) {
45
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidType).call(this, value, propertyName);
46
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidId).call(this, value.id);
47
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode).call(this, value.code);
48
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName).call(this, value.name);
49
- __classPrivateFieldGet(this, _a, "m", _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType).call(this, value.type);
50
- }
51
- get id() {
52
- return __classPrivateFieldGet(this, _ServiceCatalogReference_id, "f");
53
- }
54
- /**
55
- * Código único del servicio (UUID).
56
- */
57
- get code() {
58
- return __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f");
59
- }
60
- /**
61
- * Nombre descriptivo del servicio.
62
- */
63
- get name() {
64
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f");
65
- }
66
- /**
67
- * Tipo de servicio.
68
- */
69
- get type() {
70
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f");
71
- }
72
- hasId(id) {
73
- return __classPrivateFieldGet(this, _ServiceCatalogReference_id, "f") === id.trim();
74
- }
75
- /**
76
- * Verifica si el servicio corresponde a un código específico.
77
- */
78
- hasCode(code) {
79
- return __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f") === code.trim().toUpperCase();
80
- }
81
- /**
82
- * Verifica si el servicio tiene un nombre específico.
83
- */
84
- hasName(name) {
85
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f") === name.trim();
86
- }
87
- /**
88
- * Verifica si el servicio es de un tipo específico.
89
- */
90
- hasType(type) {
91
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === type;
92
- }
93
- /**
94
- * Verifica si es un servicio base.
95
- */
96
- isBaseServiceCatalog() {
97
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE;
98
- }
99
- /**
100
- * Verifica si es un servicio adicional.
101
- */
102
- isAdditionalServiceCatalog() {
103
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE;
104
- }
105
- /**
106
- * Verifica si es una característica de plataforma.
107
- */
108
- isPlatformFeature() {
109
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE;
110
- }
111
- /**
112
- * Verifica si es un servicio dependiente.
113
- */
114
- isDependentServiceCatalog() {
115
- return __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE;
116
- }
117
- /**
118
- * Verifica si es un servicio principal (base o adicional).
119
- */
120
- isPrincipalServiceCatalog() {
121
- return this.isBaseServiceCatalog() || this.isAdditionalServiceCatalog();
122
- }
123
- /**
124
- * Verifica si requiere dependencias.
125
- */
126
- requiresDependencies() {
127
- return this.isDependentServiceCatalog();
128
- }
129
- /**
130
- * Obtiene una representación legible del servicio.
131
- */
132
- getDisplayName() {
133
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f");
134
- }
135
- /**
136
- * Obtiene una representación completa con código y nombre.
137
- */
138
- getFullDisplayName() {
139
- return `${__classPrivateFieldGet(this, _ServiceCatalogReference_name, "f")} (${__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f")})`;
140
- }
141
- /**
142
- * Obtiene una representación completa con código, nombre y tipo.
143
- */
144
- getFullDisplayNameWithType() {
145
- return `${__classPrivateFieldGet(this, _ServiceCatalogReference_name, "f")} (${__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f")}) - ${__classPrivateFieldGet(this, _ServiceCatalogReference_type, "f")}`;
146
- }
147
- /**
148
- * Obtiene el nombre del tipo de servicio en formato legible.
149
- */
150
- getTypeDisplayName() {
151
- const typeNames = {
152
- [ServiceCatalogType_1.ServiceCatalogType.BASE_SERVICE]: 'Servicio Base',
153
- [ServiceCatalogType_1.ServiceCatalogType.ADDITIONAL_SERVICE]: 'Servicio Adicional',
154
- [ServiceCatalogType_1.ServiceCatalogType.PLATFORM_FEATURE]: 'Característica de Plataforma',
155
- [ServiceCatalogType_1.ServiceCatalogType.DEPENDENT_SERVICE]: 'Servicio Dependiente',
156
- };
157
- return typeNames[__classPrivateFieldGet(this, _ServiceCatalogReference_type, "f")] || __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f");
158
- }
159
- /**
160
- * Verifica si el nombre del servicio contiene un texto específico.
161
- * Útil para búsquedas parciales.
162
- */
163
- nameContains(searchText) {
164
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f").toLowerCase().includes(searchText.toLowerCase().trim());
165
- }
166
- /**
167
- * Verifica si el servicio coincide con un patrón de búsqueda en código, nombre o tipo.
168
- * Útil para filtros generales.
169
- */
170
- matches(searchText) {
171
- const trimmedSearch = searchText.toLowerCase().trim();
172
- return (__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f").toLowerCase().includes(trimmedSearch)
173
- || __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f").toLowerCase().includes(trimmedSearch)
174
- || __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f").toLowerCase().includes(trimmedSearch));
175
- }
176
- /**
177
- * Verifica si el servicio coincide con criterios específicos.
178
- */
179
- matchesCriteria(criteria) {
180
- if (criteria.code && !this.hasCode(criteria.code)) {
181
- return false;
182
- }
183
- if (criteria.name && !this.hasName(criteria.name)) {
184
- return false;
185
- }
186
- if (criteria.type && !this.hasType(criteria.type)) {
187
- return false;
188
- }
189
- if (criteria.searchText && !this.matches(criteria.searchText)) {
190
- return false;
191
- }
192
- return true;
193
- }
194
- /**
195
- * Compara la igualdad semántica con otra referencia de servicio.
196
- * Dos referencias son iguales si tienen el mismo código, nombre y tipo.
197
- */
198
- equals(other) {
199
- if (!(other instanceof _a)) {
200
- return false;
201
- }
202
- return (__classPrivateFieldGet(this, _ServiceCatalogReference_id, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_id, "f")
203
- && __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_code, "f")
204
- && __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_name, "f")
205
- && __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_type, "f"));
206
- }
207
- /**
208
- * Compara si dos referencias apuntan al mismo servicio
209
- * basándose únicamente en el código (identificador único).
210
- */
211
- hasSameServiceCatalog(other) {
212
- if (!(other instanceof _a)) {
213
- return false;
214
- }
215
- return __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f") === __classPrivateFieldGet(other, _ServiceCatalogReference_code, "f");
216
- }
217
- /**
218
- * Verifica si es compatible con otro servicio para bundling.
219
- */
220
- isCompatibleForBundling(other) {
221
- if (!(other instanceof _a)) {
222
- return false;
223
- }
224
- // Un servicio no puede ser bundled consigo mismo
225
- if (this.hasSameServiceCatalog(other)) {
226
- return false;
227
- }
228
- // Lógica específica de compatibilidad basada en tipos
229
- if (this.isDependentServiceCatalog() && other.isBaseServiceCatalog()) {
230
- return true; // Servicios dependientes pueden ser bundled con servicios base
231
- }
232
- if (this.isBaseServiceCatalog() && other.isAdditionalServiceCatalog()) {
233
- return true; // Servicios base pueden ser bundled con servicios adicionales
234
- }
235
- if (this.isPlatformFeature()) {
236
- return true; // Las características de plataforma pueden ser bundled con cualquier servicio
237
- }
238
- return false;
239
- }
240
- /**
241
- * Genera un hash code para usar en colecciones.
242
- * Basado en el código de servicio, nombre y tipo.
243
- */
244
- hashCode() {
245
- return `${__classPrivateFieldGet(this, _ServiceCatalogReference_code, "f")}_${__classPrivateFieldGet(this, _ServiceCatalogReference_name, "f")}_${__classPrivateFieldGet(this, _ServiceCatalogReference_type, "f")}`;
246
- }
247
- /**
248
- * Convierte a representación primitiva para persistencia.
249
- */
250
- toPrimitives() {
251
- return {
252
- id: __classPrivateFieldGet(this, _ServiceCatalogReference_id, "f"),
253
- code: __classPrivateFieldGet(this, _ServiceCatalogReference_code, "f"),
254
- name: __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f"),
255
- type: __classPrivateFieldGet(this, _ServiceCatalogReference_type, "f"),
256
- };
257
- }
258
- /**
259
- * Representación como string (nombre del servicio).
260
- */
261
- toString() {
262
- return __classPrivateFieldGet(this, _ServiceCatalogReference_name, "f");
263
- }
264
- /**
265
- * Representación JSON para serialización.
266
- */
267
- toJSON() {
268
- return this.toPrimitives();
269
- }
270
- }
271
- exports.ServiceCatalogReference = ServiceCatalogReference;
272
- _a = ServiceCatalogReference, _ServiceCatalogReference_id = new WeakMap(), _ServiceCatalogReference_code = new WeakMap(), _ServiceCatalogReference_name = new WeakMap(), _ServiceCatalogReference_type = new WeakMap(), _ServiceCatalogReference_guardAgainstInvalidType = function _ServiceCatalogReference_guardAgainstInvalidType(value, propertyName) {
273
- if (!value || typeof value !== 'object') {
274
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'ServiceCatalogReference object', typeof value);
275
- }
276
- if (typeof value.id !== 'string') {
277
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('id', 'string', typeof value.id);
278
- }
279
- if (typeof value.code !== 'string') {
280
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('code', 'string', typeof value.code);
281
- }
282
- if (typeof value.name !== 'string') {
283
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('name', 'string', typeof value.name);
284
- }
285
- if (typeof value.type !== 'string') {
286
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('type', 'string', typeof value.type);
287
- }
288
- }, _ServiceCatalogReference_guardAgainstInvalidId = function _ServiceCatalogReference_guardAgainstInvalidId(id) {
289
- String_1.String.guardAgainstEmptyValue(id, 'id');
290
- AggregateId_1.AggregateId.guardAgainstInvalidId(id, 'id');
291
- }, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode = function _ServiceCatalogReference_guardAgainstInvalidServiceCatalogCode(code) {
292
- String_1.String.guardAgainstEmptyValue(code, 'code');
293
- Code_1.Code.guardAgainstInvalidCode(code);
294
- }, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName = function _ServiceCatalogReference_guardAgainstInvalidServiceCatalogName(name) {
295
- String_1.String.guardAgainstEmptyValue(name, 'name');
296
- }, _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType = function _ServiceCatalogReference_guardAgainstInvalidServiceCatalogType(type) {
297
- if (!Object.values(ServiceCatalogType_1.ServiceCatalogType).includes(type)) {
298
- throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('type', 'valid ServiceCatalogType', type);
299
- }
300
- };
301
- ServiceCatalogReference.DEFAULT_PROPERTY_NAME = 'serviceCatalogReference';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StakeholderBusinessStatus = void 0;
4
- var StakeholderBusinessStatus;
5
- (function (StakeholderBusinessStatus) {
6
- StakeholderBusinessStatus["ACTIVE_IN_SYSTEM"] = "ACTIVE_IN_SYSTEM";
7
- StakeholderBusinessStatus["ONBOARDING_PENDING"] = "ONBOARDING_PENDING";
8
- StakeholderBusinessStatus["TEMPORARILY_SUSPENDED"] = "TEMPORARILY_SUSPENDED";
9
- StakeholderBusinessStatus["AWAITING_VERIFICATION"] = "AWAITING_VERIFICATION";
10
- })(StakeholderBusinessStatus || (exports.StakeholderBusinessStatus = StakeholderBusinessStatus = {}));
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvalidStakeholderBusinessStatusError = void 0;
4
- const RootError_1 = require("../../../../shared/domain/exceptions/RootError");
5
- class InvalidStakeholderBusinessStatusError extends RootError_1.RootError {
6
- constructor(value, validStatuses) {
7
- const message = `Invalid stakeholder business status: '${value}'. Valid statuses are: ${validStatuses.join(', ')}.`;
8
- super(message);
9
- this.name = 'InvalidStakeholderBusinessStatusError';
10
- }
11
- static create(value, validStatuses) {
12
- return new InvalidStakeholderBusinessStatusError(value, validStatuses);
13
- }
14
- logError() {
15
- return `${this.name}: ${this.message}`;
16
- }
17
- }
18
- exports.InvalidStakeholderBusinessStatusError = InvalidStakeholderBusinessStatusError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,52 +0,0 @@
1
- import { IAggregateRoot } from '../../../../shared/domain/entities/IAggregateRoot';
2
- import { ServiceAdditionalUserRoles } from '../value-objects/ServiceAdditionalUserRoles';
3
- import { ServiceAllowsDocumentReading } from '../value-objects/ServiceAllowsDocumentReading';
4
- import { ServiceAllowsSectoralComparison } from '../value-objects/ServiceAllowsSectoralComparison';
5
- import { ServiceBasePricePercentage } from '../value-objects/ServiceBasePricePercentage';
6
- import { ServiceCategory } from '../value-objects/ServiceCategory';
7
- import { ServiceCode } from '../value-objects/ServiceCode';
8
- import { ServiceCreatedByStakeholder } from '../value-objects/ServiceCreatedByStakeholder';
9
- import { ServiceDependsOnServiceCode } from '../value-objects/ServiceDependsOnServiceCode';
10
- import { ServiceDescription } from '../value-objects/ServiceDescription';
11
- import { ServiceExpertDedicationLevel } from '../value-objects/ServiceExpertDedicationLevel';
12
- import { ServiceFixedPriceAmount } from '../value-objects/ServiceFixedPriceAmount';
13
- import { ServiceHasBasePrice } from '../value-objects/ServiceHasBasePrice';
14
- import { ServiceHasFixedPrice } from '../value-objects/ServiceHasFixedPrice';
15
- import { ServiceIncludesCarbonBoxAcademy } from '../value-objects/ServiceIncludesCarbonBoxAcademy';
16
- import { ServiceIncludesESGIndicators } from '../value-objects/ServiceIncludesESGIndicators';
17
- import { ServiceIsAvailableForCorporate } from '../value-objects/ServiceIsAvailableForCorporate';
18
- import { ServiceIsAvailableForEvent } from '../value-objects/ServiceIsAvailableForEvent';
19
- import { ServiceIsAvailableForProduct } from '../value-objects/ServiceIsAvailableForProduct';
20
- import { ServiceIsRequiredService } from '../value-objects/ServiceIsRequiredService';
21
- import { ServiceMaxUsers } from '../value-objects/ServiceMaxUsers';
22
- import { ServiceName } from '../value-objects/ServiceName';
23
- import { ServiceReportTypes } from '../value-objects/ServiceReportTypes';
24
- import { ServiceStatus } from '../value-objects/ServiceStatus';
25
- import { ServiceType } from '../value-objects/ServiceType';
26
- export interface IService extends IAggregateRoot {
27
- code: ServiceCode;
28
- name: ServiceName;
29
- description: ServiceDescription;
30
- type: ServiceType;
31
- category: ServiceCategory;
32
- status: ServiceStatus;
33
- isRequiredService: ServiceIsRequiredService;
34
- dependsOnServiceCode: ServiceDependsOnServiceCode;
35
- hasBasePrice: ServiceHasBasePrice;
36
- basePricePercentage: ServiceBasePricePercentage;
37
- hasFixedPrice: ServiceHasFixedPrice;
38
- fixedPriceAmount: ServiceFixedPriceAmount;
39
- expertDedicationLevel: ServiceExpertDedicationLevel;
40
- reportTypes: ServiceReportTypes;
41
- additionalUserRoles: ServiceAdditionalUserRoles;
42
- maxUsers: ServiceMaxUsers;
43
- allowsDocumentReading: ServiceAllowsDocumentReading;
44
- allowsSectoralComparison: ServiceAllowsSectoralComparison;
45
- includesCarbonBoxAcademy: ServiceIncludesCarbonBoxAcademy;
46
- includesESGIndicators: ServiceIncludesESGIndicators;
47
- isAvailableForCorporate: ServiceIsAvailableForCorporate;
48
- isAvailableForProduct: ServiceIsAvailableForProduct;
49
- isAvailableForEvent: ServiceIsAvailableForEvent;
50
- createdByStakeholder: ServiceCreatedByStakeholder;
51
- }
52
- //# sourceMappingURL=IService.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IService.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/entity/IService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,MAAM,WAAW,QAAS,SAAQ,cAAc;IAC9C,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,kBAAkB,CAAC;IAChC,IAAI,EAAE,WAAW,CAAC;IAClB,QAAQ,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,iBAAiB,EAAE,wBAAwB,CAAC;IAC5C,oBAAoB,EAAE,2BAA2B,CAAC;IAGlD,YAAY,EAAE,mBAAmB,CAAC;IAClC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,aAAa,EAAE,oBAAoB,CAAC;IACpC,gBAAgB,EAAE,uBAAuB,CAAC;IAG1C,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,WAAW,EAAE,kBAAkB,CAAC;IAChC,mBAAmB,EAAE,0BAA0B,CAAC;IAChD,QAAQ,EAAE,eAAe,CAAC;IAG1B,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,wBAAwB,EAAE,+BAA+B,CAAC;IAC1D,wBAAwB,EAAE,+BAA+B,CAAC;IAC1D,qBAAqB,EAAE,4BAA4B,CAAC;IAGpD,uBAAuB,EAAE,8BAA8B,CAAC;IACxD,qBAAqB,EAAE,4BAA4B,CAAC;IACpD,mBAAmB,EAAE,0BAA0B,CAAC;IAEhD,oBAAoB,EAAE,2BAA2B,CAAC;CACnD"}
@@ -1,60 +0,0 @@
1
- import { AggregateRoot } from '../../../../shared/domain/entities/AggregateRoot';
2
- import { ServicePrimitives } from '../types/ServicePrimitives';
3
- import { ServiceProps } from '../types/ServiceProps';
4
- import { ServiceAdditionalUserRoles } from '../value-objects/ServiceAdditionalUserRoles';
5
- import { ServiceAllowsDocumentReading } from '../value-objects/ServiceAllowsDocumentReading';
6
- import { ServiceAllowsSectoralComparison } from '../value-objects/ServiceAllowsSectoralComparison';
7
- import { ServiceBasePricePercentage } from '../value-objects/ServiceBasePricePercentage';
8
- import { ServiceCategory } from '../value-objects/ServiceCategory';
9
- import { ServiceCode } from '../value-objects/ServiceCode';
10
- import { ServiceCreatedByStakeholder } from '../value-objects/ServiceCreatedByStakeholder';
11
- import { ServiceDependsOnServiceCode } from '../value-objects/ServiceDependsOnServiceCode';
12
- import { ServiceDescription } from '../value-objects/ServiceDescription';
13
- import { ServiceExpertDedicationLevel } from '../value-objects/ServiceExpertDedicationLevel';
14
- import { ServiceFixedPriceAmount } from '../value-objects/ServiceFixedPriceAmount';
15
- import { ServiceHasBasePrice } from '../value-objects/ServiceHasBasePrice';
16
- import { ServiceHasFixedPrice } from '../value-objects/ServiceHasFixedPrice';
17
- import { ServiceIncludesCarbonBoxAcademy } from '../value-objects/ServiceIncludesCarbonBoxAcademy';
18
- import { ServiceIncludesESGIndicators } from '../value-objects/ServiceIncludesESGIndicators';
19
- import { ServiceIsAvailableForCorporate } from '../value-objects/ServiceIsAvailableForCorporate';
20
- import { ServiceIsAvailableForEvent } from '../value-objects/ServiceIsAvailableForEvent';
21
- import { ServiceIsAvailableForProduct } from '../value-objects/ServiceIsAvailableForProduct';
22
- import { ServiceIsRequiredService } from '../value-objects/ServiceIsRequiredService';
23
- import { ServiceMaxUsers } from '../value-objects/ServiceMaxUsers';
24
- import { ServiceName } from '../value-objects/ServiceName';
25
- import { ServiceReportTypes } from '../value-objects/ServiceReportTypes';
26
- import { ServiceStatus } from '../value-objects/ServiceStatus';
27
- import { ServiceType } from '../value-objects/ServiceType';
28
- import { IService } from './IService';
29
- export declare class Service extends AggregateRoot<ServicePrimitives> implements IService {
30
- #private;
31
- private constructor();
32
- static create(props: ServiceProps): Service;
33
- static fromPrimitives(primitives: ServicePrimitives): Service;
34
- get toPrimitives(): ServicePrimitives;
35
- get code(): ServiceCode;
36
- get name(): ServiceName;
37
- get description(): ServiceDescription;
38
- get type(): ServiceType;
39
- get category(): ServiceCategory;
40
- get status(): ServiceStatus;
41
- get isRequiredService(): ServiceIsRequiredService;
42
- get dependsOnServiceCode(): ServiceDependsOnServiceCode;
43
- get hasBasePrice(): ServiceHasBasePrice;
44
- get basePricePercentage(): ServiceBasePricePercentage;
45
- get hasFixedPrice(): ServiceHasFixedPrice;
46
- get fixedPriceAmount(): ServiceFixedPriceAmount;
47
- get expertDedicationLevel(): ServiceExpertDedicationLevel;
48
- get reportTypes(): ServiceReportTypes;
49
- get additionalUserRoles(): ServiceAdditionalUserRoles;
50
- get maxUsers(): ServiceMaxUsers;
51
- get allowsDocumentReading(): ServiceAllowsDocumentReading;
52
- get allowsSectoralComparison(): ServiceAllowsSectoralComparison;
53
- get includesCarbonBoxAcademy(): ServiceIncludesCarbonBoxAcademy;
54
- get includesESGIndicators(): ServiceIncludesESGIndicators;
55
- get isAvailableForCorporate(): ServiceIsAvailableForCorporate;
56
- get isAvailableForProduct(): ServiceIsAvailableForProduct;
57
- get isAvailableForEvent(): ServiceIsAvailableForEvent;
58
- get createdByStakeholder(): ServiceCreatedByStakeholder;
59
- }
60
- //# sourceMappingURL=Service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Service.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/entity/Service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,OACX,SAAQ,aAAa,CAAC,iBAAiB,CACvC,YAAW,QAAQ;;IAiDnB,OAAO;WA8DgB,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO;WAIpC,cAAc,CAAC,UAAU,EAAE,iBAAiB,GAAG,OAAO;IAgC7E,IAAoB,YAAY,IAAI,iBAAiB,CA4BpD;IAED,IAAW,IAAI,IAAI,WAAW,CAE7B;IAED,IAAW,IAAI,IAAI,WAAW,CAE7B;IAED,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED,IAAW,IAAI,IAAI,WAAW,CAE7B;IAED,IAAW,QAAQ,IAAI,eAAe,CAErC;IAED,IAAW,MAAM,IAAI,aAAa,CAEjC;IAED,IAAW,iBAAiB,IAAI,wBAAwB,CAEvD;IAED,IAAW,oBAAoB,IAAI,2BAA2B,CAE7D;IAED,IAAW,YAAY,IAAI,mBAAmB,CAE7C;IAED,IAAW,mBAAmB,IAAI,0BAA0B,CAE3D;IAED,IAAW,aAAa,IAAI,oBAAoB,CAE/C;IAED,IAAW,gBAAgB,IAAI,uBAAuB,CAErD;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED,IAAW,mBAAmB,IAAI,0BAA0B,CAE3D;IAED,IAAW,QAAQ,IAAI,eAAe,CAErC;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,wBAAwB,IAAI,+BAA+B,CAErE;IAED,IAAW,wBAAwB,IAAI,+BAA+B,CAErE;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,uBAAuB,IAAI,8BAA8B,CAEnE;IAED,IAAW,qBAAqB,IAAI,4BAA4B,CAE/D;IAED,IAAW,mBAAmB,IAAI,0BAA0B,CAE3D;IAED,IAAW,oBAAoB,IAAI,2BAA2B,CAE7D;CACF"}
@@ -1,17 +0,0 @@
1
- export declare enum ServiceCategory {
2
- CORPORATE_FOOTPRINT = "CORPORATE_FOOTPRINT",
3
- PRODUCT_FOOTPRINT = "PRODUCT_FOOTPRINT",
4
- EVENT_FOOTPRINT = "EVENT_FOOTPRINT",
5
- EXPERT_SUPPORT = "EXPERT_SUPPORT",
6
- TRAINING = "TRAINING",
7
- AUDIT_SUPPORT = "AUDIT_SUPPORT",
8
- DATA_VALIDATION = "DATA_VALIDATION",
9
- REPORTING = "REPORTING",
10
- DOCUMENT_READING = "DOCUMENT_READING",
11
- SECTORAL_COMPARISON = "SECTORAL_COMPARISON",
12
- ADDITIONAL_USERS = "ADDITIONAL_USERS",
13
- CARBONBOX_ACADEMY = "CARBONBOX_ACADEMY",
14
- ESG_INDICATORS = "ESG_INDICATORS",
15
- CARBON_OFFSETTING = "CARBON_OFFSETTING"
16
- }
17
- //# sourceMappingURL=ServiceCategory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ServiceCategory.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/enums/ServiceCategory.ts"],"names":[],"mappings":"AAAA,oBAAY,eAAe;IACzB,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,SAAS,cAAc;IACvB,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,iBAAiB,sBAAsB;IACvC,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;CACxC"}
@@ -1,6 +0,0 @@
1
- export declare enum ServiceStatus {
2
- ACTIVE = "ACTIVE",
3
- INACTIVE = "INACTIVE",
4
- DISCONTINUED = "DISCONTINUED"
5
- }
6
- //# 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/enums/ServiceStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B"}
@@ -1,7 +0,0 @@
1
- export declare enum ServiceType {
2
- BASE_SERVICE = "BASE_SERVICE",// Servicios principales (huella corporativa, producto, evento)
3
- ADDITIONAL_SERVICE = "ADDITIONAL_SERVICE",// Servicios adicionales opcionales
4
- PLATFORM_FEATURE = "PLATFORM_FEATURE",// Features de plataforma
5
- DEPENDENT_SERVICE = "DEPENDENT_SERVICE"
6
- }
7
- //# 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/enums/ServiceType.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW;IACrB,YAAY,iBAAiB,CAAE,+DAA+D;IAC9F,kBAAkB,uBAAuB,CAAE,mCAAmC;IAC9E,gBAAgB,qBAAqB,CAAE,yBAAyB;IAChE,iBAAiB,sBAAsB;CACxC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
- import { ServiceCategory } from '../enums/ServiceCategory';
3
- export declare class InvalidServiceCategoryError extends RootError {
4
- private constructor();
5
- static create(receivedValue: string, validCategories: ServiceCategory[]): InvalidServiceCategoryError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidServiceCategoryError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidServiceCategoryError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCategoryError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,2BAA4B,SAAQ,SAAS;IACxD,OAAO;WAOgB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,eAAe,EAAE,GAAG,2BAA2B;IAIrG,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
- import { ServiceStatus } from '../enums/ServiceStatus';
3
- export declare class InvalidServiceStatusError extends RootError {
4
- private constructor();
5
- static create(receivedValue: string, validStatuses: ServiceStatus[]): InvalidServiceStatusError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidServiceStatusError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidServiceStatusError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceStatusError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,qBAAa,yBAA0B,SAAQ,SAAS;IACtD,OAAO;WAOgB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,GAAG,yBAAyB;IAI/F,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,8 +0,0 @@
1
- import { RootError } from '../../../../shared/domain/exceptions/RootError';
2
- import { ServiceType } from '../enums/ServiceType';
3
- export declare class InvalidServiceTypeError extends RootError {
4
- private constructor();
5
- static create(receivedValue: string, validTypes: ServiceType[]): InvalidServiceTypeError;
6
- logError(): string;
7
- }
8
- //# sourceMappingURL=InvalidServiceTypeError.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InvalidServiceTypeError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceTypeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,qBAAa,uBAAwB,SAAQ,SAAS;IACpD,OAAO;WAOgB,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,uBAAuB;IAIxF,QAAQ,IAAI,MAAM;CAGnC"}
@@ -1,22 +0,0 @@
1
- import { Nullable } from '../../../../shared/domain/types/Nullable';
2
- import { ServiceCatalog } from '../entity/ServiceCatalog';
3
- import { ServiceCatalogCategory } from '../value-objects/ServiceCatalogCategory';
4
- import { ServiceCatalogCode } from '../value-objects/ServiceCatalogCode';
5
- import { ServiceCatalogCreatedByStakeholder } from '../value-objects/ServiceCatalogCreatedByStakeholder';
6
- import { ServiceCatalogDependsOnServiceCode } from '../value-objects/ServiceCatalogDependsOnServiceCode';
7
- import { ServiceCatalogId } from '../value-objects/ServiceCatalogId';
8
- import { ServiceCatalogStatus } from '../value-objects/ServiceCatalogStatus';
9
- import { ServiceCatalogType } from '../value-objects/ServiceCatalogType';
10
- export interface IServiceCatalogRepository {
11
- save(service: ServiceCatalog): Promise<void>;
12
- findById(id: ServiceCatalogId): Promise<Nullable<ServiceCatalog>>;
13
- findByCode(code: ServiceCatalogCode): Promise<Nullable<ServiceCatalog>>;
14
- findAllByCategory(category: ServiceCatalogCategory): Promise<ServiceCatalog[]>;
15
- findAllByType(type: ServiceCatalogType): Promise<ServiceCatalog[]>;
16
- findAllByStatus(status: ServiceCatalogStatus): Promise<ServiceCatalog[]>;
17
- findAllByCreatedByStakeholder(createdByStakeholder: ServiceCatalogCreatedByStakeholder): Promise<ServiceCatalog[]>;
18
- findAllByDependsOnServiceCatalogCode(dependsOnServiceCatalogCode: ServiceCatalogDependsOnServiceCode): Promise<ServiceCatalog[]>;
19
- findAll(): Promise<ServiceCatalog[]>;
20
- deleteById(id: ServiceCatalogId): Promise<void>;
21
- }
22
- //# sourceMappingURL=IServiceRepository.d.ts.map