@ecogood/e-calculator-schemas 1.0.10 → 1.0.12

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.
@@ -20,7 +20,7 @@ const IndustrySectorRequestBodySchema = zod_1.z.object({
20
20
  const CompanyFactsRequestBodySchema = zod_1.z.object({
21
21
  totalPurchaseFromSuppliers: shared_schemas_1.isPositiveNumber,
22
22
  totalStaffCosts: shared_schemas_1.isPositiveNumber,
23
- profit: shared_schemas_1.isPositiveNumber,
23
+ profit: shared_schemas_1.isNumberWithDefaultZero,
24
24
  financialCosts: shared_schemas_1.isPositiveNumber,
25
25
  incomeFromFinancialInvestments: shared_schemas_1.isNumberWithDefaultZero,
26
26
  additionsToFixedAssets: shared_schemas_1.isNumberWithDefaultZero,
@@ -41,7 +41,7 @@ exports.CompanyFactsPatchRequestBodySchema = CompanyFactsRequestBodySchema.parti
41
41
  exports.CompanyFactsResponseBodySchema = zod_1.z.object({
42
42
  totalPurchaseFromSuppliers: shared_schemas_1.isPositiveNumber,
43
43
  totalStaffCosts: shared_schemas_1.isPositiveNumber,
44
- profit: shared_schemas_1.isPositiveNumber,
44
+ profit: shared_schemas_1.isNumberWithDefaultZero,
45
45
  financialCosts: shared_schemas_1.isPositiveNumber,
46
46
  incomeFromFinancialInvestments: shared_schemas_1.isNumberWithDefaultZero,
47
47
  additionsToFixedAssets: shared_schemas_1.isNumberWithDefaultZero,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecogood/e-calculator-schemas",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "A package providing the schemas for the e-calculator application.",
5
5
  "main": "dist/e-calculator-schemas",
6
6
  "types": "dist/e-calculator-schemas",