@idpass/data-collect-core / buildAdapterConfig
Function: buildAdapterConfig()
buildAdapterConfig(
config):Record<string,unknown>
Defined in: components/ExternalSyncManager.ts:62
Build the flat adapter config object that a V2 adapter's configSchema is
validated against, from an ExternalSyncConfig. Merges url, the
preferred adapterConfig map, and the legacy extraFields (without
overriding keys already set by adapterConfig).
Shared by ExternalSyncManager.initialize and
validateExternalSyncConfig so validation done ahead of time (e.g. in
the backend create/update endpoints) matches what initialize will check —
preventing drift between the two call sites.
Parameters
config
Returns
Record<string, unknown>