Skip to content

Commit 5f9b78b

Browse files
authored
Clickup - reconfigure props (#17155)
* update props, remove listWithFolder * pnpm-lock.yaml * updates * updates
1 parent 256f928 commit 5f9b78b

File tree

63 files changed

+1339
-781
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1339
-781
lines changed
Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import common from "./workspace-prop.mjs";
2-
import builder from "../../common/builder.mjs";
3-
import propsFragments from "../../common/props-fragments.mjs";
42

53
export default {
64
props: {
@@ -14,12 +12,46 @@ export default {
1412
}),
1513
],
1614
},
17-
},
18-
additionalProps: builder.buildListProps({
19-
tailProps: {
20-
taskId: propsFragments.taskId,
21-
viewId: propsFragments.viewId,
22-
commentId: propsFragments.commentId,
15+
folderId: {
16+
propDefinition: [
17+
common.props.clickup,
18+
"folderId",
19+
(c) => ({
20+
spaceId: c.spaceId,
21+
}),
22+
],
23+
optional: true,
2324
},
24-
}),
25+
listId: {
26+
propDefinition: [
27+
common.props.clickup,
28+
"listId",
29+
(c) => ({
30+
folderId: c.folderId,
31+
spaceId: c.spaceId,
32+
}),
33+
],
34+
},
35+
taskId: {
36+
propDefinition: [
37+
common.props.clickup,
38+
"taskId",
39+
(c) => ({
40+
listId: c.listId,
41+
useCustomTaskIds: c.useCustomTaskIds,
42+
authorizedTeamId: c.authorizedTeamId,
43+
}),
44+
],
45+
},
46+
commentId: {
47+
propDefinition: [
48+
common.props.clickup,
49+
"commentId",
50+
(c) => ({
51+
taskId: c.taskId,
52+
listId: c.listId,
53+
}),
54+
],
55+
},
56+
},
2557
};
Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import builder from "../../common/builder.mjs";
2-
import propsFragments from "../../common/props-fragments.mjs";
31
import common from "./workspace-prop.mjs";
42

53
export default {
@@ -14,11 +12,45 @@ export default {
1412
}),
1513
],
1614
},
17-
},
18-
additionalProps: builder.buildListProps({
19-
tailProps: {
20-
taskId: propsFragments.taskId,
21-
commentId: propsFragments.commentId,
15+
folderId: {
16+
propDefinition: [
17+
common.props.clickup,
18+
"folderId",
19+
(c) => ({
20+
spaceId: c.spaceId,
21+
}),
22+
],
23+
optional: true,
2224
},
23-
}),
25+
listId: {
26+
propDefinition: [
27+
common.props.clickup,
28+
"listId",
29+
(c) => ({
30+
folderId: c.folderId,
31+
spaceId: c.spaceId,
32+
}),
33+
],
34+
},
35+
taskId: {
36+
propDefinition: [
37+
common.props.clickup,
38+
"taskId",
39+
(c) => ({
40+
listId: c.listId,
41+
useCustomTaskIds: c.useCustomTaskIds,
42+
}),
43+
],
44+
},
45+
commentId: {
46+
propDefinition: [
47+
common.props.clickup,
48+
"commentId",
49+
(c) => ({
50+
taskId: c.taskId,
51+
listId: c.listId,
52+
}),
53+
],
54+
},
55+
},
2456
};

components/clickup/actions/create-chat-view-comment/create-chat-view-comment.mjs

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import builder from "../../common/builder.mjs";
2-
import propsFragments from "../../common/props-fragments.mjs";
31
import common from "../common/list-props.mjs";
42

53
export default {
64
...common,
75
key: "clickup-create-chat-view-comment",
86
name: "Create Chat View Comment",
9-
description: "Creates a chat view comment. See the docs [here](https://clickup.com/api) in **Comments / Create Chat View Comment** section.",
10-
version: "0.0.9",
7+
description: "Creates a chat view comment. [See the documentation](https://clickup.com/api) in **Comments / Create Chat View Comment** section.",
8+
version: "0.0.10",
119
type: "action",
1210
props: {
1311
...common.props,
@@ -33,20 +31,40 @@ export default {
3331
],
3432
optional: true,
3533
},
36-
listWithFolder: {
34+
folderId: {
35+
propDefinition: [
36+
common.props.clickup,
37+
"folderId",
38+
(c) => ({
39+
spaceId: c.spaceId,
40+
}),
41+
],
3742
optional: true,
43+
},
44+
listId: {
3845
propDefinition: [
3946
common.props.clickup,
40-
"listWithFolder",
47+
"listId",
48+
(c) => ({
49+
folderId: c.folderId,
50+
spaceId: c.spaceId,
51+
}),
4152
],
53+
optional: true,
4254
},
43-
},
44-
additionalProps: builder.buildListProps({
45-
listPropsOptional: true,
46-
tailProps: {
47-
viewId: propsFragments.viewId,
55+
viewId: {
56+
propDefinition: [
57+
common.props.clickup,
58+
"viewId",
59+
(c) => ({
60+
workspaceId: c.workspaceId,
61+
spaceId: c.spaceId,
62+
folderId: c.folderId,
63+
listId: c.listId,
64+
}),
65+
],
4866
},
49-
}),
67+
},
5068
async run({ $ }) {
5169
const {
5270
viewId,

components/clickup/actions/create-checklist-item/create-checklist-item.mjs

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import builder from "../../common/builder.mjs";
2-
import propsFragments from "../../common/props-fragments.mjs";
31
import common from "../common/task-props.mjs";
42

53
export default {
64
...common,
75
key: "clickup-create-checklist-item",
86
name: "Create Checklist Item",
9-
description: "Creates a new item in a checklist. See the docs [here](https://clickup.com/api) in **Checklists / Create Checklist Item** section.",
10-
version: "0.0.9",
7+
description: "Creates a new item in a checklist. [See the documentation](https://clickup.com/api) in **Checklists / Create Checklist Item** section.",
8+
version: "0.0.10",
119
type: "action",
1210
props: {
1311
...common.props,
@@ -28,19 +26,49 @@ export default {
2826
],
2927
optional: true,
3028
},
31-
listWithFolder: {
29+
folderId: {
3230
propDefinition: [
3331
common.props.clickup,
34-
"listWithFolder",
32+
"folderId",
33+
(c) => ({
34+
spaceId: c.spaceId,
35+
}),
3536
],
37+
optional: true,
3638
},
37-
},
38-
additionalProps: builder.buildListProps({
39-
tailProps: {
40-
taskId: propsFragments.taskId,
41-
checklistId: propsFragments.checklistId,
39+
listId: {
40+
propDefinition: [
41+
common.props.clickup,
42+
"listId",
43+
(c) => ({
44+
folderId: c.folderId,
45+
spaceId: c.spaceId,
46+
}),
47+
],
48+
},
49+
taskId: {
50+
propDefinition: [
51+
common.props.clickup,
52+
"taskId",
53+
(c) => ({
54+
listId: c.listId,
55+
useCustomTaskIds: c.useCustomTaskIds,
56+
authorizedTeamId: c.authorizedTeamId,
57+
}),
58+
],
4259
},
43-
}),
60+
checklistId: {
61+
propDefinition: [
62+
common.props.clickup,
63+
"checklistId",
64+
(c) => ({
65+
taskId: c.taskId,
66+
useCustomTaskIds: c.useCustomTaskIds,
67+
authorizedTeamId: c.authorizedTeamId,
68+
}),
69+
],
70+
},
71+
},
4472
async run({ $ }) {
4573
const {
4674
taskId,

components/clickup/actions/create-checklist/create-checklist.mjs

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import builder from "../../common/builder.mjs";
2-
import propsFragments from "../../common/props-fragments.mjs";
31
import common from "../common/task-props.mjs";
42

53
export default {
64
...common,
75
key: "clickup-create-checklist",
86
name: "Create Checklist",
9-
description: "Creates a new checklist in a task. See the docs [here](https://clickup.com/api) in **Checklists / Create Checklist** section.",
10-
version: "0.0.9",
7+
description: "Creates a new checklist in a task. [See the documentation](https://clickup.com/api) in **Checklists / Create Checklist** section.",
8+
version: "0.0.10",
119
type: "action",
1210
props: {
1311
...common.props,
@@ -16,18 +14,38 @@ export default {
1614
type: "string",
1715
description: "The name of checklist",
1816
},
19-
listWithFolder: {
17+
folderId: {
2018
propDefinition: [
2119
common.props.clickup,
22-
"listWithFolder",
20+
"folderId",
21+
(c) => ({
22+
spaceId: c.spaceId,
23+
}),
2324
],
25+
optional: true,
2426
},
25-
},
26-
additionalProps: builder.buildListProps({
27-
tailProps: {
28-
taskId: propsFragments.taskId,
27+
listId: {
28+
propDefinition: [
29+
common.props.clickup,
30+
"listId",
31+
(c) => ({
32+
folderId: c.folderId,
33+
spaceId: c.spaceId,
34+
}),
35+
],
2936
},
30-
}),
37+
taskId: {
38+
propDefinition: [
39+
common.props.clickup,
40+
"taskId",
41+
(c) => ({
42+
listId: c.listId,
43+
useCustomTaskIds: c.useCustomTaskIds,
44+
authorizedTeamId: c.authorizedTeamId,
45+
}),
46+
],
47+
},
48+
},
3149
async run({ $ }) {
3250
const {
3351
taskId,

components/clickup/actions/create-folder/create-folder.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default {
44
...common,
55
key: "clickup-create-folder",
66
name: "Create Folder",
7-
description: "Creates a new folder. See the docs [here](https://clickup.com/api) in **Folders / Create Folder** section.",
8-
version: "0.0.9",
7+
description: "Creates a new folder. [See the documentation](https://clickup.com/api) in **Folders / Create Folder** section.",
8+
version: "0.0.10",
99
type: "action",
1010
props: {
1111
...common.props,

components/clickup/actions/create-list-comment/create-list-comment.mjs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import clickup from "../../clickup.app.mjs";
2-
import builder from "../../common/builder.mjs";
32
import common from "../common/list-props.mjs";
43

54
export default {
65
...common,
76
key: "clickup-create-list-comment",
87
name: "Create List Comment",
9-
description: "Creates a list comment. See the docs [here](https://clickup.com/api) in **Comments / Create List Comment** section.",
10-
version: "0.0.9",
8+
description: "Creates a list comment. [See the documentation](https://clickup.com/api) in **Comments / Create List Comment** section.",
9+
version: "0.0.10",
1110
type: "action",
1211
props: {
1312
...common.props,
@@ -33,14 +32,27 @@ export default {
3332
],
3433
optional: true,
3534
},
36-
listWithFolder: {
35+
folderId: {
3736
propDefinition: [
3837
common.props.clickup,
39-
"listWithFolder",
38+
"folderId",
39+
(c) => ({
40+
spaceId: c.spaceId,
41+
}),
42+
],
43+
optional: true,
44+
},
45+
listId: {
46+
propDefinition: [
47+
common.props.clickup,
48+
"listId",
49+
(c) => ({
50+
folderId: c.folderId,
51+
spaceId: c.spaceId,
52+
}),
4053
],
4154
},
4255
},
43-
additionalProps: builder.buildListProps(),
4456
async run({ $ }) {
4557
const {
4658
listId,

components/clickup/actions/create-list/create-list.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import constants from "../common/constants.mjs";
44
export default {
55
key: "clickup-create-list",
66
name: "Create List",
7-
description: "Creates a new list. See the docs [here](https://clickup.com/api) in **Lists / Create List** section.",
8-
version: "0.0.14",
7+
description: "Creates a new list. [See the documentation](https://clickup.com/api) in **Lists / Create List** section.",
8+
version: "0.0.15",
99
type: "action",
1010
props: {
1111
clickup,

components/clickup/actions/create-space/create-space.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import common from "../common/workspace-prop.mjs";
33
export default {
44
key: "clickup-create-space",
55
name: "Create Space",
6-
description: "Creates a new space. See the docs [here](https://clickup.com/api) in **Spaces / Create Space** section.",
7-
version: "0.0.9",
6+
description: "Creates a new space. [See the documentation](https://clickup.com/api) in **Spaces / Create Space** section.",
7+
version: "0.0.10",
88
type: "action",
99
props: {
1010
...common.props,

0 commit comments

Comments
 (0)