@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.
@@ -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,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createPersonNoteRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.createPersonNoteRequestSchema = zod_1.z.object({
6
+ content: zod_1.z.string().min(1)
7
+ });
@@ -0,0 +1,3 @@
1
+ export interface DeletePersonNoteResponse {
2
+ success: boolean;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { PersonNoteData } from "../../models";
2
+ export interface GetPersonNotesResponse {
3
+ personNotes: Array<PersonNoteData>;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.updatePersonNoteRequestSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.updatePersonNoteRequestSchema = zod_1.z.object({
6
+ content: zod_1.z.string().min(1)
7
+ });
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.73",
5
+ "version": "1.0.74",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -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,3 @@
1
+ export interface DeletePersonNoteResponse {
2
+ success: boolean;
3
+ }
@@ -0,0 +1,6 @@
1
+ import { PersonNoteId } from "../../id-types";
2
+ import { Person, PersonData, PersonNoteData } from "../../models";
3
+
4
+ export interface GetPersonNotesResponse {
5
+ personNotes: Array<PersonNoteData>;
6
+ }
@@ -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
+ }