@timothyw/pat-common 1.0.77 → 1.0.79

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.
@@ -13,21 +13,21 @@ export declare const updatePersonRequestSchema: z.ZodObject<{
13
13
  value: string;
14
14
  key: string;
15
15
  }>, "many">>;
16
- notes: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PersonNoteId, string>, "many">>;
16
+ noteIds: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, PersonNoteId, string>, "many">>;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  name?: string | undefined;
19
- notes?: PersonNoteId[] | undefined;
20
19
  properties?: {
21
20
  value: string;
22
21
  key: string;
23
22
  }[] | undefined;
23
+ noteIds?: PersonNoteId[] | undefined;
24
24
  }, {
25
25
  name?: string | undefined;
26
- notes?: string[] | undefined;
27
26
  properties?: {
28
27
  value: string;
29
28
  key: string;
30
29
  }[] | undefined;
30
+ noteIds?: string[] | undefined;
31
31
  }>;
32
32
  export type UpdatePersonRequest = z.infer<typeof updatePersonRequestSchema>;
33
33
  export interface UpdatePersonResponse {
@@ -9,5 +9,5 @@ exports.updatePersonRequestSchema = zod_1.z.object({
9
9
  key: zod_1.z.string().min(1),
10
10
  value: zod_1.z.string().min(1)
11
11
  })).optional(),
12
- notes: zod_1.z.array(id_types_1.personNoteIdSchema).optional()
12
+ noteIds: zod_1.z.array(id_types_1.personNoteIdSchema).optional()
13
13
  });
@@ -13,7 +13,8 @@ export declare enum HabitEntryStatus {
13
13
  }
14
14
  export interface HabitEntryData {
15
15
  _id: HabitEntryId;
16
- habitId: string;
16
+ habitId: HabitId;
17
+ userId: UserId;
17
18
  date: DateOnlyString;
18
19
  status: HabitEntryStatus;
19
20
  createdAt: Date;
@@ -5,6 +5,8 @@ export interface PersonProperty {
5
5
  }
6
6
  export interface PersonNoteData {
7
7
  _id: PersonNoteId;
8
+ personId: PersonId;
9
+ userId: UserId;
8
10
  content: string;
9
11
  createdAt: Date;
10
12
  updatedAt: Date;
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.77",
5
+ "version": "1.0.79",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {
@@ -8,7 +8,7 @@ export const updatePersonRequestSchema = z.object({
8
8
  key: z.string().min(1),
9
9
  value: z.string().min(1)
10
10
  })).optional(),
11
- notes: z.array(personNoteIdSchema).optional()
11
+ noteIds: z.array(personNoteIdSchema).optional()
12
12
  });
13
13
 
14
14
  export type UpdatePersonRequest = z.infer<typeof updatePersonRequestSchema>;
@@ -16,7 +16,8 @@ export enum HabitEntryStatus {
16
16
 
17
17
  export interface HabitEntryData {
18
18
  _id: HabitEntryId;
19
- habitId: string;
19
+ habitId: HabitId;
20
+ userId: UserId;
20
21
  date: DateOnlyString;
21
22
  status: HabitEntryStatus;
22
23
  createdAt: Date;
@@ -7,6 +7,8 @@ export interface PersonProperty {
7
7
 
8
8
  export interface PersonNoteData {
9
9
  _id: PersonNoteId;
10
+ personId: PersonId;
11
+ userId: UserId;
10
12
  content: string;
11
13
  createdAt: Date;
12
14
  updatedAt: Date;