@carbonbox/domain 0.7.34 → 0.8.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-process/calculation-jobs/domain/events/CalculationJobCompletedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobFailedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobStartedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobCompletedPayload.js +2 -0
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobFailedPayload.js +2 -0
- package/build/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobStartedPayload.js +2 -0
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.js +11 -2
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessCompletedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessFailedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessCompletedPayload.js +2 -0
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessFailedPayload.js +2 -0
- package/build/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessParentWorkflow.js +34 -0
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowActivatedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowPausedDomainEvent.js +38 -0
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/types/WorkflowActivatedPayload.js +2 -0
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/types/WorkflowPausedPayload.js +2 -0
- package/build/carbonbox/shared/domain/events/DomainEvent.js +33 -0
- package/build/carbonbox/shared/domain/events/DomainEventEnvelopePrimitives.js +2 -0
- package/build/carbonbox/shared/domain/events/DomainEventName.js +113 -0
- package/build/carbonbox/shared/domain/events/IDomainEvent.js +2 -0
- package/build/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.js +17 -0
- package/build/carbonbox/shared/domain/types/CalculationWorkflowReference.js +2 -0
- package/build/carbonbox/shared/domain/types/CalculationWorkflowReferencePrimitives.js +2 -0
- package/build/carbonbox/shared/domain/types/DomainEventEnvelopePrimitives.js +2 -0
- package/build/carbonbox/shared/domain/types/DomainEventFromPrimitivesInput.js +2 -0
- package/build/carbonbox/shared/domain/value-objects/CalculationWorkflowReference.js +89 -0
- package/build/main/index.js +46 -11
- package/build/types/carbonbox/emission-calculation-formulas/domain/repository/IEmissionCalculationFormulaRepository.d.ts +11 -0
- package/build/types/carbonbox/emission-calculation-formulas/domain/repository/IEmissionCalculationFormulaRepository.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobCompletedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobCompletedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobFailedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobFailedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobStartedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobStartedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/repository/ICalculationJobRepository.d.ts +10 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/repository/ICalculationJobRepository.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobCompletedPayload.d.ts +26 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobCompletedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobFailedPayload.d.ts +28 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobFailedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobStartedPayload.d.ts +17 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobStartedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/entity/ICalculationProcess.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/entity/ICalculationProcess.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessCompletedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessCompletedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessFailedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessFailedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/repository/ICalculationProcessRepository.d.ts +13 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/repository/ICalculationProcessRepository.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessCompletedPayload.d.ts +21 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessCompletedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessFailedPayload.d.ts +24 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessFailedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessPrimitives.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessPrimitives.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessProps.d.ts +2 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/types/CalculationProcessProps.d.ts.map +1 -1
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessParentWorkflow.d.ts +20 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessParentWorkflow.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowActivatedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowActivatedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowPausedDomainEvent.d.ts +15 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowPausedDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/types/WorkflowActivatedPayload.d.ts +18 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/types/WorkflowActivatedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/types/WorkflowPausedPayload.d.ts +16 -0
- package/build/types/carbonbox/emission-calculation-process/calculation-workflows/domain/types/WorkflowPausedPayload.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/events/DomainEvent.d.ts +28 -0
- package/build/types/carbonbox/shared/domain/events/DomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/events/DomainEventEnvelopePrimitives.d.ts +26 -0
- package/build/types/carbonbox/shared/domain/events/DomainEventEnvelopePrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/events/DomainEventName.d.ts +40 -0
- package/build/types/carbonbox/shared/domain/events/DomainEventName.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/events/IDomainEvent.d.ts +36 -0
- package/build/types/carbonbox/shared/domain/events/IDomainEvent.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts +7 -0
- package/build/types/carbonbox/shared/domain/exceptions/InvalidDomainEventNameError.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/CalculationWorkflowReference.d.ts +13 -0
- package/build/types/carbonbox/shared/domain/types/CalculationWorkflowReference.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/CalculationWorkflowReferencePrimitives.d.ts +9 -0
- package/build/types/carbonbox/shared/domain/types/CalculationWorkflowReferencePrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/DomainEventEnvelopePrimitives.d.ts +26 -0
- package/build/types/carbonbox/shared/domain/types/DomainEventEnvelopePrimitives.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/types/DomainEventFromPrimitivesInput.d.ts +15 -0
- package/build/types/carbonbox/shared/domain/types/DomainEventFromPrimitivesInput.d.ts.map +1 -0
- package/build/types/carbonbox/shared/domain/value-objects/CalculationWorkflowReference.d.ts +32 -0
- package/build/types/carbonbox/shared/domain/value-objects/CalculationWorkflowReference.d.ts.map +1 -0
- package/build/types/main/index.d.ts +24 -0
- package/build/types/main/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
3
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
4
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
5
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
6
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
7
|
+
};
|
|
8
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
10
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
11
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
|
+
};
|
|
13
|
+
var _CalculationWorkflowReference_id;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CalculationWorkflowReference = void 0;
|
|
16
|
+
const InvalidPropertyTypeError_1 = require("../exceptions/InvalidPropertyTypeError");
|
|
17
|
+
const ObjectValueObject_1 = require("./ObjectValueObject");
|
|
18
|
+
const String_1 = require("./String");
|
|
19
|
+
const AggregateId_1 = require("./AggregateId");
|
|
20
|
+
/**
|
|
21
|
+
* Abstract reference to a CalculationWorkflow aggregate.
|
|
22
|
+
*
|
|
23
|
+
* Concrete sub-classes (e.g. `CalculationProcessParentWorkflow`) extend
|
|
24
|
+
* this VO to express "I am a reference to a workflow, used in this
|
|
25
|
+
* context". The abstract base centralises type and id validation so each
|
|
26
|
+
* sub-class only declares its own property name.
|
|
27
|
+
*
|
|
28
|
+
* The reference intentionally carries only `id`: data downstream
|
|
29
|
+
* consumers may need (`maxConcurrentProcesses`, `triggerType`, …) is
|
|
30
|
+
* fetched from the workflow aggregate, never duplicated here.
|
|
31
|
+
*/
|
|
32
|
+
class CalculationWorkflowReference extends ObjectValueObject_1.ObjectValueObject {
|
|
33
|
+
constructor(value, skipDomainValidation, propertyName = CalculationWorkflowReference.DEFAULT_PROPERTY_NAME) {
|
|
34
|
+
super(value, skipDomainValidation, propertyName, 'The provided value must be of type CalculationWorkflowReference from the domain layer', { allowNull: false, allowUndefined: false });
|
|
35
|
+
_CalculationWorkflowReference_id.set(this, void 0);
|
|
36
|
+
if (skipDomainValidation === false) {
|
|
37
|
+
CalculationWorkflowReference.validateCalculationWorkflowReference(value, propertyName);
|
|
38
|
+
}
|
|
39
|
+
__classPrivateFieldSet(this, _CalculationWorkflowReference_id, value.id.trim(), "f");
|
|
40
|
+
}
|
|
41
|
+
static validateCalculationWorkflowReference(value, propertyName) {
|
|
42
|
+
this.guardAgainstInvalidType(value, propertyName);
|
|
43
|
+
this.guardAgainstInvalidId(value.id);
|
|
44
|
+
}
|
|
45
|
+
static guardAgainstInvalidType(value, propertyName) {
|
|
46
|
+
if (!value || typeof value !== 'object') {
|
|
47
|
+
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create(propertyName, 'CalculationWorkflowReference object', typeof value);
|
|
48
|
+
}
|
|
49
|
+
if (typeof value.id !== 'string') {
|
|
50
|
+
throw InvalidPropertyTypeError_1.InvalidPropertyTypeError.create('id', 'string', typeof value.id);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
static guardAgainstInvalidId(id) {
|
|
54
|
+
String_1.String.guardAgainstEmptyValue(id, 'id');
|
|
55
|
+
AggregateId_1.AggregateId.guardAgainstInvalidId(id, 'id');
|
|
56
|
+
}
|
|
57
|
+
get id() {
|
|
58
|
+
return __classPrivateFieldGet(this, _CalculationWorkflowReference_id, "f");
|
|
59
|
+
}
|
|
60
|
+
hasId(id) {
|
|
61
|
+
return __classPrivateFieldGet(this, _CalculationWorkflowReference_id, "f") === id.trim();
|
|
62
|
+
}
|
|
63
|
+
equals(other) {
|
|
64
|
+
if (!(other instanceof CalculationWorkflowReference)) {
|
|
65
|
+
return false;
|
|
66
|
+
}
|
|
67
|
+
return __classPrivateFieldGet(this, _CalculationWorkflowReference_id, "f") === __classPrivateFieldGet(other, _CalculationWorkflowReference_id, "f");
|
|
68
|
+
}
|
|
69
|
+
hashCode() {
|
|
70
|
+
return __classPrivateFieldGet(this, _CalculationWorkflowReference_id, "f");
|
|
71
|
+
}
|
|
72
|
+
toPrimitives() {
|
|
73
|
+
return {
|
|
74
|
+
id: __classPrivateFieldGet(this, _CalculationWorkflowReference_id, "f"),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
toString() {
|
|
78
|
+
return __classPrivateFieldGet(this, _CalculationWorkflowReference_id, "f");
|
|
79
|
+
}
|
|
80
|
+
toJSON() {
|
|
81
|
+
return this.toPrimitives();
|
|
82
|
+
}
|
|
83
|
+
static validateCompletely(value, propertyName) {
|
|
84
|
+
this.validateCalculationWorkflowReference(value, propertyName);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.CalculationWorkflowReference = CalculationWorkflowReference;
|
|
88
|
+
_CalculationWorkflowReference_id = new WeakMap();
|
|
89
|
+
CalculationWorkflowReference.DEFAULT_PROPERTY_NAME = 'calculationWorkflowReference';
|
package/build/main/index.js
CHANGED
|
@@ -8,17 +8,17 @@ exports.CarbonFootprintSegment = exports.CarbonFootprintIntensityIndicator = exp
|
|
|
8
8
|
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.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.CorporateConfigurationCarbonFootprintSegmentName = exports.CorporateConfigurationCarbonFootprintSegmentCode = exports.CorporateConfigurationCarbonFootprintSegmentId = exports.CorporateCarbonFootprintSegmentConfigurationEmissionSources = exports.CorporateCarbonFootprintSegmentConfigurationSubsegment = exports.CorporateCarbonFootprintSegmentConfigurationSegment = exports.CorporateCarbonFootprintSegmentConfigurationId = exports.CorporateCarbonFootprintConfigurationSegmentConfigurations = exports.CorporateCarbonFootprintConfigurationExecutionPeriod = exports.CorporateCarbonFootprintConfigurationIntensityIndicatorConfigurations = exports.CorporateCarbonFootprintConfigurationCollectionPeriod = exports.CorporateCarbonFootprintConfigurationCarbonFootprintObjective = exports.CorporateCarbonFootprintConfigurationFacility = exports.CorporateCarbonFootprintConfigurationReportingStandard = exports.CorporateCarbonFootprintConfigurationCreatedByStakeholder = exports.CorporateCarbonFootprintConfigurationOwnedByCarbonClient = exports.CorporateCarbonFootprintConfigurationFootprintType = exports.CorporateCarbonFootprintConfigurationStatus = exports.CorporateCarbonFootprintConfigurationName = exports.CorporateCarbonFootprintConfigurationId = exports.CarbonFootprintSubsegment = void 0;
|
|
9
9
|
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 = exports.CarbonFootprintIntensityIndicatorName = exports.CarbonFootprintIntensityIndicatorCode = exports.CarbonFootprintIntensityIndicatorId = exports.CarbonFootprintSubsegmentName = exports.CarbonFootprintSubsegmentCode = exports.CarbonFootprintSubsegmentId = exports.CarbonFootprintSegmentName = exports.CarbonFootprintSegmentCode = exports.CarbonFootprintSegmentId = void 0;
|
|
10
10
|
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.CalculationVariableActivityDataConditions = exports.CalculationVariableDefaultValue = exports.CalculationVariableDescription = exports.CalculationVariableDataType = exports.CalculationVariableSymbol = exports.CalculationVariableName = exports.CalculationVariableCode = exports.CalculationVariableId = exports.EmissionCalculationFormulaGlobalWarmingPotential = exports.EmissionCalculationFormulaEmissionFactor = exports.EmissionCalculationFormulaApplicableGreenhouseGases = exports.EmissionCalculationFormulaInformationSource = exports.EmissionCalculationFormulaSearchTags = exports.EmissionCalculationFormulaCreatedByStakeholder = exports.EmissionCalculationFormulaEmissionSource = 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 = exports.ProductName = exports.ProductCode = void 0;
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.
|
|
19
|
-
exports.
|
|
20
|
-
exports.
|
|
21
|
-
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 = void 0;
|
|
11
|
+
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 = exports.CalculationProcess = exports.CalculationJob = exports.UnauthorizedFormulaCreationRoleError = void 0;
|
|
12
|
+
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.GHGEmissionResultGreenhouseGas = exports.GHGEmissionResultEmissionCalculation = exports.GHGEmissionResultId = exports.EmissionAggregationGhgBreakdown = exports.EmissionAggregationUncertaintyPercentage = exports.EmissionAggregationTotalCO2Equivalent = exports.EmissionAggregationEmissionSource = exports.EmissionAggregationEmissionCalculation = exports.EmissionAggregationId = 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 = void 0;
|
|
13
|
+
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 = exports.PurchaseContractType = void 0;
|
|
14
|
+
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 = exports.PurchaseOrderExpectedDeliveryDate = void 0;
|
|
15
|
+
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 = exports.ServicePricingAllowsDiscounts = void 0;
|
|
16
|
+
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.GreenhouseGasEnum = exports.GenderEnum = exports.GHGSubScopeEnum = exports.GHGScopeEnum = exports.EmissionSourceEnum = exports.EmissionCategoryEnum = exports.DayOfWeekEnum = exports.CurrencyEnum = exports.CountryCodeEnum = exports.BusinessScaleEnum = 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 = exports.InvalidMarkupPercentageError = void 0;
|
|
17
|
+
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.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;
|
|
18
|
+
exports.InvalidCodeListError = 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 = void 0;
|
|
19
|
+
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.CannotAccessRightOnLeftValueError = exports.CannotAccessLeftOnRightValueError = exports.ResultExtensions = exports.EitherUtils = exports.ResultFactory = exports.EitherFactory = exports.RightEither = exports.LeftEither = exports.Either = 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 = void 0;
|
|
20
|
+
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 = exports.CarbonClientLogo = exports.CarbonClientWebsiteUrl = exports.CarbonClientPhysicalAddress = exports.CarbonClientOrganizationSize = exports.CarbonClientIndustryType = exports.CarbonClientUserType = exports.CarbonClientLegalBusinessName = exports.CarbonClientAccountType = exports.CarbonClientDisplayName = exports.CarbonClientEmail = void 0;
|
|
21
|
+
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 = void 0;
|
|
22
22
|
// ─── Entity Classes (For Application Layer) ─────────────────────────────────
|
|
23
23
|
var ActivityDataSubmission_1 = require("../carbonbox/activity-data-collection/activity-data-submissions/domain/entity/ActivityDataSubmission");
|
|
24
24
|
Object.defineProperty(exports, "ActivityDataSubmission", { enumerable: true, get: function () { return ActivityDataSubmission_1.ActivityDataSubmission; } });
|
|
@@ -651,6 +651,8 @@ var CalculationProcessMaxRetries_1 = require("../carbonbox/emission-calculation-
|
|
|
651
651
|
Object.defineProperty(exports, "CalculationProcessMaxRetries", { enumerable: true, get: function () { return CalculationProcessMaxRetries_1.CalculationProcessMaxRetries; } });
|
|
652
652
|
var CalculationProcessCalculationsGenerated_1 = require("../carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessCalculationsGenerated");
|
|
653
653
|
Object.defineProperty(exports, "CalculationProcessCalculationsGenerated", { enumerable: true, get: function () { return CalculationProcessCalculationsGenerated_1.CalculationProcessCalculationsGenerated; } });
|
|
654
|
+
var CalculationProcessParentWorkflow_1 = require("../carbonbox/emission-calculation-process/calculation-processes/domain/value-objects/CalculationProcessParentWorkflow");
|
|
655
|
+
Object.defineProperty(exports, "CalculationProcessParentWorkflow", { enumerable: true, get: function () { return CalculationProcessParentWorkflow_1.CalculationProcessParentWorkflow; } });
|
|
654
656
|
// Calculation Workflow Value Objects
|
|
655
657
|
var CalculationWorkflowId_1 = require("../carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowId");
|
|
656
658
|
Object.defineProperty(exports, "CalculationWorkflowId", { enumerable: true, get: function () { return CalculationWorkflowId_1.CalculationWorkflowId; } });
|
|
@@ -1693,3 +1695,36 @@ var UserPermissions_1 = require("../carbonbox/shared/domain/value-objects/UserPe
|
|
|
1693
1695
|
Object.defineProperty(exports, "UserPermissions", { enumerable: true, get: function () { return UserPermissions_1.UserPermissions; } });
|
|
1694
1696
|
var StakeholderPermissions_1 = require("../carbonbox/stakeholders/shared/domain/value-objects/StakeholderPermissions");
|
|
1695
1697
|
Object.defineProperty(exports, "StakeholderPermissions", { enumerable: true, get: function () { return StakeholderPermissions_1.StakeholderPermissions; } });
|
|
1698
|
+
// =============================================================================
|
|
1699
|
+
// SHARED DOMAIN EVENTS — base infrastructure
|
|
1700
|
+
// =============================================================================
|
|
1701
|
+
// ─── Base Class & Contract ──────────────────────────────────────────────────
|
|
1702
|
+
var DomainEvent_1 = require("../carbonbox/shared/domain/events/DomainEvent");
|
|
1703
|
+
Object.defineProperty(exports, "DomainEvent", { enumerable: true, get: function () { return DomainEvent_1.DomainEvent; } });
|
|
1704
|
+
var DomainEventName_1 = require("../carbonbox/shared/domain/events/DomainEventName");
|
|
1705
|
+
Object.defineProperty(exports, "DomainEventName", { enumerable: true, get: function () { return DomainEventName_1.DomainEventName; } });
|
|
1706
|
+
// ─── Exceptions ─────────────────────────────────────────────────────────────
|
|
1707
|
+
var InvalidDomainEventNameError_1 = require("../carbonbox/shared/domain/exceptions/InvalidDomainEventNameError");
|
|
1708
|
+
Object.defineProperty(exports, "InvalidDomainEventNameError", { enumerable: true, get: function () { return InvalidDomainEventNameError_1.InvalidDomainEventNameError; } });
|
|
1709
|
+
var CalculationWorkflowReference_1 = require("../carbonbox/shared/domain/value-objects/CalculationWorkflowReference");
|
|
1710
|
+
Object.defineProperty(exports, "CalculationWorkflowReferenceVO", { enumerable: true, get: function () { return CalculationWorkflowReference_1.CalculationWorkflowReference; } });
|
|
1711
|
+
// =============================================================================
|
|
1712
|
+
// EMISSION CALCULATION PROCESS — DOMAIN EVENTS
|
|
1713
|
+
// =============================================================================
|
|
1714
|
+
// ─── Calculation Workflow Events ────────────────────────────────────────────
|
|
1715
|
+
var WorkflowActivatedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowActivatedDomainEvent");
|
|
1716
|
+
Object.defineProperty(exports, "WorkflowActivatedDomainEvent", { enumerable: true, get: function () { return WorkflowActivatedDomainEvent_1.WorkflowActivatedDomainEvent; } });
|
|
1717
|
+
var WorkflowPausedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-workflows/domain/events/WorkflowPausedDomainEvent");
|
|
1718
|
+
Object.defineProperty(exports, "WorkflowPausedDomainEvent", { enumerable: true, get: function () { return WorkflowPausedDomainEvent_1.WorkflowPausedDomainEvent; } });
|
|
1719
|
+
// ─── Calculation Job Events ─────────────────────────────────────────────────
|
|
1720
|
+
var CalculationJobStartedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobStartedDomainEvent");
|
|
1721
|
+
Object.defineProperty(exports, "CalculationJobStartedDomainEvent", { enumerable: true, get: function () { return CalculationJobStartedDomainEvent_1.CalculationJobStartedDomainEvent; } });
|
|
1722
|
+
var CalculationJobCompletedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobCompletedDomainEvent");
|
|
1723
|
+
Object.defineProperty(exports, "CalculationJobCompletedDomainEvent", { enumerable: true, get: function () { return CalculationJobCompletedDomainEvent_1.CalculationJobCompletedDomainEvent; } });
|
|
1724
|
+
var CalculationJobFailedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobFailedDomainEvent");
|
|
1725
|
+
Object.defineProperty(exports, "CalculationJobFailedDomainEvent", { enumerable: true, get: function () { return CalculationJobFailedDomainEvent_1.CalculationJobFailedDomainEvent; } });
|
|
1726
|
+
// ─── Calculation Process Events ─────────────────────────────────────────────
|
|
1727
|
+
var CalculationProcessCompletedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessCompletedDomainEvent");
|
|
1728
|
+
Object.defineProperty(exports, "CalculationProcessCompletedDomainEvent", { enumerable: true, get: function () { return CalculationProcessCompletedDomainEvent_1.CalculationProcessCompletedDomainEvent; } });
|
|
1729
|
+
var CalculationProcessFailedDomainEvent_1 = require("../carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessFailedDomainEvent");
|
|
1730
|
+
Object.defineProperty(exports, "CalculationProcessFailedDomainEvent", { enumerable: true, get: function () { return CalculationProcessFailedDomainEvent_1.CalculationProcessFailedDomainEvent; } });
|
|
@@ -14,6 +14,17 @@ export interface IEmissionCalculationFormulaRepository {
|
|
|
14
14
|
findByName(name: EmissionCalculationFormulaName): Promise<Nullable<EmissionCalculationFormula>>;
|
|
15
15
|
findAllByStatus(status: EmissionCalculationFormulaStatus): Promise<EmissionCalculationFormula[]>;
|
|
16
16
|
findAllByEmissionSource(emissionSource: EmissionCalculationFormulaEmissionSource): Promise<EmissionCalculationFormula[]>;
|
|
17
|
+
/**
|
|
18
|
+
* Returns every formula whose status is `ACTIVE` for the given emission
|
|
19
|
+
* source. This is the canonical query the workflow execution path uses
|
|
20
|
+
* to verify that a footprint configuration has at least one applicable
|
|
21
|
+
* formula per emission source before queueing a process.
|
|
22
|
+
*
|
|
23
|
+
* Filtering by status at the persistence layer (instead of fetching
|
|
24
|
+
* every formula and filtering in memory) keeps the validation O(1) per
|
|
25
|
+
* emission source even when the formula catalogue grows large.
|
|
26
|
+
*/
|
|
27
|
+
findActiveByEmissionSource(emissionSource: EmissionCalculationFormulaEmissionSource): Promise<EmissionCalculationFormula[]>;
|
|
17
28
|
findAllByResultUnit(resultUnit: EmissionCalculationFormulaResultUnit): Promise<EmissionCalculationFormula[]>;
|
|
18
29
|
findAllByCreatedByStakeholder(createdByStakeholder: EmissionCalculationFormulaCreatedByStakeholder): Promise<EmissionCalculationFormula[]>;
|
|
19
30
|
findAll(): Promise<EmissionCalculationFormula[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IEmissionCalculationFormulaRepository.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/repository/IEmissionCalculationFormulaRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,wCAAwC,EAAE,MAAM,2DAA2D,CAAC;AACrH,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAErG,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,EAAE,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAC1F,UAAU,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAChG,UAAU,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAChG,eAAe,CAAC,MAAM,EAAE,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACjG,uBAAuB,CAAC,cAAc,EAAE,wCAAwC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACzH,mBAAmB,CAAC,UAAU,EAAE,oCAAoC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAC7G,6BAA6B,CAAC,oBAAoB,EAAE,8CAA8C,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAC3I,OAAO,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACjD,UAAU,CAAC,EAAE,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D"}
|
|
1
|
+
{"version":3,"file":"IEmissionCalculationFormulaRepository.d.ts","sourceRoot":"","sources":["../../../../../../src/carbonbox/emission-calculation-formulas/domain/repository/IEmissionCalculationFormulaRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,8CAA8C,EAAE,MAAM,iEAAiE,CAAC;AACjI,OAAO,EAAE,wCAAwC,EAAE,MAAM,2DAA2D,CAAC;AACrH,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAErG,MAAM,WAAW,qCAAqC;IACpD,IAAI,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,QAAQ,CAAC,EAAE,EAAE,4BAA4B,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAC1F,UAAU,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAChG,UAAU,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAChG,eAAe,CAAC,MAAM,EAAE,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACjG,uBAAuB,CAAC,cAAc,EAAE,wCAAwC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACzH;;;;;;;;;OASG;IACH,0BAA0B,CAAC,cAAc,EAAE,wCAAwC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAC5H,mBAAmB,CAAC,UAAU,EAAE,oCAAoC,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAC7G,6BAA6B,CAAC,oBAAoB,EAAE,8CAA8C,GAAG,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IAC3I,OAAO,IAAI,OAAO,CAAC,0BAA0B,EAAE,CAAC,CAAC;IACjD,UAAU,CAAC,EAAE,EAAE,4BAA4B,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC7D"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { CalculationJobCompletedPayload } from '../types/CalculationJobCompletedPayload';
|
|
5
|
+
export declare class CalculationJobCompletedDomainEvent extends DomainEvent<CalculationJobCompletedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: CalculationJobCompletedPayload): CalculationJobCompletedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<CalculationJobCompletedPayload>): CalculationJobCompletedDomainEvent;
|
|
13
|
+
get payload(): CalculationJobCompletedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CalculationJobCompletedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationJobCompletedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobCompletedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAEzF,qBAAa,kCAAmC,SAAQ,WAAW,CAAC,8BAA8B,CAAC;;IACjG,gBAAuB,IAAI,EAAE,eAAe,CAAqD;IAEjG,SAAgB,IAAI,EAAE,eAAe,CAA2C;IAEhF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,8BAA8B,GAAG,kCAAkC;WAInF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,8BAA8B,CAAC,GACzE,kCAAkC;IAIrC,IAAoB,OAAO,IAAI,8BAA8B,CAE5D;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { CalculationJobFailedPayload } from '../types/CalculationJobFailedPayload';
|
|
5
|
+
export declare class CalculationJobFailedDomainEvent extends DomainEvent<CalculationJobFailedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: CalculationJobFailedPayload): CalculationJobFailedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<CalculationJobFailedPayload>): CalculationJobFailedDomainEvent;
|
|
13
|
+
get payload(): CalculationJobFailedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CalculationJobFailedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationJobFailedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobFailedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAEnF,qBAAa,+BAAgC,SAAQ,WAAW,CAAC,2BAA2B,CAAC;;IAC3F,gBAAuB,IAAI,EAAE,eAAe,CAAkD;IAE9F,SAAgB,IAAI,EAAE,eAAe,CAAwC;IAE7E,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,2BAA2B,GAAG,+BAA+B;WAI7E,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,2BAA2B,CAAC,GACtE,+BAA+B;IAIlC,IAAoB,OAAO,IAAI,2BAA2B,CAEzD;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { CalculationJobStartedPayload } from '../types/CalculationJobStartedPayload';
|
|
5
|
+
export declare class CalculationJobStartedDomainEvent extends DomainEvent<CalculationJobStartedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: CalculationJobStartedPayload): CalculationJobStartedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<CalculationJobStartedPayload>): CalculationJobStartedDomainEvent;
|
|
13
|
+
get payload(): CalculationJobStartedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CalculationJobStartedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationJobStartedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/events/CalculationJobStartedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAErF,qBAAa,gCAAiC,SAAQ,WAAW,CAAC,4BAA4B,CAAC;;IAC7F,gBAAuB,IAAI,EAAE,eAAe,CAAmD;IAE/F,SAAgB,IAAI,EAAE,eAAe,CAAyC;IAE9E,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,4BAA4B,GAAG,gCAAgC;WAI/E,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,4BAA4B,CAAC,GACvE,gCAAgC;IAInC,IAAoB,OAAO,IAAI,4BAA4B,CAE1D;CACF"}
|
|
@@ -12,6 +12,16 @@ export interface ICalculationJobRepository {
|
|
|
12
12
|
findAllByStatus(status: CalculationJobStatus): Promise<CalculationJob[]>;
|
|
13
13
|
findAllByType(type: CalculationJobType): Promise<CalculationJob[]>;
|
|
14
14
|
findByParentProcessAndSequenceOrder(parentProcess: CalculationJobParentProcess, sequenceOrder: CalculationJobSequenceOrder): Promise<Nullable<CalculationJob>>;
|
|
15
|
+
/**
|
|
16
|
+
* Returns every job whose `dependsOnJobs` list contains the given job id.
|
|
17
|
+
*
|
|
18
|
+
* Used by the Process Coordinator to (a) cascade-skip dependents of a
|
|
19
|
+
* failed job and (b) decide which `PENDING` dependents become eligible
|
|
20
|
+
* to start once a predecessor has completed. The lookup is bounded by
|
|
21
|
+
* the parent process scope, so consumers should not assume a stable
|
|
22
|
+
* ordering across processes.
|
|
23
|
+
*/
|
|
24
|
+
findByDependsOnJob(jobId: CalculationJobId): Promise<CalculationJob[]>;
|
|
15
25
|
findAll(): Promise<CalculationJob[]>;
|
|
16
26
|
deleteById(id: CalculationJobId): Promise<void>;
|
|
17
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICalculationJobRepository.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/repository/ICalculationJobRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;IAClE,sBAAsB,CAAC,aAAa,EAAE,2BAA2B,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAC9F,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACzE,aAAa,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACnE,mCAAmC,CAAC,aAAa,EAAE,2BAA2B,EAAE,aAAa,EAAE,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;IAC/J,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD"}
|
|
1
|
+
{"version":3,"file":"ICalculationJobRepository.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/repository/ICalculationJobRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0CAA0C,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAEzE,MAAM,WAAW,yBAAyB;IACxC,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;IAClE,sBAAsB,CAAC,aAAa,EAAE,2BAA2B,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IAC9F,eAAe,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACzE,aAAa,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACnE,mCAAmC,CAAC,aAAa,EAAE,2BAA2B,EAAE,aAAa,EAAE,2BAA2B,GAAG,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC;IAC/J;;;;;;;;OAQG;IACH,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACvE,OAAO,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;IACrC,UAAU,CAAC,EAAE,EAAE,gBAAgB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `CalculationJobCompletedDomainEvent` — published when a
|
|
3
|
+
* `CalculationJob` transitions from `RUNNING` to `COMPLETED`. The
|
|
4
|
+
* Process Coordinator Lambda subscribes to this event to evaluate
|
|
5
|
+
* whether the parent process is ready to be closed: it fetches all
|
|
6
|
+
* jobs of `parentProcessId`, checks their aggregate state, and either
|
|
7
|
+
* invokes `CompleteCalculationProcessCommand` (if all jobs are
|
|
8
|
+
* terminal) or no-ops (if some are still in flight).
|
|
9
|
+
*
|
|
10
|
+
* Idempotency: emitted exactly once per job by `CompleteCalculationJob`
|
|
11
|
+
* after the persistence transaction commits.
|
|
12
|
+
*/
|
|
13
|
+
export type CalculationJobCompletedPayload = Readonly<{
|
|
14
|
+
jobId: string;
|
|
15
|
+
parentProcessId: string;
|
|
16
|
+
parentWorkflowId: string;
|
|
17
|
+
carbonClientId: string;
|
|
18
|
+
jobType: string;
|
|
19
|
+
startedAt: string;
|
|
20
|
+
completedAt: string;
|
|
21
|
+
executionDurationMs: number;
|
|
22
|
+
calculationsGenerated: ReadonlyArray<string>;
|
|
23
|
+
aggregationsGenerated: ReadonlyArray<string>;
|
|
24
|
+
recordsProcessed: number;
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=CalculationJobCompletedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationJobCompletedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobCompletedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC;IACpD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,qBAAqB,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC7C,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `CalculationJobFailedDomainEvent` — published when a
|
|
3
|
+
* `CalculationJob` transitions to `FAILED` definitively (retries are
|
|
4
|
+
* exhausted or no retry was requested). The Process Coordinator Lambda
|
|
5
|
+
* subscribes to this event to: (a) cascade-skip dependents via
|
|
6
|
+
* `findByDependsOnJob` and (b) invoke `FailCalculationProcessCommand`
|
|
7
|
+
* so the parent process is marked as `FAILED` with the originating
|
|
8
|
+
* error context.
|
|
9
|
+
*
|
|
10
|
+
* Note: a job that is *retrying* (still has attempts left) does NOT
|
|
11
|
+
* emit this event — it stays inside the job's lifecycle and re-emits
|
|
12
|
+
* `CalculationJobStarted` when picked up again. Only the terminal
|
|
13
|
+
* failure crosses the bus.
|
|
14
|
+
*/
|
|
15
|
+
export type CalculationJobFailedPayload = Readonly<{
|
|
16
|
+
jobId: string;
|
|
17
|
+
parentProcessId: string;
|
|
18
|
+
parentWorkflowId: string;
|
|
19
|
+
carbonClientId: string;
|
|
20
|
+
jobType: string;
|
|
21
|
+
startedAt: string | null;
|
|
22
|
+
failedAt: string;
|
|
23
|
+
executionDurationMs: number | null;
|
|
24
|
+
errorMessage: string;
|
|
25
|
+
retryCount: number;
|
|
26
|
+
maxRetries: number;
|
|
27
|
+
}>;
|
|
28
|
+
//# sourceMappingURL=CalculationJobFailedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationJobFailedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobFailedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,2BAA2B,GAAG,QAAQ,CAAC;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Payload of `CalculationJobStartedDomainEvent` — published when a
|
|
3
|
+
* `CalculationJob` transitions from `PENDING` to `RUNNING`. Consumers
|
|
4
|
+
* use it to: (a) light up real-time progress views, (b) start
|
|
5
|
+
* performance instrumentation, and (c) seed the audit trail for the
|
|
6
|
+
* running unit of work.
|
|
7
|
+
*/
|
|
8
|
+
export type CalculationJobStartedPayload = Readonly<{
|
|
9
|
+
jobId: string;
|
|
10
|
+
parentProcessId: string;
|
|
11
|
+
parentWorkflowId: string;
|
|
12
|
+
carbonClientId: string;
|
|
13
|
+
jobType: string;
|
|
14
|
+
sequenceOrder: number;
|
|
15
|
+
startedAt: string;
|
|
16
|
+
}>;
|
|
17
|
+
//# sourceMappingURL=CalculationJobStartedPayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationJobStartedPayload.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-jobs/domain/types/CalculationJobStartedPayload.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CAAC;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { CalculationProcessProps } from '../types/CalculationProcessProps';
|
|
|
4
4
|
import { CalculationProcessActualDuration } from '../value-objects/CalculationProcessActualDuration';
|
|
5
5
|
import { CalculationProcessCalculationsGenerated } from '../value-objects/CalculationProcessCalculationsGenerated';
|
|
6
6
|
import { CalculationProcessCarbonClient } from '../value-objects/CalculationProcessCarbonClient';
|
|
7
|
+
import { CalculationProcessParentWorkflow } from '../value-objects/CalculationProcessParentWorkflow';
|
|
7
8
|
import { CalculationProcessCompletedAt } from '../value-objects/CalculationProcessCompletedAt';
|
|
8
9
|
import { CalculationProcessDependencies } from '../value-objects/CalculationProcessDependencies';
|
|
9
10
|
import { CalculationProcessErrorMessage } from '../value-objects/CalculationProcessErrorMessage';
|
|
@@ -27,6 +28,7 @@ export declare class CalculationProcess extends AggregateRoot<CalculationProcess
|
|
|
27
28
|
static create(props: CalculationProcessProps): CalculationProcess;
|
|
28
29
|
static fromPrimitives(primitives: CalculationProcessPrimitives): CalculationProcess;
|
|
29
30
|
get toPrimitives(): CalculationProcessPrimitives;
|
|
31
|
+
get parentWorkflow(): CalculationProcessParentWorkflow;
|
|
30
32
|
get carbonClient(): CalculationProcessCarbonClient;
|
|
31
33
|
get footprintConfiguration(): CalculationProcessFootprintConfiguration;
|
|
32
34
|
get scheduledAt(): CalculationProcessScheduledAt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalculationProcess.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAC3G,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,wCAAwC,EAAE,MAAM,2DAA2D,CAAC;AAErH,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,0CAA0C,EAAE,MAAM,6DAA6D,CAAC;AACzH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,kBACX,SAAQ,aAAa,CAAC,4BAA4B,CAClD,YAAW,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"CalculationProcess.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-processes/domain/entity/CalculationProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAC;AACjF,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAC3G,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,wCAAwC,EAAE,MAAM,2DAA2D,CAAC;AAErH,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,0CAA0C,EAAE,MAAM,6DAA6D,CAAC;AACzH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,qBAAa,kBACX,SAAQ,aAAa,CAAC,4BAA4B,CAClD,YAAW,mBAAmB;;IAyC9B,OAAO;WAsDgB,MAAM,CAAC,KAAK,EAAE,uBAAuB,GAAG,kBAAkB;WAI1D,cAAc,CAAC,UAAU,EAAE,4BAA4B,GAAG,kBAAkB;IA4BnG,IAAoB,YAAY,IAAI,4BAA4B,CAwB/D;IAED,IAAW,cAAc,IAAI,gCAAgC,CAE5D;IAED,IAAW,YAAY,IAAI,8BAA8B,CAExD;IAED,IAAW,sBAAsB,IAAI,wCAAwC,CAE5E;IAED,IAAW,WAAW,IAAI,6BAA6B,CAEtD;IAED,IAAW,iBAAiB,IAAI,mCAAmC,CAElE;IAED,IAAW,QAAQ,IAAI,0BAA0B,CAEhD;IAED,IAAW,YAAY,IAAI,8BAA8B,CAExD;IAED,IAAW,qBAAqB,IAAI,uCAAuC,CAE1E;IAED,IAAW,SAAS,IAAI,2BAA2B,CAElD;IAED,IAAW,WAAW,IAAI,6BAA6B,CAEtD;IAED,IAAW,cAAc,IAAI,gCAAgC,CAE5D;IAED,IAAW,MAAM,IAAI,wBAAwB,CAE5C;IAED,IAAW,YAAY,IAAI,8BAA8B,CAExD;IAED,IAAW,kBAAkB,IAAI,oCAAoC,CAEpE;IAED,IAAW,oBAAoB,IAAI,sCAAsC,CAExE;IAED,IAAW,qBAAqB,IAAI,uCAAuC,CAE1E;IAED,IAAW,wBAAwB,IAAI,0CAA0C,CAEhF;IAED,IAAW,YAAY,IAAI,8BAA8B,CAExD;IAED,IAAW,UAAU,IAAI,4BAA4B,CAEpD;IAED,IAAW,UAAU,IAAI,4BAA4B,CAEpD;CACF"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IAggregateRoot } from '../../../../shared/domain/entities/IAggregateRoot';
|
|
2
|
+
import { CalculationProcessParentWorkflow } from '../value-objects/CalculationProcessParentWorkflow';
|
|
2
3
|
import { CalculationProcessCarbonClient } from '../value-objects/CalculationProcessCarbonClient';
|
|
3
4
|
import { CalculationProcessFootprintConfiguration } from '../value-objects/CalculationProcessFootprintConfiguration';
|
|
4
5
|
import { CalculationProcessScheduledAt } from '../value-objects/CalculationProcessScheduledAt';
|
|
@@ -19,6 +20,7 @@ import { CalculationProcessProcessNotes } from '../value-objects/CalculationProc
|
|
|
19
20
|
import { CalculationProcessRetryCount } from '../value-objects/CalculationProcessRetryCount';
|
|
20
21
|
import { CalculationProcessMaxRetries } from '../value-objects/CalculationProcessMaxRetries';
|
|
21
22
|
export interface ICalculationProcess extends IAggregateRoot {
|
|
23
|
+
parentWorkflow: CalculationProcessParentWorkflow;
|
|
22
24
|
carbonClient: CalculationProcessCarbonClient;
|
|
23
25
|
footprintConfiguration: CalculationProcessFootprintConfiguration;
|
|
24
26
|
scheduledAt: CalculationProcessScheduledAt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ICalculationProcess.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-processes/domain/entity/ICalculationProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,wCAAwC,EAAE,MAAM,2DAA2D,CAAC;AACrH,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,0CAA0C,EAAE,MAAM,6DAA6D,CAAC;AACzH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,YAAY,EAAE,8BAA8B,CAAC;IAC7C,sBAAsB,EAAE,wCAAwC,CAAC;IAGjE,WAAW,EAAE,6BAA6B,CAAC;IAC3C,iBAAiB,EAAE,mCAAmC,CAAC;IACvD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,YAAY,EAAE,8BAA8B,CAAC;IAG7C,qBAAqB,EAAE,uCAAuC,CAAC;IAC/D,SAAS,EAAE,2BAA2B,CAAC;IACvC,WAAW,EAAE,6BAA6B,CAAC;IAC3C,cAAc,EAAE,gCAAgC,CAAC;IAGjD,MAAM,EAAE,wBAAwB,CAAC;IACjC,YAAY,EAAE,8BAA8B,CAAC;IAC7C,kBAAkB,EAAE,oCAAoC,CAAC;IAGzD,oBAAoB,EAAE,sCAAsC,CAAC;IAC7D,qBAAqB,EAAE,uCAAuC,CAAC;IAC/D,wBAAwB,EAAE,0CAA0C,CAAC;IAGrE,YAAY,EAAE,8BAA8B,CAAC;IAC7C,UAAU,EAAE,4BAA4B,CAAC;IACzC,UAAU,EAAE,4BAA4B,CAAC;CAC1C"}
|
|
1
|
+
{"version":3,"file":"ICalculationProcess.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-processes/domain/entity/ICalculationProcess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,wCAAwC,EAAE,MAAM,2DAA2D,CAAC;AACrH,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAC3G,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AACzF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,2BAA2B,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAC/F,OAAO,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AACrG,OAAO,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,EAAE,sCAAsC,EAAE,MAAM,yDAAyD,CAAC;AACjH,OAAO,EAAE,uCAAuC,EAAE,MAAM,0DAA0D,CAAC;AACnH,OAAO,EAAE,0CAA0C,EAAE,MAAM,6DAA6D,CAAC;AACzH,OAAO,EAAE,8BAA8B,EAAE,MAAM,iDAAiD,CAAC;AACjG,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAC7F,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAC;AAE7F,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD,cAAc,EAAE,gCAAgC,CAAC;IACjD,YAAY,EAAE,8BAA8B,CAAC;IAC7C,sBAAsB,EAAE,wCAAwC,CAAC;IAGjE,WAAW,EAAE,6BAA6B,CAAC;IAC3C,iBAAiB,EAAE,mCAAmC,CAAC;IACvD,QAAQ,EAAE,0BAA0B,CAAC;IACrC,YAAY,EAAE,8BAA8B,CAAC;IAG7C,qBAAqB,EAAE,uCAAuC,CAAC;IAC/D,SAAS,EAAE,2BAA2B,CAAC;IACvC,WAAW,EAAE,6BAA6B,CAAC;IAC3C,cAAc,EAAE,gCAAgC,CAAC;IAGjD,MAAM,EAAE,wBAAwB,CAAC;IACjC,YAAY,EAAE,8BAA8B,CAAC;IAC7C,kBAAkB,EAAE,oCAAoC,CAAC;IAGzD,oBAAoB,EAAE,sCAAsC,CAAC;IAC7D,qBAAqB,EAAE,uCAAuC,CAAC;IAC/D,wBAAwB,EAAE,0CAA0C,CAAC;IAGrE,YAAY,EAAE,8BAA8B,CAAC;IAC7C,UAAU,EAAE,4BAA4B,CAAC;IACzC,UAAU,EAAE,4BAA4B,CAAC;CAC1C"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { CalculationProcessCompletedPayload } from '../types/CalculationProcessCompletedPayload';
|
|
5
|
+
export declare class CalculationProcessCompletedDomainEvent extends DomainEvent<CalculationProcessCompletedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: CalculationProcessCompletedPayload): CalculationProcessCompletedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<CalculationProcessCompletedPayload>): CalculationProcessCompletedDomainEvent;
|
|
13
|
+
get payload(): CalculationProcessCompletedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CalculationProcessCompletedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationProcessCompletedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessCompletedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,kCAAkC,EAAE,MAAM,6CAA6C,CAAC;AAEjG,qBAAa,sCAAuC,SAAQ,WAAW,CAAC,kCAAkC,CAAC;;IACzG,gBAAuB,IAAI,EAAE,eAAe,CAAyD;IAErG,SAAgB,IAAI,EAAE,eAAe,CAA+C;IAEpF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,kCAAkC,GAAG,sCAAsC;WAI3F,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,kCAAkC,CAAC,GAC7E,sCAAsC;IAIzC,IAAoB,OAAO,IAAI,kCAAkC,CAEhE;CACF"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DomainEvent } from '../../../../shared/domain/events/DomainEvent';
|
|
2
|
+
import { DomainEventName } from '../../../../shared/domain/events/DomainEventName';
|
|
3
|
+
import { DomainEventFromPrimitivesInput } from '../../../../shared/domain/types/DomainEventFromPrimitivesInput';
|
|
4
|
+
import { CalculationProcessFailedPayload } from '../types/CalculationProcessFailedPayload';
|
|
5
|
+
export declare class CalculationProcessFailedDomainEvent extends DomainEvent<CalculationProcessFailedPayload> {
|
|
6
|
+
#private;
|
|
7
|
+
static readonly NAME: DomainEventName;
|
|
8
|
+
readonly name: DomainEventName;
|
|
9
|
+
readonly aggregateId: string;
|
|
10
|
+
private constructor();
|
|
11
|
+
static create(payload: CalculationProcessFailedPayload): CalculationProcessFailedDomainEvent;
|
|
12
|
+
static fromPrimitives(primitives: DomainEventFromPrimitivesInput<CalculationProcessFailedPayload>): CalculationProcessFailedDomainEvent;
|
|
13
|
+
get payload(): CalculationProcessFailedPayload;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=CalculationProcessFailedDomainEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CalculationProcessFailedDomainEvent.d.ts","sourceRoot":"","sources":["../../../../../../../src/carbonbox/emission-calculation-process/calculation-processes/domain/events/CalculationProcessFailedDomainEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,kDAAkD,CAAC;AACnF,OAAO,EAAE,8BAA8B,EAAE,MAAM,gEAAgE,CAAC;AAChH,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAE3F,qBAAa,mCAAoC,SAAQ,WAAW,CAAC,+BAA+B,CAAC;;IACnG,gBAAuB,IAAI,EAAE,eAAe,CAAsD;IAElG,SAAgB,IAAI,EAAE,eAAe,CAA4C;IAEjF,SAAgB,WAAW,EAAE,MAAM,CAAC;IAIpC,OAAO;WAMO,MAAM,CAAC,OAAO,EAAE,+BAA+B,GAAG,mCAAmC;WAIrF,cAAc,CAC1B,UAAU,EAAE,8BAA8B,CAAC,+BAA+B,CAAC,GAC1E,mCAAmC;IAItC,IAAoB,OAAO,IAAI,+BAA+B,CAE7D;CACF"}
|