Skip to content

Commit 0bcdc49

Browse files
waleedlatif1claude
andcommitted
fix(hubspot): return paging in get_users and add to block after condition
- Add paging output to get_users transformResponse and outputs - Add get_users to block after subBlock condition so cursor is accessible from UI Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e31add commit 0bcdc49

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

apps/sim/blocks/blocks/hubspot.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,7 @@ Return ONLY the JSON object with properties - no explanations, no markdown, no e
479479
'get_appointments',
480480
'get_carts',
481481
'list_owners',
482+
'get_users',
482483
'get_marketing_events',
483484
'get_lists',
484485
'search_contacts',

apps/sim/tools/hubspot/get_users.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createLogger } from '@sim/logger'
22
import type { HubSpotGetUsersParams, HubSpotGetUsersResponse } from '@/tools/hubspot/types'
3-
import { USERS_ARRAY_OUTPUT } from '@/tools/hubspot/types'
3+
import { PAGING_OUTPUT, USERS_ARRAY_OUTPUT } from '@/tools/hubspot/types'
44
import type { ToolConfig } from '@/tools/types'
55

66
const logger = createLogger('HubSpotGetUsers')
@@ -79,6 +79,7 @@ export const hubspotGetUsersTool: ToolConfig<HubSpotGetUsersParams, HubSpotGetUs
7979
success: true,
8080
output: {
8181
users,
82+
paging: data.paging ?? null,
8283
totalItems: users.length,
8384
success: true,
8485
},
@@ -87,6 +88,7 @@ export const hubspotGetUsersTool: ToolConfig<HubSpotGetUsersParams, HubSpotGetUs
8788

8889
outputs: {
8990
users: USERS_ARRAY_OUTPUT,
91+
paging: PAGING_OUTPUT,
9092
totalItems: { type: 'number', description: 'Total number of users returned' },
9193
success: { type: 'boolean', description: 'Operation success status' },
9294
},

apps/sim/tools/hubspot/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,7 @@ export interface HubSpotPaging {
745745
export interface HubSpotGetUsersResponse extends ToolResponse {
746746
output: {
747747
users: HubSpotUser[]
748+
paging: HubSpotPaging | null
748749
totalItems?: number
749750
success: boolean
750751
}

0 commit comments

Comments
 (0)