@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
@@ -1,19 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidUserPrefixError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidUserPrefixError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidUserPrefixError extends CodedRootError_1.CodedRootError {
6
7
  constructor(userId, prefix, validPrefixes) {
7
- const message = `The UserId "${userId}" has invalid prefix "${prefix}". Expected one of: [${validPrefixes.join(', ')}]. ${InvalidUserPrefixError.INVALID_USER_PREFIX_ERROR_MESSAGE}`;
8
- super(message);
8
+ const technicalMessage = `The UserId "${userId}" has invalid prefix "${prefix}". Expected one of: [${validPrefixes.join(', ')}]. User prefixes must match valid stakeholder types.`;
9
+ const context = {
10
+ userId,
11
+ prefix,
12
+ validPrefixes,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Valid user prefixes are: ${validPrefixes.join(', ')}`,
17
+ 'HST = Carbon Host (Administrator)',
18
+ 'MGR = Carbon Manager',
19
+ 'CRD = Carbon Coordinator',
20
+ 'CLT = Carbon Client (End User)',
21
+ 'Ensure the prefix matches your user role type',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.INVALID_USER_PREFIX, technicalMessage, context, suggestions);
9
24
  this.name = 'InvalidUserPrefixError';
10
25
  }
11
26
  static create(userId, prefix, validPrefixes) {
12
27
  return new InvalidUserPrefixError(userId, prefix, validPrefixes);
13
28
  }
14
29
  logError() {
15
- return `${this.name}: ${this.message}`;
30
+ return `${this.name}: ${this.technicalMessage}`;
16
31
  }
17
32
  }
18
33
  exports.InvalidUserPrefixError = InvalidUserPrefixError;
19
- InvalidUserPrefixError.INVALID_USER_PREFIX_ERROR_MESSAGE = 'Invalid user prefix for UserId';
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidUserTypeError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidUserTypeError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidUserTypeError extends CodedRootError_1.CodedRootError {
6
7
  constructor(value, validTypes) {
7
- const message = `Invalid user type: '${value}'. Valid types are: ${validTypes.join(', ')}.`;
8
- super(message);
8
+ const technicalMessage = `Invalid user type: '${value}'. Valid types are: ${validTypes.join(', ')}.`;
9
+ const context = {
10
+ value,
11
+ validTypes,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Use one of the valid user types: ${validTypes.join(', ')}`,
16
+ 'Verify the user type matches the system requirements',
17
+ 'Check the API documentation for valid user type values',
18
+ 'Ensure the user type is spelled correctly',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.INVALID_USER_TYPE, technicalMessage, context, suggestions);
9
21
  this.name = 'InvalidUserTypeError';
10
22
  }
11
23
  static create(value, validTypes) {
12
24
  return new InvalidUserTypeError(value, validTypes);
13
25
  }
14
26
  logError() {
15
- return `${this.name}: ${this.message}`;
27
+ return `${this.name}: ${this.technicalMessage}`;
16
28
  }
17
29
  }
18
30
  exports.InvalidUserTypeError = InvalidUserTypeError;
@@ -1,19 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidUuidFormatError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidUuidFormatError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidUuidFormatError extends CodedRootError_1.CodedRootError {
6
7
  constructor(uuid, semanticUuid) {
7
- const message = `The UUID "${uuid}" extracted from semantic UUID "${semanticUuid}" does not conform to UUID v4 format. ${InvalidUuidFormatError.INVALID_UUID_FORMAT_ERROR_MESSAGE}`;
8
- super(message);
8
+ const technicalMessage = `The UUID "${uuid}" extracted from semantic UUID "${semanticUuid}" does not conform to UUID v4 format. Expected a valid UUIDv4 with proper structure.`;
9
+ const context = {
10
+ uuid,
11
+ semanticUuid,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ 'Ensure the UUID follows UUIDv4 format (8-4-4-4-12 hexadecimal pattern)',
16
+ 'Verify the UUID contains only valid hexadecimal characters (0-9, a-f)',
17
+ 'Check the UUID has exactly 36 characters including hyphens',
18
+ 'Example valid UUID: 550e8400-e29b-41d4-a716-446655440000',
19
+ 'Validate that the version field (first digit of third group) is 4',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.INVALID_UUID_FORMAT, technicalMessage, context, suggestions);
9
22
  this.name = 'InvalidUuidFormatError';
10
23
  }
11
24
  static create(uuid, semanticUuid) {
12
25
  return new InvalidUuidFormatError(uuid, 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.InvalidUuidFormatError = InvalidUuidFormatError;
19
- InvalidUuidFormatError.INVALID_UUID_FORMAT_ERROR_MESSAGE = 'Invalid UUID v4 format';
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidValueObjectConfigurationError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidValueObjectConfigurationError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidValueObjectConfigurationError extends CodedRootError_1.CodedRootError {
6
7
  constructor() {
7
- const message = 'Invalid configuration: Cannot allow both null and undefined simultaneously';
8
- super(message);
8
+ const technicalMessage = 'Invalid Value Object configuration: Cannot allow both null and undefined simultaneously. Choose one or neither.';
9
+ const context = {
10
+ configurationError: 'allowNull and allowUndefined both enabled',
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ 'Set allowNull to true OR allowUndefined to true, but not both',
15
+ 'Use allowNull: true if the value can be explicitly null',
16
+ 'Use allowUndefined: true if the value can be explicitly undefined',
17
+ 'Set both to false if the value is required and must be present',
18
+ 'Review the Value Object configuration documentation',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.INVALID_VALUE_OBJECT_CONFIGURATION, technicalMessage, context, suggestions);
9
21
  this.name = 'InvalidValueObjectConfigurationError';
10
22
  }
11
23
  static create() {
12
24
  return new InvalidValueObjectConfigurationError();
13
25
  }
14
26
  logError() {
15
- return `${this.name}: ${this.message}`;
27
+ return `${this.name}: ${this.technicalMessage}`;
16
28
  }
17
29
  }
18
30
  exports.InvalidValueObjectConfigurationError = InvalidValueObjectConfigurationError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JobAlreadyRunningError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class JobAlreadyRunningError extends CodedRootError_1.CodedRootError {
7
+ constructor(jobId, startedAt) {
8
+ const technicalMessage = startedAt
9
+ ? `Calculation job '${jobId}' is already running since ${startedAt}`
10
+ : `Calculation job '${jobId}' is already running`;
11
+ const context = {
12
+ jobId,
13
+ startedAt,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Wait for the current job execution to complete',
18
+ 'Check the job status before starting a new execution',
19
+ 'Cancel the running job if it is stuck or no longer needed',
20
+ 'Verify job scheduling to avoid concurrent executions',
21
+ 'Contact support if the job appears to be stuck',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.JOB_ALREADY_RUNNING, technicalMessage, context, suggestions);
24
+ this.name = 'JobAlreadyRunningError';
25
+ }
26
+ static create(jobId, startedAt) {
27
+ return new JobAlreadyRunningError(jobId, startedAt);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.JobAlreadyRunningError = JobAlreadyRunningError;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.JobNotFoundError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class JobNotFoundError extends CodedRootError_1.CodedRootError {
7
+ constructor(jobId) {
8
+ const technicalMessage = `Calculation job with ID '${jobId}' was not found`;
9
+ const context = {
10
+ jobId,
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ 'Verify the job ID is correct',
15
+ 'Check if the job has been deleted or has expired',
16
+ 'Ensure you have permission to access this job',
17
+ 'Check if the job completed and was archived',
18
+ 'Contact support if the job should exist',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.JOB_NOT_FOUND, technicalMessage, context, suggestions);
21
+ this.name = 'JobNotFoundError';
22
+ }
23
+ static create(jobId) {
24
+ return new JobNotFoundError(jobId);
25
+ }
26
+ logError() {
27
+ return `${this.name}: ${this.technicalMessage}`;
28
+ }
29
+ }
30
+ exports.JobNotFoundError = JobNotFoundError;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManagerRequiredError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class ManagerRequiredError extends CodedRootError_1.CodedRootError {
7
+ constructor(stakeholderId, operation) {
8
+ const technicalMessage = `Manager assignment is required for stakeholder '${stakeholderId}' to perform operation: ${operation}`;
9
+ const context = {
10
+ stakeholderId,
11
+ operation,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ 'Assign a manager to this stakeholder before performing this operation',
16
+ 'Contact your administrator to assign the appropriate manager',
17
+ 'Verify the stakeholder hierarchy requirements',
18
+ 'Check if manager assignment is pending approval',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.MANAGER_REQUIRED, technicalMessage, context, suggestions);
21
+ this.name = 'ManagerRequiredError';
22
+ }
23
+ static create(stakeholderId, operation) {
24
+ return new ManagerRequiredError(stakeholderId, operation);
25
+ }
26
+ logError() {
27
+ return `${this.name}: ${this.technicalMessage}`;
28
+ }
29
+ }
30
+ exports.ManagerRequiredError = ManagerRequiredError;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaximumValueViolationError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class MaximumValueViolationError extends CodedRootError_1.CodedRootError {
7
+ constructor(propertyName, maximumValue, actualValue) {
8
+ const technicalMessage = `Value constraint violation: '${propertyName}' exceeds maximum allowed value. Maximum: ${maximumValue}, Actual: ${actualValue}.`;
9
+ const context = {
10
+ propertyName,
11
+ maximumValue,
12
+ actualValue,
13
+ difference: actualValue - maximumValue,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Ensure '${propertyName}' is at most ${maximumValue}`,
18
+ `The current value ${actualValue} is ${actualValue - maximumValue} above the maximum`,
19
+ 'Reduce the value to meet the maximum requirement',
20
+ 'Check validation rules for this field',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.MAXIMUM_VALUE_VIOLATION, technicalMessage, context, suggestions);
23
+ this.name = 'MaximumValueViolationError';
24
+ }
25
+ static create(propertyName, maximumValue, actualValue) {
26
+ return new MaximumValueViolationError(propertyName, maximumValue, actualValue);
27
+ }
28
+ logError() {
29
+ return `${this.name}: ${this.technicalMessage}`;
30
+ }
31
+ }
32
+ exports.MaximumValueViolationError = MaximumValueViolationError;
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MethodNotImplementedError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class MethodNotImplementedError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class MethodNotImplementedError extends CodedRootError_1.CodedRootError {
6
7
  constructor(methodName) {
7
- const message = `The method '${methodName}' must be implemented in the derived class.`;
8
- super(message);
8
+ const technicalMessage = `The method '${methodName}' must be implemented in the derived class. This abstract method is required by the base class contract.`;
9
+ const context = {
10
+ methodName,
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ `Implement the '${methodName}' method in your derived class`,
15
+ 'Check the base class or interface for the method signature',
16
+ 'Ensure the method implementation matches the expected contract',
17
+ 'Abstract methods must be implemented in all concrete subclasses',
18
+ 'Review the class hierarchy and inheritance chain',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.METHOD_NOT_IMPLEMENTED, technicalMessage, context, suggestions);
9
21
  this.name = 'MethodNotImplementedError';
10
22
  }
11
23
  static create(methodName) {
12
24
  return new MethodNotImplementedError(methodName);
13
25
  }
14
26
  logError() {
15
- return `${this.name}: ${this.message}`;
27
+ return `${this.name}: ${this.technicalMessage}`;
16
28
  }
17
29
  }
18
30
  exports.MethodNotImplementedError = MethodNotImplementedError;
@@ -1,18 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MinimumValueViolationError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class MinimumValueViolationError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class MinimumValueViolationError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName, minimumValue, actualValue) {
7
- const message = `Value constraint violation: '${propertyName}' is below minimum allowed value. Minimum: ${minimumValue}, Actual: ${actualValue}.`;
8
- super(message);
8
+ const technicalMessage = `Value constraint violation: '${propertyName}' is below minimum allowed value. Minimum: ${minimumValue}, Actual: ${actualValue}.`;
9
+ const context = {
10
+ propertyName,
11
+ minimumValue,
12
+ actualValue,
13
+ difference: minimumValue - actualValue,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Ensure '${propertyName}' is at least ${minimumValue}`,
18
+ `The current value ${actualValue} is ${minimumValue - actualValue} below the minimum`,
19
+ 'Increase the value to meet the minimum requirement',
20
+ 'Check validation rules for this field',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.MINIMUM_VALUE_VIOLATION, technicalMessage, context, suggestions);
9
23
  this.name = 'MinimumValueViolationError';
10
24
  }
11
25
  static create(propertyName, minimumValue, actualValue) {
12
26
  return new MinimumValueViolationError(propertyName, minimumValue, actualValue);
13
27
  }
14
28
  logError() {
15
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
16
30
  }
17
31
  }
18
32
  exports.MinimumValueViolationError = MinimumValueViolationError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MissingEmissionFactorError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class MissingEmissionFactorError extends CodedRootError_1.CodedRootError {
7
+ constructor(activityType, scope) {
8
+ const technicalMessage = scope
9
+ ? `Required emission factor not found for activity type '${activityType}' in scope ${scope}`
10
+ : `Required emission factor not found for activity type '${activityType}'`;
11
+ const context = {
12
+ activityType,
13
+ scope,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Add the missing emission factor to the system',
18
+ 'Verify the activity type is correctly specified',
19
+ 'Check if emission factors are configured for this scope',
20
+ 'Contact your carbon accounting administrator',
21
+ 'Use a different activity type with available emission factors',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.MISSING_EMISSION_FACTOR, technicalMessage, context, suggestions);
24
+ this.name = 'MissingEmissionFactorError';
25
+ }
26
+ static create(activityType, scope) {
27
+ return new MissingEmissionFactorError(activityType, scope);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.MissingEmissionFactorError = MissingEmissionFactorError;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MissingRequiredFieldsError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class MissingRequiredFieldsError extends CodedRootError_1.CodedRootError {
7
+ constructor(missingFields) {
8
+ const technicalMessage = `Required fields are missing: ${missingFields.join(', ')}`;
9
+ const context = {
10
+ missingFields: Array.from(missingFields),
11
+ count: missingFields.length,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Provide values for the following required fields: ${missingFields.join(', ')}`,
16
+ 'Check the form documentation for required field information',
17
+ 'Ensure all mandatory fields are included in your request',
18
+ 'Verify field names match the expected format',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.MISSING_REQUIRED_FIELDS, technicalMessage, context, suggestions);
21
+ this.name = 'MissingRequiredFieldsError';
22
+ }
23
+ static create(missingFields) {
24
+ return new MissingRequiredFieldsError(missingFields);
25
+ }
26
+ logError() {
27
+ return `${this.name}: ${this.technicalMessage}`;
28
+ }
29
+ }
30
+ exports.MissingRequiredFieldsError = MissingRequiredFieldsError;
@@ -1,21 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MoneyOverflowError = void 0;
4
- const RootError_1 = require("./RootError");
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
5
6
  /**
6
7
  * Error para cuando hay un desbordamiento aritmético en operaciones con Money
7
8
  */
8
- class MoneyOverflowError extends RootError_1.RootError {
9
+ class MoneyOverflowError extends CodedRootError_1.CodedRootError {
9
10
  constructor(operation) {
10
- const message = `Arithmetic overflow error: The ${operation} operation resulted in a value outside the acceptable range for Money.`;
11
- super(message);
11
+ const technicalMessage = `Arithmetic overflow error: The ${operation} operation resulted in a value outside the acceptable range for Money.`;
12
+ const context = {
13
+ operation,
14
+ errorType: 'arithmetic_overflow',
15
+ maxSafeInteger: Number.MAX_SAFE_INTEGER,
16
+ minSafeInteger: Number.MIN_SAFE_INTEGER,
17
+ timestamp: new Date().toISOString(),
18
+ };
19
+ const suggestions = [
20
+ `Verify that the ${operation} operation does not exceed JavaScript's safe integer limits`,
21
+ 'Consider using arbitrary precision libraries for large monetary calculations',
22
+ 'Break down large operations into smaller, validated steps',
23
+ 'Implement range checks before performing arithmetic operations on Money values',
24
+ ];
25
+ super(ErrorCode_1.ErrorCode.MONEY_OVERFLOW, technicalMessage, context, suggestions);
12
26
  this.name = 'MoneyOverflowError';
13
27
  }
14
28
  static create(operation) {
15
29
  return new MoneyOverflowError(operation);
16
30
  }
17
31
  logError() {
18
- return `${this.name}: ${this.message}`;
32
+ return `${this.name}: ${this.technicalMessage}`;
19
33
  }
20
34
  }
21
35
  exports.MoneyOverflowError = MoneyOverflowError;
@@ -1,21 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NegativeAmountError = void 0;
4
- const RootError_1 = require("./RootError");
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
5
6
  /**
6
7
  * Error para cuando se intenta crear Money con un monto negativo
7
8
  */
8
- class NegativeAmountError extends RootError_1.RootError {
9
+ class NegativeAmountError extends CodedRootError_1.CodedRootError {
9
10
  constructor(amount) {
10
- const message = `Invalid operation: Cannot create Money with negative amount '${amount}'.`;
11
- super(message);
11
+ const technicalMessage = `Invalid operation: Cannot create Money with negative amount '${amount}'.`;
12
+ const context = {
13
+ amount,
14
+ constraint: 'non_negative',
15
+ minimumAllowed: 0,
16
+ violationType: 'negative_value',
17
+ timestamp: new Date().toISOString(),
18
+ };
19
+ const suggestions = [
20
+ 'Ensure the amount is non-negative (>= 0) before creating a Money value object',
21
+ 'Validate input amounts to prevent negative values from being used',
22
+ 'Check calculations and data sources to identify where negative amounts are being generated',
23
+ 'If you need to represent debts or credits, consider using a separate domain concept with explicit semantics',
24
+ ];
25
+ super(ErrorCode_1.ErrorCode.NEGATIVE_AMOUNT, technicalMessage, context, suggestions);
12
26
  this.name = 'NegativeAmountError';
13
27
  }
14
28
  static create(amount) {
15
29
  return new NegativeAmountError(amount);
16
30
  }
17
31
  logError() {
18
- return `${this.name}: ${this.message}`;
32
+ return `${this.name}: ${this.technicalMessage}`;
19
33
  }
20
34
  }
21
35
  exports.NegativeAmountError = NegativeAmountError;
@@ -1,10 +1,26 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NotIntegerError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class NotIntegerError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class NotIntegerError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName, actualValue) {
7
- super(`Value constraint violation: '${propertyName}' must be an integer. Actual value: ${actualValue}.`);
8
+ const technicalMessage = `Value constraint violation: '${propertyName}' must be an integer. Actual value: ${actualValue}.`;
9
+ const context = {
10
+ propertyName,
11
+ actualValue,
12
+ constraint: 'integer',
13
+ fractionalPart: actualValue - Math.floor(actualValue),
14
+ isDecimal: !Number.isInteger(actualValue),
15
+ timestamp: new Date().toISOString(),
16
+ };
17
+ const suggestions = [
18
+ `Ensure that '${propertyName}' contains only integer values (no decimal places)`,
19
+ 'Round or truncate decimal values before creating the value object',
20
+ 'Validate input data to ensure integers are provided where required',
21
+ 'Check calculations that produce this value to ensure they result in whole numbers',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.NOT_INTEGER, technicalMessage, context, suggestions);
8
24
  this.propertyName = propertyName;
9
25
  this.actualValue = actualValue;
10
26
  this.name = 'NotIntegerError';
@@ -19,7 +35,7 @@ class NotIntegerError extends RootError_1.RootError {
19
35
  return this.actualValue;
20
36
  }
21
37
  logError() {
22
- return `${this.name}: ${this.message}`;
38
+ return `${this.name}: ${this.technicalMessage}`;
23
39
  }
24
40
  }
25
41
  exports.NotIntegerError = NotIntegerError;
@@ -1,17 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PasswordPolicyViolationError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class PasswordPolicyViolationError extends RootError_1.RootError {
6
- constructor(message = "The password does not comply with the domain's security policies") {
7
- super(message);
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class PasswordPolicyViolationError extends CodedRootError_1.CodedRootError {
7
+ constructor(violationDetails) {
8
+ const technicalMessage = violationDetails
9
+ ? `Password policy violation: ${violationDetails}`
10
+ : "The password does not comply with the domain's security policies";
11
+ const context = {
12
+ violationDetails,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ 'Ensure password has at least 8 characters',
17
+ 'Include at least one uppercase letter, one lowercase letter, and one number',
18
+ 'Add at least one special character (!@#$%^&*)',
19
+ 'Avoid using common words or easily guessable patterns',
20
+ 'Do not reuse previous passwords',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.PASSWORD_POLICY_VIOLATION, technicalMessage, context, suggestions);
8
23
  this.name = 'PasswordPolicyViolationError';
9
24
  }
10
- static create(message) {
11
- return new PasswordPolicyViolationError(message);
25
+ static create(violationDetails) {
26
+ return new PasswordPolicyViolationError(violationDetails);
12
27
  }
13
28
  logError() {
14
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
15
30
  }
16
31
  }
17
32
  exports.PasswordPolicyViolationError = PasswordPolicyViolationError;
@@ -1,15 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SecurityContextReconstructionError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class SecurityContextReconstructionError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class SecurityContextReconstructionError extends CodedRootError_1.CodedRootError {
6
7
  constructor(primitives) {
7
- const message = 'SecurityContext.fromPrimitives() is not supported. '
8
+ const technicalMessage = 'SecurityContext.fromPrimitives() is not supported. '
8
9
  + 'User is an abstract class and cannot be reconstructed without knowing the specific User type '
9
10
  + '(CarbonHost, CarbonManager, CarbonCoordinator, CarbonClient). '
10
11
  + 'Use SecurityContext.create() or SecurityContext.fromUser() instead. '
11
12
  + 'User entities must be constructed with their specific factory methods.';
12
- super(message);
13
+ const debugInfo = {
14
+ userType: primitives.user?.userType || 'unknown',
15
+ userId: primitives.user?.id || 'unknown',
16
+ userEmail: primitives.user?.email?.value || 'unknown',
17
+ hasResource: primitives.resource !== null && primitives.resource !== undefined,
18
+ hasEnvironment: primitives.environment !== null && primitives.environment !== undefined,
19
+ environmentTimestamp: primitives.environment?.timestamp || 'unknown',
20
+ environmentIpAddress: primitives.environment?.ipAddress || 'unknown',
21
+ timestamp: new Date().toISOString(),
22
+ };
23
+ const suggestions = [
24
+ 'Use SecurityContext.create() with proper user instance instead',
25
+ 'Use SecurityContext.fromUser() if you have a user entity',
26
+ 'Construct the specific user type first (CarbonHost, CarbonManager, etc.)',
27
+ 'Avoid using fromPrimitives() for SecurityContext - use factory methods instead',
28
+ ];
29
+ super(ErrorCode_1.ErrorCode.SECURITY_CONTEXT_RECONSTRUCTION_ERROR, technicalMessage, debugInfo, suggestions);
13
30
  this.name = 'SecurityContextReconstructionError';
14
31
  this.primitives = primitives;
15
32
  }
@@ -17,17 +34,8 @@ class SecurityContextReconstructionError extends RootError_1.RootError {
17
34
  return new SecurityContextReconstructionError(primitives);
18
35
  }
19
36
  logError() {
20
- const debugInfo = {
21
- userType: this.primitives.user?.userType || 'unknown',
22
- userId: this.primitives.user?.id || 'unknown',
23
- userEmail: this.primitives.user?.email?.value || 'unknown',
24
- hasResource: this.primitives.resource !== null && this.primitives.resource !== undefined,
25
- hasEnvironment: this.primitives.environment !== null && this.primitives.environment !== undefined,
26
- environmentTimestamp: this.primitives.environment?.timestamp || 'unknown',
27
- environmentIpAddress: this.primitives.environment?.ipAddress || 'unknown',
28
- };
29
- return `${this.name}: ${this.message}\n`
30
- + `Debug Info: ${JSON.stringify(debugInfo, null, 2)}\n`
37
+ return `${this.name}: ${this.technicalMessage}\n`
38
+ + `Debug Info: ${JSON.stringify(this.context, null, 2)}\n`
31
39
  + `Full primitives: ${JSON.stringify(this.primitives, null, 2)}`;
32
40
  }
33
41
  getReceivedPrimitives() {