MCPcopy Index your code
hub / github.com/simstudioai/sim / sanitizeNumericId

Function sanitizeNumericId

apps/sim/tools/monday/utils.ts:17–23  ·  view source on GitHub ↗
(value: string | number, paramName: string)

Source from the content-addressed store, hash-verified

15 * Delegates to validateMondayNumericId; throws on invalid input.
16 */
17export function sanitizeNumericId(value: string | number, paramName: string): string {
18 const result = validateMondayNumericId(value, paramName)
19 if (!result.isValid) {
20 throw new Error(result.error!)
21 }
22 return result.sanitized!
23}
24
25/**
26 * Coerces a limit/page param to a safe integer within bounds.

Callers 15

create_column.tsFile · 0.90
get_item.tsFile · 0.90
get_groups.tsFile · 0.90
create_subitem.tsFile · 0.90
create_item.tsFile · 0.90
create_update.tsFile · 0.90
duplicate_item.tsFile · 0.90
search_items.tsFile · 0.90
get_items.tsFile · 0.90
create_group.tsFile · 0.90
update_item.tsFile · 0.90

Calls 1

validateMondayNumericIdFunction · 0.90

Tested by

no test coverage detected