@leosprograms/vf-graphql-holochain
Version:
GraphQL schema bindings for the Holochain implementation of ValueFlows
35 lines (34 loc) • 1.07 kB
TypeScript
/**
* Resolvers for Plan fields
*
* @package: HoloREA
* @since: 2019-08-27
*/
import { DNAIdMappings, VfModule, AgentAddress, AddressableIdentifier } from '../types.js';
import { Process, Plan, Commitment, AccountingScope } from '@leosprograms/vf-graphql';
declare const _default: (enabledVFModules: VfModule[] | undefined, dnaConfig: DNAIdMappings, conductorUri: string) => ({
processes: (record: Plan) => Promise<Process[]>;
} | {
processes?: undefined;
}) & ({
independentDemands: (record: Plan) => Promise<Commitment[]>;
nonProcessCommitments: (record: Plan) => Promise<Commitment[]>;
} | {
independentDemands?: undefined;
nonProcessCommitments?: undefined;
}) & ({
involvedAgents: () => never;
inScopeOf: (record: {
inScopeOf: AgentAddress[];
}) => Promise<AccountingScope[]>;
} | {
involvedAgents?: undefined;
inScopeOf?: undefined;
}) & ({
revision: (record: Plan, args: {
revisionId: AddressableIdentifier;
}) => Promise<Plan>;
} | {
revision?: undefined;
});
export default _default;