@the-inkwell/shared 0.1.29 → 0.1.30

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.
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ model Candidacy {
5
+ id String @id @default(uuid())
6
+
7
+ currentStatus CandidacyStatuses? @default(SUBMITTED)
8
+
9
+ rating Int?
10
+ ratingReason String?
11
+
12
+ source CandidacySources? @default(ADMIN)
13
+
14
+ person Person @relation(fields: [personId], references: [id])
15
+ personId String
16
+
17
+ position Position @relation(fields: [positionId], references: [id])
18
+ positionId String
19
+
20
+ referral Referral?
21
+
22
+ actions Action[]
23
+ feedbacks CandidacyFeedback[]
24
+ notes Note[]
25
+
26
+ deletedAt DateTime?
27
+ createdAt DateTime @default(now())
28
+ updatedAt DateTime @default(now())
29
+
30
+ @@unique([personId, positionId])
31
+ @@map("candidacies")
32
+ }
33
+ */
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./candidacies"), exports);
17
18
  __exportStar(require("./persons"), exports);
18
19
  __exportStar(require("./website"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.29",
3
+ "version": "0.1.30",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin)",
@@ -0,0 +1,60 @@
1
+ import { AdminPerson } from '../persons'
2
+
3
+ export type AdminCandidacy = {
4
+ id: string
5
+ currentStatus: any // TODO add this
6
+
7
+ rating: number | null
8
+ ratingTags: any
9
+ ratingNotes: string | null
10
+
11
+ source: any // TODO add this
12
+
13
+ personId: string
14
+ person: AdminPerson // TODO add this
15
+
16
+ positionId: string
17
+ position: any // TODO add this
18
+
19
+ referral: any // TODO add this
20
+
21
+ actions: any // TODO add this
22
+ feedbacks: any // TODO add this
23
+ notes: any // TODO add this
24
+
25
+ deletedAt: string | null
26
+ createdAt: string
27
+ updatedAt: string
28
+ }
29
+
30
+ /*
31
+ model Candidacy {
32
+ id String @id @default(uuid())
33
+
34
+ currentStatus CandidacyStatuses? @default(SUBMITTED)
35
+
36
+ rating Int?
37
+ ratingReason String?
38
+
39
+ source CandidacySources? @default(ADMIN)
40
+
41
+ person Person @relation(fields: [personId], references: [id])
42
+ personId String
43
+
44
+ position Position @relation(fields: [positionId], references: [id])
45
+ positionId String
46
+
47
+ referral Referral?
48
+
49
+ actions Action[]
50
+ feedbacks CandidacyFeedback[]
51
+ notes Note[]
52
+
53
+ deletedAt DateTime?
54
+ createdAt DateTime @default(now())
55
+ updatedAt DateTime @default(now())
56
+
57
+ @@unique([personId, positionId])
58
+ @@map("candidacies")
59
+ }
60
+ */
@@ -1,2 +1,3 @@
1
+ export * from './candidacies'
1
2
  export * from './persons'
2
3
  export * from './website'
@@ -1,4 +1,5 @@
1
1
  import { ListResponse } from '../../shared'
2
+ import { AdminCandidacy } from '../candidacies'
2
3
 
3
4
  // main model
4
5
 
@@ -52,7 +53,7 @@ export type AdminPerson = {
52
53
 
53
54
  actions: any // TODO add this
54
55
  admin: any // TODO add this
55
- candidacies: any // TODO add this
56
+ candidacies: AdminCandidacy[] | null
56
57
  clubs: any // TODO add this
57
58
  conversations: any // TODO add this
58
59
  enrichment: any // TODO add this