Skip to content

Commit 9228681

Browse files
committed
update props, remove listWithFolder
1 parent 30b97f4 commit 9228681

File tree

62 files changed

+1336
-769
lines changed

Some content is hidden

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

62 files changed

+1336
-769
lines changed
Lines changed: 34 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,39 @@ 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+
taskId: {
16+
propDefinition: [
17+
common.props.clickup,
18+
"taskId",
19+
(c) => ({
20+
listId: c.listId,
21+
useCustomTaskIds: c.useCustomTaskIds,
22+
authorizedTeamId: c.authorizedTeamId,
23+
}),
24+
],
25+
},
26+
viewId: {
27+
propDefinition: [
28+
common.props.clickup,
29+
"viewId",
30+
(c) => ({
31+
workspaceId: c.workspaceId,
32+
spaceId: c.spaceId,
33+
folderId: c.folderId,
34+
listId: c.listId,
35+
}),
36+
],
37+
},
38+
commentId: {
39+
propDefinition: [
40+
common.props.clickup,
41+
"commentId",
42+
(c) => ({
43+
taskId: c.taskId,
44+
listId: c.listId,
45+
viewId: c.viewId,
46+
}),
47+
],
2348
},
24-
}),
49+
},
2550
};
Lines changed: 21 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,26 @@ export default {
1412
}),
1513
],
1614
},
17-
},
18-
additionalProps: builder.buildListProps({
19-
tailProps: {
20-
taskId: propsFragments.taskId,
21-
commentId: propsFragments.commentId,
15+
taskId: {
16+
propDefinition: [
17+
common.props.clickup,
18+
"taskId",
19+
(c) => ({
20+
listId: c.listId,
21+
useCustomTaskIds: c.useCustomTaskIds,
22+
}),
23+
],
2224
},
23-
}),
25+
commentId: {
26+
propDefinition: [
27+
common.props.clickup,
28+
"commentId",
29+
(c) => ({
30+
taskId: c.taskId,
31+
listId: c.listId,
32+
viewId: c.viewId,
33+
}),
34+
],
35+
},
36+
},
2437
};

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: 38 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,47 @@ 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
],
3637
},
37-
},
38-
additionalProps: builder.buildListProps({
39-
tailProps: {
40-
taskId: propsFragments.taskId,
41-
checklistId: propsFragments.checklistId,
38+
listId: {
39+
propDefinition: [
40+
common.props.clickup,
41+
"listId",
42+
(c) => ({
43+
folderId: c.folderId,
44+
spaceId: c.spaceId,
45+
}),
46+
],
4247
},
43-
}),
48+
taskId: {
49+
propDefinition: [
50+
common.props.clickup,
51+
"taskId",
52+
(c) => ({
53+
listId: c.listId,
54+
useCustomTaskIds: c.useCustomTaskIds,
55+
}),
56+
],
57+
},
58+
checklistId: {
59+
propDefinition: [
60+
common.props.clickup,
61+
"checklistId",
62+
(c) => ({
63+
taskId: c.taskId,
64+
useCustomTaskIds: c.useCustomTaskIds,
65+
authorizedTeamId: c.authorizedTeamId,
66+
}),
67+
],
68+
},
69+
},
4470
async run({ $ }) {
4571
const {
4672
taskId,

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

Lines changed: 27 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,36 @@ 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
],
2425
},
25-
},
26-
additionalProps: builder.buildListProps({
27-
tailProps: {
28-
taskId: propsFragments.taskId,
26+
listId: {
27+
propDefinition: [
28+
common.props.clickup,
29+
"listId",
30+
(c) => ({
31+
folderId: c.folderId,
32+
spaceId: c.spaceId,
33+
}),
34+
],
2935
},
30-
}),
36+
taskId: {
37+
propDefinition: [
38+
common.props.clickup,
39+
"taskId",
40+
(c) => ({
41+
listId: c.listId,
42+
useCustomTaskIds: c.useCustomTaskIds,
43+
}),
44+
],
45+
},
46+
},
3147
async run({ $ }) {
3248
const {
3349
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: 17 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,26 @@ 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+
},
44+
listId: {
45+
propDefinition: [
46+
common.props.clickup,
47+
"listId",
48+
(c) => ({
49+
folderId: c.folderId,
50+
spaceId: c.spaceId,
51+
}),
4052
],
4153
},
4254
},
43-
additionalProps: builder.buildListProps(),
4455
async run({ $ }) {
4556
const {
4657
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)