@the-inkwell/shared 0.1.11 → 0.1.13
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,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
|
-
|
|
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
|
|
20
|
+
export type PersonsListResponse = ListResponse<Person>
|
|
@@ -1,30 +1,45 @@
|
|
|
1
1
|
import { ListResponse } from '../../shared'
|
|
2
2
|
|
|
3
|
+
// main model
|
|
4
|
+
|
|
3
5
|
type AdminWebsiteStaticPage = {
|
|
4
6
|
slug: string
|
|
5
7
|
name: string
|
|
6
8
|
path: string
|
|
9
|
+
meta?: {
|
|
10
|
+
title?: string
|
|
11
|
+
description?: string
|
|
12
|
+
keywords?: string
|
|
13
|
+
}
|
|
7
14
|
content: {
|
|
8
15
|
[key: string]: string
|
|
9
16
|
}
|
|
10
17
|
}
|
|
11
18
|
|
|
19
|
+
// detail
|
|
20
|
+
|
|
12
21
|
type AdminWebsiteStaticPageParams = Pick<AdminWebsiteStaticPage, 'slug'>
|
|
13
22
|
|
|
23
|
+
export type AdminWebsiteStaticPageRequestParams = AdminWebsiteStaticPageParams
|
|
24
|
+
|
|
25
|
+
export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
|
|
26
|
+
|
|
27
|
+
// list
|
|
28
|
+
|
|
14
29
|
type AdminWebsiteStaticPageListParams = Pick<AdminWebsiteStaticPage, 'slug'>
|
|
15
30
|
|
|
16
31
|
export type AdminWebsiteStaticPageListRequestParams =
|
|
17
32
|
AdminWebsiteStaticPageListParams
|
|
18
33
|
|
|
19
|
-
export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
|
|
20
|
-
|
|
21
34
|
export type AdminWebsiteStaticPageListResponse =
|
|
22
35
|
ListResponse<AdminWebsiteStaticPage>
|
|
23
36
|
|
|
37
|
+
// update
|
|
38
|
+
|
|
24
39
|
export type AdminWebsiteStaticPageUpdateRequestParams =
|
|
25
40
|
AdminWebsiteStaticPageParams
|
|
26
41
|
|
|
27
42
|
export type AdminWebsiteStaticPageUpdateRequest = Pick<
|
|
28
43
|
AdminWebsiteStaticPage,
|
|
29
|
-
'content'
|
|
44
|
+
'content' | 'meta'
|
|
30
45
|
>
|