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

Function shouldFilterReservedField

apps/sim/lib/workflows/blocks/block-outputs.ts:424–442  ·  view source on GitHub ↗
(
  blockType: string,
  key: string,
  prefix: string,
  subBlocks: Record<string, SubBlockWithValue> | undefined
)

Source from the content-addressed store, hash-verified

422}
423
424function shouldFilterReservedField(
425 blockType: string,
426 key: string,
427 prefix: string,
428 subBlocks: Record<string, SubBlockWithValue> | undefined
429): boolean {
430 if (blockType !== TRIGGER_TYPES.START || prefix) {
431 return false
432 }
433
434 if (!START_BLOCK_RESERVED_FIELDS.includes(key as any)) {
435 return false
436 }
437
438 const normalizedInputFormat = normalizeInputFormatValue(subBlocks?.inputFormat?.value)
439 const isExplicitlyDefined = normalizedInputFormat.some((field) => field?.name?.trim() === key)
440
441 return !isExplicitlyDefined
442}
443
444function expandFileTypeProperties(path: string): string[] {
445 return USER_FILE_ACCESSIBLE_PROPERTIES.map((prop) => `${path}.${prop}`)

Callers 1

Calls 1

Tested by

no test coverage detected