diff --git a/components/cratedb_cloud/cratedb_cloud.app.mjs b/components/cratedb_cloud/cratedb_cloud.app.mjs index c7aaadc28ebad..023c410bb9920 100644 --- a/components/cratedb_cloud/cratedb_cloud.app.mjs +++ b/components/cratedb_cloud/cratedb_cloud.app.mjs @@ -8,4 +8,4 @@ export default { console.log(Object.keys(this.$auth)); }, }, -}; \ No newline at end of file +}; diff --git a/components/notion/actions/create-page-from-database/create-page-from-database.mjs b/components/notion/actions/create-page-from-database/create-page-from-database.mjs index 48546ca5de419..bd00865ae8d1c 100644 --- a/components/notion/actions/create-page-from-database/create-page-from-database.mjs +++ b/components/notion/actions/create-page-from-database/create-page-from-database.mjs @@ -2,13 +2,14 @@ import NOTION_ICONS from "../../common/notion-icons.mjs"; import utils from "../../common/utils.mjs"; import notion from "../../notion.app.mjs"; import base from "../common/base-page-builder.mjs"; +import pick from "lodash-es/pick.js"; export default { ...base, key: "notion-create-page-from-database", name: "Create Page from Data Source", description: "Create a page from a data source. [See the documentation](https://developers.notion.com/reference/post-page)", - version: "1.0.2", + version: "1.0.3", type: "action", props: { notion, @@ -19,6 +20,7 @@ export default { ], label: "Parent Data Source ID", description: "Select a parent data source or provide a data source ID", + reloadProps: true, }, Name: { type: "string", @@ -26,6 +28,18 @@ export default { description: "The name of the page. Use this only if the data source has a `title` property named `Name`. Otherwise, use the `Properties` prop below to set the title property.", optional: true, }, + propertyTypes: { + propDefinition: [ + notion, + "propertyTypes", + (c) => ({ + parentId: c.parentDataSource, + parentType: "data_source", + }), + ], + description: "Select one or more page properties. Willl override properties set in the `Properties` prop below.", + reloadProps: true, + }, properties: { type: "object", label: "Properties", @@ -57,6 +71,13 @@ export default { ], }, }, + async additionalProps() { + const { properties } = await this.notion.retrieveDataSource(this.parentDataSource); + const selectedProperties = pick(properties, this.propertyTypes); + return this.buildAdditionalProps({ + properties: selectedProperties, + }); + }, methods: { ...base.methods, /** diff --git a/components/notion/package.json b/components/notion/package.json index 2d9b3e6dfb2dd..94ec509ff7bbd 100644 --- a/components/notion/package.json +++ b/components/notion/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/notion", - "version": "1.0.2", + "version": "1.0.3", "description": "Pipedream Notion Components", "main": "notion.app.mjs", "keywords": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f0f887239f345..3550bc2106a9f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -972,7 +972,7 @@ importers: dependencies: '@pipedream/apify': specifier: ^0.3.0 - version: 0.3.0 + version: 0.3.1 components/apilio: {} @@ -20200,8 +20200,8 @@ packages: resolution: {integrity: sha512-dfUnCxiN9H4ap84DvD2ubjw+3vUNpstxa0TneY/Paat8a3R4uQZDLSvWjmznAY/DoahqTHl9V46HF/Zs3F29pg==} engines: {node: '>= 10.0.0'} - '@pipedream/apify@0.3.0': - resolution: {integrity: sha512-FDzYOGiD97brfl6IsfuIZyPzbVYiSoqMHi0/syQdNtYfxQZz7rwtc7OL2D+HJO6gH6gWAoHZlRHW0N9hd+8cow==} + '@pipedream/apify@0.3.1': + resolution: {integrity: sha512-9PQ8Vypl5EttSEQ9NEEDYzEHmDIdhv0A2kwXSU+3efYC9BnXr1QFuFQiQDT9bJelA6ue5K7jp+zX8s15l93mow==} '@pipedream/aws@1.1.0': resolution: {integrity: sha512-1v/AcyW72RgAd6ZSQ6odj6VN9dy0w1JQZPc97s2+JuIEkfgxrH/o/djkdyMAPSwGx+8uU9EMKIXMQdNDyLdlSA==} @@ -23574,10 +23574,6 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - callsites@4.2.0: - resolution: {integrity: sha512-kfzR4zzQtAE9PC7CzZsjl3aBNbXWuXiSeOCdLcPpBfGW8YuCqQHcRPFDbr/BPVmd3EEPVpuFzLyuT/cUhPr4OQ==} - engines: {node: '>=12.20'} - camelcase-keys@9.1.3: resolution: {integrity: sha512-Rircqi9ch8AnZscQcsA1C47NFdaO3wukpmIRzYcDOrmvgt78hM/sj5pZhZNec2NM12uk5vTwRHZ4anGcrC4ZTg==} engines: {node: '>=16'} @@ -24629,10 +24625,6 @@ packages: resolution: {integrity: sha512-tE7ztYzXHIeyvc7N+hR3oi7FIbf/NIjVP9hmAt3yMXzrQ072/fpjGLx2GxNxGxUl5V73MEqYzioOMoVhGMJ5cA==} engines: {node: '>=10'} - dot-prop@7.2.0: - resolution: {integrity: sha512-Ol/IPXUARn9CSbkrdV4VJo7uCy1I3VuSiWCaFSg+8BdUOzF9n3jefIpcgAydvUZbTdEBZs2vEiTiS9m61ssiDA==} - engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} - dot-prop@9.0.0: resolution: {integrity: sha512-1gxPBJpI/pcjQhKgIU91II6Wkay+dLcN3M6rf2uwP8hRur3HtQXjVrdAK3sjC0piaEuxzMwjXChcETiJl47lAQ==} engines: {node: '>=18'} @@ -26128,10 +26120,6 @@ packages: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} - got-scraping@4.1.2: - resolution: {integrity: sha512-LtVwPM5YLnNY7HVT/AK/yDBUg/4yOZSlAjjug2ovrHQseS43QCmO1XosKKXcXrfc6OMX8OnDbAWIauFMcaJ5TQ==} - engines: {node: '>=16'} - got@11.8.6: resolution: {integrity: sha512-6tfZ91bOr7bOXnK7PRDCGBLa1H4U080YHNaAQ2KsMGlLEzRbk44nsZF2E1IeRc3vtJHPVbKCYgdFbaGO2ljd8g==} engines: {node: '>=10.19.0'} @@ -28973,10 +28961,6 @@ packages: resolution: {integrity: sha512-dD4UpyBh/9m4X2NVjA+73/ZPBRF+uF4zIMFvvQsabMiEK8x41L3rQ8EENOi35kyyoaJwNxEeJcP6Fj1H4U409Q==} engines: {node: '>=12'} - ow@1.1.1: - resolution: {integrity: sha512-sJBRCbS5vh1Jp9EOgwp1Ws3c16lJrUkJYlvWTYC03oyiYVwS/ns7lKRWow4w4XjDyTrA2pplQv4B2naWSR6yDA==} - engines: {node: '>=14.16'} - ox@0.9.3: resolution: {integrity: sha512-KzyJP+fPV4uhuuqrTZyok4DC7vFzi7HLUFiUNEmpbyh59htKWkOC98IONC1zgXJPbHAhQgqs6B0Z6StCGhmQvg==} peerDependencies: @@ -29774,10 +29758,6 @@ packages: resolution: {integrity: sha512-AAFUA5O1d83pIHEhJwWCq/RQcRukCkn/NSm2QsTEMle5f2hP0ChI2+3Xb051PZCkLryI/Ir1MVKviT2FIloaTQ==} engines: {node: '>=12'} - quick-lru@7.1.0: - resolution: {integrity: sha512-Pzd/4IFnTb8E+I1P5rbLQoqpUHcXKg48qTYKi4EANg+sTPwGFEMOcYGiiZz6xuQcOMZP7MPsrdAPx+16Q8qahg==} - engines: {node: '>=18'} - quote-unquote@1.0.0: resolution: {integrity: sha512-twwRO/ilhlG/FIgYeKGFqyHhoEhqgnKVkcmqMKi2r524gz3ZbDTcyFt38E9xjJI2vT+KbRNHVbnJ/e0I25Azwg==} @@ -30983,22 +30963,22 @@ packages: superagent@3.8.1: resolution: {integrity: sha512-VMBFLYgFuRdfeNQSMLbxGSLfmXL/xc+OO+BZp41Za/NRDBet/BNbkRJrYzCUu0u4GU0i/ml2dtT8b9qgkw9z6Q==} engines: {node: '>= 4.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@4.1.0: resolution: {integrity: sha512-FT3QLMasz0YyCd4uIi5HNe+3t/onxMyEho7C3PSqmti3Twgy2rXT4fmkTz6wRL6bTF4uzPcfkUCa8u4JWHw8Ag==} engines: {node: '>= 6.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@5.3.1: resolution: {integrity: sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==} engines: {node: '>= 7.0.0'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net superagent@7.1.6: resolution: {integrity: sha512-gZkVCQR1gy/oUXr+kxJMLDjla434KmSOKbx5iGD30Ql+AkJQ/YlPKECJy2nhqOsHLjGHzoDTXNSjhnvWhzKk7g==} engines: {node: '>=6.4.0 <13 || >=14'} - deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net + deprecated: Please upgrade to superagent v10.2.2+, see release notes at https://github.com/forwardemail/superagent/releases/tag/v10.2.2 - maintenance is supported by Forward Email @ https://forwardemail.net supports-color@10.0.0: resolution: {integrity: sha512-HRVVSbCCMbj7/kdWF9Q+bbckjBHLtHMEoJWlkmYzzdwhYMkjkOwubLM6t7NbWKjgKamGDrWL1++KrjUO1t9oAQ==} @@ -31467,10 +31447,6 @@ packages: resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} engines: {node: '>=8'} - type-fest@2.19.0: - resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} - engines: {node: '>=12.20'} - type-fest@4.27.0: resolution: {integrity: sha512-3IMSWgP7C5KSQqmo1wjhKrwsvXAtF33jO3QY+Uy++ia7hqvgSK6iXbbg5PbDBc1P2ZbNEDgejOrN4YooXvhwCw==} engines: {node: '>=16'} @@ -38209,11 +38185,11 @@ snapshots: '@parcel/watcher-win32-ia32': 2.5.1 '@parcel/watcher-win32-x64': 2.5.1 - '@pipedream/apify@0.3.0': + '@pipedream/apify@0.3.1': dependencies: - '@apify/consts': 2.43.0 + '@apify/consts': 2.45.0 '@pipedream/platform': 3.1.0 - got-scraping: 4.1.2 + apify-client: 2.17.0 transitivePeerDependencies: - debug @@ -42607,8 +42583,6 @@ snapshots: callsites@3.1.0: {} - callsites@4.2.0: {} - camelcase-keys@9.1.3: dependencies: camelcase: 8.0.0 @@ -43704,10 +43678,6 @@ snapshots: dependencies: is-obj: 2.0.0 - dot-prop@7.2.0: - dependencies: - type-fest: 2.19.0 - dot-prop@9.0.0: dependencies: type-fest: 4.41.0 @@ -49713,14 +49683,6 @@ snapshots: lodash.isequal: 4.5.0 vali-date: 1.0.0 - ow@1.1.1: - dependencies: - '@sindresorhus/is': 5.6.0 - callsites: 4.2.0 - dot-prop: 7.2.0 - lodash.isequal: 4.5.0 - vali-date: 1.0.0 - ox@0.9.3(typescript@5.9.2)(zod@4.0.14): dependencies: '@adraffy/ens-normalize': 1.11.0 @@ -50767,8 +50729,6 @@ snapshots: quick-lru@6.1.2: {} - quick-lru@7.1.0: {} - quote-unquote@1.0.0: {} quotemeta@0.0.0: {} @@ -53159,8 +53119,6 @@ snapshots: type-fest@0.6.0: {} - type-fest@2.19.0: {} - type-fest@4.27.0: {} type-fest@4.41.0: {}