@the-inkwell/shared 0.1.112 → 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.112",
3
+ "version": "0.1.114",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -6,11 +6,7 @@ import Clients from '../../../_schema/Clients'
6
6
  import { ListRequest, ListResponse } from '../../../utils'
7
7
  import PositionStatuses from '../../../_schema/PositionStatuses'
8
8
 
9
- export type AdminPosition = Positions & {
10
- client: Pick<Clients, 'id' | 'name'> | null
11
- _referralsCount: number
12
- _openCandidaciesCount: number
13
- }
9
+ export type AdminPosition = Positions
14
10
  type AdminPositionInitializer = PositionsInitializer
15
11
  type AdminPositionMutator = PositionsMutator
16
12
 
@@ -27,7 +23,13 @@ export type AdminPositionListInput = ListRequest<
27
23
  status?: PositionStatuses[]
28
24
  }
29
25
  >
30
- export type AdminPositionListResponse = ListResponse<AdminPosition>
26
+ export type AdminPositionListResponse = ListResponse<
27
+ AdminPosition & {
28
+ client: Pick<Clients, 'id' | 'name'> | null
29
+ _referralsCount: number
30
+ _openCandidaciesCount: number
31
+ }
32
+ >
31
33
 
32
34
  // create
33
35
 
@@ -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