@the-inkwell/shared 0.1.54 → 0.1.56

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.
@@ -1,33 +1,2 @@
1
1
  "use strict";
2
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
- */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.54",
3
+ "version": "0.1.56",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin)",
@@ -1,4 +1,4 @@
1
- import { type ListResponse } from '../../shared'
1
+ import { ListRequest, type ListResponse } from '../../shared'
2
2
  import { type AdminPerson } from '../persons'
3
3
 
4
4
  export type AdminCandidacy = {
@@ -23,43 +23,11 @@ export type AdminCandidacy = {
23
23
  feedbacks?: any // TODO add this
24
24
  notes?: any // TODO add this
25
25
 
26
- deletedAt: string | null
27
- createdAt: string
28
- updatedAt: string
26
+ deletedAt: Date | null
27
+ createdAt: Date
28
+ updatedAt: Date
29
29
  }
30
30
 
31
- export type AdminCandidacyListRequest = AdminCandidacy
31
+ export type AdminCandidacyListRequest = ListRequest
32
32
 
33
33
  export type AdminCandidacyListResponse = ListResponse<AdminCandidacy>
34
-
35
- /*
36
- model Candidacy {
37
- id String @id @default(uuid())
38
-
39
- currentStatus CandidacyStatuses? @default(SUBMITTED)
40
-
41
- rating Int?
42
- ratingReason String?
43
-
44
- source CandidacySources? @default(ADMIN)
45
-
46
- person Person @relation(fields: [personId], references: [id])
47
- personId String
48
-
49
- position Position @relation(fields: [positionId], references: [id])
50
- positionId String
51
-
52
- referral Referral?
53
-
54
- actions Action[]
55
- feedbacks CandidacyFeedback[]
56
- notes Note[]
57
-
58
- deletedAt DateTime?
59
- createdAt DateTime @default(now())
60
- updatedAt DateTime @default(now())
61
-
62
- @@unique([personId, positionId])
63
- @@map("candidacies")
64
- }
65
- */