@carbonbox/domain 0.51.0 → 0.52.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/emission-calculation-formulas/emission-factors/domain/entity/EmissionFactor.js +44 -2
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/enums/BiogenicContent.js +26 -0
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InconsistentEmissionFactorBiogenicContentError.js +40 -0
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidBiogenicContentError.js +32 -0
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorBiogenicContent.js +60 -0
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorGreenhouseGasValues.js +2 -0
- package/build/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.js +2 -0
- package/build/carbonbox/shared/domain/enums/ErrorCode.js +3 -1
- package/build/carbonbox/shared/domain/enums/StandardGreenhouseGasSpecies.js +36 -0
- package/build/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.js +67 -4
- package/build/main/index.js +26 -16
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/EmissionFactor.d.ts +12 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/EmissionFactor.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/IEmissionFactor.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/IEmissionFactor.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/enums/BiogenicContent.d.ts +23 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/enums/BiogenicContent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InconsistentEmissionFactorBiogenicContentError.d.ts +8 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InconsistentEmissionFactorBiogenicContentError.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidBiogenicContentError.d.ts +8 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidBiogenicContentError.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorPrimitives.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorProps.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorProps.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorBiogenicContent.d.ts +27 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorBiogenicContent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorGreenhouseGasValues.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts +2 -0
- package/build/types/carbonbox/shared/domain/enums/ErrorCode.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/enums/StandardGreenhouseGasSpecies.d.ts +33 -0
- package/build/types/carbonbox/shared/domain/enums/StandardGreenhouseGasSpecies.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.d.ts +35 -4
- package/build/types/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.d.ts.map +1 -1
- package/build/types/main/index.d.ts +5 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
package/build/main/index.js
CHANGED
|
@@ -8,22 +8,22 @@ exports.UnknownFootprintTypeError = exports.InvalidUncertaintySourceError = expo
|
|
|
8
8
|
exports.ProductConfigurationCarbonFootprintSubsegmentCode = exports.ProductConfigurationCarbonFootprintSubsegmentId = exports.ProductConfigurationCarbonFootprintSegmentName = exports.ProductConfigurationCarbonFootprintSegmentCode = exports.ProductConfigurationCarbonFootprintSegmentId = exports.CorporateConfigurationCarbonFootprintSegmentName = exports.CorporateConfigurationCarbonFootprintSegmentCode = exports.CorporateConfigurationCarbonFootprintSegmentId = exports.CorporateCarbonFootprintSegmentConfigurationEmissionSourceConfigurations = exports.CorporateCarbonFootprintSegmentConfigurationSubsegment = exports.CorporateCarbonFootprintSegmentConfigurationSegment = exports.CorporateCarbonFootprintSegmentConfigurationId = exports.CorporateCarbonFootprintConfigurationSegmentConfigurations = exports.CorporateCarbonFootprintConfigurationBaseYear = exports.CorporateCarbonFootprintConfigurationExecutionPeriod = exports.CorporateCarbonFootprintConfigurationIntensityIndicatorConfigurations = exports.CorporateCarbonFootprintConfigurationCollectionPeriod = exports.CorporateCarbonFootprintConfigurationCarbonFootprintObjective = exports.CorporateCarbonFootprintConfigurationFacilities = exports.CorporateCarbonFootprintConfigurationReportingStandard = exports.CorporateCarbonFootprintConfigurationCreatedByStakeholder = exports.CorporateCarbonFootprintConfigurationOwnedByCarbonClient = exports.CorporateCarbonFootprintConfigurationFootprintType = exports.CorporateCarbonFootprintConfigurationStatus = exports.CorporateCarbonFootprintConfigurationName = exports.CorporateCarbonFootprintConfigurationId = exports.CarbonFootprintSubsegment = exports.CarbonFootprintSegment = exports.CarbonFootprintIntensityIndicator = exports.CarbonFootprintConfiguration = exports.ProductConfigurationSystemBoundary = exports.ProductConfigurationCarbonFootprintSubsegment = exports.ProductConfigurationCarbonFootprintSegment = exports.ProductCarbonFootprintSegmentConfiguration = exports.ProductCarbonFootprintConfiguration = exports.EventEditionConfigurationCarbonFootprintSubsegment = exports.EventEditionLifecycleStage = exports.EventEditionLifecycleStageConfiguration = exports.EventCarbonFootprintConfiguration = exports.CorporateConfigurationCarbonFootprintSubsegment = exports.CorporateConfigurationCarbonFootprintSegment = exports.CorporateCarbonFootprintSegmentConfiguration = exports.CorporateCarbonFootprintConfiguration = exports.UnknownConditionalActionCategoryError = exports.TriggerValueStringOperationError = exports.TriggerValueConversionError = exports.TriggerValueComparisonError = exports.InvalidTriggerValueError = exports.InvalidConditionalActionError = exports.UnknownReportingStandardError = void 0;
|
|
9
9
|
exports.CarbonFootprintSubsegmentName = exports.CarbonFootprintSubsegmentCode = exports.CarbonFootprintSubsegmentId = exports.CarbonFootprintSegmentName = exports.CarbonFootprintSegmentCode = exports.CarbonFootprintSegmentId = exports.CarbonFootprintConfigurationReportingStandard = exports.CarbonFootprintConfigurationCollectionPeriod = exports.CarbonFootprintConfigurationFootprintType = exports.CarbonFootprintConfigurationStatus = exports.CarbonFootprintConfigurationName = exports.CarbonFootprintConfigurationId = exports.ProductCarbonFootprintConfigurationProduct = exports.ProductCarbonFootprintConfigurationSystemBoundary = exports.ProductCarbonFootprintConfigurationReportingStandard = exports.ProductCarbonFootprintConfigurationCreatedByStakeholder = exports.ProductCarbonFootprintConfigurationOwnedByCarbonClient = exports.ProductCarbonFootprintConfigurationFootprintType = exports.ProductCarbonFootprintConfigurationStatus = exports.ProductCarbonFootprintConfigurationName = exports.ProductCarbonFootprintConfigurationId = exports.EventEditionConfigurationCarbonFootprintSubsegmentDescription = exports.EventEditionConfigurationCarbonFootprintSubsegmentName = exports.EventEditionConfigurationCarbonFootprintSubsegmentCode = exports.EventEditionConfigurationCarbonFootprintSubsegmentId = exports.EventEditionLifecycleStageConfigurationSubsegment = exports.EventEditionLifecycleStageConfigurationStage = exports.EventEditionLifecycleStageConfigurationId = exports.EventEditionLifecycleStageIncludedSubsegments = exports.EventEditionLifecycleStageExecutionPeriod = exports.EventEditionLifecycleStageDescription = exports.EventEditionLifecycleStageIsActive = exports.EventEditionLifecycleStageName = exports.EventEditionLifecycleStageCode = exports.EventEditionLifecycleStageId = exports.EventCarbonFootprintConfigurationEventEdition = exports.EventCarbonFootprintConfigurationReportingStandard = exports.EventCarbonFootprintConfigurationCreatedByStakeholder = exports.EventCarbonFootprintConfigurationOwnedByCarbonClient = exports.EventCarbonFootprintConfigurationFootprintType = exports.EventCarbonFootprintConfigurationStatus = exports.EventCarbonFootprintConfigurationName = exports.EventCarbonFootprintConfigurationId = exports.CorporateConfigurationCarbonFootprintSubsegmentDescription = exports.CorporateConfigurationCarbonFootprintSubsegmentName = exports.CorporateConfigurationCarbonFootprintSubsegmentCode = exports.CorporateConfigurationCarbonFootprintSubsegmentId = exports.CorporateConfigurationCarbonFootprintSegmentIncludedSubsegments = exports.CorporateConfigurationCarbonFootprintSegmentDescription = exports.ProductConfigurationCarbonFootprintSubsegmentName = void 0;
|
|
10
10
|
exports.ProductName = exports.ProductCode = exports.ProductId = exports.FacilityIsPrimaryFacility = exports.FacilityOperationalScope = exports.FacilityAddress = exports.FacilityCommercialBranchName = exports.FacilityId = exports.EventEditionStaffCount = exports.EventEditionExpectedAttendees = exports.EventEditionReferenceVenue = exports.EventEditionExecutionPeriod = exports.EventEditionParentEvent = exports.EventEditionName = exports.EventEditionCode = exports.EventEditionId = exports.EventEditions = exports.EventDescription = exports.EventName = exports.EventCode = exports.EventId = exports.Product = exports.Facility = exports.EventEdition = exports.Event = exports.CarbonFootprintConfigurationsInvalidReportingStandardError = exports.InvalidConfigurationStatusError = exports.InvalidCollectionPeriodError = exports.InvalidCarbonFootprintTypeError = exports.CarbonFootprintConfigurationCompletionPolicy = exports.CarbonFootprintConfigurationActivationPolicy = exports.CarbonFootprintConfigurationCompletionRequirementEnum = exports.CarbonFootprintConfigurationActivationRequirementEnum = exports.IntensityIndicatorEnum = exports.ConfigurationStatusEnum = exports.CollectionPeriodEnum = exports.CarbonFootprintEnum = exports.EventLifecycleStageEnum = exports.ProductMeasurementUnitEnum = exports.MeasurementUnitTypeEnum = exports.CarbonFootprintIntensityIndicatorIsCustom = exports.CarbonFootprintIntensityIndicatorCalculationMethod = exports.CarbonFootprintIntensityIndicatorBenchmarkValue = exports.CarbonFootprintIntensityIndicatorTargetValue = exports.CarbonFootprintIntensityIndicatorMeasurementUnit = exports.CarbonFootprintIntensityIndicatorConfigurationScope = exports.CarbonFootprintIntensityIndicatorType = exports.CarbonFootprintIntensityIndicatorName = exports.CarbonFootprintIntensityIndicatorCode = exports.CarbonFootprintIntensityIndicatorId = void 0;
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.InvalidIdentityDocumentTypeError = exports.CarbonClientIdentityDocument = exports.CarbonCoordinatorIdentityDocument = exports.CarbonManagerIdentityDocument = exports.StakeholderIdentityDocument = exports.IdentityDocument = exports.IdentityDocumentTypeEnum = exports.CompanyServiceEntitlementValidTo = exports.CompanyServiceEntitlementValidFrom = exports.CompanyServiceEntitlementAdditionalUserRoles = exports.CompanyServiceEntitlementMaxUsers = exports.CompanyServiceEntitlementIsAvailableForEvent = exports.CompanyServiceEntitlementIsAvailableForProduct = exports.CompanyServiceEntitlementIsAvailableForCorporate = exports.CompanyServiceEntitlementIncludesEsgIndicators = exports.CompanyServiceEntitlementIncludesCarbonBoxAcademy = exports.CompanyServiceEntitlementAllowsSectoralComparison = exports.CompanyServiceEntitlementAllowsDocumentReading = exports.CompanyServiceEntitlementSourceContractIds = exports.CompanyServiceEntitlementActiveServiceCodes = exports.CompanyServiceEntitlementCarbonClientId = exports.CompanyServiceEntitlementId = exports.ServiceCapabilityPolicy = exports.CompanyServiceEntitlement = exports.PurchaseContractServiceRemovedDomainEvent = exports.PurchaseContractServiceAddedDomainEvent = exports.PurchaseContractRenewedDomainEvent = exports.PurchaseContractExpiredDomainEvent = exports.PurchaseContractCancelledDomainEvent = void 0;
|
|
11
|
+
exports.InvalidMethodologicalTierError = exports.InvalidIpccCodeError = exports.EmissionFactorBiogenicContent = exports.EmissionFactorMethodologicalTier = exports.EmissionFactorIpccSubcategory = exports.EmissionFactorIpccCode = exports.EmissionFactorInformationSource = exports.EmissionFactorGreenhouseGasValues = exports.EmissionFactorDescription = exports.EmissionFactorName = exports.EmissionFactorCode = exports.EmissionFactorId = exports.InvalidCalculationVariableResolutionStrategyError = exports.InvalidCalculationVariableActivityDataConditionsForStrategyError = exports.CalculationVariableOptions = exports.CalculationVariableActivityDataConditions = exports.CalculationVariableDefaultValue = exports.CalculationVariableDescription = exports.CalculationVariableResolutionStrategy = exports.CalculationVariableResolutionStrategyEnum = exports.CalculationVariableDataType = exports.CalculationVariableSymbol = exports.CalculationVariableName = exports.CalculationVariableCode = exports.CalculationVariableId = exports.EmissionCalculationFormulaActivityVariableSymbol = exports.EmissionCalculationFormulaGlobalWarmingPotential = exports.EmissionCalculationFormulaEmissionFactor = exports.EmissionCalculationFormulaApplicableGreenhouseGases = exports.EmissionCalculationFormulaInformationSource = exports.EmissionCalculationFormulaSearchTags = exports.EmissionCalculationFormulaCreatedByStakeholder = exports.EmissionCalculationFormulaEmissionSource = exports.EmissionCalculationFormulaSelectionCriteria = exports.EmissionCalculationFormulaVariables = exports.EmissionCalculationFormulaResultUnit = exports.EmissionCalculationFormulaStatus = exports.EmissionCalculationFormulaExpression = exports.EmissionCalculationFormulaDescription = exports.EmissionCalculationFormulaName = exports.EmissionCalculationFormulaCode = exports.EmissionCalculationFormulaId = exports.GlobalWarmingPotential = exports.EmissionFactor = exports.CalculationVariable = exports.EmissionCalculationFormula = exports.InvalidOperationalScopeError = exports.OperationalScopeTypeEnum = exports.ProductProductionLocation = exports.ProductDescription = void 0;
|
|
12
|
+
exports.CalculationProcessMaxRetries = exports.CalculationProcessProcessNotes = exports.CalculationProcessSubmissionsToProcess = exports.CalculationProcessDependencies = exports.CalculationProcessEstimatedDuration = exports.CalculationProcessScheduledAt = exports.CalculationProcessExecutedByStakeholder = exports.CalculationProcessCarbonClient = exports.CalculationProcessFootprintConfiguration = exports.CalculationProcessCompletedAt = exports.CalculationProcessStartedAt = exports.CalculationProcessProgressPercentage = exports.CalculationProcessPriority = exports.CalculationProcessStatus = exports.CalculationProcessId = exports.CalculationJobAggregationsGenerated = exports.CalculationJobCalculationsGenerated = exports.CalculationJobRecordsProcessed = exports.CalculationJobMaxRetries = exports.CalculationJobDependsOnJobs = exports.CalculationJobInputFormulas = exports.CalculationJobInputSubmissions = exports.CalculationJobSequenceOrder = exports.CalculationJobParentProcess = exports.CalculationJobCompletedAt = exports.CalculationJobStartedAt = exports.CalculationJobProgressPercentage = exports.CalculationJobStatus = exports.CalculationJobType = exports.CalculationJobId = exports.CalculationWorkflow = exports.CalculationProcess = exports.CalculationJob = exports.UnauthorizedFormulaCreationRoleError = exports.InvalidEmissionCalculationFormulaActivityVariableSymbolError = exports.InvalidGreenhouseGasTypeError = exports.DuplicateGreenhouseGasError = exports.BiogenicContentEnum = exports.MethodologicalTierEnum = exports.ResultUnitEnum = exports.FormulaStatusEnum = exports.GlobalWarmingPotentialInformationSource = exports.GlobalWarmingPotentialGreenhouseGasPotentials = exports.GlobalWarmingPotentialValidityPeriod = exports.GlobalWarmingPotentialTimeHorizonYears = exports.GlobalWarmingPotentialProtocolVersion = exports.GlobalWarmingPotentialReferenceName = exports.GlobalWarmingPotentialId = exports.InconsistentEmissionFactorBiogenicContentError = exports.InvalidBiogenicContentError = void 0;
|
|
13
|
+
exports.GHGEmissionResultEmissionCalculation = exports.GHGEmissionResultId = exports.EmissionAggregationGhgBreakdown = exports.EmissionAggregationUncertaintyPercentage = exports.EmissionAggregationTotalCO2Equivalent = exports.EmissionAggregationEmissionSource = exports.EmissionAggregationEmissionCalculation = exports.EmissionAggregationId = exports.EmissionCalculationDimensions = exports.EmissionCalculationFootprintConfiguration = exports.EmissionCalculationEmissionSource = exports.EmissionCalculationCalculatedByStakeholder = exports.EmissionCalculationCalculatedAt = exports.EmissionCalculationCarbonClient = exports.EmissionCalculationEmissionCalculationFormula = exports.EmissionCalculationActivityDataSubmission = exports.EmissionCalculationStatus = exports.EmissionCalculationId = exports.GHGEmissionResult = exports.EmissionAggregation = exports.EmissionCalculation = exports.WorkflowTriggerEnum = exports.WorkflowStatusEnum = exports.ProcessStatusEnum = exports.ProcessPriorityEnum = exports.JobTypeEnum = exports.JobStatusEnum = exports.CalculationWorkflowWorkflowNotes = exports.CalculationWorkflowNotificationRecipients = exports.CalculationWorkflowEmailNotifications = exports.CalculationWorkflowAllowedExecutors = exports.CalculationWorkflowRetryFailedJobs = exports.CalculationWorkflowTimeoutMinutes = exports.CalculationWorkflowMaxConcurrentProcesses = exports.CalculationWorkflowConditionalSteps = exports.CalculationWorkflowParallelJobs = exports.CalculationWorkflowJobSequence = exports.CalculationWorkflowTriggerSchedule = exports.CalculationWorkflowCreatedByStakeholder = exports.CalculationWorkflowCarbonClient = exports.CalculationWorkflowFootprintType = exports.CalculationWorkflowIsAutomatic = exports.CalculationWorkflowTriggerType = exports.CalculationWorkflowStatus = exports.CalculationWorkflowDescription = exports.CalculationWorkflowName = exports.CalculationWorkflowCode = exports.CalculationWorkflowId = exports.CalculationProcessParentWorkflow = exports.CalculationProcessCalculationsGenerated = void 0;
|
|
14
|
+
exports.PurchaseContractCarbonBoxSignedBy = exports.PurchaseContractCarbonBoxSignedAt = exports.PurchaseContractInternalNotes = exports.PurchaseContractAttachments = exports.PurchaseContractSpecialTerms = exports.PurchaseContractTerminationClause = exports.PurchaseContractDataProtectionClause = exports.PurchaseContractConfidentialityClause = exports.PurchaseContractJurisdiction = exports.PurchaseContractGoverningLaw = exports.PurchaseContractPaymentSchedule = exports.PurchaseContractCustomPaymentTerms = exports.PurchaseContractPaymentTerms = exports.PurchaseContractCurrency = exports.PurchaseContractContractServices = exports.PurchaseContractRenewalTerms = exports.PurchaseContractIsRenewable = exports.PurchaseContractDuration = exports.PurchaseContractCarbonClientContactPhone = exports.PurchaseContractCarbonClientContactEmail = exports.PurchaseContractCarbonClientContactName = exports.PurchaseContractCarbonClientAddress = exports.PurchaseContractCarbonClientTaxIdentification = exports.PurchaseContractCarbonClientLegalName = exports.PurchaseContractCarbonClientCompanyName = exports.PurchaseContractCreatedByStakeholder = exports.PurchaseContractTotalContractValue = exports.PurchaseContractEndDate = exports.PurchaseContractStartDate = exports.PurchaseContractCarbonClientId = exports.PurchaseContractType = exports.PurchaseContractStatus = exports.PurchaseContractTitle = exports.PurchaseContractCode = exports.PurchaseContractId = exports.ServicePricing = exports.ServiceCatalog = exports.PurchaseOrder = exports.PurchaseContract = exports.UnknownGreenhouseGasCategoryError = exports.UncertaintyLevelEnum = exports.CalculationStatusEnum = exports.GHGEmissionResultUnit = exports.GHGEmissionResultCo2Equivalent = exports.GHGEmissionResultRawEmission = exports.GHGEmissionResultGlobalWarmingPotential = exports.GHGEmissionResultEmissionFactor = exports.GHGEmissionResultActivityValue = exports.GreenhouseGasSpecies = exports.GHGEmissionResultGreenhouseGas = void 0;
|
|
15
|
+
exports.ServiceCatalogIncludesESGIndicators = exports.ServiceCatalogAdditionalUserRoles = exports.ServiceCatalogReportTypes = exports.ServiceCatalogExpertDedicationLevel = exports.ServiceCatalogFixedPriceAmount = exports.ServiceCatalogAllowsSectoralComparison = exports.ServiceCatalogIsAvailableForEvent = exports.ServiceCatalogIsAvailableForCorporate = exports.ServiceCatalogIsAvailableForProduct = exports.ServiceCatalogAllowsDocumentReading = exports.ServiceCatalogIncludesCarbonBoxAcademy = exports.ServiceCatalogMaxUsers = exports.ServiceCatalogHasFixedPrice = exports.ServiceCatalogBasePricePercentage = exports.ServiceCatalogHasBasePrice = exports.ServiceCatalogIsRequiredService = exports.ServiceCatalogCreatedByStakeholder = exports.ServiceCatalogDependsOnServiceCode = exports.ServiceCatalogStatus = exports.ServiceCatalogType = exports.ServiceCatalogCategory = exports.ServiceCatalogDescription = exports.ServiceCatalogName = exports.ServiceCatalogCode = exports.ServiceCatalogId = exports.PurchaseOrderActualDeliveryDate = exports.PurchaseOrderRejectionReason = exports.PurchaseOrderApprovedByStakeholder = exports.PurchaseOrderClientNotes = exports.PurchaseOrderInternalNotes = exports.PurchaseOrderExpectedDeliveryDate = exports.PurchaseOrderCurrency = exports.PurchaseOrderItems = exports.PurchaseOrderCarbonClientContactPhone = exports.PurchaseOrderCarbonClientContactEmail = exports.PurchaseOrderCarbonClientContactName = exports.PurchaseOrderCarbonClientLegalName = exports.PurchaseOrderCarbonClientCompanyName = exports.PurchaseOrderCreatedByStakeholder = exports.PurchaseOrderTotalAmount = exports.PurchaseOrderSubtotalAmount = exports.PurchaseOrderPaymentStatus = exports.PurchaseOrderPaymentMethod = exports.PurchaseOrderDate = exports.PurchaseOrderCarbonClientId = exports.PurchaseOrderStatus = exports.PurchaseOrderCode = exports.PurchaseOrderId = exports.PurchaseContractCarbonClientSignedBy = exports.PurchaseContractCarbonClientSignedAt = void 0;
|
|
16
|
+
exports.InvalidPaymentTermsError = exports.InvalidPaymentScheduleError = exports.InvalidContractValueFactorError = exports.InvalidContractTypeError = exports.InvalidContractStatusError = exports.PricingStatusEnum = exports.PricingModelEnum = exports.UserRoleEnum = exports.ServiceCatalogReportTypeEnum = exports.ExpertDedicationLevelEnum = exports.ServiceCatalogStatusEnum = exports.ServiceCatalogTypeEnum = exports.ServiceCatalogCategoryEnum = exports.PaymentStatusEnum = exports.PaymentMethodEnum = exports.OrderStatusEnum = exports.PaymentTermsEnum = exports.PaymentScheduleEnum = exports.ContractDurationUnitEnum = exports.ContractTypeEnum = exports.ContractStatusEnum = exports.ServicePricingInternalNotes = exports.ServicePricingPricingNotes = exports.ServicePricingValidToDate = exports.ServicePricingValidFromDate = exports.ServicePricingPromotionalDiscountPercentage = exports.ServicePricingPromotionalEndDate = exports.ServicePricingPromotionalStartDate = exports.ServicePricingPromotionalPricing = exports.ServicePricingMaxDiscountPercentage = exports.ServicePricingAllowsDiscounts = exports.ServicePricingMaximumUnits = exports.ServicePricingMinimumUnits = exports.ServicePricingUsageUnit = exports.ServicePricingPercentageMarkup = exports.ServicePricingRequiresEmployeeTierPricing = exports.ServicePricingEmployeeTierConfigurations = exports.ServicePricingRequiresSectorPricing = exports.ServicePricingSectorPricingConfigurations = exports.ServicePricingMaximumPrice = exports.ServicePricingMinimumPrice = exports.ServicePricingCreatedByStakeholder = exports.ServicePricingBaseServiceReferenceCode = exports.ServicePricingCurrency = exports.ServicePricingPricePerUnit = exports.ServicePricingBasePrice = exports.ServicePricingPricingStatus = exports.ServicePricingPricingModel = exports.ServicePricingService = exports.ServicePricingId = void 0;
|
|
17
|
+
exports.ReportInstanceCannotBeGeneratedError = exports.VerificationTypeEnum = exports.AssuranceLevelEnum = exports.ReportTypeEnum = exports.ReportStatusEnum = exports.QuestionnaireQuestionOriginEnum = exports.ClientInputFieldTypeEnum = exports.DataBindingSourceEnum = exports.BlockNatureEnum = exports.ReportPreparationQuestionnaireStatusEnum = exports.ReportTemplateStatusEnum = exports.ReportInstanceStatusEnum = exports.ReportAssurance = exports.ReportSection = exports.ReportPreparationQuestionnaireCompletion = exports.PreparationAnswer = exports.PreparationQuestion = exports.ReportPreparationQuestionnaireId = exports.TextBankId = exports.ReportTemplateId = exports.ReportInstanceId = exports.ReportPreparationQuestionnaire = exports.TextBank = exports.ReportTemplate = exports.ReportInstance = exports.InvalidUnitsError = exports.InvalidTaxPercentageError = exports.InvalidPricingStatusError = exports.InvalidPricingModelError = exports.InvalidPricePerUnitError = exports.InvalidMarkupPercentageError = exports.InvalidDiscountPercentageError = exports.InvalidUserRoleError = exports.InvalidServiceCatalogTypeError = exports.InvalidServiceCatalogStatusError = exports.InvalidServiceCatalogCategoryError = exports.InvalidReportTypeError = exports.InvalidExpertDedicationLevelError = exports.InvalidTotalAmountFactorError = exports.InvalidTaxAmountFactorError = exports.InvalidSubtotalAmountFactorError = exports.InvalidSubtotalAmountError = exports.InvalidPurchaseOrderStatusError = exports.InvalidPercentageRangeError = exports.InvalidPaymentStatusError = exports.InvalidPaymentMethodError = exports.InvalidMaximumSubtotalError = exports.InvalidFixedDiscountAmountError = exports.InvalidDiscountAmountFactorError = exports.InvalidTaxRateError = void 0;
|
|
18
|
+
exports.UserBusinessStatusEnum = exports.UserTypeEnum = exports.ErrorCodeEnum = exports.CodedRootError = exports.RootError = exports.ObjectValueObject = exports.PrimitiveValueObject = exports.ValueObject = exports.User = exports.DomainError = exports.AggregateRoot = exports.ReportContentGenerationJobInvalidStatusTransitionError = exports.ReportContentGenerationJobCompletedAt = exports.ReportContentGenerationJobStartedAt = exports.ReportContentGenerationJobUpdatedAt = exports.ReportContentGenerationJobCreatedAt = exports.ReportContentGenerationJobFailureReason = exports.ReportContentGenerationJobAttemptCount = exports.ReportContentGenerationJobStatus = exports.ReportContentGenerationJobRequestedByStakeholderId = exports.ReportContentGenerationJobCarbonClientId = exports.ReportContentGenerationJobReportInstanceId = exports.ReportContentGenerationJobId = exports.ReportContentGenerationStatusEnum = exports.ReportContentGenerationJob = exports.InvalidReportTemplateIdError = exports.InvalidReportSectionTitleError = exports.InvalidReportSectionOrderError = exports.InvalidReportSectionIdError = exports.InvalidReportInstanceIdError = exports.InvalidReportAssuranceError = exports.InvalidReportBlockDataBindingError = exports.InvalidReportBlockClientInputError = exports.EmptyReportSectionBlocksError = exports.ReportPreparationQuestionnaireCannotBeReopenedError = exports.ReportPreparationQuestionnaireCannotBeCompletedError = exports.ReportPreparationQuestionnaireCannotBeModifiedError = exports.TemplateQuestionCannotBeRemovedError = exports.DuplicatePreparationQuestionError = exports.InvalidPreparationQuestionError = exports.InvalidPreparationAnswerError = exports.PreparationQuestionNotFoundError = exports.ReportTemplateCannotBeVersionedError = exports.ReportTemplateCannotBeDeprecatedError = exports.ReportTemplateCannotBeActivatedError = exports.ReportInstanceInvalidStatusTransitionError = exports.ReportInstanceCannotBeRejectedError = exports.ReportInstanceCannotBePublishedError = exports.ReportInstanceCannotBeApprovedByClientError = exports.ReportInstanceCannotBeApprovedInternallyError = void 0;
|
|
19
|
+
exports.NullableCode = exports.NullableString = exports.TaxIdentificationNumberList = exports.UrlList = exports.StringList = exports.CodeList = exports.AggregateIdList = exports.TaxIdentification = exports.Gender = exports.Currency = exports.ColombiaNIT = exports.TaxIdentificationNumber = exports.BaseYear = exports.ExecutionPeriod = exports.AggregateId = exports.Code = exports.Url = exports.Image = exports.Address = exports.Phone = exports.Email = exports.DateTimeString = exports.DateString = exports.Boolean = exports.Numeric = exports.PositiveInteger = exports.Integer = exports.String = exports.PendingActionTypeEnum = exports.CarbonClientJourneyBlockingReasonEnum = exports.CarbonClientJourneyStepStatusEnum = exports.CarbonClientJourneyStepEnum = exports.SemanticUuidPrefixEnum = exports.TaxIdentificationEnum = exports.SystemBoundaryEnum = exports.StakeholderRoleEnum = exports.ReportingStandardEnum = exports.ISOCategoryEnum = exports.StandardGreenhouseGasSpeciesEnum = exports.GreenhouseGasCategoryEnum = exports.GenderEnum = exports.GHGSubScopeEnum = exports.GHGScopeEnum = exports.EmissionSourceEnum = exports.EmissionCategoryEnum = exports.DayOfWeekEnum = exports.CurrencyEnum = exports.CountryCodeEnum = exports.BusinessScaleEnum = exports.LocaleEnum = void 0;
|
|
20
|
+
exports.EventEditionLifecycleStageReference = exports.EventEditionLifecycleStageConfigurationReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReference = exports.CorporateConfigurationCarbonFootprintSubsegmentReference = exports.CorporateConfigurationCarbonFootprintSegmentReference = exports.CorporateCarbonFootprintSegmentConfigurationReferences = exports.CollectionFieldReference = exports.CarbonFootprintSegmentReferences = exports.CarbonFootprintIntensityIndicatorReference = exports.CarbonFootprintConfigurationReference = exports.GlobalWarmingPotentialReference = exports.EmissionFactorReference = exports.EmissionCalculationFormulaReference = exports.EmissionCalculationReference = exports.CalculationVariableReferences = exports.CalculationProcessReference = exports.ActivityDataSubmissionRejectionReason = exports.ActivityDataSubmissionRejectedAt = exports.ActivityDataSubmissionApprovedAt = exports.ActivityDataSubmissionSubmittedAt = exports.ActivityDataSubmissionDataQualityNotes = exports.ActivityDataSubmissionUncertaintySource = exports.ActivityDataSubmissionOverallUncertaintyPercentage = exports.ActivityDataSubmissionReference = exports.EmissionSource = exports.EmissionSources = exports.CarbonClientReferences = exports.CarbonClientReference = exports.StakeholderReferences = exports.StakeholderReference = exports.UserPreferredLocale = exports.UserType = exports.UserLastAccessAt = exports.UserAvatar = exports.UserBusinessStatus = exports.UserPassword = exports.UserDisplayName = exports.UserId = exports.UserEmail = exports.NullableProductConfigurationCarbonFootprintSubsegmentReference = exports.NullableEventEditionConfigurationCarbonFootprintSubsegmentReference = exports.NullableCorporateConfigurationCarbonFootprintSubsegmentReference = exports.NullableStakeholderReference = exports.NullableColombianNIT = exports.NullableTaxIdentificationNumber = exports.NullablePositiveInteger = exports.NullableNumeric = exports.NullableDateTimeString = exports.NullableDate = void 0;
|
|
21
|
+
exports.ConfigurationNotFoundError = exports.ManagerRequiredError = exports.CarbonClientOwnershipPolicy = exports.InvalidCrossTenantReferenceError = exports.InsufficientPermissionsError = exports.InvalidRoleError = exports.InvalidBusinessStatusError = exports.StakeholderExistsError = exports.StakeholderNotFoundError = exports.EmailNotVerifiedError = exports.AccountLockedError = exports.MissingCredentialsError = exports.TokenInvalidError = exports.TokenExpiredError = exports.InvalidCredentialsError = exports.InvalidColombianNITNumberError = exports.InvalidColombianNITCheckDigitError = exports.InvalidColombianNITFormatError = exports.InvalidTaxIdentificationTypeError = exports.InvalidStakeholderRoleTypeError = exports.InvalidGenderError = exports.InvalidCurrencyError = exports.InvalidCountryCodeError = exports.InvalidBusinessScaleError = exports.UnknownBoundedContextCodeError = exports.InvalidUuidFormatError = exports.InvalidUserPrefixError = exports.InvalidUserIdFormatError = exports.InvalidSemanticUuidFormatError = exports.InvalidAggregatePrefixError = exports.InvalidAggregateIdFormatError = exports.InvalidPropertyValueError = exports.InvalidPropertyTypeError = exports.InvalidValueObjectConfigurationError = exports.UndefinedValueError = exports.NullValueError = exports.MethodNotImplementedError = exports.CreateMethodNotImplementedError = exports.ServiceCatalogReference = exports.ProductReference = exports.ProductConfigurationSystemBoundaryReference = exports.ProductConfigurationCarbonFootprintSubsegmentReference = exports.ProductConfigurationCarbonFootprintSegmentReference = exports.ProductCarbonFootprintSegmentConfigurationReferences = exports.NullableFacilityReference = exports.FacilityReferences = exports.FacilityReference = exports.EventReference = exports.EventEditionReferences = exports.EventEditionReference = void 0;
|
|
22
|
+
exports.InvalidCodeError = exports.InvalidAssignerRoleError = exports.InvalidAggregateIdError = exports.EmptyTaxIdentificationNumberError = exports.EmptySegmentNameError = exports.EmptySegmentCodeError = exports.EmptyDisplayNameError = exports.DateGreaterThanError = exports.InvalidUserPreferredLocaleError = exports.InvalidUserBusinessStatusError = exports.InvalidUserTypeError = exports.DivisionByZeroError = exports.MoneyOverflowError = exports.NotIntegerError = exports.NegativeAmountError = exports.MaximumValueViolationError = exports.MinimumValueViolationError = exports.InvalidUrlListError = exports.InvalidCodeListError = exports.InvalidStringListError = exports.EmptyArrayNotAllowedError = exports.PasswordPolicyViolationError = exports.EmptyValueError = exports.InvalidTaxIdError = exports.InvalidPhoneNumberError = exports.InvalidNationalNumberError = exports.InvalidFullInternationalNumberError = exports.InvalidEmailPolicyError = exports.InvalidCoordinatesError = exports.InvalidTimeFormatError = exports.InvalidDateRangeError = exports.InvalidDateFormatError = exports.ExternalServiceError = exports.DatabaseConnectionError = exports.JobAlreadyRunningError = exports.JobNotFoundError = exports.InvalidFormulaError = exports.MissingEmissionFactorError = exports.CalculationFailedError = exports.InvalidFieldTypeError = exports.MissingRequiredFieldsError = exports.SubmissionLockedError = exports.InvalidSubmissionError = exports.FormNotFoundError = exports.DuplicateOrderError = exports.OrderExceedsBudgetError = exports.ServiceCatalogNotFoundError = exports.ContractNotFoundError = exports.DuplicateConfigurationError = exports.ConfigurationLockedError = void 0;
|
|
23
|
+
exports.CarbonClientLogo = exports.CarbonClientWebsiteUrl = exports.CarbonClientPhysicalAddress = exports.CarbonClientOrganizationSize = exports.CarbonClientIndustryType = exports.CarbonClientUserType = exports.CarbonClientLegalBusinessName = exports.CarbonClientAccountType = exports.CarbonClientDisplayName = exports.CarbonClientEmail = exports.CarbonClientId = exports.StakeholderUserType = exports.StakeholderLastAccessAt = exports.StakeholderAvatar = exports.StakeholderTaxIdentification = exports.StakeholderRoleType = exports.StakeholderBusinessStatus = exports.StakeholderPassword = exports.StakeholderDisplayName = exports.StakeholderEmail = exports.StakeholderId = exports.CarbonManager = exports.CarbonHost = exports.CarbonCoordinator = exports.CarbonClient = exports.Stakeholder = exports.SwapOperationNotImplementedError = exports.FilterOperationNotImplementedError = exports.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEither = exports.LeftEither = exports.Either = exports.EventEditionLifecycleStageConfigurationEmissionSourceConfigurations = exports.ProductCarbonFootprintSegmentConfigurationEmissionSourceConfigurations = exports.EmissionSourceConfiguration = exports.CarbonFootprintSegmentConfigurationReference = exports.TaxIdentificationNumberWithControlCharactersError = exports.InvalidTaxIdentificationNumberLengthError = exports.InvalidTaxIdentificationNumberFormatError = exports.InvalidSupervisorRoleError = exports.InvalidMinutesDurationError = exports.InvalidMeasurementUnitOperationError = exports.InvalidManagedStakeholderRoleError = exports.InvalidDomainCodeError = exports.InvalidCountrySpecificTaxIdentificationNumberError = void 0;
|
|
24
|
+
exports.InvalidCarbonClientAccountTypeError = exports.CarbonCoordinatorAvailabilityStatusEnum = exports.CarbonClientAccountEnum = exports.CarbonManagerPermissions = exports.CarbonManagerPassword = exports.CarbonManagerLastAccessAt = exports.CarbonManagerTaxIdentification = exports.CarbonManagerBusinessStatus = exports.CarbonManagerRoleType = exports.CarbonManagerUserType = exports.CarbonManagerManagedStakeholders = exports.CarbonManagerDisplayName = exports.CarbonManagerEmail = exports.CarbonManagerId = exports.CarbonHostPermissions = exports.CarbonHostAvatar = exports.CarbonHostLastAccessAt = exports.CarbonHostUserType = exports.CarbonHostBusinessStatus = exports.CarbonHostDisplayName = exports.CarbonHostTaxIdentification = exports.CarbonHostRoleType = exports.CarbonHostPassword = exports.CarbonHostEmail = exports.CarbonHostId = exports.CarbonCoordinatorPermissions = exports.CarbonCoordinatorPassword = exports.CarbonCoordinatorReportsToStakeholder = exports.CarbonCoordinatorAssignedByStakeholder = exports.CarbonCoordinatorLastAccessAt = exports.CarbonCoordinatorTaxIdentification = exports.CarbonCoordinatorBusinessStatus = exports.CarbonCoordinatorRoleType = exports.CarbonCoordinatorManagedCarbonClients = exports.CarbonCoordinatorWeeklyWorkingSchedule = exports.CarbonCoordinatorGender = exports.CarbonCoordinatorUserType = exports.CarbonCoordinatorAvailabilityStatus = exports.CarbonCoordinatorDisplayName = exports.CarbonCoordinatorEmail = exports.CarbonCoordinatorId = exports.CarbonClientPermissions = exports.CarbonClientPassword = exports.CarbonClientBusinessStatus = exports.CarbonClientLastAccessAt = exports.CarbonClientSupervisedByStakeholder = exports.CarbonClientRoleType = exports.CarbonClientTaxIdentification = exports.CarbonClientPrimaryContactPhone = exports.CarbonClientPrimaryContactEmail = void 0;
|
|
25
|
+
exports.CalculationJobCompletedDomainEvent = exports.CalculationJobStartedDomainEvent = exports.WorkflowPausedDomainEvent = exports.WorkflowActivatedDomainEvent = exports.CalculationWorkflowReferenceVO = exports.InvalidDomainEventNameError = exports.DomainEventName = exports.DomainEvent = exports.StakeholderPermissions = exports.UserPermissions = exports.UnsupportedUserTypeError = exports.UnsupportedStakeholderRoleError = exports.SecurityContextReconstructionError = exports.SecurityContext = exports.PermissionSet = exports.PermissionEnum = exports.AuthorizationDecisionEnum = exports.UncertaintyPropagationDomainService = exports.UserCreationDomainService = exports.AggregateIdDomainService = exports.DateTimeFormattingDomainService = exports.UserInvitationRevokedError = exports.UserInvitationAlreadyConsumedError = exports.UserInvitationExpiredError = exports.UserInvitationInvitedByStakeholder = exports.UserInvitationEvaluatedAt = exports.UserInvitationRevokedAt = exports.UserInvitationConsumedAt = exports.UserInvitationExpiresAt = exports.UserInvitationIssuedAt = exports.UserInvitationTokenHash = exports.UserInvitationEmail = exports.UserInvitationUserId = exports.UserInvitationId = exports.USER_INVITATION_VALIDITY_IN_DAYS = exports.UserInvitation = exports.UserPreferenceCodeLimitExceededError = exports.DuplicateUserPreferenceCodeError = exports.InvalidUserPreferenceCodeError = exports.UserPreferenceDismissedChecklistCodes = exports.UserPreferenceSeenOnboardingTourCodes = exports.UserPreferenceCodes = exports.UserPreferenceUserId = exports.UserPreference = exports.PermissionAboveRoleCeilingError = exports.RolePermissionCeilingPolicy = exports.CARBON_MANAGER_PERMISSION_CEILING = exports.CARBON_COORDINATOR_PERMISSION_CEILING = exports.CARBON_CLIENT_PERMISSION_CEILING = exports.InvalidCarbonCoordinatorAvailabilityStatusError = void 0;
|
|
26
|
+
exports.InvalidIdentityDocumentTypeError = exports.CarbonClientIdentityDocument = exports.CarbonCoordinatorIdentityDocument = exports.CarbonManagerIdentityDocument = exports.StakeholderIdentityDocument = exports.IdentityDocument = exports.IdentityDocumentTypeEnum = exports.CompanyServiceEntitlementValidTo = exports.CompanyServiceEntitlementValidFrom = exports.CompanyServiceEntitlementAdditionalUserRoles = exports.CompanyServiceEntitlementMaxUsers = exports.CompanyServiceEntitlementIsAvailableForEvent = exports.CompanyServiceEntitlementIsAvailableForProduct = exports.CompanyServiceEntitlementIsAvailableForCorporate = exports.CompanyServiceEntitlementIncludesEsgIndicators = exports.CompanyServiceEntitlementIncludesCarbonBoxAcademy = exports.CompanyServiceEntitlementAllowsSectoralComparison = exports.CompanyServiceEntitlementAllowsDocumentReading = exports.CompanyServiceEntitlementSourceContractIds = exports.CompanyServiceEntitlementActiveServiceCodes = exports.CompanyServiceEntitlementCarbonClientId = exports.CompanyServiceEntitlementId = exports.ServiceCapabilityPolicy = exports.CompanyServiceEntitlement = exports.PurchaseContractServiceRemovedDomainEvent = exports.PurchaseContractServiceAddedDomainEvent = exports.PurchaseContractRenewedDomainEvent = exports.PurchaseContractExpiredDomainEvent = exports.PurchaseContractCancelledDomainEvent = exports.PurchaseContractSuspendedDomainEvent = exports.PurchaseContractActivatedDomainEvent = exports.CalculationProcessFailedDomainEvent = exports.CalculationProcessCompletedDomainEvent = exports.CalculationJobFailedDomainEvent = void 0;
|
|
27
27
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
28
28
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
29
29
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -675,11 +675,17 @@ var EmissionFactorIpccSubcategory_1 = require("../carbonbox/emission-calculation
|
|
|
675
675
|
Object.defineProperty(exports, "EmissionFactorIpccSubcategory", { enumerable: true, get: function () { return EmissionFactorIpccSubcategory_1.EmissionFactorIpccSubcategory; } });
|
|
676
676
|
var EmissionFactorMethodologicalTier_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorMethodologicalTier");
|
|
677
677
|
Object.defineProperty(exports, "EmissionFactorMethodologicalTier", { enumerable: true, get: function () { return EmissionFactorMethodologicalTier_1.EmissionFactorMethodologicalTier; } });
|
|
678
|
+
var EmissionFactorBiogenicContent_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorBiogenicContent");
|
|
679
|
+
Object.defineProperty(exports, "EmissionFactorBiogenicContent", { enumerable: true, get: function () { return EmissionFactorBiogenicContent_1.EmissionFactorBiogenicContent; } });
|
|
678
680
|
// Emission Factor Exceptions
|
|
679
681
|
var InvalidIpccCodeError_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidIpccCodeError");
|
|
680
682
|
Object.defineProperty(exports, "InvalidIpccCodeError", { enumerable: true, get: function () { return InvalidIpccCodeError_1.InvalidIpccCodeError; } });
|
|
681
683
|
var InvalidMethodologicalTierError_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidMethodologicalTierError");
|
|
682
684
|
Object.defineProperty(exports, "InvalidMethodologicalTierError", { enumerable: true, get: function () { return InvalidMethodologicalTierError_1.InvalidMethodologicalTierError; } });
|
|
685
|
+
var InvalidBiogenicContentError_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidBiogenicContentError");
|
|
686
|
+
Object.defineProperty(exports, "InvalidBiogenicContentError", { enumerable: true, get: function () { return InvalidBiogenicContentError_1.InvalidBiogenicContentError; } });
|
|
687
|
+
var InconsistentEmissionFactorBiogenicContentError_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InconsistentEmissionFactorBiogenicContentError");
|
|
688
|
+
Object.defineProperty(exports, "InconsistentEmissionFactorBiogenicContentError", { enumerable: true, get: function () { return InconsistentEmissionFactorBiogenicContentError_1.InconsistentEmissionFactorBiogenicContentError; } });
|
|
683
689
|
// Global Warming Potential Value Objects
|
|
684
690
|
var GlobalWarmingPotentialId_1 = require("../carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialId");
|
|
685
691
|
Object.defineProperty(exports, "GlobalWarmingPotentialId", { enumerable: true, get: function () { return GlobalWarmingPotentialId_1.GlobalWarmingPotentialId; } });
|
|
@@ -702,6 +708,8 @@ var ResultUnit_1 = require("../carbonbox/emission-calculation-formulas/domain/en
|
|
|
702
708
|
Object.defineProperty(exports, "ResultUnitEnum", { enumerable: true, get: function () { return ResultUnit_1.ResultUnit; } });
|
|
703
709
|
var MethodologicalTier_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/enums/MethodologicalTier");
|
|
704
710
|
Object.defineProperty(exports, "MethodologicalTierEnum", { enumerable: true, get: function () { return MethodologicalTier_1.MethodologicalTier; } });
|
|
711
|
+
var BiogenicContent_1 = require("../carbonbox/emission-calculation-formulas/emission-factors/domain/enums/BiogenicContent");
|
|
712
|
+
Object.defineProperty(exports, "BiogenicContentEnum", { enumerable: true, get: function () { return BiogenicContent_1.BiogenicContent; } });
|
|
705
713
|
// ─── Domain Exceptions ─────────────────────────────────────────────────────
|
|
706
714
|
// Formula Domain Exceptions
|
|
707
715
|
var DuplicateGreenhouseGasError_1 = require("../carbonbox/emission-calculation-formulas/domain/exceptions/DuplicateGreenhouseGasError");
|
|
@@ -1462,6 +1470,8 @@ var Gender_1 = require("../carbonbox/shared/domain/enums/Gender");
|
|
|
1462
1470
|
Object.defineProperty(exports, "GenderEnum", { enumerable: true, get: function () { return Gender_1.Gender; } });
|
|
1463
1471
|
var GreenhouseGasCategory_1 = require("../carbonbox/shared/domain/enums/GreenhouseGasCategory");
|
|
1464
1472
|
Object.defineProperty(exports, "GreenhouseGasCategoryEnum", { enumerable: true, get: function () { return GreenhouseGasCategory_1.GreenhouseGasCategory; } });
|
|
1473
|
+
var StandardGreenhouseGasSpecies_1 = require("../carbonbox/shared/domain/enums/StandardGreenhouseGasSpecies");
|
|
1474
|
+
Object.defineProperty(exports, "StandardGreenhouseGasSpeciesEnum", { enumerable: true, get: function () { return StandardGreenhouseGasSpecies_1.StandardGreenhouseGasSpecies; } });
|
|
1465
1475
|
var ISOCategory_1 = require("../carbonbox/shared/domain/enums/ISOCategory");
|
|
1466
1476
|
Object.defineProperty(exports, "ISOCategoryEnum", { enumerable: true, get: function () { return ISOCategory_1.ISOCategory; } });
|
|
1467
1477
|
var ReportingStandard_1 = require("../carbonbox/shared/domain/enums/ReportingStandard");
|
|
@@ -9,6 +9,7 @@ import { EmissionFactorIpccCode } from '../value-objects/EmissionFactorIpccCode'
|
|
|
9
9
|
import { EmissionFactorIpccSubcategory } from '../value-objects/EmissionFactorIpccSubcategory';
|
|
10
10
|
import { EmissionFactorMethodologicalTier } from '../value-objects/EmissionFactorMethodologicalTier';
|
|
11
11
|
import { EmissionFactorName } from '../value-objects/EmissionFactorName';
|
|
12
|
+
import { EmissionFactorBiogenicContent } from '../value-objects/EmissionFactorBiogenicContent';
|
|
12
13
|
import { IEmissionFactor } from './IEmissionFactor';
|
|
13
14
|
export declare class EmissionFactor extends AggregateRoot<EmissionFactorPrimitives> implements IEmissionFactor {
|
|
14
15
|
#private;
|
|
@@ -24,5 +25,16 @@ export declare class EmissionFactor extends AggregateRoot<EmissionFactorPrimitiv
|
|
|
24
25
|
get ipccCode(): EmissionFactorIpccCode;
|
|
25
26
|
get ipccSubcategory(): EmissionFactorIpccSubcategory;
|
|
26
27
|
get methodologicalTier(): EmissionFactorMethodologicalTier;
|
|
28
|
+
get biogenicContent(): EmissionFactorBiogenicContent;
|
|
29
|
+
/**
|
|
30
|
+
* Coherencia entre el contenido biogénico declarado y las especies del factor
|
|
31
|
+
* (GHG Protocol cap. 9 / ISO 14064-1 §9.3.1): evita, p.ej., una leña cargada con `CO2` fósil
|
|
32
|
+
* (se sumaría al inventario) o una mezcla con biocombustible sin su `CO2-BIOGENIC`.
|
|
33
|
+
* - NONE: no declara `CO2-BIOGENIC` ni `CH4-NON-FOSSIL`.
|
|
34
|
+
* - FULL: no declara `CO2` ni `CH4-FOSSIL`, y declara `CO2-BIOGENIC` o `CH4-NON-FOSSIL`.
|
|
35
|
+
* - PARTIAL: declara `CO2` y `CO2-BIOGENIC`.
|
|
36
|
+
* N2O y las especies de texto libre se aceptan con cualquier contenido.
|
|
37
|
+
*/
|
|
38
|
+
private static guardAgainstInconsistentBiogenicContent;
|
|
27
39
|
}
|
|
28
40
|
//# sourceMappingURL=EmissionFactor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionFactor.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/EmissionFactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AAEvG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,cACX,SAAQ,aAAa,CAAC,wBAAwB,CAC9C,YAAW,eAAe;;
|
|
1
|
+
{"version":3,"file":"EmissionFactor.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/EmissionFactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AAEvG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAG/F,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,cACX,SAAQ,aAAa,CAAC,wBAAwB,CAC9C,YAAW,eAAe;;IAmB1B,OAAO;WAiCgB,MAAM,CAAC,KAAK,EAAE,mBAAmB,GAAG,cAAc;WAIlD,cAAc,CAAC,UAAU,EAAE,wBAAwB,GAAG,cAAc;IAiB3F,IAAoB,YAAY,IAAI,wBAAwB,CAa3D;IAED,IAAW,IAAI,IAAI,kBAAkB,CAEpC;IAED,IAAW,IAAI,IAAI,kBAAkB,CAEpC;IAED,IAAW,WAAW,IAAI,yBAAyB,CAElD;IAED,IAAW,mBAAmB,IAAI,iCAAiC,CAElE;IAED,IAAW,iBAAiB,IAAI,+BAA+B,CAE9D;IAED,IAAW,QAAQ,IAAI,sBAAsB,CAE5C;IAED,IAAW,eAAe,IAAI,6BAA6B,CAE1D;IAED,IAAW,kBAAkB,IAAI,gCAAgC,CAEhE;IAED,IAAW,eAAe,IAAI,6BAA6B,CAE1D;IAED;;;;;;;;OAQG;IACH,OAAO,CAAC,MAAM,CAAC,uCAAuC;CAwCvD"}
|
|
@@ -7,6 +7,7 @@ import { EmissionFactorIpccCode } from '../value-objects/EmissionFactorIpccCode'
|
|
|
7
7
|
import { EmissionFactorIpccSubcategory } from '../value-objects/EmissionFactorIpccSubcategory';
|
|
8
8
|
import { EmissionFactorMethodologicalTier } from '../value-objects/EmissionFactorMethodologicalTier';
|
|
9
9
|
import { EmissionFactorName } from '../value-objects/EmissionFactorName';
|
|
10
|
+
import { EmissionFactorBiogenicContent } from '../value-objects/EmissionFactorBiogenicContent';
|
|
10
11
|
export interface IEmissionFactor extends IAggregateRoot {
|
|
11
12
|
code: EmissionFactorCode;
|
|
12
13
|
name: EmissionFactorName;
|
|
@@ -16,5 +17,6 @@ export interface IEmissionFactor extends IAggregateRoot {
|
|
|
16
17
|
ipccCode: EmissionFactorIpccCode;
|
|
17
18
|
ipccSubcategory: EmissionFactorIpccSubcategory;
|
|
18
19
|
methodologicalTier: EmissionFactorMethodologicalTier;
|
|
20
|
+
biogenicContent: EmissionFactorBiogenicContent;
|
|
19
21
|
}
|
|
20
22
|
//# sourceMappingURL=IEmissionFactor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEmissionFactor.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/IEmissionFactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"IEmissionFactor.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/entity/IEmissionFactor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,iCAAiC,EAAE,MAAM,oDAAoD,CAAC;AACvG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAE/F,MAAM,WAAW,eAAgB,SAAQ,cAAc;IACrD,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,EAAE,kBAAkB,CAAC;IACzB,WAAW,EAAE,yBAAyB,CAAC;IACvC,mBAAmB,EAAE,iCAAiC,CAAC;IACvD,iBAAiB,EAAE,+BAA+B,CAAC;IACnD,QAAQ,EAAE,sBAAsB,CAAC;IACjC,eAAe,EAAE,6BAA6B,CAAC;IAC/C,kBAAkB,EAAE,gCAAgC,CAAC;IACrD,eAAe,EAAE,6BAA6B,CAAC;CAChD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Biogenic carbon content of an emission factor
|
|
3
|
+
* Declares the carbon origin of the activity so the greenhouse gas species of the factor can be
|
|
4
|
+
* checked for coherence (GHG Protocol Corporate Standard cap. 9; ISO 14064-1:2018 §9.3.1)
|
|
5
|
+
*/
|
|
6
|
+
export declare enum BiogenicContent {
|
|
7
|
+
/**
|
|
8
|
+
* No biogenic carbon - fossil fuels, grid electricity, refrigerants, industrial processes.
|
|
9
|
+
* Must not declare `CO2-BIOGENIC` nor `CH4-NON-FOSSIL`
|
|
10
|
+
*/
|
|
11
|
+
NONE = "NONE",
|
|
12
|
+
/**
|
|
13
|
+
* Fully biogenic carbon - biomass, organic waste, wastewater.
|
|
14
|
+
* Must not declare `CO2` nor `CH4-FOSSIL`, and must declare `CO2-BIOGENIC` or `CH4-NON-FOSSIL`
|
|
15
|
+
*/
|
|
16
|
+
FULL = "FULL",
|
|
17
|
+
/**
|
|
18
|
+
* Fossil and biogenic carbon - fuels blended with biofuels.
|
|
19
|
+
* Must declare both `CO2` and `CO2-BIOGENIC`
|
|
20
|
+
*/
|
|
21
|
+
PARTIAL = "PARTIAL"
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=BiogenicContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BiogenicContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/enums/BiogenicContent.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,eAAe;IACzB;;;OAGG;IACH,IAAI,SAAS;IAEb;;;OAGG;IACH,IAAI,SAAS;IAEb;;;OAGG;IACH,OAAO,YAAY;CACpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CodedRootError } from '../../../../shared/domain/exceptions/CodedRootError';
|
|
2
|
+
import { BiogenicContent } from '../enums/BiogenicContent';
|
|
3
|
+
export declare class InconsistentEmissionFactorBiogenicContentError extends CodedRootError {
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(biogenicContent: BiogenicContent, declaredSpecies: string[], forbiddenSpecies: string[], missingSpecies: string[]): InconsistentEmissionFactorBiogenicContentError;
|
|
6
|
+
logError(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InconsistentEmissionFactorBiogenicContentError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InconsistentEmissionFactorBiogenicContentError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InconsistentEmissionFactorBiogenicContentError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,8CAA+C,SAAQ,cAAc;IAChF,OAAO;WAmCgB,MAAM,CAC3B,eAAe,EAAE,eAAe,EAChC,eAAe,EAAE,MAAM,EAAE,EACzB,gBAAgB,EAAE,MAAM,EAAE,EAC1B,cAAc,EAAE,MAAM,EAAE,GACvB,8CAA8C;IAIjC,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CodedRootError } from '../../../../shared/domain/exceptions/CodedRootError';
|
|
2
|
+
import { BiogenicContent } from '../enums/BiogenicContent';
|
|
3
|
+
export declare class InvalidBiogenicContentError extends CodedRootError {
|
|
4
|
+
private constructor();
|
|
5
|
+
static create(receivedValue: string, validValues: BiogenicContent[]): InvalidBiogenicContentError;
|
|
6
|
+
logError(): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=InvalidBiogenicContentError.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InvalidBiogenicContentError.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/exceptions/InvalidBiogenicContentError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qDAAqD,CAAC;AAErF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBAAa,2BAA4B,SAAQ,cAAc;IAC7D,OAAO;WAsBgB,MAAM,CAC3B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,eAAe,EAAE,GAC7B,2BAA2B;IAId,QAAQ,IAAI,MAAM;CAGnC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AggregateRootPrimitives } from '../../../../shared/domain/types/AggregateRootPrimitives';
|
|
2
2
|
import { GHGFactorValuePrimitives } from './GHGFactorValuePrimitives';
|
|
3
3
|
import { MethodologicalTier } from '../enums/MethodologicalTier';
|
|
4
|
+
import { BiogenicContent } from '../enums/BiogenicContent';
|
|
4
5
|
export type EmissionFactorPrimitives = AggregateRootPrimitives & {
|
|
5
6
|
code: string;
|
|
6
7
|
name: string;
|
|
@@ -10,5 +11,6 @@ export type EmissionFactorPrimitives = AggregateRootPrimitives & {
|
|
|
10
11
|
ipccCode: string;
|
|
11
12
|
ipccSubcategory: string;
|
|
12
13
|
methodologicalTier: MethodologicalTier;
|
|
14
|
+
biogenicContent: BiogenicContent;
|
|
13
15
|
};
|
|
14
16
|
//# sourceMappingURL=EmissionFactorPrimitives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionFactorPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"EmissionFactorPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,MAAM,wBAAwB,GAAG,uBAAuB,GAAG;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,wBAAwB,EAAE,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AggregateRootProps } from '../../../../shared/domain/types/AggregateRootProps';
|
|
2
2
|
import { GHGFactorValue } from './GHGFactorValue';
|
|
3
3
|
import { MethodologicalTier } from '../enums/MethodologicalTier';
|
|
4
|
+
import { BiogenicContent } from '../enums/BiogenicContent';
|
|
4
5
|
export type EmissionFactorProps = AggregateRootProps & {
|
|
5
6
|
code: string;
|
|
6
7
|
name: string;
|
|
@@ -10,5 +11,6 @@ export type EmissionFactorProps = AggregateRootProps & {
|
|
|
10
11
|
ipccCode: string;
|
|
11
12
|
ipccSubcategory: string;
|
|
12
13
|
methodologicalTier: MethodologicalTier;
|
|
14
|
+
biogenicContent: BiogenicContent;
|
|
13
15
|
};
|
|
14
16
|
//# sourceMappingURL=EmissionFactorProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionFactorProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"EmissionFactorProps.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/EmissionFactorProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oDAAoD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAE3D,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,eAAe,EAAE,eAAe,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { String } from '../../../../shared/domain/value-objects/String';
|
|
2
|
+
import { BiogenicContent as BiogenicContentEnum } from '../enums/BiogenicContent';
|
|
3
|
+
export declare class EmissionFactorBiogenicContent extends String {
|
|
4
|
+
private static readonly PROPERTY_NAME;
|
|
5
|
+
private static readonly VALID_BIOGENIC_CONTENTS;
|
|
6
|
+
private constructor();
|
|
7
|
+
static create(value: string): EmissionFactorBiogenicContent;
|
|
8
|
+
static fromPrimitives(primitive: string): EmissionFactorBiogenicContent;
|
|
9
|
+
/**
|
|
10
|
+
* Valida que el valor sea un contenido biogénico soportado.
|
|
11
|
+
*/
|
|
12
|
+
private static validateBiogenicContent;
|
|
13
|
+
/**
|
|
14
|
+
* Obtiene los contenidos biogénicos válidos.
|
|
15
|
+
*/
|
|
16
|
+
static getValidBiogenicContents(): readonly BiogenicContentEnum[];
|
|
17
|
+
/**
|
|
18
|
+
* Verifica si un valor es un contenido biogénico válido.
|
|
19
|
+
*/
|
|
20
|
+
static isValidBiogenicContent(value: string): boolean;
|
|
21
|
+
isNone(): boolean;
|
|
22
|
+
isFull(): boolean;
|
|
23
|
+
isPartial(): boolean;
|
|
24
|
+
toPrimitives(): string;
|
|
25
|
+
toEnum(): BiogenicContentEnum;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=EmissionFactorBiogenicContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmissionFactorBiogenicContent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorBiogenicContent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,gDAAgD,CAAC;AACxE,OAAO,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAGlF,qBAAa,6BAA8B,SAAQ,MAAM;IACvD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAqB;IAE1D,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,uBAAuB,CAA6D;IAE5G,OAAO;WAQgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,6BAA6B;WAOpD,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,6BAA6B;IAIvF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,uBAAuB;IAStC;;OAEG;WACW,wBAAwB,IAAI,SAAS,mBAAmB,EAAE;IAIxE;;OAEG;WACW,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAIrD,MAAM,IAAI,OAAO;IAIjB,MAAM,IAAI,OAAO;IAIjB,SAAS,IAAI,OAAO;IAIX,YAAY,IAAI,MAAM;IAI/B,MAAM,IAAI,mBAAmB;CAGrC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionFactorGreenhouseGasValues.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorGreenhouseGasValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAS7E,qBAAa,iCACX,SAAQ,WAAW,CAAC,wBAAwB,EAAE,CAAC;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAyB;IAE9D,OAAO;WAiBgB,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,iCAAiC;WAIlE,cAAc,CAAC,UAAU,EAAE,wBAAwB,EAAE,GAAG,iCAAiC;IAYhG,YAAY,IAAI,wBAAwB,EAAE;IAI1D,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAiCvC,OAAO,CAAC,MAAM,CAAC,iCAAiC;
|
|
1
|
+
{"version":3,"file":"EmissionFactorGreenhouseGasValues.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorGreenhouseGasValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAS7E,qBAAa,iCACX,SAAQ,WAAW,CAAC,wBAAwB,EAAE,CAAC;IAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAyB;IAE9D,OAAO;WAiBgB,MAAM,CAAC,KAAK,EAAE,cAAc,EAAE,GAAG,iCAAiC;WAIlE,cAAc,CAAC,UAAU,EAAE,wBAAwB,EAAE,GAAG,iCAAiC;IAYhG,YAAY,IAAI,wBAAwB,EAAE;IAI1D,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAiCvC,OAAO,CAAC,MAAM,CAAC,iCAAiC;IA2ChD,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAa1C,OAAO,CAAC,MAAM,CAAC,gCAAgC;IAiC/C,OAAO,CAAC,MAAM,CAAC,qCAAqC;IA+EpD,OAAO,CAAC,MAAM,CAAC,iCAAiC;IA0ChD,OAAO,CAAC,MAAM,CAAC,uBAAuB;IActC,OAAO,CAAC,MAAM,CAAC,6BAA6B;IAc5C,OAAO,CAAC,MAAM,CAAC,oCAAoC;IAgBnD,OAAO,CAAC,MAAM,CAAC,8BAA8B;IAgB7C,OAAO,CAAC,MAAM,CAAC,iBAAiB;CAqBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalWarmingPotentialGreenhouseGasPotentials.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAMnF,qBAAa,6CACX,SAAQ,WAAW,CAAC,2BAA2B,EAAE,CAAC;IAClD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAA6B;IAElE,OAAO;WAiBgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,6CAA6C;WAIjF,cAAc,CAAC,UAAU,EAAE,2BAA2B,EAAE,GAAG,6CAA6C;IAU/G,YAAY,IAAI,2BAA2B,EAAE;IAI7D,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAsBvC,OAAO,CAAC,MAAM,CAAC,oCAAoC;
|
|
1
|
+
{"version":3,"file":"GlobalWarmingPotentialGreenhouseGasPotentials.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qDAAqD,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAMnF,qBAAa,6CACX,SAAQ,WAAW,CAAC,2BAA2B,EAAE,CAAC;IAClD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAA6B;IAElE,OAAO;WAiBgB,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,GAAG,6CAA6C;WAIjF,cAAc,CAAC,UAAU,EAAE,2BAA2B,EAAE,GAAG,6CAA6C;IAU/G,YAAY,IAAI,2BAA2B,EAAE;IAI7D,OAAO,CAAC,MAAM,CAAC,wBAAwB;IAsBvC,OAAO,CAAC,MAAM,CAAC,oCAAoC;IA6BnD,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAa1C,OAAO,CAAC,MAAM,CAAC,iCAAiC;IAehD,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAgB3C,OAAO,CAAC,MAAM,CAAC,iBAAiB;CASjC"}
|
|
@@ -121,6 +121,8 @@ export declare enum ErrorCode {
|
|
|
121
121
|
UNAUTHORIZED_FORMULA_CREATION_ROLE = "CBX-EMC-011",
|
|
122
122
|
INVALID_IPCC_CODE = "CBX-EMC-012",
|
|
123
123
|
INVALID_METHODOLOGICAL_TIER = "CBX-EMC-013",
|
|
124
|
+
INVALID_BIOGENIC_CONTENT = "CBX-EMC-014",
|
|
125
|
+
INCONSISTENT_EMISSION_FACTOR_BIOGENIC_CONTENT = "CBX-EMC-015",
|
|
124
126
|
UNKNOWN_GREENHOUSE_GAS_CATEGORY = "CBX-ECR-001",
|
|
125
127
|
EMPTY_REPORT_SECTION_BLOCKS = "CBX-RPT-001",
|
|
126
128
|
INVALID_REPORT_INSTANCE_ID = "CBX-RPT-002",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorCode.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/ErrorCode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,oBAAY,SAAS;IAEnB,mBAAmB,iBA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
2
|
+
* Standard greenhouse gas species: the codes the system knows and gives meaning to.
|
|
3
|
+
* Any other species (refrigerants, blends, SF6, NF3...) is still accepted as free text
|
|
4
|
+
* by `GreenhouseGasSpecies`, but only under a category that has no standard species
|
|
5
|
+
* (HFC, PFC, SF6, NF3, HCFC, OTHER).
|
|
6
|
+
*
|
|
7
|
+
* Biogenic accounting (GHG Protocol Corporate Standard cap. 9; ISO 14064-1:2018 §9.3.1):
|
|
8
|
+
* only `CO2-BIOGENIC` stays outside the inventory total; `CH4-NON-FOSSIL` counts with its
|
|
9
|
+
* own potential (IPCC AR6: 27.0 vs 29.8 for fossil methane).
|
|
10
|
+
*/
|
|
11
|
+
export declare enum StandardGreenhouseGasSpecies {
|
|
12
|
+
/**
|
|
13
|
+
* Fossil carbon dioxide
|
|
14
|
+
*/
|
|
15
|
+
CO2 = "CO2",
|
|
16
|
+
/**
|
|
17
|
+
* Carbon dioxide from biomass / biofuel combustion: informational item outside the total
|
|
18
|
+
*/
|
|
19
|
+
CO2_BIOGENIC = "CO2-BIOGENIC",
|
|
20
|
+
/**
|
|
21
|
+
* Methane of fossil origin
|
|
22
|
+
*/
|
|
23
|
+
CH4_FOSSIL = "CH4-FOSSIL",
|
|
24
|
+
/**
|
|
25
|
+
* Methane of non-fossil origin (biomass, waste, wastewater): counts towards the total
|
|
26
|
+
*/
|
|
27
|
+
CH4_NON_FOSSIL = "CH4-NON-FOSSIL",
|
|
28
|
+
/**
|
|
29
|
+
* Nitrous oxide
|
|
30
|
+
*/
|
|
31
|
+
N2O = "N2O"
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=StandardGreenhouseGasSpecies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StandardGreenhouseGasSpecies.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/enums/StandardGreenhouseGasSpecies.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,oBAAY,4BAA4B;IACtC;;OAEG;IACH,GAAG,QAAQ;IAEX;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;OAEG;IACH,UAAU,eAAe;IAEzB;;OAEG;IACH,cAAc,mBAAmB;IAEjC;;OAEG;IACH,GAAG,QAAQ;CACZ"}
|
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import { String } from './String';
|
|
2
|
+
import { GreenhouseGasCategory } from '../enums/GreenhouseGasCategory';
|
|
3
|
+
import { StandardGreenhouseGasSpecies } from '../enums/StandardGreenhouseGasSpecies';
|
|
2
4
|
/**
|
|
3
5
|
* Código canónico de la especie de gas de efecto invernadero (p.ej. `CO2`, `CH4-FOSSIL`,
|
|
4
6
|
* `R-410A`, `HFC-134A`). La especie es la llave real con la que se cruzan EmissionFactor y
|
|
5
7
|
* GlobalWarmingPotential: por eso se normaliza al ingresar (trim + colapsar espacios + UPPERCASE)
|
|
6
8
|
* para que un mismo refrigerante escrito con espacios/casing distintos matchee siempre igual.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
+
*
|
|
10
|
+
* Especies estándar (`StandardGreenhouseGasSpecies`): `CO2`, `CO2-BIOGENIC`, `CH4-FOSSIL`,
|
|
11
|
+
* `CH4-NON-FOSSIL`, `N2O`. Las categorías CO2, CH4 y N2O SOLO aceptan sus especies estándar
|
|
12
|
+
* (`guardAgainstCategoryMismatch`); el resto de categorías (HFC, PFC, SF6, NF3, HCFC, OTHER)
|
|
13
|
+
* acepta texto libre (refrigerantes, mezclas).
|
|
9
14
|
*
|
|
10
15
|
* CO₂ biogénico: el CO₂ liberado al quemar biomasa o biocombustibles se reporta por separado,
|
|
11
16
|
* fuera de los alcances y del total del inventario (GHG Protocol Corporate Standard cap. 9;
|
|
12
17
|
* ISO 14064-1:2018 §9.3.1). Se modela como la especie `CO2-BIOGENIC` de la categoría CO2
|
|
13
|
-
* (paralela a `CH4-
|
|
18
|
+
* (paralela a `CH4-NON-FOSSIL`, que SÍ cuenta en el total con su PCG). Este VO es el único lugar
|
|
14
19
|
* que conoce esa convención: toda suma de inventario pregunta `isBiogenicCarbonDioxide`.
|
|
15
20
|
*/
|
|
16
21
|
export declare class GreenhouseGasSpecies extends String {
|
|
17
22
|
private static readonly PROPERTY_NAME;
|
|
18
|
-
static readonly BIOGENIC_CARBON_DIOXIDE
|
|
23
|
+
static readonly BIOGENIC_CARBON_DIOXIDE: string;
|
|
19
24
|
private static readonly SPECIES_REGEX;
|
|
25
|
+
private static readonly STANDARD_SPECIES_CATEGORIES;
|
|
20
26
|
private constructor();
|
|
21
27
|
static create(value: string): GreenhouseGasSpecies;
|
|
22
28
|
static fromPrimitives(primitive: string): GreenhouseGasSpecies;
|
|
@@ -25,12 +31,37 @@ export declare class GreenhouseGasSpecies extends String {
|
|
|
25
31
|
* espacios internos + UPPERCASE. Idempotente.
|
|
26
32
|
*/
|
|
27
33
|
static normalize(value: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* True si la especie es una de las estándar (`StandardGreenhouseGasSpecies`).
|
|
36
|
+
*/
|
|
37
|
+
static isStandard(value: string): boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Especies estándar de una categoría (vacío si la categoría acepta texto libre).
|
|
40
|
+
*/
|
|
41
|
+
static standardSpeciesOf(category: GreenhouseGasCategory): StandardGreenhouseGasSpecies[];
|
|
28
42
|
/**
|
|
29
43
|
* True para la especie `CO2-BIOGENIC` (en cualquier casing/espaciado): CO₂ que NO cuenta en
|
|
30
44
|
* el total del inventario y se reporta como partida informativa.
|
|
31
45
|
*/
|
|
32
46
|
static isBiogenicCarbonDioxide(value: string): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* True para la especie `CH4-NON-FOSSIL`: metano de origen biogénico que SÍ cuenta en el total.
|
|
49
|
+
*/
|
|
50
|
+
static isNonFossilMethane(value: string): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* True para las especies de carbono biogénico (`CO2-BIOGENIC`, `CH4-NON-FOSSIL`): las que un
|
|
53
|
+
* factor con contenido biogénico declara y una fórmula sobre ese factor no puede omitir.
|
|
54
|
+
*/
|
|
55
|
+
static isBiogenic(value: string): boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Las categorías con especies estándar (CO2, CH4, N2O) solo aceptan esas especies, y cada
|
|
58
|
+
* especie estándar solo su propia categoría. Evita, p.ej., un `CH4` a secas (¿fósil o no fósil?).
|
|
59
|
+
*/
|
|
60
|
+
static guardAgainstCategoryMismatch(category: GreenhouseGasCategory, species: string, propertyName: string): void;
|
|
33
61
|
isBiogenicCarbonDioxide(): boolean;
|
|
62
|
+
isNonFossilMethane(): boolean;
|
|
63
|
+
isBiogenic(): boolean;
|
|
64
|
+
isStandard(): boolean;
|
|
34
65
|
private static guardAgainstInvalidSpecies;
|
|
35
66
|
toPrimitives(): string;
|
|
36
67
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GreenhouseGasSpecies.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"GreenhouseGasSpecies.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,oBAAqB,SAAQ,MAAM;IAC9C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAA0B;IAE/D,gBAAuB,uBAAuB,EAAE,MAAM,CAA6C;IAInG,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAA4B;IAGjE,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,2BAA2B,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