Skip to content

Commit 4212f14

Browse files
authored
Notion API Key - migrate components from Notion (#16412)
* migrated components * pnpm-lock.yaml * fix filename
1 parent 9aa6c79 commit 4212f14

File tree

23 files changed

+508
-7
lines changed

23 files changed

+508
-7
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/append-block/append-block.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-append-block",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/create-comment/create-comment.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-create-comment",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/create-page-from-database/create-page-from-database.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-create-page-from-database",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/create-page/create-page.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-create-page",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/duplicate-page/duplicate-page.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-duplicate-page",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/query-database/query-database.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-query-database",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/retrieve-block/retrieve-block.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-retrieve-block",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/retrieve-database-content/retrieve-database-content.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-retrieve-database-content",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/retrieve-database-schema/retrieve-database-schema.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-retrieve-database-schema",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import app from "../../notion_api_key.app.mjs";
2+
import common from "@pipedream/notion/actions/retrieve-page-property-item/retrieve-page-property-item.mjs";
3+
4+
import { adjustPropDefinitions } from "../../common/utils.mjs";
5+
6+
const {
7+
name, description, type, ...others
8+
} = common;
9+
const props = adjustPropDefinitions(others.props, app);
10+
11+
export default {
12+
...others,
13+
key: "notion_api_key-retrieve-page-property-item",
14+
version: "0.0.1",
15+
name,
16+
description,
17+
type,
18+
props: {
19+
notion: app,
20+
...props,
21+
},
22+
};

0 commit comments

Comments
 (0)