@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.
@@ -2,6 +2,7 @@ export declare enum ModuleType {
2
2
  AGENDA = "agenda",
3
3
  TASKS = "tasks",
4
4
  INBOX = "inbox",
5
+ HABITS = "habits",
5
6
  PEOPLE = "people",
6
7
  SETTINGS = "settings",
7
8
  DEV = "dev"
@@ -6,6 +6,7 @@ var ModuleType;
6
6
  ModuleType["AGENDA"] = "agenda";
7
7
  ModuleType["TASKS"] = "tasks";
8
8
  ModuleType["INBOX"] = "inbox";
9
+ ModuleType["HABITS"] = "habits";
9
10
  ModuleType["PEOPLE"] = "people";
10
11
  ModuleType["SETTINGS"] = "settings";
11
12
  ModuleType["DEV"] = "dev";
@@ -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, import("../../id-types").TaskListId, string>>;
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?: import("../../id-types").TaskListId | undefined;
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: string;
26
+ taskListId: TaskListId;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
29
  };
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.34",
5
+ "version": "1.0.36",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -2,6 +2,7 @@ export enum ModuleType {
2
2
  AGENDA = 'agenda',
3
3
  TASKS = 'tasks',
4
4
  INBOX = 'inbox',
5
+ HABITS = 'habits',
5
6
  PEOPLE = 'people',
6
7
  SETTINGS = 'settings',
7
8
  DEV = 'dev'
@@ -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: string;
19
+ taskListId: TaskListId;
20
20
  createdAt: string;
21
21
  updatedAt: string;
22
22
  };