@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,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;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EmptyTaxIdentificationNumberError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class EmptyTaxIdentificationNumberError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class EmptyTaxIdentificationNumberError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName) {
7
- const message = `Tax identification number '${propertyName}' cannot be empty or contain only whitespace.`;
8
- super(message);
8
+ const technicalMessage = `Tax identification number '${propertyName}' cannot be empty or contain only whitespace.`;
9
+ const context = {
10
+ propertyName,
11
+ constraint: 'non_empty_tax_id',
12
+ expectedPattern: 'non-whitespace characters required',
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Ensure that tax identification number '${propertyName}' contains at least one non-whitespace character`,
17
+ 'Validate tax identification numbers before creating value objects to prevent empty values',
18
+ 'Check that tax ID input is properly populated from the data source',
19
+ 'Implement tax identification number format validation according to country standards',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.EMPTY_TAX_IDENTIFICATION_NUMBER, technicalMessage, context, suggestions);
9
22
  this.name = 'EmptyTaxIdentificationNumberError';
10
23
  }
11
24
  static create(propertyName) {
12
25
  return new EmptyTaxIdentificationNumberError(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.EmptyTaxIdentificationNumberError = EmptyTaxIdentificationNumberError;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EmptyValueError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class EmptyValueError extends CodedRootError_1.CodedRootError {
7
+ constructor(propertyName, expectedType) {
8
+ const technicalMessage = `Value constraint violation: '${propertyName}' cannot be empty. Expected type: ${expectedType}.`;
9
+ const context = {
10
+ propertyName,
11
+ expectedType,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Provide a non-empty value for '${propertyName}'`,
16
+ `Ensure the field contains valid ${expectedType} data`,
17
+ 'Remove any whitespace-only values',
18
+ 'Check for empty strings, arrays, or objects',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.EMPTY_VALUE, technicalMessage, context, suggestions);
21
+ this.name = 'EmptyValueError';
22
+ }
23
+ static create(propertyName, expectedType) {
24
+ return new EmptyValueError(propertyName, expectedType);
25
+ }
26
+ logError() {
27
+ return `${this.name}: ${this.technicalMessage}`;
28
+ }
29
+ }
30
+ exports.EmptyValueError = EmptyValueError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExternalServiceError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class ExternalServiceError extends CodedRootError_1.CodedRootError {
7
+ constructor(serviceName, reason) {
8
+ const technicalMessage = reason
9
+ ? `External service '${serviceName}' is unavailable: ${reason}`
10
+ : `External service '${serviceName}' is unavailable`;
11
+ const context = {
12
+ serviceName,
13
+ reason,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Retry the operation after a few moments',
18
+ 'Check the status of the external service',
19
+ 'Verify network connectivity to the service',
20
+ 'Review service configuration and endpoints',
21
+ 'Contact support if the service remains unavailable',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.EXTERNAL_SERVICE, technicalMessage, context, suggestions);
24
+ this.name = 'ExternalServiceError';
25
+ }
26
+ static create(serviceName, reason) {
27
+ return new ExternalServiceError(serviceName, reason);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.ExternalServiceError = ExternalServiceError;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FormNotFoundError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class FormNotFoundError extends CodedRootError_1.CodedRootError {
7
+ constructor(formId) {
8
+ const technicalMessage = `Data collection form with ID '${formId}' was not found`;
9
+ const context = {
10
+ formId,
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ 'Verify the form ID is correct',
15
+ 'Check if the form has been deleted or archived',
16
+ 'Ensure you have permission to access this form',
17
+ 'Contact your administrator if the form should exist',
18
+ ];
19
+ super(ErrorCode_1.ErrorCode.FORM_NOT_FOUND, technicalMessage, context, suggestions);
20
+ this.name = 'FormNotFoundError';
21
+ }
22
+ static create(formId) {
23
+ return new FormNotFoundError(formId);
24
+ }
25
+ logError() {
26
+ return `${this.name}: ${this.technicalMessage}`;
27
+ }
28
+ }
29
+ exports.FormNotFoundError = FormNotFoundError;
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InsufficientPermissionsError = void 0;
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InsufficientPermissionsError extends CodedRootError_1.CodedRootError {
7
+ constructor(operation, requiredPermissions) {
8
+ const technicalMessage = requiredPermissions && requiredPermissions.length > 0
9
+ ? `Insufficient permissions to perform operation '${operation}'. Required permissions: ${requiredPermissions.join(', ')}.`
10
+ : `Insufficient permissions to perform operation '${operation}'.`;
11
+ const context = {
12
+ operation,
13
+ requiredPermissions: requiredPermissions ? Array.from(requiredPermissions) : undefined,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Contact your administrator to request the necessary permissions',
18
+ 'Verify you have the correct role assigned for this operation',
19
+ 'Check if your account has been restricted or deactivated',
20
+ 'Ensure you are logged in with the correct user account',
21
+ 'Review your organization\'s permission policies',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.INSUFFICIENT_PERMISSIONS, technicalMessage, context, suggestions);
24
+ this.name = 'InsufficientPermissionsError';
25
+ }
26
+ static create(operation, requiredPermissions) {
27
+ return new InsufficientPermissionsError(operation, requiredPermissions);
28
+ }
29
+ logError() {
30
+ return `${this.name}: ${this.technicalMessage}`;
31
+ }
32
+ }
33
+ exports.InsufficientPermissionsError = InsufficientPermissionsError;
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidAggregateIdError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidAggregateIdError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidAggregateIdError extends CodedRootError_1.CodedRootError {
6
7
  constructor(id, propertyName) {
7
- const message = `The id "${id}" violates the domain policy - The propertyName's ${propertyName}`;
8
- super(message);
8
+ const technicalMessage = `The id "${id}" violates the domain policy for property: ${propertyName}`;
9
+ const context = {
10
+ id,
11
+ propertyName,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Ensure the aggregate ID follows the correct format for '${propertyName}'`,
16
+ 'Verify the ID contains only valid characters',
17
+ 'Check if the ID length meets the requirements',
18
+ 'Validate the ID prefix matches the expected pattern',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.INVALID_AGGREGATE_ID, technicalMessage, context, suggestions);
9
21
  this.name = 'InvalidAggregateIdError';
10
22
  }
11
23
  static create(id, propertyName) {
12
24
  return new InvalidAggregateIdError(id, propertyName);
13
25
  }
14
26
  logError() {
15
- return `${this.name}: ${this.message}`;
27
+ return `${this.name}: ${this.technicalMessage}`;
16
28
  }
17
29
  }
18
30
  exports.InvalidAggregateIdError = InvalidAggregateIdError;
@@ -1,19 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidAggregateIdFormatError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidAggregateIdFormatError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidAggregateIdFormatError extends CodedRootError_1.CodedRootError {
6
7
  constructor(aggregateId, propertyName) {
7
- const message = `The aggregate ID "${aggregateId}" violates the domain policy - ${InvalidAggregateIdFormatError.INVALID_AGGREGATE_ID_ERROR_MESSAGE}. Property: ${propertyName}`;
8
- super(message);
8
+ const technicalMessage = `The aggregate ID "${aggregateId}" has an invalid format for property '${propertyName}'. Expected format: PREFIX_UUID (e.g., PMS-SC_550e8400-e29b-41d4-a716-446655440000 or USR-STH-CHO_550e8400-e29b-41d4-a716-446655440000)`;
9
+ const context = {
10
+ aggregateId,
11
+ propertyName,
12
+ expectedFormat: 'PREFIX_UUID',
13
+ examples: ['PMS-SC_550e8400-e29b-41d4-a716-446655440000', 'USR-STH-CHO_550e8400-e29b-41d4-a716-446655440000'],
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Ensure the aggregate ID follows the format: PREFIX_UUID',
18
+ 'Verify the prefix matches the bounded context abbreviation',
19
+ 'Check that the UUID part is a valid UUIDv4',
20
+ 'Examples: PMS-SC_<uuid>, USR-STH-CHO_<uuid>',
21
+ 'Validate the underscore separator between prefix and UUID',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.INVALID_AGGREGATE_ID_FORMAT, technicalMessage, context, suggestions);
9
24
  this.name = 'InvalidAggregateIdFormatError';
10
25
  }
11
26
  static create(aggregateId, propertyName) {
12
27
  return new InvalidAggregateIdFormatError(aggregateId, propertyName);
13
28
  }
14
29
  logError() {
15
- return `${this.name}: ${this.message}`;
30
+ return `${this.name}: ${this.technicalMessage}`;
16
31
  }
17
32
  }
18
33
  exports.InvalidAggregateIdFormatError = InvalidAggregateIdFormatError;
19
- InvalidAggregateIdFormatError.INVALID_AGGREGATE_ID_ERROR_MESSAGE = 'Invalid aggregate ID format. Expected: PREFIX_UUID (e.g., PMS-SC_550e8400-e29b-41d4-a716-446655440000 or USR-STH-CHO_550e8400-e29b-41d4-a716-446655440000)';
@@ -1,15 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidAggregatePrefixError = 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
  * Generic error for invalid aggregate ID prefix validation
7
8
  * Use this for any aggregate ID that needs prefix validation
8
9
  */
9
- class InvalidAggregatePrefixError extends RootError_1.RootError {
10
+ class InvalidAggregatePrefixError extends CodedRootError_1.CodedRootError {
10
11
  constructor(aggregateId, entityType, currentPrefix, validPrefixes, propertyName) {
11
- const message = `The ${entityType} ID "${aggregateId}" has invalid prefix "${currentPrefix}". Expected one of: [${validPrefixes.join(', ')}]. ${InvalidAggregatePrefixError.INVALID_PREFIX_ERROR_MESSAGE}. Property: ${propertyName}`;
12
- super(message);
12
+ const technicalMessage = `The ${entityType} ID "${aggregateId}" has invalid prefix "${currentPrefix}" for property '${propertyName}'. Expected one of: [${validPrefixes.join(', ')}]`;
13
+ const context = {
14
+ aggregateId,
15
+ entityType,
16
+ currentPrefix,
17
+ validPrefixes,
18
+ propertyName,
19
+ timestamp: new Date().toISOString(),
20
+ };
21
+ const suggestions = [
22
+ `Use one of the valid prefixes: ${validPrefixes.join(', ')}`,
23
+ `Ensure the aggregate ID for '${entityType}' starts with a correct prefix`,
24
+ 'Verify the entity type matches the expected prefix',
25
+ 'Check the bounded context mapping for valid prefixes',
26
+ ];
27
+ super(ErrorCode_1.ErrorCode.INVALID_AGGREGATE_PREFIX, technicalMessage, context, suggestions);
13
28
  this.name = 'InvalidAggregatePrefixError';
14
29
  }
15
30
  /**
@@ -24,8 +39,7 @@ class InvalidAggregatePrefixError extends RootError_1.RootError {
24
39
  return new InvalidAggregatePrefixError(aggregateId, entityType, currentPrefix, validPrefixes, propertyName);
25
40
  }
26
41
  logError() {
27
- return `${this.name}: ${this.message}`;
42
+ return `${this.name}: ${this.technicalMessage}`;
28
43
  }
29
44
  }
30
45
  exports.InvalidAggregatePrefixError = InvalidAggregatePrefixError;
31
- InvalidAggregatePrefixError.INVALID_PREFIX_ERROR_MESSAGE = 'Invalid prefix for aggregate ID';
@@ -1,19 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidAssignerRoleError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidAssignerRoleError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidAssignerRoleError extends CodedRootError_1.CodedRootError {
6
7
  constructor(invalidRole, allowedRoles, contextMessage) {
7
8
  const baseMessage = `Invalid assigner role: '${invalidRole}'. Allowed assigner roles: ${allowedRoles.join(', ')}.`;
8
- const fullMessage = contextMessage ? `${contextMessage}. ${baseMessage}` : baseMessage;
9
- super(fullMessage);
9
+ const technicalMessage = contextMessage ? `${contextMessage}. ${baseMessage}` : baseMessage;
10
+ const context = {
11
+ invalidRole,
12
+ allowedRoles,
13
+ contextMessage,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ `Use one of the allowed assigner roles: ${allowedRoles.join(', ')}`,
18
+ 'Verify the stakeholder has the required role to assign others',
19
+ 'Check the role hierarchy and assignment permissions',
20
+ 'Common assigner roles: Manager, Coordinator',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.INVALID_ASSIGNER_ROLE, technicalMessage, context, suggestions);
10
23
  this.name = 'InvalidAssignerRoleError';
11
24
  }
12
25
  static create(invalidRole, allowedRoles, contextMessage) {
13
26
  return new InvalidAssignerRoleError(invalidRole, allowedRoles, contextMessage);
14
27
  }
15
28
  logError() {
16
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
17
30
  }
18
31
  }
19
32
  exports.InvalidAssignerRoleError = InvalidAssignerRoleError;
@@ -1,18 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidBusinessScaleError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidBusinessScaleError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidBusinessScaleError extends CodedRootError_1.CodedRootError {
6
7
  constructor(value, validScales) {
7
- const message = `Invalid business scale: '${value}'. Valid scales are: ${validScales.join(', ')}.`;
8
- super(message);
8
+ const technicalMessage = `Invalid business scale: '${value}'. Valid scales are: ${validScales.join(', ')}.`;
9
+ const context = {
10
+ value,
11
+ validScales,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ `Use one of the valid business scales: ${validScales.join(', ')}`,
16
+ 'Verify the business scale matches the company size classification',
17
+ 'Common scales include: micro, small, medium, large',
18
+ 'Check the business classification guidelines',
19
+ ];
20
+ super(ErrorCode_1.ErrorCode.INVALID_BUSINESS_SCALE, technicalMessage, context, suggestions);
9
21
  this.name = 'InvalidBusinessScaleError';
10
22
  }
11
23
  static create(value, validScales) {
12
24
  return new InvalidBusinessScaleError(value, validScales);
13
25
  }
14
26
  logError() {
15
- return `${this.name}: ${this.message}`;
27
+ return `${this.name}: ${this.technicalMessage}`;
16
28
  }
17
29
  }
18
30
  exports.InvalidBusinessScaleError = InvalidBusinessScaleError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidCodeError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidCodeError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidCodeError extends CodedRootError_1.CodedRootError {
6
7
  constructor(code, propertyName) {
7
- const message = `The code "${code}" violates the domain policy - The propertyName's ${propertyName}`;
8
- super(message);
8
+ const technicalMessage = `The code "${code}" violates the validation policy for property '${propertyName}'. Expected a valid code that meets the business requirements.`;
9
+ const context = {
10
+ code,
11
+ propertyName,
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ 'Verify the code follows the expected format pattern',
16
+ 'Check that the code contains only allowed characters',
17
+ 'Ensure the code length is within valid bounds',
18
+ 'Review business rules for valid code structures',
19
+ 'Codes should typically be alphanumeric without special characters',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.INVALID_CODE, technicalMessage, context, suggestions);
9
22
  this.name = 'InvalidCodeError';
10
23
  }
11
24
  static create(code, propertyName) {
12
25
  return new InvalidCodeError(code, 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.InvalidCodeError = InvalidCodeError;
@@ -1,21 +1,37 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidCodeListError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidCodeListError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidCodeListError extends CodedRootError_1.CodedRootError {
6
7
  constructor(propertyName, expectedType, receivedType, invalidElements) {
7
8
  const invalidElementsText = invalidElements.length > 0
8
9
  ? ` Invalid elements: ${invalidElements.join(', ')}`
9
10
  : '';
10
- const message = `Invalid value for property '${propertyName}': expected ${expectedType}, but received ${receivedType}.${invalidElementsText}`;
11
- super(message);
11
+ const technicalMessage = `Invalid value for property '${propertyName}': expected ${expectedType}, but received ${receivedType}.${invalidElementsText}`;
12
+ const context = {
13
+ propertyName,
14
+ expectedType,
15
+ receivedType,
16
+ invalidElements,
17
+ invalidElementsCount: invalidElements.length,
18
+ hasInvalidElements: invalidElements.length > 0,
19
+ timestamp: new Date().toISOString(),
20
+ };
21
+ const suggestions = [
22
+ `Ensure all codes in '${propertyName}' match the expected format: ${expectedType}`,
23
+ 'Validate code format before creating the value object',
24
+ 'Check that all codes follow the naming conventions defined in the domain',
25
+ 'Review the source data to ensure codes are properly formatted and valid',
26
+ ];
27
+ super(ErrorCode_1.ErrorCode.INVALID_CODE_LIST, technicalMessage, context, suggestions);
12
28
  this.name = 'InvalidCodeListError';
13
29
  }
14
30
  static create(propertyName, expectedType, receivedType, invalidElements = []) {
15
31
  return new InvalidCodeListError(propertyName, expectedType, receivedType, invalidElements);
16
32
  }
17
33
  logError() {
18
- return `${this.name}: ${this.message}`;
34
+ return `${this.name}: ${this.technicalMessage}`;
19
35
  }
20
36
  }
21
37
  exports.InvalidCodeListError = InvalidCodeListError;
@@ -1,18 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidColombianNITCheckDigitError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidColombianNITCheckDigitError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidColombianNITCheckDigitError extends CodedRootError_1.CodedRootError {
6
7
  constructor(nitNumber, providedCheckDigit, expectedCheckDigit) {
7
- const message = `Invalid check digit for Colombian NIT '${nitNumber}': provided '${providedCheckDigit}', expected '${expectedCheckDigit}'.`;
8
- super(message);
8
+ const technicalMessage = `Invalid check digit for Colombian NIT '${nitNumber}': provided '${providedCheckDigit}', expected '${expectedCheckDigit}'.`;
9
+ const context = {
10
+ nitNumber,
11
+ providedCheckDigit,
12
+ expectedCheckDigit,
13
+ timestamp: new Date().toISOString(),
14
+ };
15
+ const suggestions = [
16
+ `Correct the check digit to '${expectedCheckDigit}'`,
17
+ 'Verify the NIT number is correct before calculating the check digit',
18
+ 'Use the Colombian DIAN algorithm to calculate the correct check digit',
19
+ 'Check for typos in the NIT number or check digit',
20
+ 'Consult the official DIAN documentation for NIT validation',
21
+ ];
22
+ super(ErrorCode_1.ErrorCode.INVALID_COLOMBIAN_NIT_CHECK_DIGIT, technicalMessage, context, suggestions);
9
23
  this.name = 'InvalidColombianNITCheckDigitError';
10
24
  }
11
25
  static create(nitNumber, providedCheckDigit, expectedCheckDigit) {
12
26
  return new InvalidColombianNITCheckDigitError(nitNumber, providedCheckDigit, expectedCheckDigit);
13
27
  }
14
28
  logError() {
15
- return `${this.name}: ${this.message}`;
29
+ return `${this.name}: ${this.technicalMessage}`;
16
30
  }
17
31
  }
18
32
  exports.InvalidColombianNITCheckDigitError = InvalidColombianNITCheckDigitError;
@@ -1,18 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidColombianNITFormatError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidColombianNITFormatError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidColombianNITFormatError extends CodedRootError_1.CodedRootError {
6
7
  constructor(value) {
7
- const message = `Invalid Colombian NIT format: '${value}'. Expected format: ########-# (8-10 digits followed by check digit).`;
8
- super(message);
8
+ const technicalMessage = `Invalid Colombian NIT format: '${value}'. Expected format: ########-# (8-10 digits followed by check digit).`;
9
+ const context = {
10
+ value,
11
+ expectedFormat: '########-#',
12
+ timestamp: new Date().toISOString(),
13
+ };
14
+ const suggestions = [
15
+ 'Ensure the NIT follows the Colombian format: 8-10 digits followed by a hyphen and check digit',
16
+ 'Example: 900123456-7',
17
+ 'Remove any spaces, dots, or other separators except the final hyphen',
18
+ 'Verify the NIT has the correct number of digits before the check digit',
19
+ 'The check digit must be separated by a hyphen',
20
+ ];
21
+ super(ErrorCode_1.ErrorCode.INVALID_COLOMBIAN_NIT_FORMAT, technicalMessage, context, suggestions);
9
22
  this.name = 'InvalidColombianNITFormatError';
10
23
  }
11
24
  static create(value) {
12
25
  return new InvalidColombianNITFormatError(value);
13
26
  }
14
27
  logError() {
15
- return `${this.name}: ${this.message}`;
28
+ return `${this.name}: ${this.technicalMessage}`;
16
29
  }
17
30
  }
18
31
  exports.InvalidColombianNITFormatError = InvalidColombianNITFormatError;
@@ -1,18 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidColombianNITNumberError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidColombianNITNumberError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidColombianNITNumberError extends CodedRootError_1.CodedRootError {
6
7
  constructor(nitNumber) {
7
- const message = `Invalid Colombian NIT number: '${nitNumber}'. Must be 8 to 10 digits.`;
8
- super(message);
8
+ const technicalMessage = `Invalid Colombian NIT number: '${nitNumber}'. Must be 8 to 10 digits.`;
9
+ const context = {
10
+ nitNumber,
11
+ minDigits: 8,
12
+ maxDigits: 10,
13
+ actualLength: nitNumber ? nitNumber.replace(/\D/g, '').length : 0,
14
+ timestamp: new Date().toISOString(),
15
+ };
16
+ const suggestions = [
17
+ 'Ensure the NIT contains between 8 and 10 numeric digits',
18
+ 'Remove any letters, spaces, or special characters except the final hyphen and check digit',
19
+ 'Verify the NIT number is complete and not truncated',
20
+ 'Check for missing leading zeros if applicable',
21
+ 'Examples: 900123456-7 (9 digits + check digit), 12345678-9 (8 digits + check digit)',
22
+ ];
23
+ super(ErrorCode_1.ErrorCode.INVALID_COLOMBIAN_NIT_NUMBER, technicalMessage, context, suggestions);
9
24
  this.name = 'InvalidColombianNITNumberError';
10
25
  }
11
26
  static create(nitNumber) {
12
27
  return new InvalidColombianNITNumberError(nitNumber);
13
28
  }
14
29
  logError() {
15
- return `${this.name}: ${this.message}`;
30
+ return `${this.name}: ${this.technicalMessage}`;
16
31
  }
17
32
  }
18
33
  exports.InvalidColombianNITNumberError = InvalidColombianNITNumberError;
@@ -1,17 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvalidCoordinatesError = void 0;
4
- const RootError_1 = require("./RootError");
5
- class InvalidCoordinatesError extends RootError_1.RootError {
4
+ const CodedRootError_1 = require("./CodedRootError");
5
+ const ErrorCode_1 = require("../enums/ErrorCode");
6
+ class InvalidCoordinatesError extends CodedRootError_1.CodedRootError {
6
7
  constructor(message) {
7
- super(message);
8
+ const technicalMessage = message;
9
+ const context = {
10
+ message,
11
+ timestamp: new Date().toISOString(),
12
+ };
13
+ const suggestions = [
14
+ 'Ensure latitude is between -90 and 90 degrees',
15
+ 'Ensure longitude is between -180 and 180 degrees',
16
+ 'Verify coordinates follow the decimal degrees format (e.g., 40.7128, -74.0060)',
17
+ 'Check for invalid characters or incorrect decimal separators',
18
+ ];
19
+ super(ErrorCode_1.ErrorCode.INVALID_COORDINATES, technicalMessage, context, suggestions);
8
20
  this.name = 'InvalidCoordinatesError';
9
21
  }
10
22
  static create(message) {
11
23
  return new InvalidCoordinatesError(message);
12
24
  }
13
25
  logError() {
14
- return `${this.name}: ${this.message}`;
26
+ return `${this.name}: ${this.technicalMessage}`;
15
27
  }
16
28
  }
17
29
  exports.InvalidCoordinatesError = InvalidCoordinatesError;