@ecogood/e-calculator-schemas 1.0.6 → 1.0.8

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.
@@ -501,14 +501,14 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
501
501
  description?: string | undefined;
502
502
  }>, "many">;
503
503
  mainOriginOfOtherSuppliers: z.ZodObject<{
504
- countryCode: z.ZodString;
504
+ countryCode: z.ZodOptional<z.ZodString>;
505
505
  costs: z.ZodNumber;
506
506
  }, "strip", z.ZodTypeAny, {
507
- countryCode: string;
508
507
  costs: number;
508
+ countryCode?: string | undefined;
509
509
  }, {
510
- countryCode: string;
511
510
  costs: number;
511
+ countryCode?: string | undefined;
512
512
  }>;
513
513
  }, "strip", z.ZodTypeAny, {
514
514
  totalPurchaseFromSuppliers: number;
@@ -538,8 +538,8 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
538
538
  industryCode?: string | undefined;
539
539
  }[];
540
540
  mainOriginOfOtherSuppliers: {
541
- countryCode: string;
542
541
  costs: number;
542
+ countryCode?: string | undefined;
543
543
  };
544
544
  hasCanteen?: boolean | undefined;
545
545
  }, {
@@ -559,8 +559,8 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
559
559
  description?: string | undefined;
560
560
  }[];
561
561
  mainOriginOfOtherSuppliers: {
562
- countryCode: string;
563
562
  costs: number;
563
+ countryCode?: string | undefined;
564
564
  };
565
565
  totalPurchaseFromSuppliers?: number | undefined;
566
566
  totalStaffCosts?: number | undefined;
@@ -606,8 +606,8 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
606
606
  industryCode?: string | undefined;
607
607
  }[];
608
608
  mainOriginOfOtherSuppliers: {
609
- countryCode: string;
610
609
  costs: number;
610
+ countryCode?: string | undefined;
611
611
  };
612
612
  hasCanteen?: boolean | undefined;
613
613
  };
@@ -642,8 +642,8 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
642
642
  description?: string | undefined;
643
643
  }[];
644
644
  mainOriginOfOtherSuppliers: {
645
- countryCode: string;
646
645
  costs: number;
646
+ countryCode?: string | undefined;
647
647
  };
648
648
  totalPurchaseFromSuppliers?: number | undefined;
649
649
  totalStaffCosts?: number | undefined;
@@ -270,14 +270,14 @@ export declare const CompanyFactsResponseBodySchema: z.ZodObject<{
270
270
  description?: string | undefined;
271
271
  }>, "many">;
272
272
  mainOriginOfOtherSuppliers: z.ZodObject<{
273
- countryCode: z.ZodString;
273
+ countryCode: z.ZodOptional<z.ZodString>;
274
274
  costs: z.ZodNumber;
275
275
  }, "strip", z.ZodTypeAny, {
276
- countryCode: string;
277
276
  costs: number;
277
+ countryCode?: string | undefined;
278
278
  }, {
279
- countryCode: string;
280
279
  costs: number;
280
+ countryCode?: string | undefined;
281
281
  }>;
282
282
  }, "strip", z.ZodTypeAny, {
283
283
  totalPurchaseFromSuppliers: number;
@@ -307,8 +307,8 @@ export declare const CompanyFactsResponseBodySchema: z.ZodObject<{
307
307
  industryCode?: string | undefined;
308
308
  }[];
309
309
  mainOriginOfOtherSuppliers: {
310
- countryCode: string;
311
310
  costs: number;
311
+ countryCode?: string | undefined;
312
312
  };
313
313
  hasCanteen?: boolean | undefined;
314
314
  }, {
@@ -328,8 +328,8 @@ export declare const CompanyFactsResponseBodySchema: z.ZodObject<{
328
328
  description?: string | undefined;
329
329
  }[];
330
330
  mainOriginOfOtherSuppliers: {
331
- countryCode: string;
332
331
  costs: number;
332
+ countryCode?: string | undefined;
333
333
  };
334
334
  totalPurchaseFromSuppliers?: number | undefined;
335
335
  totalStaffCosts?: number | undefined;
@@ -56,7 +56,7 @@ exports.CompanyFactsResponseBodySchema = zod_1.z.object({
56
56
  employeesFractions: EmployeesFractionRequestBodySchema.array(),
57
57
  industrySectors: IndustrySectorRequestBodySchema.array(),
58
58
  mainOriginOfOtherSuppliers: zod_1.z.object({
59
- countryCode: shared_schemas_1.isCountryCode,
59
+ countryCode: shared_schemas_1.isCountryCode.optional(),
60
60
  costs: zod_1.z.number(),
61
61
  }),
62
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecogood/e-calculator-schemas",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
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",