@ecogood/e-calculator-schemas 2.7.5 → 2.7.7
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.
|
@@ -76,6 +76,16 @@ export declare const OrganizationResponseSchema: z.ZodObject<z.objectUtil.extend
|
|
|
76
76
|
};
|
|
77
77
|
invitations: string[];
|
|
78
78
|
}>;
|
|
79
|
+
export declare const OrganizationItemResponseSchema: z.ZodObject<{
|
|
80
|
+
id: z.ZodNumber;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
name: string;
|
|
84
|
+
id: number;
|
|
85
|
+
}, {
|
|
86
|
+
name: string;
|
|
87
|
+
id: number;
|
|
88
|
+
}>;
|
|
79
89
|
export declare const OrganizationItemsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
80
90
|
id: z.ZodNumber;
|
|
81
91
|
name: z.ZodString;
|
package/dist/organization.dto.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OrganizationItemsResponseSchema = exports.OrganizationResponseSchema = exports.OrganizationRequestSchema = void 0;
|
|
3
|
+
exports.OrganizationItemsResponseSchema = exports.OrganizationItemResponseSchema = exports.OrganizationResponseSchema = exports.OrganizationRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const errorMsg = 'Must not be blank';
|
|
6
6
|
const isNonEmptyString = zod_1.z
|
|
@@ -19,6 +19,10 @@ exports.OrganizationResponseSchema = exports.OrganizationRequestSchema.extend({
|
|
|
19
19
|
id: zod_1.z.number(),
|
|
20
20
|
invitations: zod_1.z.string().email().array(),
|
|
21
21
|
});
|
|
22
|
+
exports.OrganizationItemResponseSchema = zod_1.z.object({
|
|
23
|
+
id: zod_1.z.number(),
|
|
24
|
+
name: isNonEmptyString,
|
|
25
|
+
});
|
|
22
26
|
exports.OrganizationItemsResponseSchema = zod_1.z
|
|
23
27
|
.object({ id: zod_1.z.number(), name: isNonEmptyString })
|
|
24
28
|
.array();
|
package/package.json
CHANGED