Skip to content

Commit 3f70629

Browse files
17296 action get person details pipedrive (#17298)
* [ACTION] Get Person Details - Pipedrive #17296 Actions - Get Person Details * pnpm update * Update components/pipedrive/package.json Co-authored-by: Jorge Cortes <[email protected]> --------- Co-authored-by: Jorge Cortes <[email protected]>
1 parent 8992a6a commit 3f70629

File tree

20 files changed

+57
-19
lines changed

20 files changed

+57
-19
lines changed

components/pipedrive/actions/add-activity/add-activity.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "pipedrive-add-activity",
88
name: "Add Activity",
99
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)",
10-
version: "0.1.11",
10+
version: "0.1.12",
1111
type: "action",
1212
props: {
1313
pipedriveApp,

components/pipedrive/actions/add-deal/add-deal.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "pipedrive-add-deal",
66
name: "Add Deal",
77
description: "Adds a new deal. See the Pipedrive API docs for Deals [here](https://developers.pipedrive.com/docs/api/v1/Deals#addDeal)",
8-
version: "0.1.11",
8+
version: "0.1.12",
99
type: "action",
1010
props: {
1111
pipedriveApp,

components/pipedrive/actions/add-lead/add-lead.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "pipedrive-add-lead",
77
name: "Add Lead",
88
description: "Create a new lead in Pipedrive. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Leads#addLead)",
9-
version: "0.0.5",
9+
version: "0.0.6",
1010
type: "action",
1111
props: {
1212
pipedrive,

components/pipedrive/actions/add-note/add-note.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "pipedrive-add-note",
66
name: "Add Note",
77
description: "Adds a new note. For info on [adding an note in Pipedrive](https://developers.pipedrive.com/docs/api/v1/Notes#addNote)",
8-
version: "0.0.9",
8+
version: "0.0.10",
99
type: "action",
1010
props: {
1111
pipedriveApp,

components/pipedrive/actions/add-organization/add-organization.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "pipedrive-add-organization",
66
name: "Add Organization",
77
description: "Adds a new organization. See the Pipedrive API docs for Organizations [here](https://developers.pipedrive.com/docs/api/v1/Organizations#addOrganization)",
8-
version: "0.1.11",
8+
version: "0.1.12",
99
type: "action",
1010
props: {
1111
pipedriveApp,

components/pipedrive/actions/add-person/add-person.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "pipedrive-add-person",
77
name: "Add Person",
88
description: "Adds a new person. See the Pipedrive API docs for People [here](https://developers.pipedrive.com/docs/api/v1/Persons#addPerson)",
9-
version: "0.1.11",
9+
version: "0.1.12",
1010
type: "action",
1111
props: {
1212
pipedriveApp,
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { ConfigurationError } from "@pipedream/platform";
2+
import pipedriveApp from "../../pipedrive.app.mjs";
3+
4+
export default {
5+
key: "pipedrive-get-person-details",
6+
name: "Get person details",
7+
description: "Get details of a person by their ID. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Persons#getPerson)",
8+
version: "0.0.1",
9+
type: "action",
10+
props: {
11+
pipedriveApp,
12+
personId: {
13+
propDefinition: [
14+
pipedriveApp,
15+
"personId",
16+
],
17+
optional: false,
18+
description: "The ID of the person to get details for.",
19+
},
20+
},
21+
async run({ $ }) {
22+
try {
23+
const resp = await this.pipedriveApp.getPerson(this.personId);
24+
25+
$.export("$summary", `Successfully retrieved details for person ID: ${this.personId}`);
26+
27+
return resp;
28+
29+
} catch ({ error }) {
30+
throw new ConfigurationError(error);
31+
}
32+
},
33+
};

components/pipedrive/actions/remove-duplicate-notes/remove-duplicate-notes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "pipedrive-remove-duplicate-notes",
66
name: "Remove Duplicate Notes",
77
description: "Remove duplicate notes from an object in Pipedrive. See the documentation for [getting notes](https://developers.pipedrive.com/docs/api/v1/Notes#getNotes) and [deleting notes](https://developers.pipedrive.com/docs/api/v1/Notes#deleteNote)",
8-
version: "0.0.2",
8+
version: "0.0.3",
99
type: "action",
1010
props: {
1111
pipedriveApp,

components/pipedrive/actions/search-notes/search-notes.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "pipedrive-search-notes",
55
name: "Search Notes",
66
description: "Search for notes in Pipedrive. [See the documentation](https://developers.pipedrive.com/docs/api/v1/Notes#getNotes)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
pipedriveApp,

components/pipedrive/actions/search-persons/search-persons.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
key: "pipedrive-search-persons",
88
name: "Search persons",
99
description: "Searches all Persons by `name`, `email`, `phone`, `notes` and/or custom fields. This endpoint is a wrapper of `/v1/itemSearch` with a narrower OAuth scope. Found Persons can be filtered by Organization ID. See the Pipedrive API docs [here](https://developers.pipedrive.com/docs/api/v1/Persons#searchPersons)",
10-
version: "0.1.11",
10+
version: "0.1.12",
1111
type: "action",
1212
props: {
1313
pipedriveApp,

0 commit comments

Comments
 (0)