@nyig/models 0.2.29 → 0.2.31
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/index.d.mts +86 -80
- package/index.d.ts +86 -80
- package/index.js +2 -1
- package/index.mjs +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -161,7 +161,7 @@ var import_zod4 = require("zod");
|
|
|
161
161
|
function addAutoProps(original) {
|
|
162
162
|
return original.extend({
|
|
163
163
|
_id: import_zod4.z.string(),
|
|
164
|
-
editedBy: import_zod4.z.string(),
|
|
164
|
+
editedBy: import_zod4.z.string().optional(),
|
|
165
165
|
createdAt: import_zod4.z.coerce.date().optional(),
|
|
166
166
|
updatedAt: import_zod4.z.coerce.date().optional()
|
|
167
167
|
});
|
|
@@ -191,6 +191,7 @@ var zBCampTracker = import_zod6.z.object({
|
|
|
191
191
|
* attendances are tracked by week for camps
|
|
192
192
|
*/
|
|
193
193
|
attendances: import_zod6.z.array(import_zod6.z.string()),
|
|
194
|
+
isNonPublic: import_zod6.z.boolean().optional(),
|
|
194
195
|
notes: import_zod6.z.string().optional()
|
|
195
196
|
});
|
|
196
197
|
var zCampTracker = addAutoProps(zBCampTracker);
|
package/index.mjs
CHANGED
|
@@ -74,7 +74,7 @@ import { z as z4 } from "zod";
|
|
|
74
74
|
function addAutoProps(original) {
|
|
75
75
|
return original.extend({
|
|
76
76
|
_id: z4.string(),
|
|
77
|
-
editedBy: z4.string(),
|
|
77
|
+
editedBy: z4.string().optional(),
|
|
78
78
|
createdAt: z4.coerce.date().optional(),
|
|
79
79
|
updatedAt: z4.coerce.date().optional()
|
|
80
80
|
});
|
|
@@ -104,6 +104,7 @@ var zBCampTracker = z6.object({
|
|
|
104
104
|
* attendances are tracked by week for camps
|
|
105
105
|
*/
|
|
106
106
|
attendances: z6.array(z6.string()),
|
|
107
|
+
isNonPublic: z6.boolean().optional(),
|
|
107
108
|
notes: z6.string().optional()
|
|
108
109
|
});
|
|
109
110
|
var zCampTracker = addAutoProps(zBCampTracker);
|