@skillful-ai/piece-clickup-extended 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -6
- package/src/index.js +2 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/attachments/create-task-attachment.d.ts +5 -5
- package/src/lib/actions/attachments/create-task-attachment.js +1 -1
- package/src/lib/actions/attachments/create-task-attachment.js.map +1 -1
- package/src/lib/actions/chat/create-channel-in-space-folder-list.d.ts +1 -1
- package/src/lib/actions/chat/create-channel-in-space-folder-list.js +1 -1
- package/src/lib/actions/chat/create-channel-in-space-folder-list.js.map +1 -1
- package/src/lib/actions/chat/create-channel.d.ts +1 -1
- package/src/lib/actions/chat/create-channel.js +1 -1
- package/src/lib/actions/chat/create-channel.js.map +1 -1
- package/src/lib/actions/chat/create-message-reaction.d.ts +1 -1
- package/src/lib/actions/chat/create-message-reaction.js +1 -1
- package/src/lib/actions/chat/create-message-reaction.js.map +1 -1
- package/src/lib/actions/chat/create-message-reply.d.ts +1 -1
- package/src/lib/actions/chat/create-message-reply.js +1 -1
- package/src/lib/actions/chat/create-message-reply.js.map +1 -1
- package/src/lib/actions/chat/create-message.d.ts +2 -2
- package/src/lib/actions/chat/create-message.js +1 -1
- package/src/lib/actions/chat/create-message.js.map +1 -1
- package/src/lib/actions/chat/delete-message-reaction.d.ts +1 -1
- package/src/lib/actions/chat/delete-message-reaction.js +1 -1
- package/src/lib/actions/chat/delete-message-reaction.js.map +1 -1
- package/src/lib/actions/chat/delete-message.d.ts +1 -1
- package/src/lib/actions/chat/delete-message.js +1 -1
- package/src/lib/actions/chat/delete-message.js.map +1 -1
- package/src/lib/actions/chat/get-channel-messages.d.ts +2 -2
- package/src/lib/actions/chat/get-channel-messages.js +1 -1
- package/src/lib/actions/chat/get-channel-messages.js.map +1 -1
- package/src/lib/actions/chat/get-channel.d.ts +2 -2
- package/src/lib/actions/chat/get-channel.js +1 -1
- package/src/lib/actions/chat/get-channel.js.map +1 -1
- package/src/lib/actions/chat/get-channels.d.ts +1 -1
- package/src/lib/actions/chat/get-channels.js +1 -1
- package/src/lib/actions/chat/get-channels.js.map +1 -1
- package/src/lib/actions/chat/get-message-reactions.d.ts +1 -1
- package/src/lib/actions/chat/get-message-reactions.js +1 -1
- package/src/lib/actions/chat/get-message-reactions.js.map +1 -1
- package/src/lib/actions/chat/get-message-replies.d.ts +1 -1
- package/src/lib/actions/chat/get-message-replies.js +1 -1
- package/src/lib/actions/chat/get-message-replies.js.map +1 -1
- package/src/lib/actions/chat/update-message.d.ts +1 -1
- package/src/lib/actions/chat/update-message.js +1 -1
- package/src/lib/actions/chat/update-message.js.map +1 -1
- package/src/lib/actions/comments/create-task-comment.d.ts +5 -5
- package/src/lib/actions/comments/create-task-comment.js +2 -2
- package/src/lib/actions/comments/create-task-comment.js.map +1 -1
- package/src/lib/actions/comments/get-task-comments.js +1 -1
- package/src/lib/actions/comments/get-task-comments.js.map +1 -1
- package/src/lib/actions/custom-fields/get-accessible-custom-fields.d.ts +3 -3
- package/src/lib/actions/custom-fields/get-accessible-custom-fields.js +1 -1
- package/src/lib/actions/custom-fields/get-accessible-custom-fields.js.map +1 -1
- package/src/lib/actions/custom-fields/set-custom-fields-value.d.ts +5 -5
- package/src/lib/actions/custom-fields/set-custom-fields-value.js +1 -1
- package/src/lib/actions/custom-fields/set-custom-fields-value.js.map +1 -1
- package/src/lib/actions/folders/create-folder.d.ts +2 -2
- package/src/lib/actions/folders/create-folder.js +1 -1
- package/src/lib/actions/folders/create-folder.js.map +1 -1
- package/src/lib/actions/folders/get-folders.d.ts +2 -2
- package/src/lib/actions/folders/get-folders.js +1 -1
- package/src/lib/actions/folders/get-folders.js.map +1 -1
- package/src/lib/actions/lists/create-folderless-list.d.ts +2 -2
- package/src/lib/actions/lists/create-folderless-list.js +1 -1
- package/src/lib/actions/lists/create-folderless-list.js.map +1 -1
- package/src/lib/actions/lists/create-list-in-folder.d.ts +3 -3
- package/src/lib/actions/lists/create-list-in-folder.js +1 -1
- package/src/lib/actions/lists/create-list-in-folder.js.map +1 -1
- package/src/lib/actions/lists/get-list.js +1 -1
- package/src/lib/actions/lists/get-list.js.map +1 -1
- package/src/lib/actions/lists/get-lists-in-folder.d.ts +3 -3
- package/src/lib/actions/lists/get-lists-in-folder.js +1 -1
- package/src/lib/actions/lists/get-lists-in-folder.js.map +1 -1
- package/src/lib/actions/spaces/get-space.d.ts +1 -1
- package/src/lib/actions/spaces/get-space.js +1 -1
- package/src/lib/actions/spaces/get-space.js.map +1 -1
- package/src/lib/actions/spaces/get-spaces.d.ts +1 -1
- package/src/lib/actions/spaces/get-spaces.js +1 -1
- package/src/lib/actions/spaces/get-spaces.js.map +1 -1
- package/src/lib/actions/tasks/create-subtask.d.ts +8 -8
- package/src/lib/actions/tasks/create-subtask.js +4 -3
- package/src/lib/actions/tasks/create-subtask.js.map +1 -1
- package/src/lib/actions/tasks/create-task-from-template.d.ts +4 -4
- package/src/lib/actions/tasks/create-task-from-template.js +1 -1
- package/src/lib/actions/tasks/create-task-from-template.js.map +1 -1
- package/src/lib/actions/tasks/create-task.d.ts +7 -7
- package/src/lib/actions/tasks/create-task.js +4 -3
- package/src/lib/actions/tasks/create-task.js.map +1 -1
- package/src/lib/actions/tasks/delete-task.d.ts +4 -4
- package/src/lib/actions/tasks/delete-task.js +1 -1
- package/src/lib/actions/tasks/delete-task.js.map +1 -1
- package/src/lib/actions/tasks/filter-workspace-tasks.d.ts +6 -6
- package/src/lib/actions/tasks/filter-workspace-tasks.js +3 -2
- package/src/lib/actions/tasks/filter-workspace-tasks.js.map +1 -1
- package/src/lib/actions/tasks/filter-workspace-time-entries.d.ts +6 -6
- package/src/lib/actions/tasks/filter-workspace-time-entries.js +1 -1
- package/src/lib/actions/tasks/filter-workspace-time-entries.js.map +1 -1
- package/src/lib/actions/tasks/get-task-by-name.d.ts +3 -3
- package/src/lib/actions/tasks/get-task-by-name.js +1 -1
- package/src/lib/actions/tasks/get-task-by-name.js.map +1 -1
- package/src/lib/actions/tasks/get-task.js +1 -1
- package/src/lib/actions/tasks/get-task.js.map +1 -1
- package/src/lib/actions/tasks/get-tasks-in-list.d.ts +4 -4
- package/src/lib/actions/tasks/get-tasks-in-list.js +1 -1
- package/src/lib/actions/tasks/get-tasks-in-list.js.map +1 -1
- package/src/lib/actions/tasks/update-task.d.ts +7 -7
- package/src/lib/actions/tasks/update-task.js +1 -1
- package/src/lib/actions/tasks/update-task.js.map +1 -1
- package/src/lib/actions/teams/get-teams.js +1 -1
- package/src/lib/actions/teams/get-teams.js.map +1 -1
- package/src/lib/common/index.d.ts +13 -11
- package/src/lib/common/index.js +30 -11
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/common/models.js.map +1 -1
- package/src/lib/triggers/index.d.ts +59 -42
- package/src/lib/triggers/index.js.map +1 -1
- package/src/lib/triggers/register-trigger.d.ts +21 -15
- package/src/lib/triggers/register-trigger.js +3 -3
- package/src/lib/triggers/register-trigger.js.map +1 -1
- package/src/lib/triggers/task-tag-updated.d.ts +17 -12
- package/src/lib/triggers/task-tag-updated.js +3 -3
- package/src/lib/triggers/task-tag-updated.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skillful-ai/piece-clickup-extended",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@activepieces/pieces-framework": "
|
|
9
|
-
"@activepieces/pieces-common": "0.7
|
|
10
|
-
"@activepieces/shared": "0.
|
|
8
|
+
"@activepieces/pieces-framework": "0.25.6",
|
|
9
|
+
"@activepieces/pieces-common": "0.11.7",
|
|
10
|
+
"@activepieces/shared": "0.40.1",
|
|
11
11
|
"@sinclair/typebox": "0.34.11",
|
|
12
12
|
"axios": "1.8.3",
|
|
13
13
|
"axios-retry": "4.4.1",
|
|
@@ -18,6 +18,10 @@
|
|
|
18
18
|
"qs": "6.11.2",
|
|
19
19
|
"semver": "7.6.0",
|
|
20
20
|
"tslib": "^2.3.0",
|
|
21
|
-
"zod": "
|
|
21
|
+
"zod": "4.1.13",
|
|
22
|
+
"@types/qs": "6.9.18"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsc -p tsconfig.lib.json ; cp package.json dist/"
|
|
22
26
|
}
|
|
23
|
-
}
|
|
27
|
+
}
|
package/src/index.js
CHANGED
|
@@ -44,6 +44,7 @@ const create_list_in_folder_1 = require("./lib/actions/lists/create-list-in-fold
|
|
|
44
44
|
const get_tasks_in_list_1 = require("./lib/actions/tasks/get-tasks-in-list");
|
|
45
45
|
const create_task_attachment_1 = require("./lib/actions/attachments/create-task-attachment");
|
|
46
46
|
const get_teams_1 = require("./lib/actions/teams/get-teams");
|
|
47
|
+
const common_1 = require("./lib/common");
|
|
47
48
|
exports.clickupAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
48
49
|
displayName: 'Personal API Token',
|
|
49
50
|
description: 'Your ClickUp Personal API Token. Go to ClickUp > Settings > Apps to generate one.',
|
|
@@ -104,7 +105,7 @@ exports.clickupExtended = (0, pieces_framework_1.createPiece)({
|
|
|
104
105
|
},
|
|
105
106
|
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
106
107
|
return {
|
|
107
|
-
Authorization:
|
|
108
|
+
Authorization: (0, common_1.getClickupToken)(auth),
|
|
108
109
|
};
|
|
109
110
|
}),
|
|
110
111
|
}),
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,qEAGwC;AACxC,iDAAqD;AACrD,oFAAqF;AACr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tB,+BAAiB;QACjB,iCAAkB;QAClB,gDAAyB;QACzB,kDAA0B;QAC1B,8CAAwB;QACxB,oDAA2B;QAC3B,iEAAiC;QACjC,+BAAiB;QACjB,qCAAoB;QACpB,qCAAoB;QACpB,sDAA4B;QAC5B,+BAAiB;QACjB,+DAAgC;QAChC,oDAA0B;QAC1B,uBAAuB;QACvB,+BAAiB;QACjB,mCAAmB;QACnB,6CAAuB;QACvB,iDAAyB;QACzB,yCAAqB;QACrB,oDAA2B;QAC3B,IAAA,yCAAyB,EAAC;YACxB,IAAI,EAAE,mBAAW;YACjB,OAAO,EAAE,GAAG,EAAE;gBACZ,OAAO,iCAAiC,CAAC;YAC3C,CAAC;YACD,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,IAAA,wBAAe,EAAC,IAAI,CAAC;iBACrC,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,OAAO,EAAE;QACP,UAAU;QACV,YAAY;QACZ,WAAW;QACX,eAAe;QACf,UAAU;QACV,sBAAsB;QACtB,aAAa;KACd;IACD,QAAQ,EAAR,0BAAQ;CACT,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const createClickupTaskAttachment: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
3
|
-
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
4
|
-
folder_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
5
|
-
list_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
6
|
-
task_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
+
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
+
folder_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
5
|
+
list_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
+
task_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
7
7
|
file: import("@activepieces/pieces-framework").FileProperty<false>;
|
|
8
8
|
file_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
9
|
file_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -36,7 +36,7 @@ exports.createClickupTaskAttachment = (0, pieces_framework_1.createAction)({
|
|
|
36
36
|
run(context) {
|
|
37
37
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const { task_id, file, file_url, file_name } = context.propsValue;
|
|
39
|
-
const accessToken = context.auth;
|
|
39
|
+
const accessToken = (0, common_1.getClickupToken)(context.auth);
|
|
40
40
|
let fileBuffer;
|
|
41
41
|
if (file && file.data) {
|
|
42
42
|
// Option 1: File was provided directly (or auto-downloaded by engine from URL)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-attachment.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-task-attachment.js","sourceRoot":"","sources":["../../../../../src/lib/actions/attachments/create-task-attachment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,0DAA0B;AAC1B,yCAA8D;AAC9D,iCAAwC;AAE3B,QAAA,2BAA2B,GAAG,IAAA,+BAAY,EAAC;IACtD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EACT,sHAAsH;IACxH,WAAW,EAAE,wBAAwB;IACrC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,QAAQ,EAAE,sBAAa,CAAC,QAAQ,EAAE;QAClC,SAAS,EAAE,sBAAa,CAAC,SAAS,EAAE;QACpC,OAAO,EAAE,sBAAa,CAAC,OAAO,EAAE;QAChC,OAAO,EAAE,sBAAa,CAAC,OAAO,EAAE;QAChC,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,MAAM;YACnB,WAAW,EACT,iGAAiG;YACnG,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EACT,6HAA6H;YAC/H,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,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,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createClickupChannelInSpaceFolderOrList: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
description: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
4
|
topic: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
locationType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
@@ -61,7 +61,7 @@ exports.createClickupChannelInSpaceFolderOrList = (0, pieces_framework_2.createA
|
|
|
61
61
|
run(configValue) {
|
|
62
62
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
63
|
const { workspace_id, description, visibility, locationType, locationId, topic } = configValue.propsValue;
|
|
64
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/channels/location`, configValue.auth, {
|
|
64
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/channels/location`, (0, common_1.getClickupToken)(configValue.auth), {
|
|
65
65
|
topic,
|
|
66
66
|
description,
|
|
67
67
|
visibility,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel-in-space-folder-list.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-channel-in-space-folder-list.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/create-channel-in-space-folder-list.ts"],"names":[],"mappings":";;;;AAAA,qEAA0D;AAC1D,+DAAyD;AACzD,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,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACpC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;YACD,YAAY,EAAE,QAAQ;SACvB,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAC,KAAK,EAAE,GAC7E,WAAW,CAAC,UAAU,CAAC;YACzB,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,IAAI,EACf,cAAc,YAAY,yBAAyB,EACnD,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC;gBACE,KAAK;gBACL,WAAW;gBACX,UAAU;gBACV,QAAQ,EAAE;oBACR,EAAE,EAAE,UAAU;oBACd,IAAI,EAAE,YAAY;iBACnB;aACF,EACD,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createClickupChannel: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
description: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
5
|
topic: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
@@ -49,7 +49,7 @@ exports.createClickupChannel = (0, pieces_framework_2.createAction)({
|
|
|
49
49
|
run(configValue) {
|
|
50
50
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
const { workspace_id, name, description, visibility, topic } = configValue.propsValue;
|
|
52
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/channels`, configValue.auth, {
|
|
52
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/channels`, (0, common_1.getClickupToken)(configValue.auth), {
|
|
53
53
|
name,
|
|
54
54
|
topic,
|
|
55
55
|
description,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-channel.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/create-channel.ts"],"names":[],"mappings":";;;;AAAA,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AACxC,qEAA8D;AAEjD,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,0CAA0C;IACvD,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACvB,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,qBAAqB;YAClC,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,sBAAsB;YACnC,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,qBAAqB;QACrB,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAClC,WAAW,EAAE,2BAA2B;YACxC,WAAW,EAAE,oBAAoB;YACjC,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;oBACpC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aACF;YACD,YAAY,EAAE,QAAQ;SACvB,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAC,KAAK,EAAE,GACzD,WAAW,CAAC,UAAU,CAAC;YACzB,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,IAAI,EACf,cAAc,YAAY,gBAAgB,EAC1C,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC;gBACE,IAAI;gBACJ,KAAK;gBACL,WAAW;gBACX,UAAU;aACX,EACD,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createClickupMessageReaction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
emoji: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
5
|
}>;
|
|
@@ -28,7 +28,7 @@ exports.createClickupMessageReaction = (0, pieces_framework_1.createAction)({
|
|
|
28
28
|
run(configValue) {
|
|
29
29
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const { workspace_id, message_id, emoji } = configValue.propsValue;
|
|
31
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/messages/${message_id}/reactions`, configValue.auth, { emoji }, {});
|
|
31
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/messages/${message_id}/reactions`, (0, common_1.getClickupToken)(configValue.auth), { emoji }, {});
|
|
32
32
|
return response.body;
|
|
33
33
|
});
|
|
34
34
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-message-reaction.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-message-reaction.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/create-message-reaction.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,4BAA4B,GAAG,IAAA,+BAAY,EAAC;IACvD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,sDAAsD;IACnE,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,0CAA0C;YACvD,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YACnE,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,IAAI,EACf,cAAc,YAAY,kBAAkB,UAAU,YAAY,EAClE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,EAAE,KAAK,EAAE,EACT,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const createClickupMessageReply: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
content: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
5
5
|
type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
@@ -40,7 +40,7 @@ exports.createClickupMessageReply = (0, pieces_framework_1.createAction)({
|
|
|
40
40
|
run(configValue) {
|
|
41
41
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
const { workspace_id, message_id, content, type } = configValue.propsValue;
|
|
43
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/messages/${message_id}/replies`, configValue.auth, {
|
|
43
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/messages/${message_id}/replies`, (0, common_1.getClickupToken)(configValue.auth), {
|
|
44
44
|
content,
|
|
45
45
|
type,
|
|
46
46
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-message-reply.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-message-reply.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/create-message-reply.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,mDAAmD;IAChE,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,+BAA+B;YAC5C,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;iBACjC;aACF;YACD,YAAY,EAAE,SAAS;SACxB,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC3E,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,IAAI,EACf,cAAc,YAAY,kBAAkB,UAAU,UAAU,EAChE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC;gBACE,OAAO;gBACP,IAAI;aACL,EACD,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const createClickupMessage: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
3
|
-
channel_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
+
channel_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
4
|
content: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
5
5
|
type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
6
6
|
}>;
|
|
@@ -36,7 +36,7 @@ exports.createClickupMessage = (0, pieces_framework_1.createAction)({
|
|
|
36
36
|
run(configValue) {
|
|
37
37
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
38
38
|
const { workspace_id, channel_id, content, type } = configValue.propsValue;
|
|
39
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/channels/${channel_id}/messages`, configValue.auth, {
|
|
39
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.POST, `workspaces/${workspace_id}/chat/channels/${channel_id}/messages`, (0, common_1.getClickupToken)(configValue.auth), {
|
|
40
40
|
content,
|
|
41
41
|
type,
|
|
42
42
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-message.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-message.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/create-message.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,sBAAa,CAAC,UAAU,EAAE;QACtC,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC5B,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,cAAc;YAC3B,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;iBACjC;aACF;YACD,YAAY,EAAE,SAAS;SACxB,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC3E,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,IAAI,EACf,cAAc,YAAY,kBAAkB,UAAU,WAAW,EACjE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC;gBACE,OAAO;gBACP,IAAI;aACL,EACD,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const deleteClickupMessageReaction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
reaction_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
5
|
}>;
|
|
@@ -28,7 +28,7 @@ exports.deleteClickupMessageReaction = (0, pieces_framework_1.createAction)({
|
|
|
28
28
|
run(configValue) {
|
|
29
29
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
const { workspace_id, message_id, reaction_id } = configValue.propsValue;
|
|
31
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.DELETE, `workspaces/${workspace_id}/chat/messages/${message_id}/reactions/${reaction_id}`, configValue.auth, {}, {});
|
|
31
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.DELETE, `workspaces/${workspace_id}/chat/messages/${message_id}/reactions/${reaction_id}`, (0, common_1.getClickupToken)(configValue.auth), {}, {});
|
|
32
32
|
return response.body;
|
|
33
33
|
});
|
|
34
34
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-message-reaction.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"delete-message-reaction.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/delete-message-reaction.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,4BAA4B,GAAG,IAAA,+BAAY,EAAC;IACvD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,wDAAwD;IACrE,WAAW,EAAE,yBAAyB;IACtC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,8BAA8B;YAC3C,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YACzE,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,MAAM,EACjB,cAAc,YAAY,kBAAkB,UAAU,cAAc,WAAW,EAAE,EACjF,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,EAAE,EACF,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const deleteClickupMessage: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
}>;
|
|
@@ -23,7 +23,7 @@ exports.deleteClickupMessage = (0, pieces_framework_1.createAction)({
|
|
|
23
23
|
run(configValue) {
|
|
24
24
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const { workspace_id, message_id } = configValue.propsValue;
|
|
26
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.DELETE, `workspaces/${workspace_id}/chat/messages/${message_id}`, configValue.auth, {}, {});
|
|
26
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.DELETE, `workspaces/${workspace_id}/chat/messages/${message_id}`, (0, common_1.getClickupToken)(configValue.auth), {}, {});
|
|
27
27
|
return response.body;
|
|
28
28
|
});
|
|
29
29
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-message.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"delete-message.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/delete-message.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,6BAA6B;YAC1C,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC5D,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,MAAM,EACjB,cAAc,YAAY,kBAAkB,UAAU,EAAE,EACxD,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,EAAE,EACF,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const getClickupChannelMessages: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
3
|
-
channel_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
+
channel_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
4
|
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
5
|
content_format: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
6
6
|
}>;
|
|
@@ -44,7 +44,7 @@ exports.getClickupChannelMessages = (0, pieces_framework_2.createAction)({
|
|
|
44
44
|
.max(100, 'You can fetch between 1 and 100 messages'),
|
|
45
45
|
});
|
|
46
46
|
const { workspace_id, channel_id, limit, content_format } = configValue.propsValue;
|
|
47
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/channels/${channel_id}/messages`, configValue.auth, undefined, {
|
|
47
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/channels/${channel_id}/messages`, (0, common_1.getClickupToken)(configValue.auth), undefined, {
|
|
48
48
|
limit,
|
|
49
49
|
content_format,
|
|
50
50
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-channel-messages.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-channel-messages.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/get-channel-messages.ts"],"names":[],"mappings":";;;;AAAA,qEAA0D;AAC1D,+DAGqC;AACrC,yCAA+E;AAC/E,iCAAwC;AACxC,6BAAwB;AACxB,qEAA8D;AAEjD,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE,sBAAsB;IACnC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,sBAAa,CAAC,UAAU,EAAE;QACtC,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,uCAAuC;YACpD,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACtC,WAAW,EAAE,oCAAoC;YACjD,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;oBACvC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;iBAC7C;aACF;YACD,YAAY,EAAE,SAAS;SACxB,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,+BAAe,CAAC,WAAW,CAAC,WAAW,CAAC,UAAU,EAAE;gBACxD,KAAK,EAAE,OAAC;qBACL,MAAM,EAAE;qBACR,GAAG,CAAC,CAAC,CAAC;qBACN,GAAG,CAAC,GAAG,EAAE,0CAA0C,CAAC;aACxD,CAAC,CAAC;YAEH,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,EAAE,GACvD,WAAW,CAAC,UAAU,CAAC;YAEzB,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,GAAG,EACd,cAAc,YAAY,kBAAkB,UAAU,WAAW,EACjE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,SAAS,EACT;gBACE,KAAK;gBACL,cAAc;aACf,CACF,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const getClickupChannel: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
3
|
-
channel_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
+
channel_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
4
|
}>;
|
|
@@ -18,7 +18,7 @@ exports.getClickupChannel = (0, pieces_framework_1.createAction)({
|
|
|
18
18
|
run(configValue) {
|
|
19
19
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
20
|
const { workspace_id, channel_id } = configValue.propsValue;
|
|
21
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/channels/${channel_id}`, configValue.auth, undefined, {});
|
|
21
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/channels/${channel_id}`, (0, common_1.getClickupToken)(configValue.auth), undefined, {});
|
|
22
22
|
return response.body;
|
|
23
23
|
});
|
|
24
24
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-channel.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-channel.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/get-channel.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,uCAAuC;IACpD,WAAW,EAAE,aAAa;IAC1B,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,sBAAa,CAAC,UAAU,EAAE;KACvC;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC5D,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,GAAG,EACd,cAAc,YAAY,kBAAkB,UAAU,EAAE,EACxD,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,SAAS,EACT,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const getClickupChannels: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
include_hidden: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
4
4
|
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
5
|
}>;
|
|
@@ -36,7 +36,7 @@ exports.getClickupChannels = (0, pieces_framework_1.createAction)({
|
|
|
36
36
|
.max(100, 'You can fetch between 1 and 100 messages'),
|
|
37
37
|
});
|
|
38
38
|
const { workspace_id, include_hidden, limit } = configValue.propsValue;
|
|
39
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/channels`, configValue.auth, undefined, {
|
|
39
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/channels`, (0, common_1.getClickupToken)(configValue.auth), undefined, {
|
|
40
40
|
limit,
|
|
41
41
|
is_follower: false,
|
|
42
42
|
include_hidden,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-channels.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-channels.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/get-channels.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAGqC;AACrC,yCAA+E;A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pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
}>;
|
|
@@ -23,7 +23,7 @@ exports.getClickupMessageReactions = (0, pieces_framework_1.createAction)({
|
|
|
23
23
|
run(configValue) {
|
|
24
24
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const { workspace_id, message_id } = configValue.propsValue;
|
|
26
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/messages/${message_id}/reactions`, configValue.auth, {}, {});
|
|
26
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/messages/${message_id}/reactions`, (0, common_1.getClickupToken)(configValue.auth), {}, {});
|
|
27
27
|
return response.body;
|
|
28
28
|
});
|
|
29
29
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-message-reactions.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-message-reactions.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/get-message-reactions.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,0BAA0B,GAAG,IAAA,+BAAY,EAAC;IACrD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,sDAAsD;IACnE,WAAW,EAAE,uBAAuB;IACpC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,wCAAwC;YACrD,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC5D,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,GAAG,EACd,cAAc,YAAY,kBAAkB,UAAU,YAAY,EAClE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,EAAE,EACF,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const getClickupMessageReplies: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
}>;
|
|
@@ -23,7 +23,7 @@ exports.getClickupMessageReplies = (0, pieces_framework_1.createAction)({
|
|
|
23
23
|
run(configValue) {
|
|
24
24
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
25
|
const { workspace_id, message_id } = configValue.propsValue;
|
|
26
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/messages/${message_id}/replies`, configValue.auth, {}, {});
|
|
26
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.GET, `workspaces/${workspace_id}/chat/messages/${message_id}/replies`, (0, common_1.getClickupToken)(configValue.auth), {}, {});
|
|
27
27
|
return response.body;
|
|
28
28
|
});
|
|
29
29
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-message-replies.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-message-replies.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/get-message-replies.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,oDAAoD;IACjE,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,sCAAsC;YACnD,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC5D,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,GAAG,EACd,cAAc,YAAY,kBAAkB,UAAU,UAAU,EAChE,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,EAAE,EACF,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const updateClickupMessage: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
3
|
message_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
content: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
5
5
|
content_format: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
@@ -39,7 +39,7 @@ exports.updateClickupMessage = (0, pieces_framework_1.createAction)({
|
|
|
39
39
|
run(configValue) {
|
|
40
40
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
const { workspace_id, message_id, content, content_format } = configValue.propsValue;
|
|
42
|
-
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.PATCH, `workspaces/${workspace_id}/chat/messages/${message_id}`, configValue.auth, {
|
|
42
|
+
const response = yield (0, common_1.callClickUpApi3)(pieces_common_1.HttpMethod.PATCH, `workspaces/${workspace_id}/chat/messages/${message_id}`, (0, common_1.getClickupToken)(configValue.auth), {
|
|
43
43
|
content,
|
|
44
44
|
content_format,
|
|
45
45
|
}, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-message.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"update-message.js","sourceRoot":"","sources":["../../../../../src/lib/actions/chat/update-message.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qEAA0D;AAC1D,+DAAyD;AACzD,yCAA+E;AAC/E,iCAAwC;AAE3B,QAAA,oBAAoB,GAAG,IAAA,+BAAY,EAAC;IAC/C,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE,gBAAgB;IAC7B,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,6BAA6B;YAC1C,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,iBAAiB;YAC9B,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACtC,WAAW,EAAE,+BAA+B;YAC5C,WAAW,EAAE,wBAAwB;YACrC,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;oBACvC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;iBAC7C;aACF;SACF,CAAC;KACH;IAEK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,YAAY,EAAG,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YACtF,MAAM,QAAQ,GAAG,MAAM,IAAA,wBAAe,EACpC,0BAAU,CAAC,KAAK,EAChB,cAAc,YAAY,kBAAkB,UAAU,EAAE,EACxD,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC;gBACE,OAAO;gBACP,cAAc;aACf,EACD,EAAE,CACH,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const createClickupTaskComment: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
3
|
-
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
4
|
-
list_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
5
|
-
task_id: import("@activepieces/pieces-framework").DropdownProperty<string, false
|
|
2
|
+
workspace_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
+
space_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
+
list_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
5
|
+
task_id: import("@activepieces/pieces-framework").DropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
6
|
comment: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
7
|
-
assignee_id: import("@activepieces/pieces-framework").DropdownProperty<number, false
|
|
7
|
+
assignee_id: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").SecretTextProperty<true>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
8
8
|
}>;
|
|
@@ -28,13 +28,13 @@ exports.createClickupTaskComment = (0, pieces_framework_1.createAction)({
|
|
|
28
28
|
const { task_id, comment } = configValue.propsValue;
|
|
29
29
|
let assignee_id = configValue.propsValue.assignee_id;
|
|
30
30
|
if (!assignee_id) {
|
|
31
|
-
const user_request = yield (0, common_1.callClickUpApi)(pieces_common_1.HttpMethod.GET, `/user`, configValue.auth, {});
|
|
31
|
+
const user_request = yield (0, common_1.callClickUpApi)(pieces_common_1.HttpMethod.GET, `/user`, (0, common_1.getClickupToken)(configValue.auth), {});
|
|
32
32
|
if (user_request.body['user'] === undefined) {
|
|
33
33
|
throw 'Please connect to your ClickUp account';
|
|
34
34
|
}
|
|
35
35
|
assignee_id = user_request.body['user']['id'];
|
|
36
36
|
}
|
|
37
|
-
const response = yield (0, common_1.callClickUpApi)(pieces_common_1.HttpMethod.POST, `/task/${task_id}/comment`, configValue.auth, {
|
|
37
|
+
const response = yield (0, common_1.callClickUpApi)(pieces_common_1.HttpMethod.POST, `/task/${task_id}/comment`, (0, common_1.getClickupToken)(configValue.auth), {
|
|
38
38
|
comment_text: comment,
|
|
39
39
|
assignee: assignee_id,
|
|
40
40
|
notify_all: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-task-comment.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"create-task-comment.js","sourceRoot":"","sources":["../../../../../src/lib/actions/comments/create-task-comment.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA8E;AAC9E,iCAAwC;AAE3B,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACnD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,wCAAwC;IACrD,WAAW,EAAE,qBAAqB;IAClC,KAAK,EAAE;QACL,YAAY,EAAE,sBAAa,CAAC,YAAY,EAAE;QAC1C,QAAQ,EAAE,sBAAa,CAAC,QAAQ,E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createAction)({
|
|
|
21
21
|
run(configValue) {
|
|
22
22
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
const { task_id } = configValue.propsValue;
|
|
24
|
-
const response = yield (0, common_1.callClickUpApi)(pieces_common_1.HttpMethod.GET, `/task/${task_id}/comment`, configValue.auth, {});
|
|
24
|
+
const response = yield (0, common_1.callClickUpApi)(pieces_common_1.HttpMethod.GET, `/task/${task_id}/comment`, (0, common_1.getClickupToken)(configValue.auth), {});
|
|
25
25
|
return response.body;
|
|
26
26
|
});
|
|
27
27
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-task-comments.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"get-task-comments.js","sourceRoot":"","sources":["../../../../../src/lib/actions/comments/get-task-comments.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA+D;AAC/D,iCAAwC;AAE3B,QAAA,sBAAsB,GAAG,IAAA,+BAAY,EAAC;IACjD,IAAI,EAAE,eAAW;IACjB,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,sCAAsC;IACnD,WAAW,EAAE,mBAAmB;IAChC,KAAK,EAAE;QACL,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC1B,WAAW,EAAE,2BAA2B;YACxC,WAAW,EAAE,SAAS;YACtB,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,WAAW;;YACnB,MAAM,EAAE,OAAO,EAAE,GAAG,WAAW,CAAC,UAAU,CAAC;YAC3C,MAAM,QAAQ,GAAG,MAAM,IAAA,uBAAc,EACnC,0BAAU,CAAC,GAAG,EACd,SAAS,OAAO,UAAU,EAC1B,IAAA,wBAAe,EAAC,WAAW,CAAC,IAAI,CAAC,EACjC,EAAE,CACH,CAAC;YAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|