@the-inkwell/shared 0.1.9 → 0.1.11
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 +1 -1
- package/package.json +1 -1
- package/src/types/admin/website/index.ts +18 -8
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +1,30 @@
|
|
|
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
|
+
type AdminWebsiteStaticPageListParams = Pick<AdminWebsiteStaticPage, 'slug'>
|
|
12
15
|
|
|
13
|
-
export type
|
|
14
|
-
|
|
15
|
-
|
|
16
|
+
export type AdminWebsiteStaticPageListRequestParams =
|
|
17
|
+
AdminWebsiteStaticPageListParams
|
|
18
|
+
|
|
19
|
+
export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
|
|
20
|
+
|
|
21
|
+
export type AdminWebsiteStaticPageListResponse =
|
|
22
|
+
ListResponse<AdminWebsiteStaticPage>
|
|
16
23
|
|
|
17
24
|
export type AdminWebsiteStaticPageUpdateRequestParams =
|
|
18
25
|
AdminWebsiteStaticPageParams
|
|
19
26
|
|
|
20
|
-
export type AdminWebsiteStaticPageUpdateRequest =
|
|
27
|
+
export type AdminWebsiteStaticPageUpdateRequest = Pick<
|
|
28
|
+
AdminWebsiteStaticPage,
|
|
29
|
+
'content'
|
|
30
|
+
>
|