Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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.3",
version: "0.0.4",
type: "action",
props: {
attio,
Expand Down
2 changes: 1 addition & 1 deletion components/attio/actions/create-person/create-person.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "attio-create-person",
name: "Create Person",
description: "Creates a new person. [See the documentation](https://developers.attio.com/reference/post_v2-objects-people-records).",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
attio,
Expand Down
2 changes: 1 addition & 1 deletion components/attio/actions/create-task/create-task.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "attio-create-task",
name: "Create Task",
description: "Creates a new task. [See the documentation](https://docs.attio.com/rest-api/endpoint-reference/tasks/create-a-task)",
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 @@ -6,7 +6,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.3",
version: "0.0.5",
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.3",
version: "0.0.4",
type: "action",
props: {
attio,
Expand Down
46 changes: 46 additions & 0 deletions components/attio/actions/get-record/get-record.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import attio from "../../attio.app.mjs";
import constants from "../../common/constants.mjs";

export default {
key: "attio-get-record",
name: "Get Record",
description: "Retrieves the record with the specified ID. [See the documentation](https://docs.attio.com/rest-api/endpoint-reference/records/get-a-record)",
version: "0.0.1",
type: "action",
props: {
attio,
objectId: {
propDefinition: [
attio,
"objectId",
],
},
recordId: {
label: "Person ID",
description: "The identifier of the contact to update.",
propDefinition: [
attio,
"recordId",
() => ({
targetObject: constants.TARGET_OBJECT.PEOPLE,
mapper: ({
id: { record_id: value },
values: { name },
}) => ({
value,
label: name[0]?.full_name,
}),
}),
],
},
},
async run({ $ }) {
const response = await this.attio.getRecord({
$,
objectId: this.objectId,
recordId: this.recordId,
});
$.export("$summary", "Successfully retrieved the record with ID: " + this.recordId);
return response;
},
};
2 changes: 1 addition & 1 deletion components/attio/actions/update-person/update-person.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "attio-update-person",
name: "Update Person",
description: "Update an existing person. [See the documentation](https://developers.attio.com/reference/patch_v2-objects-people-records-record-id).",
version: "0.0.1",
version: "0.0.2",
type: "action",
props: {
attio,
Expand Down
8 changes: 8 additions & 0 deletions components/attio/attio.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -302,5 +302,13 @@ export default {
...args,
});
},
getRecord({
objectId, recordId, ...args
}) {
return this._makeRequest({
path: `/objects/${objectId}/records/${recordId}`,
...args,
});
},
},
};
2 changes: 1 addition & 1 deletion components/attio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.0.3"
"@pipedream/platform": "^3.1.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import sampleEmit from "./test-event.mjs";
export default {
...common,
key: "attio-list-entry-deleted-instant",
name: "List Entry Deleted (Instant)",
name: "New List Entry Deleted (Instant)",
description: "Emit new event when a list entry is deleted (i.e. when a record is removed from a list).",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import sampleEmit from "./test-event.mjs";
export default {
...common,
key: "attio-list-entry-updated-instant",
name: "List Entry Updated (Instant)",
name: "New List Entry Updated (Instant)",
description: "Emit new event when an existing list entry is updated (i.e. when a list attribute is changed for a specific list entry, e.g. when setting \"Owner\")",
version: "0.0.2",
version: "0.0.3",
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-activity-created-instant",
name: "New Activity Created (Instant)",
description: "Emit new event when a note, task, or comment is created, useful for tracking engagement in real time.",
version: "0.0.1",
version: "0.0.2",
type: "source",
dedupe: "unique",
methods: {
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.3",
version: "0.0.4",
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-note-instant",
name: "New Note (Instant)",
description: "Emit new event when a new note is created.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
key: "attio-new-object-attribute-instant",
name: "New Object Attribute (Instant)",
description: "Emit new event when an object attribute is created (e.g. when defining a new attribute \"Rating\" on the company object)",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
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.3",
version: "0.0.4",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import sampleEmit from "./test-event.mjs";
export default {
...common,
key: "attio-note-updated-instant",
name: "Note Updated (Instant)",
name: "New Note Updated (Instant)",
description: "Emit new event when the title of a note is modified. Body updates do not currently trigger webhooks.",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import sampleEmit from "./test-event.mjs";
export default {
...common,
key: "attio-object-attribute-updated-instant",
name: "Object Attribute Updated (Instant)",
name: "New Object Attribute Updated (Instant)",
description: "Emit new event when an object attribute is updated (e.g. when renaming the \"Rating\" attribute to \"Score\" on the company object)",
version: "0.0.2",
version: "0.0.3",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import sampleEmit from "./test-event.mjs";
export default {
...common,
key: "attio-record-updated-instant",
name: "Record Updated (Instant)",
name: "New Record Updated (Instant)",
description: "Emit new event when values on a record, such as person, company or deal, are updated",
version: "0.0.3",
version: "0.0.4",
type: "source",
dedupe: "unique",
props: {
Expand Down
20 changes: 6 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading