@the-inkwell/shared 0.1.11 → 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.11",
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,18 +11,26 @@ type AdminWebsiteStaticPage = {
9
11
  }
10
12
  }
11
13
 
14
+ // detail
15
+
12
16
  type AdminWebsiteStaticPageParams = Pick<AdminWebsiteStaticPage, 'slug'>
13
17
 
18
+ export type AdminWebsiteStaticPageRequestParams = AdminWebsiteStaticPageParams
19
+
20
+ export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
21
+
22
+ // list
23
+
14
24
  type AdminWebsiteStaticPageListParams = Pick<AdminWebsiteStaticPage, 'slug'>
15
25
 
16
26
  export type AdminWebsiteStaticPageListRequestParams =
17
27
  AdminWebsiteStaticPageListParams
18
28
 
19
- export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
20
-
21
29
  export type AdminWebsiteStaticPageListResponse =
22
30
  ListResponse<AdminWebsiteStaticPage>
23
31
 
32
+ // update
33
+
24
34
  export type AdminWebsiteStaticPageUpdateRequestParams =
25
35
  AdminWebsiteStaticPageParams
26
36