@the-inkwell/shared 0.1.122 → 0.1.124

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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,17 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./home"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.1.122",
3
+ "version": "0.1.124",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -0,0 +1,38 @@
1
+ import WebsiteStaticPages, {
2
+ WebsiteStaticPagesMutator
3
+ } from '../../../_schema/WebsiteStaticPages'
4
+ import { ListResponse } from '../../../utils'
5
+
6
+ export type AdminWebsiteMeta = {
7
+ title: string
8
+ description: string
9
+ keywords: string
10
+ }
11
+
12
+ export type AdminWebsiteStaticPage = WebsiteStaticPages & AdminWebsiteMeta
13
+ export type AdminWebsiteStaticPageMutator = WebsiteStaticPagesMutator
14
+
15
+ // detail
16
+
17
+ export type AdminWebsiteStaticPageParams = Pick<AdminWebsiteStaticPage, 'slug'>
18
+ export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
19
+
20
+ // list
21
+
22
+ export type AdminWebsiteStaticPageList = ListResponse<AdminWebsiteStaticPage>
23
+ export type AdminWebsiteStaticPageListInput = Pick<
24
+ AdminWebsiteStaticPage,
25
+ 'slug'
26
+ >
27
+ export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
28
+
29
+ // update
30
+
31
+ export type AdminWebsiteStaticPageUpdateInput = Pick<
32
+ AdminWebsiteStaticPageMutator,
33
+ 'content' | 'meta'
34
+ >
35
+ export type AdminWebsiteStaticPageUpdateParams = Pick<
36
+ AdminWebsiteStaticPage,
37
+ 'slug'
38
+ >
@@ -0,0 +1,42 @@
1
+ import {
2
+ AdminWebsiteStaticPage,
3
+ AdminWebsiteStaticPageList,
4
+ AdminWebsiteStaticPageListInput,
5
+ AdminWebsiteStaticPageMutator,
6
+ AdminWebsiteStaticPageParams,
7
+ AdminWebsiteStaticPageResponse,
8
+ AdminWebsiteStaticPageUpdateParams
9
+ } from './_shared'
10
+
11
+ export type AdminWebsiteStaticPageHome = AdminWebsiteStaticPage & {
12
+ content: {
13
+ hero: {
14
+ categoryStatement: string
15
+ heading: string
16
+ body: string
17
+ }
18
+ }
19
+ }
20
+
21
+ type AdminWebsiteStaticPageHomeMutator = AdminWebsiteStaticPageMutator &
22
+ AdminWebsiteStaticPageHome
23
+
24
+ // detail
25
+
26
+ export type AdminWebsiteStaticPageHomeParams = AdminWebsiteStaticPageParams
27
+ export type AdminWebsiteStaticPageHomeResponse =
28
+ AdminWebsiteStaticPageResponse & AdminWebsiteStaticPageHome
29
+
30
+ // list
31
+
32
+ export type AdminWebsiteStaticPageHomeList = AdminWebsiteStaticPageList
33
+ export type AdminWebsiteStaticPageHomeListInput =
34
+ AdminWebsiteStaticPageListInput
35
+ export type AdminWebsiteStaticPageHomeListResponse = AdminWebsiteStaticPageList
36
+
37
+ // update
38
+
39
+ export type AdminWebsiteStaticPageHomeUpdateInput =
40
+ AdminWebsiteStaticPageHomeMutator & AdminWebsiteStaticPageHome
41
+ export type AdminWebsiteStaticPageHomeUpdateParams =
42
+ AdminWebsiteStaticPageUpdateParams
@@ -1,38 +1 @@
1
- import type WebsiteStaticPage from '../../../_schema/WebsiteStaticPages'
2
- import type { WebsiteStaticPagesMutator } from '../../../_schema/WebsiteStaticPages'
3
- import { type ListResponse } from '../../../utils'
4
-
5
- type AdminWebsiteStaticPageMutator = WebsiteStaticPagesMutator
6
- export type AdminWebsiteStaticPage = WebsiteStaticPage & {
7
- content: {
8
- hero: {
9
- categoryStatement: string
10
- heading: string
11
- body: string
12
- }
13
- }
14
- meta: {
15
- title: string
16
- description: string
17
- keywords: string
18
- }
19
- }
20
-
21
- // detail
22
-
23
- export type AdminWebsiteStaticPageParams = Pick<WebsiteStaticPage, 'slug'>
24
- export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
25
-
26
- // list
27
-
28
- export type AdminWebsiteStaticPageList = ListResponse<WebsiteStaticPage>
29
- export type AdminWebsiteStaticPageListInput = Pick<WebsiteStaticPage, 'slug'>
30
- export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
31
-
32
- // update
33
-
34
- export type AdminWebsiteStaticPageUpdateInput = Pick<
35
- AdminWebsiteStaticPageMutator,
36
- 'content' | 'meta'
37
- >
38
- export type AdminWebsiteStaticPageUpdateParams = Pick<WebsiteStaticPage, 'slug'>
1
+ export * from './home'