@the-inkwell/shared 0.1.28 → 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.28",
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,22 +1,77 @@
1
1
  import { ListResponse } from '../../shared'
2
+ import { AdminCandidacy } from '../candidacies'
2
3
 
3
4
  // main model
4
5
 
5
6
  export type AdminPerson = {
6
7
  id: string
8
+ email: string | null
9
+ emailVerified: boolean
7
10
  firstName: string | null
8
11
  lastName: string | null
9
- email: string
10
- phone: string | null
11
12
  linkedInUrl: string | null
13
+ phone: string | null
14
+ phoneVerified: boolean | null
15
+ emailOptOut: boolean
16
+ smsOptOut: boolean
17
+ resumeUrl: string | null
12
18
  photoUrl: string | null
13
- createdAt: Date
14
- updatedAt: Date
15
- source: 'ADMIN' | 'WEBSITE' | null
16
- // TODO add this
17
- // roles: AdminRole[]
18
- // permissions: AdminPermission[]
19
- } // TODO add this
19
+ lat: number | null
20
+ lon: number | null
21
+ city: string | null
22
+ state: string | null
23
+ postalCode: string | null
24
+ country: string | null
25
+ additionalEmails: string[] | null
26
+ additionalPhones: string[] | null
27
+ source: any // TODO add this
28
+ website: string | null
29
+ currentSalary: number | null
30
+ expectedSalary: number | null
31
+ currentEmployer: string | null
32
+ currentTitle: string | null
33
+ careerLevel: any // TODO add this
34
+ certifications: string[] | null
35
+ openToRelocate: boolean | null
36
+ highestDegreeObtained: any // TODO add this
37
+ undergraduateInstitution: string | null
38
+ typeOfUndergraduateDegree: string | null
39
+ graduateInstitution: string | null
40
+ typeOfGraduateDegree: string | null
41
+ gender: any // TODO add this
42
+ howDidYouHearAboutUs: string | null
43
+
44
+ sourcePersonId: string | null
45
+ sourcePerson: AdminPerson | null
46
+ sourcedPersons: AdminPerson[] | null
47
+
48
+ bestiedByPersons: AdminPerson[] | null
49
+ bestPersons: AdminPerson[]
50
+
51
+ clientId: string | null
52
+ client: any // TODO add this
53
+
54
+ actions: any // TODO add this
55
+ admin: any // TODO add this
56
+ candidacies: AdminCandidacy[] | null
57
+ clubs: any // TODO add this
58
+ conversations: any // TODO add this
59
+ enrichment: any // TODO add this
60
+ messages: any // TODO add this
61
+ networks: any // TODO add this
62
+ notes: any // TODO add this
63
+ referrals: any // TODO add this
64
+ skills: any // TODO add this
65
+ tags: any // TODO add this
66
+
67
+ deactivatedAt: string | null
68
+ lastSignedInAt: string | null
69
+ signInCount: number
70
+
71
+ deletedAt: string | null
72
+ createdAt: string
73
+ updatedAt: string
74
+ }
20
75
 
21
76
  // detail
22
77