@grnsft/if
Version:
Impact Framework
22 lines (21 loc) • 908 B
TypeScript
import { ConfigParams, PluginParams } from '@grnsft/if-core/types';
/**
* keep-existing: true/false (whether to remove the parameter you are copying from)
* from-param: the parameter you are copying from (e.g. cpu/name)
* to-field: the parameter you are copying to (e.g. cpu/processor-name)
*/
export declare const Copy: (config: ConfigParams | undefined, parametersMetadata: import("@grnsft/if-core/types").PluginParametersMetadata, mapping: import("@grnsft/if-core/types").MappingParams) => {
metadata: {
inputs: {
[x: string]: {
description: string;
unit: string;
'aggregation-method': import("@grnsft/if-core/types").AggregationOptions;
};
};
outputs: import("@grnsft/if-core/types").ParameterMetadata;
};
execute: (inputs: PluginParams[]) => Promise<{
[x: string]: any;
}[]>;
};