@timothyw/pat-common 1.0.158 → 1.0.159

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;
@@ -250,6 +256,7 @@ export declare const createHabitRequestSchema: z.ZodObject<{
250
256
  frequency: z.ZodNativeEnum<typeof HabitFrequency>;
251
257
  startOffsetMinutes: z.ZodNumber;
252
258
  endOffsetMinutes: z.ZodNumber;
259
+ sortOrder: z.ZodOptional<z.ZodNumber>;
253
260
  }, "strip", z.ZodTypeAny, {
254
261
  name: string;
255
262
  frequency: HabitFrequency;
@@ -257,6 +264,7 @@ export declare const createHabitRequestSchema: z.ZodObject<{
257
264
  endOffsetMinutes: number;
258
265
  description?: string | undefined;
259
266
  notes?: string | undefined;
267
+ sortOrder?: number | undefined;
260
268
  }, {
261
269
  name: string;
262
270
  frequency: HabitFrequency;
@@ -264,6 +272,7 @@ export declare const createHabitRequestSchema: z.ZodObject<{
264
272
  endOffsetMinutes: number;
265
273
  description?: string | undefined;
266
274
  notes?: string | undefined;
275
+ sortOrder?: number | undefined;
267
276
  }>;
268
277
  export declare const updateHabitRequestSchema: z.ZodObject<{
269
278
  name: z.ZodOptional<z.ZodString>;
@@ -272,6 +281,7 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
272
281
  frequency: z.ZodOptional<z.ZodNativeEnum<typeof HabitFrequency>>;
273
282
  startOffsetMinutes: z.ZodOptional<z.ZodNumber>;
274
283
  endOffsetMinutes: z.ZodOptional<z.ZodNumber>;
284
+ sortOrder: z.ZodOptional<z.ZodNumber>;
275
285
  }, "strip", z.ZodTypeAny, {
276
286
  name?: string | undefined;
277
287
  description?: string | null | undefined;
@@ -279,6 +289,7 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
279
289
  frequency?: HabitFrequency | undefined;
280
290
  startOffsetMinutes?: number | undefined;
281
291
  endOffsetMinutes?: number | undefined;
292
+ sortOrder?: number | undefined;
282
293
  }, {
283
294
  name?: string | undefined;
284
295
  description?: string | null | undefined;
@@ -286,6 +297,7 @@ export declare const updateHabitRequestSchema: z.ZodObject<{
286
297
  frequency?: HabitFrequency | undefined;
287
298
  startOffsetMinutes?: number | undefined;
288
299
  endOffsetMinutes?: number | undefined;
300
+ sortOrder?: number | undefined;
289
301
  }>;
290
302
  export declare const createHabitEntryRequestSchema: z.ZodObject<{
291
303
  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
  });
@@ -58,6 +59,7 @@ exports.createHabitRequestSchema = zod_1.z.object({
58
59
  frequency: zod_1.z.nativeEnum(HabitFrequency),
59
60
  startOffsetMinutes: zod_1.z.number(),
60
61
  endOffsetMinutes: zod_1.z.number(),
62
+ sortOrder: zod_1.z.number().optional()
61
63
  });
62
64
  exports.updateHabitRequestSchema = zod_1.z.object({
63
65
  name: zod_1.z.string().min(1).trim().optional(),
@@ -66,6 +68,7 @@ exports.updateHabitRequestSchema = zod_1.z.object({
66
68
  frequency: zod_1.z.nativeEnum(HabitFrequency).optional(),
67
69
  startOffsetMinutes: zod_1.z.number().optional(),
68
70
  endOffsetMinutes: zod_1.z.number().optional(),
71
+ sortOrder: zod_1.z.number().optional()
69
72
  });
70
73
  exports.createHabitEntryRequestSchema = zod_1.z.object({
71
74
  date: misc_1.dateOnlyStringSchema,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@timothyw/pat-common",
3
3
  "description": "",
4
4
  "author": "Timothy Washburn",
5
- "version": "1.0.158",
5
+ "version": "1.0.159",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -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
  });
@@ -61,6 +62,7 @@ export const createHabitRequestSchema = z.object({
61
62
  frequency: z.nativeEnum(HabitFrequency),
62
63
  startOffsetMinutes: z.number(),
63
64
  endOffsetMinutes: z.number(),
65
+ sortOrder: z.number().optional()
64
66
  });
65
67
 
66
68
  export const updateHabitRequestSchema = z.object({
@@ -70,6 +72,7 @@ export const updateHabitRequestSchema = z.object({
70
72
  frequency: z.nativeEnum(HabitFrequency).optional(),
71
73
  startOffsetMinutes: z.number().optional(),
72
74
  endOffsetMinutes: z.number().optional(),
75
+ sortOrder: z.number().optional()
73
76
  });
74
77
 
75
78
  export const createHabitEntryRequestSchema = z.object({