@timothyw/pat-common 1.0.34 → 1.0.36
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.
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { TaskListId } from '../../id-types';
|
|
2
3
|
export declare const updateTaskRequestSchema: z.ZodObject<{
|
|
3
4
|
name: z.ZodOptional<z.ZodString>;
|
|
4
5
|
notes: z.ZodOptional<z.ZodString>;
|
|
5
6
|
completed: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
taskListId: z.ZodOptional<z.ZodEffects<z.ZodString,
|
|
7
|
+
taskListId: z.ZodOptional<z.ZodEffects<z.ZodString, TaskListId, string>>;
|
|
7
8
|
}, "strip", z.ZodTypeAny, {
|
|
8
9
|
name?: string | undefined;
|
|
9
10
|
completed?: boolean | undefined;
|
|
10
11
|
notes?: string | undefined;
|
|
11
|
-
taskListId?:
|
|
12
|
+
taskListId?: TaskListId | undefined;
|
|
12
13
|
}, {
|
|
13
14
|
name?: string | undefined;
|
|
14
15
|
completed?: boolean | undefined;
|
|
@@ -22,7 +23,7 @@ export interface UpdateTaskResponse {
|
|
|
22
23
|
name: string;
|
|
23
24
|
notes?: string;
|
|
24
25
|
completed: boolean;
|
|
25
|
-
taskListId:
|
|
26
|
+
taskListId: TaskListId;
|
|
26
27
|
createdAt: string;
|
|
27
28
|
updatedAt: string;
|
|
28
29
|
};
|
package/package.json
CHANGED
package/src/enums/module-type.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { taskListIdSchema } from '../../id-types';
|
|
2
|
+
import { TaskListId, taskListIdSchema } from '../../id-types';
|
|
3
3
|
|
|
4
4
|
export const updateTaskRequestSchema = z.object({
|
|
5
5
|
name: z.string().min(1).optional(),
|
|
@@ -16,7 +16,7 @@ export interface UpdateTaskResponse {
|
|
|
16
16
|
name: string;
|
|
17
17
|
notes?: string;
|
|
18
18
|
completed: boolean;
|
|
19
|
-
taskListId:
|
|
19
|
+
taskListId: TaskListId;
|
|
20
20
|
createdAt: string;
|
|
21
21
|
updatedAt: string;
|
|
22
22
|
};
|