@leosprograms/vf-graphql-holochain
Version:
GraphQL schema bindings for the Holochain implementation of ValueFlows
33 lines (32 loc) • 1.05 kB
TypeScript
/**
* Resolvers for agreement fields
*
* @package: hREA
* @since: 2020-06-19
*/
import { DNAIdMappings, VfModule, AgentAddress, AddressableIdentifier } from '../types.js';
import { Agent, Agreement, Commitment, EconomicEvent } from '@leosprograms/vf-graphql';
declare const _default: (enabledVFModules: VfModule[] | undefined, dnaConfig: DNAIdMappings, conductorUri: string) => ({
commitments: (record: Agreement) => Promise<Commitment[]>;
} | {
commitments?: undefined;
}) & ({
economicEvents: (record: Agreement) => Promise<EconomicEvent[]>;
unplannedEconomicEvents: (record: Agreement) => Promise<EconomicEvent[]>;
} | {
economicEvents?: undefined;
unplannedEconomicEvents?: undefined;
}) & ({
involvedAgents: (record: {
involvedAgents: AgentAddress[];
}) => Promise<Agent[]>;
} | {
involvedAgents?: undefined;
}) & ({
revision: (record: Agreement, args: {
revisionId: AddressableIdentifier;
}) => Promise<Agreement>;
} | {
revision?: undefined;
});
export default _default;