@keystrokehq/notion 0.1.2 → 0.1.3
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/dist/actions/add-multiple-page-content.cjs +5 -5
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +18 -16
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +18 -16
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +5 -5
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +60 -60
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +167 -149
- package/dist/actions/append-code-blocks.d.mts +167 -149
- package/dist/actions/append-code-blocks.mjs +60 -60
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +51 -51
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +151 -141
- package/dist/actions/append-layout-blocks.d.mts +151 -141
- package/dist/actions/append-layout-blocks.mjs +51 -51
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +85 -85
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +217 -174
- package/dist/actions/append-media-blocks.d.mts +217 -174
- package/dist/actions/append-media-blocks.mjs +85 -85
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +47 -47
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +143 -137
- package/dist/actions/append-table-blocks.d.mts +143 -137
- package/dist/actions/append-table-blocks.mjs +47 -47
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +61 -61
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +169 -150
- package/dist/actions/append-task-blocks.d.mts +169 -150
- package/dist/actions/append-task-blocks.mjs +61 -61
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +78 -78
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +203 -167
- package/dist/actions/append-text-blocks.d.mts +203 -167
- package/dist/actions/append-text-blocks.mjs +78 -78
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +17 -17
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +20 -20
- package/dist/actions/archive-notion-page.d.mts +20 -20
- package/dist/actions/archive-notion-page.mjs +17 -17
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.d.cts +9 -9
- package/dist/actions/create-comment.d.mts +9 -9
- package/dist/actions/create-database.cjs +15 -15
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +26 -25
- package/dist/actions/create-database.d.mts +26 -25
- package/dist/actions/create-database.mjs +15 -15
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +1 -1
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +1 -1
- package/dist/actions/create-file-upload.d.mts +1 -1
- package/dist/actions/create-file-upload.mjs +1 -1
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +14 -14
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +18 -18
- package/dist/actions/create-notion-page.d.mts +18 -18
- package/dist/actions/create-notion-page.mjs +14 -14
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +46 -46
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +338 -338
- package/dist/actions/delete-block.d.mts +338 -338
- package/dist/actions/delete-block.mjs +46 -46
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +20 -20
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +24 -24
- package/dist/actions/duplicate-page.d.mts +24 -24
- package/dist/actions/duplicate-page.mjs +20 -20
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +58 -58
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +4 -4
- package/dist/actions/fetch-all-block-contents.d.mts +4 -4
- package/dist/actions/fetch-all-block-contents.mjs +58 -58
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +49 -49
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +172 -172
- package/dist/actions/fetch-block-contents.d.mts +172 -172
- package/dist/actions/fetch-block-contents.mjs +49 -49
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +43 -43
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +296 -296
- package/dist/actions/fetch-block-metadata.d.mts +296 -296
- package/dist/actions/fetch-block-metadata.mjs +43 -43
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +24 -24
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +33 -33
- package/dist/actions/fetch-comments.d.mts +33 -33
- package/dist/actions/fetch-comments.mjs +24 -24
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +33 -33
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +131 -131
- package/dist/actions/fetch-data.d.mts +131 -131
- package/dist/actions/fetch-data.mjs +33 -33
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +13 -13
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +18 -18
- package/dist/actions/fetch-database.d.mts +18 -18
- package/dist/actions/fetch-database.mjs +13 -13
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +23 -23
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +40 -40
- package/dist/actions/fetch-row.d.mts +40 -40
- package/dist/actions/fetch-row.mjs +23 -23
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +6 -6
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +8 -8
- package/dist/actions/get-about-user.d.mts +8 -8
- package/dist/actions/get-about-user.mjs +6 -6
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +1 -1
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +1 -1
- package/dist/actions/get-page-markdown.d.mts +1 -1
- package/dist/actions/get-page-markdown.mjs +1 -1
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +22 -22
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +40 -38
- package/dist/actions/insert-row-database.d.mts +40 -38
- package/dist/actions/insert-row-database.mjs +22 -22
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -1
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -1
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +2 -2
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +2 -2
- package/dist/actions/list-data-source-templates.d.mts +2 -2
- package/dist/actions/list-data-source-templates.mjs +2 -2
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +2 -2
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +2 -2
- package/dist/actions/list-file-uploads.d.mts +2 -2
- package/dist/actions/list-file-uploads.mjs +2 -2
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +8 -8
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +11 -11
- package/dist/actions/list-users.d.mts +11 -11
- package/dist/actions/list-users.mjs +8 -8
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +18 -18
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +23 -21
- package/dist/actions/move-page.d.mts +23 -21
- package/dist/actions/move-page.mjs +18 -18
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +18 -18
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +34 -32
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +34 -32
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +18 -18
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +25 -25
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +50 -48
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +50 -48
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +25 -25
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +24 -24
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +49 -48
- package/dist/actions/query-database.d.mts +49 -48
- package/dist/actions/query-database.mjs +24 -24
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +130 -130
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +261 -131
- package/dist/actions/replace-page-content.d.mts +261 -131
- package/dist/actions/replace-page-content.mjs +130 -130
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +25 -25
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +28 -28
- package/dist/actions/retrieve-database-property.d.mts +28 -28
- package/dist/actions/retrieve-database-property.mjs +25 -25
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +1 -1
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +1 -1
- package/dist/actions/retrieve-file-upload.mjs +1 -1
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +23 -23
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +38 -38
- package/dist/actions/retrieve-page.d.mts +38 -38
- package/dist/actions/retrieve-page.mjs +23 -23
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +34 -34
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +157 -157
- package/dist/actions/search-notion-page.d.mts +157 -157
- package/dist/actions/search-notion-page.mjs +34 -34
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +1 -1
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +1 -1
- package/dist/actions/send-file-upload.d.mts +1 -1
- package/dist/actions/send-file-upload.mjs +1 -1
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +47 -47
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +141 -141
- package/dist/actions/update-block.d.mts +141 -141
- package/dist/actions/update-block.mjs +47 -47
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +16 -16
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +23 -23
- package/dist/actions/update-page.d.mts +23 -23
- package/dist/actions/update-page.mjs +16 -16
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +21 -21
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +29 -28
- package/dist/actions/update-row-database.d.mts +29 -28
- package/dist/actions/update-row-database.mjs +21 -21
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +8 -8
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +12 -11
- package/dist/actions/update-schema-database.d.mts +12 -11
- package/dist/actions/update-schema-database.mjs +8 -8
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +28 -28
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +54 -30
- package/dist/actions/upsert-row-database.d.mts +54 -30
- package/dist/actions/upsert-row-database.mjs +28 -28
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,10 +5,10 @@ const NotionQueryDatabaseWithFilterInput = zod.z.object({
|
|
|
5
5
|
sorts: zod.z.array(zod.z.union([zod.z.object({
|
|
6
6
|
property: zod.z.string().describe("Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead."),
|
|
7
7
|
direction: zod.z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending")
|
|
8
|
-
}).describe("Sort by a database property name or ID (NOT for system timestamps)."), zod.z.object({
|
|
8
|
+
}).passthrough().describe("Sort by a database property name or ID (NOT for system timestamps)."), zod.z.object({
|
|
9
9
|
direction: zod.z.enum(["ascending", "descending"]).describe("Sort direction: ascending or descending"),
|
|
10
10
|
timestamp: zod.z.enum(["created_time", "last_edited_time"]).describe("System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.")
|
|
11
|
-
}).describe("Sort by a system timestamp field (created or last edited time).")])).describe("List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.").optional(),
|
|
11
|
+
}).passthrough().describe("Sort by a system timestamp field (created or last edited time).")])).describe("List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.").optional(),
|
|
12
12
|
filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\"and\": [{\"property\": \"Name\", \"title\": {...}}, {\"property\": \"Description\", \"rich_text\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\"created_time\": {\"on_or_after\": \"2024-01-01\"}} - auto-transformed to correct API format. Filter structure for database properties: {\"property\": \"<property_name>\", \"<filter_type>\": {\"<condition>\": \"<value>\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\"rollup\": {\"contains\": \"value\"}}. Instead use one of: (1) {\"rollup\": {\"any\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\"rollup\": {\"every\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\"rollup\": {\"none\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\"rollup\": {\"number\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\"rollup\": {\"date\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\"and\": [<filter1>, <filter2>]} or {\"or\": [<filter1>, <filter2>]}.").optional(),
|
|
13
13
|
page_size: zod.z.number().int().describe("Maximum number of items to return (1–100). Defaults to 100 if omitted.").optional(),
|
|
14
14
|
database_id: zod.z.string().describe("The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration."),
|
|
@@ -18,62 +18,62 @@ const NotionQueryDatabaseWithFilterInput = zod.z.object({
|
|
|
18
18
|
const NotionQueryDatabaseWithFilter_EmojiIconSchema = zod.z.object({
|
|
19
19
|
type: zod.z.string().describe("Always set to 'emoji'.").nullable(),
|
|
20
20
|
emoji: zod.z.string().describe("The emoji character.").nullable()
|
|
21
|
-
}).describe("Emoji icon.");
|
|
22
|
-
const NotionQueryDatabaseWithFilter_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to the externally hosted file.").nullable() }).describe("External file reference.");
|
|
21
|
+
}).passthrough().describe("Emoji icon.");
|
|
22
|
+
const NotionQueryDatabaseWithFilter_ExternalFileSchema = zod.z.object({ url: zod.z.string().describe("HTTPS URL to the externally hosted file.").nullable() }).passthrough().describe("External file reference.");
|
|
23
23
|
const NotionQueryDatabaseWithFilter_ExternalFileIconSchema = zod.z.object({
|
|
24
24
|
type: zod.z.string().describe("Set to 'external' for externally hosted files.").nullable(),
|
|
25
25
|
external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable()
|
|
26
|
-
}).describe("External file icon.");
|
|
26
|
+
}).passthrough().describe("External file icon.");
|
|
27
27
|
const NotionQueryDatabaseWithFilter_NotionFileSchema = zod.z.object({
|
|
28
28
|
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
29
29
|
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
30
|
-
}).describe("Notion-hosted file reference.");
|
|
30
|
+
}).passthrough().describe("Notion-hosted file reference.");
|
|
31
31
|
const NotionQueryDatabaseWithFilter_NotionFileIconSchema = zod.z.object({
|
|
32
32
|
file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),
|
|
33
33
|
type: zod.z.string().describe("Set to 'file' for Notion-hosted files.").nullable()
|
|
34
|
-
}).describe("Notion-hosted file icon.");
|
|
34
|
+
}).passthrough().describe("Notion-hosted file icon.");
|
|
35
35
|
const NotionQueryDatabaseWithFilter_CustomEmojiSchema = zod.z.object({
|
|
36
36
|
id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
37
37
|
url: zod.z.string().describe("Public URL where the custom emoji image is hosted.").nullable(),
|
|
38
38
|
name: zod.z.string().describe("Name of the custom emoji.").nullable()
|
|
39
|
-
}).describe("Custom emoji details.");
|
|
39
|
+
}).passthrough().describe("Custom emoji details.");
|
|
40
40
|
const NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = zod.z.object({
|
|
41
41
|
type: zod.z.string().describe("Set to 'custom_emoji' for custom emojis.").nullable(),
|
|
42
42
|
custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable()
|
|
43
|
-
}).describe("Custom emoji icon.");
|
|
43
|
+
}).passthrough().describe("Custom emoji icon.");
|
|
44
44
|
const NotionQueryDatabaseWithFilter_ExternalCoverSchema = zod.z.object({
|
|
45
45
|
type: zod.z.string().describe("Set to 'external' for externally hosted files.").nullable(),
|
|
46
46
|
external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable()
|
|
47
|
-
}).describe("External cover image.");
|
|
47
|
+
}).passthrough().describe("External cover image.");
|
|
48
48
|
const NotionQueryDatabaseWithFilter_NotionFileCoverSchema = zod.z.object({
|
|
49
49
|
file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),
|
|
50
50
|
type: zod.z.string().describe("Set to 'file' for Notion-hosted files.").nullable()
|
|
51
|
-
}).describe("Notion-hosted cover image.");
|
|
51
|
+
}).passthrough().describe("Notion-hosted cover image.");
|
|
52
52
|
const NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = zod.z.object({
|
|
53
53
|
type: zod.z.string().describe("Set to 'database_id' for database parents.").nullable(),
|
|
54
54
|
database_id: zod.z.string().describe("UUIDv4 identifier of the parent database.").nullable()
|
|
55
|
-
}).describe("Database parent.");
|
|
55
|
+
}).passthrough().describe("Database parent.");
|
|
56
56
|
const NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = zod.z.object({
|
|
57
57
|
type: zod.z.string().describe("Set to 'data_source_id' for data source parents.").nullable(),
|
|
58
58
|
database_id: zod.z.string().describe("UUIDv4 identifier of the parent database (convenience field).").nullable(),
|
|
59
59
|
data_source_id: zod.z.string().describe("UUIDv4 identifier of the parent data source.").nullable()
|
|
60
|
-
}).describe("Data source parent.");
|
|
60
|
+
}).passthrough().describe("Data source parent.");
|
|
61
61
|
const NotionQueryDatabaseWithFilter_PageIdParentSchema = zod.z.object({
|
|
62
62
|
type: zod.z.string().describe("Set to 'page_id' for page parents.").nullable(),
|
|
63
63
|
page_id: zod.z.string().describe("UUIDv4 identifier of the parent page.").nullable()
|
|
64
|
-
}).describe("Page parent.");
|
|
64
|
+
}).passthrough().describe("Page parent.");
|
|
65
65
|
const NotionQueryDatabaseWithFilter_WorkspaceParentSchema = zod.z.object({
|
|
66
66
|
type: zod.z.string().describe("Set to 'workspace' for workspace parents.").nullable(),
|
|
67
67
|
workspace: zod.z.boolean().describe("Always set to true for workspace parents.").nullable()
|
|
68
|
-
}).describe("Workspace parent.");
|
|
68
|
+
}).passthrough().describe("Workspace parent.");
|
|
69
69
|
const NotionQueryDatabaseWithFilter_BlockIdParentSchema = zod.z.object({
|
|
70
70
|
type: zod.z.string().describe("Set to 'block_id' for block parents.").nullable(),
|
|
71
71
|
block_id: zod.z.string().describe("UUIDv4 identifier of the parent block.").nullable()
|
|
72
|
-
}).describe("Block parent.");
|
|
72
|
+
}).passthrough().describe("Block parent.");
|
|
73
73
|
const NotionQueryDatabaseWithFilter_PartialUserSchema = zod.z.object({
|
|
74
74
|
id: zod.z.string().describe("Unique identifier for the user (UUID format).").nullable(),
|
|
75
75
|
object: zod.z.string().describe("Always set to 'user'.").nullable()
|
|
76
|
-
}).describe("Partial user object representing a Notion user.");
|
|
76
|
+
}).passthrough().describe("Partial user object representing a Notion user.");
|
|
77
77
|
const NotionQueryDatabaseWithFilter_PageSchema = zod.z.object({
|
|
78
78
|
id: zod.z.string().describe("Unique identifier of the page (UUIDv4 format).").nullable(),
|
|
79
79
|
url: zod.z.string().describe("The Notion URL of the page.").nullable().optional(),
|
|
@@ -95,12 +95,12 @@ const NotionQueryDatabaseWithFilter_PageSchema = zod.z.object({
|
|
|
95
95
|
archived: zod.z.boolean().describe("Whether the page is archived.").nullable().optional(),
|
|
96
96
|
in_trash: zod.z.boolean().describe("Whether the page is in trash.").nullable().optional(),
|
|
97
97
|
created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),
|
|
98
|
-
properties: zod.z.
|
|
98
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.").nullable().optional(),
|
|
99
99
|
public_url: zod.z.string().describe("The public URL of the page if it has been published, otherwise null.").nullable().optional(),
|
|
100
100
|
created_time: zod.z.string().describe("ISO 8601 timestamp of when the page was created.").nullable().optional(),
|
|
101
101
|
last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),
|
|
102
102
|
last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the page was last edited.").nullable().optional()
|
|
103
|
-
}).describe("Notion page object.");
|
|
103
|
+
}).passthrough().describe("Notion page object.");
|
|
104
104
|
const NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = zod.z.object({
|
|
105
105
|
bold: zod.z.boolean().describe("Whether the text is bold.").nullable(),
|
|
106
106
|
code: zod.z.boolean().describe("Whether the text is formatted as code.").nullable(),
|
|
@@ -108,17 +108,17 @@ const NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = zod.z.object({
|
|
|
108
108
|
italic: zod.z.boolean().describe("Whether the text is italic.").nullable(),
|
|
109
109
|
underline: zod.z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
110
110
|
strikethrough: zod.z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
111
|
-
}).describe("Styling configuration for rich text.");
|
|
111
|
+
}).passthrough().describe("Styling configuration for rich text.");
|
|
112
112
|
const NotionQueryDatabaseWithFilter_RichTextSchema = zod.z.object({
|
|
113
113
|
href: zod.z.string().describe("URL for links or Notion mentions, null if not a link.").nullable().optional(),
|
|
114
114
|
type: zod.z.string().describe("Type of rich text: 'text', 'mention', or 'equation'.").nullable(),
|
|
115
115
|
plain_text: zod.z.string().describe("Unformatted text content.").nullable(),
|
|
116
116
|
annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable()
|
|
117
|
-
}).describe("Rich text object for Notion text content.");
|
|
117
|
+
}).passthrough().describe("Rich text object for Notion text content.");
|
|
118
118
|
const NotionQueryDatabaseWithFilter_DataSourceSchema = zod.z.object({
|
|
119
119
|
id: zod.z.string().describe("Unique identifier of the data source.").nullable(),
|
|
120
120
|
name: zod.z.string().describe("Name of the data source.").nullable()
|
|
121
|
-
}).describe("Data source in a database.");
|
|
121
|
+
}).passthrough().describe("Data source in a database.");
|
|
122
122
|
const NotionQueryDatabaseWithFilter_DatabaseSchema = zod.z.object({
|
|
123
123
|
id: zod.z.string().describe("Unique identifier of the database (UUID format).").nullable(),
|
|
124
124
|
url: zod.z.string().describe("The Notion URL of the database.").nullable(),
|
|
@@ -148,8 +148,8 @@ const NotionQueryDatabaseWithFilter_DatabaseSchema = zod.z.object({
|
|
|
148
148
|
data_sources: zod.z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe("List of child data sources in the database."),
|
|
149
149
|
last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),
|
|
150
150
|
last_edited_time: zod.z.string().describe("ISO 8601 timestamp of when the database was last edited.").nullable()
|
|
151
|
-
}).describe("Notion database object.");
|
|
152
|
-
const NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = zod.z.
|
|
151
|
+
}).passthrough().describe("Notion database object.");
|
|
152
|
+
const NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Type-specific pagination metadata for page_or_database list responses.\nFor database query responses, this is always an empty object per the Notion API spec.");
|
|
153
153
|
const NotionQueryDatabaseWithFilterOutput = zod.z.object({
|
|
154
154
|
type: zod.z.string().describe("Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.").nullable(),
|
|
155
155
|
object: zod.z.string().describe("Always set to 'list' for paginated responses.").nullable(),
|
|
@@ -158,7 +158,7 @@ const NotionQueryDatabaseWithFilterOutput = zod.z.object({
|
|
|
158
158
|
next_cursor: zod.z.string().describe("Pagination cursor for retrieving the next page of results. Only present when has_more is true. Pass this value as start_cursor in the next request.").nullable().optional(),
|
|
159
159
|
page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),
|
|
160
160
|
composio_execution_message: zod.z.string().describe("Message about any automatic conversions made during request processing.").nullable().optional()
|
|
161
|
-
}).describe("Response from querying a Notion database.");
|
|
161
|
+
}).passthrough().describe("Response from querying a Notion database.");
|
|
162
162
|
const notionQueryDatabaseWithFilter = require_action.action("NOTION_QUERY_DATABASE_WITH_FILTER", {
|
|
163
163
|
slug: "notion-query-database-with-filter",
|
|
164
164
|
name: "Query database with filter",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database-with-filter.cjs","names":["z","action"],"sources":["../../src/actions/query-database-with-filter.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDatabaseWithFilterInput = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead.\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).describe(\"Sort by a database property name or ID (NOT for system timestamps).\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.\"),\n}).describe(\"Sort by a system timestamp field (created or last edited time).\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\\\"and\\\": [{\\\"property\\\": \\\"Name\\\", \\\"title\\\": {...}}, {\\\"property\\\": \\\"Description\\\", \\\"rich_text\\\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\\\"created_time\\\": {\\\"on_or_after\\\": \\\"2024-01-01\\\"}} - auto-transformed to correct API format. Filter structure for database properties: {\\\"property\\\": \\\"<property_name>\\\", \\\"<filter_type>\\\": {\\\"<condition>\\\": \\\"<value>\\\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\\\"rollup\\\": {\\\"contains\\\": \\\"value\\\"}}. Instead use one of: (1) {\\\"rollup\\\": {\\\"any\\\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\\\"rollup\\\": {\\\"every\\\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\\\"rollup\\\": {\\\"none\\\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\\\"rollup\\\": {\\\"number\\\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\\\"rollup\\\": {\\\"date\\\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\\\"and\\\": [<filter1>, <filter2>]} or {\\\"or\\\": [<filter1>, <filter2>]}.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1–100). Defaults to 100 if omitted.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration.\"),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page. Use the exact cursor value returned by Notion.\").optional(),\n composio_execution_message: z.string().describe(\"Internal message about any automatic conversions made during execution.\").optional(),\n});\nconst NotionQueryDatabaseWithFilter_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always set to 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).describe(\"Emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileSchema = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileIconSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).describe(\"External file icon.\");\nconst NotionQueryDatabaseWithFilter_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file reference.\");\nconst NotionQueryDatabaseWithFilter_NotionFileIconSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).describe(\"Notion-hosted file icon.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL where the custom emoji image is hosted.\").nullable(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji details.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Set to 'custom_emoji' for custom emojis.\").nullable(),\n custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).describe(\"External cover image.\");\nconst NotionQueryDatabaseWithFilter_NotionFileCoverSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).describe(\"Notion-hosted cover image.\");\nconst NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'database_id' for database parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database.\").nullable(),\n}).describe(\"Database parent.\");\nconst NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'data_source_id' for data source parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (convenience field).\").nullable(),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source.\").nullable(),\n}).describe(\"Data source parent.\");\nconst NotionQueryDatabaseWithFilter_PageIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page.\").nullable(),\n}).describe(\"Page parent.\");\nconst NotionQueryDatabaseWithFilter_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Set to 'workspace' for workspace parents.\").nullable(),\n workspace: z.boolean().describe(\"Always set to true for workspace parents.\").nullable(),\n}).describe(\"Workspace parent.\");\nconst NotionQueryDatabaseWithFilter_BlockIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block.\").nullable(),\n}).describe(\"Block parent.\");\nconst NotionQueryDatabaseWithFilter_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always set to 'user'.\").nullable(),\n}).describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDatabaseWithFilter_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always set to 'page'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the page was last edited.\").nullable().optional(),\n}).describe(\"Notion page object.\");\nconst NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Text color, can be 'default', 'blue', 'green', 'red', or background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).describe(\"Styling configuration for rich text.\");\nconst NotionQueryDatabaseWithFilter_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, null if not a link.\").nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Unformatted text content.\").nullable(),\n annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable(),\n}).describe(\"Rich text object for Notion text content.\");\nconst NotionQueryDatabaseWithFilter_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier of the data source.\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).describe(\"Data source in a database.\");\nconst NotionQueryDatabaseWithFilter_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database (UUID format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database name as displayed in Notion, represented as an array of rich text objects.\"),\n object: z.string().describe(\"Always set to 'database'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline (true) or as a full page (false).\").nullable(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n public_url: z.string().describe(\"The public URL of the database if it has been published, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe(\"List of child data sources in the database.\"),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).describe(\"Notion database object.\");\nconst NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = z.object({}).describe(\"Type-specific pagination metadata for page_or_database list responses.\\nFor database query responses, this is always an empty object per the Notion API spec.\");\nexport const NotionQueryDatabaseWithFilterOutput = z.object({\n type: z.string().describe(\"Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.\").nullable(),\n object: z.string().describe(\"Always set to 'list' for paginated responses.\").nullable(),\n results: z.array(z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe(\"Array of page and/or database objects matching the query criteria.\"),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page. Returns false when the response includes the end of the list, otherwise true.\").nullable(),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Only present when has_more is true. Pass this value as start_cursor in the next request.\").nullable().optional(),\n page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),\n composio_execution_message: z.string().describe(\"Message about any automatic conversions made during request processing.\").nullable().optional(),\n}).describe(\"Response from querying a Notion database.\");\n\nexport const notionQueryDatabaseWithFilter = action(\"NOTION_QUERY_DATABASE_WITH_FILTER\", {\n slug: \"notion-query-database-with-filter\",\n name: \"Query database with filter\",\n description: \"Tool to query a Notion database with server-side filtering, sorting, and pagination. Use when you need to retrieve a subset of rows by property, date, status, or other conditions.\",\n input: NotionQueryDatabaseWithFilterInput,\n output: NotionQueryDatabaseWithFilterOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;EACjC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;EAC9K,WAAWA,IAAAA,EAAE,KAAK,CAAC,aAAa,YAAY,CAAC,CAAC,C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SAAS;CACtF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"query-database-with-filter.cjs","names":["z","action"],"sources":["../../src/actions/query-database-with-filter.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionQueryDatabaseWithFilterInput = z.object({\n sorts: z.array(z.union([z.object({\n property: z.string().describe(\"Name or ID of the database property to sort by. Do NOT use for system timestamps (created_time, last_edited_time) - use TimestampSort instead.\"),\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n}).passthrough().describe(\"Sort by a database property name or ID (NOT for system timestamps).\"), z.object({\n direction: z.enum([\"ascending\", \"descending\"]).describe(\"Sort direction: ascending or descending\"),\n timestamp: z.enum([\"created_time\", \"last_edited_time\"]).describe(\"System timestamp field to sort by. Use 'created_time' for page creation time or 'last_edited_time' for last modification time.\"),\n}).passthrough().describe(\"Sort by a system timestamp field (created or last edited time).\")])).describe(\"List of sort criteria in order of precedence. Use PropertySort for database properties (with property field) and TimestampSort for system timestamps (with timestamp='created_time' or 'last_edited_time'). IMPORTANT: To sort by page creation or last edited time, you MUST use the TimestampSort format with timestamp='created_time' or timestamp='last_edited_time', NOT property names like 'Created' or 'Last Edited'. Common timestamp field name variations (Created, creation time, Last Edited, etc.) will be automatically converted to the correct format.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"PREREQUISITE: Call NOTION_FETCH_DATABASE first to discover property names and types. Filter type keys MUST match the property's actual type in the schema. Each filter object MUST contain exactly ONE filter type key. For multiple conditions, use compound filters: {\\\"and\\\": [{\\\"property\\\": \\\"Name\\\", \\\"title\\\": {...}}, {\\\"property\\\": \\\"Description\\\", \\\"rich_text\\\": {...}}]}. 'title' IS A RESERVED PROPERTY NAME: 'title' always refers to the database's built-in primary title column (type 'title', NOT 'select' or 'rich_text'). Even custom properties named 'title' are treated as the built-in title column. FILTER TYPE MUST MATCH SCHEMA TYPE: Property names are NOT reliable indicators of type. A property named 'Status' could be type 'select' in one database but type 'status' in another. 'select' is for dropdowns; 'status' is ONLY for Notion's built-in Status property with workflow groups. SELECT/STATUS/MULTI_SELECT VALUES ARE CASE-SENSITIVE: Option names must match EXACTLY as defined in the database schema, including capitalization and emoji prefixes (e.g., 'Done' not 'done', '✅ Done' not 'Done'). Common mistake: using 'done' when the actual option is 'Done'. Check the database schema for exact option names. Valid filter type keys: title, rich_text, number, checkbox, select, multi_select, status, date, people, files, url, email, phone_number, relation, created_by, created_time, last_edited_by, last_edited_time, formula, unique_id, rollup, verification, timestamp. FORMULA FILTERS: Structure: {'property': '<name>', 'formula': {<result_type>: {<condition>: <value>}}}. Result types: 'string' (rich_text conditions), 'number' (numeric conditions), 'date' (date conditions), 'checkbox' (boolean conditions). The result type MUST match the formula's actual output type. If the formula property value shows type 'boolean', use 'checkbox' in the filter (API naming mismatch). Some complex formulas are unfilterable ('Unable to filter based on a formula of unknown type') - use client-side filtering instead. NOTE: 'text' is NOT valid - use 'rich_text' for text properties or 'title' for title properties. SYSTEM TIMESTAMP FILTERS: Use simplified format: {\\\"created_time\\\": {\\\"on_or_after\\\": \\\"2024-01-01\\\"}} - auto-transformed to correct API format. Filter structure for database properties: {\\\"property\\\": \\\"<property_name>\\\", \\\"<filter_type>\\\": {\\\"<condition>\\\": \\\"<value>\\\"}}. Common conditions by type: title/rich_text: equals, contains, starts_with, ends_with, is_empty, is_not_empty; select/status: equals, does_not_equal, is_empty, is_not_empty; number: equals, does_not_equal, greater_than, less_than, greater_than_or_equal_to, less_than_or_equal_to, is_empty, is_not_empty; checkbox: equals (true/false); date: equals, before, after, on_or_before, on_or_after, is_empty, is_not_empty, past_week, past_month, past_year, next_week, next_month, next_year; relation: contains, does_not_contain (both require a valid page UUID), is_empty, is_not_empty. ROLLUP FILTERS: Require a nested aggregation type wrapper. Do NOT use flat filters like {\\\"rollup\\\": {\\\"contains\\\": \\\"value\\\"}}. Instead use one of: (1) {\\\"rollup\\\": {\\\"any\\\": {<condition>}}} - matches if ANY related item satisfies condition; (2) {\\\"rollup\\\": {\\\"every\\\": {<condition>}}} - matches if ALL related items satisfy condition; (3) {\\\"rollup\\\": {\\\"none\\\": {<condition>}}} - matches if NO related items satisfy condition; (4) {\\\"rollup\\\": {\\\"number\\\": {<number_condition>}}} - for number rollup aggregations (count, sum, avg, etc.); (5) {\\\"rollup\\\": {\\\"date\\\": {<date_condition>}}} - for date rollup aggregations (earliest, latest). Inside rollup.any/every/none, use the filter type matching the underlying property type. Compound filters use 'and' or 'or' arrays: {\\\"and\\\": [<filter1>, <filter2>]} or {\\\"or\\\": [<filter1>, <filter2>]}.\").optional(),\n page_size: z.number().int().describe(\"Maximum number of items to return (1–100). Defaults to 100 if omitted.\").optional(),\n database_id: z.string().describe(\"The UUID of the Notion database to query (32 character hex string, with hyphens or without). IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are different things. If you have a page URL/ID, that is NOT the same as the database ID - inline databases within pages have their own separate database IDs distinct from the parent page ID. Use NOTION_SEARCH_NOTION_PAGE or NOTION_FETCH_DATABASE to discover the correct database ID. The database must be shared with your integration.\"),\n start_cursor: z.string().describe(\"Cursor from a prior response's `next_cursor` for fetching the next page. Use the exact cursor value returned by Notion.\").optional(),\n composio_execution_message: z.string().describe(\"Internal message about any automatic conversions made during execution.\").optional(),\n});\nconst NotionQueryDatabaseWithFilter_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always set to 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough().describe(\"Emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileSchema = z.object({\n url: z.string().describe(\"HTTPS URL to the externally hosted file.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionQueryDatabaseWithFilter_ExternalFileIconSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).passthrough().describe(\"External file icon.\");\nconst NotionQueryDatabaseWithFilter_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file reference.\");\nconst NotionQueryDatabaseWithFilter_NotionFileIconSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).passthrough().describe(\"Notion-hosted file icon.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL where the custom emoji image is hosted.\").nullable(),\n name: z.string().describe(\"Name of the custom emoji.\").nullable(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionQueryDatabaseWithFilter_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Set to 'custom_emoji' for custom emojis.\").nullable(),\n custom_emoji: NotionQueryDatabaseWithFilter_CustomEmojiSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon.\");\nconst NotionQueryDatabaseWithFilter_ExternalCoverSchema = z.object({\n type: z.string().describe(\"Set to 'external' for externally hosted files.\").nullable(),\n external: NotionQueryDatabaseWithFilter_ExternalFileSchema.nullable(),\n}).passthrough().describe(\"External cover image.\");\nconst NotionQueryDatabaseWithFilter_NotionFileCoverSchema = z.object({\n file: NotionQueryDatabaseWithFilter_NotionFileSchema.nullable(),\n type: z.string().describe(\"Set to 'file' for Notion-hosted files.\").nullable(),\n}).passthrough().describe(\"Notion-hosted cover image.\");\nconst NotionQueryDatabaseWithFilter_DatabaseIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'database_id' for database parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database.\").nullable(),\n}).passthrough().describe(\"Database parent.\");\nconst NotionQueryDatabaseWithFilter_DataSourceIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'data_source_id' for data source parents.\").nullable(),\n database_id: z.string().describe(\"UUIDv4 identifier of the parent database (convenience field).\").nullable(),\n data_source_id: z.string().describe(\"UUIDv4 identifier of the parent data source.\").nullable(),\n}).passthrough().describe(\"Data source parent.\");\nconst NotionQueryDatabaseWithFilter_PageIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'page_id' for page parents.\").nullable(),\n page_id: z.string().describe(\"UUIDv4 identifier of the parent page.\").nullable(),\n}).passthrough().describe(\"Page parent.\");\nconst NotionQueryDatabaseWithFilter_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Set to 'workspace' for workspace parents.\").nullable(),\n workspace: z.boolean().describe(\"Always set to true for workspace parents.\").nullable(),\n}).passthrough().describe(\"Workspace parent.\");\nconst NotionQueryDatabaseWithFilter_BlockIdParentSchema = z.object({\n type: z.string().describe(\"Set to 'block_id' for block parents.\").nullable(),\n block_id: z.string().describe(\"UUIDv4 identifier of the parent block.\").nullable(),\n}).passthrough().describe(\"Block parent.\");\nconst NotionQueryDatabaseWithFilter_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID format).\").nullable(),\n object: z.string().describe(\"Always set to 'user'.\").nullable(),\n}).passthrough().describe(\"Partial user object representing a Notion user.\");\nconst NotionQueryDatabaseWithFilter_PageSchema = z.object({\n id: z.string().describe(\"Unique identifier of the page (UUIDv4 format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the page.\").nullable().optional(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n object: z.string().describe(\"Always set to 'page'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable().optional(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page, conforming to the parent database's property schema. Keys are property names, values are typed property value objects with 'id', 'type', and type-specific fields.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the page was created.\").nullable().optional(),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the page was last edited.\").nullable().optional(),\n}).passthrough().describe(\"Notion page object.\");\nconst NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Text color, can be 'default', 'blue', 'green', 'red', or background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling configuration for rich text.\");\nconst NotionQueryDatabaseWithFilter_RichTextSchema = z.object({\n href: z.string().describe(\"URL for links or Notion mentions, null if not a link.\").nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n plain_text: z.string().describe(\"Unformatted text content.\").nullable(),\n annotations: NotionQueryDatabaseWithFilter_RichTextAnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for Notion text content.\");\nconst NotionQueryDatabaseWithFilter_DataSourceSchema = z.object({\n id: z.string().describe(\"Unique identifier of the data source.\").nullable(),\n name: z.string().describe(\"Name of the data source.\").nullable(),\n}).passthrough().describe(\"Data source in a database.\");\nconst NotionQueryDatabaseWithFilter_DatabaseSchema = z.object({\n id: z.string().describe(\"Unique identifier of the database (UUID format).\").nullable(),\n url: z.string().describe(\"The Notion URL of the database.\").nullable(),\n icon: z.union([NotionQueryDatabaseWithFilter_EmojiIconSchema, NotionQueryDatabaseWithFilter_ExternalFileIconSchema, NotionQueryDatabaseWithFilter_NotionFileIconSchema, NotionQueryDatabaseWithFilter_CustomEmojiIconSchema]).nullable().optional(),\n cover: z.union([NotionQueryDatabaseWithFilter_ExternalCoverSchema, NotionQueryDatabaseWithFilter_NotionFileCoverSchema]).nullable().optional(),\n title: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database name as displayed in Notion, represented as an array of rich text objects.\"),\n object: z.string().describe(\"Always set to 'database'.\").nullable(),\n parent: z.union([NotionQueryDatabaseWithFilter_DatabaseIdParentSchema, NotionQueryDatabaseWithFilter_DataSourceIdParentSchema, NotionQueryDatabaseWithFilter_PageIdParentSchema, NotionQueryDatabaseWithFilter_WorkspaceParentSchema, NotionQueryDatabaseWithFilter_BlockIdParentSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is displayed inline (true) or as a full page (false).\").nullable(),\n created_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n public_url: z.string().describe(\"The public URL of the database if it has been published, otherwise null.\").nullable().optional(),\n description: z.array(NotionQueryDatabaseWithFilter_RichTextSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionQueryDatabaseWithFilter_DataSourceSchema).describe(\"List of child data sources in the database.\"),\n last_edited_by: NotionQueryDatabaseWithFilter_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough().describe(\"Notion database object.\");\nconst NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema = z.record(z.string(), z.unknown()).describe(\"Type-specific pagination metadata for page_or_database list responses.\\nFor database query responses, this is always an empty object per the Notion API spec.\");\nexport const NotionQueryDatabaseWithFilterOutput = z.object({\n type: z.string().describe(\"Specifies the type of objects in the results array. Set to 'page_or_database' for database query responses.\").nullable(),\n object: z.string().describe(\"Always set to 'list' for paginated responses.\").nullable(),\n results: z.array(z.union([NotionQueryDatabaseWithFilter_PageSchema, NotionQueryDatabaseWithFilter_DatabaseSchema])).describe(\"Array of page and/or database objects matching the query criteria.\"),\n has_more: z.boolean().describe(\"Whether there are more results available beyond the current page. Returns false when the response includes the end of the list, otherwise true.\").nullable(),\n next_cursor: z.string().describe(\"Pagination cursor for retrieving the next page of results. Only present when has_more is true. Pass this value as start_cursor in the next request.\").nullable().optional(),\n page_or_database: NotionQueryDatabaseWithFilter_PageOrDatabaseMetadataSchema.nullable(),\n composio_execution_message: z.string().describe(\"Message about any automatic conversions made during request processing.\").nullable().optional(),\n}).passthrough().describe(\"Response from querying a Notion database.\");\n\nexport const notionQueryDatabaseWithFilter = action(\"NOTION_QUERY_DATABASE_WITH_FILTER\", {\n slug: \"notion-query-database-with-filter\",\n name: \"Query database with filter\",\n description: \"Tool to query a Notion database with server-side filtering, sorting, and pagination. Use when you need to retrieve a subset of rows by property, date, status, or other conditions.\",\n input: NotionQueryDatabaseWithFilterInput,\n output: Notion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|
12
12
|
direction: z.ZodEnum<{
|
|
13
13
|
ascending: "ascending";
|
|
14
14
|
descending: "descending";
|
|
@@ -17,7 +17,7 @@ declare const NotionQueryDatabaseWithFilterInput: z.ZodObject<{
|
|
|
17
17
|
created_time: "created_time";
|
|
18
18
|
last_edited_time: "last_edited_time";
|
|
19
19
|
}>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>]>>>;
|
|
21
21
|
filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
22
22
|
page_size: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
database_id: z.ZodString;
|
|
@@ -33,106 +33,106 @@ declare const NotionQueryDatabaseWithFilterOutput: z.ZodObject<{
|
|
|
33
33
|
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
34
34
|
type: z.ZodNullable<z.ZodString>;
|
|
35
35
|
emoji: z.ZodNullable<z.ZodString>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
37
37
|
type: z.ZodNullable<z.ZodString>;
|
|
38
38
|
external: z.ZodNullable<z.ZodObject<{
|
|
39
39
|
url: z.ZodNullable<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
41
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>>;
|
|
41
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
42
42
|
file: z.ZodNullable<z.ZodObject<{
|
|
43
43
|
url: z.ZodNullable<z.ZodString>;
|
|
44
44
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
45
|
-
}, z.core.$
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
46
|
type: z.ZodNullable<z.ZodString>;
|
|
47
|
-
}, z.core.$
|
|
47
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
48
48
|
type: z.ZodNullable<z.ZodString>;
|
|
49
49
|
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
50
50
|
id: z.ZodNullable<z.ZodString>;
|
|
51
51
|
url: z.ZodNullable<z.ZodString>;
|
|
52
52
|
name: z.ZodNullable<z.ZodString>;
|
|
53
|
-
}, z.core.$
|
|
54
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
}, z.core.$loose>]>>>;
|
|
55
55
|
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
56
56
|
type: z.ZodNullable<z.ZodString>;
|
|
57
57
|
external: z.ZodNullable<z.ZodObject<{
|
|
58
58
|
url: z.ZodNullable<z.ZodString>;
|
|
59
|
-
}, z.core.$
|
|
60
|
-
}, z.core.$
|
|
59
|
+
}, z.core.$loose>>;
|
|
60
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
61
61
|
file: z.ZodNullable<z.ZodObject<{
|
|
62
62
|
url: z.ZodNullable<z.ZodString>;
|
|
63
63
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
64
|
-
}, z.core.$
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
65
|
type: z.ZodNullable<z.ZodString>;
|
|
66
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>]>>>;
|
|
67
67
|
object: z.ZodNullable<z.ZodString>;
|
|
68
68
|
parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
69
69
|
type: z.ZodNullable<z.ZodString>;
|
|
70
70
|
database_id: z.ZodNullable<z.ZodString>;
|
|
71
|
-
}, z.core.$
|
|
71
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
72
72
|
type: z.ZodNullable<z.ZodString>;
|
|
73
73
|
database_id: z.ZodNullable<z.ZodString>;
|
|
74
74
|
data_source_id: z.ZodNullable<z.ZodString>;
|
|
75
|
-
}, z.core.$
|
|
75
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
76
76
|
type: z.ZodNullable<z.ZodString>;
|
|
77
77
|
page_id: z.ZodNullable<z.ZodString>;
|
|
78
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
79
79
|
type: z.ZodNullable<z.ZodString>;
|
|
80
80
|
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
81
|
-
}, z.core.$
|
|
81
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
82
82
|
type: z.ZodNullable<z.ZodString>;
|
|
83
83
|
block_id: z.ZodNullable<z.ZodString>;
|
|
84
|
-
}, z.core.$
|
|
84
|
+
}, z.core.$loose>]>>>;
|
|
85
85
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
86
86
|
in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
87
87
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
88
88
|
id: z.ZodNullable<z.ZodString>;
|
|
89
89
|
object: z.ZodNullable<z.ZodString>;
|
|
90
|
-
}, z.core.$
|
|
91
|
-
properties: z.ZodOptional<z.ZodNullable<z.
|
|
90
|
+
}, z.core.$loose>>>;
|
|
91
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
92
92
|
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
93
93
|
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
94
|
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
95
|
id: z.ZodNullable<z.ZodString>;
|
|
96
96
|
object: z.ZodNullable<z.ZodString>;
|
|
97
|
-
}, z.core.$
|
|
97
|
+
}, z.core.$loose>>>;
|
|
98
98
|
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
-
}, z.core.$
|
|
99
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
100
100
|
id: z.ZodNullable<z.ZodString>;
|
|
101
101
|
url: z.ZodNullable<z.ZodString>;
|
|
102
102
|
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
103
103
|
type: z.ZodNullable<z.ZodString>;
|
|
104
104
|
emoji: z.ZodNullable<z.ZodString>;
|
|
105
|
-
}, z.core.$
|
|
105
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
106
106
|
type: z.ZodNullable<z.ZodString>;
|
|
107
107
|
external: z.ZodNullable<z.ZodObject<{
|
|
108
108
|
url: z.ZodNullable<z.ZodString>;
|
|
109
|
-
}, z.core.$
|
|
110
|
-
}, z.core.$
|
|
109
|
+
}, z.core.$loose>>;
|
|
110
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
111
111
|
file: z.ZodNullable<z.ZodObject<{
|
|
112
112
|
url: z.ZodNullable<z.ZodString>;
|
|
113
113
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
114
|
-
}, z.core.$
|
|
114
|
+
}, z.core.$loose>>;
|
|
115
115
|
type: z.ZodNullable<z.ZodString>;
|
|
116
|
-
}, z.core.$
|
|
116
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
117
117
|
type: z.ZodNullable<z.ZodString>;
|
|
118
118
|
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
119
119
|
id: z.ZodNullable<z.ZodString>;
|
|
120
120
|
url: z.ZodNullable<z.ZodString>;
|
|
121
121
|
name: z.ZodNullable<z.ZodString>;
|
|
122
|
-
}, z.core.$
|
|
123
|
-
}, z.core.$
|
|
122
|
+
}, z.core.$loose>>;
|
|
123
|
+
}, z.core.$loose>]>>>;
|
|
124
124
|
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
125
125
|
type: z.ZodNullable<z.ZodString>;
|
|
126
126
|
external: z.ZodNullable<z.ZodObject<{
|
|
127
127
|
url: z.ZodNullable<z.ZodString>;
|
|
128
|
-
}, z.core.$
|
|
129
|
-
}, z.core.$
|
|
128
|
+
}, z.core.$loose>>;
|
|
129
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
130
130
|
file: z.ZodNullable<z.ZodObject<{
|
|
131
131
|
url: z.ZodNullable<z.ZodString>;
|
|
132
132
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
133
|
-
}, z.core.$
|
|
133
|
+
}, z.core.$loose>>;
|
|
134
134
|
type: z.ZodNullable<z.ZodString>;
|
|
135
|
-
}, z.core.$
|
|
135
|
+
}, z.core.$loose>]>>>;
|
|
136
136
|
title: z.ZodArray<z.ZodObject<{
|
|
137
137
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
138
|
type: z.ZodNullable<z.ZodString>;
|
|
@@ -144,33 +144,33 @@ declare const NotionQueryDatabaseWithFilterOutput: z.ZodObject<{
|
|
|
144
144
|
italic: z.ZodNullable<z.ZodBoolean>;
|
|
145
145
|
underline: z.ZodNullable<z.ZodBoolean>;
|
|
146
146
|
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
147
|
-
}, z.core.$
|
|
148
|
-
}, z.core.$
|
|
147
|
+
}, z.core.$loose>>;
|
|
148
|
+
}, z.core.$loose>>;
|
|
149
149
|
object: z.ZodNullable<z.ZodString>;
|
|
150
150
|
parent: z.ZodUnion<readonly [z.ZodObject<{
|
|
151
151
|
type: z.ZodNullable<z.ZodString>;
|
|
152
152
|
database_id: z.ZodNullable<z.ZodString>;
|
|
153
|
-
}, z.core.$
|
|
153
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
154
154
|
type: z.ZodNullable<z.ZodString>;
|
|
155
155
|
database_id: z.ZodNullable<z.ZodString>;
|
|
156
156
|
data_source_id: z.ZodNullable<z.ZodString>;
|
|
157
|
-
}, z.core.$
|
|
157
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
158
158
|
type: z.ZodNullable<z.ZodString>;
|
|
159
159
|
page_id: z.ZodNullable<z.ZodString>;
|
|
160
|
-
}, z.core.$
|
|
160
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
161
161
|
type: z.ZodNullable<z.ZodString>;
|
|
162
162
|
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
163
|
-
}, z.core.$
|
|
163
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
164
164
|
type: z.ZodNullable<z.ZodString>;
|
|
165
165
|
block_id: z.ZodNullable<z.ZodString>;
|
|
166
|
-
}, z.core.$
|
|
166
|
+
}, z.core.$loose>]>;
|
|
167
167
|
archived: z.ZodNullable<z.ZodBoolean>;
|
|
168
168
|
in_trash: z.ZodNullable<z.ZodBoolean>;
|
|
169
169
|
is_inline: z.ZodNullable<z.ZodBoolean>;
|
|
170
170
|
created_by: z.ZodNullable<z.ZodObject<{
|
|
171
171
|
id: z.ZodNullable<z.ZodString>;
|
|
172
172
|
object: z.ZodNullable<z.ZodString>;
|
|
173
|
-
}, z.core.$
|
|
173
|
+
}, z.core.$loose>>;
|
|
174
174
|
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
175
|
description: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
176
176
|
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -183,30 +183,32 @@ declare const NotionQueryDatabaseWithFilterOutput: z.ZodObject<{
|
|
|
183
183
|
italic: z.ZodNullable<z.ZodBoolean>;
|
|
184
184
|
underline: z.ZodNullable<z.ZodBoolean>;
|
|
185
185
|
strikethrough: z.ZodNullable<z.ZodBoolean>;
|
|
186
|
-
}, z.core.$
|
|
187
|
-
}, z.core.$
|
|
186
|
+
}, z.core.$loose>>;
|
|
187
|
+
}, z.core.$loose>>>>;
|
|
188
188
|
created_time: z.ZodNullable<z.ZodString>;
|
|
189
189
|
data_sources: z.ZodArray<z.ZodObject<{
|
|
190
190
|
id: z.ZodNullable<z.ZodString>;
|
|
191
191
|
name: z.ZodNullable<z.ZodString>;
|
|
192
|
-
}, z.core.$
|
|
192
|
+
}, z.core.$loose>>;
|
|
193
193
|
last_edited_by: z.ZodNullable<z.ZodObject<{
|
|
194
194
|
id: z.ZodNullable<z.ZodString>;
|
|
195
195
|
object: z.ZodNullable<z.ZodString>;
|
|
196
|
-
}, z.core.$
|
|
196
|
+
}, z.core.$loose>>;
|
|
197
197
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
198
|
-
}, z.core.$
|
|
198
|
+
}, z.core.$loose>]>>;
|
|
199
199
|
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
200
200
|
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
201
|
-
page_or_database: z.ZodNullable<z.
|
|
201
|
+
page_or_database: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
202
202
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
203
|
-
}, z.core.$
|
|
203
|
+
}, z.core.$loose>;
|
|
204
204
|
declare const notionQueryDatabaseWithFilter: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
205
205
|
database_id: string;
|
|
206
206
|
sorts?: ({
|
|
207
|
+
[x: string]: unknown;
|
|
207
208
|
property: string;
|
|
208
209
|
direction: "ascending" | "descending";
|
|
209
210
|
} | {
|
|
211
|
+
[x: string]: unknown;
|
|
210
212
|
direction: "ascending" | "descending";
|
|
211
213
|
timestamp: "created_time" | "last_edited_time";
|
|
212
214
|
})[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-database-with-filter.d.cts","names":[],"sources":["../../src/actions/query-database-with-filter.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAiIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAUnC,6BAAA,gCAA6B,wBAAA
|
|
1
|
+
{"version":3,"file":"query-database-with-filter.d.cts","names":[],"sources":["../../src/actions/query-database-with-filter.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAiIlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAUnC,6BAAA,gCAA6B,wBAAA;;;;;;;;;;;WAMxC,MAAA"}
|