Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion components/pipedrive/actions/add-activity/add-activity.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
key: "pipedrive-add-activity",
name: "Add Activity",
description: "Adds a new activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). See the Pipedrive API docs for Activities [here](https://developers.pipedrive.com/docs/api/v1/#!/Activities). For info on [adding an activity in Pipedrive](https://developers.pipedrive.com/docs/api/v1/Activities#addActivity)",
version: "0.1.24",
version: "0.1.25",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/pipedrive/actions/add-deal/add-deal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "pipedrive-add-deal",
name: "Add Deal",
description: "Adds a new deal. See the Pipedrive API docs for Deals [here](https://developers.pipedrive.com/docs/api/v1/Deals#addDeal)",
version: "0.1.25",
version: "0.1.26",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/pipedrive/actions/add-labels/add-labels.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "pipedrive-add-labels",
name: "Add Labels",
description: "Adds labels to a lead, person, deal, or organization in Pipedrive. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Leads#updateLead)",
version: "0.0.4",
version: "0.0.5",
annotations: {
destructiveHint: true,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/pipedrive/actions/add-lead/add-lead.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "pipedrive-add-lead",
name: "Add Lead",
description: "Create a new lead in Pipedrive. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Leads#addLead)",
version: "0.0.18",
version: "0.0.19",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/pipedrive/actions/add-note/add-note.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "pipedrive-add-note",
name: "Add Note",
description: "Adds a new note. For info on [adding an note in Pipedrive](https://developers.pipedrive.com/docs/api/v1/Notes#addNote)",
version: "0.0.19",
version: "0.0.20",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "pipedrive-add-organization",
name: "Add Organization",
description: "Adds a new organization. See the Pipedrive API docs for Organizations [here](https://developers.pipedrive.com/docs/api/v1/Organizations#addOrganization)",
version: "0.1.21",
version: "0.1.22",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
2 changes: 1 addition & 1 deletion components/pipedrive/actions/add-person/add-person.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "pipedrive-add-person",
name: "Add Person",
description: "Adds a new person. See the Pipedrive API docs for People [here](https://developers.pipedrive.com/docs/api/v1/Persons#addPerson)",
version: "0.1.24",
version: "0.1.25",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
112 changes: 112 additions & 0 deletions components/pipedrive/actions/create-project/create-project.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
import pipedriveApp from "../../pipedrive.app.mjs";

export default {
key: "pipedrive-create-project",
name: "Create Project",
description: "Creates a new project in Pipedrive. Use **List Project Boards** to obtain a valid Board ID and **List Project Phases** to obtain a valid Phase ID before running this action. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Projects#addProject)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: false,
},
props: {
pipedriveApp,
title: {
type: "string",
label: "Title",
description: "The title of the project.",
},
description: {
type: "string",
label: "Description",
description: "The description of the project.",
optional: true,
},
status: {
propDefinition: [
pipedriveApp,
"projectStatus",
],
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
boardId: {
propDefinition: [
pipedriveApp,
"projectBoardId",
],
description: "The ID of the board this project belongs to. Run **List Project Boards** first to obtain a valid board ID.",
},
phaseId: {
propDefinition: [
pipedriveApp,
"projectPhaseId",
],
description: "The ID of the phase this project belongs to. Run **List Project Phases** (with the chosen board ID) first to obtain a valid phase ID.",
},
ownerId: {
propDefinition: [
pipedriveApp,
"userId",
],
label: "Owner ID",
description: "The user ID of the project owner.",
optional: true,
},
startDate: {
type: "string",
label: "Start Date",
description: "The start date of the project. Format: YYYY-MM-DD (e.g. 2026-07-31).",
optional: true,
},
endDate: {
type: "string",
label: "End Date",
description: "The end date of the project. Format: YYYY-MM-DD (e.g. 2026-08-31).",
optional: true,
},
dealIds: {
type: "string[]",
label: "Deal IDs",
description: "Array of deal IDs to associate with the project. Use **List Deals** to obtain a valid deal ID.",
optional: true,
},
personIds: {
type: "string[]",
label: "Person IDs",
description: "Array of person IDs to associate with the project. Use **List Persons** to obtain a valid person ID.",
optional: true,
},
orgIds: {
type: "string[]",
label: "Organization IDs",
description: "Array of organization IDs to associate with the project. Use **List Organizations** to obtain a valid organization ID.",
optional: true,
},
labelIds: {
type: "string[]",
label: "Label IDs",
description: "Array of numeric project-label IDs to associate with the project. Project labels are managed in Pipedrive under **Settings → Labels** — copy the numeric ID for each label you want to apply.",
optional: true,
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
},
async run({ $ }) {
const response = await this.pipedriveApp.addProject({
$,
title: this.title,
description: this.description,
status: this.status,
board_id: this.boardId,
phase_id: this.phaseId,
owner_id: this.ownerId,
start_date: this.startDate,
end_date: this.endDate,
deal_ids: this.dealIds,
person_ids: this.personIds,
org_ids: this.orgIds,
label_ids: this.labelIds,
});
$.export("$summary", `Successfully created project ${response.data?.id}: ${this.title}`);
return response;
},
};
100 changes: 100 additions & 0 deletions components/pipedrive/actions/create-task/create-task.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
import pipedriveApp from "../../pipedrive.app.mjs";

export default {
key: "pipedrive-create-task",
name: "Create Task",
description: "Creates a new task under a project (BETA). Run **List Projects** first to obtain a valid project ID. Use **List User ID Options** for the assignee ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Tasks#addTask)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: false,
openWorldHint: true,
readOnlyHint: false,
},
props: {
pipedriveApp,
title: {
type: "string",
label: "Title",
description: "The title of the task.",
},
projectId: {
type: "string",
label: "Project ID",
description: "The ID of the project this task belongs to. Run **List Projects** first to obtain a valid project ID.",
},
parentTaskId: {
type: "string",
label: "Parent Task ID",
description: "The ID of the parent task, if this is a subtask. Use **List Tasks** to obtain a valid task ID.",
optional: true,
},
description: {
type: "string",
label: "Description",
description: "The description of the task.",
optional: true,
},
done: {
type: "integer",
label: "Done",
description: "Whether the task is done. Integer: 0 (not done) or 1 (done).",
min: 0,
max: 1,
optional: true,
},
milestone: {
type: "integer",
label: "Milestone",
description: "Whether the task is a milestone. Integer: 0 (no) or 1 (yes).",
min: 0,
max: 1,
optional: true,
},
dueDate: {
type: "string",
label: "Due Date",
description: "The due date of the task. Format: YYYY-MM-DD (e.g. 2026-07-31).",
optional: true,
},
startDate: {
type: "string",
label: "Start Date",
description: "The start date of the task. Format: YYYY-MM-DD.",
optional: true,
},
assigneeId: {
propDefinition: [
pipedriveApp,
"userId",
],
label: "Assignee ID",
description: "The user ID of the task assignee.",
optional: true,
},
Comment thread
coderabbitai[bot] marked this conversation as resolved.
priority: {
type: "integer",
label: "Priority",
description: "The priority of the task (non-negative integer).",
min: 0,
optional: true,
},
},
async run({ $ }) {
const response = await this.pipedriveApp.addTask({
$,
title: this.title,
project_id: this.projectId,
parent_task_id: this.parentTaskId,
description: this.description,
done: this.done,
milestone: this.milestone,
due_date: this.dueDate,
start_date: this.startDate,
assignee_id: this.assigneeId,
priority: this.priority,
});
$.export("$summary", `Successfully created task ${response.data?.id}: ${this.title}`);
return response;
},
};
30 changes: 30 additions & 0 deletions components/pipedrive/actions/delete-project/delete-project.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pipedriveApp from "../../pipedrive.app.mjs";

export default {
key: "pipedrive-delete-project",
name: "Delete Project",
description: "Permanently deletes a project. This is irreversible. Run **List Projects** first to obtain a valid project ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Projects#deleteProject)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: true,
openWorldHint: true,
readOnlyHint: false,
},
props: {
pipedriveApp,
projectId: {
type: "string",
label: "Project ID",
description: "The ID of the project to delete. Run **List Projects** first to obtain a valid project ID.",
},
},
async run({ $ }) {
const response = await this.pipedriveApp.deleteProject({
$,
projectId: this.projectId,
});
$.export("$summary", `Successfully deleted project ${this.projectId}`);
return response;
},
};
30 changes: 30 additions & 0 deletions components/pipedrive/actions/delete-task/delete-task.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pipedriveApp from "../../pipedrive.app.mjs";

export default {
key: "pipedrive-delete-task",
name: "Delete Task",
description: "Permanently deletes a task and all of its subtasks (BETA). This is irreversible. Run **List Tasks** first to obtain a valid task ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Tasks#deleteTask)",
version: "0.0.1",
type: "action",
annotations: {
destructiveHint: true,
openWorldHint: true,
readOnlyHint: false,
},
props: {
pipedriveApp,
taskId: {
type: "string",
label: "Task ID",
description: "The ID of the task to delete. Run **List Tasks** first to obtain a valid task ID.",
},
},
async run({ $ }) {
const response = await this.pipedriveApp.deleteTask({
$,
taskId: this.taskId,
});
$.export("$summary", `Successfully deleted task ${this.taskId}`);
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "pipedrive-get-all-leads",
name: "Get All Leads",
description: "Get all leads from Pipedrive. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Leads#getLeads)",
version: "0.0.4",
version: "0.0.5",
type: "action",
annotations: {
destructiveHint: false,
Expand Down
2 changes: 1 addition & 1 deletion components/pipedrive/actions/get-deal/get-deal.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "pipedrive-get-deal",
name: "Get Deal",
description: "Get a deal by its ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Deals)",
version: "0.0.2",
version: "0.0.3",
type: "action",
annotations: {
destructiveHint: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "pipedrive-get-lead-by-id",
name: "Get Lead by ID",
description: "Get a lead by its ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Leads#getLead)",
version: "0.0.9",
version: "0.0.10",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "pipedrive-get-person-details",
name: "Get person details",
description: "Get details of a person by their ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Persons#getPerson)",
version: "0.0.10",
version: "0.0.11",
annotations: {
destructiveHint: false,
openWorldHint: true,
Expand Down
Loading
Loading