@the-inkwell/shared 0.1.140 → 0.1.141
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
|
@@ -18,13 +18,13 @@ export type AdminCandidacy = Candidacies & {
|
|
|
18
18
|
| (Pick<Referrals, 'id'> & {
|
|
19
19
|
referrer: Pick<
|
|
20
20
|
AdminPerson,
|
|
21
|
-
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'
|
|
21
|
+
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email' | '_fullName'
|
|
22
22
|
>
|
|
23
23
|
})
|
|
24
24
|
| null
|
|
25
25
|
person: Pick<
|
|
26
26
|
AdminPerson,
|
|
27
|
-
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'
|
|
27
|
+
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email' | '_fullName'
|
|
28
28
|
>
|
|
29
29
|
position: Pick<Positions, 'id' | 'name'> & {
|
|
30
30
|
client: Pick<Clients, 'id' | 'name'>
|
|
@@ -7,7 +7,9 @@ import { type ListRequest, type ListResponse } from '../../../utils'
|
|
|
7
7
|
|
|
8
8
|
type AdminPersonInitializer = PersonsInitializer
|
|
9
9
|
type AdminPersonMutator = PersonsMutator
|
|
10
|
-
export type AdminPerson = Persons
|
|
10
|
+
export type AdminPerson = Persons & {
|
|
11
|
+
_fullName: string | null
|
|
12
|
+
}
|
|
11
13
|
|
|
12
14
|
// detail
|
|
13
15
|
|
|
@@ -30,8 +32,8 @@ export type AdminPersonListResponse = ListResponse<
|
|
|
30
32
|
| 'updatedAt'
|
|
31
33
|
| 'deletedAt'
|
|
32
34
|
| 'source'
|
|
35
|
+
| '_fullName'
|
|
33
36
|
> & {
|
|
34
|
-
_fullName: string | null
|
|
35
37
|
_referralsCount: number
|
|
36
38
|
_referredIndustries: any
|
|
37
39
|
_referredLocations: any
|
|
@@ -3,11 +3,11 @@ import Referrals, {
|
|
|
3
3
|
ReferralsMutator
|
|
4
4
|
} from '../../../_schema/Referrals'
|
|
5
5
|
import { ListRequest, ListResponse } from '../../../utils'
|
|
6
|
-
import Person from '../../../_schema/Persons'
|
|
7
6
|
import Candidacy from '../../../_schema/Candidacies'
|
|
8
7
|
import Campaign from '../../../_schema/Campaigns'
|
|
9
8
|
import Position from '../../../_schema/Positions'
|
|
10
9
|
import Client from '../../../_schema/Clients'
|
|
10
|
+
import { AdminPerson } from '../persons'
|
|
11
11
|
|
|
12
12
|
export type AdminReferral = Referrals
|
|
13
13
|
type AdminPersonInitializer = ReferralsInitializer
|
|
@@ -18,7 +18,10 @@ type AdminReferralMutator = ReferralsMutator
|
|
|
18
18
|
export type AdminReferralParams = Pick<AdminReferral, 'id'>
|
|
19
19
|
export type AdminReferralResponse = AdminReferral & {
|
|
20
20
|
candidacy: Pick<Candidacy, 'id' | 'status'> & {
|
|
21
|
-
person: Pick<
|
|
21
|
+
person: Pick<
|
|
22
|
+
AdminPerson,
|
|
23
|
+
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email' | '_fullName'
|
|
24
|
+
>
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
|
|
@@ -28,13 +31,13 @@ export type AdminReferralListInput = ListRequest
|
|
|
28
31
|
export type AdminReferralListResponse = ListResponse<
|
|
29
32
|
AdminReferral & {
|
|
30
33
|
referrer: Pick<
|
|
31
|
-
|
|
32
|
-
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'
|
|
34
|
+
AdminPerson,
|
|
35
|
+
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email' | '_fullName'
|
|
33
36
|
>
|
|
34
37
|
candidacy: Pick<Candidacy, 'id' | 'status'> & {
|
|
35
38
|
person: Pick<
|
|
36
|
-
|
|
37
|
-
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email'
|
|
39
|
+
AdminPerson,
|
|
40
|
+
'id' | 'firstName' | 'lastName' | 'photoUrl' | 'email' | '_fullName'
|
|
38
41
|
>
|
|
39
42
|
}
|
|
40
43
|
campaign?: Pick<Campaign, 'id' | 'name'>
|