@timothyw/pat-common 1.0.47 → 1.0.48
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.
|
@@ -2,14 +2,14 @@ import { z } from "zod";
|
|
|
2
2
|
import { Habit } from "../../models";
|
|
3
3
|
import { DateString } from "../../misc-types";
|
|
4
4
|
export declare const createHabitEntryRequestSchema: z.ZodObject<{
|
|
5
|
-
|
|
5
|
+
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, Date, string>;
|
|
6
6
|
status: z.ZodEnum<["completed", "excused"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
date: Date;
|
|
8
9
|
status: "completed" | "excused";
|
|
9
|
-
dateString: Date;
|
|
10
10
|
}, {
|
|
11
|
+
date: string;
|
|
11
12
|
status: "completed" | "excused";
|
|
12
|
-
dateString: string;
|
|
13
13
|
}>;
|
|
14
14
|
export interface CreateHabitEntryRequest {
|
|
15
15
|
dateString: DateString;
|
|
@@ -4,6 +4,6 @@ exports.createHabitEntryRequestSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const misc_types_1 = require("../../misc-types");
|
|
6
6
|
exports.createHabitEntryRequestSchema = zod_1.z.object({
|
|
7
|
-
|
|
7
|
+
date: misc_types_1.dateStringSchema,
|
|
8
8
|
status: zod_1.z.enum(['completed', 'excused'])
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { Habit } from "../../models";
|
|
|
3
3
|
import { DateString, dateStringSchema } from "../../misc-types";
|
|
4
4
|
|
|
5
5
|
export const createHabitEntryRequestSchema = z.object({
|
|
6
|
-
|
|
6
|
+
date: dateStringSchema,
|
|
7
7
|
status: z.enum(['completed', 'excused'])
|
|
8
8
|
});
|
|
9
9
|
|