@ecogood/e-calculator-schemas 2.7.22 → 2.7.24
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.
|
@@ -178,7 +178,9 @@ export declare const BalanceSheetCreateRequestBodySchema: z.ZodObject<{
|
|
|
178
178
|
end: string;
|
|
179
179
|
start: string;
|
|
180
180
|
}>>;
|
|
181
|
+
currency: z.ZodNativeEnum<typeof import("./general.information.dto").Currency>;
|
|
181
182
|
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
currency: import("./general.information.dto").Currency;
|
|
182
184
|
company: {
|
|
183
185
|
name: string;
|
|
184
186
|
};
|
|
@@ -191,6 +193,7 @@ export declare const BalanceSheetCreateRequestBodySchema: z.ZodObject<{
|
|
|
191
193
|
start: string;
|
|
192
194
|
} | undefined;
|
|
193
195
|
}, {
|
|
196
|
+
currency: import("./general.information.dto").Currency;
|
|
194
197
|
company: {
|
|
195
198
|
name: string;
|
|
196
199
|
};
|
|
@@ -246,6 +249,7 @@ export declare const BalanceSheetCreateRequestBodySchema: z.ZodObject<{
|
|
|
246
249
|
weight: number;
|
|
247
250
|
}[];
|
|
248
251
|
generalInformation: {
|
|
252
|
+
currency: import("./general.information.dto").Currency;
|
|
249
253
|
company: {
|
|
250
254
|
name: string;
|
|
251
255
|
};
|
|
@@ -262,6 +266,7 @@ export declare const BalanceSheetCreateRequestBodySchema: z.ZodObject<{
|
|
|
262
266
|
type: BalanceSheetType;
|
|
263
267
|
version: BalanceSheetVersion;
|
|
264
268
|
generalInformation: {
|
|
269
|
+
currency: import("./general.information.dto").Currency;
|
|
265
270
|
company: {
|
|
266
271
|
name: string;
|
|
267
272
|
};
|
|
@@ -490,7 +495,9 @@ export declare const BalanceSheetPatchRequestBodySchema: z.ZodObject<{
|
|
|
490
495
|
end: string;
|
|
491
496
|
start: string;
|
|
492
497
|
}>>;
|
|
498
|
+
currency: z.ZodNativeEnum<typeof import("./general.information.dto").Currency>;
|
|
493
499
|
}, "strip", z.ZodTypeAny, {
|
|
500
|
+
currency: import("./general.information.dto").Currency;
|
|
494
501
|
company: {
|
|
495
502
|
name: string;
|
|
496
503
|
};
|
|
@@ -503,6 +510,7 @@ export declare const BalanceSheetPatchRequestBodySchema: z.ZodObject<{
|
|
|
503
510
|
start: string;
|
|
504
511
|
} | undefined;
|
|
505
512
|
}, {
|
|
513
|
+
currency: import("./general.information.dto").Currency;
|
|
506
514
|
company: {
|
|
507
515
|
name: string;
|
|
508
516
|
};
|
|
@@ -556,6 +564,7 @@ export declare const BalanceSheetPatchRequestBodySchema: z.ZodObject<{
|
|
|
556
564
|
weight: number;
|
|
557
565
|
}[] | undefined;
|
|
558
566
|
generalInformation?: {
|
|
567
|
+
currency: import("./general.information.dto").Currency;
|
|
559
568
|
company: {
|
|
560
569
|
name: string;
|
|
561
570
|
};
|
|
@@ -609,6 +618,7 @@ export declare const BalanceSheetPatchRequestBodySchema: z.ZodObject<{
|
|
|
609
618
|
weight: number;
|
|
610
619
|
}[] | undefined;
|
|
611
620
|
generalInformation?: {
|
|
621
|
+
currency: import("./general.information.dto").Currency;
|
|
612
622
|
company: {
|
|
613
623
|
name: string;
|
|
614
624
|
};
|
|
@@ -844,7 +854,9 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
|
|
|
844
854
|
end: string;
|
|
845
855
|
start: string;
|
|
846
856
|
}>>;
|
|
857
|
+
currency: z.ZodNativeEnum<typeof import("./general.information.dto").Currency>;
|
|
847
858
|
}, "strip", z.ZodTypeAny, {
|
|
859
|
+
currency: import("./general.information.dto").Currency;
|
|
848
860
|
company: {
|
|
849
861
|
name: string;
|
|
850
862
|
};
|
|
@@ -857,6 +869,7 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
|
|
|
857
869
|
start: string;
|
|
858
870
|
} | undefined;
|
|
859
871
|
}, {
|
|
872
|
+
currency: import("./general.information.dto").Currency;
|
|
860
873
|
company: {
|
|
861
874
|
name: string;
|
|
862
875
|
};
|
|
@@ -932,6 +945,7 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
|
|
|
932
945
|
weight: number;
|
|
933
946
|
}[];
|
|
934
947
|
generalInformation: {
|
|
948
|
+
currency: import("./general.information.dto").Currency;
|
|
935
949
|
company: {
|
|
936
950
|
name: string;
|
|
937
951
|
};
|
|
@@ -997,6 +1011,7 @@ export declare const BalanceSheetResponseBodySchema: z.ZodObject<{
|
|
|
997
1011
|
weight: number;
|
|
998
1012
|
}[];
|
|
999
1013
|
generalInformation: {
|
|
1014
|
+
currency: import("./general.information.dto").Currency;
|
|
1000
1015
|
company: {
|
|
1001
1016
|
name: string;
|
|
1002
1017
|
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare enum Currency {
|
|
3
|
+
EUR = "EUR",
|
|
4
|
+
USD = "USD",
|
|
5
|
+
CHF = "CHF"
|
|
6
|
+
}
|
|
2
7
|
export declare const GeneralInformationSchema: z.ZodObject<{
|
|
3
8
|
company: z.ZodObject<{
|
|
4
9
|
name: z.ZodString;
|
|
@@ -27,7 +32,9 @@ export declare const GeneralInformationSchema: z.ZodObject<{
|
|
|
27
32
|
end: string;
|
|
28
33
|
start: string;
|
|
29
34
|
}>>;
|
|
35
|
+
currency: z.ZodNativeEnum<typeof Currency>;
|
|
30
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
currency: Currency;
|
|
31
38
|
company: {
|
|
32
39
|
name: string;
|
|
33
40
|
};
|
|
@@ -40,6 +47,7 @@ export declare const GeneralInformationSchema: z.ZodObject<{
|
|
|
40
47
|
start: string;
|
|
41
48
|
} | undefined;
|
|
42
49
|
}, {
|
|
50
|
+
currency: Currency;
|
|
43
51
|
company: {
|
|
44
52
|
name: string;
|
|
45
53
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GeneralInformationSchema = void 0;
|
|
3
|
+
exports.GeneralInformationSchema = exports.Currency = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const shared_schemas_1 = require("./shared.schemas");
|
|
6
6
|
const CompanySchema = zod_1.z.object({
|
|
@@ -16,8 +16,15 @@ const ContactPersonSchema = zod_1.z.object({
|
|
|
16
16
|
email: zod_1.z.string().email(),
|
|
17
17
|
name: shared_schemas_1.isNonEmptyString,
|
|
18
18
|
});
|
|
19
|
+
var Currency;
|
|
20
|
+
(function (Currency) {
|
|
21
|
+
Currency["EUR"] = "EUR";
|
|
22
|
+
Currency["USD"] = "USD";
|
|
23
|
+
Currency["CHF"] = "CHF";
|
|
24
|
+
})(Currency || (exports.Currency = Currency = {}));
|
|
19
25
|
exports.GeneralInformationSchema = zod_1.z.object({
|
|
20
26
|
company: CompanySchema,
|
|
21
27
|
contactPerson: ContactPersonSchema,
|
|
22
28
|
period: PeriodSchema.optional(),
|
|
29
|
+
currency: zod_1.z.nativeEnum(Currency),
|
|
23
30
|
});
|
package/package.json
CHANGED