diff --git a/src/interfaces/index.ts b/src/interfaces/index.ts index d3bb77b..06d7c08 100644 --- a/src/interfaces/index.ts +++ b/src/interfaces/index.ts @@ -34,7 +34,6 @@ export const PluginFactory = mapping: MappingParams ) => ({ metadata: { - kind: 'execute', // Handles empty metadata inputs: {...params.metadata && params.metadata.inputs || {}, ...parametersMetadata?.inputs}, outputs: parametersMetadata?.outputs || params.metadata && params.metadata.outputs || {}, diff --git a/src/types/index.ts b/src/types/index.ts index 7f885de..fd4bf9c 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -34,13 +34,12 @@ export type RandIntGeneratorParams = { /** Interface */ export type PluginParams = Record; -export type ExecutePlugin = { +export type PluginInterface = { execute: ( inputs: PluginParams[], config?: Record ) => PluginParams[] | Promise; metadata: { - kind: string; inputs?: ParameterMetadata; outputs?: ParameterMetadata; }; @@ -94,18 +93,6 @@ export type TimeParams = { export type ConfigParams = Record; export type MappingParams = Record; -/** Group-by */ -export type GroupByPlugin = { - execute: (inputs: PluginParams[], config: GroupByConfig) => {children: any}; - metadata: { - kind: string; - }; - [key: string]: any; -}; - -export type GroupByConfig = { - group: string[]; -}; export type ArithmeticParameters = { config: any;