Skip to content

Commit d873674

Browse files
committed
fix(rippling): add missing block outputs and required data conditions
- Add 17 missing collection output keys (titles, workLocations, supergroups, etc.) - Add delete/bulk/report output keys (deleted, results, report_id, etc.) - Mark data subBlock required for create_business_partner, create_custom_app, and create_custom_object_field (all have required params via data JSON spread) - Add optional: true to get_current_user work_email and company_id outputs
1 parent dea15a5 commit d873674

2 files changed

Lines changed: 30 additions & 2 deletions

File tree

apps/sim/blocks/blocks/rippling.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ export const RipplingBlock: BlockConfig = {
392392
required: {
393393
field: 'operation',
394394
value: [
395+
'create_business_partner',
396+
'create_custom_app',
397+
'create_custom_object_field',
395398
'create_custom_object_record',
396399
'update_custom_object_record',
397400
'create_custom_setting',
@@ -806,9 +809,34 @@ export const RipplingBlock: BlockConfig = {
806809
companies: { type: 'array', description: 'List of companies' },
807810
departments: { type: 'array', description: 'List of departments' },
808811
teams: { type: 'array', description: 'List of teams' },
812+
titles: { type: 'array', description: 'List of titles' },
813+
workLocations: { type: 'array', description: 'List of work locations' },
814+
employmentTypes: { type: 'array', description: 'List of employment types' },
815+
jobFunctions: { type: 'array', description: 'List of job functions' },
816+
entitlements: { type: 'array', description: 'List of entitlements' },
817+
customFields: { type: 'array', description: 'List of custom fields' },
818+
supergroups: { type: 'array', description: 'List of supergroups' },
819+
members: { type: 'array', description: 'List of group members' },
820+
businessPartners: { type: 'array', description: 'List of business partners' },
821+
businessPartnerGroups: { type: 'array', description: 'List of business partner groups' },
822+
customObjects: { type: 'array', description: 'List of custom objects' },
823+
fields: { type: 'array', description: 'List of custom object fields' },
824+
records: { type: 'array', description: 'List of custom object records' },
825+
customApps: { type: 'array', description: 'List of custom apps' },
826+
customPages: { type: 'array', description: 'List of custom pages' },
827+
customSettings: { type: 'array', description: 'List of custom settings' },
828+
objectCategories: { type: 'array', description: 'List of object categories' },
809829
items: { type: 'array', description: 'List of returned items' },
810830
totalCount: { type: 'number', description: 'Total number of items returned' },
811831
nextLink: { type: 'string', description: 'URL or cursor for the next page of results' },
832+
deleted: { type: 'boolean', description: 'Whether the resource was deleted' },
833+
results: { type: 'array', description: 'Bulk operation results' },
834+
result: { type: 'json', description: 'Report run result' },
835+
report_id: { type: 'string', description: 'Report ID' },
836+
invalidItems: { type: 'array', description: 'Invalid items from draft hires' },
837+
successfulResults: { type: 'array', description: 'Successful draft hire results' },
838+
totalInvalid: { type: 'number', description: 'Count of invalid items' },
839+
totalSuccessful: { type: 'number', description: 'Count of successful items' },
812840
success: { type: 'boolean', description: 'Whether the operation succeeded' },
813841
},
814842
}

apps/sim/tools/rippling/get_current_user.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const ripplingGetCurrentUserTool: ToolConfig<RipplingGetCurrentUserParams
5050
id: { type: 'string', description: 'User ID' },
5151
created_at: { type: 'string', description: 'Creation date', optional: true },
5252
updated_at: { type: 'string', description: 'Update date', optional: true },
53-
work_email: { type: 'string', description: 'Work email' },
54-
company_id: { type: 'string', description: 'Company ID' },
53+
work_email: { type: 'string', description: 'Work email', optional: true },
54+
company_id: { type: 'string', description: 'Company ID', optional: true },
5555
},
5656
}

0 commit comments

Comments
 (0)