@keystrokehq/notion 0.1.0 → 0.1.2
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/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +8 -8
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +88 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +88 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +8 -8
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +44 -44
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +849 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +849 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +44 -44
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +44 -44
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +642 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +642 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +44 -44
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +44 -44
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +996 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +996 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +44 -44
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +44 -44
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +624 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +624 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +44 -44
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +44 -44
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +826 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +826 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +44 -44
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +44 -44
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1080 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1080 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +44 -44
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +27 -27
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +78 -3
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +78 -3
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +27 -27
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +46 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +46 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +31 -31
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +139 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +139 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +31 -31
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +8 -8
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +38 -3
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +38 -3
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +8 -8
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +29 -29
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +83 -3
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +83 -3
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +29 -29
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +53 -53
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +2181 -3
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +2181 -3
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +53 -53
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +31 -31
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +90 -3
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +90 -3
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +31 -31
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +45 -45
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +38 -3
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +38 -3
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +45 -45
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +57 -57
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +687 -3
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +687 -3
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +57 -57
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +51 -51
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +2103 -3
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +2103 -3
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +51 -51
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +37 -37
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +148 -3
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +148 -3
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +37 -37
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +51 -51
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +594 -3
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +594 -3
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +51 -51
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +27 -27
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +89 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +89 -3
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +27 -27
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +35 -35
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +151 -3
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +151 -3
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +35 -35
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +7 -7
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +44 -3
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +44 -3
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +7 -7
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +4 -4
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +15 -3
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +15 -3
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +4 -4
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +13 -3
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +13 -3
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +30 -30
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +163 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +163 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +30 -30
- 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 +19 -3
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +19 -3
- package/dist/actions/insert-row-from-nl.d.mts.map +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 +4 -4
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +19 -3
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +19 -3
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +4 -4
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +7 -7
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +32 -3
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +32 -3
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +7 -7
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +6 -6
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +58 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +58 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +6 -6
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +27 -27
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +90 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +90 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +27 -27
- 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 +159 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +159 -3
- 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 +49 -49
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +214 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +214 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +49 -49
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +38 -38
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +208 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +208 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +38 -38
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +3 -3
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1706 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1706 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +3 -3
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +7 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +7 -3
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +19 -19
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +78 -3
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +78 -3
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +19 -19
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +5 -5
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +25 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +25 -3
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +5 -5
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +34 -34
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +139 -3
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +139 -3
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +34 -34
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +54 -54
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +751 -3
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +751 -3
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +54 -54
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +7 -7
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +33 -3
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +33 -3
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +7 -7
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +55 -55
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +564 -3
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +564 -3
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +55 -55
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +32 -32
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +103 -3
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +103 -3
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +32 -32
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +31 -31
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +126 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +126 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +31 -31
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +51 -51
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +314 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +314 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +51 -51
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +4 -4
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +218 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +218 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +4 -4
- 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 +2 -2
|
@@ -36,75 +36,75 @@ const NotionUpdateRowDatabaseInput = zod.z.object({
|
|
|
36
36
|
})).default([]).describe("List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.").optional()
|
|
37
37
|
});
|
|
38
38
|
const NotionUpdateRowDatabase_EmojiIconSchema = zod.z.object({
|
|
39
|
-
type: zod.z.string().describe("Always \"emoji\"."),
|
|
40
|
-
emoji: zod.z.string().describe("The emoji character (e.g., '😻').")
|
|
39
|
+
type: zod.z.string().describe("Always \"emoji\".").nullable(),
|
|
40
|
+
emoji: zod.z.string().describe("The emoji character (e.g., '😻').").nullable()
|
|
41
41
|
}).describe("Standard emoji icon.");
|
|
42
42
|
const NotionUpdateRowDatabase_CustomEmojiObjectSchema = zod.z.object({
|
|
43
|
-
id: zod.z.string().describe("Unique identifier for the custom emoji."),
|
|
44
|
-
url: zod.z.string().describe("HTTPS URL to the emoji image."),
|
|
45
|
-
name: zod.z.string().describe("Display name of the custom emoji.")
|
|
43
|
+
id: zod.z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
44
|
+
url: zod.z.string().describe("HTTPS URL to the emoji image.").nullable(),
|
|
45
|
+
name: zod.z.string().describe("Display name of the custom emoji.").nullable()
|
|
46
46
|
}).describe("Custom emoji object with identifier, name, and URL.");
|
|
47
47
|
const NotionUpdateRowDatabase_CustomEmojiIconSchema = zod.z.object({
|
|
48
|
-
type: zod.z.string().describe("Always \"custom_emoji\"."),
|
|
48
|
+
type: zod.z.string().describe("Always \"custom_emoji\".").nullable(),
|
|
49
49
|
custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable()
|
|
50
50
|
}).describe("Custom emoji icon.");
|
|
51
51
|
const NotionUpdateRowDatabase_NotionHostedFileSchema = zod.z.object({
|
|
52
|
-
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
53
|
-
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
52
|
+
url: zod.z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
53
|
+
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
54
54
|
}).describe("Notion-hosted file with authenticated URL.");
|
|
55
55
|
const NotionUpdateRowDatabase_FileIconWithHostedSchema = zod.z.object({
|
|
56
56
|
file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),
|
|
57
|
-
type: zod.z.string().describe("Type of file.")
|
|
57
|
+
type: zod.z.string().describe("Type of file.").nullable()
|
|
58
58
|
}).describe("File icon with Notion-hosted file.");
|
|
59
|
-
const NotionUpdateRowDatabase_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUID of the uploaded file object.") }).describe("File uploaded via API.");
|
|
59
|
+
const NotionUpdateRowDatabase_FileUploadObjectSchema = zod.z.object({ id: zod.z.string().describe("UUID of the uploaded file object.").nullable() }).describe("File uploaded via API.");
|
|
60
60
|
const NotionUpdateRowDatabase_FileIconWithUploadSchema = zod.z.object({
|
|
61
|
-
type: zod.z.string().describe("Type of file."),
|
|
61
|
+
type: zod.z.string().describe("Type of file.").nullable(),
|
|
62
62
|
file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable()
|
|
63
63
|
}).describe("File icon with uploaded file.");
|
|
64
|
-
const NotionUpdateRowDatabase_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("Link to the externally hosted content.") }).describe("External file reference.");
|
|
64
|
+
const NotionUpdateRowDatabase_ExternalFileObjectSchema = zod.z.object({ url: zod.z.string().describe("Link to the externally hosted content.").nullable() }).describe("External file reference.");
|
|
65
65
|
const NotionUpdateRowDatabase_FileIconWithExternalSchema = zod.z.object({
|
|
66
|
-
type: zod.z.string().describe("Type of file."),
|
|
66
|
+
type: zod.z.string().describe("Type of file.").nullable(),
|
|
67
67
|
external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable()
|
|
68
68
|
}).describe("File icon with external URL.");
|
|
69
69
|
const NotionUpdateRowDatabase_CoverWithHostedSchema = zod.z.object({
|
|
70
70
|
file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),
|
|
71
|
-
type: zod.z.string().describe("Type of file.")
|
|
71
|
+
type: zod.z.string().describe("Type of file.").nullable()
|
|
72
72
|
}).describe("Cover with Notion-hosted file.");
|
|
73
73
|
const NotionUpdateRowDatabase_CoverWithUploadSchema = zod.z.object({
|
|
74
|
-
type: zod.z.string().describe("Type of file."),
|
|
74
|
+
type: zod.z.string().describe("Type of file.").nullable(),
|
|
75
75
|
file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable()
|
|
76
76
|
}).describe("Cover with uploaded file.");
|
|
77
77
|
const NotionUpdateRowDatabase_CoverWithExternalSchema = zod.z.object({
|
|
78
|
-
type: zod.z.string().describe("Type of file."),
|
|
78
|
+
type: zod.z.string().describe("Type of file.").nullable(),
|
|
79
79
|
external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable()
|
|
80
80
|
}).describe("Cover with external URL.");
|
|
81
81
|
const NotionUpdateRowDatabase_DatabaseParentSchema = zod.z.object({
|
|
82
|
-
type: zod.z.string().describe("Always \"database_id\"."),
|
|
83
|
-
database_id: zod.z.string().describe("The database identifier in UUIDv4 format.")
|
|
82
|
+
type: zod.z.string().describe("Always \"database_id\".").nullable(),
|
|
83
|
+
database_id: zod.z.string().describe("The database identifier in UUIDv4 format.").nullable()
|
|
84
84
|
}).describe("Parent is a database.");
|
|
85
85
|
const NotionUpdateRowDatabase_DataSourceParentSchema = zod.z.object({
|
|
86
|
-
type: zod.z.string().describe("Always \"data_source_id\"."),
|
|
87
|
-
database_id: zod.z.string().describe("The parent database identifier in UUIDv4 format."),
|
|
88
|
-
data_source_id: zod.z.string().describe("The data source identifier in UUIDv4 format.")
|
|
86
|
+
type: zod.z.string().describe("Always \"data_source_id\".").nullable(),
|
|
87
|
+
database_id: zod.z.string().describe("The parent database identifier in UUIDv4 format.").nullable(),
|
|
88
|
+
data_source_id: zod.z.string().describe("The data source identifier in UUIDv4 format.").nullable()
|
|
89
89
|
}).describe("Parent is a data source.");
|
|
90
90
|
const NotionUpdateRowDatabase_PageParentSchema = zod.z.object({
|
|
91
|
-
type: zod.z.string().describe("Always \"page_id\"."),
|
|
92
|
-
page_id: zod.z.string().describe("The page identifier in UUIDv4 format.")
|
|
91
|
+
type: zod.z.string().describe("Always \"page_id\".").nullable(),
|
|
92
|
+
page_id: zod.z.string().describe("The page identifier in UUIDv4 format.").nullable()
|
|
93
93
|
}).describe("Parent is a page.");
|
|
94
94
|
const NotionUpdateRowDatabase_WorkspaceParentSchema = zod.z.object({
|
|
95
|
-
type: zod.z.string().describe("Always \"workspace\"."),
|
|
96
|
-
workspace: zod.z.boolean().describe("Always true.")
|
|
95
|
+
type: zod.z.string().describe("Always \"workspace\".").nullable(),
|
|
96
|
+
workspace: zod.z.boolean().describe("Always true.").nullable()
|
|
97
97
|
}).describe("Parent is the workspace.");
|
|
98
98
|
const NotionUpdateRowDatabase_BlockParentSchema = zod.z.object({
|
|
99
|
-
type: zod.z.string().describe("Always \"block_id\"."),
|
|
100
|
-
block_id: zod.z.string().describe("The block identifier in UUIDv4 format.")
|
|
99
|
+
type: zod.z.string().describe("Always \"block_id\".").nullable(),
|
|
100
|
+
block_id: zod.z.string().describe("The block identifier in UUIDv4 format.").nullable()
|
|
101
101
|
}).describe("Parent is a block.");
|
|
102
102
|
const NotionUpdateRowDatabase_PartialUserSchema = zod.z.object({
|
|
103
|
-
id: zod.z.string().describe("Unique identifier for the user in UUID format."),
|
|
104
|
-
object: zod.z.string().describe("Always \"user\".")
|
|
103
|
+
id: zod.z.string().describe("Unique identifier for the user in UUID format.").nullable(),
|
|
104
|
+
object: zod.z.string().describe("Always \"user\".").nullable()
|
|
105
105
|
}).describe("Partial user object representing a Notion user.");
|
|
106
106
|
const NotionUpdateRowDatabaseOutput = zod.z.object({
|
|
107
|
-
id: zod.z.string().describe("Unique identifier for the page in UUIDv4 format."),
|
|
107
|
+
id: zod.z.string().describe("Unique identifier for the page in UUIDv4 format.").nullable(),
|
|
108
108
|
url: zod.z.string().describe("The URL of the Notion page.").nullable().optional(),
|
|
109
109
|
icon: zod.z.union([
|
|
110
110
|
NotionUpdateRowDatabase_EmojiIconSchema,
|
|
@@ -118,7 +118,7 @@ const NotionUpdateRowDatabaseOutput = zod.z.object({
|
|
|
118
118
|
NotionUpdateRowDatabase_CoverWithUploadSchema,
|
|
119
119
|
NotionUpdateRowDatabase_CoverWithExternalSchema
|
|
120
120
|
]).nullable().optional(),
|
|
121
|
-
object: zod.z.string().describe("Always \"page\". Identifies the type of object."),
|
|
121
|
+
object: zod.z.string().describe("Always \"page\". Identifies the type of object.").nullable(),
|
|
122
122
|
parent: zod.z.union([
|
|
123
123
|
NotionUpdateRowDatabase_DatabaseParentSchema,
|
|
124
124
|
NotionUpdateRowDatabase_DataSourceParentSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-row-database.cjs","names":["z","action"],"sources":["../../src/actions/update-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateRowDatabaseInput: z.ZodTypeAny = z.object({\n icon: z.string().describe(\"The emoji to be used as the icon for the page. Must be a single emoji character (e.g., '😻', '🤔'). Empty strings or whitespace-only values are ignored.\").optional(),\n cover: z.string().describe(\"URL of an external image to be used as the cover for the page (e.g., 'https://google.com/image.png'). Empty strings or whitespace-only values are ignored.\").optional(),\n row_id: z.string().describe(\"REQUIRED: The page UUID of the database row to update. This is a PAGE ID (not a database ID). A database row in Notion is actually a page - use the page's UUID here. Format: 32-character UUID with hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5'). NOT a URL or page title. Find this ID in the page URL or via 'Copy link' in Notion. NOTE: To update DATABASE structure/schema, use NOTION_UPDATE_SCHEMA_DATABASE instead. This action only updates individual rows/pages within a database.\"),\n delete_row: z.boolean().default(false).describe(\"If true, the row (page) will be archived, effectively deleting it from the active view. If the page is already archived, the action will return success with the current page state. If false, the row will be updated with other provided data.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place.\"),\n value: z.string().describe(\"Value formatted according to the property type:\\n- title, rich_text - text string (max 2000 chars, truncated if longer)\\n- number - numeric string ex. \\\"23.4\\\"\\n- select - single option name (no commas). For multiple values, use multi_select.\\n- multi_select - comma separated values ex. \\\"India,USA\\\"\\n- date - ISO 8601. Single: \\\"2021-05-11\\\". Range: \\\"2021-05-11/2021-05-15\\\" (slash-separated).\\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\\n- url - a URL string.\\n- files - comma separated HTTPS URLs only (no file:// or http://).\\n- checkbox - \\\"True\\\" or \\\"False\\\"\"),\n})).default([]).describe(\"List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.\").optional(),\n});\nconst NotionUpdateRowDatabase_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\"),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\"),\n}).describe(\"Standard emoji icon.\");\nconst NotionUpdateRowDatabase_CustomEmojiObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL to the emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionUpdateRowDatabase_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\"),\n custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionUpdateRowDatabase_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionUpdateRowDatabase_FileIconWithHostedSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\"),\n}).describe(\"File icon with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_FileUploadObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\"),\n}).describe(\"File uploaded via API.\");\nconst NotionUpdateRowDatabase_FileIconWithUploadSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\"),\n}).describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"File icon with external URL.\");\nconst NotionUpdateRowDatabase_CoverWithHostedSchema: z.ZodTypeAny = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\"),\n}).describe(\"Cover with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_CoverWithUploadSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"Cover with uploaded file.\");\nconst NotionUpdateRowDatabase_CoverWithExternalSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Type of file.\"),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"Cover with external URL.\");\nconst NotionUpdateRowDatabase_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"database_id\\\".\"),\n database_id: z.string().describe(\"The database identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a database.\");\nconst NotionUpdateRowDatabase_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"data_source_id\\\".\"),\n database_id: z.string().describe(\"The parent database identifier in UUIDv4 format.\"),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a data source.\");\nconst NotionUpdateRowDatabase_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"page_id\\\".\"),\n page_id: z.string().describe(\"The page identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a page.\");\nconst NotionUpdateRowDatabase_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Parent is the workspace.\");\nconst NotionUpdateRowDatabase_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"block_id\\\".\"),\n block_id: z.string().describe(\"The block identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a block.\");\nconst NotionUpdateRowDatabase_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user in UUID format.\"),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n}).describe(\"Partial user object representing a Notion user.\");\nexport const NotionUpdateRowDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\"),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionUpdateRowDatabase_EmojiIconSchema, NotionUpdateRowDatabase_CustomEmojiIconSchema, NotionUpdateRowDatabase_FileIconWithHostedSchema, NotionUpdateRowDatabase_FileIconWithUploadSchema, NotionUpdateRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionUpdateRowDatabase_CoverWithHostedSchema, NotionUpdateRowDatabase_CoverWithUploadSchema, NotionUpdateRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\"),\n parent: z.union([NotionUpdateRowDatabase_DatabaseParentSchema, NotionUpdateRowDatabase_DataSourceParentSchema, NotionUpdateRowDatabase_PageParentSchema, NotionUpdateRowDatabase_WorkspaceParentSchema, NotionUpdateRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived (deleted).\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys correspond to property names defined in the parent database schema, and values are property value objects specific to each property type.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when this page was last updated, in ISO 8601 format.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the execution layer explaining any special handling performed.\").nullable().optional(),\n}).describe(\"Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.\");\n\nexport const notionUpdateRowDatabase = action(\"NOTION_UPDATE_ROW_DATABASE\", {\n slug: \"notion-update-row-database\",\n name: \"Update Database Row (Page)\",\n description: \"Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.\",\n input: NotionUpdateRowDatabaseInput,\n output: NotionUpdateRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J,CAAC,CAAC,SAAS;CAClM,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0eAA0e;CACtgB,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;CAC7S,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC,CAAC,CAAC,SAAS,mnBAAmnB;EACj5B,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,usBAAusB;CACpuB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,weAAwe,CAAC,CAAC,SAAS;AAC5gB,CAAC;AACD,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAC7C,OAAOA,IAAAA,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D;CAC7E,QAAQA,IAAAA,EAAE,MAAM;EAAC;EAA8C;EAAgD;EAA0C;EAA+C;CAAyC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxQ,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrO,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC9E,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,mHAAmH;AAE/H,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-row-database.cjs","names":["z","action"],"sources":["../../src/actions/update-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateRowDatabaseInput = z.object({\n icon: z.string().describe(\"The emoji to be used as the icon for the page. Must be a single emoji character (e.g., '😻', '🤔'). Empty strings or whitespace-only values are ignored.\").optional(),\n cover: z.string().describe(\"URL of an external image to be used as the cover for the page (e.g., 'https://google.com/image.png'). Empty strings or whitespace-only values are ignored.\").optional(),\n row_id: z.string().describe(\"REQUIRED: The page UUID of the database row to update. This is a PAGE ID (not a database ID). A database row in Notion is actually a page - use the page's UUID here. Format: 32-character UUID with hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5'). NOT a URL or page title. Find this ID in the page URL or via 'Copy link' in Notion. NOTE: To update DATABASE structure/schema, use NOTION_UPDATE_SCHEMA_DATABASE instead. This action only updates individual rows/pages within a database.\"),\n delete_row: z.boolean().default(false).describe(\"If true, the row (page) will be archived, effectively deleting it from the active view. If the page is already archived, the action will return success with the current page state. If false, the row will be updated with other provided data.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place.\"),\n value: z.string().describe(\"Value formatted according to the property type:\\n- title, rich_text - text string (max 2000 chars, truncated if longer)\\n- number - numeric string ex. \\\"23.4\\\"\\n- select - single option name (no commas). For multiple values, use multi_select.\\n- multi_select - comma separated values ex. \\\"India,USA\\\"\\n- date - ISO 8601. Single: \\\"2021-05-11\\\". Range: \\\"2021-05-11/2021-05-15\\\" (slash-separated).\\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\\n- url - a URL string.\\n- files - comma separated HTTPS URLs only (no file:// or http://).\\n- checkbox - \\\"True\\\" or \\\"False\\\"\"),\n})).default([]).describe(\"List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.\").optional(),\n});\nconst NotionUpdateRowDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\").nullable(),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\").nullable(),\n}).describe(\"Standard emoji icon.\");\nconst NotionUpdateRowDatabase_CustomEmojiObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionUpdateRowDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\").nullable(),\n custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionUpdateRowDatabase_NotionHostedFileSchema = 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 with authenticated URL.\");\nconst NotionUpdateRowDatabase_FileIconWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).describe(\"File icon with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\").nullable(),\n}).describe(\"File uploaded via API.\");\nconst NotionUpdateRowDatabase_FileIconWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"File icon with external URL.\");\nconst NotionUpdateRowDatabase_CoverWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).describe(\"Cover with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_CoverWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"Cover with uploaded file.\");\nconst NotionUpdateRowDatabase_CoverWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"Cover with external URL.\");\nconst NotionUpdateRowDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always \\\"database_id\\\".\").nullable(),\n database_id: z.string().describe(\"The database identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a database.\");\nconst NotionUpdateRowDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"data_source_id\\\".\").nullable(),\n database_id: z.string().describe(\"The parent database identifier in UUIDv4 format.\").nullable(),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a data source.\");\nconst NotionUpdateRowDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always \\\"page_id\\\".\").nullable(),\n page_id: z.string().describe(\"The page identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a page.\");\nconst NotionUpdateRowDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).describe(\"Parent is the workspace.\");\nconst NotionUpdateRowDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always \\\"block_id\\\".\").nullable(),\n block_id: z.string().describe(\"The block identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a block.\");\nconst NotionUpdateRowDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user in UUID format.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).describe(\"Partial user object representing a Notion user.\");\nexport const NotionUpdateRowDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionUpdateRowDatabase_EmojiIconSchema, NotionUpdateRowDatabase_CustomEmojiIconSchema, NotionUpdateRowDatabase_FileIconWithHostedSchema, NotionUpdateRowDatabase_FileIconWithUploadSchema, NotionUpdateRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionUpdateRowDatabase_CoverWithHostedSchema, NotionUpdateRowDatabase_CoverWithUploadSchema, NotionUpdateRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\").nullable(),\n parent: z.union([NotionUpdateRowDatabase_DatabaseParentSchema, NotionUpdateRowDatabase_DataSourceParentSchema, NotionUpdateRowDatabase_PageParentSchema, NotionUpdateRowDatabase_WorkspaceParentSchema, NotionUpdateRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived (deleted).\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys correspond to property names defined in the parent database schema, and values are property value objects specific to each property type.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when this page was last updated, in ISO 8601 format.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the execution layer explaining any special handling performed.\").nullable().optional(),\n}).describe(\"Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.\");\n\nexport const notionUpdateRowDatabase = action(\"NOTION_UPDATE_ROW_DATABASE\", {\n slug: \"notion-update-row-database\",\n name: \"Update Database Row (Page)\",\n description: \"Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.\",\n input: NotionUpdateRowDatabaseInput,\n output: NotionUpdateRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC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;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,132 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-row-database.d.ts
|
|
4
|
-
declare const NotionUpdateRowDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionUpdateRowDatabaseInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
7
|
+
row_id: z.ZodString;
|
|
8
|
+
delete_row: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
properties: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
type: z.ZodEnum<{
|
|
12
|
+
number: "number";
|
|
13
|
+
date: "date";
|
|
14
|
+
url: "url";
|
|
15
|
+
rich_text: "rich_text";
|
|
16
|
+
created_by: "created_by";
|
|
17
|
+
created_time: "created_time";
|
|
18
|
+
last_edited_by: "last_edited_by";
|
|
19
|
+
last_edited_time: "last_edited_time";
|
|
20
|
+
title: "title";
|
|
21
|
+
select: "select";
|
|
22
|
+
multi_select: "multi_select";
|
|
23
|
+
people: "people";
|
|
24
|
+
files: "files";
|
|
25
|
+
checkbox: "checkbox";
|
|
26
|
+
email: "email";
|
|
27
|
+
phone_number: "phone_number";
|
|
28
|
+
formula: "formula";
|
|
29
|
+
relation: "relation";
|
|
30
|
+
rollup: "rollup";
|
|
31
|
+
status: "status";
|
|
32
|
+
place: "place";
|
|
33
|
+
unique_id: "unique_id";
|
|
34
|
+
}>;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const NotionUpdateRowDatabaseOutput: z.ZodObject<{
|
|
39
|
+
id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
type: z.ZodNullable<z.ZodString>;
|
|
43
|
+
emoji: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
url: z.ZodNullable<z.ZodString>;
|
|
49
|
+
name: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
url: z.ZodNullable<z.ZodString>;
|
|
54
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
type: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
type: z.ZodNullable<z.ZodString>;
|
|
59
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
60
|
+
id: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodNullable<z.ZodString>;
|
|
64
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
65
|
+
url: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>]>>>;
|
|
68
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
69
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
url: z.ZodNullable<z.ZodString>;
|
|
71
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
type: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
type: z.ZodNullable<z.ZodString>;
|
|
76
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
77
|
+
id: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
type: z.ZodNullable<z.ZodString>;
|
|
81
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
82
|
+
url: z.ZodNullable<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>]>>>;
|
|
85
|
+
object: z.ZodNullable<z.ZodString>;
|
|
86
|
+
parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
+
type: z.ZodNullable<z.ZodString>;
|
|
88
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodNullable<z.ZodString>;
|
|
91
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
92
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
type: z.ZodNullable<z.ZodString>;
|
|
95
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
type: z.ZodNullable<z.ZodString>;
|
|
98
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
type: z.ZodNullable<z.ZodString>;
|
|
101
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>]>>>;
|
|
103
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
|
+
in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
105
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
id: z.ZodNullable<z.ZodString>;
|
|
107
|
+
object: z.ZodNullable<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
110
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
113
|
+
id: z.ZodNullable<z.ZodString>;
|
|
114
|
+
object: z.ZodNullable<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
declare const notionUpdateRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
120
|
+
row_id: string;
|
|
121
|
+
icon?: string | undefined;
|
|
122
|
+
cover?: string | undefined;
|
|
123
|
+
delete_row?: boolean | undefined;
|
|
124
|
+
properties?: {
|
|
125
|
+
name: string;
|
|
126
|
+
type: "number" | "date" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "title" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
|
|
127
|
+
value: string;
|
|
128
|
+
}[] | undefined;
|
|
129
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
130
|
//#endregion
|
|
8
131
|
export { notionUpdateRowDatabase };
|
|
9
132
|
//# sourceMappingURL=update-row-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-row-database.d.cts","names":[],"sources":["../../src/actions/update-row-database.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-row-database.d.cts","names":[],"sources":["../../src/actions/update-row-database.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmF5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,132 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/update-row-database.d.ts
|
|
4
|
-
declare const NotionUpdateRowDatabaseInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionUpdateRowDatabaseInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
7
|
+
row_id: z.ZodString;
|
|
8
|
+
delete_row: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
properties: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
type: z.ZodEnum<{
|
|
12
|
+
number: "number";
|
|
13
|
+
date: "date";
|
|
14
|
+
url: "url";
|
|
15
|
+
rich_text: "rich_text";
|
|
16
|
+
created_by: "created_by";
|
|
17
|
+
created_time: "created_time";
|
|
18
|
+
last_edited_by: "last_edited_by";
|
|
19
|
+
last_edited_time: "last_edited_time";
|
|
20
|
+
title: "title";
|
|
21
|
+
select: "select";
|
|
22
|
+
multi_select: "multi_select";
|
|
23
|
+
people: "people";
|
|
24
|
+
files: "files";
|
|
25
|
+
checkbox: "checkbox";
|
|
26
|
+
email: "email";
|
|
27
|
+
phone_number: "phone_number";
|
|
28
|
+
formula: "formula";
|
|
29
|
+
relation: "relation";
|
|
30
|
+
rollup: "rollup";
|
|
31
|
+
status: "status";
|
|
32
|
+
place: "place";
|
|
33
|
+
unique_id: "unique_id";
|
|
34
|
+
}>;
|
|
35
|
+
value: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
declare const NotionUpdateRowDatabaseOutput: z.ZodObject<{
|
|
39
|
+
id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
|
+
type: z.ZodNullable<z.ZodString>;
|
|
43
|
+
emoji: z.ZodNullable<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
type: z.ZodNullable<z.ZodString>;
|
|
46
|
+
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
id: z.ZodNullable<z.ZodString>;
|
|
48
|
+
url: z.ZodNullable<z.ZodString>;
|
|
49
|
+
name: z.ZodNullable<z.ZodString>;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
53
|
+
url: z.ZodNullable<z.ZodString>;
|
|
54
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
type: z.ZodNullable<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
type: z.ZodNullable<z.ZodString>;
|
|
59
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
60
|
+
id: z.ZodNullable<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
type: z.ZodNullable<z.ZodString>;
|
|
64
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
65
|
+
url: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>]>>>;
|
|
68
|
+
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
69
|
+
file: z.ZodNullable<z.ZodObject<{
|
|
70
|
+
url: z.ZodNullable<z.ZodString>;
|
|
71
|
+
expiry_time: z.ZodNullable<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
type: z.ZodNullable<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
type: z.ZodNullable<z.ZodString>;
|
|
76
|
+
file_upload: z.ZodNullable<z.ZodObject<{
|
|
77
|
+
id: z.ZodNullable<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
type: z.ZodNullable<z.ZodString>;
|
|
81
|
+
external: z.ZodNullable<z.ZodObject<{
|
|
82
|
+
url: z.ZodNullable<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
}, z.core.$strip>]>>>;
|
|
85
|
+
object: z.ZodNullable<z.ZodString>;
|
|
86
|
+
parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
87
|
+
type: z.ZodNullable<z.ZodString>;
|
|
88
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
89
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
90
|
+
type: z.ZodNullable<z.ZodString>;
|
|
91
|
+
database_id: z.ZodNullable<z.ZodString>;
|
|
92
|
+
data_source_id: z.ZodNullable<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
type: z.ZodNullable<z.ZodString>;
|
|
95
|
+
page_id: z.ZodNullable<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
type: z.ZodNullable<z.ZodString>;
|
|
98
|
+
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
type: z.ZodNullable<z.ZodString>;
|
|
101
|
+
block_id: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>]>>>;
|
|
103
|
+
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
|
+
in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
105
|
+
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
id: z.ZodNullable<z.ZodString>;
|
|
107
|
+
object: z.ZodNullable<z.ZodString>;
|
|
108
|
+
}, z.core.$strip>>>;
|
|
109
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
110
|
+
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
113
|
+
id: z.ZodNullable<z.ZodString>;
|
|
114
|
+
object: z.ZodNullable<z.ZodString>;
|
|
115
|
+
}, z.core.$strip>>>;
|
|
116
|
+
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
declare const notionUpdateRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
120
|
+
row_id: string;
|
|
121
|
+
icon?: string | undefined;
|
|
122
|
+
cover?: string | undefined;
|
|
123
|
+
delete_row?: boolean | undefined;
|
|
124
|
+
properties?: {
|
|
125
|
+
name: string;
|
|
126
|
+
type: "number" | "date" | "url" | "rich_text" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "title" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id";
|
|
127
|
+
value: string;
|
|
128
|
+
}[] | undefined;
|
|
129
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
130
|
//#endregion
|
|
8
131
|
export { notionUpdateRowDatabase };
|
|
9
132
|
//# sourceMappingURL=update-row-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-row-database.d.mts","names":[],"sources":["../../src/actions/update-row-database.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"update-row-database.d.mts","names":[],"sources":["../../src/actions/update-row-database.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmF5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkB7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -36,72 +36,72 @@ const NotionUpdateRowDatabaseInput = z.object({
|
|
|
36
36
|
})).default([]).describe("List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.").optional()
|
|
37
37
|
});
|
|
38
38
|
const NotionUpdateRowDatabase_EmojiIconSchema = z.object({
|
|
39
|
-
type: z.string().describe("Always \"emoji\"."),
|
|
40
|
-
emoji: z.string().describe("The emoji character (e.g., '😻').")
|
|
39
|
+
type: z.string().describe("Always \"emoji\".").nullable(),
|
|
40
|
+
emoji: z.string().describe("The emoji character (e.g., '😻').").nullable()
|
|
41
41
|
}).describe("Standard emoji icon.");
|
|
42
42
|
const NotionUpdateRowDatabase_CustomEmojiObjectSchema = z.object({
|
|
43
|
-
id: z.string().describe("Unique identifier for the custom emoji."),
|
|
44
|
-
url: z.string().describe("HTTPS URL to the emoji image."),
|
|
45
|
-
name: z.string().describe("Display name of the custom emoji.")
|
|
43
|
+
id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
44
|
+
url: z.string().describe("HTTPS URL to the emoji image.").nullable(),
|
|
45
|
+
name: z.string().describe("Display name of the custom emoji.").nullable()
|
|
46
46
|
}).describe("Custom emoji object with identifier, name, and URL.");
|
|
47
47
|
const NotionUpdateRowDatabase_CustomEmojiIconSchema = z.object({
|
|
48
|
-
type: z.string().describe("Always \"custom_emoji\"."),
|
|
48
|
+
type: z.string().describe("Always \"custom_emoji\".").nullable(),
|
|
49
49
|
custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable()
|
|
50
50
|
}).describe("Custom emoji icon.");
|
|
51
51
|
const NotionUpdateRowDatabase_NotionHostedFileSchema = z.object({
|
|
52
|
-
url: z.string().describe("Authenticated URL to the file, valid for one hour."),
|
|
53
|
-
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.")
|
|
52
|
+
url: z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
53
|
+
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
54
54
|
}).describe("Notion-hosted file with authenticated URL.");
|
|
55
55
|
const NotionUpdateRowDatabase_FileIconWithHostedSchema = z.object({
|
|
56
56
|
file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),
|
|
57
|
-
type: z.string().describe("Type of file.")
|
|
57
|
+
type: z.string().describe("Type of file.").nullable()
|
|
58
58
|
}).describe("File icon with Notion-hosted file.");
|
|
59
|
-
const NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID of the uploaded file object.") }).describe("File uploaded via API.");
|
|
59
|
+
const NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID of the uploaded file object.").nullable() }).describe("File uploaded via API.");
|
|
60
60
|
const NotionUpdateRowDatabase_FileIconWithUploadSchema = z.object({
|
|
61
|
-
type: z.string().describe("Type of file."),
|
|
61
|
+
type: z.string().describe("Type of file.").nullable(),
|
|
62
62
|
file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable()
|
|
63
63
|
}).describe("File icon with uploaded file.");
|
|
64
|
-
const NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({ url: z.string().describe("Link to the externally hosted content.") }).describe("External file reference.");
|
|
64
|
+
const NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({ url: z.string().describe("Link to the externally hosted content.").nullable() }).describe("External file reference.");
|
|
65
65
|
const NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({
|
|
66
|
-
type: z.string().describe("Type of file."),
|
|
66
|
+
type: z.string().describe("Type of file.").nullable(),
|
|
67
67
|
external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable()
|
|
68
68
|
}).describe("File icon with external URL.");
|
|
69
69
|
const NotionUpdateRowDatabase_CoverWithHostedSchema = z.object({
|
|
70
70
|
file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),
|
|
71
|
-
type: z.string().describe("Type of file.")
|
|
71
|
+
type: z.string().describe("Type of file.").nullable()
|
|
72
72
|
}).describe("Cover with Notion-hosted file.");
|
|
73
73
|
const NotionUpdateRowDatabase_CoverWithUploadSchema = z.object({
|
|
74
|
-
type: z.string().describe("Type of file."),
|
|
74
|
+
type: z.string().describe("Type of file.").nullable(),
|
|
75
75
|
file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable()
|
|
76
76
|
}).describe("Cover with uploaded file.");
|
|
77
77
|
const NotionUpdateRowDatabase_CoverWithExternalSchema = z.object({
|
|
78
|
-
type: z.string().describe("Type of file."),
|
|
78
|
+
type: z.string().describe("Type of file.").nullable(),
|
|
79
79
|
external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable()
|
|
80
80
|
}).describe("Cover with external URL.");
|
|
81
81
|
const NotionUpdateRowDatabase_DatabaseParentSchema = z.object({
|
|
82
|
-
type: z.string().describe("Always \"database_id\"."),
|
|
83
|
-
database_id: z.string().describe("The database identifier in UUIDv4 format.")
|
|
82
|
+
type: z.string().describe("Always \"database_id\".").nullable(),
|
|
83
|
+
database_id: z.string().describe("The database identifier in UUIDv4 format.").nullable()
|
|
84
84
|
}).describe("Parent is a database.");
|
|
85
85
|
const NotionUpdateRowDatabase_DataSourceParentSchema = z.object({
|
|
86
|
-
type: z.string().describe("Always \"data_source_id\"."),
|
|
87
|
-
database_id: z.string().describe("The parent database identifier in UUIDv4 format."),
|
|
88
|
-
data_source_id: z.string().describe("The data source identifier in UUIDv4 format.")
|
|
86
|
+
type: z.string().describe("Always \"data_source_id\".").nullable(),
|
|
87
|
+
database_id: z.string().describe("The parent database identifier in UUIDv4 format.").nullable(),
|
|
88
|
+
data_source_id: z.string().describe("The data source identifier in UUIDv4 format.").nullable()
|
|
89
89
|
}).describe("Parent is a data source.");
|
|
90
90
|
const NotionUpdateRowDatabase_PageParentSchema = z.object({
|
|
91
|
-
type: z.string().describe("Always \"page_id\"."),
|
|
92
|
-
page_id: z.string().describe("The page identifier in UUIDv4 format.")
|
|
91
|
+
type: z.string().describe("Always \"page_id\".").nullable(),
|
|
92
|
+
page_id: z.string().describe("The page identifier in UUIDv4 format.").nullable()
|
|
93
93
|
}).describe("Parent is a page.");
|
|
94
94
|
const NotionUpdateRowDatabase_WorkspaceParentSchema = z.object({
|
|
95
|
-
type: z.string().describe("Always \"workspace\"."),
|
|
96
|
-
workspace: z.boolean().describe("Always true.")
|
|
95
|
+
type: z.string().describe("Always \"workspace\".").nullable(),
|
|
96
|
+
workspace: z.boolean().describe("Always true.").nullable()
|
|
97
97
|
}).describe("Parent is the workspace.");
|
|
98
98
|
const NotionUpdateRowDatabase_BlockParentSchema = z.object({
|
|
99
|
-
type: z.string().describe("Always \"block_id\"."),
|
|
100
|
-
block_id: z.string().describe("The block identifier in UUIDv4 format.")
|
|
99
|
+
type: z.string().describe("Always \"block_id\".").nullable(),
|
|
100
|
+
block_id: z.string().describe("The block identifier in UUIDv4 format.").nullable()
|
|
101
101
|
}).describe("Parent is a block.");
|
|
102
102
|
const NotionUpdateRowDatabase_PartialUserSchema = z.object({
|
|
103
|
-
id: z.string().describe("Unique identifier for the user in UUID format."),
|
|
104
|
-
object: z.string().describe("Always \"user\".")
|
|
103
|
+
id: z.string().describe("Unique identifier for the user in UUID format.").nullable(),
|
|
104
|
+
object: z.string().describe("Always \"user\".").nullable()
|
|
105
105
|
}).describe("Partial user object representing a Notion user.");
|
|
106
106
|
const notionUpdateRowDatabase = action("NOTION_UPDATE_ROW_DATABASE", {
|
|
107
107
|
slug: "notion-update-row-database",
|
|
@@ -109,7 +109,7 @@ const notionUpdateRowDatabase = action("NOTION_UPDATE_ROW_DATABASE", {
|
|
|
109
109
|
description: "Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.",
|
|
110
110
|
input: NotionUpdateRowDatabaseInput,
|
|
111
111
|
output: z.object({
|
|
112
|
-
id: z.string().describe("Unique identifier for the page in UUIDv4 format."),
|
|
112
|
+
id: z.string().describe("Unique identifier for the page in UUIDv4 format.").nullable(),
|
|
113
113
|
url: z.string().describe("The URL of the Notion page.").nullable().optional(),
|
|
114
114
|
icon: z.union([
|
|
115
115
|
NotionUpdateRowDatabase_EmojiIconSchema,
|
|
@@ -123,7 +123,7 @@ const notionUpdateRowDatabase = action("NOTION_UPDATE_ROW_DATABASE", {
|
|
|
123
123
|
NotionUpdateRowDatabase_CoverWithUploadSchema,
|
|
124
124
|
NotionUpdateRowDatabase_CoverWithExternalSchema
|
|
125
125
|
]).nullable().optional(),
|
|
126
|
-
object: z.string().describe("Always \"page\". Identifies the type of object."),
|
|
126
|
+
object: z.string().describe("Always \"page\". Identifies the type of object.").nullable(),
|
|
127
127
|
parent: z.union([
|
|
128
128
|
NotionUpdateRowDatabase_DatabaseParentSchema,
|
|
129
129
|
NotionUpdateRowDatabase_DataSourceParentSchema,
|