@the-inkwell/shared 0.1.113 → 0.1.114

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.113",
3
+ "version": "0.1.114",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -9,16 +9,7 @@ import Campaign from '../../../_schema/Campaigns'
9
9
  import Position from '../../../_schema/Positions'
10
10
  import Client from '../../../_schema/Clients'
11
11
 
12
- export type AdminReferral = Referrals & {
13
- referrer: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'>
14
- candidacy: Pick<Candidacy, 'id' | 'status'> & {
15
- person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'>
16
- }
17
- campaign?: Pick<Campaign, 'id' | 'name'>
18
- position: Pick<Position, 'id' | 'name'> & {
19
- client: Pick<Client, 'id' | 'name'>
20
- }
21
- }
12
+ export type AdminReferral = Referrals
22
13
  type AdminPersonInitializer = ReferralsInitializer
23
14
  type AdminReferralMutator = ReferralsMutator
24
15
 
@@ -30,7 +21,24 @@ export type AdminReferralResponse = AdminReferral
30
21
  // list
31
22
 
32
23
  export type AdminReferralListInput = ListRequest
33
- export type AdminReferralListResponse = ListResponse<AdminReferral>
24
+ export type AdminReferralListResponse = ListResponse<
25
+ AdminReferral & {
26
+ referrer: Pick<
27
+ Person,
28
+ 'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'
29
+ >
30
+ candidacy: Pick<Candidacy, 'id' | 'status'> & {
31
+ person: Pick<
32
+ Person,
33
+ 'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'
34
+ >
35
+ }
36
+ campaign?: Pick<Campaign, 'id' | 'name'>
37
+ position: Pick<Position, 'id' | 'name'> & {
38
+ client: Pick<Client, 'id' | 'name'>
39
+ }
40
+ }
41
+ >
34
42
 
35
43
  // create
36
44