Skip to content

Commit fdbbc6e

Browse files
committed
feat(pagination): update pagination for remaining integrations that support it
1 parent 48715ff commit fdbbc6e

37 files changed

+435
-172
lines changed

apps/docs/content/docs/en/tools/incidentio.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ List actions from incident.io. Optionally filter by incident ID.
234234
| --------- | ---- | -------- | ----------- |
235235
| `apiKey` | string | Yes | incident.io API Key |
236236
| `incident_id` | string | No | Filter actions by incident ID \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) |
237-
| `page_size` | number | No | Number of actions to return per page \(e.g., 10, 25, 50\) |
238237

239238
#### Output
240239

@@ -309,7 +308,6 @@ List follow-ups from incident.io. Optionally filter by incident ID.
309308
| --------- | ---- | -------- | ----------- |
310309
| `apiKey` | string | Yes | incident.io API Key |
311310
| `incident_id` | string | No | Filter follow-ups by incident ID \(e.g., "01FCNDV6P870EA6S7TK1DSYDG0"\) |
312-
| `page_size` | number | No | Number of follow-ups to return per page \(e.g., 10, 25, 50\) |
313311

314312
#### Output
315313

@@ -396,6 +394,7 @@ List all users in your Incident.io workspace. Returns user details including id,
396394
| --------- | ---- | -------- | ----------- |
397395
| `apiKey` | string | Yes | Incident.io API Key |
398396
| `page_size` | number | No | Number of results to return per page \(e.g., 10, 25, 50\). Default: 25 |
397+
| `after` | string | No | Pagination cursor to fetch the next page of results |
399398

400399
#### Output
401400

@@ -406,6 +405,10 @@ List all users in your Incident.io workspace. Returns user details including id,
406405
|`name` | string | Full name of the user |
407406
|`email` | string | Email address of the user |
408407
|`role` | string | Role of the user in the workspace |
408+
| `pagination_meta` | object | Pagination metadata |
409+
|`after` | string | Cursor for next page |
410+
|`page_size` | number | Number of items per page |
411+
|`total_record_count` | number | Total number of records |
409412

410413
### `incidentio_users_show`
411414

@@ -644,7 +647,6 @@ List all escalation policies in incident.io
644647
| Parameter | Type | Required | Description |
645648
| --------- | ---- | -------- | ----------- |
646649
| `apiKey` | string | Yes | incident.io API Key |
647-
| `page_size` | number | No | Number of results per page \(e.g., 10, 25, 50\). Default: 25 |
648650

649651
#### Output
650652

apps/docs/content/docs/en/tools/pipedrive.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Retrieve all deals from Pipedrive with optional filters
4949
| `pipeline_id` | string | No | If supplied, only deals in the specified pipeline are returned \(e.g., "1"\) |
5050
| `updated_since` | string | No | If set, only deals updated after this time are returned. Format: 2025-01-01T10:20:00Z |
5151
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500\) |
52+
| `cursor` | string | No | For pagination, the marker representing the first item on the next page |
5253

5354
#### Output
5455

@@ -74,6 +75,8 @@ Retrieve all deals from Pipedrive with optional filters
7475
| `metadata` | object | Pagination metadata for the response |
7576
|`total_items` | number | Total number of items |
7677
|`has_more` | boolean | Whether more items are available |
78+
|`next_cursor` | string | Cursor for fetching the next page \(v2 endpoints\) |
79+
|`next_start` | number | Offset for fetching the next page \(v1 endpoints\) |
7780
| `success` | boolean | Operation success status |
7881

7982
### `pipedrive_get_deal`
@@ -152,6 +155,7 @@ Retrieve files from Pipedrive with optional filters
152155
| `person_id` | string | No | Filter files by person ID \(e.g., "456"\) |
153156
| `org_id` | string | No | Filter files by organization ID \(e.g., "789"\) |
154157
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500\) |
158+
| `start` | string | No | Pagination start offset \(0-based index of the first item to return\) |
155159
| `downloadFiles` | boolean | No | Download file contents into file outputs |
156160

157161
#### Output
@@ -183,6 +187,7 @@ Retrieve mail threads from Pipedrive mailbox
183187
| --------- | ---- | -------- | ----------- |
184188
| `folder` | string | No | Filter by folder: inbox, drafts, sent, archive \(default: inbox\) |
185189
| `limit` | string | No | Number of results to return \(e.g., "25", default: 50\) |
190+
| `start` | string | No | Pagination start offset \(0-based index of the first item to return\) |
186191

187192
#### Output
188193

@@ -221,7 +226,7 @@ Retrieve all pipelines from Pipedrive
221226
| `sort_by` | string | No | Field to sort by: id, update_time, add_time \(default: id\) |
222227
| `sort_direction` | string | No | Sorting direction: asc, desc \(default: asc\) |
223228
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500\) |
224-
| `cursor` | string | No | For pagination, the marker representing the first item on the next page |
229+
| `start` | string | No | Pagination start offset \(0-based index of the first item to return\) |
225230

226231
#### Output
227232

@@ -251,6 +256,7 @@ Retrieve all deals in a specific pipeline
251256
| `stage_id` | string | No | Filter by specific stage within the pipeline \(e.g., "2"\) |
252257
| `status` | string | No | Filter by deal status: open, won, lost |
253258
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500\) |
259+
| `start` | string | No | Pagination start offset \(0-based index of the first item to return\) |
254260

255261
#### Output
256262

@@ -271,6 +277,7 @@ Retrieve all projects or a specific project from Pipedrive
271277
| `project_id` | string | No | Optional: ID of a specific project to retrieve \(e.g., "123"\) |
272278
| `status` | string | No | Filter by project status: open, completed, deleted \(only for listing all\) |
273279
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500, only for listing all\) |
280+
| `cursor` | string | No | For pagination, the marker representing the first item on the next page |
274281

275282
#### Output
276283

@@ -315,6 +322,7 @@ Retrieve activities (tasks) from Pipedrive with optional filters
315322
| `type` | string | No | Filter by activity type \(call, meeting, task, deadline, email, lunch\) |
316323
| `done` | string | No | Filter by completion status: 0 for not done, 1 for done |
317324
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500\) |
325+
| `start` | string | No | Pagination start offset \(0-based index of the first item to return\) |
318326

319327
#### Output
320328

@@ -399,6 +407,7 @@ Retrieve all leads or a specific lead from Pipedrive
399407
| `person_id` | string | No | Filter by person ID \(e.g., "456"\) |
400408
| `organization_id` | string | No | Filter by organization ID \(e.g., "789"\) |
401409
| `limit` | string | No | Number of results to return \(e.g., "50", default: 100, max: 500\) |
410+
| `start` | string | No | Pagination start offset \(0-based index of the first item to return\) |
402411

403412
#### Output
404413

apps/docs/content/docs/en/tools/supabase.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Query data from a Supabase table
5757
| `filter` | string | No | PostgREST filter \(e.g., "id=eq.123"\) |
5858
| `orderBy` | string | No | Column to order by \(add DESC for descending\) |
5959
| `limit` | number | No | Maximum number of rows to return |
60+
| `offset` | number | No | Number of rows to skip \(for pagination\) |
6061
| `apiKey` | string | Yes | Your Supabase service role secret key |
6162

6263
#### Output
@@ -211,6 +212,7 @@ Perform full-text search on a Supabase table
211212
| `searchType` | string | No | Search type: plain, phrase, or websearch \(default: websearch\) |
212213
| `language` | string | No | Language for text search configuration \(default: english\) |
213214
| `limit` | number | No | Maximum number of rows to return |
215+
| `offset` | number | No | Number of rows to skip \(for pagination\) |
214216
| `apiKey` | string | Yes | Your Supabase service role secret key |
215217

216218
#### Output

apps/docs/content/docs/en/tools/typeform.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Retrieve form responses from Typeform
4343
| `formId` | string | Yes | Typeform form ID \(e.g., "abc123XYZ"\) |
4444
| `apiKey` | string | Yes | Typeform Personal Access Token |
4545
| `pageSize` | number | No | Number of responses to retrieve \(e.g., 10, 25, 50\) |
46+
| `before` | string | No | Cursor token for fetching the next page of older responses |
47+
| `after` | string | No | Cursor token for fetching the next page of newer responses |
4648
| `since` | string | No | Retrieve responses submitted after this date \(e.g., "2024-01-01T00:00:00Z"\) |
4749
| `until` | string | No | Retrieve responses submitted before this date \(e.g., "2024-12-31T23:59:59Z"\) |
4850
| `completed` | string | No | Filter by completion status \(e.g., "true", "false", "all"\) |

apps/docs/content/docs/en/tools/zendesk.mdx

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Retrieve a list of tickets from Zendesk with optional filtering
7070
| `sortBy` | string | No | Sort field: "created_at", "updated_at", "priority", or "status" |
7171
| `sortOrder` | string | No | Sort order: "asc" or "desc" |
7272
| `perPage` | string | No | Results per page as a number string \(default: "100", max: "100"\) |
73-
| `page` | string | No | Page number as a string \(e.g., "1", "2"\) |
73+
| `pageAfter` | string | No | Cursor from a previous response to fetch the next page of results |
7474

7575
#### Output
7676

@@ -129,10 +129,10 @@ Retrieve a list of tickets from Zendesk with optional filtering
129129
|`from_messaging_channel` | boolean | Whether the ticket originated from a messaging channel |
130130
|`ticket_form_id` | number | Ticket form ID |
131131
|`generated_timestamp` | number | Unix timestamp of the ticket generation |
132-
| `paging` | object | Pagination information |
132+
| `paging` | object | Cursor-based pagination information |
133+
|`after_cursor` | string | Cursor for fetching the next page of results |
134+
|`has_more` | boolean | Whether more results are available |
133135
|`next_page` | string | URL for next page of results |
134-
|`previous_page` | string | URL for previous page of results |
135-
|`count` | number | Total count of items |
136136
| `metadata` | object | Response metadata |
137137
|`total_returned` | number | Number of items returned in this response |
138138
|`has_more` | boolean | Whether more items are available |
@@ -515,7 +515,7 @@ Retrieve a list of users from Zendesk with optional filtering
515515
| `role` | string | No | Filter by role: "end-user", "agent", or "admin" |
516516
| `permissionSet` | string | No | Filter by permission set ID as a numeric string \(e.g., "12345"\) |
517517
| `perPage` | string | No | Results per page as a number string \(default: "100", max: "100"\) |
518-
| `page` | string | No | Page number as a string \(e.g., "1", "2"\) |
518+
| `pageAfter` | string | No | Cursor from a previous response to fetch the next page of results |
519519

520520
#### Output
521521

@@ -563,10 +563,10 @@ Retrieve a list of users from Zendesk with optional filtering
563563
|`shared` | boolean | Whether the user is shared from a different Zendesk |
564564
|`shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
565565
|`remote_photo_url` | string | URL to a remote photo |
566-
| `paging` | object | Pagination information |
566+
| `paging` | object | Cursor-based pagination information |
567+
|`after_cursor` | string | Cursor for fetching the next page of results |
568+
|`has_more` | boolean | Whether more results are available |
567569
|`next_page` | string | URL for next page of results |
568-
|`previous_page` | string | URL for previous page of results |
569-
|`count` | number | Total count of items |
570570
| `metadata` | object | Response metadata |
571571
|`total_returned` | number | Number of items returned in this response |
572572
|`has_more` | boolean | Whether more items are available |
@@ -706,7 +706,7 @@ Search for users in Zendesk using a query string
706706
| `query` | string | No | Search query string \(e.g., user name or email\) |
707707
| `externalId` | string | No | External ID to search by \(your system identifier\) |
708708
| `perPage` | string | No | Results per page as a number string \(default: "100", max: "100"\) |
709-
| `page` | string | No | Page number as a string \(e.g., "1", "2"\) |
709+
| `page` | string | No | Page number for pagination \(1-based\) |
710710

711711
#### Output
712712

@@ -754,10 +754,10 @@ Search for users in Zendesk using a query string
754754
|`shared` | boolean | Whether the user is shared from a different Zendesk |
755755
|`shared_agent` | boolean | Whether the agent is shared from a different Zendesk |
756756
|`remote_photo_url` | string | URL to a remote photo |
757-
| `paging` | object | Pagination information |
757+
| `paging` | object | Cursor-based pagination information |
758+
|`after_cursor` | string | Cursor for fetching the next page of results |
759+
|`has_more` | boolean | Whether more results are available |
758760
|`next_page` | string | URL for next page of results |
759-
|`previous_page` | string | URL for previous page of results |
760-
|`count` | number | Total count of items |
761761
| `metadata` | object | Response metadata |
762762
|`total_returned` | number | Number of items returned in this response |
763763
|`has_more` | boolean | Whether more items are available |
@@ -999,7 +999,7 @@ Retrieve a list of organizations from Zendesk
999999
| `apiToken` | string | Yes | Zendesk API token |
10001000
| `subdomain` | string | Yes | Your Zendesk subdomain \(e.g., "mycompany" for mycompany.zendesk.com\) |
10011001
| `perPage` | string | No | Results per page as a number string \(default: "100", max: "100"\) |
1002-
| `page` | string | No | Page number as a string \(e.g., "1", "2"\) |
1002+
| `pageAfter` | string | No | Cursor from a previous response to fetch the next page of results |
10031003

10041004
#### Output
10051005

@@ -1020,10 +1020,10 @@ Retrieve a list of organizations from Zendesk
10201020
|`created_at` | string | When the organization was created \(ISO 8601 format\) |
10211021
|`updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
10221022
|`external_id` | string | External ID for linking to external records |
1023-
| `paging` | object | Pagination information |
1023+
| `paging` | object | Cursor-based pagination information |
1024+
|`after_cursor` | string | Cursor for fetching the next page of results |
1025+
|`has_more` | boolean | Whether more results are available |
10241026
|`next_page` | string | URL for next page of results |
1025-
|`previous_page` | string | URL for previous page of results |
1026-
|`count` | number | Total count of items |
10271027
| `metadata` | object | Response metadata |
10281028
|`total_returned` | number | Number of items returned in this response |
10291029
|`has_more` | boolean | Whether more items are available |
@@ -1075,7 +1075,7 @@ Autocomplete organizations in Zendesk by name prefix (for name matching/autocomp
10751075
| `subdomain` | string | Yes | Your Zendesk subdomain |
10761076
| `name` | string | Yes | Organization name prefix to search for \(e.g., "Acme"\) |
10771077
| `perPage` | string | No | Results per page as a number string \(default: "100", max: "100"\) |
1078-
| `page` | string | No | Page number as a string \(e.g., "1", "2"\) |
1078+
| `page` | string | No | Page number for pagination \(1-based\) |
10791079

10801080
#### Output
10811081

@@ -1096,10 +1096,10 @@ Autocomplete organizations in Zendesk by name prefix (for name matching/autocomp
10961096
|`created_at` | string | When the organization was created \(ISO 8601 format\) |
10971097
|`updated_at` | string | When the organization was last updated \(ISO 8601 format\) |
10981098
|`external_id` | string | External ID for linking to external records |
1099-
| `paging` | object | Pagination information |
1099+
| `paging` | object | Cursor-based pagination information |
1100+
|`after_cursor` | string | Cursor for fetching the next page of results |
1101+
|`has_more` | boolean | Whether more results are available |
11001102
|`next_page` | string | URL for next page of results |
1101-
|`previous_page` | string | URL for previous page of results |
1102-
|`count` | number | Total count of items |
11031103
| `metadata` | object | Response metadata |
11041104
|`total_returned` | number | Number of items returned in this response |
11051105
|`has_more` | boolean | Whether more items are available |
@@ -1249,19 +1249,20 @@ Unified search across tickets, users, and organizations in Zendesk
12491249
| `apiToken` | string | Yes | Zendesk API token |
12501250
| `subdomain` | string | Yes | Your Zendesk subdomain |
12511251
| `query` | string | Yes | Search query string using Zendesk search syntax \(e.g., "type:ticket status:open"\) |
1252+
| `filterType` | string | Yes | Resource type to search for: "ticket", "user", "organization", or "group" |
12521253
| `sortBy` | string | No | Sort field: "relevance", "created_at", "updated_at", "priority", "status", or "ticket_type" |
12531254
| `sortOrder` | string | No | Sort order: "asc" or "desc" |
12541255
| `perPage` | string | No | Results per page as a number string \(default: "100", max: "100"\) |
1255-
| `page` | string | No | Page number as a string \(e.g., "1", "2"\) |
1256+
| `pageAfter` | string | No | Cursor from a previous response to fetch the next page of results |
12561257

12571258
#### Output
12581259

12591260
| Parameter | Type | Description |
12601261
| --------- | ---- | ----------- |
1261-
| `paging` | object | Pagination information |
1262+
| `paging` | object | Cursor-based pagination information |
1263+
|`after_cursor` | string | Cursor for fetching the next page of results |
1264+
|`has_more` | boolean | Whether more results are available |
12621265
|`next_page` | string | URL for next page of results |
1263-
|`previous_page` | string | URL for previous page of results |
1264-
|`count` | number | Total count of items |
12651266
| `metadata` | object | Response metadata |
12661267
|`total_returned` | number | Number of items returned in this response |
12671268
|`has_more` | boolean | Whether more items are available |

apps/sim/app/api/tools/pipedrive/get-files/route.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const PipedriveGetFilesSchema = z.object({
3131
person_id: z.string().optional().nullable(),
3232
org_id: z.string().optional().nullable(),
3333
limit: z.string().optional().nullable(),
34+
start: z.string().optional().nullable(),
3435
downloadFiles: z.boolean().optional().default(false),
3536
})
3637

@@ -54,7 +55,7 @@ export async function POST(request: NextRequest) {
5455
const body = await request.json()
5556
const validatedData = PipedriveGetFilesSchema.parse(body)
5657

57-
const { accessToken, deal_id, person_id, org_id, limit, downloadFiles } = validatedData
58+
const { accessToken, deal_id, person_id, org_id, limit, start, downloadFiles } = validatedData
5859

5960
const baseUrl = 'https://api.pipedrive.com/v1/files'
6061
const queryParams = new URLSearchParams()
@@ -63,6 +64,7 @@ export async function POST(request: NextRequest) {
6364
if (person_id) queryParams.append('person_id', person_id)
6465
if (org_id) queryParams.append('org_id', org_id)
6566
if (limit) queryParams.append('limit', limit)
67+
if (start) queryParams.append('start', start)
6668

6769
const queryString = queryParams.toString()
6870
const apiUrl = queryString ? `${baseUrl}?${queryString}` : baseUrl

apps/sim/blocks/blocks/incidentio.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,9 @@ export const IncidentioBlock: BlockConfig<IncidentioResponse> = {
9292
field: 'operation',
9393
value: [
9494
'incidentio_incidents_list',
95-
'incidentio_actions_list',
96-
'incidentio_follow_ups_list',
9795
'incidentio_users_list',
9896
'incidentio_workflows_list',
9997
'incidentio_schedules_list',
100-
'incidentio_escalations_list',
10198
'incidentio_incident_updates_list',
10299
'incidentio_schedule_entries_list',
103100
],
@@ -113,6 +110,7 @@ export const IncidentioBlock: BlockConfig<IncidentioResponse> = {
113110
field: 'operation',
114111
value: [
115112
'incidentio_incidents_list',
113+
'incidentio_users_list',
116114
'incidentio_workflows_list',
117115
'incidentio_schedules_list',
118116
'incidentio_incident_updates_list',

0 commit comments

Comments
 (0)