@the-inkwell/shared 0.1.8 → 0.1.10
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/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { ListResponse } from '../../shared'
|
|
2
|
+
|
|
3
|
+
export type Person = any // TODO add this
|
|
4
|
+
|
|
5
|
+
export type PersonResponse = Person
|
|
6
|
+
|
|
1
7
|
export type PersonsSearchRequest = {
|
|
2
8
|
take: number
|
|
3
9
|
skip: number
|
|
@@ -5,4 +11,4 @@ export type PersonsSearchRequest = {
|
|
|
5
11
|
where: any // TODO add this
|
|
6
12
|
}
|
|
7
13
|
|
|
8
|
-
export type PersonsSearchResponse =
|
|
14
|
+
export type PersonsSearchResponse = ListResponse<Person>
|
|
@@ -1,20 +1,27 @@
|
|
|
1
|
+
import { ListResponse } from '../../shared'
|
|
2
|
+
|
|
1
3
|
type AdminWebsiteStaticPage = {
|
|
4
|
+
slug: string
|
|
5
|
+
name: string
|
|
6
|
+
path: string
|
|
2
7
|
content: {
|
|
3
8
|
[key: string]: string
|
|
4
9
|
}
|
|
5
10
|
}
|
|
6
11
|
|
|
7
|
-
type AdminWebsiteStaticPageParams =
|
|
8
|
-
slug: string
|
|
9
|
-
}
|
|
12
|
+
type AdminWebsiteStaticPageParams = Pick<AdminWebsiteStaticPage, 'slug'>
|
|
10
13
|
|
|
11
14
|
export type AdminWebsiteStaticPageRequestParams = AdminWebsiteStaticPageParams
|
|
12
15
|
|
|
13
|
-
export type AdminWebsiteStaticPageResponse =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
|
|
17
|
+
|
|
18
|
+
export type AdminWebsiteStaticPageListResponse =
|
|
19
|
+
ListResponse<AdminWebsiteStaticPage>
|
|
16
20
|
|
|
17
21
|
export type AdminWebsiteStaticPageUpdateRequestParams =
|
|
18
22
|
AdminWebsiteStaticPageParams
|
|
19
23
|
|
|
20
|
-
export type AdminWebsiteStaticPageUpdateRequest =
|
|
24
|
+
export type AdminWebsiteStaticPageUpdateRequest = Pick<
|
|
25
|
+
AdminWebsiteStaticPage,
|
|
26
|
+
'content'
|
|
27
|
+
>
|