@the-inkwell/shared 0.1.18 → 0.1.20

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.18",
3
+ "version": "0.1.20",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin)",
@@ -2,19 +2,31 @@ import { ListResponse } from '../../shared'
2
2
 
3
3
  // main model
4
4
 
5
- export type Person = any // TODO add this
5
+ export type AdminPerson = {
6
+ id: string
7
+ firstName: string | null
8
+ lastName: string | null
9
+ email: string
10
+ phone: string | null
11
+ linkedInUrl: string | null
12
+ createdAt: string
13
+ updatedAt: string
14
+ // TODO add this
15
+ // roles: AdminRole[]
16
+ // permissions: AdminPermission[]
17
+ } // TODO add this
6
18
 
7
19
  // detail
8
20
 
9
- export type PersonResponse = Person
21
+ export type AdminPersonResponse = AdminPerson
10
22
 
11
23
  // list
12
24
 
13
- export type PersonsListRequest = {
25
+ export type AdminPersonsListRequest = {
14
26
  take: number
15
27
  skip: number
16
28
  orderBy: any // TODO add this
17
29
  where: any // TODO add this
18
30
  }
19
31
 
20
- export type PersonsListResponse = ListResponse<Person>
32
+ export type AdminPersonsListResponse = ListResponse<AdminPerson>