(data: Record<string, unknown>)
| 421 | } |
| 422 | |
| 423 | function transformServiceData(data: Record<string, unknown>): Record<string, unknown> { |
| 424 | const out: Record<string, unknown> = {}; |
| 425 | for (const [key, value] of Object.entries(data)) { |
| 426 | const targetKey = snakeToCamel(key); |
| 427 | if (targetKey === 'oauth') { |
| 428 | out[targetKey] = isPlainObject(value) ? transformPlainObject(value) : value; |
| 429 | } else if (targetKey === 'customHeaders') { |
| 430 | out[targetKey] = cloneObjectValue(value); |
| 431 | } else { |
| 432 | out[targetKey] = value; |
| 433 | } |
| 434 | } |
| 435 | return out; |
| 436 | } |
| 437 | |
| 438 | function transformLoopControlData(data: Record<string, unknown>): Record<string, unknown> { |
| 439 | const out = transformPlainObject(data); |
nothing calls this directly
no test coverage detected