@carbonbox/domain 0.7.25 → 0.7.26
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-workflows/domain/value-objects/CalculationWorkflowFailedExecutions.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowSuccessfulExecutions.js +1 -1
- package/build/carbonbox/emission-calculation-process/calculation-workflows/domain/value-objects/CalculationWorkflowTotalExecutions.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ class CalculationWorkflowFailedExecutions extends PositiveInteger_1.PositiveInte
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
PositiveInteger_1.PositiveInteger.guardAgainstInvalidType(value, CalculationWorkflowFailedExecutions.PROPERTY_NAME);
|
|
11
11
|
PositiveInteger_1.PositiveInteger.guardAgainstNegativeValue(value, CalculationWorkflowFailedExecutions.PROPERTY_NAME);
|
|
12
|
-
|
|
12
|
+
// Allow zero value for new workflows that haven't been executed yet
|
|
13
13
|
return new CalculationWorkflowFailedExecutions(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
|
@@ -9,7 +9,7 @@ class CalculationWorkflowSuccessfulExecutions extends PositiveInteger_1.Positive
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
PositiveInteger_1.PositiveInteger.guardAgainstInvalidType(value, CalculationWorkflowSuccessfulExecutions.PROPERTY_NAME);
|
|
11
11
|
PositiveInteger_1.PositiveInteger.guardAgainstNegativeValue(value, CalculationWorkflowSuccessfulExecutions.PROPERTY_NAME);
|
|
12
|
-
|
|
12
|
+
// Allow zero value for new workflows that haven't been executed yet
|
|
13
13
|
return new CalculationWorkflowSuccessfulExecutions(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|
|
@@ -9,7 +9,7 @@ class CalculationWorkflowTotalExecutions extends PositiveInteger_1.PositiveInteg
|
|
|
9
9
|
static create(value) {
|
|
10
10
|
PositiveInteger_1.PositiveInteger.guardAgainstInvalidType(value, CalculationWorkflowTotalExecutions.PROPERTY_NAME);
|
|
11
11
|
PositiveInteger_1.PositiveInteger.guardAgainstNegativeValue(value, CalculationWorkflowTotalExecutions.PROPERTY_NAME);
|
|
12
|
-
|
|
12
|
+
// Allow zero value for new workflows that haven't been executed yet
|
|
13
13
|
return new CalculationWorkflowTotalExecutions(value, false);
|
|
14
14
|
}
|
|
15
15
|
static fromPrimitives(primitive) {
|