@timothyw/pat-common 1.0.73 → 1.0.74
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.
- package/dist/types/api/people/create-person-note-types.d.ts +13 -0
- package/dist/types/api/people/create-person-note-types.js +7 -0
- package/dist/types/api/people/delete-person-notes-types.d.ts +3 -0
- package/dist/types/api/people/delete-person-notes-types.js +2 -0
- package/dist/types/api/people/get-person-notes-types.d.ts +4 -0
- package/dist/types/api/people/get-person-notes-types.js +2 -0
- package/dist/types/api/people/update-person-note-types.d.ts +13 -0
- package/dist/types/api/people/update-person-note-types.js +7 -0
- package/package.json +1 -1
- package/src/types/api/people/create-person-note-types.ts +13 -0
- package/src/types/api/people/delete-person-notes-types.ts +3 -0
- package/src/types/api/people/get-person-notes-types.ts +6 -0
- package/src/types/api/people/update-person-note-types.ts +13 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PersonNoteData } from "../../models";
|
|
3
|
+
export declare const createPersonNoteRequestSchema: z.ZodObject<{
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
content: string;
|
|
7
|
+
}, {
|
|
8
|
+
content: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type CreatePersonNoteRequest = z.infer<typeof createPersonNoteRequestSchema>;
|
|
11
|
+
export interface CreatePersonNoteResponse {
|
|
12
|
+
personNote: PersonNoteData;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PersonNoteData } from "../../models";
|
|
3
|
+
export declare const updatePersonNoteRequestSchema: z.ZodObject<{
|
|
4
|
+
content: z.ZodString;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
content: string;
|
|
7
|
+
}, {
|
|
8
|
+
content: string;
|
|
9
|
+
}>;
|
|
10
|
+
export type UpdatePersonNoteRequest = z.infer<typeof updatePersonNoteRequestSchema>;
|
|
11
|
+
export interface UpdatePersonNoteResponse {
|
|
12
|
+
personNote: PersonNoteData;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { PersonNoteId } from "../../id-types";
|
|
3
|
+
import { PersonNoteData } from "../../models";
|
|
4
|
+
|
|
5
|
+
export const createPersonNoteRequestSchema = z.object({
|
|
6
|
+
content: z.string().min(1)
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export type CreatePersonNoteRequest = z.infer<typeof createPersonNoteRequestSchema>;
|
|
10
|
+
|
|
11
|
+
export interface CreatePersonNoteResponse {
|
|
12
|
+
personNote: PersonNoteData;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { personIdSchema, PersonNoteId, personNoteIdSchema } from "../../id-types";
|
|
3
|
+
import { Person, PersonNoteData } from "../../models";
|
|
4
|
+
|
|
5
|
+
export const updatePersonNoteRequestSchema = z.object({
|
|
6
|
+
content: z.string().min(1)
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export type UpdatePersonNoteRequest = z.infer<typeof updatePersonNoteRequestSchema>;
|
|
10
|
+
|
|
11
|
+
export interface UpdatePersonNoteResponse {
|
|
12
|
+
personNote: PersonNoteData;
|
|
13
|
+
}
|