Skip to main content
Glama

mcp-google-sheets

migrate-v6-property-settings.ts1.87 kB
import { FlowVersion } from '../../flow-version' import { PropertyExecutionType } from '../../properties' import { flowStructureUtil } from '../../util/flow-structure-util' import { Migration } from '.' export const migratePropertySettingsV6: Migration = { targetSchemaVersion: '6', migrate: (flowVersion: FlowVersion): FlowVersion => { const newVersion = flowStructureUtil.transferFlow(flowVersion, (step) => { const input = step.settings?.input ?? {} const sampleDataFileId = step.settings?.inputUiInfo?.sampleDataFileId const sampleDataInputFileId = step.settings?.inputUiInfo?.sampleDataInputFileId const lastTestDate = step.settings?.inputUiInfo?.lastTestDate const schema = step.settings?.schema const customLogoUrl = step.settings?.inputUiInfo?.customizedInputs?.logoUrl ?? (('customLogoUrl' in step && step.customLogoUrl) ? step.customLogoUrl : undefined) const customizedInputs = step.settings?.inputUiInfo?.customizedInputs ?? {} return { ...step, settings: { ...step.settings, customLogoUrl, sampleDataSettings: { sampleDataFileId, sampleDataInputFileId, lastTestDate, }, propertySettings: Object.fromEntries(Object.entries(input).map(([key]) => [key, { type: customizedInputs?.[key] ? PropertyExecutionType.DYNAMIC : PropertyExecutionType.MANUAL, schema: schema?.[key] ?? undefined, }])), inputUiInfo: undefined, }, } }) return { ...newVersion, schemaVersion: '7', } }, }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server