@carbonbox/domain 0.29.1 → 0.30.0

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 (485) hide show
  1. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.js +17 -5
  2. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.js +17 -5
  3. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.js +18 -5
  4. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.js +17 -5
  5. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.js +17 -5
  6. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.js +17 -5
  7. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.js +17 -5
  8. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.js +17 -5
  9. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.js +17 -5
  10. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.js +16 -5
  11. package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.js +16 -5
  12. package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.js +18 -5
  13. package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.js +17 -5
  14. package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.js +18 -5
  15. package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.js +18 -5
  16. package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.js +18 -5
  17. package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.js +16 -5
  18. package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.js +33 -0
  19. package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.js +33 -0
  20. package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.js +19 -5
  21. package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.js +17 -5
  22. package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.js +19 -5
  23. package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.js +17 -5
  24. package/build/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.js +19 -5
  25. package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.js +20 -5
  26. package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.js +18 -5
  27. package/build/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.js +18 -5
  28. package/build/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.js +32 -10
  29. package/build/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.js +19 -5
  30. package/build/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.js +18 -5
  31. package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.js +25 -5
  32. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.js +19 -5
  33. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.js +19 -5
  34. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.js +19 -5
  35. package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.js +20 -5
  36. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.js +19 -5
  37. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.js +19 -5
  38. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.js +19 -5
  39. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.js +19 -5
  40. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.js +19 -5
  41. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.js +20 -5
  42. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.js +19 -5
  43. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.js +19 -5
  44. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.js +18 -5
  45. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.js +18 -5
  46. package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.js +18 -5
  47. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.js +19 -5
  48. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.js +19 -5
  49. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.js +19 -5
  50. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.js +19 -5
  51. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.js +19 -5
  52. package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.js +18 -5
  53. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.js +17 -5
  54. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.js +17 -5
  55. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.js +18 -5
  56. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.js +18 -5
  57. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.js +18 -5
  58. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.js +17 -5
  59. package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.js +18 -5
  60. package/build/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.js +17 -5
  61. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.js +19 -5
  62. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.js +18 -5
  63. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.js +18 -5
  64. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.js +18 -5
  65. package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.js +19 -5
  66. package/build/carbonbox/shared/domain/enums/ErrorCode.js +145 -0
  67. package/build/carbonbox/shared/domain/exceptions/CalculationFailedError.js +31 -0
  68. package/build/carbonbox/shared/domain/exceptions/CodedRootError.js +6 -6
  69. package/build/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.js +18 -5
  70. package/build/carbonbox/shared/domain/exceptions/DatabaseConnectionError.js +33 -0
  71. package/build/carbonbox/shared/domain/exceptions/DateGreaterThanError.js +19 -5
  72. package/build/carbonbox/shared/domain/exceptions/DivisionByZeroError.js +19 -4
  73. package/build/carbonbox/shared/domain/exceptions/DuplicateOrderError.js +33 -0
  74. package/build/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.js +19 -5
  75. package/build/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.js +18 -5
  76. package/build/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.js +18 -5
  77. package/build/carbonbox/shared/domain/exceptions/EmptySegmentNameError.js +18 -5
  78. package/build/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.js +18 -5
  79. package/build/carbonbox/shared/domain/exceptions/EmptyValueError.js +30 -0
  80. package/build/carbonbox/shared/domain/exceptions/ExternalServiceError.js +33 -0
  81. package/build/carbonbox/shared/domain/exceptions/FormNotFoundError.js +29 -0
  82. package/build/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.js +33 -0
  83. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.js +17 -5
  84. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +20 -6
  85. package/build/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.js +20 -6
  86. package/build/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.js +18 -5
  87. package/build/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.js +17 -5
  88. package/build/carbonbox/shared/domain/exceptions/InvalidCodeError.js +18 -5
  89. package/build/carbonbox/shared/domain/exceptions/InvalidCodeListError.js +21 -5
  90. package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.js +19 -5
  91. package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.js +18 -5
  92. package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.js +20 -5
  93. package/build/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.js +16 -4
  94. package/build/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.js +17 -5
  95. package/build/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.js +20 -5
  96. package/build/carbonbox/shared/domain/exceptions/InvalidCurrencyError.js +1 -1
  97. package/build/carbonbox/shared/domain/exceptions/InvalidDateFormatError.js +1 -1
  98. package/build/carbonbox/shared/domain/exceptions/InvalidDateRangeError.js +17 -5
  99. package/build/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.js +18 -5
  100. package/build/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.js +21 -6
  101. package/build/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.js +31 -0
  102. package/build/carbonbox/shared/domain/exceptions/InvalidFormulaError.js +31 -0
  103. package/build/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.js +18 -5
  104. package/build/carbonbox/shared/domain/exceptions/InvalidGenderError.js +16 -5
  105. package/build/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.js +17 -5
  106. package/build/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.js +18 -5
  107. package/build/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.js +19 -4
  108. package/build/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.js +19 -5
  109. package/build/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.js +19 -5
  110. package/build/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.js +33 -0
  111. package/build/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.js +18 -5
  112. package/build/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.js +18 -5
  113. package/build/carbonbox/shared/domain/exceptions/InvalidRoleError.js +31 -0
  114. package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.js +18 -6
  115. package/build/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.js +17 -5
  116. package/build/carbonbox/shared/domain/exceptions/InvalidStringListError.js +20 -5
  117. package/build/carbonbox/shared/domain/exceptions/InvalidSubmissionError.js +30 -0
  118. package/build/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.js +18 -5
  119. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdError.js +33 -0
  120. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.js +20 -5
  121. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.js +22 -5
  122. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.js +17 -5
  123. package/build/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.js +17 -5
  124. package/build/carbonbox/shared/domain/exceptions/InvalidUrlListError.js +21 -5
  125. package/build/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.js +17 -5
  126. package/build/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.js +18 -6
  127. package/build/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.js +18 -5
  128. package/build/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.js +20 -6
  129. package/build/carbonbox/shared/domain/exceptions/InvalidUserTypeError.js +17 -5
  130. package/build/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.js +18 -6
  131. package/build/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.js +17 -5
  132. package/build/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.js +33 -0
  133. package/build/carbonbox/shared/domain/exceptions/JobNotFoundError.js +30 -0
  134. package/build/carbonbox/shared/domain/exceptions/ManagerRequiredError.js +30 -0
  135. package/build/carbonbox/shared/domain/exceptions/MaximumValueViolationError.js +32 -0
  136. package/build/carbonbox/shared/domain/exceptions/MethodNotImplementedError.js +17 -5
  137. package/build/carbonbox/shared/domain/exceptions/MinimumValueViolationError.js +19 -5
  138. package/build/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.js +33 -0
  139. package/build/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.js +30 -0
  140. package/build/carbonbox/shared/domain/exceptions/MoneyOverflowError.js +19 -5
  141. package/build/carbonbox/shared/domain/exceptions/NegativeAmountError.js +19 -5
  142. package/build/carbonbox/shared/domain/exceptions/NotIntegerError.js +20 -4
  143. package/build/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.js +22 -7
  144. package/build/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.js +23 -15
  145. package/build/carbonbox/shared/domain/exceptions/StakeholderExistsError.js +33 -0
  146. package/build/carbonbox/shared/domain/exceptions/SubmissionLockedError.js +33 -0
  147. package/build/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.js +18 -5
  148. package/build/carbonbox/shared/domain/exceptions/TokenInvalidError.js +32 -0
  149. package/build/carbonbox/shared/domain/exceptions/UndefinedValueError.js +17 -5
  150. package/build/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.js +18 -6
  151. package/build/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.js +16 -5
  152. package/build/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.js +16 -5
  153. package/build/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.js +20 -6
  154. package/build/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.js +20 -6
  155. package/build/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.js +21 -6
  156. package/build/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.js +21 -6
  157. package/build/carbonbox/shared/either/index.js +5 -1
  158. package/build/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.js +10 -8
  159. package/build/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.js +18 -5
  160. package/build/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.js +10 -8
  161. package/build/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.js +19 -5
  162. package/build/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.js +5 -4
  163. package/build/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.js +10 -8
  164. package/build/main/index.js +77 -13
  165. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.d.ts +2 -2
  166. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.d.ts.map +1 -1
  167. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.d.ts +2 -2
  168. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.d.ts.map +1 -1
  169. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.d.ts +2 -2
  170. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.d.ts.map +1 -1
  171. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.d.ts +2 -2
  172. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.d.ts.map +1 -1
  173. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.d.ts +2 -2
  174. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.d.ts.map +1 -1
  175. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.d.ts +2 -2
  176. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.d.ts.map +1 -1
  177. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.d.ts +2 -2
  178. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.d.ts.map +1 -1
  179. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.d.ts +2 -2
  180. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.d.ts.map +1 -1
  181. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.d.ts +2 -2
  182. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.d.ts.map +1 -1
  183. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.d.ts +2 -2
  184. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.d.ts.map +1 -1
  185. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.d.ts +2 -2
  186. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.d.ts.map +1 -1
  187. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.d.ts +2 -2
  188. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.d.ts.map +1 -1
  189. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.d.ts +2 -2
  190. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.d.ts.map +1 -1
  191. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.d.ts +2 -2
  192. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.d.ts.map +1 -1
  193. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.d.ts +2 -2
  194. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.d.ts.map +1 -1
  195. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.d.ts +2 -2
  196. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.d.ts.map +1 -1
  197. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.d.ts +2 -2
  198. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.d.ts.map +1 -1
  199. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.d.ts +7 -0
  200. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.d.ts.map +1 -0
  201. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.d.ts +7 -0
  202. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.d.ts.map +1 -0
  203. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.d.ts +2 -2
  204. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.d.ts.map +1 -1
  205. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.d.ts +2 -2
  206. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.d.ts.map +1 -1
  207. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.d.ts +2 -2
  208. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.d.ts.map +1 -1
  209. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.d.ts +2 -2
  210. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.d.ts.map +1 -1
  211. package/build/types/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.d.ts +2 -2
  212. package/build/types/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.d.ts.map +1 -1
  213. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.d.ts +2 -2
  214. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.d.ts.map +1 -1
  215. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.d.ts +2 -2
  216. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.d.ts.map +1 -1
  217. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.d.ts +2 -2
  218. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.d.ts.map +1 -1
  219. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.d.ts +2 -2
  220. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.d.ts.map +1 -1
  221. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.d.ts +2 -2
  222. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.d.ts.map +1 -1
  223. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.d.ts +2 -2
  224. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.d.ts.map +1 -1
  225. package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.d.ts +2 -2
  226. package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.d.ts.map +1 -1
  227. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.d.ts +2 -2
  228. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.d.ts.map +1 -1
  229. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.d.ts +2 -2
  230. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.d.ts.map +1 -1
  231. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.d.ts +2 -2
  232. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.d.ts.map +1 -1
  233. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.d.ts +2 -2
  234. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.d.ts.map +1 -1
  235. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.d.ts +2 -2
  236. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.d.ts.map +1 -1
  237. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.d.ts +2 -2
  238. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.d.ts.map +1 -1
  239. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.d.ts +2 -2
  240. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.d.ts.map +1 -1
  241. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.d.ts +2 -2
  242. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.d.ts.map +1 -1
  243. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.d.ts +2 -2
  244. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.d.ts.map +1 -1
  245. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.d.ts +2 -2
  246. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.d.ts.map +1 -1
  247. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.d.ts +2 -2
  248. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.d.ts.map +1 -1
  249. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.d.ts +2 -2
  250. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.d.ts.map +1 -1
  251. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.d.ts +2 -2
  252. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.d.ts.map +1 -1
  253. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.d.ts +2 -2
  254. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.d.ts.map +1 -1
  255. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.d.ts +2 -2
  256. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.d.ts.map +1 -1
  257. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.d.ts +2 -2
  258. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.d.ts.map +1 -1
  259. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.d.ts +2 -2
  260. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.d.ts.map +1 -1
  261. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts +2 -2
  262. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts.map +1 -1
  263. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts +2 -2
  264. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts.map +1 -1
  265. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts +2 -2
  266. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts.map +1 -1
  267. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.d.ts +2 -2
  268. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.d.ts.map +1 -1
  269. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.d.ts +2 -2
  270. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.d.ts.map +1 -1
  271. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.d.ts +2 -2
  272. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.d.ts.map +1 -1
  273. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.d.ts +2 -2
  274. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.d.ts.map +1 -1
  275. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.d.ts +2 -2
  276. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.d.ts.map +1 -1
  277. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.d.ts +2 -2
  278. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.d.ts.map +1 -1
  279. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.d.ts +2 -2
  280. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.d.ts.map +1 -1
  281. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.d.ts +2 -2
  282. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.d.ts.map +1 -1
  283. package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts +2 -2
  284. package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts.map +1 -1
  285. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts +2 -2
  286. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts.map +1 -1
  287. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts +2 -2
  288. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts.map +1 -1
  289. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts +2 -2
  290. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts.map +1 -1
  291. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts +2 -2
  292. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts.map +1 -1
  293. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts +2 -2
  294. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts.map +1 -1
  295. package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts +127 -1
  296. package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts.map +1 -1
  297. package/build/types/carbonbox/shared/domain/exceptions/CalculationFailedError.d.ts +7 -0
  298. package/build/types/carbonbox/shared/domain/exceptions/CalculationFailedError.d.ts.map +1 -0
  299. package/build/types/carbonbox/shared/domain/exceptions/CodedRootError.d.ts.map +1 -1
  300. package/build/types/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.d.ts +2 -2
  301. package/build/types/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.d.ts.map +1 -1
  302. package/build/types/carbonbox/shared/domain/exceptions/DatabaseConnectionError.d.ts +7 -0
  303. package/build/types/carbonbox/shared/domain/exceptions/DatabaseConnectionError.d.ts.map +1 -0
  304. package/build/types/carbonbox/shared/domain/exceptions/DateGreaterThanError.d.ts +2 -2
  305. package/build/types/carbonbox/shared/domain/exceptions/DateGreaterThanError.d.ts.map +1 -1
  306. package/build/types/carbonbox/shared/domain/exceptions/DivisionByZeroError.d.ts +2 -2
  307. package/build/types/carbonbox/shared/domain/exceptions/DivisionByZeroError.d.ts.map +1 -1
  308. package/build/types/carbonbox/shared/domain/exceptions/DuplicateOrderError.d.ts +7 -0
  309. package/build/types/carbonbox/shared/domain/exceptions/DuplicateOrderError.d.ts.map +1 -0
  310. package/build/types/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.d.ts +2 -2
  311. package/build/types/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.d.ts.map +1 -1
  312. package/build/types/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.d.ts +2 -2
  313. package/build/types/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.d.ts.map +1 -1
  314. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.d.ts +2 -2
  315. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.d.ts.map +1 -1
  316. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentNameError.d.ts +2 -2
  317. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentNameError.d.ts.map +1 -1
  318. package/build/types/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.d.ts +2 -2
  319. package/build/types/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.d.ts.map +1 -1
  320. package/build/types/carbonbox/shared/domain/exceptions/EmptyValueError.d.ts +7 -0
  321. package/build/types/carbonbox/shared/domain/exceptions/EmptyValueError.d.ts.map +1 -0
  322. package/build/types/carbonbox/shared/domain/exceptions/ExternalServiceError.d.ts +7 -0
  323. package/build/types/carbonbox/shared/domain/exceptions/ExternalServiceError.d.ts.map +1 -0
  324. package/build/types/carbonbox/shared/domain/exceptions/FormNotFoundError.d.ts +7 -0
  325. package/build/types/carbonbox/shared/domain/exceptions/FormNotFoundError.d.ts.map +1 -0
  326. package/build/types/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.d.ts +7 -0
  327. package/build/types/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.d.ts.map +1 -0
  328. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.d.ts +2 -2
  329. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.d.ts.map +1 -1
  330. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts +2 -3
  331. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
  332. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts +2 -3
  333. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts.map +1 -1
  334. package/build/types/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.d.ts +2 -2
  335. package/build/types/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.d.ts.map +1 -1
  336. package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.d.ts +2 -2
  337. package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.d.ts.map +1 -1
  338. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeError.d.ts +2 -2
  339. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeError.d.ts.map +1 -1
  340. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeListError.d.ts +2 -2
  341. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeListError.d.ts.map +1 -1
  342. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.d.ts +2 -2
  343. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.d.ts.map +1 -1
  344. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.d.ts +2 -2
  345. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.d.ts.map +1 -1
  346. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.d.ts +2 -2
  347. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.d.ts.map +1 -1
  348. package/build/types/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.d.ts +2 -2
  349. package/build/types/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.d.ts.map +1 -1
  350. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.d.ts +2 -2
  351. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.d.ts.map +1 -1
  352. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.d.ts +2 -2
  353. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.d.ts.map +1 -1
  354. package/build/types/carbonbox/shared/domain/exceptions/InvalidCurrencyError.d.ts.map +1 -1
  355. package/build/types/carbonbox/shared/domain/exceptions/InvalidDateRangeError.d.ts +2 -2
  356. package/build/types/carbonbox/shared/domain/exceptions/InvalidDateRangeError.d.ts.map +1 -1
  357. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.d.ts +2 -2
  358. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.d.ts.map +1 -1
  359. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts +2 -2
  360. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts.map +1 -1
  361. package/build/types/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.d.ts +7 -0
  362. package/build/types/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.d.ts.map +1 -0
  363. package/build/types/carbonbox/shared/domain/exceptions/InvalidFormulaError.d.ts +7 -0
  364. package/build/types/carbonbox/shared/domain/exceptions/InvalidFormulaError.d.ts.map +1 -0
  365. package/build/types/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.d.ts +2 -2
  366. package/build/types/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.d.ts.map +1 -1
  367. package/build/types/carbonbox/shared/domain/exceptions/InvalidGenderError.d.ts +2 -2
  368. package/build/types/carbonbox/shared/domain/exceptions/InvalidGenderError.d.ts.map +1 -1
  369. package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts +2 -2
  370. package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts.map +1 -1
  371. package/build/types/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.d.ts +2 -2
  372. package/build/types/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.d.ts.map +1 -1
  373. package/build/types/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.d.ts +2 -2
  374. package/build/types/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.d.ts.map +1 -1
  375. package/build/types/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.d.ts +2 -2
  376. package/build/types/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.d.ts.map +1 -1
  377. package/build/types/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.d.ts +2 -2
  378. package/build/types/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.d.ts.map +1 -1
  379. package/build/types/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.d.ts +7 -0
  380. package/build/types/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.d.ts.map +1 -0
  381. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.d.ts +2 -2
  382. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.d.ts.map +1 -1
  383. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.d.ts +2 -2
  384. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.d.ts.map +1 -1
  385. package/build/types/carbonbox/shared/domain/exceptions/InvalidRoleError.d.ts +7 -0
  386. package/build/types/carbonbox/shared/domain/exceptions/InvalidRoleError.d.ts.map +1 -0
  387. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts +2 -3
  388. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts.map +1 -1
  389. package/build/types/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.d.ts +2 -2
  390. package/build/types/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.d.ts.map +1 -1
  391. package/build/types/carbonbox/shared/domain/exceptions/InvalidStringListError.d.ts +2 -2
  392. package/build/types/carbonbox/shared/domain/exceptions/InvalidStringListError.d.ts.map +1 -1
  393. package/build/types/carbonbox/shared/domain/exceptions/InvalidSubmissionError.d.ts +7 -0
  394. package/build/types/carbonbox/shared/domain/exceptions/InvalidSubmissionError.d.ts.map +1 -0
  395. package/build/types/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.d.ts +2 -2
  396. package/build/types/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.d.ts.map +1 -1
  397. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdError.d.ts +7 -0
  398. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdError.d.ts.map +1 -0
  399. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.d.ts +2 -2
  400. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.d.ts.map +1 -1
  401. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.d.ts +2 -2
  402. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.d.ts.map +1 -1
  403. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.d.ts +2 -2
  404. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.d.ts.map +1 -1
  405. package/build/types/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.d.ts +2 -2
  406. package/build/types/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.d.ts.map +1 -1
  407. package/build/types/carbonbox/shared/domain/exceptions/InvalidUrlListError.d.ts +2 -2
  408. package/build/types/carbonbox/shared/domain/exceptions/InvalidUrlListError.d.ts.map +1 -1
  409. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts +2 -2
  410. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts.map +1 -1
  411. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts +2 -3
  412. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts.map +1 -1
  413. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.d.ts +2 -2
  414. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.d.ts.map +1 -1
  415. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts +2 -3
  416. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts.map +1 -1
  417. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts +2 -2
  418. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts.map +1 -1
  419. package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts +2 -3
  420. package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts.map +1 -1
  421. package/build/types/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.d.ts +2 -2
  422. package/build/types/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.d.ts.map +1 -1
  423. package/build/types/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.d.ts +7 -0
  424. package/build/types/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.d.ts.map +1 -0
  425. package/build/types/carbonbox/shared/domain/exceptions/JobNotFoundError.d.ts +7 -0
  426. package/build/types/carbonbox/shared/domain/exceptions/JobNotFoundError.d.ts.map +1 -0
  427. package/build/types/carbonbox/shared/domain/exceptions/ManagerRequiredError.d.ts +7 -0
  428. package/build/types/carbonbox/shared/domain/exceptions/ManagerRequiredError.d.ts.map +1 -0
  429. package/build/types/carbonbox/shared/domain/exceptions/MaximumValueViolationError.d.ts +7 -0
  430. package/build/types/carbonbox/shared/domain/exceptions/MaximumValueViolationError.d.ts.map +1 -0
  431. package/build/types/carbonbox/shared/domain/exceptions/MethodNotImplementedError.d.ts +2 -2
  432. package/build/types/carbonbox/shared/domain/exceptions/MethodNotImplementedError.d.ts.map +1 -1
  433. package/build/types/carbonbox/shared/domain/exceptions/MinimumValueViolationError.d.ts +2 -2
  434. package/build/types/carbonbox/shared/domain/exceptions/MinimumValueViolationError.d.ts.map +1 -1
  435. package/build/types/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.d.ts +7 -0
  436. package/build/types/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.d.ts.map +1 -0
  437. package/build/types/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.d.ts +7 -0
  438. package/build/types/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.d.ts.map +1 -0
  439. package/build/types/carbonbox/shared/domain/exceptions/MoneyOverflowError.d.ts +2 -2
  440. package/build/types/carbonbox/shared/domain/exceptions/MoneyOverflowError.d.ts.map +1 -1
  441. package/build/types/carbonbox/shared/domain/exceptions/NegativeAmountError.d.ts +2 -2
  442. package/build/types/carbonbox/shared/domain/exceptions/NegativeAmountError.d.ts.map +1 -1
  443. package/build/types/carbonbox/shared/domain/exceptions/NotIntegerError.d.ts +2 -2
  444. package/build/types/carbonbox/shared/domain/exceptions/NotIntegerError.d.ts.map +1 -1
  445. package/build/types/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.d.ts +3 -3
  446. package/build/types/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.d.ts.map +1 -1
  447. package/build/types/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.d.ts +2 -2
  448. package/build/types/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.d.ts.map +1 -1
  449. package/build/types/carbonbox/shared/domain/exceptions/StakeholderExistsError.d.ts +7 -0
  450. package/build/types/carbonbox/shared/domain/exceptions/StakeholderExistsError.d.ts.map +1 -0
  451. package/build/types/carbonbox/shared/domain/exceptions/SubmissionLockedError.d.ts +7 -0
  452. package/build/types/carbonbox/shared/domain/exceptions/SubmissionLockedError.d.ts.map +1 -0
  453. package/build/types/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.d.ts +2 -2
  454. package/build/types/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.d.ts.map +1 -1
  455. package/build/types/carbonbox/shared/domain/exceptions/TokenInvalidError.d.ts +7 -0
  456. package/build/types/carbonbox/shared/domain/exceptions/TokenInvalidError.d.ts.map +1 -0
  457. package/build/types/carbonbox/shared/domain/exceptions/UndefinedValueError.d.ts +2 -2
  458. package/build/types/carbonbox/shared/domain/exceptions/UndefinedValueError.d.ts.map +1 -1
  459. package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts +2 -3
  460. package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts.map +1 -1
  461. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.d.ts +2 -2
  462. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.d.ts.map +1 -1
  463. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.d.ts +2 -2
  464. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.d.ts.map +1 -1
  465. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.d.ts +2 -2
  466. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.d.ts.map +1 -1
  467. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.d.ts +2 -2
  468. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.d.ts.map +1 -1
  469. package/build/types/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.d.ts +3 -3
  470. package/build/types/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.d.ts.map +1 -1
  471. package/build/types/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.d.ts +3 -3
  472. package/build/types/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.d.ts.map +1 -1
  473. package/build/types/carbonbox/shared/either/index.d.ts +2 -0
  474. package/build/types/carbonbox/shared/either/index.d.ts.map +1 -1
  475. package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map +1 -1
  476. package/build/types/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.d.ts +2 -2
  477. package/build/types/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.d.ts.map +1 -1
  478. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.d.ts.map +1 -1
  479. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts +2 -2
  480. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts.map +1 -1
  481. package/build/types/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.d.ts.map +1 -1
  482. package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map +1 -1
  483. package/build/types/main/index.d.ts +29 -0
  484. package/build/types/main/index.d.ts.map +1 -1
  485. package/package.json +1 -1
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StakeholderExistsError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class StakeholderExistsError extends CodedRootError_1.CodedRootError {
7
+ constructor(email, stakeholderType) {
8
+ const technicalMessage = stakeholderType
9
+ ? `A ${stakeholderType} stakeholder already exists with email: ${email}`
10
+ : `A stakeholder already exists with this email: ${email}`;
11
+ const context = {
12
+ email,
13
+ stakeholderType,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Use a different email address',
18
+ 'Check if the stakeholder was previously registered',
19
+ 'Verify the email address for typos',
20
+ 'Contact support if you need to reactivate a deactivated stakeholder',
21
+ 'Use the update endpoint if you need to modify an existing stakeholder',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.STAKEHOLDER_EXISTS, technicalMessage, context, suggestions);
24
+ this.name = 'StakeholderExistsError';
25
+ }
26
+ static create(email, stakeholderType) {
27
+ return new StakeholderExistsError(email, stakeholderType);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.StakeholderExistsError = StakeholderExistsError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SubmissionLockedError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class SubmissionLockedError extends CodedRootError_1.CodedRootError {
7
+ constructor(submissionId, reason) {
8
+ const technicalMessage = reason
9
+ ? `Submission '${submissionId}' is locked and cannot be modified: ${reason}`
10
+ : `Submission '${submissionId}' is locked and cannot be modified`;
11
+ const context = {
12
+ submissionId,
13
+ reason,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Unlock the submission before making changes',
18
+ 'Contact an administrator to unlock this submission',
19
+ 'Check if the submission has been finalized or approved',
20
+ 'Verify the lock status and who locked it',
21
+ 'Create a new submission if modifications are not allowed',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.SUBMISSION_LOCKED, technicalMessage, context, suggestions);
24
+ this.name = 'SubmissionLockedError';
25
+ }
26
+ static create(submissionId, reason) {
27
+ return new SubmissionLockedError(submissionId, reason);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.SubmissionLockedError = SubmissionLockedError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TaxIdentificationNumberWithControlCharactersError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class TaxIdentificationNumberWithControlCharactersError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class TaxIdentificationNumberWithControlCharactersError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName) {
7
- const message = `Tax identification number '${propertyName}' contains invalid control characters.`;
8
- super(message);
8
+ const technicalMessage = `Tax identification number '${propertyName}' contains invalid control characters.`;
9
+ const context = {
10
+ propertyName,
11
+ constraint: 'no_control_characters',
12
+ errorType: 'invalid_characters',
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Remove control characters from the tax identification number '${propertyName}'`,
17
+ 'Ensure the tax ID contains only alphanumeric characters and allowed special characters',
18
+ 'Sanitize input to remove invisible or control characters before validation',
19
+ 'Validate that the tax identification number contains only printable characters',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.TAX_IDENTIFICATION_NUMBER_WITH_CONTROL_CHARACTERS, technicalMessage, context, suggestions);
9
22
  this.name = 'TaxIdentificationNumberWithControlCharactersError';
10
23
  }
11
24
  static create(propertyName) {
12
25
  return new TaxIdentificationNumberWithControlCharactersError(propertyName);
13
26
  }
14
27
  logError() {
15
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
16
29
  }
17
30
  }
18
31
  exports.TaxIdentificationNumberWithControlCharactersError = TaxIdentificationNumberWithControlCharactersError;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TokenInvalidError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class TokenInvalidError extends CodedRootError_1.CodedRootError {
7
+ constructor(reason) {
8
+ const technicalMessage = reason
9
+ ? `Authentication token is invalid: ${reason}`
10
+ : 'Authentication token is invalid or malformed';
11
+ const context = {
12
+ reason,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ 'Verify the token format is correct (JWT format expected)',
17
+ 'Check that the token has not been tampered with',
18
+ 'Ensure the token signature is valid',
19
+ 'Request a new authentication token by logging in again',
20
+ 'Verify the token is not corrupted during transmission',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.TOKEN_INVALID, technicalMessage, context, suggestions);
23
+ this.name = 'TokenInvalidError';
24
+ }
25
+ static create(reason) {
26
+ return new TokenInvalidError(reason);
27
+ }
28
+ logError() {
29
+ return `${this.name}: ${this.technicalMessage}`;
30
+ }
31
+ }
32
+ exports.TokenInvalidError = TokenInvalidError;
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UndefinedValueError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class UndefinedValueError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class UndefinedValueError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName, expectedType) {
7
- const message = `Value constraint violation: '${propertyName}' cannot be undefined. Expected type: ${expectedType}.`;
8
- super(message);
8
+ const technicalMessage = `Value constraint violation: '${propertyName}' cannot be undefined. Expected type: ${expectedType}.`;
9
+ const context = {
10
+ propertyName,
11
+ expectedType,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Ensure '${propertyName}' is provided and not undefined`,
16
+ `Verify the property has a value of type ${expectedType}`,
17
+ 'Check for missing required fields in the request',
18
+ 'Review default values and initialization logic',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.UNDEFINED_VALUE, technicalMessage, context, suggestions);
9
21
  this.name = 'UndefinedValueError';
10
22
  }
11
23
  static create(propertyName, expectedType) {
12
24
  return new UndefinedValueError(propertyName, expectedType);
13
25
  }
14
26
  logError() {
15
- return `${this.name}: ${this.message}`;
27
+ return `${this.name}: ${this.technicalMessage}`;
16
28
  }
17
29
  }
18
30
  exports.UndefinedValueError = UndefinedValueError;
@@ -1,19 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnknownBoundedContextCodeError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class UnknownBoundedContextCodeError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class UnknownBoundedContextCodeError extends CodedRootError_1.CodedRootError {
6
7
  constructor(contextCode, semanticUuid) {
7
- const message = `The bounded context code "${contextCode}" is not recognized in semantic UUID "${semanticUuid}". ${UnknownBoundedContextCodeError.UNKNOWN_BOUNDED_CONTEXT_CODE_ERROR_MESSAGE}`;
8
- super(message);
8
+ const technicalMessage = `The bounded context code "${contextCode}" is not recognized in semantic UUID "${semanticUuid}". Expected a valid bounded context identifier from the system.`;
9
+ const context = {
10
+ contextCode,
11
+ semanticUuid,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ 'Verify the context code matches a registered bounded context',
16
+ 'Valid context codes include: USR, CFG, ADC, EMC, RSC, etc.',
17
+ 'Check the bounded context registry for available codes',
18
+ 'Ensure the semantic UUID follows the format: CONTEXT-DOMAIN-UUID',
19
+ 'Contact system administrator if you need a new bounded context registered',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.UNKNOWN_BOUNDED_CONTEXT_CODE, technicalMessage, context, suggestions);
9
22
  this.name = 'UnknownBoundedContextCodeError';
10
23
  }
11
24
  static create(contextCode, semanticUuid) {
12
25
  return new UnknownBoundedContextCodeError(contextCode, semanticUuid);
13
26
  }
14
27
  logError() {
15
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
16
29
  }
17
30
  }
18
31
  exports.UnknownBoundedContextCodeError = UnknownBoundedContextCodeError;
19
- UnknownBoundedContextCodeError.UNKNOWN_BOUNDED_CONTEXT_CODE_ERROR_MESSAGE = 'Unknown bounded context code in semantic UUID';
@@ -1,18 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnsupportedStakeholderRoleError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class UnsupportedStakeholderRoleError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class UnsupportedStakeholderRoleError extends CodedRootError_1.CodedRootError {
6
7
  constructor(roleType) {
7
- const message = `Unsupported stakeholder role: ${roleType}`;
8
- super(message);
8
+ const technicalMessage = `Unsupported stakeholder role: ${roleType}`;
9
+ const context = {
10
+ roleType,
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ 'Verify the stakeholder role is valid and supported by the system',
15
+ 'Check if the role has been deprecated or removed',
16
+ 'Supported roles: Manager, Coordinator, Client, Host',
17
+ 'Contact support if you believe this role should be supported',
18
+ ];
19
+ super(ErrorCode_1.ErrorCode.UNSUPPORTED_STAKEHOLDER_ROLE, technicalMessage, context, suggestions);
9
20
  this.name = 'UnsupportedStakeholderRoleError';
10
21
  }
11
22
  static create(roleType) {
12
23
  return new UnsupportedStakeholderRoleError(roleType);
13
24
  }
14
25
  logError() {
15
- return `${this.name}: ${this.message}`;
26
+ return `${this.name}: ${this.technicalMessage}`;
16
27
  }
17
28
  }
18
29
  exports.UnsupportedStakeholderRoleError = UnsupportedStakeholderRoleError;
@@ -1,18 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnsupportedUserTypeError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class UnsupportedUserTypeError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class UnsupportedUserTypeError extends CodedRootError_1.CodedRootError {
6
7
  constructor(userType) {
7
- const message = `Unsupported user type: ${userType}`;
8
- super(message);
8
+ const technicalMessage = `Unsupported user type: ${userType}`;
9
+ const context = {
10
+ userType,
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ 'Verify the user type value is one of the supported types',
15
+ 'Check if the user type enum has been updated but not all handlers',
16
+ 'Ensure the user type is properly mapped in the system',
17
+ 'Contact development team if this is a new user type that should be supported',
18
+ ];
19
+ super(ErrorCode_1.ErrorCode.UNSUPPORTED_USER_TYPE, technicalMessage, context, suggestions);
9
20
  this.name = 'UnsupportedUserTypeError';
10
21
  }
11
22
  static create(userType) {
12
23
  return new UnsupportedUserTypeError(userType);
13
24
  }
14
25
  logError() {
15
- return `${this.name}: ${this.message}`;
26
+ return `${this.name}: ${this.technicalMessage}`;
16
27
  }
17
28
  }
18
29
  exports.UnsupportedUserTypeError = UnsupportedUserTypeError;
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CannotAccessLeftOnRightValueError = void 0;
4
- const RootError_1 = require("../../../domain/exceptions/RootError");
5
- class CannotAccessLeftOnRightValueError extends RootError_1.RootError {
6
- constructor(message) {
7
- super(message);
4
+ const CodedRootError_1 = require("../../../domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../domain/enums/ErrorCode");
6
+ class CannotAccessLeftOnRightValueError extends CodedRootError_1.CodedRootError {
7
+ constructor(value) {
8
+ const technicalMessage = `Cannot access left value on Right${value ? ` (value: ${JSON.stringify(value)})` : ''}`;
9
+ const context = {
10
+ attemptedAccess: 'left',
11
+ actualType: 'Right',
12
+ value: value ?? null,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ 'Verify that the Either is a Left before accessing the left value',
17
+ 'Use isLeft() method to check the Either type before accessing',
18
+ 'Use fold() or match() methods to handle both Left and Right cases safely',
19
+ 'Consider using map() or flatMap() for functional transformations',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.CANNOT_ACCESS_LEFT_ON_RIGHT_VALUE, technicalMessage, context, suggestions);
8
22
  this.name = 'CannotAccessLeftOnRightValueError';
9
23
  }
10
24
  static create(value) {
11
- return new CannotAccessLeftOnRightValueError(`Cannot access left value on Right${value ? `(${value})` : ''}`);
25
+ return new CannotAccessLeftOnRightValueError(value);
12
26
  }
13
27
  logError() {
14
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
15
29
  }
16
30
  }
17
31
  exports.CannotAccessLeftOnRightValueError = CannotAccessLeftOnRightValueError;
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CannotAccessRightOnLeftValueError = void 0;
4
- const RootError_1 = require("../../../domain/exceptions/RootError");
5
- class CannotAccessRightOnLeftValueError extends RootError_1.RootError {
6
- constructor(message) {
7
- super(message);
4
+ const CodedRootError_1 = require("../../../domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../domain/enums/ErrorCode");
6
+ class CannotAccessRightOnLeftValueError extends CodedRootError_1.CodedRootError {
7
+ constructor(value) {
8
+ const technicalMessage = `Cannot access right value on Left${value ? ` (value: ${JSON.stringify(value)})` : ''}`;
9
+ const context = {
10
+ attemptedAccess: 'right',
11
+ actualType: 'Left',
12
+ value: value ?? null,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ 'Verify that the Either is a Right before accessing the right value',
17
+ 'Use isRight() method to check the Either type before accessing',
18
+ 'Use fold() or match() methods to handle both Left and Right cases safely',
19
+ 'Consider using map() or flatMap() for functional transformations',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.CANNOT_ACCESS_RIGHT_ON_LEFT_VALUE, technicalMessage, context, suggestions);
8
22
  this.name = 'CannotAccessRightOnLeftValueError';
9
23
  }
10
24
  static create(value) {
11
- return new CannotAccessRightOnLeftValueError(`Cannot access right value on Left${value ? `(${value})` : ''}`);
25
+ return new CannotAccessRightOnLeftValueError(value);
12
26
  }
13
27
  logError() {
14
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
15
29
  }
16
30
  }
17
31
  exports.CannotAccessRightOnLeftValueError = CannotAccessRightOnLeftValueError;
@@ -1,17 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FilterOperationNotImplementedError = void 0;
4
- const RootError_1 = require("../../../domain/exceptions/RootError");
5
- class FilterOperationNotImplementedError extends RootError_1.RootError {
6
- constructor(message) {
7
- super(message);
4
+ const CodedRootError_1 = require("../../../domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../domain/enums/ErrorCode");
6
+ class FilterOperationNotImplementedError extends CodedRootError_1.CodedRootError {
7
+ constructor(message, contextInfo) {
8
+ const technicalMessage = `Filter operation must be implemented via EitherUtils${contextInfo ? ` in ${contextInfo}` : ''}`;
9
+ const context = {
10
+ requiredImplementation: 'EitherUtils',
11
+ operation: 'filter',
12
+ contextInfo: contextInfo || 'not specified',
13
+ errorType: 'operation_not_implemented',
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Implement the filter operation using EitherUtils for proper Either monad handling',
18
+ 'Ensure that filter operations on Either types are delegated to EitherUtils methods',
19
+ 'Review the Either monad pattern documentation for correct filter implementation',
20
+ 'Check if the context requires specific filter logic and implement it in EitherUtils',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.FILTER_OPERATION_NOT_IMPLEMENTED, technicalMessage, context, suggestions);
8
23
  this.name = 'FilterOperationNotImplementedError';
9
24
  }
10
25
  static create(context) {
11
- return new FilterOperationNotImplementedError(`Filter operation must be implemented via EitherUtils${context ? ` in ${context}` : ''}`);
26
+ return new FilterOperationNotImplementedError('', context);
12
27
  }
13
28
  logError() {
14
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
15
30
  }
16
31
  }
17
32
  exports.FilterOperationNotImplementedError = FilterOperationNotImplementedError;
@@ -1,17 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SwapOperationNotImplementedError = void 0;
4
- const RootError_1 = require("../../../domain/exceptions/RootError");
5
- class SwapOperationNotImplementedError extends RootError_1.RootError {
6
- constructor(message) {
7
- super(message);
4
+ const CodedRootError_1 = require("../../../domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../domain/enums/ErrorCode");
6
+ class SwapOperationNotImplementedError extends CodedRootError_1.CodedRootError {
7
+ constructor(message, contextInfo) {
8
+ const technicalMessage = `Swap operation must be implemented via EitherUtils${contextInfo ? ` in ${contextInfo}` : ''}`;
9
+ const context = {
10
+ requiredImplementation: 'EitherUtils',
11
+ operation: 'swap',
12
+ contextInfo: contextInfo || 'not specified',
13
+ errorType: 'operation_not_implemented',
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Implement the swap operation using EitherUtils for proper Either monad handling',
18
+ 'Ensure that swap operations on Either types are delegated to EitherUtils methods',
19
+ 'Review the Either monad pattern documentation for correct swap implementation',
20
+ 'Check if the context requires specific swap logic and implement it in EitherUtils',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.SWAP_OPERATION_NOT_IMPLEMENTED, technicalMessage, context, suggestions);
8
23
  this.name = 'SwapOperationNotImplementedError';
9
24
  }
10
25
  static create(context) {
11
- return new SwapOperationNotImplementedError(`Swap operation must be implemented via EitherUtils${context ? ` in ${context}` : ''}`);
26
+ return new SwapOperationNotImplementedError('', context);
12
27
  }
13
28
  logError() {
14
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
15
30
  }
16
31
  }
17
32
  exports.SwapOperationNotImplementedError = SwapOperationNotImplementedError;
@@ -3,7 +3,7 @@
3
3
  // EITHER PATTERN - PUNTO DE ENTRADA PRINCIPAL
4
4
  // =============================================================================
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.IS_REFACTORED = exports.EITHER_VERSION = exports.ResultUtils = exports.RightEither = exports.LeftEither = exports.Either = exports.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEitherImpl = exports.LeftEitherImpl = void 0;
6
+ exports.IS_REFACTORED = exports.EITHER_VERSION = exports.ResultUtils = exports.RightEither = exports.LeftEither = exports.Either = exports.SwapOperationNotImplementedError = exports.FilterOperationNotImplementedError = exports.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEitherImpl = exports.LeftEitherImpl = void 0;
7
7
  exports.configureEither = configureEither;
8
8
  exports.getEitherConfig = getEitherConfig;
9
9
  // ─── Imports para compatibilidad ────────────────────────────────────────────
@@ -28,6 +28,10 @@ var CannotAccessLeftOnRightValueError_1 = require("./domain/exceptions/CannotAcc
28
28
  Object.defineProperty(exports, "CannotAccessLeftOnRightValueError", { enumerable: true, get: function () { return CannotAccessLeftOnRightValueError_1.CannotAccessLeftOnRightValueError; } });
29
29
  var CannotAccessRightOnLeftValueError_1 = require("./domain/exceptions/CannotAccessRightOnLeftValueError");
30
30
  Object.defineProperty(exports, "CannotAccessRightOnLeftValueError", { enumerable: true, get: function () { return CannotAccessRightOnLeftValueError_1.CannotAccessRightOnLeftValueError; } });
31
+ var FilterOperationNotImplementedError_1 = require("./domain/exceptions/FilterOperationNotImplementedError");
32
+ Object.defineProperty(exports, "FilterOperationNotImplementedError", { enumerable: true, get: function () { return FilterOperationNotImplementedError_1.FilterOperationNotImplementedError; } });
33
+ var SwapOperationNotImplementedError_1 = require("./domain/exceptions/SwapOperationNotImplementedError");
34
+ Object.defineProperty(exports, "SwapOperationNotImplementedError", { enumerable: true, get: function () { return SwapOperationNotImplementedError_1.SwapOperationNotImplementedError; } });
31
35
  // =============================================================================
32
36
  // COMPATIBILIDAD CON API EXISTENTE
33
37
  // =============================================================================
@@ -57,16 +57,18 @@ class CarbonClient extends Stakeholder_1.Stakeholder {
57
57
  const lastAccessAt = skipDomainValidation
58
58
  ? CarbonClientLastAccessAt_1.CarbonClientLastAccessAt.fromPrimitives(props.lastAccessAt).toPrimitives()
59
59
  : CarbonClientLastAccessAt_1.CarbonClientLastAccessAt.create(props.lastAccessAt).toPrimitives();
60
- const taxIdentification = props.taxIdentification === null
61
- ? null
62
- : (skipDomainValidation
60
+ let taxIdentification = null;
61
+ if (props.taxIdentification !== null) {
62
+ taxIdentification = skipDomainValidation
63
63
  ? CarbonClientTaxIdentification_1.CarbonClientTaxIdentification.fromPrimitives(props.taxIdentification).toPrimitives()
64
- : CarbonClientTaxIdentification_1.CarbonClientTaxIdentification.create(props.taxIdentification).toPrimitives());
65
- const identityDocument = props.identityDocument === null
66
- ? null
67
- : (skipDomainValidation
64
+ : CarbonClientTaxIdentification_1.CarbonClientTaxIdentification.create(props.taxIdentification).toPrimitives();
65
+ }
66
+ let identityDocument = null;
67
+ if (props.identityDocument !== null) {
68
+ identityDocument = skipDomainValidation
68
69
  ? CarbonClientIdentityDocument_1.CarbonClientIdentityDocument.fromPrimitives(props.identityDocument).toPrimitives()
69
- : CarbonClientIdentityDocument_1.CarbonClientIdentityDocument.create(props.identityDocument).toPrimitives());
70
+ : CarbonClientIdentityDocument_1.CarbonClientIdentityDocument.create(props.identityDocument).toPrimitives();
71
+ }
70
72
  const roleType = skipDomainValidation
71
73
  ? CarbonClientRoleType_1.CarbonClientRoleType.fromPrimitives(props.roleType).toEnum()
72
74
  : CarbonClientRoleType_1.CarbonClientRoleType.create(props.roleType).toEnum();
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidCarbonClientAccountTypeError = void 0;
4
- const RootError_1 = require("../../../../shared/domain/exceptions/RootError");
5
- class InvalidCarbonClientAccountTypeError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
6
+ class InvalidCarbonClientAccountTypeError extends CodedRootError_1.CodedRootError {
6
7
  constructor(value, validAccountTypes) {
7
- const message = `Invalid carbon client account type: '${value}'. Valid account types are: ${validAccountTypes.join(', ')}.`;
8
- super(message);
8
+ const technicalMessage = `Invalid carbon client account type provided: '${value}'. The specified account type is not recognized in the carbon client classification system.`;
9
+ const context = {
10
+ receivedValue: value,
11
+ validAccountTypes,
12
+ validAccountTypesCount: validAccountTypes.length,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Use one of the valid carbon client account types: ${validAccountTypes.join(', ')}`,
17
+ 'Verify that the account type matches the client business classification requirements',
18
+ 'Check the carbon client account type enum or configuration for available options',
19
+ 'Review the client onboarding process to ensure proper account type selection',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.INVALID_CARBON_CLIENT_ACCOUNT_TYPE, technicalMessage, context, suggestions);
9
22
  this.name = 'InvalidCarbonClientAccountTypeError';
10
23
  }
11
24
  static create(value, validAccountTypes) {
12
25
  return new InvalidCarbonClientAccountTypeError(value, validAccountTypes);
13
26
  }
14
27
  logError() {
15
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
16
29
  }
17
30
  }
18
31
  exports.InvalidCarbonClientAccountTypeError = InvalidCarbonClientAccountTypeError;
@@ -53,16 +53,18 @@ class CarbonCoordinator extends Stakeholder_1.Stakeholder {
53
53
  const lastAccessAt = skipDomainValidation
54
54
  ? CarbonCoordinatorLastAccessAt_1.CarbonCoordinatorLastAccessAt.fromPrimitives(props.lastAccessAt).toPrimitives()
55
55
  : CarbonCoordinatorLastAccessAt_1.CarbonCoordinatorLastAccessAt.create(props.lastAccessAt).toPrimitives();
56
- const taxIdentification = props.taxIdentification === null
57
- ? null
58
- : (skipDomainValidation
56
+ let taxIdentification = null;
57
+ if (props.taxIdentification !== null) {
58
+ taxIdentification = skipDomainValidation
59
59
  ? CarbonCoordinatorTaxIdentification_1.CarbonCoordinatorTaxIdentification.fromPrimitives(props.taxIdentification).toPrimitives()
60
- : CarbonCoordinatorTaxIdentification_1.CarbonCoordinatorTaxIdentification.create(props.taxIdentification).toPrimitives());
61
- const identityDocument = props.identityDocument === null
62
- ? null
63
- : (skipDomainValidation
60
+ : CarbonCoordinatorTaxIdentification_1.CarbonCoordinatorTaxIdentification.create(props.taxIdentification).toPrimitives();
61
+ }
62
+ let identityDocument = null;
63
+ if (props.identityDocument !== null) {
64
+ identityDocument = skipDomainValidation
64
65
  ? CarbonCoordinatorIdentityDocument_1.CarbonCoordinatorIdentityDocument.fromPrimitives(props.identityDocument).toPrimitives()
65
- : CarbonCoordinatorIdentityDocument_1.CarbonCoordinatorIdentityDocument.create(props.identityDocument).toPrimitives());
66
+ : CarbonCoordinatorIdentityDocument_1.CarbonCoordinatorIdentityDocument.create(props.identityDocument).toPrimitives();
67
+ }
66
68
  const roleType = skipDomainValidation
67
69
  ? CarbonCoordinatorRoleType_1.CarbonCoordinatorRoleType.fromPrimitives(props.roleType).toEnum()
68
70
  : CarbonCoordinatorRoleType_1.CarbonCoordinatorRoleType.create(props.roleType).toEnum();
@@ -1,18 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidCarbonCoordinatorAvailabilityStatusError = void 0;
4
- const RootError_1 = require("../../../../shared/domain/exceptions/RootError");
5
- class InvalidCarbonCoordinatorAvailabilityStatusError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
6
+ class InvalidCarbonCoordinatorAvailabilityStatusError extends CodedRootError_1.CodedRootError {
6
7
  constructor(invalidValue, validValues, propertyName = 'availabilityStatus') {
7
- const message = `${propertyName} constraint violation: '${invalidValue}' is not a valid availability status. Valid values are: [${validValues.join(', ')}].`;
8
- super(message);
8
+ const technicalMessage = `Carbon coordinator ${propertyName} constraint violation: '${invalidValue}' is not a valid availability status. The provided status is not recognized in the coordinator availability management system.`;
9
+ const context = {
10
+ propertyName,
11
+ receivedValue: invalidValue,
12
+ validValues,
13
+ validValuesCount: validValues.length,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Use one of the valid availability status values: ${validValues.join(', ')}`,
18
+ `Verify that the ${propertyName} value matches the coordinator availability state requirements`,
19
+ 'Check the carbon coordinator availability status enum or configuration for available options',
20
+ 'Review the coordinator status transition logic to ensure valid state changes',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.INVALID_CARBON_COORDINATOR_AVAILABILITY_STATUS, technicalMessage, context, suggestions);
9
23
  this.name = 'InvalidCarbonCoordinatorAvailabilityStatusError';
10
24
  }
11
25
  static create(invalidValue, validValues, propertyName = 'availabilityStatus') {
12
26
  return new InvalidCarbonCoordinatorAvailabilityStatusError(invalidValue, validValues, propertyName);
13
27
  }
14
28
  logError() {
15
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
16
30
  }
17
31
  }
18
32
  exports.InvalidCarbonCoordinatorAvailabilityStatusError = InvalidCarbonCoordinatorAvailabilityStatusError;
@@ -36,11 +36,12 @@ class CarbonHost extends Stakeholder_1.Stakeholder {
36
36
  : CarbonHostLastAccessAt_1.CarbonHostLastAccessAt.create(props.lastAccessAt).toPrimitives();
37
37
  // USR-020: Host conserva taxIdentification (a nivel app sigue requerido); identityDocument
38
38
  // no aplica al Host (siempre null). El tipo base es nullable, de ahí el manejo defensivo.
39
- const taxIdentification = props.taxIdentification === null
40
- ? null
41
- : (skipDomainValidation
39
+ let taxIdentification = null;
40
+ if (props.taxIdentification !== null) {
41
+ taxIdentification = skipDomainValidation
42
42
  ? CarbonHostTaxIdentification_1.CarbonHostTaxIdentification.fromPrimitives(props.taxIdentification).toPrimitives()
43
- : CarbonHostTaxIdentification_1.CarbonHostTaxIdentification.create(props.taxIdentification).toPrimitives());
43
+ : CarbonHostTaxIdentification_1.CarbonHostTaxIdentification.create(props.taxIdentification).toPrimitives();
44
+ }
44
45
  const roleType = skipDomainValidation
45
46
  ? CarbonHostRoleType_1.CarbonHostRoleType.fromPrimitives(props.roleType).toEnum()
46
47
  : CarbonHostRoleType_1.CarbonHostRoleType.create(props.roleType).toEnum();