gatsby-source-notion-churnotion 1.0.89 → 1.0.90
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/dist/api/getBooks.js
CHANGED
@@ -41,6 +41,7 @@ const getBooks = async ({ bookDatabaseId, reporter, getCache, createNode, create
|
|
41
41
|
bookCategoryMap_1.default.get(bookCategoryId).push(nodeId);
|
42
42
|
}
|
43
43
|
const bookImage = page.properties?.bookImage?.files?.[0]?.file.url;
|
44
|
+
const description = page.properties?.description?.rich_text?.[0]?.plain_text;
|
44
45
|
const bookImageNode = await (0, gatsby_source_filesystem_1.createRemoteFileNode)({
|
45
46
|
url: bookImage,
|
46
47
|
parentNodeId: page.id,
|
@@ -66,6 +67,7 @@ const getBooks = async ({ bookDatabaseId, reporter, getCache, createNode, create
|
|
66
67
|
url: `${constants_1.COMMON_URI}/${constants_1.BOOK_URI}/${slug}`,
|
67
68
|
book_category: book_category,
|
68
69
|
book_image: bookImageNode.id,
|
70
|
+
description: description,
|
69
71
|
};
|
70
72
|
reporter.info(`[DEBUG] Book ${bookNode.book_name} has book_category: ${bookNode.book_category}`);
|
71
73
|
createNode(bookNode);
|
@@ -54,6 +54,7 @@ const createSchemaCustomization = ({ actions }) => {
|
|
54
54
|
url: String!
|
55
55
|
book_category: ${constants_1.NODE_TYPE.Category} @link(by: "id", from: "book_category")
|
56
56
|
book_image: File @link(by: "id", from: "book_image")
|
57
|
+
description: String!
|
57
58
|
}
|
58
59
|
|
59
60
|
type ${constants_1.NODE_TYPE.Metadata} implements Node {
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "gatsby-source-notion-churnotion",
|
3
3
|
"description": "Gatsby plugin that can connect with One Notion Database RECURSIVELY using official API",
|
4
|
-
"version": "1.0.
|
4
|
+
"version": "1.0.90",
|
5
5
|
"skipLibCheck": true,
|
6
6
|
"license": "0BSD",
|
7
7
|
"main": "./dist/gatsby-node.js",
|