@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.
@@ -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
- PositiveInteger_1.PositiveInteger.guardAgainstZeroValue(value, CalculationWorkflowFailedExecutions.PROPERTY_NAME);
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
- PositiveInteger_1.PositiveInteger.guardAgainstZeroValue(value, CalculationWorkflowSuccessfulExecutions.PROPERTY_NAME);
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
- PositiveInteger_1.PositiveInteger.guardAgainstZeroValue(value, CalculationWorkflowTotalExecutions.PROPERTY_NAME);
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) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "browser": false
4
4
  },
5
5
  "name": "@carbonbox/domain",
6
- "version": "0.7.25",
6
+ "version": "0.7.26",
7
7
  "description": "Domain package for CarbonBox Project",
8
8
  "main": "build/main/index.js",
9
9
  "types": "build/types/main/index.d.ts",