@carbonbox/domain 0.29.2 → 0.30.1
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/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/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/exceptions/InvalidCarbonClientAccountTypeError.js +18 -5
- package/build/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.js +19 -5
- 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/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/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/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/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.d.ts +2 -2
- package/build/types/carbonbox/stakeholders/carbon-coordinators/domain/exceptions/InvalidCarbonCoordinatorAvailabilityStatusError.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,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidContractTypeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidContractTypeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(contractType, validTypes) {
|
|
7
8
|
const validTypesText = validTypes.join(', ');
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const technicalMessage = `Invalid contract type '${contractType}'. Valid contract types are: ${validTypesText}`;
|
|
10
|
+
const context = {
|
|
11
|
+
contractType,
|
|
12
|
+
validTypes,
|
|
13
|
+
providedType: contractType,
|
|
14
|
+
allowedTypes: validTypesText,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Use one of the valid contract types: ${validTypesText}`,
|
|
19
|
+
'Verify the contract type configuration matches the system requirements',
|
|
20
|
+
'Check if the contract type enum has been updated recently',
|
|
21
|
+
'Contact support if you believe this contract type should be valid',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_CONTRACT_TYPE, technicalMessage, context, suggestions);
|
|
10
24
|
this.name = 'InvalidContractTypeError';
|
|
11
25
|
}
|
|
12
26
|
static create(contractType, validTypes) {
|
|
13
27
|
return new InvalidContractTypeError(contractType, validTypes);
|
|
14
28
|
}
|
|
15
29
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
exports.InvalidContractTypeError = InvalidContractTypeError;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidContractValueFactorError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidContractValueFactorError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Factor cannot be negative for contract values: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedFactor: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
isNegative: receivedValue < 0,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Ensure the contract value factor is a non-negative number (0 or greater)',
|
|
18
|
+
`The provided factor (${receivedValue}) is invalid. Use a positive value or zero`,
|
|
19
|
+
'Verify that the calculation producing this factor is correct',
|
|
20
|
+
'Check if there are any data validation issues in the contract value calculation',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_CONTRACT_VALUE_FACTOR, technicalMessage, context, suggestions);
|
|
9
23
|
this.name = 'InvalidContractValueFactorError';
|
|
10
24
|
}
|
|
11
25
|
static create(receivedValue) {
|
|
12
26
|
return new InvalidContractValueFactorError(receivedValue);
|
|
13
27
|
}
|
|
14
28
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
exports.InvalidContractValueFactorError = InvalidContractValueFactorError;
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPaymentScheduleError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidPaymentScheduleError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(paymentSchedule, validSchedules) {
|
|
7
8
|
const validSchedulesText = validSchedules.join(', ');
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const technicalMessage = `Invalid payment schedule '${paymentSchedule}'. Valid payment schedules are: ${validSchedulesText}`;
|
|
10
|
+
const context = {
|
|
11
|
+
paymentSchedule,
|
|
12
|
+
validSchedules,
|
|
13
|
+
providedSchedule: paymentSchedule,
|
|
14
|
+
allowedSchedules: validSchedulesText,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Use one of the valid payment schedules: ${validSchedulesText}`,
|
|
19
|
+
'Verify the payment schedule configuration matches the contract requirements',
|
|
20
|
+
'Check if the payment schedule enum has been updated recently',
|
|
21
|
+
'Ensure the payment schedule is compatible with the contract type',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_PAYMENT_SCHEDULE, technicalMessage, context, suggestions);
|
|
10
24
|
this.name = 'InvalidPaymentScheduleError';
|
|
11
25
|
}
|
|
12
26
|
static create(paymentSchedule, validSchedules) {
|
|
13
27
|
return new InvalidPaymentScheduleError(paymentSchedule, validSchedules);
|
|
14
28
|
}
|
|
15
29
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
exports.InvalidPaymentScheduleError = InvalidPaymentScheduleError;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidTaxRateError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidTaxRateError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Tax rate must be between 0 and 1: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedRate: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
maximumAllowedValue: 1,
|
|
14
|
+
isOutOfRange: receivedValue < 0 || receivedValue > 1,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
'Ensure the tax rate is a decimal value between 0 and 1 (e.g., 0.19 for 19%)',
|
|
19
|
+
`The provided tax rate (${receivedValue}) is out of range. Use a value from 0.0 to 1.0`,
|
|
20
|
+
'Verify that you are using decimal notation, not percentage (use 0.15 instead of 15)',
|
|
21
|
+
'Check if the tax rate calculation or data source is correct',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_TAX_RATE, technicalMessage, context, suggestions);
|
|
9
24
|
this.name = 'InvalidTaxRateError';
|
|
10
25
|
}
|
|
11
26
|
static create(receivedValue) {
|
|
12
27
|
return new InvalidTaxRateError(receivedValue);
|
|
13
28
|
}
|
|
14
29
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
31
|
}
|
|
17
32
|
}
|
|
18
33
|
exports.InvalidTaxRateError = InvalidTaxRateError;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidDiscountAmountFactorError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidDiscountAmountFactorError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Factor cannot be negative for discount amount multiplication: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedFactor: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
isNegative: receivedValue < 0,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Ensure the discount amount factor is a non-negative number (0 or greater)',
|
|
18
|
+
`The provided factor (${receivedValue}) is invalid. Use a positive value or zero`,
|
|
19
|
+
'Verify that the calculation producing this factor is correct',
|
|
20
|
+
'Check if there are any data validation issues in the discount calculation',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_DISCOUNT_AMOUNT_FACTOR, technicalMessage, context, suggestions);
|
|
9
23
|
this.name = 'InvalidDiscountAmountFactorError';
|
|
10
24
|
}
|
|
11
25
|
static create(receivedValue) {
|
|
12
26
|
return new InvalidDiscountAmountFactorError(receivedValue);
|
|
13
27
|
}
|
|
14
28
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
exports.InvalidDiscountAmountFactorError = InvalidDiscountAmountFactorError;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidFixedDiscountAmountError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidFixedDiscountAmountError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Fixed discount amount cannot be negative: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedAmount: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
isNegative: receivedValue < 0,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Ensure the fixed discount amount is a non-negative number (0 or greater)',
|
|
18
|
+
`The provided discount amount (${receivedValue}) is invalid. Use a positive value or zero`,
|
|
19
|
+
'Verify that the discount amount configuration is correct',
|
|
20
|
+
'Check if the discount was calculated or entered correctly',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_FIXED_DISCOUNT_AMOUNT, technicalMessage, context, suggestions);
|
|
9
23
|
this.name = 'InvalidFixedDiscountAmountError';
|
|
10
24
|
}
|
|
11
25
|
static create(receivedValue) {
|
|
12
26
|
return new InvalidFixedDiscountAmountError(receivedValue);
|
|
13
27
|
}
|
|
14
28
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
exports.InvalidFixedDiscountAmountError = InvalidFixedDiscountAmountError;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidMaximumSubtotalError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidMaximumSubtotalError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Maximum subtotal cannot be negative: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedMaximum: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
isNegative: receivedValue < 0,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Ensure the maximum subtotal is a non-negative number (0 or greater)',
|
|
18
|
+
`The provided maximum subtotal (${receivedValue}) is invalid. Use a positive value or zero`,
|
|
19
|
+
'Verify that the maximum subtotal configuration is correct',
|
|
20
|
+
'Check if the subtotal limit was calculated or entered correctly',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_MAXIMUM_SUBTOTAL, technicalMessage, context, suggestions);
|
|
9
23
|
this.name = 'InvalidMaximumSubtotalError';
|
|
10
24
|
}
|
|
11
25
|
static create(receivedValue) {
|
|
12
26
|
return new InvalidMaximumSubtotalError(receivedValue);
|
|
13
27
|
}
|
|
14
28
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
exports.InvalidMaximumSubtotalError = InvalidMaximumSubtotalError;
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPaymentMethodError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidPaymentMethodError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(paymentMethod, validMethods) {
|
|
7
8
|
const validMethodsText = validMethods.join(', ');
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const technicalMessage = `Invalid payment method '${paymentMethod}'. Valid payment methods are: ${validMethodsText}`;
|
|
10
|
+
const context = {
|
|
11
|
+
paymentMethod,
|
|
12
|
+
validMethods,
|
|
13
|
+
providedMethod: paymentMethod,
|
|
14
|
+
allowedMethods: validMethodsText,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Use one of the valid payment methods: ${validMethodsText}`,
|
|
19
|
+
'Verify the payment method configuration matches the order requirements',
|
|
20
|
+
'Check if the payment method enum has been updated recently',
|
|
21
|
+
'Ensure the payment method is supported by the system',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_PAYMENT_METHOD, technicalMessage, context, suggestions);
|
|
10
24
|
this.name = 'InvalidPaymentMethodError';
|
|
11
25
|
}
|
|
12
26
|
static create(paymentMethod, validMethods) {
|
|
13
27
|
return new InvalidPaymentMethodError(paymentMethod, validMethods);
|
|
14
28
|
}
|
|
15
29
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
exports.InvalidPaymentMethodError = InvalidPaymentMethodError;
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPaymentStatusError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidPaymentStatusError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(paymentStatus, validStatuses) {
|
|
7
8
|
const validStatusesText = validStatuses.join(', ');
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const technicalMessage = `Invalid payment status '${paymentStatus}'. Valid payment statuses are: ${validStatusesText}`;
|
|
10
|
+
const context = {
|
|
11
|
+
paymentStatus,
|
|
12
|
+
validStatuses,
|
|
13
|
+
providedStatus: paymentStatus,
|
|
14
|
+
allowedStatuses: validStatusesText,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Use one of the valid payment statuses: ${validStatusesText}`,
|
|
19
|
+
'Verify the payment status transition is allowed for this order',
|
|
20
|
+
'Check if the payment status enum has been updated recently',
|
|
21
|
+
'Ensure the payment workflow is correctly configured',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_PAYMENT_STATUS, technicalMessage, context, suggestions);
|
|
10
24
|
this.name = 'InvalidPaymentStatusError';
|
|
11
25
|
}
|
|
12
26
|
static create(paymentStatus, validStatuses) {
|
|
13
27
|
return new InvalidPaymentStatusError(paymentStatus, validStatuses);
|
|
14
28
|
}
|
|
15
29
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
exports.InvalidPaymentStatusError = InvalidPaymentStatusError;
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPercentageRangeError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidPercentageRangeError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Percentage must be between 0 and 100: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedPercentage: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
maximumAllowedValue: 100,
|
|
14
|
+
isOutOfRange: receivedValue < 0 || receivedValue > 100,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
'Ensure the percentage is a value between 0 and 100 (inclusive)',
|
|
19
|
+
`The provided percentage (${receivedValue}) is out of range. Use a value from 0 to 100`,
|
|
20
|
+
'Verify that you are using percentage notation, not decimal (use 15 instead of 0.15)',
|
|
21
|
+
'Check if the percentage calculation or data source is correct',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_PERCENTAGE_RANGE, technicalMessage, context, suggestions);
|
|
9
24
|
this.name = 'InvalidPercentageRangeError';
|
|
10
25
|
}
|
|
11
26
|
static create(receivedValue) {
|
|
12
27
|
return new InvalidPercentageRangeError(receivedValue);
|
|
13
28
|
}
|
|
14
29
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
31
|
}
|
|
17
32
|
}
|
|
18
33
|
exports.InvalidPercentageRangeError = InvalidPercentageRangeError;
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidPurchaseOrderStatusError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidPurchaseOrderStatusError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(orderStatus, validStatuses) {
|
|
7
8
|
const validStatusesText = validStatuses.join(', ');
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const technicalMessage = `Invalid purchase order status '${orderStatus}'. Valid purchase order statuses are: ${validStatusesText}`;
|
|
10
|
+
const context = {
|
|
11
|
+
orderStatus,
|
|
12
|
+
validStatuses,
|
|
13
|
+
providedStatus: orderStatus,
|
|
14
|
+
allowedStatuses: validStatusesText,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Use one of the valid purchase order statuses: ${validStatusesText}`,
|
|
19
|
+
'Verify the order status transition is allowed in the current workflow',
|
|
20
|
+
'Check if the purchase order status enum has been updated recently',
|
|
21
|
+
'Ensure the order status workflow is correctly configured',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_PURCHASE_ORDER_STATUS, technicalMessage, context, suggestions);
|
|
10
24
|
this.name = 'InvalidPurchaseOrderStatusError';
|
|
11
25
|
}
|
|
12
26
|
static create(orderStatus, validStatuses) {
|
|
13
27
|
return new InvalidPurchaseOrderStatusError(orderStatus, validStatuses);
|
|
14
28
|
}
|
|
15
29
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
exports.InvalidPurchaseOrderStatusError = InvalidPurchaseOrderStatusError;
|
|
@@ -1,18 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidSubtotalAmountError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidSubtotalAmountError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Subtotal amount cannot be negative: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
providedAmount: receivedValue,
|
|
12
|
+
minimumAllowedValue: 0,
|
|
13
|
+
isNegative: receivedValue < 0,
|
|
14
|
+
timestamp: new Date().toISOString(),
|
|
15
|
+
};
|
|
16
|
+
const suggestions = [
|
|
17
|
+
'Ensure the subtotal amount is a non-negative number (0 or greater)',
|
|
18
|
+
`The provided subtotal amount (${receivedValue}) is invalid. Use a positive value or zero`,
|
|
19
|
+
'Verify that the subtotal calculation is correct',
|
|
20
|
+
'Check if there are any data validation issues in the order items',
|
|
21
|
+
];
|
|
22
|
+
super(ErrorCode_1.ErrorCode.INVALID_SUBTOTAL_AMOUNT, technicalMessage, context, suggestions);
|
|
9
23
|
this.name = 'InvalidSubtotalAmountError';
|
|
10
24
|
}
|
|
11
25
|
static create(receivedValue) {
|
|
12
26
|
return new InvalidSubtotalAmountError(receivedValue);
|
|
13
27
|
}
|
|
14
28
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
29
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
30
|
}
|
|
17
31
|
}
|
|
18
32
|
exports.InvalidSubtotalAmountError = InvalidSubtotalAmountError;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidSubtotalAmountFactorError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidSubtotalAmountFactorError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Factor cannot be negative for subtotal amount multiplication: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
constraint: 'must be greater than or equal to 0',
|
|
12
|
+
operation: 'subtotal amount multiplication',
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
'Verify that the factor is a positive number or zero',
|
|
17
|
+
'Check if there is a calculation error producing a negative factor',
|
|
18
|
+
'Ensure the factor calculation logic is correctly implemented',
|
|
19
|
+
'Review the source values used to calculate the factor',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_SUBTOTAL_AMOUNT_FACTOR, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidSubtotalAmountFactorError';
|
|
10
23
|
}
|
|
11
24
|
static create(receivedValue) {
|
|
12
25
|
return new InvalidSubtotalAmountFactorError(receivedValue);
|
|
13
26
|
}
|
|
14
27
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
exports.InvalidSubtotalAmountFactorError = InvalidSubtotalAmountFactorError;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidTaxAmountFactorError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidTaxAmountFactorError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Factor cannot be negative for tax amount multiplication: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
constraint: 'must be greater than or equal to 0',
|
|
12
|
+
operation: 'tax amount multiplication',
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
'Verify that the factor is a positive number or zero',
|
|
17
|
+
'Check if there is a calculation error producing a negative factor',
|
|
18
|
+
'Ensure the tax calculation logic is correctly implemented',
|
|
19
|
+
'Review the source values used to calculate the tax factor',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_TAX_AMOUNT_FACTOR, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidTaxAmountFactorError';
|
|
10
23
|
}
|
|
11
24
|
static create(receivedValue) {
|
|
12
25
|
return new InvalidTaxAmountFactorError(receivedValue);
|
|
13
26
|
}
|
|
14
27
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
exports.InvalidTaxAmountFactorError = InvalidTaxAmountFactorError;
|
|
@@ -1,18 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidTotalAmountFactorError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidTotalAmountFactorError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue) {
|
|
7
|
-
const
|
|
8
|
-
|
|
8
|
+
const technicalMessage = `Factor cannot be negative for total amount multiplication: ${receivedValue}`;
|
|
9
|
+
const context = {
|
|
10
|
+
receivedValue,
|
|
11
|
+
constraint: 'must be greater than or equal to 0',
|
|
12
|
+
operation: 'total amount multiplication',
|
|
13
|
+
timestamp: new Date().toISOString(),
|
|
14
|
+
};
|
|
15
|
+
const suggestions = [
|
|
16
|
+
'Verify that the factor is a positive number or zero',
|
|
17
|
+
'Check if there is a calculation error producing a negative factor',
|
|
18
|
+
'Ensure the total amount calculation logic is correctly implemented',
|
|
19
|
+
'Review the source values used to calculate the total factor',
|
|
20
|
+
];
|
|
21
|
+
super(ErrorCode_1.ErrorCode.INVALID_TOTAL_AMOUNT_FACTOR, technicalMessage, context, suggestions);
|
|
9
22
|
this.name = 'InvalidTotalAmountFactorError';
|
|
10
23
|
}
|
|
11
24
|
static create(receivedValue) {
|
|
12
25
|
return new InvalidTotalAmountFactorError(receivedValue);
|
|
13
26
|
}
|
|
14
27
|
logError() {
|
|
15
|
-
return `${this.name}: ${this.
|
|
28
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
16
29
|
}
|
|
17
30
|
}
|
|
18
31
|
exports.InvalidTotalAmountFactorError = InvalidTotalAmountFactorError;
|
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InvalidExpertDedicationLevelError = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const CodedRootError_1 = require("../../../../shared/domain/exceptions/CodedRootError");
|
|
5
|
+
const ErrorCode_1 = require("../../../../shared/domain/enums/ErrorCode");
|
|
6
|
+
class InvalidExpertDedicationLevelError extends CodedRootError_1.CodedRootError {
|
|
6
7
|
constructor(receivedValue, validLevels) {
|
|
7
8
|
const validLevelsList = validLevels.join(', ');
|
|
8
|
-
const
|
|
9
|
-
|
|
9
|
+
const technicalMessage = `Invalid expert dedication level value '${receivedValue}': must be one of ${validLevelsList}.`;
|
|
10
|
+
const context = {
|
|
11
|
+
receivedValue,
|
|
12
|
+
validLevels,
|
|
13
|
+
providedLevel: receivedValue,
|
|
14
|
+
allowedLevels: validLevelsList,
|
|
15
|
+
timestamp: new Date().toISOString(),
|
|
16
|
+
};
|
|
17
|
+
const suggestions = [
|
|
18
|
+
`Use one of the valid expert dedication levels: ${validLevelsList}`,
|
|
19
|
+
'Verify the dedication level configuration matches the service requirements',
|
|
20
|
+
'Check if the ExpertDedicationLevel enum has been updated recently',
|
|
21
|
+
'Ensure the dedication level is appropriate for the type of service',
|
|
22
|
+
];
|
|
23
|
+
super(ErrorCode_1.ErrorCode.INVALID_EXPERT_DEDICATION_LEVEL, technicalMessage, context, suggestions);
|
|
10
24
|
this.name = 'InvalidExpertDedicationLevelError';
|
|
11
25
|
}
|
|
12
26
|
static create(receivedValue, validLevels) {
|
|
13
27
|
return new InvalidExpertDedicationLevelError(receivedValue, validLevels);
|
|
14
28
|
}
|
|
15
29
|
logError() {
|
|
16
|
-
return `${this.name}: ${this.
|
|
30
|
+
return `${this.name}: ${this.technicalMessage}`;
|
|
17
31
|
}
|
|
18
32
|
}
|
|
19
33
|
exports.InvalidExpertDedicationLevelError = InvalidExpertDedicationLevelError;
|