@the-inkwell/shared 0.1.77 → 0.1.79
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/dist/src/types/models/admin/index.js +1 -0
- package/dist/src/types/models/admin/referrals/index.js +2 -0
- package/package.json +1 -1
- package/src/types/models/admin/candidacies/index.ts +7 -2
- package/src/types/models/admin/index.ts +1 -0
- package/src/types/models/admin/persons/index.ts +1 -1
- package/src/types/models/admin/referrals/index.ts +77 -0
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./candidacies"), exports);
|
|
18
18
|
__exportStar(require("./persons"), exports);
|
|
19
|
+
__exportStar(require("./referrals"), exports);
|
|
19
20
|
__exportStar(require("./website"), exports);
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import type Actions from '../../../_schema/Actions'
|
|
2
2
|
import type Candidacies from '../../../_schema/Candidacies'
|
|
3
3
|
import type CandidacyFeedback from '../../../_schema/CandidacyFeedback'
|
|
4
|
+
import Clients from '../../../_schema/Clients'
|
|
4
5
|
import type Notes from '../../../_schema/Notes'
|
|
5
|
-
import
|
|
6
|
+
import Positions from '../../../_schema/Positions'
|
|
6
7
|
import type Referrals from '../../../_schema/Referrals'
|
|
7
8
|
import type Tags from '../../../_schema/Tags'
|
|
8
9
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
10
|
+
import { AdminPerson } from '../persons'
|
|
9
11
|
|
|
10
12
|
export type AdminCandidacy = Candidacies & {
|
|
11
13
|
referral?: Pick<Referrals, 'id'>
|
|
12
|
-
person?: Pick<
|
|
14
|
+
person?: Pick<AdminPerson, 'id' | 'firstName' | 'lastName' | 'photoUrl'>
|
|
15
|
+
position?: Pick<Positions, 'id' | 'name'> & {
|
|
16
|
+
client?: Pick<Clients, 'id' | 'name'>
|
|
17
|
+
}
|
|
13
18
|
candidacyRatingToTags?: {
|
|
14
19
|
tag: Pick<Tags, 'id' | 'name'>[]
|
|
15
20
|
}[]
|
|
@@ -5,8 +5,8 @@ import type {
|
|
|
5
5
|
} from '../../../_schema/Persons'
|
|
6
6
|
import { type ListRequest, type ListResponse } from '../../../utils'
|
|
7
7
|
|
|
8
|
-
type AdminPersonMutator = PersonsMutator
|
|
9
8
|
type AdminPersonInitializer = PersonsInitializer
|
|
9
|
+
type AdminPersonMutator = PersonsMutator
|
|
10
10
|
export type AdminPerson = Persons
|
|
11
11
|
|
|
12
12
|
// detail
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import Referrals, {
|
|
2
|
+
ReferralsInitializer,
|
|
3
|
+
ReferralsMutator
|
|
4
|
+
} from '../../../_schema/Referrals'
|
|
5
|
+
import { ListRequest, ListResponse } from '../../../utils'
|
|
6
|
+
|
|
7
|
+
export type AdminReferral = Referrals & {
|
|
8
|
+
referrer?: {
|
|
9
|
+
id: string
|
|
10
|
+
firstName: string
|
|
11
|
+
lastName: string
|
|
12
|
+
photoUrl: string
|
|
13
|
+
}
|
|
14
|
+
candidacy?: {
|
|
15
|
+
id: string
|
|
16
|
+
status: string
|
|
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
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
type AdminPersonInitializer = ReferralsInitializer
|
|
38
|
+
type AdminReferralMutator = ReferralsMutator
|
|
39
|
+
|
|
40
|
+
// detail
|
|
41
|
+
|
|
42
|
+
export type AdminReferralQueryParams = Pick<AdminReferral, 'id'>
|
|
43
|
+
export type AdminReferralResponse = AdminReferral
|
|
44
|
+
|
|
45
|
+
// list
|
|
46
|
+
|
|
47
|
+
export type AdminReferralListInput = ListRequest
|
|
48
|
+
export type AdminReferralListResponse = ListResponse<AdminReferral>
|
|
49
|
+
|
|
50
|
+
// create
|
|
51
|
+
|
|
52
|
+
export type AdminReferralCreateInput = Pick<
|
|
53
|
+
AdminPersonInitializer,
|
|
54
|
+
| 'source'
|
|
55
|
+
| 'referrerId'
|
|
56
|
+
| 'candidacyId'
|
|
57
|
+
| 'campaignId'
|
|
58
|
+
| 'positionId'
|
|
59
|
+
| 'messageId'
|
|
60
|
+
>
|
|
61
|
+
export type AdminReferralCreateResponse = Pick<AdminReferral, 'id'>
|
|
62
|
+
|
|
63
|
+
// update
|
|
64
|
+
|
|
65
|
+
export type AdminReferralUpdateInput = Pick<
|
|
66
|
+
AdminReferralMutator,
|
|
67
|
+
| 'source'
|
|
68
|
+
| 'referrerId'
|
|
69
|
+
| 'candidacyId'
|
|
70
|
+
| 'campaignId'
|
|
71
|
+
| 'positionId'
|
|
72
|
+
| 'messageId'
|
|
73
|
+
>
|
|
74
|
+
|
|
75
|
+
// delete
|
|
76
|
+
|
|
77
|
+
export type AdminReferralDeleteQueryParams = Pick<AdminReferral, 'id'>
|