UNPKG

@leosprograms/vf-graphql-holochain

Version:

GraphQL schema bindings for the Holochain implementation of ValueFlows

24 lines (23 loc) 889 B
/** * Recipe Process mutations * * @package: HoloREA * @since: 2019-08-31 */ import { DNAIdMappings } from '../types.js'; import { deleteHandler } from './index.js'; import { RecipeExchangeCreateParams, RecipeExchangeUpdateParams, RecipeExchangeResponse } from '@leosprograms/vf-graphql'; export interface CreateArgs { recipeExchange: RecipeExchangeCreateParams; } export declare type createHandler = (root: any, args: CreateArgs) => Promise<RecipeExchangeResponse>; export interface UpdateArgs { recipeExchange: RecipeExchangeUpdateParams; } export declare type updateHandler = (root: any, args: UpdateArgs) => Promise<RecipeExchangeResponse>; declare const _default: (dnaConfig: DNAIdMappings, conductorUri: string) => { createRecipeExchange: createHandler; updateRecipeExchange: updateHandler; deleteRecipeExchange: deleteHandler; }; export default _default;