@the-inkwell/shared 0.1.106 → 0.1.107

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.106",
3
+ "version": "0.1.107",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -1,5 +1,9 @@
1
1
  import type Actions from '../../../_schema/Actions'
2
2
  import type Candidacies from '../../../_schema/Candidacies'
3
+ import {
4
+ CandidaciesInitializer,
5
+ CandidaciesMutator
6
+ } from '../../../_schema/Candidacies'
3
7
  import type CandidacyFeedback from '../../../_schema/CandidacyFeedback'
4
8
  import Clients from '../../../_schema/Clients'
5
9
  import type Notes from '../../../_schema/Notes'
@@ -15,13 +19,15 @@ export type AdminCandidacy = Candidacies & {
15
19
  position: Pick<Positions, 'id' | 'name'> & {
16
20
  client: Pick<Clients, 'id' | 'name'>
17
21
  }
18
- candidacyRatingToTags?: {
22
+ ratingTags?: {
19
23
  tag: Pick<Tags, 'id' | 'name'>[]
20
24
  }[]
21
25
  actions?: Pick<Actions, 'id' | 'name'>[]
22
26
  candidacyFeedbacks?: Pick<CandidacyFeedback, 'id' | 'content'>[]
23
27
  notes?: Pick<Notes, 'id' | 'content'>[]
24
28
  }
29
+ export type AdminCandidacyInitializer = CandidaciesInitializer
30
+ export type AdminCandidacyMutator = CandidaciesMutator
25
31
 
26
32
  // detail
27
33
 
@@ -32,3 +38,22 @@ export type AdminCandidacyResponse = AdminCandidacy
32
38
 
33
39
  export type AdminCandidacyListInput = ListRequest
34
40
  export type AdminCandidacyListResponse = ListResponse<AdminCandidacy>
41
+
42
+ // create
43
+
44
+ export type AdminCandidacyCreateInput = Pick<
45
+ AdminCandidacyInitializer,
46
+ 'personId' | 'positionId'
47
+ >
48
+ export type AdminCandidacyCreateResponse = Pick<AdminCandidacy, 'id'>
49
+
50
+ // update
51
+
52
+ export type AdminCandidacyUpdateInput = Pick<
53
+ AdminCandidacyMutator,
54
+ 'status' | 'rating' | 'source'
55
+ >
56
+
57
+ // delete
58
+
59
+ export type AdminCandidacyDeleteQueryParams = Pick<AdminCandidacy, 'id'>