@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,212 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceExpertDedicationLevel = void 0;
4
- const NullableString_1 = require("../../../../shared/domain/value-objects/NullableString");
5
- const ExpertDedicationLevel_1 = require("../enums/ExpertDedicationLevel");
6
- const InvalidExpertDedicationLevelError_1 = require("../exceptions/InvalidExpertDedicationLevelError");
7
- class ServiceExpertDedicationLevel extends NullableString_1.NullableString {
8
- constructor(value, skipDomainValidation) {
9
- super(value, skipDomainValidation, ServiceExpertDedicationLevel.PROPERTY_NAME);
10
- if (skipDomainValidation === false) {
11
- this.validateExpertDedicationLevel(value);
12
- }
13
- }
14
- static create(value) {
15
- return new ServiceExpertDedicationLevel(value, false);
16
- }
17
- static fromPrimitives(primitive) {
18
- const value = primitive;
19
- return new ServiceExpertDedicationLevel(value, true);
20
- }
21
- /**
22
- * Valida que el valor sea un nivel de dedicación de experto válido cuando no es null.
23
- */
24
- validateExpertDedicationLevel(value) {
25
- if (value !== null && !ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS.includes(value)) {
26
- throw InvalidExpertDedicationLevelError_1.InvalidExpertDedicationLevelError.create(value, ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS);
27
- }
28
- }
29
- /**
30
- * Verifica si es dedicación completa (full time).
31
- */
32
- isFullTime() {
33
- if (!this.hasValue())
34
- return null;
35
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME;
36
- }
37
- /**
38
- * Verifica si es dedicación de 80 horas.
39
- */
40
- isEightyHours() {
41
- if (!this.hasValue())
42
- return null;
43
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS;
44
- }
45
- /**
46
- * Verifica si es dedicación de 40 horas.
47
- */
48
- isFortyHours() {
49
- if (!this.hasValue())
50
- return null;
51
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS;
52
- }
53
- /**
54
- * Verifica si es dedicación de 20 horas.
55
- */
56
- isTwentyHours() {
57
- if (!this.hasValue())
58
- return null;
59
- return this.value === ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS;
60
- }
61
- /**
62
- * Verifica si es una dedicación alta (full time o 80 horas).
63
- */
64
- isHighDedication() {
65
- if (!this.hasValue())
66
- return null;
67
- return this.isFullTime() || this.isEightyHours();
68
- }
69
- /**
70
- * Verifica si es una dedicación baja (20 o 40 horas).
71
- */
72
- isLowDedication() {
73
- if (!this.hasValue())
74
- return null;
75
- return this.isTwentyHours() || this.isFortyHours();
76
- }
77
- /**
78
- * Verifica si es dedicación de tiempo parcial (no full time).
79
- */
80
- isPartTime() {
81
- if (!this.hasValue())
82
- return null;
83
- return !this.isFullTime();
84
- }
85
- /**
86
- * Obtiene las horas aproximadas de dedicación.
87
- */
88
- getApproximateHours() {
89
- if (!this.hasValue())
90
- return null;
91
- switch (this.value) {
92
- case ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME:
93
- return 160; // Aproximadamente 40h/semana * 4 semanas
94
- case ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS:
95
- return 80;
96
- case ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS:
97
- return 40;
98
- case ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS:
99
- return 20;
100
- default:
101
- return null;
102
- }
103
- }
104
- /**
105
- * Obtiene el nivel de intensidad de la dedicación.
106
- */
107
- getIntensityLevel() {
108
- if (!this.hasValue())
109
- return null;
110
- if (this.isFullTime())
111
- return 'high';
112
- if (this.isEightyHours())
113
- return 'high';
114
- if (this.isFortyHours())
115
- return 'medium';
116
- if (this.isTwentyHours())
117
- return 'low';
118
- return null;
119
- }
120
- /**
121
- * Obtiene los niveles de dedicación válidos.
122
- */
123
- static getValidDedicationLevels() {
124
- return Object.freeze([...ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS]);
125
- }
126
- /**
127
- * Verifica si un valor es un nivel de dedicación válido.
128
- */
129
- static isValidDedicationLevel(value) {
130
- return ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS.includes(value);
131
- }
132
- /**
133
- * Obtiene la descripción del nivel de dedicación.
134
- */
135
- getDescription() {
136
- if (!this.hasValue())
137
- return null;
138
- const descriptions = {
139
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME]: 'Dedicación completa (tiempo completo)',
140
- [ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS]: 'Dedicación alta (80 horas mensuales)',
141
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS]: 'Dedicación media (40 horas mensuales)',
142
- [ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS]: 'Dedicación baja (20 horas mensuales)',
143
- };
144
- return descriptions[this.value] || this.value;
145
- }
146
- /**
147
- * Obtiene el factor de costo relativo (basado en horas).
148
- */
149
- getCostFactor() {
150
- if (!this.hasValue())
151
- return null;
152
- const baseHours = 20; // 20 horas como base (factor 1.0)
153
- const currentHours = this.getApproximateHours();
154
- if (currentHours === null)
155
- return null;
156
- return currentHours / baseHours;
157
- }
158
- /**
159
- * Verifica si requiere aprobación especial (dedicaciones altas).
160
- */
161
- requiresSpecialApproval() {
162
- if (!this.hasValue())
163
- return null;
164
- return this.isHighDedication();
165
- }
166
- /**
167
- * Obtiene las características del nivel de dedicación.
168
- */
169
- getCharacteristics() {
170
- if (!this.hasValue())
171
- return null;
172
- return {
173
- isFullTime: this.isFullTime(),
174
- isPartTime: this.isPartTime(),
175
- isHighDedication: this.isHighDedication(),
176
- isLowDedication: this.isLowDedication(),
177
- approximateHours: this.getApproximateHours(),
178
- intensityLevel: this.getIntensityLevel(),
179
- costFactor: this.getCostFactor(),
180
- requiresSpecialApproval: this.requiresSpecialApproval(),
181
- };
182
- }
183
- /**
184
- * Convierte a enum para uso tipado.
185
- */
186
- toEnum() {
187
- if (!this.hasValue())
188
- return null;
189
- return this.value;
190
- }
191
- toPrimitives() {
192
- return this.value;
193
- }
194
- /**
195
- * Representación como string descriptiva.
196
- */
197
- toString() {
198
- if (!this.hasValue())
199
- return 'No dedication level defined';
200
- const levelNames = {
201
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FULL_TIME]: 'Tiempo Completo',
202
- [ExpertDedicationLevel_1.ExpertDedicationLevel.EIGHTY_HOURS]: '80 Horas',
203
- [ExpertDedicationLevel_1.ExpertDedicationLevel.FORTY_HOURS]: '40 Horas',
204
- [ExpertDedicationLevel_1.ExpertDedicationLevel.TWENTY_HOURS]: '20 Horas',
205
- };
206
- return levelNames[this.value] || this.value;
207
- }
208
- }
209
- exports.ServiceExpertDedicationLevel = ServiceExpertDedicationLevel;
210
- ServiceExpertDedicationLevel.PROPERTY_NAME = 'expertDedicationLevel';
211
- // Niveles de dedicación de experto válidos
212
- ServiceExpertDedicationLevel.VALID_DEDICATION_LEVELS = Object.values(ExpertDedicationLevel_1.ExpertDedicationLevel);
@@ -1,193 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceFixedPriceAmount = void 0;
4
- const NullableNumeric_1 = require("../../../../shared/domain/value-objects/NullableNumeric");
5
- class ServiceFixedPriceAmount extends NullableNumeric_1.NullableNumeric {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceFixedPriceAmount.PROPERTY_NAME, ServiceFixedPriceAmount.FIXED_PRICE_OPTIONS);
8
- }
9
- static create(value) {
10
- return new ServiceFixedPriceAmount(value, false);
11
- }
12
- static fromPrimitives(primitive) {
13
- const value = primitive;
14
- return new ServiceFixedPriceAmount(value, true);
15
- }
16
- /**
17
- * Verifica si es un servicio gratuito.
18
- */
19
- isFree() {
20
- if (!this.hasValue())
21
- return null;
22
- return this.value === 0;
23
- }
24
- /**
25
- * Verifica si es un precio bajo (menos de $100).
26
- */
27
- isLowPrice() {
28
- if (!this.hasValue())
29
- return null;
30
- return this.value > 0 && this.value < 100;
31
- }
32
- /**
33
- * Verifica si es un precio medio (entre $100 y $1000).
34
- */
35
- isMediumPrice() {
36
- if (!this.hasValue())
37
- return null;
38
- return this.value >= 100 && this.value <= 1000;
39
- }
40
- /**
41
- * Verifica si es un precio alto (más de $1000).
42
- */
43
- isHighPrice() {
44
- if (!this.hasValue())
45
- return null;
46
- return this.value > 1000;
47
- }
48
- /**
49
- * Verifica si es un precio premium (más de $10000).
50
- */
51
- isPremiumPrice() {
52
- if (!this.hasValue())
53
- return null;
54
- return this.value > 10000;
55
- }
56
- /**
57
- * Obtiene el precio formateado como moneda.
58
- */
59
- getFormattedPrice(currencySymbol = '$') {
60
- if (!this.hasValue())
61
- return null;
62
- return `${currencySymbol}${this.value.toLocaleString('en-US', {
63
- minimumFractionDigits: 2,
64
- maximumFractionDigits: 2,
65
- })}`;
66
- }
67
- /**
68
- * Obtiene el precio en miles (para display).
69
- */
70
- getPriceInThousands() {
71
- if (!this.hasValue())
72
- return null;
73
- return Math.round((this.value / 1000) * 100) / 100;
74
- }
75
- /**
76
- * Calcula el precio con impuestos.
77
- */
78
- calculatePriceWithTax(taxRate) {
79
- if (!this.hasValue())
80
- return null;
81
- if (taxRate < 0 || taxRate > 1)
82
- return null; // Tax rate debe estar entre 0 y 1
83
- return this.value * (1 + taxRate);
84
- }
85
- /**
86
- * Calcula un descuento sobre el precio fijo.
87
- */
88
- applyDiscount(discountPercentage) {
89
- if (!this.hasValue())
90
- return null;
91
- if (discountPercentage < 0 || discountPercentage > 100)
92
- return null;
93
- const discountFactor = discountPercentage / 100;
94
- return this.value * (1 - discountFactor);
95
- }
96
- /**
97
- * Obtiene la categoría de precio.
98
- */
99
- getPriceCategory() {
100
- if (!this.hasValue())
101
- return null;
102
- if (this.isFree())
103
- return 'free';
104
- if (this.isLowPrice())
105
- return 'low';
106
- if (this.isMediumPrice())
107
- return 'medium';
108
- if (this.isPremiumPrice())
109
- return 'premium';
110
- if (this.isHighPrice())
111
- return 'high';
112
- return null;
113
- }
114
- /**
115
- * Verifica si el precio requiere aprobación especial.
116
- */
117
- requiresSpecialApproval() {
118
- if (!this.hasValue())
119
- return null;
120
- // Precios premium requieren aprobación especial
121
- return this.isPremiumPrice();
122
- }
123
- /**
124
- * Obtiene una descripción del nivel de precio.
125
- */
126
- getPriceDescription() {
127
- if (!this.hasValue())
128
- return null;
129
- const category = this.getPriceCategory();
130
- const descriptions = {
131
- free: 'Servicio gratuito',
132
- low: 'Precio económico',
133
- medium: 'Precio estándar',
134
- high: 'Precio elevado',
135
- premium: 'Precio premium',
136
- };
137
- return descriptions[category] || 'Precio no categorizado';
138
- }
139
- /**
140
- * Compara con otro precio fijo.
141
- */
142
- compareWith(other) {
143
- if (!this.hasValue() || !other.hasValue())
144
- return null;
145
- return this.value - other.value;
146
- }
147
- /**
148
- * Verifica si está dentro de un rango de precios.
149
- */
150
- isWithinRange(minPrice, maxPrice) {
151
- if (!this.hasValue())
152
- return null;
153
- return this.value >= minPrice && this.value <= maxPrice;
154
- }
155
- /**
156
- * Obtiene las características del precio.
157
- */
158
- getCharacteristics() {
159
- if (!this.hasValue())
160
- return null;
161
- return {
162
- isFree: this.isFree(),
163
- isLowPrice: this.isLowPrice(),
164
- isMediumPrice: this.isMediumPrice(),
165
- isHighPrice: this.isHighPrice(),
166
- isPremiumPrice: this.isPremiumPrice(),
167
- priceCategory: this.getPriceCategory(),
168
- requiresSpecialApproval: this.requiresSpecialApproval(),
169
- formattedPrice: this.getFormattedPrice(),
170
- };
171
- }
172
- toPrimitives() {
173
- return this.value;
174
- }
175
- /**
176
- * Representación como string descriptiva.
177
- */
178
- toString() {
179
- if (!this.hasValue())
180
- return 'No fixed price defined';
181
- return this.getFormattedPrice() || 'Invalid price';
182
- }
183
- }
184
- exports.ServiceFixedPriceAmount = ServiceFixedPriceAmount;
185
- ServiceFixedPriceAmount.PROPERTY_NAME = 'fixedPriceAmount';
186
- ServiceFixedPriceAmount.FIXED_PRICE_OPTIONS = {
187
- allowNegative: false, // Los precios fijos no pueden ser negativos
188
- allowZero: true, // Permitir servicios gratuitos (precio fijo de 0)
189
- allowDecimals: true, // Permitir decimales para precisión monetaria
190
- maxDecimalPlaces: 2, // Máximo 2 decimales para valores monetarios
191
- minValue: 0, // Valor mínimo es cero
192
- maxValue: 999999999.99, // Valor máximo razonable para precios fijos
193
- };
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceHasBasePrice = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceHasBasePrice extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceHasBasePrice.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceHasBasePrice.PROPERTY_NAME);
11
- return new ServiceHasBasePrice(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceHasBasePrice(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceHasBasePrice = ServiceHasBasePrice;
22
- ServiceHasBasePrice.PROPERTY_NAME = 'hasBasePrice';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceHasFixedPrice = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceHasFixedPrice extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceHasFixedPrice.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceHasFixedPrice.PROPERTY_NAME);
11
- return new ServiceHasFixedPrice(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceHasFixedPrice(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceHasFixedPrice = ServiceHasFixedPrice;
22
- ServiceHasFixedPrice.PROPERTY_NAME = 'hasFixedPrice';
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceId = void 0;
4
- const AggregateId_1 = require("../../../../shared/domain/value-objects/AggregateId");
5
- class ServiceId extends AggregateId_1.AggregateId {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceId.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- AggregateId_1.AggregateId.guardAgainstEmptyValue(value, ServiceId.PROPERTY_NAME);
11
- AggregateId_1.AggregateId.guardAgainstInvalidType(value, ServiceId.PROPERTY_NAME);
12
- AggregateId_1.AggregateId.guardAgainstInvalidId(value, ServiceId.PROPERTY_NAME);
13
- return new ServiceId(value, false);
14
- }
15
- static fromPrimitives(primitive) {
16
- const value = primitive;
17
- return new ServiceId(value, true);
18
- }
19
- toPrimitives() {
20
- return this.value;
21
- }
22
- }
23
- exports.ServiceId = ServiceId;
24
- ServiceId.PROPERTY_NAME = 'id';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIncludesCarbonBoxAcademy = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIncludesCarbonBoxAcademy extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIncludesCarbonBoxAcademy.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIncludesCarbonBoxAcademy.PROPERTY_NAME);
11
- return new ServiceIncludesCarbonBoxAcademy(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIncludesCarbonBoxAcademy(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIncludesCarbonBoxAcademy = ServiceIncludesCarbonBoxAcademy;
22
- ServiceIncludesCarbonBoxAcademy.PROPERTY_NAME = 'includesCarbonBoxAcademy';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIncludesESGIndicators = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIncludesESGIndicators extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIncludesESGIndicators.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIncludesESGIndicators.PROPERTY_NAME);
11
- return new ServiceIncludesESGIndicators(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIncludesESGIndicators(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIncludesESGIndicators = ServiceIncludesESGIndicators;
22
- ServiceIncludesESGIndicators.PROPERTY_NAME = 'includesESGIndicators';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsAvailableForCorporate = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsAvailableForCorporate extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsAvailableForCorporate.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsAvailableForCorporate.PROPERTY_NAME);
11
- return new ServiceIsAvailableForCorporate(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsAvailableForCorporate(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsAvailableForCorporate = ServiceIsAvailableForCorporate;
22
- ServiceIsAvailableForCorporate.PROPERTY_NAME = 'isAvailableForCorporate';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsAvailableForEvent = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsAvailableForEvent extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsAvailableForEvent.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsAvailableForEvent.PROPERTY_NAME);
11
- return new ServiceIsAvailableForEvent(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsAvailableForEvent(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsAvailableForEvent = ServiceIsAvailableForEvent;
22
- ServiceIsAvailableForEvent.PROPERTY_NAME = 'isAvailableForEvent';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsAvailableForProduct = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsAvailableForProduct extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsAvailableForProduct.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsAvailableForProduct.PROPERTY_NAME);
11
- return new ServiceIsAvailableForProduct(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsAvailableForProduct(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsAvailableForProduct = ServiceIsAvailableForProduct;
22
- ServiceIsAvailableForProduct.PROPERTY_NAME = 'isAvailableForProduct';
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ServiceIsRequiredService = void 0;
4
- const Boolean_1 = require("../../../../shared/domain/value-objects/Boolean");
5
- class ServiceIsRequiredService extends Boolean_1.Boolean {
6
- constructor(value, skipDomainValidation) {
7
- super(value, skipDomainValidation, ServiceIsRequiredService.PROPERTY_NAME);
8
- }
9
- static create(value) {
10
- Boolean_1.Boolean.guardAgainstInvalidType(value, ServiceIsRequiredService.PROPERTY_NAME);
11
- return new ServiceIsRequiredService(value, false);
12
- }
13
- static fromPrimitives(primitive) {
14
- const value = primitive;
15
- return new ServiceIsRequiredService(value, true);
16
- }
17
- toPrimitives() {
18
- return this.value;
19
- }
20
- }
21
- exports.ServiceIsRequiredService = ServiceIsRequiredService;
22
- ServiceIsRequiredService.PROPERTY_NAME = 'isRequiredService';