@carbonbox/domain 0.29.2 → 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 (472) 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/CreateMethodNotImplementedError.js +18 -5
  69. package/build/carbonbox/shared/domain/exceptions/DatabaseConnectionError.js +33 -0
  70. package/build/carbonbox/shared/domain/exceptions/DateGreaterThanError.js +19 -5
  71. package/build/carbonbox/shared/domain/exceptions/DivisionByZeroError.js +19 -4
  72. package/build/carbonbox/shared/domain/exceptions/DuplicateOrderError.js +33 -0
  73. package/build/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.js +19 -5
  74. package/build/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.js +18 -5
  75. package/build/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.js +18 -5
  76. package/build/carbonbox/shared/domain/exceptions/EmptySegmentNameError.js +18 -5
  77. package/build/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.js +18 -5
  78. package/build/carbonbox/shared/domain/exceptions/EmptyValueError.js +30 -0
  79. package/build/carbonbox/shared/domain/exceptions/ExternalServiceError.js +33 -0
  80. package/build/carbonbox/shared/domain/exceptions/FormNotFoundError.js +29 -0
  81. package/build/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.js +33 -0
  82. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.js +17 -5
  83. package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +20 -6
  84. package/build/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.js +20 -6
  85. package/build/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.js +18 -5
  86. package/build/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.js +17 -5
  87. package/build/carbonbox/shared/domain/exceptions/InvalidCodeError.js +18 -5
  88. package/build/carbonbox/shared/domain/exceptions/InvalidCodeListError.js +21 -5
  89. package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.js +19 -5
  90. package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.js +18 -5
  91. package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.js +20 -5
  92. package/build/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.js +16 -4
  93. package/build/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.js +17 -5
  94. package/build/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.js +20 -5
  95. package/build/carbonbox/shared/domain/exceptions/InvalidDateRangeError.js +17 -5
  96. package/build/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.js +18 -5
  97. package/build/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.js +21 -6
  98. package/build/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.js +31 -0
  99. package/build/carbonbox/shared/domain/exceptions/InvalidFormulaError.js +31 -0
  100. package/build/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.js +18 -5
  101. package/build/carbonbox/shared/domain/exceptions/InvalidGenderError.js +16 -5
  102. package/build/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.js +17 -5
  103. package/build/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.js +18 -5
  104. package/build/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.js +19 -4
  105. package/build/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.js +19 -5
  106. package/build/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.js +19 -5
  107. package/build/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.js +33 -0
  108. package/build/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.js +18 -5
  109. package/build/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.js +18 -5
  110. package/build/carbonbox/shared/domain/exceptions/InvalidRoleError.js +31 -0
  111. package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.js +18 -6
  112. package/build/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.js +17 -5
  113. package/build/carbonbox/shared/domain/exceptions/InvalidStringListError.js +20 -5
  114. package/build/carbonbox/shared/domain/exceptions/InvalidSubmissionError.js +30 -0
  115. package/build/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.js +18 -5
  116. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdError.js +33 -0
  117. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.js +20 -5
  118. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.js +22 -5
  119. package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.js +17 -5
  120. package/build/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.js +17 -5
  121. package/build/carbonbox/shared/domain/exceptions/InvalidUrlListError.js +21 -5
  122. package/build/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.js +17 -5
  123. package/build/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.js +18 -6
  124. package/build/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.js +18 -5
  125. package/build/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.js +20 -6
  126. package/build/carbonbox/shared/domain/exceptions/InvalidUserTypeError.js +17 -5
  127. package/build/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.js +18 -6
  128. package/build/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.js +17 -5
  129. package/build/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.js +33 -0
  130. package/build/carbonbox/shared/domain/exceptions/JobNotFoundError.js +30 -0
  131. package/build/carbonbox/shared/domain/exceptions/ManagerRequiredError.js +30 -0
  132. package/build/carbonbox/shared/domain/exceptions/MaximumValueViolationError.js +32 -0
  133. package/build/carbonbox/shared/domain/exceptions/MethodNotImplementedError.js +17 -5
  134. package/build/carbonbox/shared/domain/exceptions/MinimumValueViolationError.js +19 -5
  135. package/build/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.js +33 -0
  136. package/build/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.js +30 -0
  137. package/build/carbonbox/shared/domain/exceptions/MoneyOverflowError.js +19 -5
  138. package/build/carbonbox/shared/domain/exceptions/NegativeAmountError.js +19 -5
  139. package/build/carbonbox/shared/domain/exceptions/NotIntegerError.js +20 -4
  140. package/build/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.js +22 -7
  141. package/build/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.js +23 -15
  142. package/build/carbonbox/shared/domain/exceptions/StakeholderExistsError.js +33 -0
  143. package/build/carbonbox/shared/domain/exceptions/SubmissionLockedError.js +33 -0
  144. package/build/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.js +18 -5
  145. package/build/carbonbox/shared/domain/exceptions/TokenInvalidError.js +32 -0
  146. package/build/carbonbox/shared/domain/exceptions/UndefinedValueError.js +17 -5
  147. package/build/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.js +18 -6
  148. package/build/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.js +16 -5
  149. package/build/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.js +16 -5
  150. package/build/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.js +20 -6
  151. package/build/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.js +20 -6
  152. package/build/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.js +21 -6
  153. package/build/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.js +21 -6
  154. package/build/carbonbox/shared/either/index.js +5 -1
  155. package/build/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.js +18 -5
  156. package/build/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.js +19 -5
  157. package/build/main/index.js +77 -13
  158. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.d.ts +2 -2
  159. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.d.ts.map +1 -1
  160. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.d.ts +2 -2
  161. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.d.ts.map +1 -1
  162. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.d.ts +2 -2
  163. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.d.ts.map +1 -1
  164. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.d.ts +2 -2
  165. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.d.ts.map +1 -1
  166. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.d.ts +2 -2
  167. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.d.ts.map +1 -1
  168. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.d.ts +2 -2
  169. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.d.ts.map +1 -1
  170. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.d.ts +2 -2
  171. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.d.ts.map +1 -1
  172. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.d.ts +2 -2
  173. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.d.ts.map +1 -1
  174. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.d.ts +2 -2
  175. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.d.ts.map +1 -1
  176. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.d.ts +2 -2
  177. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.d.ts.map +1 -1
  178. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.d.ts +2 -2
  179. package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.d.ts.map +1 -1
  180. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.d.ts +2 -2
  181. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.d.ts.map +1 -1
  182. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.d.ts +2 -2
  183. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.d.ts.map +1 -1
  184. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.d.ts +2 -2
  185. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.d.ts.map +1 -1
  186. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.d.ts +2 -2
  187. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.d.ts.map +1 -1
  188. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.d.ts +2 -2
  189. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.d.ts.map +1 -1
  190. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.d.ts +2 -2
  191. package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.d.ts.map +1 -1
  192. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.d.ts +7 -0
  193. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.d.ts.map +1 -0
  194. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.d.ts +7 -0
  195. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.d.ts.map +1 -0
  196. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.d.ts +2 -2
  197. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.d.ts.map +1 -1
  198. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.d.ts +2 -2
  199. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.d.ts.map +1 -1
  200. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.d.ts +2 -2
  201. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.d.ts.map +1 -1
  202. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.d.ts +2 -2
  203. package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.d.ts.map +1 -1
  204. package/build/types/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.d.ts +2 -2
  205. package/build/types/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.d.ts.map +1 -1
  206. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.d.ts +2 -2
  207. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.d.ts.map +1 -1
  208. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.d.ts +2 -2
  209. package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.d.ts.map +1 -1
  210. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.d.ts +2 -2
  211. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.d.ts.map +1 -1
  212. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.d.ts +2 -2
  213. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.d.ts.map +1 -1
  214. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.d.ts +2 -2
  215. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.d.ts.map +1 -1
  216. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.d.ts +2 -2
  217. package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.d.ts.map +1 -1
  218. package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.d.ts +2 -2
  219. package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.d.ts.map +1 -1
  220. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.d.ts +2 -2
  221. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.d.ts.map +1 -1
  222. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.d.ts +2 -2
  223. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.d.ts.map +1 -1
  224. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.d.ts +2 -2
  225. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.d.ts.map +1 -1
  226. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.d.ts +2 -2
  227. package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.d.ts.map +1 -1
  228. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.d.ts +2 -2
  229. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.d.ts.map +1 -1
  230. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.d.ts +2 -2
  231. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.d.ts.map +1 -1
  232. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.d.ts +2 -2
  233. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.d.ts.map +1 -1
  234. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.d.ts +2 -2
  235. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.d.ts.map +1 -1
  236. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.d.ts +2 -2
  237. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.d.ts.map +1 -1
  238. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.d.ts +2 -2
  239. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.d.ts.map +1 -1
  240. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.d.ts +2 -2
  241. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.d.ts.map +1 -1
  242. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.d.ts +2 -2
  243. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.d.ts.map +1 -1
  244. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.d.ts +2 -2
  245. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.d.ts.map +1 -1
  246. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.d.ts +2 -2
  247. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.d.ts.map +1 -1
  248. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.d.ts +2 -2
  249. package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.d.ts.map +1 -1
  250. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.d.ts +2 -2
  251. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.d.ts.map +1 -1
  252. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.d.ts +2 -2
  253. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.d.ts.map +1 -1
  254. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts +2 -2
  255. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts.map +1 -1
  256. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts +2 -2
  257. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts.map +1 -1
  258. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts +2 -2
  259. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts.map +1 -1
  260. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.d.ts +2 -2
  261. package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.d.ts.map +1 -1
  262. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.d.ts +2 -2
  263. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.d.ts.map +1 -1
  264. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.d.ts +2 -2
  265. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.d.ts.map +1 -1
  266. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.d.ts +2 -2
  267. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.d.ts.map +1 -1
  268. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.d.ts +2 -2
  269. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.d.ts.map +1 -1
  270. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.d.ts +2 -2
  271. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.d.ts.map +1 -1
  272. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.d.ts +2 -2
  273. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.d.ts.map +1 -1
  274. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.d.ts +2 -2
  275. package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.d.ts.map +1 -1
  276. package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts +2 -2
  277. package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts.map +1 -1
  278. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts +2 -2
  279. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts.map +1 -1
  280. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts +2 -2
  281. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts.map +1 -1
  282. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts +2 -2
  283. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts.map +1 -1
  284. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts +2 -2
  285. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts.map +1 -1
  286. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts +2 -2
  287. package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts.map +1 -1
  288. package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts +127 -1
  289. package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts.map +1 -1
  290. package/build/types/carbonbox/shared/domain/exceptions/CalculationFailedError.d.ts +7 -0
  291. package/build/types/carbonbox/shared/domain/exceptions/CalculationFailedError.d.ts.map +1 -0
  292. package/build/types/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.d.ts +2 -2
  293. package/build/types/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.d.ts.map +1 -1
  294. package/build/types/carbonbox/shared/domain/exceptions/DatabaseConnectionError.d.ts +7 -0
  295. package/build/types/carbonbox/shared/domain/exceptions/DatabaseConnectionError.d.ts.map +1 -0
  296. package/build/types/carbonbox/shared/domain/exceptions/DateGreaterThanError.d.ts +2 -2
  297. package/build/types/carbonbox/shared/domain/exceptions/DateGreaterThanError.d.ts.map +1 -1
  298. package/build/types/carbonbox/shared/domain/exceptions/DivisionByZeroError.d.ts +2 -2
  299. package/build/types/carbonbox/shared/domain/exceptions/DivisionByZeroError.d.ts.map +1 -1
  300. package/build/types/carbonbox/shared/domain/exceptions/DuplicateOrderError.d.ts +7 -0
  301. package/build/types/carbonbox/shared/domain/exceptions/DuplicateOrderError.d.ts.map +1 -0
  302. package/build/types/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.d.ts +2 -2
  303. package/build/types/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.d.ts.map +1 -1
  304. package/build/types/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.d.ts +2 -2
  305. package/build/types/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.d.ts.map +1 -1
  306. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.d.ts +2 -2
  307. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.d.ts.map +1 -1
  308. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentNameError.d.ts +2 -2
  309. package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentNameError.d.ts.map +1 -1
  310. package/build/types/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.d.ts +2 -2
  311. package/build/types/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.d.ts.map +1 -1
  312. package/build/types/carbonbox/shared/domain/exceptions/EmptyValueError.d.ts +7 -0
  313. package/build/types/carbonbox/shared/domain/exceptions/EmptyValueError.d.ts.map +1 -0
  314. package/build/types/carbonbox/shared/domain/exceptions/ExternalServiceError.d.ts +7 -0
  315. package/build/types/carbonbox/shared/domain/exceptions/ExternalServiceError.d.ts.map +1 -0
  316. package/build/types/carbonbox/shared/domain/exceptions/FormNotFoundError.d.ts +7 -0
  317. package/build/types/carbonbox/shared/domain/exceptions/FormNotFoundError.d.ts.map +1 -0
  318. package/build/types/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.d.ts +7 -0
  319. package/build/types/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.d.ts.map +1 -0
  320. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.d.ts +2 -2
  321. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.d.ts.map +1 -1
  322. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts +2 -3
  323. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
  324. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts +2 -3
  325. package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts.map +1 -1
  326. package/build/types/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.d.ts +2 -2
  327. package/build/types/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.d.ts.map +1 -1
  328. package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.d.ts +2 -2
  329. package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.d.ts.map +1 -1
  330. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeError.d.ts +2 -2
  331. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeError.d.ts.map +1 -1
  332. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeListError.d.ts +2 -2
  333. package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeListError.d.ts.map +1 -1
  334. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.d.ts +2 -2
  335. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.d.ts.map +1 -1
  336. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.d.ts +2 -2
  337. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.d.ts.map +1 -1
  338. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.d.ts +2 -2
  339. package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.d.ts.map +1 -1
  340. package/build/types/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.d.ts +2 -2
  341. package/build/types/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.d.ts.map +1 -1
  342. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.d.ts +2 -2
  343. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.d.ts.map +1 -1
  344. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.d.ts +2 -2
  345. package/build/types/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.d.ts.map +1 -1
  346. package/build/types/carbonbox/shared/domain/exceptions/InvalidDateRangeError.d.ts +2 -2
  347. package/build/types/carbonbox/shared/domain/exceptions/InvalidDateRangeError.d.ts.map +1 -1
  348. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.d.ts +2 -2
  349. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.d.ts.map +1 -1
  350. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts +2 -2
  351. package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts.map +1 -1
  352. package/build/types/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.d.ts +7 -0
  353. package/build/types/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.d.ts.map +1 -0
  354. package/build/types/carbonbox/shared/domain/exceptions/InvalidFormulaError.d.ts +7 -0
  355. package/build/types/carbonbox/shared/domain/exceptions/InvalidFormulaError.d.ts.map +1 -0
  356. package/build/types/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.d.ts +2 -2
  357. package/build/types/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.d.ts.map +1 -1
  358. package/build/types/carbonbox/shared/domain/exceptions/InvalidGenderError.d.ts +2 -2
  359. package/build/types/carbonbox/shared/domain/exceptions/InvalidGenderError.d.ts.map +1 -1
  360. package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts +2 -2
  361. package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts.map +1 -1
  362. package/build/types/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.d.ts +2 -2
  363. package/build/types/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.d.ts.map +1 -1
  364. package/build/types/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.d.ts +2 -2
  365. package/build/types/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.d.ts.map +1 -1
  366. package/build/types/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.d.ts +2 -2
  367. package/build/types/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.d.ts.map +1 -1
  368. package/build/types/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.d.ts +2 -2
  369. package/build/types/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.d.ts.map +1 -1
  370. package/build/types/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.d.ts +7 -0
  371. package/build/types/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.d.ts.map +1 -0
  372. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.d.ts +2 -2
  373. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.d.ts.map +1 -1
  374. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.d.ts +2 -2
  375. package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.d.ts.map +1 -1
  376. package/build/types/carbonbox/shared/domain/exceptions/InvalidRoleError.d.ts +7 -0
  377. package/build/types/carbonbox/shared/domain/exceptions/InvalidRoleError.d.ts.map +1 -0
  378. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts +2 -3
  379. package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts.map +1 -1
  380. package/build/types/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.d.ts +2 -2
  381. package/build/types/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.d.ts.map +1 -1
  382. package/build/types/carbonbox/shared/domain/exceptions/InvalidStringListError.d.ts +2 -2
  383. package/build/types/carbonbox/shared/domain/exceptions/InvalidStringListError.d.ts.map +1 -1
  384. package/build/types/carbonbox/shared/domain/exceptions/InvalidSubmissionError.d.ts +7 -0
  385. package/build/types/carbonbox/shared/domain/exceptions/InvalidSubmissionError.d.ts.map +1 -0
  386. package/build/types/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.d.ts +2 -2
  387. package/build/types/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.d.ts.map +1 -1
  388. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdError.d.ts +7 -0
  389. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdError.d.ts.map +1 -0
  390. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.d.ts +2 -2
  391. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.d.ts.map +1 -1
  392. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.d.ts +2 -2
  393. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.d.ts.map +1 -1
  394. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.d.ts +2 -2
  395. package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.d.ts.map +1 -1
  396. package/build/types/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.d.ts +2 -2
  397. package/build/types/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.d.ts.map +1 -1
  398. package/build/types/carbonbox/shared/domain/exceptions/InvalidUrlListError.d.ts +2 -2
  399. package/build/types/carbonbox/shared/domain/exceptions/InvalidUrlListError.d.ts.map +1 -1
  400. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts +2 -2
  401. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts.map +1 -1
  402. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts +2 -3
  403. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts.map +1 -1
  404. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.d.ts +2 -2
  405. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.d.ts.map +1 -1
  406. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts +2 -3
  407. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts.map +1 -1
  408. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts +2 -2
  409. package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts.map +1 -1
  410. package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts +2 -3
  411. package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts.map +1 -1
  412. package/build/types/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.d.ts +2 -2
  413. package/build/types/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.d.ts.map +1 -1
  414. package/build/types/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.d.ts +7 -0
  415. package/build/types/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.d.ts.map +1 -0
  416. package/build/types/carbonbox/shared/domain/exceptions/JobNotFoundError.d.ts +7 -0
  417. package/build/types/carbonbox/shared/domain/exceptions/JobNotFoundError.d.ts.map +1 -0
  418. package/build/types/carbonbox/shared/domain/exceptions/ManagerRequiredError.d.ts +7 -0
  419. package/build/types/carbonbox/shared/domain/exceptions/ManagerRequiredError.d.ts.map +1 -0
  420. package/build/types/carbonbox/shared/domain/exceptions/MaximumValueViolationError.d.ts +7 -0
  421. package/build/types/carbonbox/shared/domain/exceptions/MaximumValueViolationError.d.ts.map +1 -0
  422. package/build/types/carbonbox/shared/domain/exceptions/MethodNotImplementedError.d.ts +2 -2
  423. package/build/types/carbonbox/shared/domain/exceptions/MethodNotImplementedError.d.ts.map +1 -1
  424. package/build/types/carbonbox/shared/domain/exceptions/MinimumValueViolationError.d.ts +2 -2
  425. package/build/types/carbonbox/shared/domain/exceptions/MinimumValueViolationError.d.ts.map +1 -1
  426. package/build/types/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.d.ts +7 -0
  427. package/build/types/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.d.ts.map +1 -0
  428. package/build/types/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.d.ts +7 -0
  429. package/build/types/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.d.ts.map +1 -0
  430. package/build/types/carbonbox/shared/domain/exceptions/MoneyOverflowError.d.ts +2 -2
  431. package/build/types/carbonbox/shared/domain/exceptions/MoneyOverflowError.d.ts.map +1 -1
  432. package/build/types/carbonbox/shared/domain/exceptions/NegativeAmountError.d.ts +2 -2
  433. package/build/types/carbonbox/shared/domain/exceptions/NegativeAmountError.d.ts.map +1 -1
  434. package/build/types/carbonbox/shared/domain/exceptions/NotIntegerError.d.ts +2 -2
  435. package/build/types/carbonbox/shared/domain/exceptions/NotIntegerError.d.ts.map +1 -1
  436. package/build/types/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.d.ts +3 -3
  437. package/build/types/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.d.ts.map +1 -1
  438. package/build/types/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.d.ts +2 -2
  439. package/build/types/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.d.ts.map +1 -1
  440. package/build/types/carbonbox/shared/domain/exceptions/StakeholderExistsError.d.ts +7 -0
  441. package/build/types/carbonbox/shared/domain/exceptions/StakeholderExistsError.d.ts.map +1 -0
  442. package/build/types/carbonbox/shared/domain/exceptions/SubmissionLockedError.d.ts +7 -0
  443. package/build/types/carbonbox/shared/domain/exceptions/SubmissionLockedError.d.ts.map +1 -0
  444. package/build/types/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.d.ts +2 -2
  445. package/build/types/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.d.ts.map +1 -1
  446. package/build/types/carbonbox/shared/domain/exceptions/TokenInvalidError.d.ts +7 -0
  447. package/build/types/carbonbox/shared/domain/exceptions/TokenInvalidError.d.ts.map +1 -0
  448. package/build/types/carbonbox/shared/domain/exceptions/UndefinedValueError.d.ts +2 -2
  449. package/build/types/carbonbox/shared/domain/exceptions/UndefinedValueError.d.ts.map +1 -1
  450. package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts +2 -3
  451. package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts.map +1 -1
  452. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.d.ts +2 -2
  453. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.d.ts.map +1 -1
  454. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.d.ts +2 -2
  455. package/build/types/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.d.ts.map +1 -1
  456. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.d.ts +2 -2
  457. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.d.ts.map +1 -1
  458. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.d.ts +2 -2
  459. package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.d.ts.map +1 -1
  460. package/build/types/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.d.ts +3 -3
  461. package/build/types/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.d.ts.map +1 -1
  462. package/build/types/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.d.ts +3 -3
  463. package/build/types/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.d.ts.map +1 -1
  464. package/build/types/carbonbox/shared/either/index.d.ts +2 -0
  465. package/build/types/carbonbox/shared/either/index.d.ts.map +1 -1
  466. package/build/types/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.d.ts +2 -2
  467. package/build/types/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.d.ts.map +1 -1
  468. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts +2 -2
  469. package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts.map +1 -1
  470. package/build/types/main/index.d.ts +29 -0
  471. package/build/types/main/index.d.ts.map +1 -1
  472. package/package.json +1 -1
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidReportSectionTitleError = void 0;
4
- const RootError_1 = require("../../../../shared/domain/exceptions/RootError");
5
- class InvalidReportSectionTitleError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
6
+ class InvalidReportSectionTitleError extends CodedRootError_1.CodedRootError {
6
7
  constructor(receivedValue) {
7
- const message = `Invalid report section title '${receivedValue}': cannot be empty.`;
8
- super(message);
8
+ const technicalMessage = `Invalid report section title: '${receivedValue}'. Report section titles cannot be empty and must contain meaningful text to identify the section.`;
9
+ const context = {
10
+ receivedValue,
11
+ receivedLength: receivedValue.length,
12
+ isEmpty: receivedValue.length === 0,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ 'Provide a non-empty string value for the report section title',
17
+ 'Ensure the section title contains descriptive text that identifies the section purpose',
18
+ 'Check the report template configuration to verify section titles are properly defined',
19
+ 'Review the section title assignment logic in the report construction process',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.INVALID_REPORT_SECTION_TITLE, technicalMessage, context, suggestions);
9
22
  this.name = 'InvalidReportSectionTitleError';
10
23
  }
11
24
  static create(receivedValue) {
12
25
  return new InvalidReportSectionTitleError(receivedValue);
13
26
  }
14
27
  logError() {
15
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
16
29
  }
17
30
  }
18
31
  exports.InvalidReportSectionTitleError = InvalidReportSectionTitleError;
@@ -1,18 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidReportTemplateIdError = void 0;
4
- const RootError_1 = require("../../../../shared/domain/exceptions/RootError");
5
- class InvalidReportTemplateIdError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
5
+ const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
6
+ class InvalidReportTemplateIdError extends CodedRootError_1.CodedRootError {
6
7
  constructor(receivedValue) {
7
- const message = `Invalid report template ID '${receivedValue}': must start with 'RPT-TPL-' and be 30 characters long.`;
8
- super(message);
8
+ const technicalMessage = `Invalid report template ID format: '${receivedValue}'. Report template IDs must start with 'RPT-TPL-' prefix and have exactly 30 characters total length.`;
9
+ const context = {
10
+ receivedValue,
11
+ receivedLength: receivedValue.length,
12
+ requiredPrefix: 'RPT-TPL-',
13
+ requiredLength: 30,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Ensure the report template ID starts with 'RPT-TPL-' prefix`,
18
+ 'Verify that the report template ID has exactly 30 characters in total',
19
+ 'Use the proper ID generation utility to create valid report template identifiers',
20
+ 'Check the report template creation logic for ID format validation',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.INVALID_REPORT_TEMPLATE_ID, technicalMessage, context, suggestions);
9
23
  this.name = 'InvalidReportTemplateIdError';
10
24
  }
11
25
  static create(receivedValue) {
12
26
  return new InvalidReportTemplateIdError(receivedValue);
13
27
  }
14
28
  logError() {
15
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
16
30
  }
17
31
  }
18
32
  exports.InvalidReportTemplateIdError = InvalidReportTemplateIdError;
@@ -10,10 +10,16 @@ exports.ErrorCode = void 0;
10
10
  * - PMS: Purchase Management System
11
11
  * - STK: Stakeholders
12
12
  * - CFC: Carbon Footprint Configurations
13
+ * - CRS: Company Resources
13
14
  * - ADC: Activity Data Collection
14
15
  * - EMC: Emission Calculations
16
+ * - ECR: Emission Calculation Results
17
+ * - RPT: Reporting
15
18
  * - SHR: Shared/Common
16
19
  *
20
+ * Total Codes: 173
21
+ * Total Exceptions Migrated: 171 (100%)
22
+ *
17
23
  * @since 1.0.0
18
24
  */
19
25
  var ErrorCode;
@@ -34,6 +40,40 @@ var ErrorCode;
34
40
  ErrorCode["DUPLICATE_ORDER"] = "CBX-PMS-005";
35
41
  ErrorCode["INVALID_CURRENCY"] = "CBX-PMS-006";
36
42
  ErrorCode["SERVICE_CATALOG_NOT_FOUND"] = "CBX-PMS-007";
43
+ // Purchase Contracts Errors (CBX-PMS-008 to CBX-PMS-011)
44
+ ErrorCode["INVALID_CONTRACT_TYPE"] = "CBX-PMS-008";
45
+ ErrorCode["INVALID_CONTRACT_VALUE_FACTOR"] = "CBX-PMS-009";
46
+ ErrorCode["INVALID_PAYMENT_SCHEDULE"] = "CBX-PMS-010";
47
+ ErrorCode["INVALID_TAX_RATE"] = "CBX-PMS-011";
48
+ // Purchase Orders Errors (CBX-PMS-012 to CBX-PMS-019)
49
+ ErrorCode["INVALID_DISCOUNT_AMOUNT_FACTOR"] = "CBX-PMS-012";
50
+ ErrorCode["INVALID_FIXED_DISCOUNT_AMOUNT"] = "CBX-PMS-013";
51
+ ErrorCode["INVALID_MAXIMUM_SUBTOTAL"] = "CBX-PMS-014";
52
+ ErrorCode["INVALID_PAYMENT_METHOD"] = "CBX-PMS-015";
53
+ ErrorCode["INVALID_PAYMENT_STATUS"] = "CBX-PMS-016";
54
+ ErrorCode["INVALID_PERCENTAGE_RANGE"] = "CBX-PMS-017";
55
+ ErrorCode["INVALID_PURCHASE_ORDER_STATUS"] = "CBX-PMS-018";
56
+ ErrorCode["INVALID_SUBTOTAL_AMOUNT"] = "CBX-PMS-019";
57
+ // Service Catalog Errors (CBX-PMS-020 to CBX-PMS-024)
58
+ ErrorCode["INVALID_EXPERT_DEDICATION_LEVEL"] = "CBX-PMS-020";
59
+ ErrorCode["INVALID_REPORT_TYPE"] = "CBX-PMS-021";
60
+ ErrorCode["INVALID_SERVICE_CATALOG_CATEGORY"] = "CBX-PMS-022";
61
+ ErrorCode["INVALID_SERVICE_CATALOG_STATUS"] = "CBX-PMS-023";
62
+ ErrorCode["INVALID_SERVICE_CATALOG_TYPE"] = "CBX-PMS-024";
63
+ // Service Pricing Errors (CBX-PMS-025 to CBX-PMS-031)
64
+ ErrorCode["INVALID_DISCOUNT_PERCENTAGE"] = "CBX-PMS-025";
65
+ ErrorCode["INVALID_MARKUP_PERCENTAGE"] = "CBX-PMS-026";
66
+ ErrorCode["INVALID_PRICE_PER_UNIT"] = "CBX-PMS-027";
67
+ ErrorCode["INVALID_PRICING_MODEL"] = "CBX-PMS-028";
68
+ ErrorCode["INVALID_PRICING_STATUS"] = "CBX-PMS-029";
69
+ ErrorCode["INVALID_TAX_PERCENTAGE"] = "CBX-PMS-030";
70
+ ErrorCode["INVALID_UNITS"] = "CBX-PMS-031";
71
+ // Service Catalog - User Role (CBX-PMS-032)
72
+ ErrorCode["INVALID_USER_ROLE"] = "CBX-PMS-032";
73
+ // Purchase Orders - Amount Factors (CBX-PMS-033 to CBX-PMS-035)
74
+ ErrorCode["INVALID_SUBTOTAL_AMOUNT_FACTOR"] = "CBX-PMS-033";
75
+ ErrorCode["INVALID_TAX_AMOUNT_FACTOR"] = "CBX-PMS-034";
76
+ ErrorCode["INVALID_TOTAL_AMOUNT_FACTOR"] = "CBX-PMS-035";
37
77
  // Stakeholder Errors (CBX-STK-XXX)
38
78
  ErrorCode["STAKEHOLDER_EXISTS"] = "CBX-STK-001";
39
79
  ErrorCode["INVALID_ROLE"] = "CBX-STK-002";
@@ -41,24 +81,65 @@ var ErrorCode;
41
81
  ErrorCode["INSUFFICIENT_PERMISSIONS"] = "CBX-STK-004";
42
82
  ErrorCode["INVALID_BUSINESS_STATUS"] = "CBX-STK-005";
43
83
  ErrorCode["MANAGER_REQUIRED"] = "CBX-STK-006";
84
+ ErrorCode["INVALID_CARBON_CLIENT_ACCOUNT_TYPE"] = "CBX-STK-007";
85
+ ErrorCode["INVALID_CARBON_COORDINATOR_AVAILABILITY_STATUS"] = "CBX-STK-008";
44
86
  // Carbon Footprint Configuration Errors (CBX-CFC-XXX)
45
87
  ErrorCode["CONFIGURATION_NOT_FOUND"] = "CBX-CFC-001";
46
88
  ErrorCode["INVALID_REPORTING_STANDARD"] = "CBX-CFC-002";
47
89
  ErrorCode["INVALID_COLLECTION_PERIOD"] = "CBX-CFC-003";
48
90
  ErrorCode["CONFIGURATION_LOCKED"] = "CBX-CFC-004";
49
91
  ErrorCode["DUPLICATE_CONFIGURATION"] = "CBX-CFC-005";
92
+ ErrorCode["INVALID_CARBON_FOOTPRINT_TYPE"] = "CBX-CFC-006";
93
+ ErrorCode["INVALID_CONFIGURATION_STATUS"] = "CBX-CFC-007";
94
+ // Company Resources Errors (CBX-CRS-XXX)
95
+ ErrorCode["INVALID_OPERATIONAL_SCOPE"] = "CBX-CRS-001";
50
96
  // Activity Data Collection Errors (CBX-ADC-XXX)
51
97
  ErrorCode["FORM_NOT_FOUND"] = "CBX-ADC-001";
52
98
  ErrorCode["INVALID_SUBMISSION"] = "CBX-ADC-002";
53
99
  ErrorCode["SUBMISSION_LOCKED"] = "CBX-ADC-003";
54
100
  ErrorCode["MISSING_REQUIRED_FIELDS"] = "CBX-ADC-004";
55
101
  ErrorCode["INVALID_FIELD_TYPE"] = "CBX-ADC-005";
102
+ // Activity Data Submissions Errors (CBX-ADC-006 to CBX-ADC-016)
103
+ ErrorCode["UNKNOWN_REPORTING_STANDARD"] = "CBX-ADC-006";
104
+ ErrorCode["UNKNOWN_FOOTPRINT_TYPE"] = "CBX-ADC-007";
105
+ ErrorCode["INVALID_UNCERTAINTY_SOURCE"] = "CBX-ADC-008";
106
+ ErrorCode["INVALID_SUB_SCOPE"] = "CBX-ADC-009";
107
+ ErrorCode["INVALID_SUBMISSION_STATUS"] = "CBX-ADC-010";
108
+ ErrorCode["INVALID_ADC_REPORTING_STANDARD"] = "CBX-ADC-011";
109
+ ErrorCode["INVALID_ADC_FOOTPRINT_TYPE"] = "CBX-ADC-012";
110
+ ErrorCode["INVALID_EMISSION_SCOPE_TYPE"] = "CBX-ADC-013";
111
+ ErrorCode["INVALID_EMISSION_SCOPE"] = "CBX-ADC-014";
112
+ ErrorCode["INVALID_SUBMISSION_STAKEHOLDER_ROLE"] = "CBX-ADC-015";
113
+ ErrorCode["INVALID_SUBMISSION_COUNTRY"] = "CBX-ADC-016";
114
+ // Conditional Logic Errors (CBX-ADC-017 to CBX-ADC-022)
115
+ ErrorCode["INVALID_CONDITIONAL_ACTION"] = "CBX-ADC-017";
116
+ ErrorCode["INVALID_TRIGGER_VALUE"] = "CBX-ADC-018";
117
+ ErrorCode["TRIGGER_VALUE_COMPARISON_ERROR"] = "CBX-ADC-019";
118
+ ErrorCode["TRIGGER_VALUE_CONVERSION_ERROR"] = "CBX-ADC-020";
119
+ ErrorCode["TRIGGER_VALUE_STRING_OPERATION_ERROR"] = "CBX-ADC-021";
120
+ ErrorCode["UNKNOWN_CONDITIONAL_ACTION_CATEGORY"] = "CBX-ADC-022";
56
121
  // Emission Calculation Errors (CBX-EMC-XXX)
57
122
  ErrorCode["CALCULATION_FAILED"] = "CBX-EMC-001";
58
123
  ErrorCode["MISSING_EMISSION_FACTOR"] = "CBX-EMC-002";
59
124
  ErrorCode["INVALID_FORMULA"] = "CBX-EMC-003";
60
125
  ErrorCode["JOB_NOT_FOUND"] = "CBX-EMC-004";
61
126
  ErrorCode["JOB_ALREADY_RUNNING"] = "CBX-EMC-005";
127
+ // Emission Calculation Formulas Errors (CBX-EMC-006 to CBX-EMC-011)
128
+ ErrorCode["INVALID_CALCULATION_VARIABLE_ACTIVITY_DATA_CONDITIONS_FOR_STRATEGY"] = "CBX-EMC-006";
129
+ ErrorCode["INVALID_CALCULATION_VARIABLE_RESOLUTION_STRATEGY"] = "CBX-EMC-007";
130
+ ErrorCode["DUPLICATE_GREENHOUSE_GAS"] = "CBX-EMC-008";
131
+ ErrorCode["INVALID_EMISSION_CALCULATION_FORMULA_ACTIVITY_VARIABLE_SYMBOL"] = "CBX-EMC-009";
132
+ ErrorCode["INVALID_GREENHOUSE_GAS_TYPE"] = "CBX-EMC-010";
133
+ ErrorCode["UNAUTHORIZED_FORMULA_CREATION_ROLE"] = "CBX-EMC-011";
134
+ // Emission Calculation Results Errors (CBX-ECR-XXX)
135
+ ErrorCode["UNKNOWN_GREENHOUSE_GAS_CATEGORY"] = "CBX-ECR-001";
136
+ // Reporting Errors (CBX-RPT-XXX)
137
+ ErrorCode["EMPTY_REPORT_SECTION_BLOCKS"] = "CBX-RPT-001";
138
+ ErrorCode["INVALID_REPORT_INSTANCE_ID"] = "CBX-RPT-002";
139
+ ErrorCode["INVALID_REPORT_SECTION_ID"] = "CBX-RPT-003";
140
+ ErrorCode["INVALID_REPORT_SECTION_ORDER"] = "CBX-RPT-004";
141
+ ErrorCode["INVALID_REPORT_SECTION_TITLE"] = "CBX-RPT-005";
142
+ ErrorCode["INVALID_REPORT_TEMPLATE_ID"] = "CBX-RPT-006";
62
143
  // Shared/Common Errors (CBX-SHR-XXX)
63
144
  ErrorCode["INVALID_EMAIL"] = "CBX-SHR-001";
64
145
  ErrorCode["INVALID_DATE_FORMAT"] = "CBX-SHR-002";
@@ -78,4 +159,68 @@ var ErrorCode;
78
159
  ErrorCode["MAXIMUM_VALUE_VIOLATION"] = "CBX-SHR-016";
79
160
  ErrorCode["INVALID_DATE_RANGE"] = "CBX-SHR-017";
80
161
  ErrorCode["PASSWORD_POLICY_VIOLATION"] = "CBX-SHR-018";
162
+ // Identity and Format Validation Errors (CBX-SHR-019 to CBX-SHR-033)
163
+ ErrorCode["INVALID_AGGREGATE_ID"] = "CBX-SHR-019";
164
+ ErrorCode["INVALID_AGGREGATE_ID_FORMAT"] = "CBX-SHR-020";
165
+ ErrorCode["INVALID_AGGREGATE_PREFIX"] = "CBX-SHR-021";
166
+ ErrorCode["INVALID_SEMANTIC_UUID_FORMAT"] = "CBX-SHR-022";
167
+ ErrorCode["INVALID_USER_ID_FORMAT"] = "CBX-SHR-023";
168
+ ErrorCode["INVALID_USER_PREFIX"] = "CBX-SHR-024";
169
+ ErrorCode["INVALID_UUID_FORMAT"] = "CBX-SHR-025";
170
+ ErrorCode["UNKNOWN_BOUNDED_CONTEXT_CODE"] = "CBX-SHR-026";
171
+ ErrorCode["INVALID_DOMAIN_CODE"] = "CBX-SHR-027";
172
+ ErrorCode["INVALID_CODE"] = "CBX-SHR-028";
173
+ ErrorCode["INVALID_VALUE_OBJECT_CONFIGURATION"] = "CBX-SHR-029";
174
+ ErrorCode["CREATE_METHOD_NOT_IMPLEMENTED"] = "CBX-SHR-030";
175
+ ErrorCode["METHOD_NOT_IMPLEMENTED"] = "CBX-SHR-031";
176
+ ErrorCode["INVALID_DOMAIN_EVENT_NAME"] = "CBX-SHR-032";
177
+ ErrorCode["INVALID_USER_PREFERRED_LOCALE"] = "CBX-SHR-033";
178
+ // Colombian Business Validation Errors (CBX-SHR-034 to CBX-SHR-036)
179
+ ErrorCode["INVALID_COLOMBIAN_NIT_FORMAT"] = "CBX-SHR-034";
180
+ ErrorCode["INVALID_COLOMBIAN_NIT_CHECK_DIGIT"] = "CBX-SHR-035";
181
+ ErrorCode["INVALID_COLOMBIAN_NIT_NUMBER"] = "CBX-SHR-036";
182
+ // Type and Enum Validation Errors (CBX-SHR-037 to CBX-SHR-046)
183
+ ErrorCode["INVALID_USER_TYPE"] = "CBX-SHR-037";
184
+ ErrorCode["INVALID_BUSINESS_SCALE"] = "CBX-SHR-038";
185
+ ErrorCode["INVALID_STAKEHOLDER_ROLE_TYPE"] = "CBX-SHR-039";
186
+ ErrorCode["INVALID_TAX_IDENTIFICATION_TYPE"] = "CBX-SHR-040";
187
+ ErrorCode["INVALID_COUNTRY_CODE"] = "CBX-SHR-041";
188
+ ErrorCode["INVALID_IDENTITY_DOCUMENT_TYPE"] = "CBX-SHR-042";
189
+ ErrorCode["INVALID_ASSIGNER_ROLE"] = "CBX-SHR-043";
190
+ ErrorCode["INVALID_MANAGED_STAKEHOLDER_ROLE"] = "CBX-SHR-044";
191
+ ErrorCode["INVALID_SUPERVISOR_ROLE"] = "CBX-SHR-045";
192
+ ErrorCode["UNSUPPORTED_STAKEHOLDER_ROLE"] = "CBX-SHR-046";
193
+ // Collection and Value Validation Errors (CBX-SHR-047 to CBX-SHR-056)
194
+ ErrorCode["EMPTY_ARRAY_NOT_ALLOWED"] = "CBX-SHR-047";
195
+ ErrorCode["INVALID_STRING_LIST"] = "CBX-SHR-048";
196
+ ErrorCode["INVALID_CODE_LIST"] = "CBX-SHR-049";
197
+ ErrorCode["INVALID_URL_LIST"] = "CBX-SHR-050";
198
+ ErrorCode["NEGATIVE_AMOUNT"] = "CBX-SHR-051";
199
+ ErrorCode["NOT_INTEGER"] = "CBX-SHR-052";
200
+ ErrorCode["MONEY_OVERFLOW"] = "CBX-SHR-053";
201
+ ErrorCode["DIVISION_BY_ZERO"] = "CBX-SHR-054";
202
+ ErrorCode["DATE_GREATER_THAN"] = "CBX-SHR-055";
203
+ ErrorCode["EMPTY_DISPLAY_NAME"] = "CBX-SHR-056";
204
+ // Technical Operation Errors (CBX-SHR-057 to CBX-SHR-066)
205
+ ErrorCode["FILTER_OPERATION_NOT_IMPLEMENTED"] = "CBX-SHR-057";
206
+ ErrorCode["SWAP_OPERATION_NOT_IMPLEMENTED"] = "CBX-SHR-058";
207
+ ErrorCode["INVALID_MEASUREMENT_UNIT_OPERATION"] = "CBX-SHR-059";
208
+ ErrorCode["EMPTY_SEGMENT_CODE"] = "CBX-SHR-060";
209
+ ErrorCode["EMPTY_SEGMENT_NAME"] = "CBX-SHR-061";
210
+ ErrorCode["EMPTY_TAX_IDENTIFICATION_NUMBER"] = "CBX-SHR-062";
211
+ ErrorCode["INVALID_TAX_IDENTIFICATION_NUMBER_FORMAT"] = "CBX-SHR-063";
212
+ ErrorCode["INVALID_TAX_IDENTIFICATION_NUMBER_LENGTH"] = "CBX-SHR-064";
213
+ ErrorCode["TAX_IDENTIFICATION_NUMBER_WITH_CONTROL_CHARACTERS"] = "CBX-SHR-065";
214
+ ErrorCode["INVALID_COUNTRY_SPECIFIC_TAX_IDENTIFICATION_NUMBER"] = "CBX-SHR-066";
215
+ // Either Pattern Errors (CBX-SHR-067 to CBX-SHR-068)
216
+ ErrorCode["CANNOT_ACCESS_LEFT_ON_RIGHT_VALUE"] = "CBX-SHR-067";
217
+ ErrorCode["CANNOT_ACCESS_RIGHT_ON_LEFT_VALUE"] = "CBX-SHR-068";
218
+ // User and Context Validation Errors (CBX-SHR-069 to CBX-SHR-075)
219
+ ErrorCode["UNSUPPORTED_USER_TYPE"] = "CBX-SHR-069";
220
+ ErrorCode["SECURITY_CONTEXT_RECONSTRUCTION_ERROR"] = "CBX-SHR-070";
221
+ ErrorCode["INVALID_USER_BUSINESS_STATUS"] = "CBX-SHR-071";
222
+ ErrorCode["INVALID_TIME_FORMAT"] = "CBX-SHR-072";
223
+ ErrorCode["INVALID_NATIONAL_NUMBER"] = "CBX-SHR-073";
224
+ ErrorCode["INVALID_MINUTES_DURATION"] = "CBX-SHR-074";
225
+ ErrorCode["INVALID_FULL_INTERNATIONAL_NUMBER"] = "CBX-SHR-075";
81
226
  })(ErrorCode || (exports.ErrorCode = ErrorCode = {}));
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CalculationFailedError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class CalculationFailedError extends CodedRootError_1.CodedRootError {
7
+ constructor(calculationId, reason) {
8
+ const technicalMessage = `Emission calculation '${calculationId}' failed: ${reason}`;
9
+ const context = {
10
+ calculationId,
11
+ reason,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ 'Review the calculation input data for errors',
16
+ 'Check if all required emission factors are available',
17
+ 'Verify the calculation formula is correctly configured',
18
+ 'Contact support if the issue persists',
19
+ 'Check system logs for detailed error information',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.CALCULATION_FAILED, technicalMessage, context, suggestions);
22
+ this.name = 'CalculationFailedError';
23
+ }
24
+ static create(calculationId, reason) {
25
+ return new CalculationFailedError(calculationId, reason);
26
+ }
27
+ logError() {
28
+ return `${this.name}: ${this.technicalMessage}`;
29
+ }
30
+ }
31
+ exports.CalculationFailedError = CalculationFailedError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CreateMethodNotImplementedError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class CreateMethodNotImplementedError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class CreateMethodNotImplementedError extends CodedRootError_1.CodedRootError {
6
7
  constructor(className) {
7
- const message = `The 'create' method must be implemented in the class '${className}'.`;
8
- super(message);
8
+ const technicalMessage = `The 'create' method must be implemented in the class '${className}'. This is a required factory method for domain entities and value objects.`;
9
+ const context = {
10
+ className,
11
+ missingMethod: 'create',
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Implement a static 'create' method in class '${className}'`,
16
+ 'The create method should be the primary factory for instantiating this class',
17
+ 'Signature: public static create(...params): ClassName',
18
+ 'Use the create method instead of calling the constructor directly',
19
+ 'Refer to domain-driven design patterns for factory method implementation',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.CREATE_METHOD_NOT_IMPLEMENTED, technicalMessage, context, suggestions);
9
22
  this.name = 'CreateMethodNotImplementedError';
10
23
  }
11
24
  static create(className) {
12
25
  return new CreateMethodNotImplementedError(className);
13
26
  }
14
27
  logError() {
15
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
16
29
  }
17
30
  }
18
31
  exports.CreateMethodNotImplementedError = CreateMethodNotImplementedError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DatabaseConnectionError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class DatabaseConnectionError extends CodedRootError_1.CodedRootError {
7
+ constructor(database, reason) {
8
+ const technicalMessage = reason
9
+ ? `Failed to connect to database '${database}': ${reason}`
10
+ : `Failed to connect to database '${database}'`;
11
+ const context = {
12
+ database,
13
+ reason,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Verify database connection credentials',
18
+ 'Check if the database server is running and accessible',
19
+ 'Ensure network connectivity to the database',
20
+ 'Review database connection pool settings',
21
+ 'Contact your system administrator if the issue persists',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.DATABASE_CONNECTION, technicalMessage, context, suggestions);
24
+ this.name = 'DatabaseConnectionError';
25
+ }
26
+ static create(database, reason) {
27
+ return new DatabaseConnectionError(database, reason);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.DatabaseConnectionError = DatabaseConnectionError;
@@ -1,18 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DateGreaterThanError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class DateGreaterThanError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class DateGreaterThanError extends CodedRootError_1.CodedRootError {
6
7
  constructor(date1, date2) {
7
- const message = `Date constraint violation: '${date1.value}' is greater than '${date2.value}'.`;
8
- super(message);
8
+ const technicalMessage = `Date constraint violation: '${date1.value}' is greater than '${date2.value}'.`;
9
+ const context = {
10
+ date1: date1.value,
11
+ date2: date2.value,
12
+ constraint: 'date_ordering',
13
+ violationType: 'date1_greater_than_date2',
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Ensure that the first date (${date1.value}) is not greater than the second date (${date2.value})`,
18
+ 'Validate date ordering before creating value objects with date range constraints',
19
+ 'Check if dates are being assigned in the correct order (start date vs end date)',
20
+ 'Review business logic to ensure chronological ordering is maintained',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.DATE_GREATER_THAN, technicalMessage, context, suggestions);
9
23
  this.name = 'DateGreaterThanError';
10
24
  }
11
25
  static create(date1, date2) {
12
26
  return new DateGreaterThanError(date1, date2);
13
27
  }
14
28
  logError() {
15
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
16
30
  }
17
31
  }
18
32
  exports.DateGreaterThanError = DateGreaterThanError;
@@ -1,10 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DivisionByZeroError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class DivisionByZeroError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class DivisionByZeroError extends CodedRootError_1.CodedRootError {
6
7
  constructor(operation, divisorValue) {
7
- super(`Division by zero error: Cannot perform operation '${operation}' when divisor is ${divisorValue}.`);
8
+ const technicalMessage = `Division by zero error: Cannot perform operation '${operation}' when divisor is ${divisorValue}.`;
9
+ const context = {
10
+ operation,
11
+ divisorValue,
12
+ errorType: 'division_by_zero',
13
+ mathematicallyUndefined: true,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Ensure the divisor in operation '${operation}' is not zero before performing division`,
18
+ 'Add validation to check for zero values before division operations',
19
+ 'Review the logic that produces the divisor to prevent zero values',
20
+ 'Consider using a default value or alternative calculation when the divisor is zero',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.DIVISION_BY_ZERO, technicalMessage, context, suggestions);
8
23
  this.operation = operation;
9
24
  this.divisorValue = divisorValue;
10
25
  this.name = 'DivisionByZeroError';
@@ -19,7 +34,7 @@ class DivisionByZeroError extends RootError_1.RootError {
19
34
  return this.divisorValue;
20
35
  }
21
36
  logError() {
22
- return `${this.name}: ${this.message}`;
37
+ return `${this.name}: ${this.technicalMessage}`;
23
38
  }
24
39
  }
25
40
  exports.DivisionByZeroError = DivisionByZeroError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DuplicateOrderError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class DuplicateOrderError extends CodedRootError_1.CodedRootError {
7
+ constructor(orderId, existingOrderId) {
8
+ const technicalMessage = existingOrderId
9
+ ? `Order with ID '${orderId}' already exists. Existing order ID: ${existingOrderId}`
10
+ : `Order with ID '${orderId}' already exists in the system`;
11
+ const context = {
12
+ orderId,
13
+ existingOrderId,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Use a different order identifier',
18
+ 'Check if this order was already submitted',
19
+ 'Verify the order ID generation logic to avoid duplicates',
20
+ 'Use the update endpoint if you need to modify an existing order',
21
+ 'Contact support if you believe this is an error',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.DUPLICATE_ORDER, technicalMessage, context, suggestions);
24
+ this.name = 'DuplicateOrderError';
25
+ }
26
+ static create(orderId, existingOrderId) {
27
+ return new DuplicateOrderError(orderId, existingOrderId);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.DuplicateOrderError = DuplicateOrderError;
@@ -1,18 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EmptyArrayNotAllowedError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class EmptyArrayNotAllowedError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class EmptyArrayNotAllowedError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName) {
7
- const message = `Empty array not allowed for property '${propertyName}': at least one element is required.`;
8
- super(message);
8
+ const technicalMessage = `Empty array not allowed for property '${propertyName}': at least one element is required.`;
9
+ const context = {
10
+ propertyName,
11
+ constraint: 'minimum_length',
12
+ minimumRequired: 1,
13
+ actualLength: 0,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Ensure that the property '${propertyName}' contains at least one element before creating the value object`,
18
+ 'Validate input data before instantiation to prevent empty arrays',
19
+ 'Check if the source data for this array property is being correctly populated',
20
+ 'Consider adding a default value or making the array optional if business rules allow it',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.EMPTY_ARRAY_NOT_ALLOWED, technicalMessage, context, suggestions);
9
23
  this.name = 'EmptyArrayNotAllowedError';
10
24
  }
11
25
  static create(propertyName) {
12
26
  return new EmptyArrayNotAllowedError(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.EmptyArrayNotAllowedError = EmptyArrayNotAllowedError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EmptyDisplayNameError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class EmptyDisplayNameError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class EmptyDisplayNameError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName) {
7
- const message = `The ${propertyName} cannot be empty or contain only whitespace.`;
8
- super(message);
8
+ const technicalMessage = `The ${propertyName} cannot be empty or contain only whitespace.`;
9
+ const context = {
10
+ propertyName,
11
+ constraint: 'non_empty_display_name',
12
+ allowedPattern: 'non-whitespace characters required',
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Ensure that '${propertyName}' contains at least one non-whitespace character`,
17
+ 'Trim whitespace and validate that the resulting string is not empty',
18
+ 'Check input data to ensure display names are properly populated',
19
+ 'Consider adding validation at the UI layer to prevent empty or whitespace-only values',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.EMPTY_DISPLAY_NAME, technicalMessage, context, suggestions);
9
22
  this.name = 'EmptyDisplayNameError';
10
23
  }
11
24
  static create(propertyName) {
12
25
  return new EmptyDisplayNameError(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.EmptyDisplayNameError = EmptyDisplayNameError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EmptySegmentCodeError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class EmptySegmentCodeError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class EmptySegmentCodeError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName) {
7
- const message = `The ${propertyName} cannot be empty or contain only whitespace.`;
8
- super(message);
8
+ const technicalMessage = `The ${propertyName} cannot be empty or contain only whitespace.`;
9
+ const context = {
10
+ propertyName,
11
+ constraint: 'non_empty_segment_code',
12
+ expectedPattern: 'non-whitespace characters required',
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Ensure that '${propertyName}' contains at least one non-whitespace character`,
17
+ 'Validate segment codes before creating value objects to prevent empty values',
18
+ 'Check that segment code input is properly populated from the data source',
19
+ 'Consider implementing segment code format validation rules',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.EMPTY_SEGMENT_CODE, technicalMessage, context, suggestions);
9
22
  this.name = 'EmptySegmentCodeError';
10
23
  }
11
24
  static create(propertyName) {
12
25
  return new EmptySegmentCodeError(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.EmptySegmentCodeError = EmptySegmentCodeError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EmptySegmentNameError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class EmptySegmentNameError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class EmptySegmentNameError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName) {
7
- const message = `The ${propertyName} cannot be empty or contain only whitespace.`;
8
- super(message);
8
+ const technicalMessage = `The ${propertyName} cannot be empty or contain only whitespace.`;
9
+ const context = {
10
+ propertyName,
11
+ constraint: 'non_empty_segment_name',
12
+ expectedPattern: 'non-whitespace characters required',
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Ensure that '${propertyName}' contains at least one non-whitespace character`,
17
+ 'Validate segment names before creating value objects to prevent empty values',
18
+ 'Check that segment name input is properly populated from the data source',
19
+ 'Consider implementing segment name format validation rules',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.EMPTY_SEGMENT_NAME, technicalMessage, context, suggestions);
9
22
  this.name = 'EmptySegmentNameError';
10
23
  }
11
24
  static create(propertyName) {
12
25
  return new EmptySegmentNameError(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.EmptySegmentNameError = EmptySegmentNameError;