@timothyw/pat-common 1.0.65 → 1.0.67

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,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { PersonNoteId } from "../../id-types";
2
3
  export declare const createPersonRequestSchema: z.ZodObject<{
3
4
  name: z.ZodString;
4
5
  properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -11,10 +12,10 @@ export declare const createPersonRequestSchema: z.ZodObject<{
11
12
  value: string;
12
13
  key: string;
13
14
  }>, "many">>;
14
- notes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, import("../../id-types").PersonNoteId, string>, "many">>;
15
+ notes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PersonNoteId, string>, "many">>;
15
16
  }, "strip", z.ZodTypeAny, {
16
17
  name: string;
17
- notes?: import("../../id-types").PersonNoteId[] | undefined;
18
+ notes?: PersonNoteId[] | undefined;
18
19
  properties?: {
19
20
  value: string;
20
21
  key: string;
@@ -36,10 +37,6 @@ export interface CreatePersonResponse {
36
37
  key: string;
37
38
  value: string;
38
39
  }>;
39
- notes: Array<{
40
- content: string;
41
- createdAt: string;
42
- updatedAt: string;
43
- }>;
40
+ notes: Array<PersonNoteId>;
44
41
  };
45
42
  }
@@ -1,3 +1,4 @@
1
+ import { PersonNoteId } from "../../id-types";
1
2
  export interface GetPeopleResponse {
2
3
  people: Array<{
3
4
  id: string;
@@ -6,10 +7,6 @@ export interface GetPeopleResponse {
6
7
  key: string;
7
8
  value: string;
8
9
  }>;
9
- notes: Array<{
10
- content: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- }>;
10
+ notes: Array<PersonNoteId>;
14
11
  }>;
15
12
  }
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.65",
5
+ "version": "1.0.67",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { personNoteIdSchema } from "../../id-types";
2
+ import { PersonNoteId, personNoteIdSchema } from "../../id-types";
3
3
 
4
4
  export const createPersonRequestSchema = z.object({
5
5
  name: z.string().min(1),
@@ -20,10 +20,6 @@ export interface CreatePersonResponse {
20
20
  key: string;
21
21
  value: string;
22
22
  }>;
23
- notes: Array<{
24
- content: string;
25
- createdAt: string;
26
- updatedAt: string;
27
- }>;
23
+ notes: Array<PersonNoteId>;
28
24
  };
29
25
  }
@@ -1,3 +1,5 @@
1
+ import { PersonNoteId } from "../../id-types";
2
+
1
3
  export interface GetPeopleResponse {
2
4
  people: Array<{
3
5
  id: string;
@@ -6,10 +8,6 @@ export interface GetPeopleResponse {
6
8
  key: string;
7
9
  value: string;
8
10
  }>;
9
- notes: Array<{
10
- content: string;
11
- createdAt: string;
12
- updatedAt: string;
13
- }>;
11
+ notes: Array<PersonNoteId>;
14
12
  }>;
15
13
  }