@ecogood/e-calculator-schemas 1.0.4 → 1.0.6

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.ZodOptional<z.ZodString>;
504
+ countryCode: z.ZodString;
505
505
  costs: z.ZodNumber;
506
506
  }, "strip", z.ZodTypeAny, {
507
+ countryCode: string;
507
508
  costs: number;
508
- countryCode?: string | undefined;
509
509
  }, {
510
+ countryCode: string;
510
511
  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;
541
542
  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;
562
563
  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;
609
610
  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;
645
646
  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.ZodOptional<z.ZodString>;
273
+ countryCode: z.ZodString;
274
274
  costs: z.ZodNumber;
275
275
  }, "strip", z.ZodTypeAny, {
276
+ countryCode: string;
276
277
  costs: number;
277
- countryCode?: string | undefined;
278
278
  }, {
279
+ countryCode: string;
279
280
  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;
310
311
  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;
331
332
  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.optional(),
59
+ countryCode: shared_schemas_1.isCountryCode,
60
60
  costs: zod_1.z.number(),
61
61
  }),
62
62
  });
@@ -0,0 +1,33 @@
1
+ import { z } from 'zod';
2
+ export declare const SectionSchema: z.ZodObject<{
3
+ shortName: z.ZodString;
4
+ title: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ title: string;
7
+ shortName: string;
8
+ }, {
9
+ title: string;
10
+ shortName: string;
11
+ }>;
12
+ export declare const WorkbookResponseBodySchema: z.ZodObject<{
13
+ sections: z.ZodArray<z.ZodObject<{
14
+ shortName: z.ZodString;
15
+ title: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ title: string;
18
+ shortName: string;
19
+ }, {
20
+ title: string;
21
+ shortName: string;
22
+ }>, "many">;
23
+ }, "strip", z.ZodTypeAny, {
24
+ sections: {
25
+ title: string;
26
+ shortName: string;
27
+ }[];
28
+ }, {
29
+ sections: {
30
+ title: string;
31
+ shortName: string;
32
+ }[];
33
+ }>;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkbookResponseBodySchema = exports.SectionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SectionSchema = zod_1.z.object({
6
+ shortName: zod_1.z.string(),
7
+ title: zod_1.z.string(),
8
+ });
9
+ exports.WorkbookResponseBodySchema = zod_1.z.object({
10
+ sections: exports.SectionSchema.array(),
11
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecogood/e-calculator-schemas",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
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",