Skip to content

Commit 7a7bcfe

Browse files
committed
fix(attio): add offset param and make pagination fields advanced mode
1 parent 9a28f3b commit 7a7bcfe

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

apps/sim/blocks/blocks/attio.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,7 @@ workspace-member.created
916916
title: 'Limit',
917917
type: 'short-input',
918918
placeholder: 'Max results (optional)',
919+
mode: 'advanced',
919920
condition: {
920921
field: 'operation',
921922
value: [
@@ -929,6 +930,24 @@ workspace-member.created
929930
],
930931
},
931932
},
933+
{
934+
id: 'offset',
935+
title: 'Offset',
936+
type: 'short-input',
937+
placeholder: 'Number of results to skip (optional)',
938+
mode: 'advanced',
939+
condition: {
940+
field: 'operation',
941+
value: [
942+
'list_records',
943+
'list_notes',
944+
'list_tasks',
945+
'query_list_entries',
946+
'list_threads',
947+
'list_webhooks',
948+
],
949+
},
950+
},
932951
...getTrigger('attio_record_created').subBlocks,
933952
...getTrigger('attio_record_updated').subBlocks,
934953
...getTrigger('attio_record_deleted').subBlocks,
@@ -1107,6 +1126,7 @@ workspace-member.created
11071126

11081127
// Shared params
11091128
if (params.limit) cleanParams.limit = Number(params.limit)
1129+
if (params.offset) cleanParams.offset = Number(params.offset)
11101130

11111131
return cleanParams
11121132
},
@@ -1168,6 +1188,7 @@ workspace-member.created
11681188
webhookTargetUrl: { type: 'string', description: 'Webhook target URL' },
11691189
webhookSubscriptions: { type: 'json', description: 'Webhook event subscriptions' },
11701190
limit: { type: 'string', description: 'Maximum number of results' },
1191+
offset: { type: 'string', description: 'Number of results to skip for pagination' },
11711192
},
11721193

11731194
outputs: {

0 commit comments

Comments
 (0)