@timothyw/pat-common 1.0.158 → 1.0.163
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.
|
@@ -55,6 +55,7 @@ export declare const habitDataSchema: z.ZodObject<{
|
|
|
55
55
|
startOffsetMinutes: z.ZodNumber;
|
|
56
56
|
endOffsetMinutes: z.ZodNumber;
|
|
57
57
|
firstDay: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./misc").DateOnlyString, string>;
|
|
58
|
+
sortOrder: z.ZodNumber;
|
|
58
59
|
createdAt: z.ZodDate;
|
|
59
60
|
updatedAt: z.ZodDate;
|
|
60
61
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,6 +74,7 @@ export declare const habitDataSchema: z.ZodObject<{
|
|
|
73
74
|
firstDay: string & {
|
|
74
75
|
readonly __brand: "DateOnlyString";
|
|
75
76
|
};
|
|
77
|
+
sortOrder: number;
|
|
76
78
|
description?: string | null | undefined;
|
|
77
79
|
notes?: string | null | undefined;
|
|
78
80
|
}, {
|
|
@@ -85,6 +87,7 @@ export declare const habitDataSchema: z.ZodObject<{
|
|
|
85
87
|
startOffsetMinutes: number;
|
|
86
88
|
endOffsetMinutes: number;
|
|
87
89
|
firstDay: string;
|
|
90
|
+
sortOrder: number;
|
|
88
91
|
description?: string | null | undefined;
|
|
89
92
|
notes?: string | null | undefined;
|
|
90
93
|
}>;
|
|
@@ -117,6 +120,7 @@ export declare const habitSchema: z.ZodObject<{
|
|
|
117
120
|
startOffsetMinutes: z.ZodNumber;
|
|
118
121
|
endOffsetMinutes: z.ZodNumber;
|
|
119
122
|
firstDay: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./misc").DateOnlyString, string>;
|
|
123
|
+
sortOrder: z.ZodNumber;
|
|
120
124
|
createdAt: z.ZodDate;
|
|
121
125
|
updatedAt: z.ZodDate;
|
|
122
126
|
} & {
|
|
@@ -205,6 +209,7 @@ export declare const habitSchema: z.ZodObject<{
|
|
|
205
209
|
firstDay: string & {
|
|
206
210
|
readonly __brand: "DateOnlyString";
|
|
207
211
|
};
|
|
212
|
+
sortOrder: number;
|
|
208
213
|
stats: {
|
|
209
214
|
totalDays: number;
|
|
210
215
|
completedDays: number;
|
|
@@ -233,6 +238,7 @@ export declare const habitSchema: z.ZodObject<{
|
|
|
233
238
|
startOffsetMinutes: number;
|
|
234
239
|
endOffsetMinutes: number;
|
|
235
240
|
firstDay: string;
|
|
241
|
+
sortOrder: number;
|
|
236
242
|
stats: {
|
|
237
243
|
totalDays: number;
|
|
238
244
|
completedDays: number;
|
|
@@ -272,6 +278,7 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
|
|
|
272
278
|
frequency: z.ZodOptional<z.ZodNativeEnum<typeof HabitFrequency>>;
|
|
273
279
|
startOffsetMinutes: z.ZodOptional<z.ZodNumber>;
|
|
274
280
|
endOffsetMinutes: z.ZodOptional<z.ZodNumber>;
|
|
281
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
275
282
|
}, "strip", z.ZodTypeAny, {
|
|
276
283
|
name?: string | undefined;
|
|
277
284
|
description?: string | null | undefined;
|
|
@@ -279,6 +286,7 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
|
|
|
279
286
|
frequency?: HabitFrequency | undefined;
|
|
280
287
|
startOffsetMinutes?: number | undefined;
|
|
281
288
|
endOffsetMinutes?: number | undefined;
|
|
289
|
+
sortOrder?: number | undefined;
|
|
282
290
|
}, {
|
|
283
291
|
name?: string | undefined;
|
|
284
292
|
description?: string | null | undefined;
|
|
@@ -286,6 +294,7 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
|
|
|
286
294
|
frequency?: HabitFrequency | undefined;
|
|
287
295
|
startOffsetMinutes?: number | undefined;
|
|
288
296
|
endOffsetMinutes?: number | undefined;
|
|
297
|
+
sortOrder?: number | undefined;
|
|
289
298
|
}>;
|
|
290
299
|
export declare const createHabitEntryRequestSchema: z.ZodObject<{
|
|
291
300
|
date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, import("./misc").DateOnlyString, string>;
|
|
@@ -37,6 +37,7 @@ exports.habitDataSchema = zod_1.z.object({
|
|
|
37
37
|
startOffsetMinutes: zod_1.z.number(),
|
|
38
38
|
endOffsetMinutes: zod_1.z.number(),
|
|
39
39
|
firstDay: misc_1.dateOnlyStringSchema,
|
|
40
|
+
sortOrder: zod_1.z.number(),
|
|
40
41
|
createdAt: zod_1.z.date(),
|
|
41
42
|
updatedAt: zod_1.z.date()
|
|
42
43
|
});
|
|
@@ -66,6 +67,7 @@ exports.updateHabitRequestSchema = zod_1.z.object({
|
|
|
66
67
|
frequency: zod_1.z.nativeEnum(HabitFrequency).optional(),
|
|
67
68
|
startOffsetMinutes: zod_1.z.number().optional(),
|
|
68
69
|
endOffsetMinutes: zod_1.z.number().optional(),
|
|
70
|
+
sortOrder: zod_1.z.number().optional()
|
|
69
71
|
});
|
|
70
72
|
exports.createHabitEntryRequestSchema = zod_1.z.object({
|
|
71
73
|
date: misc_1.dateOnlyStringSchema,
|
|
@@ -50,7 +50,6 @@ export declare const programConfigSchema: z.ZodObject<{
|
|
|
50
50
|
}, {
|
|
51
51
|
token: string;
|
|
52
52
|
}>;
|
|
53
|
-
redisUrl: z.ZodString;
|
|
54
53
|
updatedAt: z.ZodDate;
|
|
55
54
|
createdAt: z.ZodDate;
|
|
56
55
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -76,7 +75,6 @@ export declare const programConfigSchema: z.ZodObject<{
|
|
|
76
75
|
expo: {
|
|
77
76
|
token: string;
|
|
78
77
|
};
|
|
79
|
-
redisUrl: string;
|
|
80
78
|
}, {
|
|
81
79
|
dev: {
|
|
82
80
|
authorizedEmails: string[];
|
|
@@ -100,6 +98,5 @@ export declare const programConfigSchema: z.ZodObject<{
|
|
|
100
98
|
expo: {
|
|
101
99
|
token: string;
|
|
102
100
|
};
|
|
103
|
-
redisUrl: string;
|
|
104
101
|
}>;
|
|
105
102
|
export type ProgramConfigData = z.infer<typeof programConfigSchema>;
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ export const habitDataSchema = z.object({
|
|
|
37
37
|
startOffsetMinutes: z.number(),
|
|
38
38
|
endOffsetMinutes: z.number(),
|
|
39
39
|
firstDay: dateOnlyStringSchema,
|
|
40
|
+
sortOrder: z.number(),
|
|
40
41
|
createdAt: z.date(),
|
|
41
42
|
updatedAt: z.date()
|
|
42
43
|
});
|
|
@@ -70,6 +71,7 @@ export const updateHabitRequestSchema = z.object({
|
|
|
70
71
|
frequency: z.nativeEnum(HabitFrequency).optional(),
|
|
71
72
|
startOffsetMinutes: z.number().optional(),
|
|
72
73
|
endOffsetMinutes: z.number().optional(),
|
|
74
|
+
sortOrder: z.number().optional()
|
|
73
75
|
});
|
|
74
76
|
|
|
75
77
|
export const createHabitEntryRequestSchema = z.object({
|