diff --git a/components/attio/actions/create-note/create-note.mjs b/components/attio/actions/create-note/create-note.mjs index 3c4134a8b5766..92c1116cbf616 100644 --- a/components/attio/actions/create-note/create-note.mjs +++ b/components/attio/actions/create-note/create-note.mjs @@ -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, diff --git a/components/attio/actions/create-person/create-person.mjs b/components/attio/actions/create-person/create-person.mjs index 587820c637f86..1b4f4ef3c7292 100644 --- a/components/attio/actions/create-person/create-person.mjs +++ b/components/attio/actions/create-person/create-person.mjs @@ -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, diff --git a/components/attio/actions/create-task/create-task.mjs b/components/attio/actions/create-task/create-task.mjs index 7dab9b23f8357..d3beaabb8c934 100644 --- a/components/attio/actions/create-task/create-task.mjs +++ b/components/attio/actions/create-task/create-task.mjs @@ -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, diff --git a/components/attio/actions/create-update-record/create-update-record.mjs b/components/attio/actions/create-update-record/create-update-record.mjs index 5bc915548c902..0deccc2ae8814 100644 --- a/components/attio/actions/create-update-record/create-update-record.mjs +++ b/components/attio/actions/create-update-record/create-update-record.mjs @@ -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.4", type: "action", props: { attio, diff --git a/components/attio/actions/delete-list-entry/delete-list-entry.mjs b/components/attio/actions/delete-list-entry/delete-list-entry.mjs index 9b675fd990876..f47da6719bd67 100644 --- a/components/attio/actions/delete-list-entry/delete-list-entry.mjs +++ b/components/attio/actions/delete-list-entry/delete-list-entry.mjs @@ -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, diff --git a/components/attio/actions/get-record/get-record.mjs b/components/attio/actions/get-record/get-record.mjs new file mode 100644 index 0000000000000..b30a7ec48c028 --- /dev/null +++ b/components/attio/actions/get-record/get-record.mjs @@ -0,0 +1,37 @@ +import attio from "../../attio.app.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: { + description: "The identifier of the record to retrieve.", + propDefinition: [ + attio, + "recordId", + (c) => ({ + targetObject: c.objectId, + }), + ], + }, + }, + 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; + }, +}; diff --git a/components/attio/actions/update-person/update-person.mjs b/components/attio/actions/update-person/update-person.mjs index bf0e40bc311bc..e159271166781 100644 --- a/components/attio/actions/update-person/update-person.mjs +++ b/components/attio/actions/update-person/update-person.mjs @@ -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, diff --git a/components/attio/attio.app.mjs b/components/attio/attio.app.mjs index 686f78700e902..4b1e2c05e37b6 100644 --- a/components/attio/attio.app.mjs +++ b/components/attio/attio.app.mjs @@ -302,5 +302,13 @@ export default { ...args, }); }, + getRecord({ + objectId, recordId, ...args + }) { + return this._makeRequest({ + path: `/objects/${objectId}/records/${recordId}`, + ...args, + }); + }, }, }; diff --git a/components/attio/package.json b/components/attio/package.json index b2bd785c60b4b..d55b8ea579985 100644 --- a/components/attio/package.json +++ b/components/attio/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/attio", - "version": "0.3.0", + "version": "0.4.0", "description": "Pipedream Attio Components", "main": "attio.app.mjs", "keywords": [ @@ -13,6 +13,6 @@ "access": "public" }, "dependencies": { - "@pipedream/platform": "^3.0.3" + "@pipedream/platform": "^3.1.0" } } diff --git a/components/attio/sources/list-entry-deleted-instant/list-entry-deleted-instant.mjs b/components/attio/sources/list-entry-deleted-instant/list-entry-deleted-instant.mjs index 0bf0ead7dd03b..68c0b9cae7f17 100644 --- a/components/attio/sources/list-entry-deleted-instant/list-entry-deleted-instant.mjs +++ b/components/attio/sources/list-entry-deleted-instant/list-entry-deleted-instant.mjs @@ -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: { diff --git a/components/attio/sources/list-entry-updated-instant/list-entry-updated-instant.mjs b/components/attio/sources/list-entry-updated-instant/list-entry-updated-instant.mjs index 5c595593b9d06..586ce7ac81bf3 100644 --- a/components/attio/sources/list-entry-updated-instant/list-entry-updated-instant.mjs +++ b/components/attio/sources/list-entry-updated-instant/list-entry-updated-instant.mjs @@ -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: { diff --git a/components/attio/sources/new-activity-created-instant/new-activity-created-instant.mjs b/components/attio/sources/new-activity-created-instant/new-activity-created-instant.mjs index 8dd13d4d8fcac..01213bd5000ff 100644 --- a/components/attio/sources/new-activity-created-instant/new-activity-created-instant.mjs +++ b/components/attio/sources/new-activity-created-instant/new-activity-created-instant.mjs @@ -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: { diff --git a/components/attio/sources/new-list-entry-instant/new-list-entry-instant.mjs b/components/attio/sources/new-list-entry-instant/new-list-entry-instant.mjs index 6e30d45363b2a..b92c52da335a3 100644 --- a/components/attio/sources/new-list-entry-instant/new-list-entry-instant.mjs +++ b/components/attio/sources/new-list-entry-instant/new-list-entry-instant.mjs @@ -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: { diff --git a/components/attio/sources/new-note-instant/new-note-instant.mjs b/components/attio/sources/new-note-instant/new-note-instant.mjs index 77065f6b97541..4fbebf4d87569 100644 --- a/components/attio/sources/new-note-instant/new-note-instant.mjs +++ b/components/attio/sources/new-note-instant/new-note-instant.mjs @@ -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: { diff --git a/components/attio/sources/new-object-attribute-instant/new-object-attribute-instant.mjs b/components/attio/sources/new-object-attribute-instant/new-object-attribute-instant.mjs index 379d8d24b6342..38e0e29112390 100644 --- a/components/attio/sources/new-object-attribute-instant/new-object-attribute-instant.mjs +++ b/components/attio/sources/new-object-attribute-instant/new-object-attribute-instant.mjs @@ -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: { diff --git a/components/attio/sources/new-record-created-instant/new-record-created-instant.mjs b/components/attio/sources/new-record-created-instant/new-record-created-instant.mjs index a367373500a35..a46817cdcb002 100644 --- a/components/attio/sources/new-record-created-instant/new-record-created-instant.mjs +++ b/components/attio/sources/new-record-created-instant/new-record-created-instant.mjs @@ -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: { diff --git a/components/attio/sources/note-updated-instant/note-updated-instant.mjs b/components/attio/sources/note-updated-instant/note-updated-instant.mjs index 74fb89f21ebe9..f4610bda128a9 100644 --- a/components/attio/sources/note-updated-instant/note-updated-instant.mjs +++ b/components/attio/sources/note-updated-instant/note-updated-instant.mjs @@ -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: { diff --git a/components/attio/sources/object-attribute-updated-instant/object-attribute-updated-instant.mjs b/components/attio/sources/object-attribute-updated-instant/object-attribute-updated-instant.mjs index 6e339f4998d30..1d2b7a4bca070 100644 --- a/components/attio/sources/object-attribute-updated-instant/object-attribute-updated-instant.mjs +++ b/components/attio/sources/object-attribute-updated-instant/object-attribute-updated-instant.mjs @@ -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: { diff --git a/components/attio/sources/record-updated-instant/record-updated-instant.mjs b/components/attio/sources/record-updated-instant/record-updated-instant.mjs index 340f79d3f5fad..6b1ef6ae1176d 100644 --- a/components/attio/sources/record-updated-instant/record-updated-instant.mjs +++ b/components/attio/sources/record-updated-instant/record-updated-instant.mjs @@ -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: { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 777d319172859..569de3ecb5f6f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1106,8 +1106,8 @@ importers: components/attio: dependencies: '@pipedream/platform': - specifier: ^3.0.3 - version: 3.0.3 + specifier: ^3.1.0 + version: 3.1.0 components/attractwell: dependencies: @@ -10018,8 +10018,7 @@ importers: specifier: ^0.10.0 version: 0.10.0 - components/pdf_munk: - specifiers: {} + components/pdf_munk: {} components/pdffiller: dependencies: @@ -11686,8 +11685,7 @@ importers: specifier: ^0.10.0 version: 0.10.0 - components/rocketskip: - specifiers: {} + components/rocketskip: {} components/rockset: dependencies: @@ -12292,8 +12290,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/serenity_ai_hub: - specifiers: {} + components/serenity_ai_hub: {} components/serpapi: dependencies: @@ -13698,8 +13695,7 @@ importers: specifier: ^1.6.0 version: 1.6.6 - components/templatedocs: - specifiers: {} + components/templatedocs: {} components/tento8: {} @@ -14341,8 +14337,7 @@ importers: components/typebot: {} - components/typeflo: - specifiers: {} + components/typeflo: {} components/typeflowai: dependencies: