Skip to content

Commit 752d208

Browse files
authored
feat(actions): Add attio (#427)
## Describe your changes ## Issue ticket number and link ## Checklist before requesting a review (skip if just adding/editing APIs & templates) - [ ] I added tests, otherwise the reason is: - [ ] External API requests have `retries` - [ ] Pagination is used where appropriate - [ ] The built in `nango.paginate` call is used instead of a `while (true)` loop - [ ] Third party requests are NOT parallelized (this can cause issues with rate limits) - [ ] If a sync requires metadata the `nango.yaml` has `auto_start: false` - [ ] If the sync is a `full` sync then `track_deletes: true` is set - [ ] I followed the best practices and guidelines from the [Writing Integration Scripts](/NangoHQ/integration-templates/blob/main/guides/WRITING_SCRIPTS.md) doc
1 parent 3baebd1 commit 752d208

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+9029
-2
lines changed

integrations/.nango/nango.json

Lines changed: 488 additions & 1 deletion
Large diffs are not rendered by default.

integrations/.nango/schema.json

Lines changed: 1841 additions & 0 deletions
Large diffs are not rendered by default.

integrations/.nango/schema.ts

Lines changed: 334 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,6 +1257,340 @@ export interface AttioPerson {
12571257
country_code?: string | undefined;};
12581258
};
12591259

1260+
export interface ActionInput_attio_createcompany {
1261+
name: string;
1262+
domains?: string[] | undefined;
1263+
description?: string | undefined;
1264+
};
1265+
1266+
export interface ActionOutput_attio_createcompany {
1267+
id: { workspace_id: string;
1268+
object_id: string;
1269+
record_id: string;};
1270+
name: string | null;
1271+
domains: string[];
1272+
description: string | null;
1273+
created_at: string;
1274+
web_url: string;
1275+
};
1276+
1277+
export interface ActionInput_attio_createlistentry {
1278+
list_id: string;
1279+
record_id: string;
1280+
};
1281+
1282+
export interface ActionOutput_attio_createlistentry {
1283+
data: { id: { workspace_id: string;
1284+
list_id: string;
1285+
entry_id: string;};
1286+
record_id: string;
1287+
created_at: string;};
1288+
};
1289+
1290+
export interface ActionInput_attio_createnote {
1291+
parent_object: string;
1292+
parent_record_id: string;
1293+
title: string;
1294+
content: string;
1295+
};
1296+
1297+
export interface ActionOutput_attio_createnote {
1298+
data: { id: { workspace_id: string;
1299+
note_id: string;};
1300+
title: string;
1301+
content_plaintext: string;
1302+
parent_object: string;
1303+
parent_record_id: string;
1304+
created_at: string;};
1305+
};
1306+
1307+
export interface ActionInput_attio_createperson {
1308+
first_name: string;
1309+
last_name: string;
1310+
email_addresses?: string[] | undefined;
1311+
phone_numbers?: string[] | undefined;
1312+
job_title?: string | undefined;
1313+
};
1314+
1315+
export interface ActionOutput_attio_createperson {
1316+
id: { workspace_id: string;
1317+
object_id: string;
1318+
record_id: string;};
1319+
name: string | null;
1320+
email: string | null;
1321+
phone: string | null;
1322+
job_title: string | null;
1323+
created_at: string;
1324+
web_url: string;
1325+
};
1326+
1327+
export interface ActionInput_attio_createrecord {
1328+
object_slug: string;
1329+
values: { [key: string]: any | undefined;};
1330+
};
1331+
1332+
export interface ActionOutput_attio_createrecord {
1333+
data: { id: { workspace_id: string;
1334+
object_id: string;
1335+
record_id: string;};
1336+
created_at: string;
1337+
values: { [key: string]: any | undefined;};};
1338+
};
1339+
1340+
export interface ActionInput_attio_createtask {
1341+
content: string;
1342+
deadline?: string | undefined;
1343+
assignee_ids?: string[] | undefined;
1344+
linked_records?: ({ target_object: string;
1345+
target_record_id: string;})[] | undefined;
1346+
};
1347+
1348+
export interface ActionOutput_attio_createtask {
1349+
data: { id: { workspace_id: string;
1350+
task_id: string;};
1351+
content_plaintext: string;
1352+
deadline_at: string | null;
1353+
is_completed: boolean;
1354+
created_at: string;};
1355+
};
1356+
1357+
export interface ActionInput_attio_createwebhook {
1358+
target_url: string;
1359+
subscriptions: ({ event_type: string;
1360+
filter?: { "$and"?: ({ field: string;
1361+
operator: string;
1362+
value: string;})[] | undefined;
1363+
"$or"?: ({ field: string;
1364+
operator: string;
1365+
value: string;})[] | undefined;} | null;})[];
1366+
};
1367+
1368+
export interface ActionOutput_attio_createwebhook {
1369+
target_url: string;
1370+
subscriptions: ({ event_type: string;
1371+
filter: { "$and"?: ({ field: string;
1372+
operator: string;
1373+
value: string;})[] | undefined;
1374+
"$or"?: ({ field: string;
1375+
operator: string;
1376+
value: string;})[] | undefined;} | null;})[];
1377+
id: { workspace_id: string;
1378+
webhook_id: string;};
1379+
status: 'active' | 'degraded' | 'inactive';
1380+
created_at: string;
1381+
secret: string;
1382+
};
1383+
1384+
export interface ActionInput_attio_deletelistentry {
1385+
list_id: string;
1386+
entry_id: string;
1387+
};
1388+
1389+
export interface ActionOutput_attio_deletelistentry {
1390+
success: boolean;
1391+
};
1392+
1393+
export interface ActionInput_attio_deletenote {
1394+
note_id: string;
1395+
};
1396+
1397+
export interface ActionOutput_attio_deletenote {
1398+
success: boolean;
1399+
};
1400+
1401+
export interface ActionInput_attio_deleterecord {
1402+
object_slug: string;
1403+
record_id: string;
1404+
};
1405+
1406+
export interface ActionOutput_attio_deleterecord {
1407+
success: boolean;
1408+
};
1409+
1410+
export interface ActionInput_attio_deletewebhook {
1411+
webhook_id: string;
1412+
};
1413+
1414+
export interface ActionOutput_attio_deletewebhook {
1415+
success: boolean;
1416+
};
1417+
1418+
export interface ActionInput_attio_getobject {
1419+
object_id: string;
1420+
};
1421+
1422+
export interface ActionOutput_attio_getobject {
1423+
data: { id: { workspace_id: string;
1424+
object_id: string;};
1425+
api_slug: string;
1426+
singular_noun: string;
1427+
plural_noun: string;
1428+
created_at: string;};
1429+
};
1430+
1431+
export interface ActionInput_attio_getrecord {
1432+
object_slug: string;
1433+
record_id: string;
1434+
};
1435+
1436+
export interface ActionOutput_attio_getrecord {
1437+
data: { id: { workspace_id: string;
1438+
object_id: string;
1439+
record_id: string;};
1440+
created_at: string;
1441+
values: { [key: string]: any | undefined;};};
1442+
};
1443+
1444+
export interface ActionInput_attio_getwebhook {
1445+
webhook_id: string;
1446+
};
1447+
1448+
export interface ActionOutput_attio_getwebhook {
1449+
target_url: string;
1450+
subscriptions: ({ event_type: string;
1451+
filter: { "$and"?: ({ field: string;
1452+
operator: string;
1453+
value: string;})[] | undefined;
1454+
"$or"?: ({ field: string;
1455+
operator: string;
1456+
value: string;})[] | undefined;} | null;})[];
1457+
id: { workspace_id: string;
1458+
webhook_id: string;};
1459+
status: 'active' | 'degraded' | 'inactive';
1460+
created_at: string;
1461+
};
1462+
1463+
export interface ActionInput_attio_listlists {
1464+
};
1465+
1466+
export interface ActionOutput_attio_listlists {
1467+
data: ({ id: { workspace_id: string;
1468+
list_id: string;};
1469+
api_slug: string;
1470+
name: string;
1471+
parent_object: string[];
1472+
created_at: string;})[];
1473+
};
1474+
1475+
export interface ActionInput_attio_listnotes {
1476+
parent_object: string;
1477+
parent_record_id: string;
1478+
limit?: number | undefined;
1479+
offset?: number | undefined;
1480+
};
1481+
1482+
export interface ActionOutput_attio_listnotes {
1483+
data: ({ id: { workspace_id: string;
1484+
note_id: string;};
1485+
title: string | null;
1486+
content_plaintext: string;
1487+
parent_object: string;
1488+
parent_record_id: string;
1489+
created_at: string;})[];
1490+
};
1491+
1492+
export interface ActionInput_attio_listobjects {
1493+
};
1494+
1495+
export interface ActionOutput_attio_listobjects {
1496+
data: ({ id: { workspace_id: string;
1497+
object_id: string;};
1498+
api_slug: string;
1499+
singular_noun: string;
1500+
plural_noun: string;
1501+
created_at: string;})[];
1502+
};
1503+
1504+
export interface ActionInput_attio_listrecords {
1505+
object_slug: string;
1506+
limit?: number | undefined;
1507+
offset?: number | undefined;
1508+
};
1509+
1510+
export interface ActionOutput_attio_listrecords {
1511+
data: ({ id: { workspace_id: string;
1512+
object_id: string;
1513+
record_id: string;};
1514+
created_at: string;
1515+
values: { [key: string]: any | undefined;};})[];
1516+
};
1517+
1518+
export interface ActionInput_attio_listtasks {
1519+
limit?: number | undefined;
1520+
offset?: number | undefined;
1521+
};
1522+
1523+
export interface ActionOutput_attio_listtasks {
1524+
data: ({ id: { workspace_id: string;
1525+
task_id: string;};
1526+
content_plaintext: string;
1527+
deadline_at: string | null;
1528+
is_completed: boolean;
1529+
created_at: string;})[];
1530+
};
1531+
1532+
export interface ActionInput_attio_listwebhooks {
1533+
limit?: number | undefined;
1534+
cursor?: string | undefined;
1535+
};
1536+
1537+
export interface ActionOutput_attio_listwebhooks {
1538+
webhooks: ({ target_url: string;
1539+
subscriptions: ({ event_type: string;
1540+
filter: { "$and"?: ({ field: string;
1541+
operator: string;
1542+
value: string;})[] | undefined;
1543+
"$or"?: ({ field: string;
1544+
operator: string;
1545+
value: string;})[] | undefined;} | null;})[];
1546+
id: { workspace_id: string;
1547+
webhook_id: string;};
1548+
status: 'active' | 'degraded' | 'inactive';
1549+
created_at: string;})[];
1550+
next_cursor: string | null;
1551+
};
1552+
1553+
export interface ActionInput_attio_updaterecord {
1554+
object_slug: string;
1555+
record_id: string;
1556+
values: { [key: string]: any | undefined;};
1557+
};
1558+
1559+
export interface ActionOutput_attio_updaterecord {
1560+
data: { id: { workspace_id: string;
1561+
object_id: string;
1562+
record_id: string;};
1563+
created_at: string;
1564+
values: { [key: string]: any | undefined;};};
1565+
};
1566+
1567+
export interface ActionInput_attio_updatewebhook {
1568+
webhook_id: string;
1569+
target_url?: string | undefined;
1570+
subscriptions?: ({ event_type: string;
1571+
filter?: { "$and"?: ({ field: string;
1572+
operator: string;
1573+
value: string;})[] | undefined;
1574+
"$or"?: ({ field: string;
1575+
operator: string;
1576+
value: string;})[] | undefined;} | null;})[];
1577+
};
1578+
1579+
export interface ActionOutput_attio_updatewebhook {
1580+
target_url: string;
1581+
subscriptions: ({ event_type: string;
1582+
filter: { "$and"?: ({ field: string;
1583+
operator: string;
1584+
value: string;})[] | undefined;
1585+
"$or"?: ({ field: string;
1586+
operator: string;
1587+
value: string;})[] | undefined;} | null;})[];
1588+
id: { workspace_id: string;
1589+
webhook_id: string;};
1590+
status: 'active' | 'degraded' | 'inactive';
1591+
created_at: string;
1592+
};
1593+
12601594
export interface SyncMetadata_avalara_transactions {
12611595
company: string;
12621596
backfillPeriodMs?: number | undefined;

0 commit comments

Comments
 (0)