@the-inkwell/shared 0.1.78 → 0.1.80
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/_schema/Referrals.ts +6 -0
- 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
|
@@ -29,6 +29,8 @@ export default interface Referrals {
|
|
|
29
29
|
updatedAt: Date;
|
|
30
30
|
|
|
31
31
|
messageId: string | null;
|
|
32
|
+
|
|
33
|
+
deletedAt: Date | null;
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
/** Represents the initializer for the table public.referrals */
|
|
@@ -54,6 +56,8 @@ export interface ReferralsInitializer {
|
|
|
54
56
|
updatedAt?: Date;
|
|
55
57
|
|
|
56
58
|
messageId?: string | null;
|
|
59
|
+
|
|
60
|
+
deletedAt?: Date | null;
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
/** Represents the mutator for the table public.referrals */
|
|
@@ -75,4 +79,6 @@ export interface ReferralsMutator {
|
|
|
75
79
|
updatedAt?: Date;
|
|
76
80
|
|
|
77
81
|
messageId?: string | null;
|
|
82
|
+
|
|
83
|
+
deletedAt?: Date | null;
|
|
78
84
|
}
|
|
@@ -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'>
|