UNPKG

@talend/react-containers

Version:

Provide connected components aka containers for @talend/react-cmf based on @talend/react-components.

34 lines (33 loc) 1.28 kB
/** * array are describe without their index * use the schema to guess the path to use * to get the value in the properties * @param {string} specPath the path provided by the trigger * @param {Object} schema the schema of the current field * @return {string} path to get the value in properties */ export function getPathWithArrayIndex(specPath: string, schema: Object): string; /** * extract parameters from properties * @param {Array} parameters required * @param {Object} properties source of the data * @param {Object} schema of the current field the trigger is executed * @return {Object} payload of the trigger */ export function extractParameters(parameters: any[], properties: Object, schema: Object): Object; export function createCacheKey(trigger: any): string | undefined; export function toJSON(resp: any): any; export function toQueryParam(obj: any): string; export default function createTriggers({ url, customRegistry, lang, headers, fetchConfig, security, }: { url: any; customRegistry: any; lang?: string | undefined; headers: any; fetchConfig: any; security?: {} | undefined; }): (event: any, { trigger, schema, properties, errors }: { trigger: any; schema: any; properties: any; errors: any; }) => any;