@leosprograms/vf-graphql-holochain
Version:
GraphQL schema bindings for the Holochain implementation of ValueFlows
30 lines (29 loc) • 1.12 kB
TypeScript
/**
* Recipe Process record reference resolvers
*
* @package: HoloREA
* @since: 2019-08-31
*/
import { DNAIdMappings, VfModule, ProcessSpecificationAddress, AddressableIdentifier } from '../types.js';
import { RecipeProcess, ProcessSpecification, RecipeFlow } from '@leosprograms/vf-graphql';
declare const _default: (enabledVFModules: VfModule[] | undefined, dnaConfig: DNAIdMappings, conductorUri: string) => {
recipeInputs: (record: RecipeProcess) => Promise<RecipeFlow[]>;
recipeOutputs: (record: RecipeProcess) => Promise<RecipeFlow[]>;
} & ({
revision: (record: RecipeProcess, args: {
revisionId: AddressableIdentifier;
}) => Promise<RecipeProcess>;
} | {
revision?: undefined;
}) & ({
processConformsToId: (record: {
processConformsTo: ProcessSpecificationAddress;
}) => Promise<ProcessSpecificationAddress>;
processConformsTo: (record: {
processConformsTo: ProcessSpecificationAddress;
}) => Promise<ProcessSpecification | undefined>;
} | {
processConformsToId?: undefined;
processConformsTo?: undefined;
});
export default _default;