diff --git a/components/clickup/actions/create-chat-view-comment/create-chat-view-comment.mjs b/components/clickup/actions/create-chat-view-comment/create-chat-view-comment.mjs index babeeb48f682b..61ddef9cd965e 100644 --- a/components/clickup/actions/create-chat-view-comment/create-chat-view-comment.mjs +++ b/components/clickup/actions/create-chat-view-comment/create-chat-view-comment.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-chat-view-comment", name: "Create Chat View Comment", description: "Creates a chat view comment. [See the documentation](https://clickup.com/api) in **Comments / Create Chat View Comment** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-checklist-item/create-checklist-item.mjs b/components/clickup/actions/create-checklist-item/create-checklist-item.mjs index e23a6b7108568..461820406748e 100644 --- a/components/clickup/actions/create-checklist-item/create-checklist-item.mjs +++ b/components/clickup/actions/create-checklist-item/create-checklist-item.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-checklist-item", name: "Create Checklist Item", description: "Creates a new item in a checklist. [See the documentation](https://clickup.com/api) in **Checklists / Create Checklist Item** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-checklist/create-checklist.mjs b/components/clickup/actions/create-checklist/create-checklist.mjs index bf690e678f5cb..60c72daa7c5c3 100644 --- a/components/clickup/actions/create-checklist/create-checklist.mjs +++ b/components/clickup/actions/create-checklist/create-checklist.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-checklist", name: "Create Checklist", description: "Creates a new checklist in a task. [See the documentation](https://clickup.com/api) in **Checklists / Create Checklist** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-folder/create-folder.mjs b/components/clickup/actions/create-folder/create-folder.mjs index abbad2bc62a8f..7716c5a860f5e 100644 --- a/components/clickup/actions/create-folder/create-folder.mjs +++ b/components/clickup/actions/create-folder/create-folder.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-folder", name: "Create Folder", description: "Creates a new folder. [See the documentation](https://clickup.com/api) in **Folders / Create Folder** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-list-comment/create-list-comment.mjs b/components/clickup/actions/create-list-comment/create-list-comment.mjs index d55cefa8d426d..49e554118205e 100644 --- a/components/clickup/actions/create-list-comment/create-list-comment.mjs +++ b/components/clickup/actions/create-list-comment/create-list-comment.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-create-list-comment", name: "Create List Comment", description: "Creates a list comment. [See the documentation](https://clickup.com/api) in **Comments / Create List Comment** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-list/create-list.mjs b/components/clickup/actions/create-list/create-list.mjs index b5dd6b8b81caf..ece5ef6f86ff9 100644 --- a/components/clickup/actions/create-list/create-list.mjs +++ b/components/clickup/actions/create-list/create-list.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-list", name: "Create List", description: "Creates a new list. [See the documentation](https://clickup.com/api) in **Lists / Create List** section.", - version: "0.0.15", + version: "0.0.16", type: "action", props: { clickup, diff --git a/components/clickup/actions/create-space/create-space.mjs b/components/clickup/actions/create-space/create-space.mjs index 9e14536d62e5a..dc00a2b07c2a0 100644 --- a/components/clickup/actions/create-space/create-space.mjs +++ b/components/clickup/actions/create-space/create-space.mjs @@ -4,7 +4,7 @@ export default { key: "clickup-create-space", name: "Create Space", description: "Creates a new space. [See the documentation](https://clickup.com/api) in **Spaces / Create Space** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-task-comment/create-task-comment.mjs b/components/clickup/actions/create-task-comment/create-task-comment.mjs index 021f67e107c5c..ddf9c14e5d313 100644 --- a/components/clickup/actions/create-task-comment/create-task-comment.mjs +++ b/components/clickup/actions/create-task-comment/create-task-comment.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-task-comment", name: "Create Task Comment", description: "Creates a task comment. [See the documentation](https://clickup.com/api) in **Comments / Create Task Comment** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-task-from-template/create-task-from-template.mjs b/components/clickup/actions/create-task-from-template/create-task-from-template.mjs index e7b82708cfa99..447c518431b13 100644 --- a/components/clickup/actions/create-task-from-template/create-task-from-template.mjs +++ b/components/clickup/actions/create-task-from-template/create-task-from-template.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-create-task-from-template", name: "Create Task From Template", description: "Creates a new task from a template. [See the documentation](https://clickup.com/api) in **Task Templates / Create Task From Template** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-task/create-task.mjs b/components/clickup/actions/create-task/create-task.mjs index 147c5c65f31c0..de55c4938b60a 100644 --- a/components/clickup/actions/create-task/create-task.mjs +++ b/components/clickup/actions/create-task/create-task.mjs @@ -7,7 +7,7 @@ export default { key: "clickup-create-task", name: "Create Task", description: "Creates a new task. [See the documentation](https://clickup.com/api) in **Tasks / Create Task** section.", - version: "0.0.15", + version: "0.0.16", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-threaded-comment/create-threaded-comment.mjs b/components/clickup/actions/create-threaded-comment/create-threaded-comment.mjs index 05bdb3c012fa9..cb3e910cbb43b 100644 --- a/components/clickup/actions/create-threaded-comment/create-threaded-comment.mjs +++ b/components/clickup/actions/create-threaded-comment/create-threaded-comment.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-create-threaded-comment", name: "Create Threaded Comment", description: "Creates a threaded comment. [See the documentation](https://clickup.com/api) in **Comments / Create Threaded Comment** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/create-time-entry/create-time-entry.mjs b/components/clickup/actions/create-time-entry/create-time-entry.mjs new file mode 100644 index 0000000000000..cc10f564843b1 --- /dev/null +++ b/components/clickup/actions/create-time-entry/create-time-entry.mjs @@ -0,0 +1,100 @@ +import app from "../../clickup.app.mjs"; +import common from "../common/task-props.mjs"; + +export default { + ...common, + key: "clickup-create-time-entry", + name: "Create Time Entry", + description: "Create a new time entry. [See the documentation](https://developer.clickup.com/reference/createatimeentry)", + version: "0.0.1", + type: "action", + props: { + ...common.props, + folderId: { + propDefinition: [ + common.props.clickup, + "folderId", + (c) => ({ + spaceId: c.spaceId, + }), + ], + optional: true, + }, + listId: { + propDefinition: [ + common.props.clickup, + "listId", + (c) => ({ + folderId: c.folderId, + spaceId: c.spaceId, + }), + ], + optional: true, + }, + taskId: { + propDefinition: [ + common.props.clickup, + "taskId", + (c) => ({ + listId: c.listId, + useCustomTaskIds: c.useCustomTaskIds, + authorizedTeamId: c.authorizedTeamId, + }), + ], + description: "To show options please select a **List** first", + optional: true, + }, + tags: { + propDefinition: [ + app, + "tags", + (c) => ({ + spaceId: c.spaceId, + }), + ], + optional: true, + }, + start: { + type: "string", + label: "Start Time", + description: "The Start Time, can be ISO 8601 Date (.e.g `2025-08-06T01:50:19Z`) or Unix timestamp in milliseconds (.e.g `1595282645000`)", + }, + end: { + type: "string", + label: "End Time", + description: "The End Time, can be ISO 8601 Date (.e.g `2025-08-06T01:50:19Z`) or Unix timestamp in milliseconds (.e.g `1595282645000`)", + }, + description: { + type: "string", + label: "Description", + description: "Description of the time entry", + }, + }, + async run({ $ }) { + const start = new Date(+this.start || this.start).getTime(); + const end = new Date(+this.end || this.end).getTime(); + + const data = { + tid: this.taskId, + description: this.description, + start, + end, + stop: end, + }; + + console.log(data); + + const response = await this.clickup.createTimeEntry({ + $, + teamId: this.workspaceId, + params: { + custom_task_ids: this.useCustomTaskIds, + }, + data, + }); + + $.export("$summary", "Successfully created a new time entry"); + + return response; + }, +}; diff --git a/components/clickup/actions/create-view-comment/create-view-comment.mjs b/components/clickup/actions/create-view-comment/create-view-comment.mjs index 5d6da3311c73c..c72b430299f3c 100644 --- a/components/clickup/actions/create-view-comment/create-view-comment.mjs +++ b/components/clickup/actions/create-view-comment/create-view-comment.mjs @@ -4,7 +4,7 @@ export default { key: "clickup-create-view-comment", name: "Create View Comment", description: "Creates a view comment. [See the documentation](https://clickup.com/api) in **Comments / Create Chat View Comment** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/delete-checklist-item/delete-checklist-item.mjs b/components/clickup/actions/delete-checklist-item/delete-checklist-item.mjs index 001a2fef5cca8..2ed56f22c83d4 100644 --- a/components/clickup/actions/delete-checklist-item/delete-checklist-item.mjs +++ b/components/clickup/actions/delete-checklist-item/delete-checklist-item.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-checklist-item", name: "Delete Checklist Item", description: "Deletes item in a checklist. [See the documentation](https://clickup.com/api) in **Checklists / Delete Checklist Item** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/delete-checklist/delete-checklist.mjs b/components/clickup/actions/delete-checklist/delete-checklist.mjs index c869707936464..8882be99533d1 100644 --- a/components/clickup/actions/delete-checklist/delete-checklist.mjs +++ b/components/clickup/actions/delete-checklist/delete-checklist.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-checklist", name: "Delete Checklist", description: "Deletes a checklist in a task. [See the documentation](https://clickup.com/api) in **Checklists / Delete Checklist** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/delete-comment/delete-comment.mjs b/components/clickup/actions/delete-comment/delete-comment.mjs index 81fbb43092d6d..ca5e9f187d0be 100644 --- a/components/clickup/actions/delete-comment/delete-comment.mjs +++ b/components/clickup/actions/delete-comment/delete-comment.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-comment", name: "Delete Comment", description: "Deletes a comment. [See the documentation](https://clickup.com/api) in **Comments / Deleet Comment** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { commentId } = this; diff --git a/components/clickup/actions/delete-folder/delete-folder.mjs b/components/clickup/actions/delete-folder/delete-folder.mjs index ba2292385ea4c..e5c542e2b038d 100644 --- a/components/clickup/actions/delete-folder/delete-folder.mjs +++ b/components/clickup/actions/delete-folder/delete-folder.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-folder", name: "Delete Folder", description: "Delete a folder. [See the documentation](https://clickup.com/api) in **Folders / Delete Folder** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { folderId } = this; diff --git a/components/clickup/actions/delete-list/delete-list.mjs b/components/clickup/actions/delete-list/delete-list.mjs index c54583b0d4bb0..dba8fe72f5a5a 100644 --- a/components/clickup/actions/delete-list/delete-list.mjs +++ b/components/clickup/actions/delete-list/delete-list.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-list", name: "Delete List", description: "Delete a list. [See the documentation](https://clickup.com/api) in **Lists / Delete List** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/delete-space/delete-space.mjs b/components/clickup/actions/delete-space/delete-space.mjs index 30e3d4aa3413e..ede23f63c1573 100644 --- a/components/clickup/actions/delete-space/delete-space.mjs +++ b/components/clickup/actions/delete-space/delete-space.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-space", name: "Delete Space", description: "Delete a space. [See the documentation](https://clickup.com/api) in **Spaces / Delete Space** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { spaceId } = this; diff --git a/components/clickup/actions/delete-task/delete-task.mjs b/components/clickup/actions/delete-task/delete-task.mjs index b425ded01f966..b42e25002c73f 100644 --- a/components/clickup/actions/delete-task/delete-task.mjs +++ b/components/clickup/actions/delete-task/delete-task.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-delete-task", name: "Delete Task", description: "Delete a task. [See the documentation](https://clickup.com/api) in **Tasks / Delete Task** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-custom-fields/get-custom-fields.mjs b/components/clickup/actions/get-custom-fields/get-custom-fields.mjs index 113476ac271e1..046840dc41c13 100644 --- a/components/clickup/actions/get-custom-fields/get-custom-fields.mjs +++ b/components/clickup/actions/get-custom-fields/get-custom-fields.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-custom-fields", name: "Get Custom Fields", description: "Get a list of custom fields. [See the documentation](https://clickup.com/api) in **Custom Fields / Get Accessible Custom Fields** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-folder-views/get-folder-views.mjs b/components/clickup/actions/get-folder-views/get-folder-views.mjs index 9e4485127d62e..9fef8e5123611 100644 --- a/components/clickup/actions/get-folder-views/get-folder-views.mjs +++ b/components/clickup/actions/get-folder-views/get-folder-views.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-folder-views", name: "Get Folder Views", description: "Get all views of a folder. [See the documentation](https://clickup.com/api) in **Views / Get Folder Views** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { folderId } = this; diff --git a/components/clickup/actions/get-folder/get-folder.mjs b/components/clickup/actions/get-folder/get-folder.mjs index 242f9a06b16e5..7999bd309c869 100644 --- a/components/clickup/actions/get-folder/get-folder.mjs +++ b/components/clickup/actions/get-folder/get-folder.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-folder", name: "Get Folder", description: "Get a folder in a workplace. [See the documentation](https://clickup.com/api) in **Folders / Get Folder** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { folderId } = this; diff --git a/components/clickup/actions/get-folders/get-folders.mjs b/components/clickup/actions/get-folders/get-folders.mjs index 20f87ea35c8ca..749c7ebf174e6 100644 --- a/components/clickup/actions/get-folders/get-folders.mjs +++ b/components/clickup/actions/get-folders/get-folders.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-folders", name: "Get Folders", description: "Get a list of folders in a workplace. [See the documentation](https://clickup.com/api) in **Folders / Get Folders** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-list-comments/get-list-comments.mjs b/components/clickup/actions/get-list-comments/get-list-comments.mjs index b8a8df580a2a4..bc45f51104586 100644 --- a/components/clickup/actions/get-list-comments/get-list-comments.mjs +++ b/components/clickup/actions/get-list-comments/get-list-comments.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-list-comments", name: "Get List Comments", description: "Get a list comments. [See the documentation](https://clickup.com/api) in **Comments / Get List Comments** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-list-views/get-list-views.mjs b/components/clickup/actions/get-list-views/get-list-views.mjs index 918f54e07efd7..ff80cc217be80 100644 --- a/components/clickup/actions/get-list-views/get-list-views.mjs +++ b/components/clickup/actions/get-list-views/get-list-views.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-list-views", name: "Get List Views", description: "Get all views of a list. [See the documentation](https://clickup.com/api) in **Views / Get List Views** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-list/get-list.mjs b/components/clickup/actions/get-list/get-list.mjs index d8025d5a0c39b..a94bbc05b10f9 100644 --- a/components/clickup/actions/get-list/get-list.mjs +++ b/components/clickup/actions/get-list/get-list.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-list", name: "Get List", description: "Get a list. [See the documentation](https://clickup.com/api) in **Lists / Get List** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-lists/get-lists.mjs b/components/clickup/actions/get-lists/get-lists.mjs index a9a3af88e5403..b83a945e5a6d8 100644 --- a/components/clickup/actions/get-lists/get-lists.mjs +++ b/components/clickup/actions/get-lists/get-lists.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-lists", name: "Get Lists", description: "Get a list of lists. [See the documentation](https://clickup.com/api) in **Lists / Get Lists** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-space-views/get-space-views.mjs b/components/clickup/actions/get-space-views/get-space-views.mjs index ba6fcf95b31fc..7cb127c07fb6f 100644 --- a/components/clickup/actions/get-space-views/get-space-views.mjs +++ b/components/clickup/actions/get-space-views/get-space-views.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-space-views", name: "Get Space Views", description: "Get all views of a space. [See the documentation](https://clickup.com/api) in **Views / Get Space Views** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { spaceId } = this; diff --git a/components/clickup/actions/get-space/get-space.mjs b/components/clickup/actions/get-space/get-space.mjs index 2297a2dbc301a..7b79e04ceed0a 100644 --- a/components/clickup/actions/get-space/get-space.mjs +++ b/components/clickup/actions/get-space/get-space.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-space", name: "Get Space", description: "Get a space in a workplace. [See the documentation](https://clickup.com/api) in **Spaces / Get Space** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { spaceId } = this; diff --git a/components/clickup/actions/get-spaces/get-spaces.mjs b/components/clickup/actions/get-spaces/get-spaces.mjs index dc24a41f5c03a..feb2709ca6157 100644 --- a/components/clickup/actions/get-spaces/get-spaces.mjs +++ b/components/clickup/actions/get-spaces/get-spaces.mjs @@ -4,7 +4,7 @@ export default { key: "clickup-get-spaces", name: "Get Spaces", description: "Get a list of spaces in a workplace. [See the documentation](https://clickup.com/api) in **Spaces / Get Spaces** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-task-comments/get-task-comments.mjs b/components/clickup/actions/get-task-comments/get-task-comments.mjs index 05ffdc0f0e2f1..9d5b9c9128ddc 100644 --- a/components/clickup/actions/get-task-comments/get-task-comments.mjs +++ b/components/clickup/actions/get-task-comments/get-task-comments.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-task-comments", name: "Get Task Comments", description: "Get a task comments. [See the documentation](https://clickup.com/api) in **Comments / Get Task Comments** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-task-templates/get-task-templates.mjs b/components/clickup/actions/get-task-templates/get-task-templates.mjs index f8d50d0d858e8..f1f5343c53305 100644 --- a/components/clickup/actions/get-task-templates/get-task-templates.mjs +++ b/components/clickup/actions/get-task-templates/get-task-templates.mjs @@ -4,7 +4,7 @@ export default { key: "clickup-get-task-templates", name: "Get Task Templates", description: "Get a list of templates. [See the documentation](https://clickup.com/api) in **Task Templates / Get Task Templates** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-task/get-task.mjs b/components/clickup/actions/get-task/get-task.mjs index 1de5fb08e6e59..31390289cc7ce 100644 --- a/components/clickup/actions/get-task/get-task.mjs +++ b/components/clickup/actions/get-task/get-task.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-task", name: "Get Task", description: "Get a task. [See the documentation](https://clickup.com/api) in **Tasks / Get Task** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-tasks/get-tasks.mjs b/components/clickup/actions/get-tasks/get-tasks.mjs index a1121435fbe27..6447075e2f5ae 100644 --- a/components/clickup/actions/get-tasks/get-tasks.mjs +++ b/components/clickup/actions/get-tasks/get-tasks.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-get-tasks", name: "Get Tasks", description: "Get a list of tasks. [See the documentation](https://clickup.com/api) in **Tasks / Get Tasks** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-team-views/get-team-views.mjs b/components/clickup/actions/get-team-views/get-team-views.mjs index 33e8332ddc9bd..fc8a88ea4ac1a 100644 --- a/components/clickup/actions/get-team-views/get-team-views.mjs +++ b/components/clickup/actions/get-team-views/get-team-views.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-team-views", name: "Get Team Views", description: "Get all views of a team. [See the documentation](https://clickup.com/api) in **Views / Get Team Views** section.", - version: "0.0.10", + version: "0.0.11", type: "action", async run({ $ }) { const { workspaceId } = this; diff --git a/components/clickup/actions/get-view-comments/get-view-comments.mjs b/components/clickup/actions/get-view-comments/get-view-comments.mjs index 09a5af022ab8b..57c463eadcc07 100644 --- a/components/clickup/actions/get-view-comments/get-view-comments.mjs +++ b/components/clickup/actions/get-view-comments/get-view-comments.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-view-comments", name: "Get View Comments", description: "Get a view comments. [See the documentation](https://clickup.com/api) in **Comments / Get Chat View Comments** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-view-tasks/get-view-tasks.mjs b/components/clickup/actions/get-view-tasks/get-view-tasks.mjs index 1eb073ca21bd3..e6697a30f57e0 100644 --- a/components/clickup/actions/get-view-tasks/get-view-tasks.mjs +++ b/components/clickup/actions/get-view-tasks/get-view-tasks.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-view-tasks", name: "Get View Tasks", description: "Get all tasks of a view. [See the documentation](https://clickup.com/api) in **Views / Get View Tasks** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/get-view/get-view.mjs b/components/clickup/actions/get-view/get-view.mjs index 3882d398116a8..a2d367c20baec 100644 --- a/components/clickup/actions/get-view/get-view.mjs +++ b/components/clickup/actions/get-view/get-view.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-get-view", name: "Get View", description: "Get a view. [See the documentation](https://clickup.com/api) in **Views / Get View** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/remove-task-custom-field/remove-task-custom-field.mjs b/components/clickup/actions/remove-task-custom-field/remove-task-custom-field.mjs index 02c79b8185424..5a6d5b599eecc 100644 --- a/components/clickup/actions/remove-task-custom-field/remove-task-custom-field.mjs +++ b/components/clickup/actions/remove-task-custom-field/remove-task-custom-field.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-remove-task-custom-field", name: "Remove Task Custom Field", description: "Remove custom field from a task. [See the documentation](https://clickup.com/api) in **Custom Fields / Remove Custom Field Value** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/start-time-entry/start-time-entry.mjs b/components/clickup/actions/start-time-entry/start-time-entry.mjs index dd2ebd27885af..7b9b092bf2151 100644 --- a/components/clickup/actions/start-time-entry/start-time-entry.mjs +++ b/components/clickup/actions/start-time-entry/start-time-entry.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-start-time-entry", name: "Start Time Entry", description: "Start time entry. [See the documentation](https://clickup.com/api/clickupreference/operation/StartatimeEntry)", - version: "0.0.4", + version: "0.0.5", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/stop-time-entry/stop-time-entry.mjs b/components/clickup/actions/stop-time-entry/stop-time-entry.mjs index 7634ec8801080..a7cfa3de7e218 100644 --- a/components/clickup/actions/stop-time-entry/stop-time-entry.mjs +++ b/components/clickup/actions/stop-time-entry/stop-time-entry.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-stop-time-entry", name: "Stop Time Entry", description: "Stop time entry. [See the documentation](https://clickup.com/api/clickupreference/operation/StopatimeEntry)", - version: "0.0.5", + version: "0.0.6", type: "action", async run({ $ }) { const response = await this.clickup.stopTimeEntry({ diff --git a/components/clickup/actions/update-checklist-item/update-checklist-item.mjs b/components/clickup/actions/update-checklist-item/update-checklist-item.mjs index c0af13274f110..eee26f68dd5e3 100644 --- a/components/clickup/actions/update-checklist-item/update-checklist-item.mjs +++ b/components/clickup/actions/update-checklist-item/update-checklist-item.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-update-checklist-item", name: "Update Checklist Item", description: "Updates item in a checklist. [See the documentation](https://clickup.com/api) in **Checklists / Edit Checklist Item** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-checklist/update-checklist.mjs b/components/clickup/actions/update-checklist/update-checklist.mjs index 09dc9083b6760..c5c770ec1c657 100644 --- a/components/clickup/actions/update-checklist/update-checklist.mjs +++ b/components/clickup/actions/update-checklist/update-checklist.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-update-checklist", name: "Update Checklist", description: "Updates a checklist in a task. [See the documentation](https://clickup.com/api) in **Checklists / Edit Checklist** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-comment/update-comment.mjs b/components/clickup/actions/update-comment/update-comment.mjs index 597bf1b00a601..df27ed8c42f3d 100644 --- a/components/clickup/actions/update-comment/update-comment.mjs +++ b/components/clickup/actions/update-comment/update-comment.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-update-comment", name: "Update Comment", description: "Updates a comment. [See the documentation](https://clickup.com/api) in **Comments / Update Comment** section.", - version: "0.0.12", + version: "0.0.13", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-folder/update-folder.mjs b/components/clickup/actions/update-folder/update-folder.mjs index 5b1e01c7fe512..552835c23ceb4 100644 --- a/components/clickup/actions/update-folder/update-folder.mjs +++ b/components/clickup/actions/update-folder/update-folder.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-update-folder", name: "Update Folder", description: "Update a folder. [See the documentation](https://clickup.com/api) in **Folders / Update Folder** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-list/update-list.mjs b/components/clickup/actions/update-list/update-list.mjs index 1b60b1f455c9d..657c65c61116c 100644 --- a/components/clickup/actions/update-list/update-list.mjs +++ b/components/clickup/actions/update-list/update-list.mjs @@ -7,7 +7,7 @@ export default { key: "clickup-update-list", name: "Update List", description: "Update a list. [See the documentation](https://clickup.com/api) in **Lists / Update List** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-space/update-space.mjs b/components/clickup/actions/update-space/update-space.mjs index 6fcb93454cf9f..4412ad0efd93c 100644 --- a/components/clickup/actions/update-space/update-space.mjs +++ b/components/clickup/actions/update-space/update-space.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-update-space", name: "Update Space", description: "Update a space. [See the documentation](https://clickup.com/api) in **Spaces / Update Space** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-task-custom-field/update-task-custom-field.mjs b/components/clickup/actions/update-task-custom-field/update-task-custom-field.mjs index 431fa562f561d..c2f5d74976a3f 100644 --- a/components/clickup/actions/update-task-custom-field/update-task-custom-field.mjs +++ b/components/clickup/actions/update-task-custom-field/update-task-custom-field.mjs @@ -5,7 +5,7 @@ export default { key: "clickup-update-task-custom-field", name: "Update Task Custom Field", description: "Update custom field value of a task. [See the documentation](https://clickup.com/api) in **Custom Fields / Set Custom Field Value** section.", - version: "0.0.10", + version: "0.0.11", type: "action", props: { ...common.props, diff --git a/components/clickup/actions/update-task/update-task.mjs b/components/clickup/actions/update-task/update-task.mjs index 4a72ccdae050f..7550f25844914 100644 --- a/components/clickup/actions/update-task/update-task.mjs +++ b/components/clickup/actions/update-task/update-task.mjs @@ -7,7 +7,7 @@ export default { key: "clickup-update-task", name: "Update Task", description: "Update a task. [See the documentation](https://clickup.com/api) in **Tasks / Update Task** section.", - version: "0.0.12", + version: "0.0.13", type: "action", props: { ...common.props, diff --git a/components/clickup/clickup.app.mjs b/components/clickup/clickup.app.mjs index 2c4f1d4ba159d..e3e92c8d345c7 100644 --- a/components/clickup/clickup.app.mjs +++ b/components/clickup/clickup.app.mjs @@ -206,7 +206,7 @@ export default { type: "string", label: "Task ID", description: "The ID of a task", - async options ({ + async options({ page, listId, useCustomTaskIds, }) { const tasks = await this.getTasks({ @@ -233,7 +233,7 @@ export default { type: "string", label: "Checklist ID", description: "To show options please select a **Task** first", - async options ({ + async options({ taskId, useCustomTaskIds, authorizedTeamId, }) { if (!taskId) { @@ -270,7 +270,7 @@ export default { type: "string", label: "Comment ID", description: "The ID of a comment", - async options ({ + async options({ taskId, listId, viewId, }) { if (!taskId && !listId && !viewId) { @@ -883,5 +883,14 @@ export default { method: "post", }, $); }, + async createTimeEntry({ + $, teamId, data, params, + }) { + return this._makeRequest(`team/${teamId}/time_entries`, { + method: "post", + params, + data, + }, $); + }, }, }; diff --git a/components/clickup/package.json b/components/clickup/package.json index a9b47e99b45bf..4e8e718327f3e 100644 --- a/components/clickup/package.json +++ b/components/clickup/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/clickup", - "version": "0.3.1", + "version": "0.4.0", "description": "Pipedream Clickup Components", "main": "clickup.app.mjs", "keywords": [ diff --git a/components/clickup/sources/new-folder/new-folder.mjs b/components/clickup/sources/new-folder/new-folder.mjs index a99f60b369613..1d1ff1db4e59a 100644 --- a/components/clickup/sources/new-folder/new-folder.mjs +++ b/components/clickup/sources/new-folder/new-folder.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-new-folder", name: "New Folder (Instant)", description: "Emit new event when a new folder is created", - version: "0.0.9", + version: "0.0.10", dedupe: "unique", type: "source", methods: { diff --git a/components/clickup/sources/new-list/new-list.mjs b/components/clickup/sources/new-list/new-list.mjs index 7e2b0ba2f7876..f7a0b849fda6b 100644 --- a/components/clickup/sources/new-list/new-list.mjs +++ b/components/clickup/sources/new-list/new-list.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-new-list", name: "New List (Instant)", description: "Emit new event when a new list is created", - version: "0.0.9", + version: "0.0.10", dedupe: "unique", type: "source", methods: { diff --git a/components/clickup/sources/new-task-advanced/new-task-advanced.mjs b/components/clickup/sources/new-task-advanced/new-task-advanced.mjs index 8fb206d09a4ce..d28de9c1cf3e6 100644 --- a/components/clickup/sources/new-task-advanced/new-task-advanced.mjs +++ b/components/clickup/sources/new-task-advanced/new-task-advanced.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-new-task-advanced", name: "New Task Advanced (Instant)", description: "Emit new event when a new task is created matching the filter", - version: "0.0.7", + version: "0.0.8", dedupe: "unique", type: "source", props: { diff --git a/components/clickup/sources/new-task-comment-updated/new-task-comment-updated.mjs b/components/clickup/sources/new-task-comment-updated/new-task-comment-updated.mjs index 4874d8de2d1fe..9d33e858a659d 100644 --- a/components/clickup/sources/new-task-comment-updated/new-task-comment-updated.mjs +++ b/components/clickup/sources/new-task-comment-updated/new-task-comment-updated.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-new-task-comment-updated", name: "New Task Comment Updated (Instant)", description: "Emit new event when a new task comment is updated", - version: "0.0.2", + version: "0.0.3", dedupe: "unique", type: "source", props: { diff --git a/components/clickup/sources/new-task-comment/new-task-comment.mjs b/components/clickup/sources/new-task-comment/new-task-comment.mjs index 5e06f4bb39023..628210b8a3cd5 100644 --- a/components/clickup/sources/new-task-comment/new-task-comment.mjs +++ b/components/clickup/sources/new-task-comment/new-task-comment.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-new-task-comment", name: "New Task Comment (Instant)", description: "Emit new event when a new task comment is posted", - version: "0.0.2", + version: "0.0.3", dedupe: "unique", type: "source", props: { diff --git a/components/clickup/sources/new-task/new-task.mjs b/components/clickup/sources/new-task/new-task.mjs index 83b5a04bdd581..699ffc636a9fd 100644 --- a/components/clickup/sources/new-task/new-task.mjs +++ b/components/clickup/sources/new-task/new-task.mjs @@ -6,7 +6,7 @@ export default { key: "clickup-new-task", name: "New Task (Instant)", description: "Emit new event when a new task is created", - version: "0.1.6", + version: "0.1.7", dedupe: "unique", type: "source", props: { diff --git a/components/clickup/sources/updated-task/updated-task.mjs b/components/clickup/sources/updated-task/updated-task.mjs index 777cbb553d838..806864e3c47a5 100644 --- a/components/clickup/sources/updated-task/updated-task.mjs +++ b/components/clickup/sources/updated-task/updated-task.mjs @@ -7,7 +7,7 @@ export default { key: "clickup-updated-task", name: "New Updated Task (Instant)", description: "Emit new event when a new task is updated", - version: "0.0.12", + version: "0.0.13", dedupe: "unique", type: "source", props: {