@the-inkwell/shared 0.1.81 → 0.1.82
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
|
@@ -27,6 +27,8 @@ export default interface Campaigns {
|
|
|
27
27
|
deletedAt: Date | null;
|
|
28
28
|
|
|
29
29
|
updatedAt: Date;
|
|
30
|
+
|
|
31
|
+
name: string;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/** Represents the initializer for the table public.campaigns */
|
|
@@ -53,6 +55,8 @@ export interface CampaignsInitializer {
|
|
|
53
55
|
|
|
54
56
|
/** Default value: CURRENT_TIMESTAMP */
|
|
55
57
|
updatedAt?: Date;
|
|
58
|
+
|
|
59
|
+
name: string;
|
|
56
60
|
}
|
|
57
61
|
|
|
58
62
|
/** Represents the mutator for the table public.campaigns */
|
|
@@ -74,4 +78,6 @@ export interface CampaignsMutator {
|
|
|
74
78
|
deletedAt?: Date | null;
|
|
75
79
|
|
|
76
80
|
updatedAt?: Date;
|
|
81
|
+
|
|
82
|
+
name?: string;
|
|
77
83
|
}
|
|
@@ -11,9 +11,9 @@ import { AdminPerson } from '../persons'
|
|
|
11
11
|
|
|
12
12
|
export type AdminCandidacy = Candidacies & {
|
|
13
13
|
referral?: Pick<Referrals, 'id'>
|
|
14
|
-
person
|
|
15
|
-
position
|
|
16
|
-
client
|
|
14
|
+
person: Pick<AdminPerson, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
|
|
15
|
+
position: Pick<Positions, 'id' | 'name'> & {
|
|
16
|
+
client: Pick<Clients, 'id' | 'name'>
|
|
17
17
|
}
|
|
18
18
|
candidacyRatingToTags?: {
|
|
19
19
|
tag: Pick<Tags, 'id' | 'name'>[]
|
|
@@ -3,35 +3,20 @@ import Referrals, {
|
|
|
3
3
|
ReferralsMutator
|
|
4
4
|
} from '../../../_schema/Referrals'
|
|
5
5
|
import { ListRequest, ListResponse } from '../../../utils'
|
|
6
|
+
import Person from '../../../_schema/Persons'
|
|
7
|
+
import Candidacy from '../../../_schema/Candidacies'
|
|
8
|
+
import Campaign from '../../../_schema/Campaigns'
|
|
9
|
+
import Position from '../../../_schema/Positions'
|
|
10
|
+
import Client from '../../../_schema/Clients'
|
|
6
11
|
|
|
7
12
|
export type AdminReferral = Referrals & {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
lastName: string
|
|
12
|
-
photoUrl: string
|
|
13
|
+
person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
|
|
14
|
+
candidacy: Pick<Candidacy, 'id' | 'currentStatus'> & {
|
|
15
|
+
person: Pick<Person, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
|
|
13
16
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
person?: {
|
|
18
|
-
id: string
|
|
19
|
-
firstName: string
|
|
20
|
-
lastName: string
|
|
21
|
-
photoUrl: string
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
campaign?: {
|
|
25
|
-
id: string
|
|
26
|
-
name: string
|
|
27
|
-
}
|
|
28
|
-
position?: {
|
|
29
|
-
id: string
|
|
30
|
-
name: string
|
|
31
|
-
client?: {
|
|
32
|
-
id: string
|
|
33
|
-
name: string
|
|
34
|
-
}
|
|
17
|
+
campaign?: Pick<Campaign, 'id' | 'name'>
|
|
18
|
+
position: Pick<Position, 'id' | 'name'> & {
|
|
19
|
+
client: Pick<Client, 'id' | 'name'>
|
|
35
20
|
}
|
|
36
21
|
}
|
|
37
22
|
type AdminPersonInitializer = ReferralsInitializer
|