Skip to content

Commit 5b587f2

Browse files
committed
updaet recordId prop
1 parent ebe92f3 commit 5b587f2

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

components/attio/actions/create-note/create-note.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "attio-create-note",
55
name: "Create Note",
66
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)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
attio,

components/attio/actions/create-update-record/create-update-record.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "attio-create-update-record",
66
name: "Create or Update Record",
77
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)",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
attio,

components/attio/actions/delete-list-entry/delete-list-entry.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "attio-delete-list-entry",
55
name: "Delete List Entry",
66
description: "Deletes an existing entry from a specific list. [See the documentation](https://developers.attio.com/reference/delete_v2-lists-list-entries-entry-id)",
7-
version: "0.0.1",
7+
version: "0.0.2",
88
type: "action",
99
props: {
1010
attio,

components/attio/attio.app.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,15 @@ export default {
6464
offset: page * DEFAULT_LIMIT,
6565
},
6666
});
67-
return data?.map(({ id }) => id.record_id) || [];
67+
return data?.map(({
68+
id, values,
69+
}) => ({
70+
value: id.record_id,
71+
label: (values?.name?.length && (values.name[0].value || values.name[0].full_name))
72+
?? (values?.domains?.length && values.domains[0].domain)
73+
?? (values?.email_addresses?.length && values.email_addresses[0].email_address)
74+
?? values?.id?.record_id,
75+
})) || [];
6876
},
6977
},
7078
attributeId: {

components/attio/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/attio",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Attio Components",
55
"main": "attio.app.mjs",
66
"keywords": [

components/attio/sources/new-list-entry-instant/new-list-entry-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "attio-new-list-entry-instant",
77
name: "New List Entry (Instant)",
88
description: "Emit new event when a record, such as person, company, or deal, is added to a list",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {

components/attio/sources/new-record-created-instant/new-record-created-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "attio-new-record-created-instant",
77
name: "New Record Created (Instant)",
88
description: "Emit new event when new record, such as person, company or deal gets created",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {

components/attio/sources/record-updated-instant/record-updated-instant.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "attio-record-updated-instant",
77
name: "Record Updated (Instant)",
88
description: "Emit new event when values on a record, such as person, company or deal, are updated",
9-
version: "0.0.1",
9+
version: "0.0.2",
1010
type: "source",
1111
dedupe: "unique",
1212
props: {

0 commit comments

Comments
 (0)