Skip to content

Function: getSchemaAndMapping() ​

ts
function getSchemaAndMapping(
   client, 
   parameters, 
   options?
): Promise<{
[key: string]: unknown;
  mapping?: Record<string, any>;
  schema?: Record<string, any>;
}>;

Defined in: src/assets/api/importSources.ts:120

Get the current schema and mapping of the import configuration

Parameters ​

ParameterTypeDescription
clientClient-
parameters{ importSourceId: string; }-
parameters.importSourceIdstringThe importSourceId of the import source configuration. For use with external imports only
options?RequestOptions-

Returns ​

Promise<{ [key: string]: unknown; mapping?: Record<string, any>; schema?: Record<string, any>; }>