@the-inkwell/shared 0.1.113 → 0.1.115
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,7 +1,12 @@
|
|
|
1
|
-
import Campaigns
|
|
1
|
+
import Campaigns, {
|
|
2
|
+
CampaignsInitializer,
|
|
3
|
+
CampaignsMutator
|
|
4
|
+
} from '../../../_schema/Campaigns'
|
|
2
5
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
3
6
|
|
|
4
7
|
export type AdminCampaign = Campaigns
|
|
8
|
+
export type AdminCampaignInitializer = CampaignsInitializer
|
|
9
|
+
export type AdminCampaignMutator = CampaignsMutator
|
|
5
10
|
|
|
6
11
|
// detail
|
|
7
12
|
|
|
@@ -13,6 +18,10 @@ export type AdminCampaignResponse = AdminCampaign
|
|
|
13
18
|
export type AdminCampaignListInput = ListRequest
|
|
14
19
|
export type AdminCampaignListResponse = ListResponse<AdminCampaign>
|
|
15
20
|
|
|
21
|
+
// create
|
|
22
|
+
|
|
23
|
+
export type AdminCampaignCreateParams = AdminCampaignInitializer
|
|
24
|
+
|
|
16
25
|
// delete
|
|
17
26
|
|
|
18
27
|
export type AdminCampaignDeleteParams = Pick<AdminCampaign, 'id'>
|
|
@@ -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<
|
|
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
|
|