@timothyw/pat-common 1.0.152 → 1.0.153
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.
|
@@ -279,25 +279,25 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
|
|
|
279
279
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
280
|
notes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
281
|
frequency: z.ZodOptional<z.ZodNativeEnum<typeof HabitFrequency>>;
|
|
282
|
-
rolloverTime: z.ZodString
|
|
283
|
-
startOffsetMinutes: z.ZodNumber
|
|
284
|
-
endOffsetMinutes: z.ZodNumber
|
|
282
|
+
rolloverTime: z.ZodOptional<z.ZodString>;
|
|
283
|
+
startOffsetMinutes: z.ZodOptional<z.ZodNumber>;
|
|
284
|
+
endOffsetMinutes: z.ZodOptional<z.ZodNumber>;
|
|
285
285
|
}, "strip", z.ZodTypeAny, {
|
|
286
|
-
rolloverTime: string;
|
|
287
|
-
startOffsetMinutes: number;
|
|
288
|
-
endOffsetMinutes: number;
|
|
289
286
|
name?: string | undefined;
|
|
290
287
|
description?: string | null | undefined;
|
|
291
288
|
notes?: string | null | undefined;
|
|
292
289
|
frequency?: HabitFrequency | undefined;
|
|
290
|
+
rolloverTime?: string | undefined;
|
|
291
|
+
startOffsetMinutes?: number | undefined;
|
|
292
|
+
endOffsetMinutes?: number | undefined;
|
|
293
293
|
}, {
|
|
294
|
-
rolloverTime: string;
|
|
295
|
-
startOffsetMinutes: number;
|
|
296
|
-
endOffsetMinutes: number;
|
|
297
294
|
name?: string | undefined;
|
|
298
295
|
description?: string | null | undefined;
|
|
299
296
|
notes?: string | null | undefined;
|
|
300
297
|
frequency?: HabitFrequency | undefined;
|
|
298
|
+
rolloverTime?: string | undefined;
|
|
299
|
+
startOffsetMinutes?: number | undefined;
|
|
300
|
+
endOffsetMinutes?: number | undefined;
|
|
301
301
|
}>;
|
|
302
302
|
export declare const createHabitEntryRequestSchema: z.ZodObject<{
|
|
303
303
|
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./misc/misc-types").DateOnlyString, string>;
|
|
@@ -66,9 +66,9 @@ exports.updateHabitRequestSchema = zod_1.z.object({
|
|
|
66
66
|
description: zod_1.z.string().trim().nullish(),
|
|
67
67
|
notes: zod_1.z.string().trim().nullish(),
|
|
68
68
|
frequency: zod_1.z.nativeEnum(HabitFrequency).optional(),
|
|
69
|
-
rolloverTime: zod_1.z.string(), // TODO: deprecated
|
|
70
|
-
startOffsetMinutes: zod_1.z.number(),
|
|
71
|
-
endOffsetMinutes: zod_1.z.number(),
|
|
69
|
+
rolloverTime: zod_1.z.string().optional(), // TODO: deprecated
|
|
70
|
+
startOffsetMinutes: zod_1.z.number().optional(),
|
|
71
|
+
endOffsetMinutes: zod_1.z.number().optional(),
|
|
72
72
|
});
|
|
73
73
|
exports.createHabitEntryRequestSchema = zod_1.z.object({
|
|
74
74
|
date: misc_types_1.dateOnlyStringSchema,
|
package/package.json
CHANGED
|
@@ -70,9 +70,9 @@ export const updateHabitRequestSchema = z.object({
|
|
|
70
70
|
description: z.string().trim().nullish(),
|
|
71
71
|
notes: z.string().trim().nullish(),
|
|
72
72
|
frequency: z.nativeEnum(HabitFrequency).optional(),
|
|
73
|
-
rolloverTime: z.string(), // TODO: deprecated
|
|
74
|
-
startOffsetMinutes: z.number(),
|
|
75
|
-
endOffsetMinutes: z.number(),
|
|
73
|
+
rolloverTime: z.string().optional(), // TODO: deprecated
|
|
74
|
+
startOffsetMinutes: z.number().optional(),
|
|
75
|
+
endOffsetMinutes: z.number().optional(),
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
export const createHabitEntryRequestSchema = z.object({
|