@carbonbox/domain 0.27.0 → 0.28.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/domain/entity/EmissionCalculationFormula.js +1 -1
- package/build/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaApplicableGreenhouseGases.js +30 -215
- package/build/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorGreenhouseGasValues.js +16 -11
- package/build/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.js +18 -13
- package/build/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationGhgBreakdown.js +52 -109
- package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/entity/GHGEmissionResult.js +9 -4
- package/build/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultGreenhouseGas.js +44 -160
- package/build/carbonbox/shared/domain/enums/GreenhouseGasCategory.js +15 -0
- package/build/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.js +50 -0
- package/build/main/index.js +15 -13
- package/build/types/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaPrimitives.d.ts +1 -2
- package/build/types/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaProps.d.ts +1 -2
- package/build/types/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaProps.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaApplicableGreenhouseGases.d.ts +11 -105
- package/build/types/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaApplicableGreenhouseGases.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValue.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValue.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValuePrimitives.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValuePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/emission-factors/domain/value-objects/EmissionFactorGreenhouseGasValues.d.ts +1 -1
- 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/types/GHGPotentialValue.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValue.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValuePrimitives.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValuePrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.d.ts +2 -2
- package/build/types/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/value-objects/GlobalWarmingPotentialGreenhouseGasPotentials.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdown.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdown.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdownPrimitives.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdownPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationGhgBreakdown.d.ts +9 -80
- package/build/types/carbonbox/emission-calculation-results/emission-aggregations/domain/value-objects/EmissionAggregationGhgBreakdown.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/entity/GHGEmissionResult.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/types/GHGEmissionResultPrimitives.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/types/GHGEmissionResultPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/types/GHGEmissionResultProps.d.ts +3 -2
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/types/GHGEmissionResultProps.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultGreenhouseGas.d.ts +22 -89
- package/build/types/carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultGreenhouseGas.d.ts.map +1 -1
- package/build/types/carbonbox/shared/domain/enums/GreenhouseGasCategory.d.ts +12 -0
- package/build/types/carbonbox/shared/domain/enums/GreenhouseGasCategory.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.d.ts +24 -0
- package/build/types/carbonbox/shared/domain/value-objects/GreenhouseGasSpecies.d.ts.map +1 -0
- package/build/types/main/index.d.ts +3 -1
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/build/carbonbox/shared/domain/enums/GreenhouseGas.js +0 -14
- package/build/types/carbonbox/shared/domain/enums/GreenhouseGas.d.ts +0 -11
- package/build/types/carbonbox/shared/domain/enums/GreenhouseGas.d.ts.map +0 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GreenhouseGasSpecies = void 0;
|
|
4
|
+
const String_1 = require("./String");
|
|
5
|
+
const InvalidPropertyValueError_1 = require("../exceptions/InvalidPropertyValueError");
|
|
6
|
+
/**
|
|
7
|
+
* Código canónico de la especie de gas de efecto invernadero (p.ej. `CO2`, `CH4-FOSSIL`,
|
|
8
|
+
* `R-410A`, `HFC-134A`). La especie es la llave real con la que se cruzan EmissionFactor y
|
|
9
|
+
* GlobalWarmingPotential: por eso se normaliza al ingresar (trim + colapsar espacios + UPPERCASE)
|
|
10
|
+
* para que un mismo refrigerante escrito con espacios/casing distintos matchee siempre igual.
|
|
11
|
+
* La categoría (GreenhouseGasCategory) viaja al lado; aquí no se valida coherencia química
|
|
12
|
+
* especie↔categoría (decisión de diseño: validación permisiva, match por especie).
|
|
13
|
+
*/
|
|
14
|
+
class GreenhouseGasSpecies extends String_1.String {
|
|
15
|
+
constructor(value, skipDomainValidation) {
|
|
16
|
+
super(value, skipDomainValidation, GreenhouseGasSpecies.PROPERTY_NAME);
|
|
17
|
+
if (skipDomainValidation === false) {
|
|
18
|
+
GreenhouseGasSpecies.guardAgainstInvalidSpecies(value);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
static create(value) {
|
|
22
|
+
const normalized = GreenhouseGasSpecies.normalize(value);
|
|
23
|
+
return new GreenhouseGasSpecies(normalized, false);
|
|
24
|
+
}
|
|
25
|
+
static fromPrimitives(primitive) {
|
|
26
|
+
return new GreenhouseGasSpecies(primitive, true);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Forma canónica única usada en todo el sistema (seed, bulk y motor): trim + colapsar
|
|
30
|
+
* espacios internos + UPPERCASE. Idempotente.
|
|
31
|
+
*/
|
|
32
|
+
static normalize(value) {
|
|
33
|
+
String_1.String.guardAgainstInvalidType(value, GreenhouseGasSpecies.PROPERTY_NAME);
|
|
34
|
+
return value.trim().replace(/\s+/g, ' ').toUpperCase();
|
|
35
|
+
}
|
|
36
|
+
static guardAgainstInvalidSpecies(value) {
|
|
37
|
+
String_1.String.guardAgainstEmptyValue(value, GreenhouseGasSpecies.PROPERTY_NAME);
|
|
38
|
+
if (!GreenhouseGasSpecies.SPECIES_REGEX.test(value)) {
|
|
39
|
+
throw InvalidPropertyValueError_1.InvalidPropertyValueError.create(GreenhouseGasSpecies.PROPERTY_NAME, 'species code matching [A-Z0-9 /-] (already normalized)', `"${value}"`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
toPrimitives() {
|
|
43
|
+
return this.value;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.GreenhouseGasSpecies = GreenhouseGasSpecies;
|
|
47
|
+
GreenhouseGasSpecies.PROPERTY_NAME = 'greenhouseGasSpecies';
|
|
48
|
+
// Letras, dígitos, espacio, guion y barra: cubre ASHRAE (R-410A) y químicos/mezclas
|
|
49
|
+
// (HFC-134A, MEZCLA HFC 365MFC/HFC 227EA, POLYCOLD 1102HC).
|
|
50
|
+
GreenhouseGasSpecies.SPECIES_REGEX = /^[A-Z0-9][A-Z0-9 /-]*$/;
|
package/build/main/index.js
CHANGED
|
@@ -10,17 +10,17 @@ exports.CarbonFootprintIntensityIndicatorName = exports.CarbonFootprintIntensity
|
|
|
10
10
|
exports.EmissionFactor = exports.CalculationVariable = exports.EmissionCalculationFormula = exports.InvalidOperationalScopeError = exports.OperationalScopeTypeEnum = exports.ProductProductionLocation = exports.ProductDescription = 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.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 = void 0;
|
|
11
11
|
exports.CalculationProcess = exports.CalculationJob = exports.UnauthorizedFormulaCreationRoleError = exports.InvalidEmissionCalculationFormulaActivityVariableSymbolError = exports.InvalidGreenhouseGasTypeError = exports.DuplicateGreenhouseGasError = exports.ResultUnitEnum = exports.FormulaStatusEnum = exports.GlobalWarmingPotentialInformationSource = exports.GlobalWarmingPotentialGreenhouseGasPotentials = exports.GlobalWarmingPotentialValidityPeriod = exports.GlobalWarmingPotentialTimeHorizonYears = exports.GlobalWarmingPotentialProtocolVersion = exports.GlobalWarmingPotentialReferenceName = exports.GlobalWarmingPotentialId = exports.EmissionFactorInformationSource = exports.EmissionFactorGreenhouseGasValues = exports.EmissionFactorDescription = exports.EmissionFactorName = exports.EmissionFactorCode = exports.EmissionFactorId = 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 = void 0;
|
|
12
12
|
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 = 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 = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
exports.
|
|
22
|
-
exports.
|
|
23
|
-
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 = void 0;
|
|
13
|
+
exports.PurchaseContractType = exports.PurchaseContractStatus = exports.PurchaseContractTitle = exports.PurchaseContractCode = exports.PurchaseContractId = exports.ServicePricing = exports.ServiceCatalog = exports.PurchaseOrder = exports.PurchaseContract = exports.UnknownGreenhouseGasCategoryError = exports.CalculationStatusEnum = exports.GHGEmissionResultUnit = exports.GHGEmissionResultCo2Equivalent = exports.GHGEmissionResultRawEmission = exports.GHGEmissionResultGlobalWarmingPotential = exports.GHGEmissionResultEmissionFactor = exports.GHGEmissionResultActivityValue = exports.GreenhouseGasSpecies = exports.GHGEmissionResultGreenhouseGas = 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 = void 0;
|
|
14
|
+
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 = 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 = void 0;
|
|
15
|
+
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 = 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 = void 0;
|
|
16
|
+
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 = exports.InvalidPaymentTermsError = exports.InvalidPaymentScheduleError = exports.InvalidContractValueFactorError = exports.InvalidContractTypeError = exports.InvalidContractStatusError = exports.PricingStatusEnum = exports.PricingModelEnum = exports.UserRoleEnum = exports.ReportTypeEnum = 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 = void 0;
|
|
17
|
+
exports.Gender = exports.Currency = exports.ColombiaNIT = exports.TaxIdentificationNumber = 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.SemanticUuidPrefixEnum = exports.TaxIdentificationEnum = exports.SystemBoundaryEnum = exports.StakeholderRoleEnum = exports.ReportingStandardEnum = exports.ISOCategoryEnum = exports.GreenhouseGasCategoryEnum = exports.GenderEnum = exports.GHGSubScopeEnum = exports.GHGScopeEnum = exports.EmissionSourceEnum = exports.EmissionCategoryEnum = exports.DayOfWeekEnum = exports.CurrencyEnum = exports.CountryCodeEnum = exports.BusinessScaleEnum = exports.LocaleEnum = exports.UserBusinessStatusEnum = exports.UserTypeEnum = exports.RootError = exports.ObjectValueObject = exports.PrimitiveValueObject = exports.ValueObject = exports.User = exports.DomainError = exports.AggregateRoot = exports.InvalidUnitsError = exports.InvalidTaxPercentageError = exports.InvalidPricingStatusError = exports.InvalidPricingModelError = exports.InvalidPricePerUnitError = void 0;
|
|
18
|
+
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 = exports.NullableCode = exports.NullableString = exports.TaxIdentificationNumberList = exports.UrlList = exports.StringList = exports.CodeList = exports.AggregateIdList = exports.TaxIdentification = void 0;
|
|
19
|
+
exports.InvalidStringListError = exports.EmptyArrayNotAllowedError = exports.PasswordPolicyViolationError = exports.InvalidNationalNumberError = exports.InvalidFullInternationalNumberError = exports.InvalidEmailPolicyError = exports.InvalidCoordinatesError = exports.InvalidTimeFormatError = exports.InvalidDateRangeError = exports.InvalidDateFormatError = 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.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.FacilityReference = exports.EventReference = exports.EventEditionReferences = exports.EventEditionReference = exports.EventEditionLifecycleStageReference = exports.EventEditionLifecycleStageConfigurationReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReferences = exports.EventEditionConfigurationCarbonFootprintSubsegmentReference = exports.CorporateConfigurationCarbonFootprintSubsegmentReference = exports.CorporateConfigurationCarbonFootprintSegmentReference = exports.CorporateCarbonFootprintSegmentConfigurationReferences = exports.CollectionFieldReference = void 0;
|
|
20
|
+
exports.StakeholderRoleType = exports.StakeholderBusinessStatus = exports.StakeholderPassword = exports.StakeholderDisplayName = exports.StakeholderEmail = exports.StakeholderId = exports.CarbonManager = exports.CarbonHost = exports.CarbonCoordinator = exports.CarbonClient = exports.Stakeholder = 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 = exports.InvalidCodeError = exports.InvalidAssignerRoleError = exports.InvalidAggregateIdError = exports.EmptyTaxIdentificationNumberError = exports.EmptySegmentNameError = exports.EmptySegmentCodeError = exports.EmptyDisplayNameError = exports.DateGreaterThanError = exports.InvalidUserBusinessStatusError = exports.InvalidUserTypeError = exports.DivisionByZeroError = exports.MoneyOverflowError = exports.NotIntegerError = exports.NegativeAmountError = exports.MinimumValueViolationError = exports.InvalidUrlListError = exports.InvalidCodeListError = void 0;
|
|
21
|
+
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 = 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 = void 0;
|
|
22
|
+
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 = 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.UserCreationDomainService = exports.AggregateIdDomainService = exports.DateTimeFormattingDomainService = exports.InvalidCarbonCoordinatorAvailabilityStatusError = 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 = void 0;
|
|
23
|
+
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 = void 0;
|
|
24
24
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
25
25
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
26
26
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -864,6 +864,8 @@ var GHGEmissionResultEmissionCalculation_1 = require("../carbonbox/emission-calc
|
|
|
864
864
|
Object.defineProperty(exports, "GHGEmissionResultEmissionCalculation", { enumerable: true, get: function () { return GHGEmissionResultEmissionCalculation_1.GHGEmissionResultEmissionCalculation; } });
|
|
865
865
|
var GHGEmissionResultGreenhouseGas_1 = require("../carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultGreenhouseGas");
|
|
866
866
|
Object.defineProperty(exports, "GHGEmissionResultGreenhouseGas", { enumerable: true, get: function () { return GHGEmissionResultGreenhouseGas_1.GHGEmissionResultGreenhouseGas; } });
|
|
867
|
+
var GreenhouseGasSpecies_1 = require("../carbonbox/shared/domain/value-objects/GreenhouseGasSpecies");
|
|
868
|
+
Object.defineProperty(exports, "GreenhouseGasSpecies", { enumerable: true, get: function () { return GreenhouseGasSpecies_1.GreenhouseGasSpecies; } });
|
|
867
869
|
var GHGEmissionResultActivityValue_1 = require("../carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultActivityValue");
|
|
868
870
|
Object.defineProperty(exports, "GHGEmissionResultActivityValue", { enumerable: true, get: function () { return GHGEmissionResultActivityValue_1.GHGEmissionResultActivityValue; } });
|
|
869
871
|
var GHGEmissionResultEmissionFactor_1 = require("../carbonbox/emission-calculation-results/ghg-emission-results/domain/value-objects/GHGEmissionResultEmissionFactor");
|
|
@@ -1274,8 +1276,8 @@ var GHGSubScope_1 = require("../carbonbox/shared/domain/enums/GHGSubScope");
|
|
|
1274
1276
|
Object.defineProperty(exports, "GHGSubScopeEnum", { enumerable: true, get: function () { return GHGSubScope_1.GHGSubScope; } });
|
|
1275
1277
|
var Gender_1 = require("../carbonbox/shared/domain/enums/Gender");
|
|
1276
1278
|
Object.defineProperty(exports, "GenderEnum", { enumerable: true, get: function () { return Gender_1.Gender; } });
|
|
1277
|
-
var
|
|
1278
|
-
Object.defineProperty(exports, "
|
|
1279
|
+
var GreenhouseGasCategory_1 = require("../carbonbox/shared/domain/enums/GreenhouseGasCategory");
|
|
1280
|
+
Object.defineProperty(exports, "GreenhouseGasCategoryEnum", { enumerable: true, get: function () { return GreenhouseGasCategory_1.GreenhouseGasCategory; } });
|
|
1279
1281
|
var ISOCategory_1 = require("../carbonbox/shared/domain/enums/ISOCategory");
|
|
1280
1282
|
Object.defineProperty(exports, "ISOCategoryEnum", { enumerable: true, get: function () { return ISOCategory_1.ISOCategory; } });
|
|
1281
1283
|
var ReportingStandard_1 = require("../carbonbox/shared/domain/enums/ReportingStandard");
|
|
@@ -4,7 +4,6 @@ import { EmissionFactorReferencePrimitives } from '../../../shared/domain/types/
|
|
|
4
4
|
import { GlobalWarmingPotentialReferencePrimitives } from '../../../shared/domain/types/GlobalWarmingPotentialReferencePrimitives';
|
|
5
5
|
import { ResultUnit } from '../enums/ResultUnit';
|
|
6
6
|
import { FormulaStatus } from '../enums/FormulaStatus';
|
|
7
|
-
import { GreenhouseGas } from '../../../shared/domain/enums/GreenhouseGas';
|
|
8
7
|
import { EmissionSource } from '../../../shared/domain/enums/EmissionSource';
|
|
9
8
|
import { AggregateRootPrimitives } from '../../../shared/domain/types/AggregateRootPrimitives';
|
|
10
9
|
import { ActivityDataFieldConditionPrimitives } from '../../calculation-variables/domain/types/ActivityDataFieldConditionPrimitives';
|
|
@@ -17,7 +16,7 @@ export type EmissionCalculationFormulaPrimitives = AggregateRootPrimitives & {
|
|
|
17
16
|
expression: string;
|
|
18
17
|
resultUnit: ResultUnit;
|
|
19
18
|
status: FormulaStatus;
|
|
20
|
-
applicableGreenhouseGases:
|
|
19
|
+
applicableGreenhouseGases: string[];
|
|
21
20
|
emissionSource: EmissionSource;
|
|
22
21
|
variables: CalculationVariableReferencePrimitives[];
|
|
23
22
|
activityVariableSymbol: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionCalculationFormulaPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,qEAAqE,CAAC;AAC7H,OAAO,EAAE,iCAAiC,EAAE,MAAM,gEAAgE,CAAC;AACnH,OAAO,EAAE,yCAAyC,EAAE,MAAM,wEAAwE,CAAC;AACnI,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"EmissionCalculationFormulaPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6DAA6D,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,qEAAqE,CAAC;AAC7H,OAAO,EAAE,iCAAiC,EAAE,MAAM,gEAAgE,CAAC;AACnH,OAAO,EAAE,yCAAyC,EAAE,MAAM,wEAAwE,CAAC;AACnI,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,oCAAoC,EAAE,MAAM,+EAA+E,CAAC;AAErI,MAAM,MAAM,oCAAoC,GAAG,uBAAuB,GAAG;IAC3E,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,sCAAsC,EAAE,CAAC;IACpD,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,cAAc,EAAE,iCAAiC,CAAC;IAClD,sBAAsB,EAAE,yCAAyC,CAAC;IAClE,oBAAoB,EAAE,8BAA8B,CAAC;IAGrD,iBAAiB,EAAE,oCAAoC,EAAE,CAAC;CAC3D,CAAC"}
|
|
@@ -4,7 +4,6 @@ import { FormulaStatus } from '../enums/FormulaStatus';
|
|
|
4
4
|
import { CalculationVariableReference } from '../../../shared/domain/types/CalculationVariableReference';
|
|
5
5
|
import { EmissionFactorReference } from '../../../shared/domain/types/EmissionFactorReference';
|
|
6
6
|
import { GlobalWarmingPotentialReference } from '../../../shared/domain/types/GlobalWarmingPotentialReference';
|
|
7
|
-
import { GreenhouseGas } from '../../../shared/domain/enums/GreenhouseGas';
|
|
8
7
|
import { EmissionSource } from '../../../shared/domain/enums/EmissionSource';
|
|
9
8
|
import { AggregateRootProps } from '../../../shared/domain/types/AggregateRootProps';
|
|
10
9
|
import { ActivityDataFieldCondition } from '../../calculation-variables/domain/types/ActivityDataFieldCondition';
|
|
@@ -17,7 +16,7 @@ export interface EmissionCalculationFormulaProps extends AggregateRootProps {
|
|
|
17
16
|
expression: string;
|
|
18
17
|
resultUnit: ResultUnit;
|
|
19
18
|
status: FormulaStatus;
|
|
20
|
-
applicableGreenhouseGases:
|
|
19
|
+
applicableGreenhouseGases: string[];
|
|
21
20
|
emissionSource: EmissionSource;
|
|
22
21
|
variables: CalculationVariableReference[];
|
|
23
22
|
activityVariableSymbol: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionCalculationFormulaProps.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,+BAA+B,EAAE,MAAM,8DAA8D,CAAC;AAC/G,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"EmissionCalculationFormulaProps.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/types/EmissionCalculationFormulaProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mDAAmD,CAAC;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AACzG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AAC/F,OAAO,EAAE,+BAA+B,EAAE,MAAM,8DAA8D,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iDAAiD,CAAC;AACrF,OAAO,EAAE,0BAA0B,EAAE,MAAM,qEAAqE,CAAC;AAEjH,MAAM,WAAW,+BAAgC,SAAQ,kBAAkB;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,aAAa,CAAC;IACtB,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,cAAc,EAAE,cAAc,CAAC;IAC/B,SAAS,EAAE,4BAA4B,EAAE,CAAC;IAC1C,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,cAAc,EAAE,uBAAuB,CAAC;IACxC,sBAAsB,EAAE,+BAA+B,CAAC;IACxD,oBAAoB,EAAE,oBAAoB,CAAC;IAG3C,iBAAiB,EAAE,0BAA0B,EAAE,CAAC;CACjD"}
|
|
@@ -1,117 +1,23 @@
|
|
|
1
1
|
import { StringList } from '../../../shared/domain/value-objects/StringList';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Especies de gas a las que aplica una fórmula (códigos normalizados: `CO2`, `CH4-FOSSIL`, `R-410A`…).
|
|
4
|
+
* La categoría de cada especie NO se guarda aquí: se resuelve desde el dato de referencia
|
|
5
|
+
* (EmissionFactor / GlobalWarmingPotential), que es la fuente de verdad de la taxonomía.
|
|
6
|
+
* Vacío = la fórmula aplica a toda submission del emissionSource (semántica CAL-007 preservada).
|
|
7
|
+
*/
|
|
3
8
|
export declare class EmissionCalculationFormulaApplicableGreenhouseGases extends StringList {
|
|
4
|
-
#private;
|
|
5
9
|
private static readonly PROPERTY_NAME;
|
|
6
10
|
private constructor();
|
|
7
|
-
/**
|
|
8
|
-
* Factory method para crear una instancia.
|
|
9
|
-
*/
|
|
10
11
|
static create(value: string[]): EmissionCalculationFormulaApplicableGreenhouseGases;
|
|
11
12
|
static fromPrimitives(primitives: string[]): EmissionCalculationFormulaApplicableGreenhouseGases;
|
|
12
|
-
|
|
13
|
-
* Validaciones específicas para greenhouse gas types.
|
|
14
|
-
*/
|
|
15
|
-
private static guardAgainstInvalidGreenhouseGases;
|
|
16
|
-
/**
|
|
17
|
-
* Convierte a representación primitiva.
|
|
18
|
-
*/
|
|
13
|
+
private static guardAgainstDuplicateSpecies;
|
|
19
14
|
toPrimitives(): string[];
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
23
|
-
toEnums(): GreenhouseGas[];
|
|
24
|
-
/**
|
|
25
|
-
* Obtiene los greenhouse gas types como array de strings.
|
|
26
|
-
*/
|
|
27
|
-
toGreenhouseGasTypeStrings(): string[];
|
|
28
|
-
/**
|
|
29
|
-
* Verifica si contiene un greenhouse gas type específico.
|
|
30
|
-
*/
|
|
31
|
-
contains(gasType: GreenhouseGas): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Obtiene los greenhouse gases como array inmutable.
|
|
34
|
-
*/
|
|
35
|
-
get greenhouseGases(): readonly GreenhouseGas[];
|
|
36
|
-
/**
|
|
37
|
-
* Número de greenhouse gases.
|
|
38
|
-
*/
|
|
15
|
+
get speciesCodes(): readonly string[];
|
|
16
|
+
contains(species: string): boolean;
|
|
39
17
|
get length(): number;
|
|
40
|
-
/**
|
|
41
|
-
* Verifica si la colección está vacía.
|
|
42
|
-
*/
|
|
43
18
|
isEmpty(): boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Verifica si la colección tiene valores.
|
|
46
|
-
*/
|
|
47
19
|
hasValues(): boolean;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
*/
|
|
51
|
-
includesAllOf(gasTypes: GreenhouseGas[]): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Verifica si incluye alguno de los greenhouse gas types especificados.
|
|
54
|
-
*/
|
|
55
|
-
includesAnyOf(gasTypes: GreenhouseGas[]): boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Obtiene los greenhouse gas types comunes con otra colección.
|
|
58
|
-
*/
|
|
59
|
-
getCommonGases(other: EmissionCalculationFormulaApplicableGreenhouseGases): GreenhouseGas[];
|
|
60
|
-
/**
|
|
61
|
-
* Obtiene los greenhouse gas types únicos de esta colección comparado con otra.
|
|
62
|
-
*/
|
|
63
|
-
getUniqueGases(other: EmissionCalculationFormulaApplicableGreenhouseGases): GreenhouseGas[];
|
|
64
|
-
/**
|
|
65
|
-
* Verifica si contiene CO2.
|
|
66
|
-
*/
|
|
67
|
-
hasCO2(): boolean;
|
|
68
|
-
/**
|
|
69
|
-
* Verifica si contiene CH4 (metano).
|
|
70
|
-
*/
|
|
71
|
-
hasMethane(): boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Verifica si contiene N2O (óxido nitroso).
|
|
74
|
-
*/
|
|
75
|
-
hasNitrousOxide(): boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Verifica si contiene gases fluorados (HFCs, PFCs, SF6, NF3).
|
|
78
|
-
*/
|
|
79
|
-
hasFluorinatedGases(): boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Verifica si contiene solo los tres gases principales del Protocolo de Kyoto.
|
|
82
|
-
*/
|
|
83
|
-
hasOnlyKyotoMainGases(): boolean;
|
|
84
|
-
/**
|
|
85
|
-
* Verifica si incluye todos los gases del Protocolo de Kyoto.
|
|
86
|
-
*/
|
|
87
|
-
includesAllKyotoGases(): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Obtiene los gases por categoría de potencial de calentamiento.
|
|
90
|
-
*/
|
|
91
|
-
getGasesByWarmingPotentialCategory(): {
|
|
92
|
-
lowPotential: GreenhouseGas[];
|
|
93
|
-
mediumPotential: GreenhouseGas[];
|
|
94
|
-
highPotential: GreenhouseGas[];
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* Obtiene la complejidad de la colección basada en el número y tipo de gases.
|
|
98
|
-
*/
|
|
99
|
-
getComplexity(): 'simple' | 'medium' | 'complex';
|
|
100
|
-
/**
|
|
101
|
-
* Obtiene estadísticas de la colección.
|
|
102
|
-
*/
|
|
103
|
-
getStatistics(): {
|
|
104
|
-
totalGases: number;
|
|
105
|
-
hasCO2: boolean;
|
|
106
|
-
hasMethane: boolean;
|
|
107
|
-
hasNitrousOxide: boolean;
|
|
108
|
-
hasFluorinatedGases: boolean;
|
|
109
|
-
includesAllKyotoGases: boolean;
|
|
110
|
-
complexity: 'simple' | 'medium' | 'complex';
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Representación como string de los greenhouse gas types.
|
|
114
|
-
*/
|
|
115
|
-
toString(): string;
|
|
20
|
+
includesAllOf(species: string[]): boolean;
|
|
21
|
+
includesAnyOf(species: string[]): boolean;
|
|
116
22
|
}
|
|
117
23
|
//# sourceMappingURL=EmissionCalculationFormulaApplicableGreenhouseGases.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmissionCalculationFormulaApplicableGreenhouseGases.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaApplicableGreenhouseGases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"EmissionCalculationFormulaApplicableGreenhouseGases.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/value-objects/EmissionCalculationFormulaApplicableGreenhouseGases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAC;AAI7E;;;;;GAKG;AACH,qBAAa,mDAAoD,SAAQ,UAAU;IACjF,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAA+B;IAEpE,OAAO;WAagB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,mDAAmD;WAS5E,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,GAAG,mDAAmD;IAIhH,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAc3B,YAAY,IAAI,MAAM,EAAE;IAIxC,IAAW,YAAY,IAAI,SAAS,MAAM,EAAE,CAE3C;IAEM,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO;IAIzC,IAAW,MAAM,IAAI,MAAM,CAE1B;IAEM,OAAO,IAAI,OAAO;IAIlB,SAAS,IAAI,OAAO;IAIpB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO;IAIzC,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO;CAGjD"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GreenhouseGasCategory } from '../../../../shared/domain/enums/GreenhouseGasCategory';
|
|
2
2
|
import { CountryFactorValue } from './CountryFactorValue';
|
|
3
3
|
export type GHGFactorValue = {
|
|
4
|
-
|
|
4
|
+
greenhouseGasCategory: GreenhouseGasCategory;
|
|
5
|
+
greenhouseGasSpecies: string;
|
|
5
6
|
countryValues: CountryFactorValue[];
|
|
6
7
|
unit: string;
|
|
7
8
|
dataSource: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GHGFactorValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GHGFactorValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,MAAM,cAAc,GAAG;IAC3B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,kBAAkB,EAAE,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GreenhouseGasCategory } from '../../../../shared/domain/enums/GreenhouseGasCategory';
|
|
2
2
|
import { CountryFactorValuePrimitives } from './CountryFactorValuePrimitives';
|
|
3
3
|
export type GHGFactorValuePrimitives = {
|
|
4
|
-
|
|
4
|
+
greenhouseGasCategory: GreenhouseGasCategory;
|
|
5
|
+
greenhouseGasSpecies: string;
|
|
5
6
|
countryValues: CountryFactorValuePrimitives[];
|
|
6
7
|
unit: string;
|
|
7
8
|
dataSource: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GHGFactorValuePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValuePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GHGFactorValuePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/emission-factors/domain/types/GHGFactorValuePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAE9E,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,4BAA4B,EAAE,CAAC;IAC9C,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -9,7 +9,7 @@ export declare class EmissionFactorGreenhouseGasValues extends ValueObject<GHGFa
|
|
|
9
9
|
toPrimitives(): GHGFactorValuePrimitives[];
|
|
10
10
|
private static guardAgainstInvalidArray;
|
|
11
11
|
private static guardAgainstInvalidGHGFactorValue;
|
|
12
|
-
private static
|
|
12
|
+
private static guardAgainstInvalidCategory;
|
|
13
13
|
private static guardAgainstInvalidCountryValues;
|
|
14
14
|
private static guardAgainstInvalidCountryFactorValue;
|
|
15
15
|
private static guardAgainstInvalidValidityPeriod;
|
|
@@ -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;
|
|
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;IAoChD,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,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GreenhouseGasCategory } from '../../../../shared/domain/enums/GreenhouseGasCategory';
|
|
2
2
|
export type GHGPotentialValue = {
|
|
3
|
-
|
|
3
|
+
greenhouseGasCategory: GreenhouseGasCategory;
|
|
4
|
+
greenhouseGasSpecies: string;
|
|
4
5
|
potentialValue: number;
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=GHGPotentialValue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GHGPotentialValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GHGPotentialValue.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,MAAM,MAAM,iBAAiB,GAAG;IAC9B,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GreenhouseGasCategory } from '../../../../shared/domain/enums/GreenhouseGasCategory';
|
|
2
2
|
export type GHGPotentialValuePrimitives = {
|
|
3
|
-
|
|
3
|
+
greenhouseGasCategory: GreenhouseGasCategory;
|
|
4
|
+
greenhouseGasSpecies: string;
|
|
4
5
|
potentialValue: number;
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=GHGPotentialValuePrimitives.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GHGPotentialValuePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValuePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GHGPotentialValuePrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-formulas/global-warming-potentials/domain/types/GHGPotentialValuePrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,MAAM,MAAM,2BAA2B,GAAG;IACxC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
|
@@ -9,9 +9,9 @@ export declare class GlobalWarmingPotentialGreenhouseGasPotentials extends Value
|
|
|
9
9
|
toPrimitives(): GHGPotentialValuePrimitives[];
|
|
10
10
|
private static guardAgainstInvalidArray;
|
|
11
11
|
private static guardAgainstInvalidGHGPotentialValue;
|
|
12
|
-
private static
|
|
12
|
+
private static guardAgainstInvalidCategory;
|
|
13
13
|
private static guardAgainstInvalidPotentialValue;
|
|
14
|
-
private static
|
|
14
|
+
private static guardAgainstDuplicateSpecies;
|
|
15
15
|
private static toPrimitivesArray;
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=GlobalWarmingPotentialGreenhouseGasPotentials.d.ts.map
|
|
@@ -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;
|
|
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;IAsBnD,OAAO,CAAC,MAAM,CAAC,2BAA2B;IAa1C,OAAO,CAAC,MAAM,CAAC,iCAAiC;IAehD,OAAO,CAAC,MAAM,CAAC,4BAA4B;IAgB3C,OAAO,CAAC,MAAM,CAAC,iBAAiB;CASjC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GreenhouseGasCategory } from '../../../../shared/domain/enums/GreenhouseGasCategory';
|
|
2
2
|
export type GHGBreakdown = {
|
|
3
|
-
|
|
3
|
+
greenhouseGasCategory: GreenhouseGasCategory;
|
|
4
|
+
greenhouseGasSpecies: string;
|
|
4
5
|
co2Equivalent: number;
|
|
5
6
|
percentage: number;
|
|
6
7
|
unit: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GHGBreakdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GHGBreakdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,MAAM,MAAM,YAAY,GAAG;IACzB,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GreenhouseGasCategory } from '../../../../shared/domain/enums/GreenhouseGasCategory';
|
|
2
2
|
export type GHGBreakdownPrimitives = {
|
|
3
|
-
|
|
3
|
+
greenhouseGasCategory: GreenhouseGasCategory;
|
|
4
|
+
greenhouseGasSpecies: string;
|
|
4
5
|
co2Equivalent: number;
|
|
5
6
|
percentage: number;
|
|
6
7
|
unit: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GHGBreakdownPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdownPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"GHGBreakdownPrimitives.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-results/emission-aggregations/domain/types/GHGBreakdownPrimitives.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAE9F,MAAM,MAAM,sBAAsB,GAAG;IACnC,qBAAqB,EAAE,qBAAqB,CAAC;IAC7C,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC"}
|