Skip to content
Merged
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/attio/actions/create-note/create-note.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "attio-create-note",
name: "Create Note",
description: "Creates a new note for a given record. The note will be linked to the specified record. [See the documentation](https://developers.attio.com/reference/post_v2-notes)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
attio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "attio-create-update-record",
name: "Create or Update Record",
description: "Creates or updates a specific record such as a person or a deal. If the record already exists, it's updated. Otherwise, a new record is created. [See the documentation](https://developers.attio.com/reference/put_v2-objects-object-records)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
attio,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "attio-delete-list-entry",
name: "Delete List Entry",
description: "Deletes an existing entry from a specific list. [See the documentation](https://developers.attio.com/reference/delete_v2-lists-list-entries-entry-id)",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
attio,
Expand Down
10 changes: 9 additions & 1 deletion components/attio/attio.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ export default {
offset: page * DEFAULT_LIMIT,
},
});
return data?.map(({ id }) => id.record_id) || [];
return data?.map(({
id, values,
}) => ({
value: id.record_id,
label: (values?.name?.length && (values.name[0].value || values.name[0].full_name))
?? (values?.domains?.length && values.domains[0].domain)
?? (values?.email_addresses?.length && values.email_addresses[0].email_address)
?? values?.id?.record_id,
})) || [];
},
},
attributeId: {
Expand Down
2 changes: 1 addition & 1 deletion components/attio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/attio",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Attio Components",
"main": "attio.app.mjs",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "attio-new-list-entry-instant",
name: "New List Entry (Instant)",
description: "Emit new event when a record, such as person, company, or deal, is added to a list",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "attio-new-record-created-instant",
name: "New Record Created (Instant)",
description: "Emit new event when new record, such as person, company or deal gets created",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "attio-record-updated-instant",
name: "Record Updated (Instant)",
description: "Emit new event when values on a record, such as person, company or deal, are updated",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
props: {
Expand Down
Loading