@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.
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.js +18 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.js +17 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.js +16 -5
- package/build/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.js +16 -5
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.js +18 -5
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.js +17 -5
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.js +18 -5
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.js +18 -5
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.js +18 -5
- package/build/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.js +16 -5
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.js +33 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.js +33 -0
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.js +19 -5
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.js +17 -5
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.js +19 -5
- package/build/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.js +17 -5
- package/build/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.js +19 -5
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.js +20 -5
- package/build/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.js +18 -5
- package/build/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.js +18 -5
- package/build/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.js +32 -10
- package/build/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.js +19 -5
- package/build/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.js +18 -5
- package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.js +25 -5
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.js +20 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.js +20 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.js +19 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.js +18 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.js +18 -5
- package/build/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.js +18 -5
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.js +19 -5
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.js +19 -5
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.js +19 -5
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.js +19 -5
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.js +19 -5
- package/build/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.js +18 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.js +17 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.js +17 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.js +18 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.js +18 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.js +18 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.js +17 -5
- package/build/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.js +18 -5
- package/build/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.js +17 -5
- package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.js +19 -5
- package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.js +18 -5
- package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.js +18 -5
- package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.js +18 -5
- package/build/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.js +19 -5
- package/build/carbonbox/shared/domain/enums/ErrorCode.js +145 -0
- package/build/carbonbox/shared/domain/exceptions/CalculationFailedError.js +31 -0
- package/build/carbonbox/shared/domain/exceptions/CodedRootError.js +6 -6
- package/build/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/DatabaseConnectionError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/DateGreaterThanError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/DivisionByZeroError.js +19 -4
- package/build/carbonbox/shared/domain/exceptions/DuplicateOrderError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/EmptySegmentNameError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/EmptyValueError.js +30 -0
- package/build/carbonbox/shared/domain/exceptions/ExternalServiceError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/FormNotFoundError.js +29 -0
- package/build/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.js +20 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.js +20 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidCodeError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidCodeListError.js +21 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.js +20 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.js +16 -4
- package/build/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.js +20 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidCurrencyError.js +1 -1
- package/build/carbonbox/shared/domain/exceptions/InvalidDateFormatError.js +1 -1
- package/build/carbonbox/shared/domain/exceptions/InvalidDateRangeError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.js +21 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.js +31 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidFormulaError.js +31 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidGenderError.js +16 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.js +19 -4
- package/build/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidRoleError.js +31 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.js +18 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidStringListError.js +20 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidSubmissionError.js +30 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.js +20 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.js +22 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidUrlListError.js +21 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.js +18 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.js +20 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidUserTypeError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.js +18 -6
- package/build/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/JobNotFoundError.js +30 -0
- package/build/carbonbox/shared/domain/exceptions/ManagerRequiredError.js +30 -0
- package/build/carbonbox/shared/domain/exceptions/MaximumValueViolationError.js +32 -0
- package/build/carbonbox/shared/domain/exceptions/MethodNotImplementedError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/MinimumValueViolationError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.js +30 -0
- package/build/carbonbox/shared/domain/exceptions/MoneyOverflowError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/NegativeAmountError.js +19 -5
- package/build/carbonbox/shared/domain/exceptions/NotIntegerError.js +20 -4
- package/build/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.js +22 -7
- package/build/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.js +23 -15
- package/build/carbonbox/shared/domain/exceptions/StakeholderExistsError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/SubmissionLockedError.js +33 -0
- package/build/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.js +18 -5
- package/build/carbonbox/shared/domain/exceptions/TokenInvalidError.js +32 -0
- package/build/carbonbox/shared/domain/exceptions/UndefinedValueError.js +17 -5
- package/build/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.js +18 -6
- package/build/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.js +16 -5
- package/build/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.js +16 -5
- package/build/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.js +20 -6
- package/build/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.js +20 -6
- package/build/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.js +21 -6
- package/build/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.js +21 -6
- package/build/carbonbox/shared/either/index.js +5 -1
- package/build/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.js +10 -8
- package/build/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.js +18 -5
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.js +10 -8
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.js +19 -5
- package/build/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.js +5 -4
- package/build/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.js +10 -8
- package/build/main/index.js +77 -13
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionCountryError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidActivityDataSubmissionStakeholderRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidEmissionScopeTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidFootprintTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidReportingStandardError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubScopeError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidSubmissionStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/InvalidUncertaintySourceError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownFootprintTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/activity-data-submissions/domain/exceptions/UnknownReportingStandardError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidConditionalActionError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/InvalidTriggerValueError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueComparisonError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueConversionError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/TriggerValueStringOperationError.d.ts.map +1 -1
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.d.ts +2 -2
- package/build/types/carbonbox/activity-data-collection/conditional-logic/domain/exceptions/UnknownConditionalActionCategoryError.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.d.ts +7 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/ConfigurationLockedError.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.d.ts +7 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/DuplicateConfigurationError.d.ts.map +1 -0
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.d.ts +2 -2
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCarbonFootprintTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.d.ts +2 -2
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidCollectionPeriodError.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.d.ts +2 -2
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidConfigurationStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.d.ts +2 -2
- package/build/types/carbonbox/carbon-footprint-configurations/shared/domain/exceptions/InvalidReportingStandardError.d.ts.map +1 -1
- package/build/types/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.d.ts +2 -2
- package/build/types/carbonbox/company-resources/facilities/domain/exceptions/InvalidOperationalScopeError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableActivityDataConditionsForStrategyError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/calculation-variables/domain/exceptions/InvalidCalculationVariableResolutionStrategyError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidEmissionCalculationFormulaActivityVariableSymbolError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/InvalidGreenhouseGasTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/domain/exceptions/UnauthorizedFormulaCreationRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/exceptions/UnknownGreenhouseGasCategoryError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidContractValueFactorError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidPaymentScheduleError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-contracts/domain/exceptions/InvalidTaxRateError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidDiscountAmountFactorError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidFixedDiscountAmountError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidMaximumSubtotalError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentMethodError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPaymentStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPercentageRangeError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidPurchaseOrderStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidSubtotalAmountFactorError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTaxAmountFactorError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/purchase-orders/domain/exceptions/InvalidTotalAmountFactorError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidExpertDedicationLevelError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidReportTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogCategoryError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidServiceCatalogTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-catalog/domain/exceptions/InvalidUserRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidDiscountPercentageError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidMarkupPercentageError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricePerUnitError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingModelError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidPricingStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidTaxPercentageError.d.ts.map +1 -1
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.d.ts +2 -2
- package/build/types/carbonbox/purchase-management-system/service-pricing/domain/exceptions/InvalidUnitsError.d.ts.map +1 -1
- package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts +2 -2
- package/build/types/carbonbox/reporting/shared/domain/exceptions/EmptyReportSectionBlocksError.d.ts.map +1 -1
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts +2 -2
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportInstanceIdError.d.ts.map +1 -1
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts +2 -2
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionIdError.d.ts.map +1 -1
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts +2 -2
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionOrderError.d.ts.map +1 -1
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts +2 -2
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportSectionTitleError.d.ts.map +1 -1
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts +2 -2
- package/build/types/carbonbox/reporting/shared/domain/exceptions/InvalidReportTemplateIdError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts +127 -1
- package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/CalculationFailedError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/CalculationFailedError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/CodedRootError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/CreateMethodNotImplementedError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/DatabaseConnectionError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/DatabaseConnectionError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/DateGreaterThanError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/DateGreaterThanError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/DivisionByZeroError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/DivisionByZeroError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/DuplicateOrderError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/DuplicateOrderError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/EmptyArrayNotAllowedError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/EmptyDisplayNameError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentCodeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentNameError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/EmptySegmentNameError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/EmptyTaxIdentificationNumberError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/EmptyValueError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/EmptyValueError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/ExternalServiceError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/ExternalServiceError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/FormNotFoundError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/FormNotFoundError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InsufficientPermissionsError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregateIdFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAggregatePrefixError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidAssignerRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidBusinessScaleError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeListError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCodeListError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITCheckDigitError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidColombianNITNumberError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCoordinatesError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCountryCodeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCountrySpecificTaxIdentificationNumberError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidCurrencyError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDateRangeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDateRangeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainCodeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidFieldTypeError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidFormulaError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidFormulaError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidFullInternationalNumberError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidGenderError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidGenderError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidIdentityDocumentTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidManagedStakeholderRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidMeasurementUnitOperationError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidMinutesDurationError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidNationalNumberError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidPhoneNumberError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidPropertyValueError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidRoleError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidRoleError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSemanticUuidFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidStakeholderRoleTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidStringListError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidStringListError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSubmissionError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSubmissionError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidSupervisorRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationNumberLengthError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTaxIdentificationTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidTimeFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUrlListError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUrlListError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserBusinessStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserIdFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPreferredLocaleError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserPrefixError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUserTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/InvalidUuidFormatError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/InvalidValueObjectConfigurationError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/JobAlreadyRunningError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/JobNotFoundError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/JobNotFoundError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/ManagerRequiredError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/ManagerRequiredError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/MaximumValueViolationError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/MaximumValueViolationError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/MethodNotImplementedError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/MethodNotImplementedError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/MinimumValueViolationError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/MinimumValueViolationError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/MissingEmissionFactorError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/MissingRequiredFieldsError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/MoneyOverflowError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/MoneyOverflowError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/NegativeAmountError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/NegativeAmountError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/NotIntegerError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/NotIntegerError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.d.ts +3 -3
- package/build/types/carbonbox/shared/domain/exceptions/PasswordPolicyViolationError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/SecurityContextReconstructionError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/StakeholderExistsError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/StakeholderExistsError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/SubmissionLockedError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/SubmissionLockedError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/TaxIdentificationNumberWithControlCharactersError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/TokenInvalidError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/TokenInvalidError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/UndefinedValueError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/UndefinedValueError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts +2 -3
- package/build/types/carbonbox/shared/domain/exceptions/UnknownBoundedContextCodeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/UnsupportedStakeholderRoleError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.d.ts +2 -2
- package/build/types/carbonbox/shared/domain/exceptions/UnsupportedUserTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.d.ts +2 -2
- package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessLeftOnRightValueError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.d.ts +2 -2
- package/build/types/carbonbox/shared/either/domain/exceptions/CannotAccessRightOnLeftValueError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.d.ts +3 -3
- package/build/types/carbonbox/shared/either/domain/exceptions/FilterOperationNotImplementedError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.d.ts +3 -3
- package/build/types/carbonbox/shared/either/domain/exceptions/SwapOperationNotImplementedError.d.ts.map +1 -1
- package/build/types/carbonbox/shared/either/index.d.ts +2 -0
- package/build/types/carbonbox/shared/either/index.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/entity/CarbonClient.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.d.ts +2 -2
- package/build/types/carbonbox/stakeholders/carbon-clients/domain/exceptions/InvalidCarbonClientAccountTypeError.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/entity/CarbonCoordinator.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts +2 -2
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-host/domain/entity/CarbonHost.d.ts.map +1 -1
- package/build/types/carbonbox/stakeholders/carbon-managers/domain/entity/CarbonManager.d.ts.map +1 -1
- package/build/types/main/index.d.ts +29 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidCountryCodeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidCountryCodeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(countryCode) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid country code format: '${countryCode}'. It must start with '+' and be 2-4 characters long.`;
|
|
9
|
+
const context = {
|
|
10
|
+
countryCode,
|
|
11
|
+
expectedFormat: '+XX or +XXX or +XXXX',
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
'Ensure the country code starts with a plus sign (+)',
|
|
16
|
+
'Verify the code has 2-4 characters after the plus sign',
|
|
17
|
+
'Examples: +1 (USA/Canada), +57 (Colombia), +44 (UK), +123',
|
|
18
|
+
'Remove any spaces or special characters except the leading plus sign',
|
|
19
|
+
];
|
|
20
|
+
super(ErrorCode_1.ErrorCode.INVALID_COUNTRY_CODE, technicalMessage, context, suggestions);
|
|
9
21
|
this.name = 'InvalidCountryCodeError';
|
|
10
22
|
}
|
|
11
23
|
static create(countryCode) {
|
|
12
24
|
return new InvalidCountryCodeError(countryCode);
|
|
13
25
|
}
|
|
14
26
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
27
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
30
|
exports.InvalidCountryCodeError = InvalidCountryCodeError;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidCountrySpecificTaxIdentificationNumberError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidCountrySpecificTaxIdentificationNumberError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(country, value, expectedFormat) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid ${country} tax identification number: '${value}'. Expected format: ${expectedFormat}.`;
|
|
9
|
+
const context = {
|
|
10
|
+
country,
|
|
11
|
+
value,
|
|
12
|
+
expectedFormat,
|
|
13
|
+
constraint: 'country_specific_tax_id_format',
|
|
14
|
+
errorType: 'format_validation_failed',
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Ensure the tax identification number '${value}' matches the ${country} format: ${expectedFormat}`,
|
|
19
|
+
`Verify that the tax ID follows ${country} country-specific validation rules`,
|
|
20
|
+
'Check for country-specific formatting requirements (check digits, structure, etc.)',
|
|
21
|
+
`Review ${country} tax identification number standards and update the value accordingly`,
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_COUNTRY_SPECIFIC_TAX_IDENTIFICATION_NUMBER, technicalMessage, context, suggestions);
|
|
9
24
|
this.name = 'InvalidCountrySpecificTaxIdentificationNumberError';
|
|
10
25
|
}
|
|
11
26
|
static create(country, value, expectedFormat) {
|
|
12
27
|
return new InvalidCountrySpecificTaxIdentificationNumberError(country, value, expectedFormat);
|
|
13
28
|
}
|
|
14
29
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
31
|
}
|
|
17
32
|
}
|
|
18
33
|
exports.InvalidCountrySpecificTaxIdentificationNumberError = InvalidCountrySpecificTaxIdentificationNumberError;
|
|
@@ -47,7 +47,7 @@ class InvalidCurrencyError extends CodedRootError_1.CodedRootError {
|
|
|
47
47
|
if (!currency || !validCurrencies)
|
|
48
48
|
return false;
|
|
49
49
|
// Check if it's just a case issue
|
|
50
|
-
return validCurrencies.some(valid => valid.toLowerCase() === currency.toLowerCase());
|
|
50
|
+
return validCurrencies.some((valid) => valid.toLowerCase() === currency.toLowerCase());
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Returns a user-friendly message based on the locale
|
|
@@ -29,7 +29,7 @@ class InvalidDateFormatError extends CodedRootError_1.CodedRootError {
|
|
|
29
29
|
'YYYY-MM-DD': '2024-03-15',
|
|
30
30
|
'DD/MM/YYYY': '15/03/2024',
|
|
31
31
|
'MM/DD/YYYY': '03/15/2024',
|
|
32
|
-
|
|
32
|
+
ISO8601: '2024-03-15T10:30:00Z',
|
|
33
33
|
'YYYY-MM-DDTHH:mm:ss': '2024-03-15T10:30:00',
|
|
34
34
|
};
|
|
35
35
|
return examples[format] || '2024-03-15';
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidDateRangeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidDateRangeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(validFrom, validUntil) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid date range: validFrom date '${validFrom}' must be before validUntil date '${validUntil}'.`;
|
|
9
|
+
const context = {
|
|
10
|
+
validFrom,
|
|
11
|
+
validUntil,
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
'Ensure the start date (validFrom) is before the end date (validUntil)',
|
|
16
|
+
'Verify both dates are in valid ISO 8601 format',
|
|
17
|
+
'Check for timezone differences that may affect the date comparison',
|
|
18
|
+
'Ensure dates are not equal - the range must have a positive duration',
|
|
19
|
+
];
|
|
20
|
+
super(ErrorCode_1.ErrorCode.INVALID_DATE_RANGE, technicalMessage, context, suggestions);
|
|
9
21
|
this.name = 'InvalidDateRangeError';
|
|
10
22
|
}
|
|
11
23
|
static create(validFrom, validUntil) {
|
|
12
24
|
return new InvalidDateRangeError(validFrom, validUntil);
|
|
13
25
|
}
|
|
14
26
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
27
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
30
|
exports.InvalidDateRangeError = InvalidDateRangeError;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidDomainCodeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidDomainCodeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(code, propertyName) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `The code "${code}" violates the domain policy for property '${propertyName}'. Expected a valid domain code that conforms to business rules.`;
|
|
9
|
+
const context = {
|
|
10
|
+
code,
|
|
11
|
+
propertyName,
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
'Ensure the domain code follows the expected format and conventions',
|
|
16
|
+
'Verify the code matches allowed domain values',
|
|
17
|
+
'Check that the code does not contain invalid characters',
|
|
18
|
+
'Review domain policy documentation for valid code patterns',
|
|
19
|
+
'Domain codes should be alphanumeric and follow naming conventions',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_DOMAIN_CODE, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidDomainCodeError';
|
|
10
23
|
}
|
|
11
24
|
static create(code, propertyName) {
|
|
12
25
|
return new InvalidDomainCodeError(code, propertyName);
|
|
13
26
|
}
|
|
14
27
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
exports.InvalidDomainCodeError = InvalidDomainCodeError;
|
|
@@ -1,17 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidDomainEventNameError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidDomainEventNameError extends CodedRootError_1.CodedRootError {
|
|
7
|
+
constructor(value, reason) {
|
|
8
|
+
const technicalMessage = `Invalid DomainEventName '${String(value)}': ${reason}. Domain event names must follow naming conventions.`;
|
|
9
|
+
const context = {
|
|
10
|
+
value: String(value),
|
|
11
|
+
reason,
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
'Domain event names should be in PascalCase',
|
|
16
|
+
'Event names should describe past actions (e.g., UserCreated, OrderPlaced)',
|
|
17
|
+
'Ensure the event name follows the pattern: EntityActionPastTense',
|
|
18
|
+
'Avoid using special characters or spaces in event names',
|
|
19
|
+
'Example valid names: ProductAddedToCart, PaymentProcessed, UserRegistered',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_DOMAIN_EVENT_NAME, technicalMessage, context, suggestions);
|
|
22
|
+
this.name = 'InvalidDomainEventNameError';
|
|
8
23
|
Object.setPrototypeOf(this, InvalidDomainEventNameError.prototype);
|
|
9
24
|
}
|
|
10
25
|
static create(value, reason) {
|
|
11
|
-
return new InvalidDomainEventNameError(
|
|
26
|
+
return new InvalidDomainEventNameError(value, reason);
|
|
12
27
|
}
|
|
13
28
|
logError() {
|
|
14
|
-
return
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
15
30
|
}
|
|
16
31
|
}
|
|
17
32
|
exports.InvalidDomainEventNameError = InvalidDomainEventNameError;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidFieldTypeError = void 0;
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidFieldTypeError extends CodedRootError_1.CodedRootError {
|
|
7
|
+
constructor(fieldName, expectedType, receivedType) {
|
|
8
|
+
const technicalMessage = `Field '${fieldName}' has invalid type: expected ${expectedType}, but received ${receivedType}`;
|
|
9
|
+
const context = {
|
|
10
|
+
fieldName,
|
|
11
|
+
expectedType,
|
|
12
|
+
receivedType,
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
`Ensure field '${fieldName}' is of type ${expectedType}`,
|
|
17
|
+
`Convert the value from ${receivedType} to ${expectedType}`,
|
|
18
|
+
'Check the field type documentation for this form',
|
|
19
|
+
'Verify data type conversion in your request payload',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_FIELD_TYPE, technicalMessage, context, suggestions);
|
|
22
|
+
this.name = 'InvalidFieldTypeError';
|
|
23
|
+
}
|
|
24
|
+
static create(fieldName, expectedType, receivedType) {
|
|
25
|
+
return new InvalidFieldTypeError(fieldName, expectedType, receivedType);
|
|
26
|
+
}
|
|
27
|
+
logError() {
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.InvalidFieldTypeError = InvalidFieldTypeError;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidFormulaError = void 0;
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidFormulaError extends CodedRootError_1.CodedRootError {
|
|
7
|
+
constructor(formulaId, reason) {
|
|
8
|
+
const technicalMessage = `Calculation formula '${formulaId}' is invalid: ${reason}`;
|
|
9
|
+
const context = {
|
|
10
|
+
formulaId,
|
|
11
|
+
reason,
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
'Review the formula syntax for errors',
|
|
16
|
+
'Ensure all variables used in the formula are defined',
|
|
17
|
+
'Check mathematical operations are valid',
|
|
18
|
+
'Verify the formula structure follows the expected format',
|
|
19
|
+
'Test the formula with sample data before using it',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_FORMULA, technicalMessage, context, suggestions);
|
|
22
|
+
this.name = 'InvalidFormulaError';
|
|
23
|
+
}
|
|
24
|
+
static create(formulaId, reason) {
|
|
25
|
+
return new InvalidFormulaError(formulaId, reason);
|
|
26
|
+
}
|
|
27
|
+
logError() {
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.InvalidFormulaError = InvalidFormulaError;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidFullInternationalNumberError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidFullInternationalNumberError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(fullNumber, expected) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid full international number format: received '${fullNumber}', expected '${expected}' (format: '+<countryCode><nationalNumber>').`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue: fullNumber,
|
|
11
|
+
expectedValue: expected,
|
|
12
|
+
expectedFormat: '+<countryCode><nationalNumber>',
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
'Ensure the phone number starts with a "+" sign',
|
|
17
|
+
'Include the country code after the "+" (e.g., +57 for Colombia)',
|
|
18
|
+
'Follow the format: +<countryCode><nationalNumber>',
|
|
19
|
+
'Remove any spaces, hyphens, or parentheses from the number',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_FULL_INTERNATIONAL_NUMBER, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidFullInternationalNumberError';
|
|
10
23
|
}
|
|
11
24
|
static create(fullNumber, expected) {
|
|
12
25
|
return new InvalidFullInternationalNumberError(fullNumber, expected);
|
|
13
26
|
}
|
|
14
27
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
exports.InvalidFullInternationalNumberError = InvalidFullInternationalNumberError;
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidGenderError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidGenderError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(invalidValue, validValues) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Gender constraint violation: '${invalidValue}' is not a valid gender. Valid values are: [${validValues.join(', ')}].`;
|
|
9
|
+
const context = {
|
|
10
|
+
invalidValue,
|
|
11
|
+
validValues,
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
`Choose one of the valid gender values: ${validValues.join(', ')}`,
|
|
16
|
+
'Verify the gender field matches the expected format',
|
|
17
|
+
'Check for typos or extra whitespace in the gender value',
|
|
18
|
+
];
|
|
19
|
+
super(ErrorCode_1.ErrorCode.INVALID_GENDER, technicalMessage, context, suggestions);
|
|
9
20
|
this.name = 'InvalidGenderError';
|
|
10
21
|
}
|
|
11
22
|
static create(invalidValue, validValues) {
|
|
12
23
|
return new InvalidGenderError(invalidValue, validValues);
|
|
13
24
|
}
|
|
14
25
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
26
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
27
|
}
|
|
17
28
|
}
|
|
18
29
|
exports.InvalidGenderError = InvalidGenderError;
|
|
@@ -1,18 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidIdentityDocumentTypeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidIdentityDocumentTypeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(invalidType, validTypes) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid identity document type: '${invalidType}'. Valid types: ${validTypes.join(', ')}.`;
|
|
9
|
+
const context = {
|
|
10
|
+
invalidType,
|
|
11
|
+
validTypes,
|
|
12
|
+
timestamp: new Date().toISOString(),
|
|
13
|
+
};
|
|
14
|
+
const suggestions = [
|
|
15
|
+
`Use one of the valid identity document types: ${validTypes.join(', ')}`,
|
|
16
|
+
'Common types include: passport, national_id, drivers_license, cedula',
|
|
17
|
+
'Verify the document type matches your country standards',
|
|
18
|
+
'Check the identity verification documentation for valid types',
|
|
19
|
+
];
|
|
20
|
+
super(ErrorCode_1.ErrorCode.INVALID_IDENTITY_DOCUMENT_TYPE, technicalMessage, context, suggestions);
|
|
9
21
|
this.name = 'InvalidIdentityDocumentTypeError';
|
|
10
22
|
}
|
|
11
23
|
static create(invalidType, validTypes) {
|
|
12
24
|
return new InvalidIdentityDocumentTypeError(invalidType, validTypes);
|
|
13
25
|
}
|
|
14
26
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
27
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
28
|
}
|
|
17
29
|
}
|
|
18
30
|
exports.InvalidIdentityDocumentTypeError = InvalidIdentityDocumentTypeError;
|
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidManagedStakeholderRoleError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidManagedStakeholderRoleError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(invalidRole, allowedRoles, contextMessage) {
|
|
7
8
|
const baseMessage = `Invalid managed stakeholder role: '${invalidRole}'. Allowed managed roles: ${allowedRoles.join(', ')}.`;
|
|
8
|
-
const
|
|
9
|
-
|
|
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 managed stakeholder roles: ${allowedRoles.join(', ')}`,
|
|
18
|
+
'Verify the stakeholder role can be managed by the current user',
|
|
19
|
+
'Check the role management hierarchy',
|
|
20
|
+
'Common managed roles: Coordinator, Client',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_MANAGED_STAKEHOLDER_ROLE, technicalMessage, context, suggestions);
|
|
10
23
|
this.name = 'InvalidManagedStakeholderRoleError';
|
|
11
24
|
}
|
|
12
25
|
static create(invalidRole, allowedRoles, contextMessage) {
|
|
13
26
|
return new InvalidManagedStakeholderRoleError(invalidRole, allowedRoles, contextMessage);
|
|
14
27
|
}
|
|
15
28
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
30
|
}
|
|
18
31
|
}
|
|
19
32
|
exports.InvalidManagedStakeholderRoleError = InvalidManagedStakeholderRoleError;
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidMeasurementUnitOperationError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidMeasurementUnitOperationError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(operation, currentUnit, requiredUnitType) {
|
|
7
|
-
|
|
8
|
+
const technicalMessage = `Cannot perform operation '${operation}' with measurement unit '${currentUnit}'. This operation requires ${requiredUnitType} units.`;
|
|
9
|
+
const context = {
|
|
10
|
+
operation,
|
|
11
|
+
currentUnit,
|
|
12
|
+
requiredUnitType,
|
|
13
|
+
errorType: 'unit_type_mismatch',
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
`Convert the measurement unit '${currentUnit}' to ${requiredUnitType} before performing the operation`,
|
|
18
|
+
`Ensure the operation '${operation}' is only called with compatible ${requiredUnitType} unit types`,
|
|
19
|
+
'Implement unit conversion logic to handle different measurement unit types',
|
|
20
|
+
'Validate measurement units before performing operations to prevent type mismatches',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_MEASUREMENT_UNIT_OPERATION, technicalMessage, context, suggestions);
|
|
8
23
|
this.operation = operation;
|
|
9
24
|
this.currentUnit = currentUnit;
|
|
10
25
|
this.requiredUnitType = requiredUnitType;
|
|
@@ -23,7 +38,7 @@ class InvalidMeasurementUnitOperationError extends RootError_1.RootError {
|
|
|
23
38
|
return this.requiredUnitType;
|
|
24
39
|
}
|
|
25
40
|
logError() {
|
|
26
|
-
return `${this.name}: ${this.
|
|
41
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
27
42
|
}
|
|
28
43
|
}
|
|
29
44
|
exports.InvalidMeasurementUnitOperationError = InvalidMeasurementUnitOperationError;
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidMinutesDurationError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidMinutesDurationError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(invalidValue) {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid duration value in minutes: ${invalidValue}. Duration must be a non-negative integer.`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue: invalidValue,
|
|
11
|
+
isNegative: invalidValue < 0,
|
|
12
|
+
isInteger: Number.isInteger(invalidValue),
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
'Provide a non-negative integer value for duration',
|
|
17
|
+
'Duration must be 0 or greater',
|
|
18
|
+
'Ensure the value is a whole number (no decimals)',
|
|
19
|
+
'Check that the value is not NaN or Infinity',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_MINUTES_DURATION, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidMinutesDurationError';
|
|
23
|
+
this.invalidValue = invalidValue;
|
|
10
24
|
}
|
|
11
25
|
static create(invalidValue) {
|
|
12
26
|
return new InvalidMinutesDurationError(invalidValue);
|
|
@@ -15,7 +29,7 @@ class InvalidMinutesDurationError extends RootError_1.RootError {
|
|
|
15
29
|
return this.invalidValue;
|
|
16
30
|
}
|
|
17
31
|
logError() {
|
|
18
|
-
return `${this.name}: ${this.
|
|
32
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
19
33
|
}
|
|
20
34
|
}
|
|
21
35
|
exports.InvalidMinutesDurationError = InvalidMinutesDurationError;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidNationalNumberError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidNationalNumberError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(nationalNumber) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid national number format: '${nationalNumber}'. It must contain 6-15 digits.`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue: nationalNumber,
|
|
11
|
+
valueLength: nationalNumber.length,
|
|
12
|
+
minLength: 6,
|
|
13
|
+
maxLength: 15,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Provide a national number with 6-15 digits',
|
|
18
|
+
'Remove any non-digit characters (spaces, hyphens, etc.)',
|
|
19
|
+
'Verify the national number is complete and correct',
|
|
20
|
+
'Check that the number matches the expected format for the country',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_NATIONAL_NUMBER, technicalMessage, context, suggestions);
|
|
9
23
|
this.name = 'InvalidNationalNumberError';
|
|
10
24
|
}
|
|
11
25
|
static create(nationalNumber) {
|
|
12
26
|
return new InvalidNationalNumberError(nationalNumber);
|
|
13
27
|
}
|
|
14
28
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
exports.InvalidNationalNumberError = InvalidNationalNumberError;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidPhoneNumberError = void 0;
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidPhoneNumberError extends CodedRootError_1.CodedRootError {
|
|
7
|
+
constructor(phoneNumber, reason) {
|
|
8
|
+
const technicalMessage = reason
|
|
9
|
+
? `Phone number '${phoneNumber}' is invalid: ${reason}`
|
|
10
|
+
: `Phone number '${phoneNumber}' has an invalid format`;
|
|
11
|
+
const context = {
|
|
12
|
+
phoneNumber,
|
|
13
|
+
reason,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Ensure the phone number follows the international format (e.g., +1234567890)',
|
|
18
|
+
'Include the country code at the beginning',
|
|
19
|
+
'Remove any spaces, dashes, or special characters',
|
|
20
|
+
'Verify the phone number has the correct number of digits',
|
|
21
|
+
'Check for invalid characters or formatting',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_PHONE_NUMBER, technicalMessage, context, suggestions);
|
|
24
|
+
this.name = 'InvalidPhoneNumberError';
|
|
25
|
+
}
|
|
26
|
+
static create(phoneNumber, reason) {
|
|
27
|
+
return new InvalidPhoneNumberError(phoneNumber, reason);
|
|
28
|
+
}
|
|
29
|
+
logError() {
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.InvalidPhoneNumberError = InvalidPhoneNumberError;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPropertyTypeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("./CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../enums/ErrorCode");
|
|
6
|
+
class InvalidPropertyTypeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(propertyName, expectedType, receivedType) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Invalid type for property '${propertyName}': expected ${expectedType}, but received ${receivedType}.`;
|
|
9
|
+
const context = {
|
|
10
|
+
propertyName,
|
|
11
|
+
expectedType,
|
|
12
|
+
receivedType,
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
`Ensure '${propertyName}' is of type ${expectedType}`,
|
|
17
|
+
`Convert the value from ${receivedType} to ${expectedType}`,
|
|
18
|
+
'Check the data type conversion in your request payload',
|
|
19
|
+
'Verify the API documentation for correct field types',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_PROPERTY_TYPE, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidPropertyTypeError';
|
|
10
23
|
}
|
|
11
24
|
static create(propertyName, expectedType, receivedType) {
|
|
12
25
|
return new InvalidPropertyTypeError(propertyName, expectedType, receivedType);
|
|
13
26
|
}
|
|
14
27
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
exports.InvalidPropertyTypeError = InvalidPropertyTypeError;
|