@the-inkwell/shared 0.1.10 → 0.1.12

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.10",
3
+ "version": "0.1.12",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin)",
@@ -1,14 +1,20 @@
1
1
  import { ListResponse } from '../../shared'
2
2
 
3
+ // main model
4
+
3
5
  export type Person = any // TODO add this
4
6
 
7
+ // detail
8
+
5
9
  export type PersonResponse = Person
6
10
 
7
- export type PersonsSearchRequest = {
11
+ // list
12
+
13
+ export type PersonsListRequest = {
8
14
  take: number
9
15
  skip: number
10
16
  orderBy: any // TODO add this
11
17
  where: any // TODO add this
12
18
  }
13
19
 
14
- export type PersonsSearchResponse = ListResponse<Person>
20
+ export type PersonsListResponse = ListResponse<Person>
@@ -1,5 +1,7 @@
1
1
  import { ListResponse } from '../../shared'
2
2
 
3
+ // main model
4
+
3
5
  type AdminWebsiteStaticPage = {
4
6
  slug: string
5
7
  name: string
@@ -9,15 +11,26 @@ type AdminWebsiteStaticPage = {
9
11
  }
10
12
  }
11
13
 
14
+ // detail
15
+
12
16
  type AdminWebsiteStaticPageParams = Pick<AdminWebsiteStaticPage, 'slug'>
13
17
 
14
18
  export type AdminWebsiteStaticPageRequestParams = AdminWebsiteStaticPageParams
15
19
 
16
20
  export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
17
21
 
22
+ // list
23
+
24
+ type AdminWebsiteStaticPageListParams = Pick<AdminWebsiteStaticPage, 'slug'>
25
+
26
+ export type AdminWebsiteStaticPageListRequestParams =
27
+ AdminWebsiteStaticPageListParams
28
+
18
29
  export type AdminWebsiteStaticPageListResponse =
19
30
  ListResponse<AdminWebsiteStaticPage>
20
31
 
32
+ // update
33
+
21
34
  export type AdminWebsiteStaticPageUpdateRequestParams =
22
35
  AdminWebsiteStaticPageParams
23
36