Skip to content

Commit e06a9a5

Browse files
committed
some adjusts
1 parent 5df6447 commit e06a9a5

File tree

4 files changed

+6
-28
lines changed

4 files changed

+6
-28
lines changed

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,6 @@ export default {
5858
"dealCurrency",
5959
],
6060
},
61-
addTime: {
62-
propDefinition: [
63-
pipedriveApp,
64-
"addTime",
65-
],
66-
},
6761
status: {
6862
propDefinition: [
6963
pipedriveApp,
@@ -101,7 +95,6 @@ export default {
10195
stage_id: this.stageId,
10296
value: this.value,
10397
currency: this.currency,
104-
add_time: this.addTime,
10598
status: this.status,
10699
probability: this.probability,
107100
lost_reason: this.lostReason,

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,13 @@ export default {
2929
],
3030
description: "Visibility of the organization. If omitted, visibility will be set to the default visibility setting of this item type for the authorized user.",
3131
},
32-
addTime: {
33-
propDefinition: [
34-
pipedriveApp,
35-
"addTime",
36-
],
37-
description: "Optional creation date & time of the organization in UTC. Requires admin user API token. Format: `YYYY-MM-DDTHH:MM:SSZ`",
38-
},
3932
},
4033
async run({ $ }) {
4134
try {
4235
const resp = await this.pipedriveApp.addOrganization({
4336
name: this.name,
4437
owner_id: this.ownerId,
4538
visible_to: this.visibleTo,
46-
add_time: this.addTime,
4739
});
4840

4941
$.export("$summary", "Successfully added organization");

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ export default {
3232
},
3333
emails: {
3434
type: "string[]",
35-
label: "Email",
35+
label: "Emails",
3636
description: "Email addresses (one or more) associated with the person, presented in the same manner as received by GET request of a person. **Example: {\"value\":\"[email protected]\", \"primary\":true, \"label\":\"work\"}**",
3737
optional: true,
3838
},
3939
phones: {
4040
type: "string[]",
41-
label: "Phone",
41+
label: "Phones",
4242
description: "Phone numbers (one or more) associated with the person, presented in the same manner as received by GET request of a person. **Example: {\"value\":\"12345\", \"primary\":true, \"label\":\"work\"}**",
4343
optional: true,
4444
},
@@ -49,13 +49,6 @@ export default {
4949
],
5050
description: "Visibility of the person. If omitted, visibility will be set to the default visibility setting of this item type for the authorized user.",
5151
},
52-
addTime: {
53-
propDefinition: [
54-
pipedriveApp,
55-
"addTime",
56-
],
57-
description: "Optional creation date & time of the person in UTC. Requires admin user API token. Format: `YYYY-MM-DDTHH:MM:SSZ`",
58-
},
5952
},
6053
async run({ $ }) {
6154
try {
@@ -64,7 +57,6 @@ export default {
6457
name: this.name,
6558
owner_id: this.ownerId,
6659
org_id: this.organizationId,
67-
add_time: this.addTime,
6860
emails: parseObject(this.emails),
6961
phones: parseObject(this.phones),
7062
visible_to: this.visibleTo,

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { ConfigurationError } from "@pipedream/platform";
22
import constants from "../../common/constants.mjs";
3+
import { parseObject } from "../../common/utils.mjs";
34
import pipedriveApp from "../../pipedrive.app.mjs";
45

56
export default {
@@ -16,9 +17,9 @@ export default {
1617
description: "The search term to look for. Minimum 2 characters (or 1 if using exact_match).",
1718
},
1819
fields: {
19-
type: "string",
20+
type: "string[]",
2021
label: "Search fields",
21-
description: "A comma-separated string array. The fields to perform the search from. Defaults to all of them.",
22+
description: "An array containing fields to perform the search from. Defaults to all of them.",
2223
optional: true,
2324
options: constants.FIELD_OPTIONS,
2425
},
@@ -60,7 +61,7 @@ export default {
6061
const resp =
6162
await this.pipedriveApp.searchPersons({
6263
term: this.term,
63-
fields: this.fields,
64+
fields: parseObject(this.fields),
6465
exact_match: this.exactMatch,
6566
org_id: this.organizationId,
6667
include_fields: this.includeFields,

0 commit comments

Comments
 (0)