@ecogood/e-calculator-schemas 2.6.2 → 2.7.1
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.
- package/dist/audit.dto.d.ts +37 -0
- package/dist/audit.dto.js +15 -2
- package/package.json +1 -1
package/dist/audit.dto.d.ts
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare enum CertificationAuthorityNames {
|
|
3
|
+
AUDIT = "AUDIT",
|
|
4
|
+
PEER_GROUP = "PEER_GROUP"
|
|
5
|
+
}
|
|
2
6
|
export declare const AuditSubmitRequestBodySchema: z.ZodObject<{
|
|
3
7
|
balanceSheetToBeSubmitted: z.ZodNumber;
|
|
8
|
+
certificationAuthority: z.ZodNativeEnum<typeof CertificationAuthorityNames>;
|
|
4
9
|
}, "strip", z.ZodTypeAny, {
|
|
5
10
|
balanceSheetToBeSubmitted: number;
|
|
11
|
+
certificationAuthority: CertificationAuthorityNames;
|
|
6
12
|
}, {
|
|
7
13
|
balanceSheetToBeSubmitted: number;
|
|
14
|
+
certificationAuthority: CertificationAuthorityNames;
|
|
8
15
|
}>;
|
|
9
16
|
export declare const AuditSubmitResponseBodySchema: z.ZodObject<{
|
|
10
17
|
id: z.ZodNumber;
|
|
@@ -16,3 +23,33 @@ export declare const AuditSubmitResponseBodySchema: z.ZodObject<{
|
|
|
16
23
|
id: number;
|
|
17
24
|
submittedAt: string;
|
|
18
25
|
}>;
|
|
26
|
+
export declare const AuditSearchResponseBodySchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodNumber;
|
|
28
|
+
submittedAt: z.ZodString;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
id: number;
|
|
31
|
+
submittedAt: string;
|
|
32
|
+
}, {
|
|
33
|
+
id: number;
|
|
34
|
+
submittedAt: string;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const AuditFullResponseBodySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
37
|
+
id: z.ZodNumber;
|
|
38
|
+
submittedAt: z.ZodString;
|
|
39
|
+
}, {
|
|
40
|
+
submittedBalanceSheetId: z.ZodNumber;
|
|
41
|
+
originalCopyId: z.ZodNumber;
|
|
42
|
+
auditCopyId: z.ZodNumber;
|
|
43
|
+
}>, "strip", z.ZodTypeAny, {
|
|
44
|
+
id: number;
|
|
45
|
+
submittedAt: string;
|
|
46
|
+
submittedBalanceSheetId: number;
|
|
47
|
+
originalCopyId: number;
|
|
48
|
+
auditCopyId: number;
|
|
49
|
+
}, {
|
|
50
|
+
id: number;
|
|
51
|
+
submittedAt: string;
|
|
52
|
+
submittedBalanceSheetId: number;
|
|
53
|
+
originalCopyId: number;
|
|
54
|
+
auditCopyId: number;
|
|
55
|
+
}>;
|
package/dist/audit.dto.js
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuditSubmitResponseBodySchema = exports.AuditSubmitRequestBodySchema = void 0;
|
|
3
|
+
exports.AuditFullResponseBodySchema = exports.AuditSearchResponseBodySchema = exports.AuditSubmitResponseBodySchema = exports.AuditSubmitRequestBodySchema = exports.CertificationAuthorityNames = void 0;
|
|
4
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 = {}));
|
|
5
10
|
exports.AuditSubmitRequestBodySchema = zod_1.z.object({
|
|
6
11
|
balanceSheetToBeSubmitted: zod_1.z.number(),
|
|
12
|
+
certificationAuthority: zod_1.z.nativeEnum(CertificationAuthorityNames),
|
|
7
13
|
});
|
|
8
|
-
|
|
14
|
+
const AuditPartialResponseBodySchema = zod_1.z.object({
|
|
9
15
|
id: zod_1.z.number(),
|
|
10
16
|
submittedAt: zod_1.z.string().datetime(),
|
|
11
17
|
});
|
|
18
|
+
exports.AuditSubmitResponseBodySchema = AuditPartialResponseBodySchema;
|
|
19
|
+
exports.AuditSearchResponseBodySchema = AuditPartialResponseBodySchema;
|
|
20
|
+
exports.AuditFullResponseBodySchema = AuditPartialResponseBodySchema.extend({
|
|
21
|
+
submittedBalanceSheetId: zod_1.z.number(),
|
|
22
|
+
originalCopyId: zod_1.z.number(),
|
|
23
|
+
auditCopyId: zod_1.z.number(),
|
|
24
|
+
});
|
package/package.json
CHANGED