@ecogood/e-calculator-schemas 2.7.10 → 2.7.13

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.
@@ -0,0 +1,64 @@
1
+ import { z } from 'zod';
2
+ export declare enum CertificationAuthorityNames {
3
+ AUDIT = "AUDIT",
4
+ PEER_GROUP = "PEER_GROUP"
5
+ }
6
+ export declare const AuditSubmitRequestBodySchema: z.ZodObject<{
7
+ balanceSheetToBeSubmitted: z.ZodNumber;
8
+ certificationAuthority: z.ZodNativeEnum<typeof CertificationAuthorityNames>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ balanceSheetToBeSubmitted: number;
11
+ certificationAuthority: CertificationAuthorityNames;
12
+ }, {
13
+ balanceSheetToBeSubmitted: number;
14
+ certificationAuthority: CertificationAuthorityNames;
15
+ }>;
16
+ export declare const AuditSubmitResponseBodySchema: z.ZodObject<{
17
+ id: z.ZodNumber;
18
+ submittedAt: z.ZodString;
19
+ certificationAuthority: z.ZodNativeEnum<typeof CertificationAuthorityNames>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ id: number;
22
+ certificationAuthority: CertificationAuthorityNames;
23
+ submittedAt: string;
24
+ }, {
25
+ id: number;
26
+ certificationAuthority: CertificationAuthorityNames;
27
+ submittedAt: string;
28
+ }>;
29
+ export declare const AuditSearchResponseBodySchema: z.ZodObject<{
30
+ id: z.ZodNumber;
31
+ submittedAt: z.ZodString;
32
+ certificationAuthority: z.ZodNativeEnum<typeof CertificationAuthorityNames>;
33
+ }, "strip", z.ZodTypeAny, {
34
+ id: number;
35
+ certificationAuthority: CertificationAuthorityNames;
36
+ submittedAt: string;
37
+ }, {
38
+ id: number;
39
+ certificationAuthority: CertificationAuthorityNames;
40
+ submittedAt: string;
41
+ }>;
42
+ export declare const AuditFullResponseBodySchema: z.ZodObject<z.objectUtil.extendShape<{
43
+ id: z.ZodNumber;
44
+ submittedAt: z.ZodString;
45
+ certificationAuthority: z.ZodNativeEnum<typeof CertificationAuthorityNames>;
46
+ }, {
47
+ submittedBalanceSheetId: z.ZodNumber;
48
+ originalCopyId: z.ZodNumber;
49
+ auditCopyId: z.ZodNumber;
50
+ }>, "strip", z.ZodTypeAny, {
51
+ id: number;
52
+ certificationAuthority: CertificationAuthorityNames;
53
+ submittedAt: string;
54
+ submittedBalanceSheetId: number;
55
+ originalCopyId: number;
56
+ auditCopyId: number;
57
+ }, {
58
+ id: number;
59
+ certificationAuthority: CertificationAuthorityNames;
60
+ submittedAt: string;
61
+ submittedBalanceSheetId: number;
62
+ originalCopyId: number;
63
+ auditCopyId: number;
64
+ }>;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditFullResponseBodySchema = exports.AuditSearchResponseBodySchema = exports.AuditSubmitResponseBodySchema = exports.AuditSubmitRequestBodySchema = exports.CertificationAuthorityNames = void 0;
4
+ const zod_1 = require("zod");
5
+ var CertificationAuthorityNames;
6
+ (function (CertificationAuthorityNames) {
7
+ CertificationAuthorityNames["AUDIT"] = "AUDIT";
8
+ CertificationAuthorityNames["PEER_GROUP"] = "PEER_GROUP";
9
+ })(CertificationAuthorityNames || (exports.CertificationAuthorityNames = CertificationAuthorityNames = {}));
10
+ exports.AuditSubmitRequestBodySchema = zod_1.z.object({
11
+ balanceSheetToBeSubmitted: zod_1.z.number(),
12
+ certificationAuthority: zod_1.z.nativeEnum(CertificationAuthorityNames),
13
+ });
14
+ const AuditPartialResponseBodySchema = zod_1.z.object({
15
+ id: zod_1.z.number(),
16
+ submittedAt: zod_1.z.string().datetime(),
17
+ certificationAuthority: zod_1.z.nativeEnum(CertificationAuthorityNames),
18
+ });
19
+ exports.AuditSubmitResponseBodySchema = AuditPartialResponseBodySchema;
20
+ exports.AuditSearchResponseBodySchema = AuditPartialResponseBodySchema;
21
+ exports.AuditFullResponseBodySchema = AuditPartialResponseBodySchema.extend({
22
+ submittedBalanceSheetId: zod_1.z.number(),
23
+ originalCopyId: zod_1.z.number(),
24
+ auditCopyId: zod_1.z.number(),
25
+ });
@@ -0,0 +1,23 @@
1
+ import { z } from 'zod';
2
+ export declare const BalanceSheetExcelDiffResponseBody: z.ZodObject<{
3
+ lhs: z.ZodString;
4
+ rhs: z.ZodString;
5
+ diffStakeHolderWeights: z.ZodOptional<z.ZodAny>;
6
+ diffTopicWeights: z.ZodOptional<z.ZodAny>;
7
+ diffCalc: z.ZodOptional<z.ZodAny>;
8
+ diff: z.ZodOptional<z.ZodAny>;
9
+ }, "strip", z.ZodTypeAny, {
10
+ lhs: string;
11
+ rhs: string;
12
+ diffStakeHolderWeights?: any;
13
+ diffTopicWeights?: any;
14
+ diffCalc?: any;
15
+ diff?: any;
16
+ }, {
17
+ lhs: string;
18
+ rhs: string;
19
+ diffStakeHolderWeights?: any;
20
+ diffTopicWeights?: any;
21
+ diffCalc?: any;
22
+ diff?: any;
23
+ }>;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BalanceSheetExcelDiffResponseBody = void 0;
4
+ const zod_1 = require("zod");
5
+ const DiffSchema = zod_1.z.any();
6
+ exports.BalanceSheetExcelDiffResponseBody = zod_1.z.object({
7
+ lhs: zod_1.z.string(),
8
+ rhs: zod_1.z.string(),
9
+ diffStakeHolderWeights: DiffSchema.optional(),
10
+ diffTopicWeights: DiffSchema.optional(),
11
+ diffCalc: DiffSchema.optional(),
12
+ diff: DiffSchema.optional(),
13
+ });