Skip to content

Commit dea15a5

Browse files
committed
fix(rippling): add missing response fields to tool transforms
Add fields found missing by validation agents: - list_companies: physical_address - list/get_supergroups: sub_group_type, read_only, parent, mutually_exclusive_key, cumulatively_exhaustive_default, include_terminated - list/get/create/update_custom_object: native_category_id, managed_package_install_id, owner_id - list/get/create/update_custom_app: icon, pages - list/get/create/update_custom_object_field: managed_package_install_id
1 parent 24a2bb0 commit dea15a5

15 files changed

Lines changed: 98 additions & 0 deletions

apps/sim/tools/rippling/create_custom_app.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ export const ripplingCreateCustomAppTool: ToolConfig<RipplingCreateCustomAppPara
5151
name: (data.name as string) ?? null,
5252
api_name: (data.api_name as string) ?? null,
5353
description: (data.description as string) ?? null,
54+
icon: (data.icon as string) ?? null,
55+
pages: (data.pages as unknown[]) ?? [],
5456
},
5557
}
5658
},
@@ -61,5 +63,7 @@ export const ripplingCreateCustomAppTool: ToolConfig<RipplingCreateCustomAppPara
6163
name: { type: 'string', description: 'Name', optional: true },
6264
api_name: { type: 'string', description: 'API name', optional: true },
6365
description: { type: 'string', description: 'Description', optional: true },
66+
icon: { type: 'string', description: 'Icon URL', optional: true },
67+
pages: { type: 'json', description: 'Array of page summaries', optional: true },
6468
},
6569
}

apps/sim/tools/rippling/create_custom_object.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ export const ripplingCreateCustomObjectTool: ToolConfig<RipplingCreateCustomObje
6060
plural_label: (data.plural_label as string) ?? null,
6161
category_id: (data.category_id as string) ?? null,
6262
enable_history: (data.enable_history as boolean) ?? null,
63+
native_category_id: (data.native_category_id as string) ?? null,
64+
managed_package_install_id: (data.managed_package_install_id as string) ?? null,
65+
owner_id: (data.owner_id as string) ?? null,
6366
},
6467
}
6568
},
@@ -73,5 +76,12 @@ export const ripplingCreateCustomObjectTool: ToolConfig<RipplingCreateCustomObje
7376
plural_label: { type: 'string', description: 'Plural label', optional: true },
7477
category_id: { type: 'string', description: 'Category ID', optional: true },
7578
enable_history: { type: 'boolean', description: 'History enabled', optional: true },
79+
native_category_id: { type: 'string', description: 'Native category ID', optional: true },
80+
managed_package_install_id: {
81+
type: 'string',
82+
description: 'Package install ID',
83+
optional: true,
84+
},
85+
owner_id: { type: 'string', description: 'Owner ID', optional: true },
7686
},
7787
}

apps/sim/tools/rippling/create_custom_object_field.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export const ripplingCreateCustomObjectFieldTool: ToolConfig<RipplingCreateCusto
8989
is_immutable: (data.is_immutable as boolean) ?? null,
9090
is_standard: (data.is_standard as boolean) ?? null,
9191
enable_history: (data.enable_history as boolean) ?? null,
92+
managed_package_install_id: (data.managed_package_install_id as string) ?? null,
9293
},
9394
}
9495
},
@@ -105,5 +106,10 @@ export const ripplingCreateCustomObjectFieldTool: ToolConfig<RipplingCreateCusto
105106
is_immutable: { type: 'boolean', description: 'Is immutable', optional: true },
106107
is_standard: { type: 'boolean', description: 'Is standard', optional: true },
107108
enable_history: { type: 'boolean', description: 'History enabled', optional: true },
109+
managed_package_install_id: {
110+
type: 'string',
111+
description: 'Package install ID',
112+
optional: true,
113+
},
108114
},
109115
}

apps/sim/tools/rippling/get_custom_app.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ export const ripplingGetCustomAppTool: ToolConfig<RipplingGetCustomAppParams> =
3636
name: (data.name as string) ?? null,
3737
api_name: (data.api_name as string) ?? null,
3838
description: (data.description as string) ?? null,
39+
icon: (data.icon as string) ?? null,
40+
pages: (data.pages as unknown[]) ?? [],
3941
},
4042
}
4143
},
@@ -46,5 +48,7 @@ export const ripplingGetCustomAppTool: ToolConfig<RipplingGetCustomAppParams> =
4648
name: { type: 'string', description: 'Name', optional: true },
4749
api_name: { type: 'string', description: 'API name', optional: true },
4850
description: { type: 'string', description: 'Description', optional: true },
51+
icon: { type: 'string', description: 'Icon URL', optional: true },
52+
pages: { type: 'json', description: 'Array of page summaries', optional: true },
4953
},
5054
}

apps/sim/tools/rippling/get_custom_object.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ export const ripplingGetCustomObjectTool: ToolConfig<RipplingGetCustomObjectPara
4444
plural_label: (data.plural_label as string) ?? null,
4545
category_id: (data.category_id as string) ?? null,
4646
enable_history: (data.enable_history as boolean) ?? null,
47+
native_category_id: (data.native_category_id as string) ?? null,
48+
managed_package_install_id: (data.managed_package_install_id as string) ?? null,
49+
owner_id: (data.owner_id as string) ?? null,
4750
},
4851
}
4952
},
@@ -57,5 +60,12 @@ export const ripplingGetCustomObjectTool: ToolConfig<RipplingGetCustomObjectPara
5760
plural_label: { type: 'string', description: 'Plural label', optional: true },
5861
category_id: { type: 'string', description: 'Category ID', optional: true },
5962
enable_history: { type: 'boolean', description: 'History enabled', optional: true },
63+
native_category_id: { type: 'string', description: 'Native category ID', optional: true },
64+
managed_package_install_id: {
65+
type: 'string',
66+
description: 'Package install ID',
67+
optional: true,
68+
},
69+
owner_id: { type: 'string', description: 'Owner ID', optional: true },
6070
},
6171
}

apps/sim/tools/rippling/get_custom_object_field.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export const ripplingGetCustomObjectFieldTool: ToolConfig<RipplingGetCustomObjec
5353
is_immutable: (data.is_immutable as boolean) ?? null,
5454
is_standard: (data.is_standard as boolean) ?? null,
5555
enable_history: (data.enable_history as boolean) ?? null,
56+
managed_package_install_id: (data.managed_package_install_id as string) ?? null,
5657
},
5758
}
5859
},
@@ -69,5 +70,10 @@ export const ripplingGetCustomObjectFieldTool: ToolConfig<RipplingGetCustomObjec
6970
is_immutable: { type: 'boolean', description: 'Is immutable', optional: true },
7071
is_standard: { type: 'boolean', description: 'Is standard', optional: true },
7172
enable_history: { type: 'boolean', description: 'History enabled', optional: true },
73+
managed_package_install_id: {
74+
type: 'string',
75+
description: 'Package install ID',
76+
optional: true,
77+
},
7278
},
7379
}

apps/sim/tools/rippling/get_supergroup.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ export const ripplingGetSupergroupTool: ToolConfig<RipplingGetSupergroupParams>
3838
app_owner_id: (data.app_owner_id as string) ?? null,
3939
group_type: (data.group_type as string) ?? null,
4040
name: (data.name as string) ?? null,
41+
sub_group_type: (data.sub_group_type as string) ?? null,
42+
read_only: (data.read_only as boolean) ?? null,
43+
parent: (data.parent as string) ?? null,
44+
mutually_exclusive_key: (data.mutually_exclusive_key as string) ?? null,
45+
cumulatively_exhaustive_default: (data.cumulatively_exhaustive_default as boolean) ?? null,
46+
include_terminated: (data.include_terminated as boolean) ?? null,
4147
},
4248
}
4349
},
@@ -50,5 +56,23 @@ export const ripplingGetSupergroupTool: ToolConfig<RipplingGetSupergroupParams>
5056
app_owner_id: { type: 'string', description: 'App owner ID', optional: true },
5157
group_type: { type: 'string', description: 'Group type', optional: true },
5258
name: { type: 'string', description: 'Name', optional: true },
59+
sub_group_type: { type: 'string', description: 'Sub group type', optional: true },
60+
read_only: { type: 'boolean', description: 'Whether the group is read only', optional: true },
61+
parent: { type: 'string', description: 'Parent group ID', optional: true },
62+
mutually_exclusive_key: {
63+
type: 'string',
64+
description: 'Mutually exclusive key',
65+
optional: true,
66+
},
67+
cumulatively_exhaustive_default: {
68+
type: 'boolean',
69+
description: 'Cumulatively exhaustive default',
70+
optional: true,
71+
},
72+
include_terminated: {
73+
type: 'boolean',
74+
description: 'Whether the group includes terminated roles',
75+
optional: true,
76+
},
5377
},
5478
}

apps/sim/tools/rippling/list_companies.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ export const ripplingListCompaniesTool: ToolConfig<RipplingListCompaniesParams>
6666
primary_email: (item.primary_email as string) ?? null,
6767
parent_legal_entity_id: (item.parent_legal_entity_id as string) ?? null,
6868
legal_entities_id: (item.legal_entities_id as unknown[]) ?? [],
69+
physical_address: item.physical_address ?? null,
6970
})),
7071
totalCount: results.length,
7172
nextLink: (data.next_link as string) ?? null,

apps/sim/tools/rippling/list_custom_apps.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export const ripplingListCustomAppsTool: ToolConfig<RipplingListCustomAppsParams
3737
name: (item.name as string) ?? null,
3838
api_name: (item.api_name as string) ?? null,
3939
description: (item.description as string) ?? null,
40+
icon: (item.icon as string) ?? null,
41+
pages: (item.pages as unknown[]) ?? [],
4042
})),
4143
totalCount: results.length,
4244
nextLink: (data.next_link as string) ?? null,

apps/sim/tools/rippling/list_custom_object_fields.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export const ripplingListCustomObjectFieldsTool: ToolConfig<RipplingListCustomOb
5454
is_immutable: (item.is_immutable as boolean) ?? null,
5555
is_standard: (item.is_standard as boolean) ?? null,
5656
enable_history: (item.enable_history as boolean) ?? null,
57+
managed_package_install_id: (item.managed_package_install_id as string) ?? null,
5758
})),
5859
totalCount: results.length,
5960
nextLink: (data.next_link as string) ?? null,

0 commit comments

Comments
 (0)