@the-inkwell/shared 0.1.37 → 0.1.39

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.37",
3
+ "version": "0.1.39",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin)",
@@ -42,11 +42,11 @@ export type AdminPerson = {
42
42
  howDidYouHearAboutUs: string | null
43
43
 
44
44
  sourcePersonId?: string | null
45
- sourcePerson?: AdminPerson | null
46
- sourcedPersons?: AdminPerson[]
45
+ sourcePerson?: AdminPersonIncluded
46
+ sourcedPersons?: AdminPersonIncluded[]
47
47
 
48
- bestiedByPersons?: AdminPerson[]
49
- bestPersons?: AdminPerson[]
48
+ bestiedByPersons?: AdminPersonIncluded[]
49
+ bestPersons?: AdminPersonIncluded[]
50
50
 
51
51
  clientId: string | null
52
52
  client: any // TODO add this
@@ -73,6 +73,11 @@ export type AdminPerson = {
73
73
  updatedAt: string
74
74
  }
75
75
 
76
+ type AdminPersonIncluded = Pick<
77
+ AdminPerson,
78
+ 'id' | 'firstName' | 'lastName' | 'email'
79
+ >
80
+
76
81
  // detail
77
82
 
78
83
  export type AdminPersonResponse = AdminPerson