Skip to content

Commit d3487d6

Browse files
committed
updates
1 parent 74e9cff commit d3487d6

File tree

11 files changed

+49
-85
lines changed

11 files changed

+49
-85
lines changed

components/clickup/actions/common/comment-props.mjs

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,34 @@ export default {
1212
}),
1313
],
1414
},
15-
taskId: {
15+
folderId: {
1616
propDefinition: [
1717
common.props.clickup,
18-
"taskId",
18+
"folderId",
1919
(c) => ({
20-
listId: c.listId,
21-
useCustomTaskIds: c.useCustomTaskIds,
22-
authorizedTeamId: c.authorizedTeamId,
20+
spaceId: c.spaceId,
2321
}),
2422
],
23+
optional: true,
2524
},
26-
viewId: {
25+
listId: {
2726
propDefinition: [
2827
common.props.clickup,
29-
"viewId",
28+
"listId",
3029
(c) => ({
31-
workspaceId: c.workspaceId,
32-
spaceId: c.spaceId,
3330
folderId: c.folderId,
31+
spaceId: c.spaceId,
32+
}),
33+
],
34+
},
35+
taskId: {
36+
propDefinition: [
37+
common.props.clickup,
38+
"taskId",
39+
(c) => ({
3440
listId: c.listId,
41+
useCustomTaskIds: c.useCustomTaskIds,
42+
authorizedTeamId: c.authorizedTeamId,
3543
}),
3644
],
3745
},
@@ -42,7 +50,6 @@ export default {
4250
(c) => ({
4351
taskId: c.taskId,
4452
listId: c.listId,
45-
viewId: c.viewId,
4653
}),
4754
],
4855
},

components/clickup/actions/common/thread-comment-props.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,26 @@ export default {
1212
}),
1313
],
1414
},
15+
folderId: {
16+
propDefinition: [
17+
common.props.clickup,
18+
"folderId",
19+
(c) => ({
20+
spaceId: c.spaceId,
21+
}),
22+
],
23+
optional: true,
24+
},
25+
listId: {
26+
propDefinition: [
27+
common.props.clickup,
28+
"listId",
29+
(c) => ({
30+
folderId: c.folderId,
31+
spaceId: c.spaceId,
32+
}),
33+
],
34+
},
1535
taskId: {
1636
propDefinition: [
1737
common.props.clickup,

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

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,26 +30,6 @@ export default {
3030
],
3131
optional: true,
3232
},
33-
folderId: {
34-
propDefinition: [
35-
common.props.clickup,
36-
"folderId",
37-
(c) => ({
38-
spaceId: c.spaceId,
39-
}),
40-
],
41-
optional: true,
42-
},
43-
listId: {
44-
propDefinition: [
45-
common.props.clickup,
46-
"listId",
47-
(c) => ({
48-
folderId: c.folderId,
49-
spaceId: c.spaceId,
50-
}),
51-
],
52-
},
5333
},
5434
async run({ $ }) {
5535
const {

components/clickup/actions/delete-comment/delete-comment.mjs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,6 @@ export default {
77
description: "Deletes a comment. [See the documentation](https://clickup.com/api) in **Comments / Deleet Comment** section.",
88
version: "0.0.10",
99
type: "action",
10-
props: {
11-
...common.props,
12-
folderId: {
13-
propDefinition: [
14-
common.props.clickup,
15-
"folderId",
16-
(c) => ({
17-
spaceId: c.spaceId,
18-
}),
19-
],
20-
optional: true,
21-
},
22-
listId: {
23-
propDefinition: [
24-
common.props.clickup,
25-
"listId",
26-
(c) => ({
27-
folderId: c.folderId,
28-
spaceId: c.spaceId,
29-
}),
30-
],
31-
},
32-
},
3310
async run({ $ }) {
3411
const { commentId } = this;
3512

components/clickup/actions/update-comment/update-comment.mjs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,6 @@ export default {
3333
type: "boolean",
3434
optional: true,
3535
},
36-
folderId: {
37-
propDefinition: [
38-
common.props.clickup,
39-
"folderId",
40-
(c) => ({
41-
spaceId: c.spaceId,
42-
}),
43-
],
44-
optional: true,
45-
},
46-
listId: {
47-
propDefinition: [
48-
common.props.clickup,
49-
"listId",
50-
(c) => ({
51-
folderId: c.folderId,
52-
spaceId: c.spaceId,
53-
}),
54-
],
55-
},
5636
},
5737
async run({ $ }) {
5838
const {

components/clickup/clickup.app.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default {
146146
listId: {
147147
type: "string",
148148
label: "List ID",
149-
description: "The ID of a list",
149+
description: "The ID of a list. To show lists within a folder, please select a **Folder** first",
150150
async options({
151151
folderId, spaceId,
152152
}) {

components/clickup/sources/new-task-advanced/new-task-advanced.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323
folderId: {
2424
propDefinition: [
25-
common.props.clickup,
25+
common.props.app,
2626
"folderId",
2727
(c) => ({
2828
spaceId: c.spaceId,
@@ -32,7 +32,7 @@ export default {
3232
},
3333
listId: {
3434
propDefinition: [
35-
common.props.clickup,
35+
common.props.app,
3636
"listId",
3737
(c) => ({
3838
folderId: c.folderId,

components/clickup/sources/new-task-comment-updated/new-task-comment-updated.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323
folderId: {
2424
propDefinition: [
25-
common.props.clickup,
25+
common.props.app,
2626
"folderId",
2727
(c) => ({
2828
spaceId: c.spaceId,
@@ -32,7 +32,7 @@ export default {
3232
},
3333
listId: {
3434
propDefinition: [
35-
common.props.clickup,
35+
common.props.app,
3636
"listId",
3737
(c) => ({
3838
folderId: c.folderId,

components/clickup/sources/new-task-comment/new-task-comment.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323
folderId: {
2424
propDefinition: [
25-
common.props.clickup,
25+
common.props.app,
2626
"folderId",
2727
(c) => ({
2828
spaceId: c.spaceId,
@@ -32,7 +32,7 @@ export default {
3232
},
3333
listId: {
3434
propDefinition: [
35-
common.props.clickup,
35+
common.props.app,
3636
"listId",
3737
(c) => ({
3838
folderId: c.folderId,

components/clickup/sources/new-task/new-task.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
},
2323
folderId: {
2424
propDefinition: [
25-
common.props.clickup,
25+
common.props.app,
2626
"folderId",
2727
(c) => ({
2828
spaceId: c.spaceId,
@@ -32,7 +32,7 @@ export default {
3232
},
3333
listId: {
3434
propDefinition: [
35-
common.props.clickup,
35+
common.props.app,
3636
"listId",
3737
(c) => ({
3838
folderId: c.folderId,

0 commit comments

Comments
 (0)