- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
988 B
JavaScript
23 lines
988 B
JavaScript
export function renameFormFields(node, renameField) {
|
|
const formFields = node.parameters?.formFields;
|
|
const values = formFields &&
|
|
typeof formFields === 'object' &&
|
|
'values' in formFields &&
|
|
typeof formFields.values === 'object' &&
|
|
// TypeScript thinks this is `Array.values` and gets very confused here
|
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
Array.isArray(formFields.values)
|
|
? // eslint-disable-next-line @typescript-eslint/unbound-method
|
|
(formFields.values ?? [])
|
|
: [];
|
|
for (const formFieldValue of values) {
|
|
if (!formFieldValue || typeof formFieldValue !== 'object')
|
|
continue;
|
|
if ('fieldType' in formFieldValue && formFieldValue.fieldType === 'html') {
|
|
if ('html' in formFieldValue) {
|
|
formFieldValue.html = renameField(formFieldValue.html);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//# sourceMappingURL=rename-node-utils.js.map
|