@the-inkwell/shared 0.1.123 → 0.1.125

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.123",
3
+ "version": "0.1.125",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",
@@ -0,0 +1,40 @@
1
+ import WebsiteStaticPages, {
2
+ WebsiteStaticPagesMutator
3
+ } from '../../../_schema/WebsiteStaticPages'
4
+ import { ListResponse } from '../../../utils'
5
+
6
+ export type AdminWebsiteMeta = {
7
+ meta: {
8
+ title: string
9
+ description: string
10
+ keywords: string
11
+ }
12
+ }
13
+
14
+ export type AdminWebsiteStaticPage = WebsiteStaticPages & AdminWebsiteMeta
15
+ export type AdminWebsiteStaticPageMutator = WebsiteStaticPagesMutator
16
+
17
+ // detail
18
+
19
+ export type AdminWebsiteStaticPageParams = Pick<AdminWebsiteStaticPage, 'slug'>
20
+ export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
21
+
22
+ // list
23
+
24
+ export type AdminWebsiteStaticPageList = ListResponse<AdminWebsiteStaticPage>
25
+ export type AdminWebsiteStaticPageListInput = Pick<
26
+ AdminWebsiteStaticPage,
27
+ 'slug'
28
+ >
29
+ export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
30
+
31
+ // update
32
+
33
+ export type AdminWebsiteStaticPageUpdateInput = Pick<
34
+ AdminWebsiteStaticPageMutator,
35
+ 'content' | 'meta'
36
+ >
37
+ export type AdminWebsiteStaticPageUpdateParams = Pick<
38
+ AdminWebsiteStaticPage,
39
+ 'slug'
40
+ >
@@ -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,39 +1 @@
1
- import type WebsiteStaticPage from '../../../_schema/WebsiteStaticPages'
2
- import type { WebsiteStaticPagesMutator } from '../../../_schema/WebsiteStaticPages'
3
- import { type ListResponse } from '../../../utils'
4
-
5
- export type AdminWebsiteStaticPage = WebsiteStaticPage & {
6
- content?: {
7
- hero?: {
8
- categoryStatement?: string
9
- heading?: string
10
- body?: string
11
- }
12
- }
13
- meta?: {
14
- title?: string
15
- description?: string
16
- keywords?: string
17
- }
18
- }
19
- type AdminWebsiteStaticPageMutator = WebsiteStaticPagesMutator &
20
- AdminWebsiteStaticPage
21
-
22
- // detail
23
-
24
- export type AdminWebsiteStaticPageParams = Pick<WebsiteStaticPage, 'slug'>
25
- export type AdminWebsiteStaticPageResponse = AdminWebsiteStaticPage
26
-
27
- // list
28
-
29
- export type AdminWebsiteStaticPageList = ListResponse<WebsiteStaticPage>
30
- export type AdminWebsiteStaticPageListInput = Pick<WebsiteStaticPage, 'slug'>
31
- export type AdminWebsiteStaticPageListResponse = AdminWebsiteStaticPageList
32
-
33
- // update
34
-
35
- export type AdminWebsiteStaticPageUpdateInput = Pick<
36
- AdminWebsiteStaticPageMutator,
37
- 'content' | 'meta'
38
- >
39
- export type AdminWebsiteStaticPageUpdateParams = Pick<WebsiteStaticPage, 'slug'>
1
+ export * from './home'