notion-client
Advanced tools
Comparing version 6.0.5 to 6.0.6
@@ -307,23 +307,24 @@ var __defProp = Object.defineProperty; | ||
async search(params, gotOptions) { | ||
const body = { | ||
type: "BlocksInAncestor", | ||
source: "quick_find_public", | ||
ancestorId: parsePageId(params.ancestorId), | ||
sort: "Relevance", | ||
limit: params.limit || 20, | ||
query: params.query, | ||
filters: __spreadValues({ | ||
isDeletedOnly: false, | ||
isNavigableOnly: false, | ||
excludeTemplates: true, | ||
requireEditPermissions: false, | ||
ancestors: [], | ||
createdBy: [], | ||
editedBy: [], | ||
lastEditedTime: {}, | ||
createdTime: {} | ||
}, params.filters) | ||
}; | ||
return this.fetch({ | ||
endpoint: "search", | ||
body: { | ||
type: "BlocksInAncestor", | ||
source: "quick_find_public", | ||
ancestorId: parsePageId(params.ancestorId), | ||
sort: "Relevance", | ||
limit: params.limit || 20, | ||
query: params.query, | ||
filters: __spreadValues({ | ||
isDeletedOnly: false, | ||
excludeTemplates: true, | ||
isNavigableOnly: true, | ||
requireEditPermissions: false, | ||
ancestors: [], | ||
createdBy: [], | ||
editedBy: [], | ||
lastEditedTime: {}, | ||
createdTime: {} | ||
}, params.filters) | ||
}, | ||
body, | ||
gotOptions | ||
@@ -330,0 +331,0 @@ }); |
{ | ||
"name": "notion-client", | ||
"version": "6.0.5", | ||
"version": "6.0.6", | ||
"type": "module", | ||
@@ -22,4 +22,4 @@ "description": "Robust TypeScript client for the unofficial Notion API.", | ||
"got": "^11.8.1", | ||
"notion-types": "^6.0.2", | ||
"notion-utils": "^6.0.5", | ||
"notion-types": "^6.0.6", | ||
"notion-utils": "^6.0.6", | ||
"p-map": "^5.3.0" | ||
@@ -38,3 +38,3 @@ }, | ||
}, | ||
"gitHead": "cb33f04921a868661eb1080cd64a561d0d45f780" | ||
"gitHead": "dca0609ca0f2e052e24250a77ded071764f9dada" | ||
} |
@@ -492,24 +492,26 @@ // import { promises as fs } from 'fs' | ||
) { | ||
const body = { | ||
type: 'BlocksInAncestor', | ||
source: 'quick_find_public', | ||
ancestorId: parsePageId(params.ancestorId), | ||
sort: 'Relevance', | ||
limit: params.limit || 20, | ||
query: params.query, | ||
filters: { | ||
isDeletedOnly: false, | ||
isNavigableOnly: false, | ||
excludeTemplates: true, | ||
requireEditPermissions: false, | ||
ancestors: [], | ||
createdBy: [], | ||
editedBy: [], | ||
lastEditedTime: {}, | ||
createdTime: {}, | ||
...params.filters | ||
} | ||
} | ||
return this.fetch<notion.SearchResults>({ | ||
endpoint: 'search', | ||
body: { | ||
type: 'BlocksInAncestor', | ||
source: 'quick_find_public', | ||
ancestorId: parsePageId(params.ancestorId), | ||
sort: 'Relevance', | ||
limit: params.limit || 20, | ||
query: params.query, | ||
filters: { | ||
isDeletedOnly: false, | ||
excludeTemplates: true, | ||
isNavigableOnly: true, | ||
requireEditPermissions: false, | ||
ancestors: [], | ||
createdBy: [], | ||
editedBy: [], | ||
lastEditedTime: {}, | ||
createdTime: {}, | ||
...params.filters | ||
} | ||
}, | ||
body, | ||
gotOptions | ||
@@ -516,0 +518,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11172
420239
Updatednotion-types@^6.0.6
Updatednotion-utils@^6.0.6